Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    touch( "dummy" ) or die "touch: $!";
    ls( "dummy" ) or die "first ls: $!";
    ls( "dummy" ) or die "second ls: $!";
    
  2. or download this
    $ rm dummy
    $ perl shell-test.pl
    ...
    $ touch dummy
    $ perl shell-test.pl
    touch: Illegal seek at shell-test.pl line 6.