in reply to Module Data Dump.
If you want to know what methods a class provids, you can use UNIVERSAL::can():use strict; use Data::DumpXML qw(dump_xml); my $foo = Foo->new(); dump_xml($foo); package Foo; sub new { return bless { scalar => 'foobar', array => [('a'..'d')], hash => { bar => { baz => 'qux'}}, }, shift; }
package main; my $no = Bar->new(); print "yes\n" if $no->can('do'); package Bar; sub new { bless {},shift } sub do { print "cool\n" }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|