Hi All,
I have a task i.e , I have to read each string from a file check
wheather it is in the list(predifned array) or not, if found i have to make
some changes to the string and rewrite back to file. here on exception is that
in some cases :
for eg:
if the string is "JOHN" then i have to check wheather it is preceeded by
"2."(any digit and '.')
for this task i have used the following task
while (<>) { for $chunk (split) { # do something with $chunk
} }
here the the problems iam facing are i donot know how to read the previous
string in specific cases and also rewritng the contents
inthe same file or any new file
please send me your suggestions.
Thanks in advance
Anand
---------------------------------
Yahoo! India Matrimony: Find your partner now.