Perl Monk, Perl Meditation | |
PerlMonks |
Parse chat & File::findby 4perl (Initiate) |
on Jan 31, 2013 at 14:50 UTC ( [id://1016330]=perlquestion: print w/replies, xml ) | Need Help?? |
4perl has asked for the wisdom of the Perl Monks concerning the following question:
Hi
Kind request for help on a chat parsing matter. My problem is that the chat files sometimes not follow the structure "date user1 user2 chat content" on one line and sometimes the chat content moves to the next line. i.e: date user1 user2 chat content\n continued chat content because I have many files like that and need to database the records, I want to put the Filename in front of every chat line. I managed to do that with File::find but my problem still remains with the continued chats on the next line.
I appreciate any suggestions Million thanks
Back to
Seekers of Perl Wisdom
|
|