Help for this page

Select Code to Download


  1. or download this
    my $in_file = "$logfile";
    open my $in_fh, '<', $in_file or die "Could not open file $in_file: $!
    ++";
    ...
    close $in_fh  or die "Could not close file $in_file: $!";
    close $out_fh or die "Could not close file $out_file: $!";
    
  2. or download this
    C:\code>perl -wc a.pl
    syntax error at a.pl line 37, near "/^(\d\d\d\d-\w\w\w-\d\d \d\d)/)"
    a.pl had compilation errors.