Try it this way:
perl -e "for $i (1..9){print( 'Next' ), next if $i == 5;print $i}" 1234Next6789
Note the parens around the print arg, and remember to switch the quotes around for *nix.
In reply to Re: Multiple commands separated by commas
by BrowserUk
in thread Multiple commands separated by commas
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |