Help for this page

Select Code to Download


  1. or download this
    my $o = bless {}, 'ARRAY';
    print "$o isa array" if UNIVERSAL::isa($o, 'ARRAY');
    
    __END__
    ARRAY=HASH(0x759c) isa array
    
  2. or download this
    use Scalar::Util qw(reftype);
    
    ...
    reftype of ARRAY=HASH(0x759c) is HASH
    reftype of ARRAY(0x7650) is ARRAY
    reftype of Foo=ARRAY(0x74b8) is ARRAY