Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: why does -e work and not \n on strawberry perlby no_slogan (Deacon) |
on Jun 05, 2014 at 03:31 UTC ( [id://1088770]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|