[Za-pm] returning values from a sub

Spike spikeh at mweb.co.za
Mon Feb 9 04:15:21 CST 2004


I have a sub (in  module as it happens) that validates South African ID 
numbers and if the number is OK returns the DoB and sex.
If not it populate an error string.


I would like to use it like this:

($DoB, $sex) = said(1234567890123) || or die("$errstr");


My sub ends:

return @results;

@results is being successfully populated with '1955-12-25'  'Male' in the sub

Any ideas?





Spike Hodge

UNIX Programmer
M-Web Technology
021 596 8496
083 294 9593
Fax 0866721733


Click here and make M-Web your homepage
http://homepage.mweb.co.za  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/za-pm/attachments/20040209/061f0789/attachment.htm


More information about the Za-pm mailing list