Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Variable Scoping in Perl: the basics

by thecap (Initiate)
on Nov 11, 2004 at 03:00 UTC ( #406891=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # inc.pl
    use vars qw($foo);
    $foo = "hello";
    1;
    
  2. or download this
    # t.pl
    use strict;
    use vars qw($foo);
    do 'inc.pl';
    print $foo, "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-09-29 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (544 votes). Check out past polls.