All,

First off, I have looked thru Learning Perl (3rd edition) and Perl in a 
Nutshell, but I did not find the answer to my question. I know you can 
'substitute' a subroutine name for a variable to get the result of the 
subroutine. My question is, can a subroutine return an array? such as this:

...

sub lca {

 SQL Query

}

while ( @lca) {

   do stuff

}

...

I am probably wrong on this. I am trying to avoid using a global variable and 
keeping things on the smallest scope possible. 

Any suggestions are appreciated.

Thanks,

Dave Kettmann
NetLogic
636-561-0680


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