Name
isa
Synopsis
$io
= $fd
->isa(type
)
Returns true if the reference is blessed into package
type
or inherits from that package. Can
be called as a static or object method call, or as a
subroutine:
UNIVERSAL::isa(val
,type
)
Returns true if the first argument is a reference and either of the following is true:
val
is a blessed reference and is blessed into packagetype
or inherits from packagetype
.val
is a reference to atype
of Perl variable (e.g.,'HASH'
).
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.