in reply to Do not use UNIVERSAL::isa this way; but why?
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(): {};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do not use UNIVERSAL::isa this way; but why?
by klekker (Pilgrim) on Dec 13, 2008 at 21:16 UTC |