blessed v unblessed references

Paul LeoNerd Evans leonerd at
Fri May 2 11:26:28 BST 2008

On Fri, 02 May 2008 10:47:14 +0100
Dirk Koopman <djk at> wrote:

> How do you safely tell whether a reference is blessed or not? When I say 
> safely, I mean without the runtime aborting.

use Scalar::Util qw( blessed );

Paul "LeoNerd" Evans

leonerd at
ICQ# 4135350       |  Registered Linux# 179460
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the mailing list