in reply to Re^4: Calling module function from within a blessed module
in thread Calling module function from within a blessed module

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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

PS: Please don't crucify me now ... I haven't met my Maria Magdalena yet!