aarestad has asked for the wisdom of the Perl Monks concerning the following question:
etc. (For those who may recognize it, it's a GUI Map file used by WinRunner, an automated testing suite.) Each header of a braced chunk is either a screen (green-scren) name or field name - the field names have the screen name they're on, followed by ".", followed by the field name. To determine whether I'm on a line that contains a screen name, I use this line:AACE_1: { class: mic_if_win, label: "!AACE.*", mic_if_handles_windows: 1 } { rtree_state: close, ltree_state: close } AACE_1."ADDR LINE1": { class: field, id: 734 }
Looking at that regex now, I think, it'd be smarter to useif ($desc != 0 and /^([^.]+):$/) { # do stuff }
but that's not the issue. Both the original regex and the one I have above produce this warning for each and every line of input:/^(\w+):$/
WTF? This script worked perfectly 5 months ago. The input file has not changed, nor has the script. Is there something fundamentally wrong with the regex?Use of uninitialized value in concatenation (.) or string at ./genguim +apdoc.pl line 52, <GUIFILE> line n.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code rot?
by dragonchild (Archbishop) on Sep 22, 2003 at 19:52 UTC | |
by aarestad (Sexton) on Sep 22, 2003 at 19:54 UTC | |
by dragonchild (Archbishop) on Sep 22, 2003 at 20:01 UTC | |
by aarestad (Sexton) on Sep 22, 2003 at 21:37 UTC | |
by dragonchild (Archbishop) on Sep 23, 2003 at 01:05 UTC | |
by Beechbone (Friar) on Sep 23, 2003 at 11:13 UTC | |
|