Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: File end marker problemby robartes (Priest) |
on Apr 01, 2003 at 12:05 UTC ( [id://247216]=note: print w/replies, xml ) | Need Help?? |
Try this:
Update: This only works if the \x1a is on a line by itself. If not, try this: This is however virtually the same thing as yours. It works for me on a file with random \x1a scattered throughout it (as does your code if I drop the binmode. If you're on Unix, you don't need it, and you would need to put it after the open of concatfile for it to work as well). CU
In Section
Seekers of Perl Wisdom
|
|