Help for this page

Select Code to Download


  1. or download this
    
    my $file_path = '/some/path/file.txt';
    ...
    # read the file and close it as soon as you do not need it anymore
    
    close $fh or die "error closing filehandle! $!";
    
  2. or download this
    use strict;
    use warnings;
    ...
    to 
    Perl