ref, e.g., will return 'ARRAY' for an unblessed array reference
Which is amusing:
{ package ARRAY; sub new { return bless \shift; } } print join ' ', ref \@{[]}, ref ARRAY->new ("something"), "\n"; __END__ ARRAY ARRAY
--
David Serrano
In reply to Re^2: Retrieving classname from an object
by Hue-Bond
in thread Retrieving classname from an object
by monkeyhelper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |