Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "$!\n";
    
    open my $f, '<no_such_file' or die "Can't open no_such_file: $!";
    
  2. or download this
    Illegal byte sequence
    Can't open no_such_file: Illegal byte sequence at t.pl line 10.
    
  3. or download this
    local(\$", \$!) = (', ', 0);
    
  4. or download this
    Illegal byte sequence
    Can't open no_such_file: No such file or directory at t.pl line 10.