>>Here the problems are :
>>1) The new line character '\n' cannot be detected.
Well, I'm not getting exactly what your problem is, I'm afraid!
>>2)I am not able to print the unmatched data i.e in the above example '45'
doesn't match the regex in the while loop so this cannot be printed in th
, January 09, 2006 12:56 PM
To: [EMAIL PROTECTED]; beginners@perl.org
Subject: RE: Reading contents of file
Hi
I have already tried the way u have told but when i use '
while($line=)' and the regex in the if loop then the regex pattern is
matched only once in the curr
y to do it!
Dhanashri
_
From: anand kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006 12:56 PM
To: [EMAIL PROTECTED]; beginners@perl.org
Subject: RE: Reading contents of file
Hi
I have already tried the way u have told but when i use '
while($line=)
: Monday, January 09, 2006 11:31 AM
To: beginners@perl.org
Subject: Reading contents of file
Hi
I am new to PERL. I have a doubt, The following script is used to read the
contents of a file (word by word (or) word preceeded by a number), check for
the existence of the matched pattern which is
hile loop, not outside.
See this:
while ( $line = mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006 11:31 AM
To: beginners@perl.org
Subject: Reading contents of file
Hi
I am new to PERL. I have a doubt, The following script is used to read the
contents of a file (word by word (or
Hi
I am new to PERL. I have a doubt, The following script is used to read the
contents of a file (word by word (or) word preceeded by a number), check for
the existence of the matched pattern which is done by the help of bookref()
sub, if it is found then the matched pattern is prefixed