from perldoc -f exists:

Given an expression that specifies a hash element or array element, returns 
true if the specified element in the hash or array has ever been initialized, 
even if the corresponding value is undefined.  The element is not autovivified 
if it doesn't exist.

for details see:

http://perldoc.perl.org/functions/exists.html



> Message du 07/10/08 05:05
> De : "loody"
> A : "Mr. Shawn H. Corey"
> Copie à : "Raymond Wan" , "Perl beginners"
> Objet : Re: How to check empty hash value properly?
>
>
> >  if( exists $data{$key} ){
> >    print "\t\$data{$key} exists\n";
> Hi:
> thanks for your kind help.
> Could I get the conclusion that exists is only used for determining
> the element of hash and arrays?
> appreciate your help,
> miloody
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>
> 


Regards,
Jeff.

 Créez votre adresse électronique [EMAIL PROTECTED] 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

Reply via email to