MAS4891, I can understand your frustration. I have a question and a comment. Since you have your password in the second line of the file @file[1], what's the first line of the file for? Also, in the off chance that you missed this, do you realize that @file[0] would be the first line of your file? If that's where your password is... To solve your problem, I would probably start by printing the variables you are examining.
# debug start print "<FONT FACE='COURIER NEW'>\n"; print "'" . $query->param('pass') . "'<BR>\n"; print "'" . @file[1] . "'<BR>\n"; print "</FONT>\n"; #debug end
I usually wrap debug code in debug "start" and "end" tags. When I go back to clean up a large script, it's quick and easy. The first line of code above sets the font to a fixed width. This makes it easier to see a space embedded in the middle of a word. The next lines print the two passwords one above the other like so:
'diue34Tx' 'diue34Tx'
This makes a character by character visual analysis easier and the single quotes make it obvious if you have padded white space before or after the password (but won't reveal an unchomped newline. Maybe you should use a <PRE> tag for that. Just a thought. Hope this helps!

In reply to Re: If by Ovid
in thread If doesn't work by MAS4891

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.