in reply to Re^2: Scalar and void subroutines
in thread Scalar and void subroutines
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Scalar and void subroutines
by eff_i_g (Curate) on Nov 10, 2005 at 23:18 UTC |