On Aug 7, Dan Muey said: >So would this return the methods that the $obj sent to dump_functions >then, only shorter? > >sub dump_functions { > use Class::Inspector; > my $r = ref $_[0]; > return [ grep /^$r/, @{ Class::Inspector->methods($r,'full','public')} ] >}
Yeah. The 'return' keyword can even be left out. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]