in reply to passing an array to a subroutine

Sorry, it must be because it is getting late, but I don't really understand your query.

Could you perhaps post a shorter code example with only the problem you have?

One guess (before I go to sleep): Is your problem how to return values out of a subroutine? If that's the case, check the return-function. If the subroutine is called in a list context, it can return a list.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re: Re: passing an array to a subroutine
by Anonymous Monk on Jul 10, 2003 at 22:32 UTC
    How do I pass array @data_one from the sub print_search_results{) to the words() subroutine ? Thanks