Help for this page

Select Code to Download


  1. or download this
    use 5.032;
    sub foo {
    ...
    }
    open (my $foo, '<', 'doesnotexist.dat') or foo($!);
    open (my $bar, '<', 'doesnotexist.dat') or bar($!);
    
  2. or download this
    foo found: ''
    bar found: 'No such file or directory'