Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Array mysteriously growing (autovivification explained)

by Aristotle (Chancellor)
on Mar 11, 2006 at 07:47 UTC ( [id://535908]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    undef $_;
    $_->[0];
    print $_;
    __END__
    ARRAY(0x812f180)
    
  2. or download this
    my %bill;
    
    ...
        my ( $time, $worker, $project ) = split /\t/, $_;
        push @{ $bill{ $project }{ $worker } }, $time;
    }
    
  3. or download this
    my %bill;
    
    ...
    
        push @{ $bill{ $project }{ $worker } }, $time;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found