Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Array mysteriously growing (autovivification explained)

by Aristotle (Chancellor)
on Mar 11, 2006 at 07:47 UTC ( #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
Node Status?
node history
Node Type: note [id://535908]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-05-27 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?