yitzle wrote: > What's the best way to apply a RegEx to an array? For loop? > @arr = qw/dc2ds reew12dsfa df2fdw/; > s/$find/$replace/ for(@arr);
Yep, you can do that. Or use map() map(s/$find/$replace/, @arr); -- [EMAIL PROTECTED] [pgp: 8A8FA6DE] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/