Help for this page

Select Code to Download


  1. or download this
    $/ = "\$\n";
    open BIGFILE, yada yada or die;
    ...
      close SMALLFILE;
    }
    close BIGFILE;
    
  2. or download this
    use File::Slurp qw( write_file );
    
    ...
    while (<BIGFILE>) {
      write_file(split /\n/, $_, 2);
    }