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.
In reply to Re: Re: Re^3: external subroutine
by mrpeabody
in thread external subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |