in reply to Re: Using File::ReadBackwards or equivalent on pre-existing file handle
in thread Using File::ReadBackwards or equivalent on pre-existing file handle
p.s. am I better unshifting the lines then doing a print(FH) foreach (@arr); or pushing the lines then doing a print(FH) foreach (reverse @arr);? I suppose I'm asking, is pushing faster than unshifting (I assume yes), and does perl make a new array copy when it does a foreach (reverse ...), or is it clever enough just to iterate backwards over the array. I presume it's clever...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using File::ReadBackwards or equivalent on pre-existing file handle
by Anonymous Monk on Jun 26, 2014 at 00:57 UTC | |
|
Re^3: Using File::ReadBackwards or equivalent on pre-existing file handle
by Laurent_R (Canon) on Jun 26, 2014 at 06:19 UTC |