Try this global:
my @loop;
foreach (split /\n/, $_[0]) {
s/[)(-\+!:@#^&_|\><}{\]\[,'\/\.]//g;
my $hash;
$hash->{Title} = $_;
$hash->{CleanTitle} = $_;
$hash->{CleanTitle} =~ s/\s+/-/g;
$hash->{CleanTitle} =~ s/\-+/-/g;
push @loop, $hash;
}
return { format_page_loop => \@loop };
}
Call it in the same way as you were with the other global.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
sub { my @loop;
foreach (split /\n/, $_[0]) {
s/[)(-\+!:@#^&_|\><}{\]\[,'\/\.]//g;
my $hash;
$hash->{Title} = $_;
$hash->{CleanTitle} = $_;
$hash->{CleanTitle} =~ s/\s+/-/g;
$hash->{CleanTitle} =~ s/\-+/-/g;
push @loop, $hash;
}
return { format_page_loop => \@loop };
}
Call it in the same way as you were with the other global.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!