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

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

by HJO (Acolyte)
on Oct 29, 2012 at 11:48 UTC ( #1001348=note: print w/ replies, xml ) Need Help??


in reply to Re^4: 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?

Thanks for the perldoc link, I've read it and will maybe hopefully understand its implications someday...

About your code, I think I got it (not quite sure ^^'), but it's not really an anwser to my issue... I'm looking at a way to have the same logfile name for my script and module while I'm running them... And I'm afraid that as you had, if there's a 1 second delay, the two files would not have the same name...


Comment on Re^5: Can I from within a module access variables from the calling program?
Re^6: Can I from within a module access variables from the calling program?
by Anonymous Monk on Oct 29, 2012 at 12:34 UTC

    if there's a 1 second delay, the two files would not have the same name...

    give gmtime $^T

      FWIW, you're only supposed to configure the logger in one place once, the app

        Somebody already told me that, but the problem is that I don't know how to do so... I can't log things in the module while my configuration is in the main script... Do you know how to fix it ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-06 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls