Help for this page

Select Code to Download


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