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
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