in reply to Multiple commands separated by commas

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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.