On Fri, 16 Mar 2001, Xiaoxia Dong wrote:

> Thanks for all the help for the previous quesions.
>
> The question:
>
> I passes array to one of the subroutine in the main perl file.
>
> this is what is looks like: @ARGV= ('aa', 'bb');
>     $start = &initStart(@ARGV);
>
> sub initStart {
>
>     while (@_) {

I would use foreach here, not while.  While tests for the truth of the
expression, but doesn't loop for each  element in the array, if this is
what you are trying to accomplish.  What is the code you are doing inside
the while loop?

-- Brett

Reply via email to