Help for this page

Select Code to Download


  1. or download this
    open my $file_handle, '<', 'filename.txt' or die $!;
    while( <$file_handle> ) {
    ...
        # do something with the line held in $_
    }
    close $file_handle;