in reply to Working with values that dont exist
So at the end of your for loop your @points array will have 96 elements where their value will either be true or false. Also note the change in the regex as yours was somewhat broken (it tried to match 1-2 captures of one or more \d).my @points; @points[1 .. 96] = (undef) x 96; for (@grid) { /^(\d{1,2})$/ and $points[$1] = 1; ... }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Working with values that dont exist
by Anonymous Monk on May 29, 2003 at 11:15 UTC | |
by broquaint (Abbot) on May 29, 2003 at 13:44 UTC | |
by hangmanto (Monk) on May 29, 2003 at 12:40 UTC |