in reply to some help w/ hashes

What is {14260:771:0}? You can't assign a hash ref to that.

Let's assume you've got a hash ref with some sensible name ({14260:771:0} isn't a syntactically correct variable name), and you want to extract some data from it. ...In your example, it does look like you're working with a hash ref, not a named hash, so I'll proceed on that assumption.

my $href = { 'allPrices' => [ 8900, 22000 ], 'itemMetrics' => '2:2:20100:0:0:2:30900', 'bidCount' => '0', 'minPrice' => '20100', 'itemClass' => '2', 'buyPrice' => '30900', 'buyCount' => '2', 'numCount' => '2', 'minCount' => '2', 'itemName' => 'Bloodwoven Bracers of the Owl', 'itemPrices' => '8900:22000', 'bidPrice' => '0', 'randomID' => '771', 'baseNum' => '14260', 'mean' => '400', 'median' => '300', 'mode' => '400', 'stdDev' => '100' }; print $href->{stdDev}, "\n"; print $href->{allPrices}[0], "\n";

And the output is:

100 8900

I hope this helps. You will find this much and more in perlintro. This is required reading that will help you prior to following up in this thread with further clarification on your question.


Dave