blessed v unblessed references

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


On Fri, 02 May 2008 10:47:14 +0100
Dirk Koopman <djk at tobit.co.uk> 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 leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://london.pm.org/pipermail/london.pm/attachments/20080502/f56a7940/signature-0001.pgp


More information about the london.pm mailing list