- or download this
if(ref($requires) ne 'ARRAY') {
- or download this
if( ! eval { @$requires; 1 } ) { # Can't be used as an array re
+f
- or download this
*isa= UNIVERSAL::isa;
#...
if( isa( $ref, "CODE" ) ) {
- or download this
sub isArray { eval { @{$_[0]}; 1 } }
sub isHash { eval { %{$_[0]}; 1 } }
sub isScalar { eval { ${$_[0]}; 1 } }
sub isCode { UNIVERSAL::isa( $_[0], "CODE" ) }
- or download this
sub getCommonRefType
{
...
return "SCALAR" if isScalar($ref1) && isScalar($ref2);
return "";
}