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 (@_) {
do some thing.....
}
return %start;
}
It only pass the first value in @ARGV, that is 'aa', never get to 'bb'.
xiaoxia
- Re: pass array into subroutine Xiaoxia Dong
- Re: pass array into subroutine Michael A. Chase
- Re: pass array into subroutine Bruce W. Hoylman
- RE: pass array into subroutine Sterin, Ilya
- Re: pass array into subroutine Brett W. McCoy
