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

So the begin block worked as mentioned, however it did break my script when placed in a persistent environment, since the begin block is only activated once in this environment. So ... anyone else have some ideas? If autodispatch is broken, is there a way around this?
  • Comment on Re^2: Issues trying to pass variable to SOAP::Lite

Replies are listed 'Best First'.
Re^3: Issues trying to pass variable to SOAP::Lite
by Anonymous Monk on Apr 30, 2008 at 04:23 UTC
    perldoc -f use
    perldoc -f import
      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.
      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?