package Foo; our $VERSION = 0.1; sub new { bless {}, shift } sub foo { print "i'm a method of Foo\n" } package main; for my $sym (keys %Foo::) { print "method - $sym\n" if *{"Foo::$sym"}{CODE}; } __output__ method - foo method - new
_________
broquaint
In reply to Re: Re: Re: query for methods?
by broquaint
in thread query for methods?
by ph0enix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |