Keep It Simple, Stupid | |
PerlMonks |
Re^5: Calling module function from within a blessed moduleby LanX (Saint) |
on Jan 03, 2021 at 23:57 UTC ( [id://11126249]=note: print w/replies, xml ) | Need Help?? |
I didn't read the thread and can't comment on the discussion and motivation, but this caught my eye: > Naming a package 0 is a fatal, compilation error: Yeah but like many things in Perl this can be fabricated. Packages are just entries with trailing :: in main's STASH. And its possible to alias STASH entries via type globs. So create a temporary package, alias it to "0::" and delete the temp package. Mission accomplished! :)
Cheers Rolf PS: Please don't crucify me now ... I haven't met my Maria Magdalena yet!
In Section
Seekers of Perl Wisdom
|
|