Double quotes usually work better for enclosing command-line scripts in windows shells. Also, windows shells typically add a newline, so you can leave off printing one at the end of your script. If you need \n to work, try using a qq string, like this:
perl -e "print qq[Howdy\nWorld\n]"In reply to Re: why does -e work and not \n on strawberry perl
by no_slogan
in thread why does -e work and not \n on strawberry perl
by Red Viper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |