jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is migrate to including the Tr() method call in the map so I can print say @rows and have it do a Tr per %key for instance. Or maybe even a whole table, whatever, you get it. Thing is I got errors for an undeclared hash when I tried this and simply changing my code to say %cells where it had @cells did not work because ??? I can't just print \%cells ??? .@rows = map {$q->td( {-align=>'left'}, b("$_ Parish:") ). $q->td( {-bgcolor=>"$data"},@{$info{$_}}[$index]). $q->td( {-bgcolor=>"$data"},@{$info{$_}}[$index2]). $q->td( {-bgcolor=>"$data"},@{$info{$_}}[$index3]) } @ +keys;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: From arrayref to hashref
by broquaint (Abbot) on Mar 21, 2002 at 15:08 UTC | |
|
Re: From arrayref to hashref
by erikharrison (Deacon) on Mar 21, 2002 at 15:56 UTC | |
by Sidhekin (Priest) on Mar 21, 2002 at 17:06 UTC | |
by erikharrison (Deacon) on Mar 21, 2002 at 19:08 UTC | |
|
Re: From arrayref to hashref
by TGI (Parson) on Mar 21, 2002 at 22:08 UTC |