Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: calculate distance between atoms and a target atomby educated_foo (Vicar) |
on Dec 02, 2013 at 22:34 UTC ( [id://1065334]=note: print w/replies, xml ) | Need Help?? |
Your code does something like
If neither X nor Y is true, $Znx does not get assigned a value, so it remains undefined. Perl treats that as zero, which may or may not be what you want.
In Section
Seekers of Perl Wisdom
|
|