Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: How to use Hash

Perl: How to use Hash
{filelink=14704}

# create an Hash
%myHash = ( "january"  => 31,
          	  "February"  => 28,
              "March" => 31,
              "April"  => 30,
              "May"  => undef );
# get<span id="more-107"></span> hash keys
@keysList = keys( %myHash );
# Browse the list of keys and display all the values ??associated
for ( $i = 0; $i  $myHash{ $keysList[ $i ] }n";
}
# Delete an item in the hash
delete( $myHash{ 'May' } );

Users who found this page were searching for:

  • Convert DataSet to Perl hash structure in C#
  • using hashes and gui perl
  • java hashing regular expressions
  • how to use hash in perl
  • perl my%
  • perl browse hash

No comments yet.

Leave a Comment