in reply to Re: Using eval to build array structure
in thread Using eval to build array structure
I agree with both Tye and dragonchild. However, I have just a little nit with both of their sample codes. The Range for the $i subsrcript should be 0 .. 4 since perl arrays are zero indexed.
so,
should befor my $i (1 .. 4) {
for my $i (0 .. 4) {
and,
should befor $j($i+1..5){
-meta4for $j($i+1..4){
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(2): Using eval to build array structure
by Popcorn Dave (Abbot) on Jul 17, 2002 at 18:17 UTC |