Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: get the list of methods and variables

by Khen1950fx (Canon)
on Jun 17, 2010 at 09:17 UTC ( #845170=note: print w/replies, xml ) Need Help??

in reply to get the list of methods and variables

To get a list of methods and variables from, I would use Devel::Symdump. Here's an example:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper::Concise; require Devel::Symdump; my @packs = qw(Data::Dumper::Concise); my $obj = Devel::Symdump->new(@packs); my @array = $obj->scalars; @array = $obj->arrays; @array = $obj->hashes; my $string = $obj->as_string; print $string, "\n";
I substituted Data::Dumper::Concise for Grandparent::Parent::Child; also, make sure that you "use" the package just below use warnings.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845170]
[marto]: running late today, get to work and people are just sitting around. "can't delete file, quota exceeded"
[Corion]: marto: Oy :-/
[Corion]: Ah, it's only "quota exceeded", not "filesystem full", so it's "merely" an administrative act to up the FS quota resp. inode quota
[Corion]: I've been on databases where I couldn't drop a table or delete rows because the DB was full. Not so much fun...
[marto]: meh, the admins are lazy, I just piped null to some old large log files, problem solved

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-01-24 09:58 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (203 votes). Check out past polls.