Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

converting to all-lowercase

Quote Reply
converting to all-lowercase
Hi,
Could someone help me out with what should be an easy global? I wish to take the content of a field "name" and process it to have it entirely in lower case. 'Andy-Pandy' would thus become 'andy-pandy'.
Must be so something like:

sub {
my $tags = shift;
my $lowercase = shift;
$lowercase = $tags->{name};
$lowercase =~ tr/A-Z/a-z/;
return $lowercase;
}

but I know it's wrong.
A little help and explanation would be welcome
Thanks

Last edited by:

charly2: Mar 12, 2005, 8:10 AM
Subject Author Views Date
Thread converting to all-lowercase charly2 2556 Mar 12, 2005, 8:10 AM
Thread Re: [charly2] converting to all-lowercase
webmaster33 2479 Mar 12, 2005, 9:36 AM
Post Re: [webmaster33] converting to all-lowercase
charly2 2471 Mar 12, 2005, 10:11 AM