in reply to isa for ref?

> why would one want to do this

Maybe because of

my $ref = bless sub {}, 'MyClass'; say ref($ref) eq 'CODE' ? 1 : 0; say UNIVERSAL::isa($ref, 'CODE') ? 1 : 0;
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: isa for ref?
by LanX (Saint) on Jun 20, 2020 at 22:39 UTC
    yeah, but that's why we have Scalar::Util::reftype() now

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery