[Israel.pm] how to get the data type of blessed object
Itamar Elem
elem at compugen.co.il
Tue Jul 13 10:46:38 PDT 2004
-
> >hi
> >how can i get the datatype(ARRAY,HASH,....) of blessed object
itamar
>print ref $x;
>Gabor
if $x is blessed to 'KUKU'
ref $x return 'KUKU'
but if see just now that you can do instead;
use attributes;
print attributes::reftype $x;
itamar
_______________________________________________
Perl mailing list
Perl at perl.org.il
http://perl.org.il/mailman/listinfo/perl
More information about the Perl
mailing list