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 |