Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by MidLifeXis (Monsignor)
on Oct 25, 2012 at 12:31 UTC ( [id://1000847]=note: print w/replies, xml ) Need Help??


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

Very true, but the OP also was using my variables in their original code. our, local, or undeclared (as you demonstrated) would work.

--MidLifeXis

Replies are listed 'Best First'.
Re^5: Can I from within a module access variables from the calling program?
by kcott (Archbishop) on Oct 25, 2012 at 13:02 UTC

    All good - I see the connection: "it didn't work" was not referring to $main::foo (in the sentence preceding it) but rather $main::log_name (near the end of the post).

    -- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found