in reply to Re^2: How to get an acceptable H::T AoH ref
in thread How to get an acceptable H::T AoH ref
You'll get something along the lines of:print Dumper( $allshows );
which is what you want to pass to H::T - an AoH.$VAR1 = [{ 'title' => 'All Bets Are Off', 'type' => '2', 'number' => '215', 'id' => '1' }, { 'title' => 'Who Is My Neighbor', 'type' => '2', 'number' => '217', 'id' => '2' } ];
The reason why your last try isn't working is because you're doing string concatenation. The result of assigning an array reference to a string is the ARRAY(0x83db738) crap, which is the type and the memory address of the reference. That isn't what you're looking for, I suspect.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to get an acceptable H::T AoH ref
by bradcathey (Prior) on Sep 11, 2004 at 14:51 UTC | |
by dragonchild (Archbishop) on Sep 11, 2004 at 22:22 UTC |