Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Perl Script New Line problem

by Anonymous Monk
on Dec 21, 2011 at 16:29 UTC ( #944658=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Script New Line problem
in thread Perl Script New Line problem

not by default, but only if you enable modern perl, say through Modern::Perl or -E

$ perl -e " say 1 Number found where operator expected at -e line 1, near "say 1" (Do you need to predeclare say?) syntax error at -e line 1, near "say 1" Execution of -e aborted due to compilation errors. $ perl -E " say 1 1

Replies are listed 'Best First'.
Re^3: Perl Script New Line problem
by perl.j (Pilgrim) on Dec 21, 2011 at 17:26 UTC
    Or he can simply say use 5.12.x.
    --perl.j

      Did you try it?

      $ perl -e " use 5.12.x; " syntax error at -e line 1, near "use 5.12" Execution of -e aborted due to compilation errors.

      Suggesting say is nice, if you explain how to actually enable it :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://944658]
help
Chatterbox?
[erix]: they should lean to gnash their teeth a bit instead of writing more ^Re:NN-nodes :)
[erix]: *learn
[erix]: comic relief: how to start a riot and a fortune at the same time
[beech]: :) thats too generous to jdporter, don't start none won't be none -- there is about two decades (rounding up) worth of "ineffective" node titles -- leave the pope alone :p
[erix]: infallibility breeds inquisition

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-01-17 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (159 votes). Check out past polls.