Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Hash Keys (strings or numbers?)

by robot_tourist (Hermit)
on Nov 14, 2001 at 14:55 UTC ( #125289=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $key1 = '00001';
    my $key2 = 1;
    ...
       $hash3{$key1} = 3;
    my %hash4;
       $hash4{$key2} = 4;
    
  2. or download this
    00001 == 1       That is: $key1 == $key2
    00001 ne 1       That is: $key1 ne $key2
    ...
    $hash3{$key2} is undef
    $hash4{$key1} is undef
    $hash4{$key2} == 4
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://125289]
help
Chatterbox?
[davido]: And remember; time is hard. :) As soon as you think, I've got this, you'll discover that time is harder than that. :)
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed
[Corion]: 1nickt: That one sounds sensible as it will tell you when it found an error
[1nickt]: Throws on error, I believe

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2017-03-23 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (287 votes). Check out past polls.