in reply to Modifying an Element in an Array of Hashes
This is a hashref, not a hash. I'm curious as to why you didn't get an error on this before the one on line 16. under activestate 5.6.1 build 631, once this is corrected (change braces to parens), it outputsmy %hash = { 'node_id' => '1', 'node_title' => 'whiskey', 'node_author' => 'otis', 'node_content' => 'the path to wisdom is littered with empty bottle +s', };
update :$VAR1 = 'the path to wisdom is littered with empty bottles';
This is a hash, see the parens? like my %hash=(), but a hashref uses braces : my $href={}my %hash = ( 'node_id' => '1', 'node_title' => 'whiskey', 'node_author' => 'otis', 'node_content' => 'the path to wisdom is littered with empty bottle +s', );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(shockme) Re: Re: Modifying an Element in an Array of Hashes (boo)
by shockme (Chaplain) on Apr 18, 2002 at 12:32 UTC |