P is for Practical | |
PerlMonks |
Re: weird perl verion and/or OS problem with newlinesby asarih (Hermit) |
on Sep 24, 2003 at 20:51 UTC ( [id://294012]=note: print w/replies, xml ) | Need Help?? |
How big are these attachments? It looks like you're putting the entire content of <STDIN> to $str, and this might be causing the seg faults. I think the following (untested) code does what the code does, without consuming too much memory. Comments welcome.
Update: fixed the bonehead error of using next inside the loops.
In Section
Seekers of Perl Wisdom
|
|