in reply to Use of typeglob in package import subroutine
That's just the way it works. Yeah, I know, it's weird.
The typeglob assignment is usually what you want in exporters anyway, as it creates an alias between the two variables, rather than just copying data from one to the other.
Also, \${"${package}::pet"} is probably better written as \$pet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of typeglob in package import subroutine
by GG1985 (Initiate) on Apr 29, 2014 at 18:27 UTC | |
by LanX (Saint) on Apr 29, 2014 at 18:33 UTC |