>
> Use the range operator to delimit the section you want to extract.
> You can read about in 'perldoc perlop'
>
> if ($line =~ /^A$/ .. $line =~ /^C$/) {

Hi,

I came back to this again, last time tried to match all under A, like

A
1 1
3 1
B
1 3
1 5
A
1 1

Here what if I wish it only meet once A and stoped at B, how can I
quit like /B/q;/A/p
the result is
A
1 1
3 1

only,

Thanks,


>
>>               ## Here I don't know how to proceed further
>>               print $line;
>
> You'll want to skip over the 'A' and 'C' lines before printing the line.
> I'll leave that to you.
>
>>       }
>> }
>>
>> Thanks
>>
>> --
>>
>
> Ron Bergin
>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to