Help for this page

Select Code to Download


  1. or download this
    open my $ifh, '<', $filename
      or die "Cannot open '$filename' for reading: $!";
    ...
    foreach my $chunk ( split /Separator\s+\d+/, scalar(<$ifh>) ) {
      # yay chunk!
    }
    
  2. or download this
    # I might be way off-base here:
    no warnings 'uninitialized';
    ...
        $buffer = '';
      }
    }