shoness has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to do an operation like tr/// on all elements of a list.
I think I'm hung up because tr/// returns the number of matches.my @beatles = ('John', 'Paul', 'George', 'Ringo'); @beatles =~ tr/A-Z/a-z/; # <--- doesn't work !!!
Thanks for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tr/// on a list
by grinder (Bishop) on Sep 14, 2007 at 21:38 UTC | |
by GrandFather (Saint) on Sep 14, 2007 at 22:37 UTC | |
|
Re: tr/// on a list
by ikegami (Patriarch) on Sep 14, 2007 at 21:01 UTC | |
|
Re: tr/// on a list
by shoness (Friar) on Sep 14, 2007 at 23:04 UTC |