Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: print package's symble table

by Discipulus (Canon)
on Jul 22, 2014 at 08:51 UTC ( [id://1094599]=note: print w/replies, xml ) Need Help??


in reply to print package's symble table

uhuuh black magic.. i like it (i used with not full understanding here, check some useful links).

Why pass the package name? you have already at your disposal (on > 5.16 you have __SUB__ too, view perldata):
sub printSimbleTable{ #my $package = shift; print "I am in printSimbleTable of: ".__PACKAGE__."\n"; no strict qw (refs); print map {"$_\n"} keys %{__PACKAGE__."::"} }

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1094599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found