Re: print statement creates key in hash with reference to empty array??
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 17:23:59 GMT
"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
.
- References:
- print statement creates key in hash with reference to empty array??
- From: rhorizon74
- Re: print statement creates key in hash with reference to empty array??
- From: A. Sinan Unur
- Re: print statement creates key in hash with reference to empty array??
- From: Dr.Ruud
- print statement creates key in hash with reference to empty array??
- Prev by Date: Re: print statement creates key in hash with reference to empty array??
- Next by Date: Re: split the sequences
- Previous by thread: Re: print statement creates key in hash with reference to empty array??
- Next by thread: Re: print statement creates key in hash with reference to empty array??
- Index(es):