----- Original Message -----
From: "JupiterHost.Net" <[EMAIL PROTECTED]>
Date: Tuesday, January 25, 2005 11:37 am
Subject: Re: hash slice/exists vs. grep benchmark weirdness...

> 
> > 
> > Just as an FYI, you don't need "exists" in your code at all. It 
> is just a waste of time in your example. Should be beter writen as:
> > 
> > print "hi" if $n{11};
> 
> What if it's value is 0, '', or undef? It would exist but your 
> test 
> would miss it :)

In that case "defined" would be a beter function to use.


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


-- 
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