hsfrey has asked for the wisdom of the Perl Monks concerning the following question:
If I type: perl -e 'print "XXX";' I get the error message: Can't find string terminator "'" anywhere before EOF at -e line 1. (That's a single quote between 2 double quotes.)
I get the same error if I type: perl -e 'print $a;'
I get no error if I type: perl -e '$a=3;', but of course no output either.
Does anyone have any idea what the problem is or how I could debug the problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: command line error
by davido (Cardinal) on Apr 12, 2012 at 06:21 UTC | |
by hsfrey (Beadle) on Apr 12, 2012 at 21:08 UTC | |
by Riales (Hermit) on Apr 12, 2012 at 21:35 UTC | |
|
Re: command line error ( Can't find string terminator "'" anywhere before EOF at -e line 1. )
by Anonymous Monk on Apr 12, 2012 at 06:54 UTC | |
|
Re: command line error
by rovf (Priest) on Apr 12, 2012 at 10:04 UTC |