Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In your for loop that creates the hash, you are using just $j as the key to the hash. That will result in the keys just being numbers. You actually want the keys to be the values in the array @views that correspond to the entry $j. So you will need to change:
$hash{$j} = \@array; into $hash{$views[$j]} = \@array; As an additional note, the perl debugger will easily print out structures like hashes so that you can ensure they are created properly. Use the command 'perldoc perldebug' to read the documentation when you get a chance. In reply to Re: Re:x4 Using hash elements to create a string
by RollyGuy
|
|