in reply to Parsing tips
with this statement you can not have anything follow the "Pr:" which your test data has a comment.if ($_ ne "Pr:" and $tr == 0)
Looks like it will work better.if (!/^Pr:/ and $tr == 0)
Show me your [code] and conceal your [data structures], and I shall continue to be mystified. Show me your [data structures], and I won't usually need your [code]; it'll be obvious.
| grep> chown linux:users /world |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing
by grep (Monsignor) on Feb 11, 2002 at 04:56 UTC | |
by smgfc (Monk) on Feb 12, 2002 at 00:02 UTC | |
|
Re: Re: Parsing
by smgfc (Monk) on Feb 11, 2002 at 04:40 UTC | |
|
Re: Re: Parsing
by smgfc (Monk) on Feb 11, 2002 at 04:50 UTC |