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.