spmlingam has asked for the wisdom of the Perl Monks concerning the following question:
I am expecting, "XXX" will be added before and after each line in the /tmp/file.cat /tmp/file | perl -e 'print "XXX\n" ;print <>; print "XXX"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pipe output to perl
by ikegami (Patriarch) on Dec 04, 2008 at 12:11 UTC | |
|
Re: pipe output to perl
by Corion (Patriarch) on Dec 04, 2008 at 11:55 UTC | |
|
Re: pipe output to perl
by poolpi (Hermit) on Dec 04, 2008 at 15:36 UTC |