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

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

by HJO (Acolyte)
on Oct 25, 2012 at 13:40 UTC ( #1000871=note: print w/replies, xml ) Need Help??


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

Oh yeah, that sounds obvious now that you said it ^^"

I'm getting an error (hopefully the last one)...

Variable "$log_name" is not imported at ./script.pl line 53. Global symbol "$log_name" requires explicit package name at ./script.p +l line 53.
  • Comment on Re^6: Can I from within a module access variables from the calling program?
  • Download Code

Replies are listed 'Best First'.
Re^7: Can I from within a module access variables from the calling program?
by choroba (Bishop) on Oct 25, 2012 at 13:45 UTC
    OK:
    1. Declare the variable with our.
    2. In BEGIN, set its value.
    3. use the module.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      And it's perfect !

      Thanks a lot choroba :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000871]
help
Chatterbox?
[marto]: if you're living in the cloud, you're going to get rained on :P
[Veltro]: feasible in the sense of 'making money'?
[marto]: if your app just calls a remote or third party service to do the task, you app does not 'do the task', it's just a messenger
[marto]: in the sense that for various values of "a while ago" it would not have been possible (and arguable still isn't) to have a fingerprint of every piece of commercially released music to compare against.
[marto]: a co-worker refers to the late 1980s as "a while ago"
[Veltro]: Like I said before, I ment the solution as a whole
[Veltro]: People thought it was not possible.
[marto]: and until recently it wasn't and arguable (for some samples) probably isn't
[Veltro]: How did we get here? Oh yeah, advertisement. So let's get back there. What I ment to say is that I think it is possible to create an algorithm that filters out advertisement
[Veltro]: And yes, maybe your decoder needs the cloud to do so.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2018-05-24 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?