toniax has asked for the wisdom of the Perl Monks concerning the following question:
Can this line print "$array[0]{car}, $array[1]{car}\n" be condensed ?@array = ( { car => "ford", color => "red", pet => "dog", }, { car => "honda", color => "blue", pet => "cat", }, { car => "dodge", color => "orange", pet => "spider", }, ); { print "$array[0]{car}, $array[1]{car}\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array of hashes
by GrandFather (Saint) on Dec 05, 2010 at 21:00 UTC | |
|
Re: array of hashes
by BrowserUk (Patriarch) on Dec 05, 2010 at 18:07 UTC | |
by Anonymous Monk on Dec 05, 2010 at 18:47 UTC | |
|
Re: array of hashes
by punkish (Priest) on Dec 06, 2010 at 02:36 UTC | |
|
Re: array of hashes
by shawnhcorey (Friar) on Dec 06, 2010 at 01:08 UTC | |
|
Re: array of hashes
by biohisham (Priest) on Dec 05, 2010 at 20:23 UTC | |
|
Re: array of hashes
by jandrew (Chaplain) on Dec 10, 2010 at 02:42 UTC |