http://qs321.pair.com?node_id=285389


in reply to Re: array confusion
in thread array confusion

Following on from the foregoing to achieve a result from the second example the same as the first you could do:
my @look_for = ($name,$nerd,$noodle,$froodle,); foreach my $item (@look_for) { $item =~ s/$i_seek/ /g; } ($name,$nerd,$noodle,$froodle,) = @look_for;

But this looks a little clumsy - maybe there's a better way?