in reply to SOLVED - Can't modify private array in division (/) at lib.pl line 31, near "2;"
Note the @arr instead of $arr. But I've no idea what @funcArr is supposed to be - your main script uses it, but never assigns to it. In fact, I don't think your main script even compiles.sub calcarr {map {$_ / 2} @_} my @arr = calcarr(@funcArr);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't modify private array in division (/) at lib.pl line 31, near "2;"
by jettero (Monsignor) on Apr 09, 2009 at 00:11 UTC | |
by JavaFan (Canon) on Apr 09, 2009 at 08:40 UTC | |
|
Re^2: Can't modify private array in division (/) at lib.pl line 31, near "2;"
by Ciao (Initiate) on Apr 09, 2009 at 00:56 UTC |