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.

my @beatles = ('John', 'Paul', 'George', 'Ringo'); @beatles =~ tr/A-Z/a-z/; # <--- doesn't work !!!
I think I'm hung up because tr/// returns the number of matches.
I could use a foreach, but it seems not terribly perlish.

Thanks for your help!