How do I retrieve the 'type' of an object



I'm looping through a set of objects, and I want to get the type of object, ( eg GtkEntry ) and then decide what to do based on the type.
How do I do that?
eg:

    foreach my $field (@{$self->{fieldlist}}) {
my $widget = $self->{form}->get_widget($field); # Need to figure out what type of object $widget is }


--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 51612

The following links have been placed here by the NUS Consulting internal spam filter and are for use by NUS Consulting staff only.
Please ingore these links.
Spam
Not spam
Forget previous vote


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]