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...
In reply to Re^2: Using File::ReadBackwards or equivalent on pre-existing file handle
by HYanWong
in thread Using File::ReadBackwards or equivalent on pre-existing file handle
by HYanWong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |