Help for this page

Select Code to Download


  1. or download this
    open(my $filehandle, '>', 'C:\TEST.txt');  <--- OK
    print $filehandle "AAA\n";                 <--- OK
    print $filehandle "BBB\n";                 <--- OK
    print $filehandle "CCC\n";                 <--- disk write error
    
  2. or download this
    eval { print $filehandle ....... }
    if ($@) { error hnadling }