go ahead... be a heretic | |
PerlMonks |
Re: Grep Issuesby eyepopslikeamosquito (Archbishop) |
on Dec 17, 2004 at 06:29 UTC ( [id://415563]=note: print w/replies, xml ) | Need Help?? |
I'd say the head command exits as soon as it's written its one line. After that, grep is writing to a pipe with no reader (because head has exited) -- hence the "broken pipe". Why not write the whole thing in Perl? You don't need no damn grep and head if you've got perl. :-)
In Section
Seekers of Perl Wisdom
|
|