Help for this page

Select Code to Download


  1. or download this
    open FILE_HANDLE, "<", $File_Name or die "probs opening $File_Name: $!
    +\n";
    while (<FILE_HANDLE>) { # defaults to one line at a time
        # do something to this line that is now
        # contained in the $_ variable
    }
    
  2. or download this
    # imagine each record starts with "New Record"
    local $/="New Record";
    ...
        # do something to this block now
        # contained in the $_ variable
    }