williamp has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code;
Please would somebody tell me why Chuck is not returned.#!/usr/bin/perl -w use strict; my @array = ( { 'name' => 'Chuck', 'job' => 'roustabout' }, { 'name' => 'CowboyNeal', 'job' => 'code monkey' }); push @array, { 'name' => 'vroom', 'job' => 'stacking blocks' }; print $array[0]->{name}; sleep 30
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Arrays of Hashes
by davido (Cardinal) on Sep 23, 2003 at 19:04 UTC | |
Re: Arrays of Hashes
by jasonk (Parson) on Sep 23, 2003 at 19:02 UTC | |
by Anonymous Monk on Sep 23, 2003 at 19:08 UTC | |
by jasonk (Parson) on Sep 23, 2003 at 19:35 UTC | |
by DentArthurDent (Monk) on Sep 23, 2003 at 19:46 UTC | |
Re: Arrays of Hashes
by injunjoel (Priest) on Sep 23, 2003 at 23:49 UTC |