Thanks for the reply,
the want to replace the $pattern  in a .html file,with a $repalce

the $pattern="<td align=right valign=top width=10><img border=0 height=10
src="http://ramesh.com/images/corner_2.gif";
                    width=10></td>
$replace="a javascript variable""/images/corner_2.gif" width=10></td>"

my repalce is donw with the command inside file operation;

while (<IN>){
        s/\Q$pattern\E/$own/m;

How to do this?
Prabu.





"Rob Dixon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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>
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.620 / Virus Database: 399 - Release Date: 3/11/2004




-- 
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