What do you think about using UNIVERSAL::isa on unblessed reference. Is it safe (recommendable)?
# checking whether argument is a subroutine reference if (!UNIVERSAL::isa($callback, 'CODE')){ } # popping last option parameter my $options_ref = @_ && UNIVERSAL::isa($_[-1], 'HASH')? pop(): {};
In reply to Re: Do not use UNIVERSAL::isa this way; but why?
by roman
in thread Do not use UNIVERSAL::isa this way; but why?
by klekker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |