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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/