Re: print statement creates key in hash with reference to empty array??



"Dr.Ruud" <rvtol+news@xxxxxxxxxxxx> wrote in news:dro98o.vk.1
@news.isolution.nl:

> A. Sinan Unur schreef:
>
>> if( exists $hash{$key} ) {
>> print "$hash{$key}\n";
>> }
>
>
> Hunting for alternatives:
>
> $ echo 'if( exists $hash{$key} ) { print "$hash($key)\n"; }' \

Check out the missing curlies in the second hash access. Not that it
changes anything.

Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html

.