Help for this page

Select Code to Download


  1. or download this
    # Doesn't DWIM
    $data =~ s/\012/\015/;
    $data =~ s/\015+/\015/;
    @records = split /\015/, $data;
    
  2. or download this
    # Works, but the map+chomp seems ugly
    @records = map {chomp $_;  $_} split /^/xms, $data;