[EMAIL PROTECTED] wrote:
> [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};
        Close, but I get an error as you have it, but get the right values when set 
like

        my @outs = @{$DW_AutoSearch{$value}};
Wags ;)
> 
> 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




**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


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

Reply via email to