Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Perl - Hashes

by Perlseeker_1 (Acolyte)
on Oct 13, 2013 at 14:38 UTC ( [id://1058076]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my (%r1,%r2,%r3,%r4);
    my $Total;
    ...
    $r1{'Total'} = $Total;
    }
    close FILE;
    
  2. or download this
    A B 12.00
    C D 13.00
    E F 11.00
    G H 22.00
    
  3. or download this
    foreach my $file (@files) {
    open FILE, "<$dir/$file" or warn "Couldn't open file ($!) or file ($!)
    + not found\n";
    ...
    $r1{'Total'} = $Total;
    }
    close FILE;
    
  4. or download this
    1 A B 12.00
    2 C D 13.00
    3 E F 11.00
    4 G H 22.00
    
  5. or download this
    r1 --> hash contains data as ...
    Key    Value
    ...
    CD    43.00
    EF    24.00
    GH    26.00
    
  6. or download this
    Output - Final
        Name    F1.A    F2.B    F3.C    F4.D
    ...
        GH    22.00    34.00    20.00    26.00
    
    Total    58.00    81.00    40.00    155.00
    

Log In?
Username:
Password:

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

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

    No recent polls found