Help for this page

Select Code to Download


  1. or download this
    Can't locate object method "edit" via package "IO::File" at 
    searchandreplace.pl line 65 (#1)
    ...
    (F) You called a method correctly, and it correctly indicated a packag
    +e
    functioning as a class, but that package doesn't define that particula
    +r
    method, nor does any of its base classes.  See perlobj.
    
  2. or download this
    sub search_and_replace {
      open my $target_file, "<", $_;
    ...
        }
        close $target_file;
    }