Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Inserting an array in an array of hashes

by toolic (Bishop)
on Oct 18, 2012 at 17:28 UTC ( #999782=note: print w/replies, xml ) Need Help??

in reply to Inserting an array in an array of hashes

use warnings; use strict; my @file_attachments = ( {file => '', price => ['10.00'], desc => 'the +1st test'}, {file => '', price => ['12.00', '12.50'], desc => 'the +2nd test'}, {file => '', price => ['13.00'], desc => 'the +3rd test'}, {file => '', price => ['14.00'], desc => 'the +4th test'} ); for (0 .. 3) { print "@{ $file_attachments[$_]{price} }\n"; } __END__ 10.00 12.00 12.50 13.00 14.00

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999782]
[Your Mother]: I think Trump might be better specifically because no one respects him so he won't get his way the way the others did.
[Your Mother]: (I certainly did not vote for him and have been an outspoken critic of his for three decades, by the by.)
[erix]: I'd like Russia threatened a bit more, flattered a bit less
[Your Mother]: The last two regimes killed a million, displaced 10 million, torture prisons, and ruined countries… somehow it's magically bad _now_.
[erix]: what/who are the last two regimes?
[Your Mother]: Bush/Obama. 15 straight years of warfare, torture, etc, etc.
[Your Mother]: All caused by the political fallout of Carter/Reagan when the Afghan chickens came home to roost on 9/11.
[Your Mother]: US foreign policy is toxic and like a broken record.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-01-20 01:07 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.