HOWTO: print methods of an object in perl

less than 1 minute read

Pretty simple:

#DON'T use strict;
use Data::Dumper;
my $object = ....;
print "Instance METHOD IS  " . Dumper( %{ref ($object)."::" }) ;

In Python it’s even easier :)

Comments