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?

Replies are listed 'Best First'.
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 ?