in reply to Re: open file for read/write
in thread open file for read/write
Minor nit, but a C-style for loop like that is really unnecessary here. You can do:
Or even more concisely:for $elem (@ARRAY) { $elem =~ s#find#replace#; }
s#find#replace# for @ARRAY;
In Section
Seekers of Perl Wisdom