Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Global Variable

by lamp (Chaplain)
on Sep 22, 2008 at 14:39 UTC ( #713031=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    require 'file2.pl';  # you can use 'do' also
    
    print "after $error \n";    
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    
    our $error = 20;
    
  3. or download this
    before 10
    after 20
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://713031]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-12-17 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (462 votes). Check out past polls.

    Notices?