the expression involving ord converts the town letter into its corresponding position in the outer array and the inner array needs only the subtraction of one to map streets 1-9 to their array indexes in Perl.$array[ ord( $town ) - 65 ][ $street - 1 ] = $houses;
One world, one people
In reply to Re: Please help, (perl hash)
by anonymized user 468275
in thread Please help, (perl hash)
by degit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |