Help for this page

Select Code to Download


  1. or download this
    say "Found it" if $hash{$key};
    
  2. or download this
    say "Found it" if exists $hash{$key};
    
  3. or download this
    my %hash;
    open my $INPUT, "<", $file_in or die "Cannot open $file_in $!"; # the 
    +die "..."  part is not needed if you use autodie.
    ...
    }
    close $INPUT;
    # You can use %hash for lookup now