"Ben Crane" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> right, my first attempt at a hash of arrays appears to
> have some success...but I have a query:
>
> sub HoA
> {
> foreach $arb (@uniqueroadname)
> {
> foreach $doublearb (@contents)
> {
> if ($doublearb =~ m|$arb|)
> {
> print "$arb ====  $doublearb\n";
> push @temparray, $doublearb;
> }
> }
> }
>  $arrayref{$arb} = [@temparray];
> }
>

<snip />

>
> at the moment, the structure looks (i hope :) like
> this:
>
> %HASH - > Reference (roadname) -> Array 1
>                                -> Array 2
>                                -> Array 3
>

no need to hope. Find out for sure:

use Data::Dumper;
...
print( Dumper \%HASH );

http://search.cpan.org/search?query=Data::Dumper&mode=all

hth

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to