BlaisePascal has asked for the wisdom of the Perl Monks concerning the following question:
On -some- input, I'm getting a "Use of uninitialized value in substitution iterator" error, although it appears to do the substitution correctly. What does it mean, and how can I get rid of that warning?foreach ($string) { while (1) { s/\[(\w+)\]/&mlookup($1)/e and next; s/\[(\w+)\[(\d+);(\d+)\]\]/&tlookup($1,$2,$3)/e and next; s/\[(\w+)\((\w+(,\w+)*)\)\]/&flookup($1,$2)/e and next; last; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is a
by tye (Sage) on Jul 28, 2000 at 02:33 UTC | |
|
Re: What is a
by BlaisePascal (Monk) on Jul 28, 2000 at 21:39 UTC |