Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: andye Re: How to test equality of hashes?

by iakobski (Pilgrim)
on Jun 20, 2001 at 15:27 UTC ( [id://89968]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ( %hash1, %hash2 );
    $hash1{"value$_"} = $_ for ( 1 .. 11 );
    ...
    value10 10 value1 1 value11 11 value2 2 value3 3 value4 4 value5 5 val
    +ue6 6 value7 7 value8 8 value9 9
    ========== [C:\users\jake\code\komodo\test3.pl] run finished. ========
    +==
    
  2. or download this
    sub flatten {
      my %hash = @_; 
      return join '', map "$hash{$_}$_", sort keys %hash;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (11)
As of 2024-04-18 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found