For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2005 > copying text from a webform e-mail









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author copying text from a webform e-mail
DN

2005-07-24, 8:29 pm

I need to copy lines from a webform e-mail that are in the body of an email
as follows:

first name: John
last name: Doe

I need to write the data from each e-mail to a single line in a comma
delimited text file so that it can be imported into a database. I am a
complete Perl beginner ... is there a specific command that I should look
at for copying just the data? In the example above, I need to move to the
"J" and then copy "John" but not copy the text "first name: ". The end
result would be text file such as below:

Doe,John
Smith,Bob
Smith,Jane

Thanks for any pointers.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com