Help for this page

Select Code to Download


  1. or download this
    open(FH, "< $filename") or die ("Can't read file: $!\n");
    @the_file = <FH>;
    
  2. or download this
    use IO::File;
    
    $fh = IO::File->new($filename, "r+")
         or die "Couldn't open $filename for read & write: $!\n";