Mr. Shawn H. Corey wrote:
> On Wed, 2006-29-03 at 23:45 -0800, John W. Krahn wrote:
>>Michael Gale wrote:
>>>Hello,
>>Hello,
>>
>>>    I have setup a hash like the following:
>>>
>>>my $test;
>>>
>>>$test->{$setup}->{'opt'} = "OK";
>>Or:
>>
>>my $test = { $setup => { opt => 'OK' } };
> 
> Or:
>   my $test{$setup}{opt} = 'OK';

Did you actually try that?

$ perl -le'my $test{$setup}{opt} = q[OK]; print $test{$setup}{opt}'
syntax error at -e line 1, near "$test{"
Execution of -e aborted due to compilation errors.



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to