Stuart White <[EMAIL PROTECTED]> wrote: : : I'm having trouble returning a hash from a subroutine, : and an array from a different subroutine. "Beginning : Perl" said I could return a list, I can't get it to : work. Must the hash and array really be a reference : to the hash and array in order to return them?
Stuart, I think there is an easier way to approach your solution. Is there any situation in which a line needing to be parsed will contain a team that is /not/ on your list of teams? Can you give us all the big picture? Tell us what your project is and let us help you solve that instead of these small snippets. If you can, give us a sample of the input data (about 10 or 20 lines), tell us what you expect and how you have decided to get there. We'll be able to help you get there with perl. I assume you are doing this at least partially as an exercise to learn perl and my intent is not to do the script for you, but a little more information would aid me not pushing you into the wrong direction. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>