2. Writing $a may be nicer then $_[0] but its also more error prone and not properly scoped. $a and $b are also magic variables reserved for sort.
3. Perl does not 'pop a pointer'. It dereferences the array and pops the last value off of it.
Also, I think it is easier to read "while( @A and @B ){ dofunc( pop(@A), pop(@B) ) }" As this keeps you from poping @A until you know that @B still has values.
In reply to RE: (5) any-all
by Adam
in thread any-all
by fundflow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |