Help for this page

Select Code to Download


  1. or download this
    open(FILE,'<some_file.txt'); 
    for((<FILE>)[0..5]){
        print;
    }
    
  2. or download this
    open(FILE,'<some_file.txt') or die("cant open file: $!"); 
    my $data;
    ...
       }
    }
    close FILE;