kevin
09-04-2000, 02:16 AM
Hello all, I'm hoping someone can assist me with a snippet of PERL code or point me in the right direction. The problem consists of editing an element in a single line of text stored in a file. An example line would look like this:<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
bozo@e-pixs.com|bozo|hat|yes|08/30/00|18:51:46(PDT)|209.178.135.96|Mozilla/4.0 (compatible; MSIE 5.0; MSN 2.6; Windows 95; DigExt)
[/code]
the third element is a password "hat". I would like users to be able to change the password using a form. Their email address will be used to identify the correct line to work with, but how to change the third part of the array (|hat|) only? The file will contain many lines similar to the above line. The elements are seperated by a pipe (|) and the end of each line uses \n. Thanks for any responses. Kevin
bozo@e-pixs.com|bozo|hat|yes|08/30/00|18:51:46(PDT)|209.178.135.96|Mozilla/4.0 (compatible; MSIE 5.0; MSN 2.6; Windows 95; DigExt)
[/code]
the third element is a password "hat". I would like users to be able to change the password using a form. Their email address will be used to identify the correct line to work with, but how to change the third part of the array (|hat|) only? The file will contain many lines similar to the above line. The elements are seperated by a pipe (|) and the end of each line uses \n. Thanks for any responses. Kevin