Help for this page

Select Code to Download


  1. or download this
    for my $key (keys %hash){
    #...
    ...
    for my $key (keys %{$hashref}){ # dereferencing a hash
    #...
    }
    
  2. or download this
    exists argument is not a HASH or ARRAY element
    
  3. or download this
    exists argument is neither a HASH element nor an ARRAY element
    
  4. or download this
    if (exists $hash{some_key}){
    #..
    ...
    if (exists $hashref->{some_key}){ # dereferencing a hash element using
    + an arrow
    #..
    }