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
In reply to Re: Working with values that dont exist
by broquaint
in thread Working with values that dont exist
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |