in reply to Re: Re: Re: Re: Re: Re: Non-fixed data in record
in thread Non-fixed data in record
Yes, that is it but I want to have only the "radioChannelProperty" line print.
That will print what you showed above. It matches and prints the whole block. Now I can't tell it to print
off $line2 if it's "radioChannelProperty" even though that's what I want because in the next record block "radioChannelProperty" could be on line3 so I have to devise a way of telling it to print the "radioChannelProperty" line when it isn't always on the same line for every record block.
So in the best way I can explain it, and this isn't proper syntax.
while block subheading equals "msterminating"
if match "radioChannelProperty" on line5 print line5 or if
match "radioChannelProperty" on line10 print line10
elsif subheading equals "msoriginating"
if match "radioChannelProperty" on line2 print line2 or if
match "radioChannelProperty" on line8 print line8
The Brassmonk
while block subheading equals "msterminating"
if match "radioChannelProperty" on line5 print line5 or if
match "radioChannelProperty" on line10 print line10
elsif subheading equals "msoriginating"
if match "radioChannelProperty" on line2 print line2 or if
match "radioChannelProperty" on line8 print line8
The Brassmonk
|
---|
Replies are listed 'Best First'. | |
---|---|
Keep It Simple, S*****
by dragonchild (Archbishop) on Aug 31, 2001 at 22:47 UTC | |
by brassmon_k (Sexton) on Aug 31, 2001 at 23:26 UTC |
In Section
Seekers of Perl Wisdom