Prabu wrote:
>
> In pattern matching,I want to match a pattern in multiple line.How to do
> this?.
>
> For example,in a file,the pattern is present in 2 lines,
> Here my doubts are:
>
>   1.Whether need to use "/n" to distinguish between 2 lines,when decalring
> them?
>      Or anyother operator needed to be used?.
>     (ie) $pattern="text in 1st line "/n" text in secondline";
>           $replace="some text";
>
>   2. Whether to specify any options in the "s/$pattern/$replace/g" command?

Hi Prabu.

Can you explain better what it is you need to do? Reading multi-line
records from a file is a problem in itself; have you got that far?

A (real) example of your data would help a lot. Try not to show us an
invented example, as your analysis may be wrong, but I know it can
be difficult to publish live data.

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to