Htbaa has asked for the wisdom of the Perl Monks concerning the following question:
I've figured out how I can access the stuff like BERICHT, NAAM and IP. But I can't get 'rm' and 'dummy'. To get the contents of the array in this scalar I use$VAR1 = [ [ { 'BERICHT' => 'test', 'IP' => '127.0.0.1', 'NAAM' => 'test' }, { 'BERICHT' => 'test', 'IP' => '127.0.0.1', 'NAAM' => 'Htbaa' } ], { 'rm' => 'start', 'dummy' => '' } ];
But how can I get 'rm' and 'dummy' ? I've tried a lot of different stuff but somehow can not get the data. All the examples on the web use a hash (instead $VAR1 it's %VAR1). But as long as I kind manipulate the result of XLMin() (or can I?) I have no idea on how to reach that data. Any help is more than welcome.foreach (@{$ref}) { print "<b>". $_->{'NAAM'} . "</b><br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing data in scalar with hashes and arrays
by grep (Monsignor) on Nov 25, 2006 at 21:46 UTC | |
by Htbaa (Sexton) on Nov 25, 2006 at 21:51 UTC | |
|
Re: Accessing data in scalar with hashes and arrays
by NetWallah (Canon) on Nov 25, 2006 at 22:04 UTC | |
by Htbaa (Sexton) on Nov 25, 2006 at 22:26 UTC |