![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to handle both a STDIN pipe and file from command line?by ramlight (Friar) |
on Mar 13, 2013 at 19:40 UTC ( #1023289=note: print w/replies, xml ) | Need Help?? |
If you're going for the minimum in terseness; you can always use a temporary file: ./print_list >/temp/temp.txt; perl filter.pl temp.txt file.txt; rm temp.txt filter.pl would read from the first file, then use the contents to substitute in the second file:
In Section
Seekers of Perl Wisdom
|
|