Tie::File(3p) Perl Programmers Reference Guide Tie::File(3p)
Tie::File(3p) Perl Programmers Reference Guide Tie::File(3p) # Tie::File(3p) Perl Programmers Reference Guide Tie::File(3p) NNAAMMEE # Tie::File - Access the lines of a disk file via a Perl array SSYYNNOOPPSSIISS # use Tie::File; tie @array, 'Tie::File', filename or die ...; $array[0] = 'blah'; # first line of the file is now 'blah' # (line numbering starts at 0) print $array[42]; # display line 43 of the file $n_recs = @array; # how many records are in the file? ...