Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why does this work:
But this not?foreach my $item ($name,$nerd,$noodle,$froodle,) { $item =~ s/$i_seek/ /g; }
It's all very confusing!!my @look_for = ($name,$nerd,$noodle,$froodle,); foreach my $item (@look_for) { $item =~ s/$i_seek/ /g;
Back to
Seekers of Perl Wisdom