in reply to File seek
You're not error checking
$ perl -le " open my($fh), 1 or die$!; seek $fh, 1,0 or die$!; " $ perl -le " open my($fh), 1 or die$!; seek $fh, -1,0 or die$!; " Invalid argument at -e line 1.
You have the file size, if you want to seek to -500, do some math :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File seek
by Anonymous Monk on Feb 25, 2013 at 10:37 UTC | |
by Anonymous Monk on Feb 25, 2013 at 10:45 UTC | |
by johngg (Canon) on Feb 25, 2013 at 11:55 UTC | |
by vinoth.ree (Monsignor) on Feb 25, 2013 at 11:50 UTC |