Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Is this a bug in Perl scope?

by trwww (Priest)
on Jul 23, 2012 at 21:29 UTC ( [id://983238]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perldoc -f my
    A "my" declares the listed variables to be local
    (lexically) to the enclosing block, file, or "eval".
    
  2. or download this
    $ perl
    use strict;
    ...
    print "$var\n";
    Global symbol "$var" requires explicit package name at - line 16.
    Execution of - aborted due to compilation errors.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found