reset its pointer using $. = 0
No, that won't do what you're after, it resets the line counter but doesn't affect the file pointer. You want seek FH, 0, 0 instead.
Makeshifts last the longest.
In reply to Re^2: Randomizing Big Files
by Aristotle
in thread Randomizing Big Files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |