|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^4: File seekby johngg (Abbot) |
| on Feb 25, 2013 at 11:55 UTC ( #1020502=note: print w/ replies, xml ) | Need Help?? |
|
From the documentation The values for WHENCE are 0 to set the new position in bytes to POSITION; 1 to set it to the current position plus POSITION; and 2 to set it to EOF plus POSITION, typically negative. I suspect your error message is because you are trying to seek to a negative offset from the beginning of the file. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||