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

Re^2: Compare Values in HoH

by MidLifeXis (Monsignor)
on Apr 06, 2006 at 18:09 UTC ( #541689=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $entry (@file1) {
       $index{$entry} = 1
    ...
    foreach my $entry (@file2) {
       $index{$entry} += 2;
    }
    
  2. or download this
    foreach my $entry (@file1) {
       $index{$entry} = 1
    ...
       # '||0' is to still the warnings under 'use warnings'
       $index{$entry} += 2 if (($index{$entry}||0) < 2);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541689]
help
Chatterbox?
[1nickt]: yes, comma-sep (if you mean the html input attr). This ^ is for the human label :-)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-07-22 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.