For some reason, I thought you could only use that once per program. That's not true.
$ printf 'foo\nbar\n' >file $ perl -e' for (1..2) { local @ARGV = qw( file ); local $^I = ""; print ">$_" while <>; } ' $ cat file >>foo >>bar
Seeking work! You can reach me at ikegami@adaelis.com
In reply to Re^3: help declaring variables within perl one-liner
by ikegami
in thread help declaring variables within perl one-liner
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |