Erm, I'm not clear what you're trying to do Veeraraju.
Firstly you're opening your file for append, so a read on the file won't return
any data.
Secondly you're not using the result of the substitution. While this may well be
a cut-down example I hope you're not expecting the file itself to be modified?
Cheers,
Rob
> -----Original Message-----
> From: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]]
> Sent: 07 September 2001 10:36
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: Regex s///
>
>
> Dear All
>
> I have a large data file which has ; as delimiter and i want this to be
> replaced newline character ,but unfortunately my script is not working
>
>
> my code is given below
> ####################################################
> open(NOTE ,">>c:\\data.txt"); #data file
> while (<NOTE>)
> {
> s/;/"\n"/;
> }
>
> close(NOTE);
> #######################################################
>
> It doesn't report any error task is not being performed
>
> Please help me.
>
> Thanks and Reagrds
> Raju
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]