in reply to Re: Is there a way to find out what kind of ref an object is?
in thread Is there a way to find out what kind of ref an object is?
use overload '%{}'=>sub{{}}; sub new { bless [] } $ref = new(); eval { keys %$ref } ; print "is it a hash?" unless $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is there a way to find out what kind of ref an object is?
by diotalevi (Canon) on Dec 07, 2005 at 03:31 UTC |