Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl 
    use strict;
    ...
    print "First line of $file: $first";
    close $infh;
    exit;
    
  2. or download this
    $ ./fo.pl 
    Could not open /no_such_file.txt: No such file or directory. Please pr
    +ovide another:
    ...
    Could not open foobar: No such file or directory. Please provide anoth
    +er:
    /etc/hosts
    First line of /etc/hosts: 127.0.0.1        localhost.localdomain local
    +host