RE: Reading contents of file

2006-01-09 Thread Dhanashri Bhate
>>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

RE: Reading contents of file

2006-01-09 Thread anand kumar
, 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

RE: Reading contents of file

2006-01-08 Thread Dhanashri Bhate
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=)

RE: Reading contents of file

2006-01-08 Thread anand kumar
: 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

RE: Reading contents of file

2006-01-08 Thread Dhanashri Bhate
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

Reading contents of file

2006-01-08 Thread anand kumar
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