Hi! First of all, the code is a bit chaotic/messy IMO. I suggest that you work with a bit more whitespace and subroutines. Thats of course a matter of style, but a cleaner style often leads to easier discoverable bugs.

To the code: I've read through it mostly and one line was IMO fishy (see around line 109):

for (@array) { s/$inputline3/$encryptpw3/g; print ("\n\nYour Username and Password have been updated a +nd saved!\n\n"); }

$inputline3 contains the entered password and not the encrypted password. Is that maybe a mistake? Also note that if the username is the same as an encrypted password, it will also be replaced with the new password. I suggest to make the substitution more precise:

s/^([^:]):\Q$encryptpw2\E/$1:$encryptpw2/

The \Q...\E is just for the case that $encryptpw2 contains '.' or '\s+' or '[' or whatever character might have some other meaning in a regex.


In reply to Re: User management system; file input not working? by elmex
in thread User management system; file input not working? by jambocool

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.