Jeff Pang wrote:
>>                foreach my $key (keys %$env) {
>>                        print $key . " -> " . $env{$key} . "\n";
>>                }
> 
> Hello,
> 
> For a quick look,the codes above may not work.
> Since $env is a hash reference,so you can't say $env{$key} to access the 
> hash's value.
> It may change to:
> 
> print $key . " -> " . $env->{$key} . "\n";
> 

That isn't working either.  It is complaining about $env not being declared.  I
replaced it with %{env}->{$key} but it said it was deprecated.  It then
proceeded to print out the references.

Mathew


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


Reply via email to