http://www.perlmonks.org?node_id=683611


in reply to Re^2: Issues trying to pass variable to SOAP::Lite
in thread Issues trying to pass variable to SOAP::Lite

perldoc -f use
perldoc -f import
  • Comment on Re^3: Issues trying to pass variable to SOAP::Lite

Replies are listed 'Best First'.
Re^4: Issues trying to pass variable to SOAP::Lite
by Anonymous Monk on May 01, 2008 at 16:22 UTC
    I'm guessing 'use' and 'import' operate the same as BEGIN in a persistent environment, they only get ran once per compile, is this correct? The problem being that BEGIN works great the first time the app is compiled, but with speedycgi(PerPerl) the program is only compiled once for multiple runs, so I cannot redefine that variable after the first run.
Re^4: Issues trying to pass variable to SOAP::Lite
by ayapejian (Novice) on May 01, 2008 at 16:58 UTC
    I'm guessing 'use' and 'import' operate the same as BEGIN in a persistent environment, they only get ran once per compile, is this correct? The problem being that BEGIN works great the first time the app is compiled, but with speedycgi(PerPerl) the program is only compiled once for multiple runs, so I cannot redefine that variable after the first run.
      import is a method, use it?