This dosen't work for me because perl tries to interpret the pattern as a file name, but I found it does not use this behavior when using <STDIN> instead of <>.
29:
# 5 0 5 0 5 9 print grep/$ARGV[0]/,<STDIN>;
In reply to Re^2: perl grep clone
by pythondude
in thread perl grep clone
by pythondude
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |