|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Slicing the output of a commandby hippo (Archbishop) |
| on Jul 09, 2015 at 16:14 UTC ( [id://1133981]=note: print w/replies, xml ) | Need Help?? |
|
Your experiment is a good one and your interpretation of the results is sound. So, if you only want the first few lines either use head instead of cat, or better yet just open the file within perl instead of shelling out and read a few lines that way.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||