Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Anonymous Monk
on Oct 29, 2012 at 10:47 UTC ( #1001342=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?

And the use parent, what is it doing precisely please ?

If you're really interested, read about it :) perldoc parent

output

testcase (creates 3 logfiles on each run)


Comment on Re^4: Can I from within a module access variables from the calling program?
Select or Download Code
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

    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...

      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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2014-11-26 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls