- or download this
open (FILE,"<$filename") or die "Cannot open: $!";
map{s/stuff/other_stuff/g;print}(<FILE>);
- or download this
open (FILE,"<$filename") or die "Cannot open: $!";
@ary = map{s/stuff/other_stuff/g}(<FILE>);
- or download this
perl -pe 's/stuff/other_stuff/g' filename.txt