Assuming I was talking about the general case, how is -p less flexible? And how does -l matter?
perl -nle "print bar($_) unless foo($_)"
perl -ple "next if foo($_); $_=bar($_)"
In reply to Re^4: How to write a program to read stdin or command line?
by ikegami
in thread How to write a program to read stdin or command line?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |