That's no good either. It clobbers $i in $j = name($i);.
The fix is to change \do{my ...} to \do{my ... = $_[0]} in my subs. (Just fixed in grandparent.)
In reply to Re^3: Scalar and void subroutines
by ikegami
in thread Scalar and void subroutines
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |