According to everything I can find on the subject, if i were to open a file in mode +< I should be able to read the file, write to the file, and clobber existing (this i take to me overwrite current position of file).
Does this actually work? If so, is there a specific way you must reference the file, such as:
Can i do a "foreach $line (<fh>)" or
do i have to do a "while (<fh>)"
I realize I can read the file into an array and then replace the file with the altered contents of the array. However I'm in need of doing it with up to multiple gig file sizes.
B
Does this actually work? If so, is there a specific way you must reference the file, such as:
Can i do a "foreach $line (<fh>)" or
do i have to do a "while (<fh>)"
I realize I can read the file into an array and then replace the file with the altered contents of the array. However I'm in need of doing it with up to multiple gig file sizes.
B