Gremlin has asked for the wisdom of the Perl Monks concerning the following question:
in effect this sets up a hash with objects (or that is what is intended anyway) eg conductor1 => [25, 32]$number=$values{"number"}; for ($i=1 ;$i<=$number ; $i++) { %conductordata = ("conductor$i" => [$values{"radius$i"}, $valu +es{"length$i"}]) }
What i want to do is print the data for each conductor in the hash in the format:
However i need to do each conductor on a new line. How do i reference print this format given that there are multiple conductors (ie many radius, length pairs)format OUT = # Conductor @>>>>>>@>>>> radius,length .
Edit 2001-03-15 by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Printing Hash of Arrays
by tilly (Archbishop) on Mar 15, 2001 at 15:32 UTC | |
|
Re: Printing Hash of Arrays
by jeroenes (Priest) on Mar 15, 2001 at 13:24 UTC | |
|
Re: Printing Hash of Arrays
by busunsl (Vicar) on Mar 15, 2001 at 13:30 UTC | |
|
(boo)Re: Printing Hash of Arrays
by boo_radley (Parson) on Mar 15, 2001 at 22:39 UTC | |
|
Re: Printing Hash of Arrays
by Gremlin (Acolyte) on Mar 15, 2001 at 13:19 UTC |