Ryan Frantz wrote: [snip] >> (my $new = $name) =~ tr/[a-z]/[A-Z]/; # trans the > > > Alternatively, you could use the 'uc' function instead of 'tr'. > > perldoc -f uc >
At the very least remove the [], tr does not take a regular expression so the brackets above do not represent the character class as they would in a regex. So the above is replacing all '[' with '[' which is pointless. If you are going to use tr, instead of 'uc' for some reason, then, =~ tr/a-z/A-Z/; Is sufficient. perldoc perlop look for notes on transliteration. http://danconia.org [snip] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>