[EMAIL PROTECTED] wrote:
> I'm having another senior moment, apparently, as the following shows:
> 
> my %DW_AutoSearch = ( "0x00000000" => [ "Off", "On",  "Off", "Off" ],
>                       "0x00000004" => [ "Off", "Off", "On",  "Off" ],
>                       "0x00000005" => [ "Off", "Off", "Off", "On"  ],
>                       "0x00000006" => [ "On",  "Off", "Off", "Off" ]
>                     );
> 
> my $value = "0x00000005";
> my @outs = @DW_AutoSearch{$value};

You want

my @outs = @$DW_AutoSearch{$value};

You have to get the scalar value, $DW..., before you dereference
it with the leading @.

Good luck,

Joe

==============================================================
          Joseph P. Discenza, Sr. Programmer/Analyst
               mailto:[EMAIL PROTECTED]
 
          Carleton Inc.   http://www.carletoninc.com
          574.243.6040 ext. 300    fax: 574.243.6060
 
Providing Financial Solutions and Compliance for over 30 Years
***** Please note that our Area Code has changed to 574! *****  




_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to