No such thing as a small change | |
PerlMonks |
Re^2: exports -- which module exports are used? ($.)by tye (Sage) |
on Oct 03, 2013 at 17:08 UTC ( [id://1056777]=note: print w/replies, xml ) | Need Help?? |
There is probably a better solution, and I suspect it has something to do with the seek. Indeed. This is how I've fixed it:
(Updated: Actually, you also have to move that code so that it gets run before 'print' (for example) gets called, which is required else $. would be tied to STDOUT.) Alternately, you can do:
Or I could just open the file twice. - tye
In Section
Cool Uses for Perl
|
|