shoness has asked for the wisdom of the Perl Monks concerning the following question:
Monksters!
I could use a foreach, but it seems not terribly perlish.
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 !!!
I could use a foreach, but it seems not terribly perlish.
Thanks for your help!
Back to
Seekers of Perl Wisdom