Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Grabbing Variable Names

by pfaut (Priest)
on Jan 11, 2003 at 21:36 UTC ( [id://226131]=note: print w/replies, xml ) Need Help??


in reply to Grabbing Variable Names

You could probably work something up from perl's symbol tables. The root is at %$main::. Lookat perldoc perlmod or Programming Perl page 293 under 'Symbol Tables'.

For a quick dump of the symbol table, try this.

perl -MData::Dumper -e "print Dumper(\%main::)"
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re^2: Grabbing Variable Names
by Aristotle (Chancellor) on Jan 11, 2003 at 23:19 UTC
    That's not going to help with lexicals though. You might have more luck with one of the B::* modules.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-18 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found