develooper Front page | perl.perl5.porters | Postings from December 2009

Re: Pod::Abstract 0.19 generating warnings on 5.11.3

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
December 25, 2009 21:20
Subject:
Re: Pod::Abstract 0.19 generating warnings on 5.11.3
Message ID:
20091226051558.GA27612@klangraum.plasmasturm.org
* Jerry D. Hedden <jdhedden@cpan.org> [2009-12-23 20:00]:
> No, isa() and can() should not be called as procedures. They
> are methods: $item->isa('thing') for example.

Mind that you also have to wrap those in `eval` or guard them
with a `blessed` check. Would be nice if core shipped functions
to wrap up the correct behaviour concisely and efficiently…
related to the Scalar::Util-inspired discussion about having
a way to make XSUBs into ops.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About