Help for this page

Select Code to Download


  1. or download this
    perl myprog.pl fred.txt - barney.txt
    
  2. or download this
    my $fname = '-';
    ...
    ...
            print "current file name: $fname\n";
            die ".....$!";
        }
    
  3. or download this
    current file name: -
    .....No such file or directory ...
    
  4. or download this
    use strict;
    use warnings;
    ...
    line 3
    line 2
    line 1  #end output from data1.txt