in reply to Re: Re: Help with recurring "uninitialized variable" problem.
in thread Help with recurring "uninitialized variable" problem.
B::Deparse can shed some light . . .
$ perl -MO=Deparse,-p -e '$one_line =~ !/^#+/' ($one_line =~ (not /^#+/));
So what you were really doing was first matching /^#+/ against $_, taking the logical not of what that returned and then attempting to use the string version of that as a regexp to match against $one_line.
Update: And to further explain, that meant you were always splitting and hence would sometimes get lines without all the fields you expected and those would be undefined.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Help with recurring "uninitialized variable" problem.
by C_T (Scribe) on Apr 09, 2004 at 20:35 UTC | |
by Fletch (Bishop) on Apr 09, 2004 at 22:24 UTC |