Re: reading a file

2006-10-20 Thread Anshul Saxena
Hi add this line before your code $/ = "\n"; What this does is breaks your file reading sequence at every new line so that each new line is stored as a separate item in the array you are using. Lemme know if this helps or doesn't. On 10/19/06, Gerald Host <[EMAIL PROTECTED]> wrote: I tried bo

Fwd: reg expression again

2006-10-23 Thread Anshul Saxena
-- Forwarded message -- From: Anshul Saxena <[EMAIL PROTECTED]> Date: Oct 23, 2006 8:38 AM Subject: Re: reg expression again To: chen li <[EMAIL PROTECTED]> You should try : my $file_name =~ /^(OT).*(\d+$)/ The caret ^ when outside any brackets, indicates that the c

Re: Regular Expression Help

2006-11-01 Thread Anshul Saxena
Ashish , you might have the [ in a recurring sequence using [* On 11/1/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Ashish Srivastava wrote: > I have a string which have multiple placeholder, for example: > > $str = 'Hello [[Name]], Your login id is [[Login]] !!!"; > > I want to replace all pl