Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      print "aref is a href\n";
      my %hash = %$aref;
    }
    
  2. or download this
    if ( eval { my $foo = %$aref; 1 } ) {
      print "aref is a href\n";
      my %hash = %$aref;
    }
    
  3. or download this
    Pseudo-hashes are deprecated
    
  4. or download this
    sub isa_hash {
      no warnings 'void';
    ...
      return 1 if eval { @$arr; 1 };
      return;
    }
    
  5. or download this
    if ( eval { 1 + %$possible_href } ) {
        return 1;
    }