Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    /$1\n$2/xg;
    
    print "Replaced:\n", $_, "\n";
    
  2. or download this
    my $file="testdata.csv";
    open(FILE, $file) or
        die "Can't open $file: $!\n";
    select((select(FILE), $/ = undef)[0]);
    $_=<FILE>