Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Can I from within a module access variables from the calling program?

by kcott (Chancellor)
on Oct 25, 2012 at 12:20 UTC ( #1000843=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -le 'local $foo = "whatever"; print $main::foo;'
    whatever
    
  2. or download this
    $ perl -le 'our $foo = "whatever"; print $main::foo;'
    whatever
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-12-16 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (448 votes). Check out past polls.

    Notices?