See perlrun, especially about the -p and -n switches. Your code does not contain any loop and hence Perl will only print XXX two times.
In reply to Re: pipe output to perl
by Corion
in thread pipe output to perl
by spmlingam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |