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 (Cardinal) 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 :)