Awesome. Thanks Alan and Shawn
Cheers, Parag On Thu, Jan 6, 2011 at 6:52 PM, Alan Haggai Alavi <alanhag...@alanhaggai.org> wrote: > Hi Parag, > > On Friday 07 January 2011 07:55:38 Parag Kalra wrote: >> Anyways I want to know is there any function or a way that would >> reveal all the properties of the object. > > Introspect the symbol table hash (stash): > > use strict; > use warnings; > > use Data::Dumper; > use Foo::Bar; > > my $fob = Foo::Bar->new(); > my $package = ref $fob; > > { > no strict 'refs'; > print Dumper \%{"${package}::"}; > } > > Regards, > Alan Haggai Alavi. > -- > The difference makes the difference. > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/