in reply to Re: Re^3: external subroutine
in thread external subroutine

However The variables ARE defined.
No, they're not. Your subroutine is frobbing %Data99::WasonE, which is a different variable than the lexical hash %WasonE in the main program. Welcome to namespaces.

Read perldoc -f package, perldoc -f my, "Packages" in perlmod, and "Private Variables via my()" in perlsub. To see what's happening, try using Data::Dumper to dump the values of your variables at various points.

Replies are listed 'Best First'.
Re: ^6: external subroutine
by Abunai (Initiate) on May 21, 2004 at 02:10 UTC
    Wow, you just took that to the next level. I'll take a look at namespaces, packages, private variables and data dumper. Haven't heard much about any of that.