The last statement in your getAll routine is print "All Answers";. A subroutine returns without explicit return "automatically returns the value of the last expression evaluated." print "[r]eturns true if successful", so getAll returns 1.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: writing an api wrapper I get a 1 with my return value from method
by kennethk
in thread writing an api wrapper I get a 1 with my return value from method
by gideondsouza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |