Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Non-traditional, Line by Line Compilation in Perl

by Anonymous Monk
on Dec 07, 2011 at 12:01 UTC ( [id://942231]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -c -e " use strict; use warnings; { $foo = 1 } { $bar }} "
    Global symbol "$foo" requires explicit package name at -e line 1.
    Global symbol "$bar" requires explicit package name at -e line 1.
    Unmatched right curly bracket at -e line 1, at end of line
    syntax error at -e line 1, near "}}"
    -e had compilation errors.
    
  2. or download this
    $ perl -e " use strict; use warnings;  { our $foo = 1 } { our $bar } p
    +rint 666"
    666
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://942231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found