Perhaps the confusion lies in the fact that the first example is intended to be in a script file, while the second is intended to run from the command line?
Full code for the first one would be something like
Obviously your second one is working, so there is not much question about that...#!(path/to/perl.exe) use strict; use warnings; print "Howdy, World\n";
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct
In reply to Re: why does -e work and not \n on strawberry perl
by wjw
in thread why does -e work and not \n on strawberry perl
by Red Viper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |