Help for this page

Select Code to Download


  1. or download this
    $ perl -e'
       my %h = ( a => 4, c => 6 );
    ...
    '
    exists didn't return false for elements found in a hash.
    exists can return false for elements found in an array.
    
  2. or download this
    $ perl -Mv5.14 -e'my @a; \$a[0]; say exists( $a[0] ) || 0;'
    1