in reply to •Re: What is %:: used for?
in thread What is %:: used for?
How do you think export does it? By direct symbol table access, accessing things like %:: and %CGI:: and so on!
While Exporter does access the symbol table directly by using typeglobs, it doesn't use any hash ending in ::. This is probably because it exports symbols, not symbol tables.
I searched both Exporter.pm and Exporter::Heavy.pm. The only reference to something ending in :: was:
in Exporter/Heavy.pm.Carp::croak("$_[0]Illegal null symbol in \@${1}::EXPORT") if $_[0] =~ /^Unable to create sub named "(.*?)::"/;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|