[Za-pm] Passing values

Spike spikeh at mweb.co.za
Mon Feb 9 05:16:29 CST 2004


Christiaan pointed this out to me:

Spike - What dont you get right - I put this together and it works?

It should also work if you stick with: return @results;

Do you also make provision for the new "09" and "19" 11th and 12th digits?

If I do ($DoB, $sex) = said(1234567890123) or die("$errstr"); (without ||) 
everything works

If I do ($DoB, $sex) = said(1234567890123) || die("$errstr"); (with ||) 
things go awry

Why?


Christiaan

He is right - when I use '||' it all goes wrong and with 'or' it does 
exactly what i wanted.
what is the difference?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/za-pm/attachments/20040209/cbb7010c/attachment.htm


More information about the Za-pm mailing list