To address a few of the things you said:

Thanks for reminding me about putting some sort of error handling in. I had to grok this out of some code that it was integrated into, and as such, I forgot to fix a few things with it.


I definitely can see a lot of superfluous elements in the code, but that's because those elements were all there originally for testing purposes and I forgot to yank them out. Previously, the else clause was there to output the current key, and compare it to the key that was provided. Nonetheless, I needed to fix up some code in it anyways, so, thanks for looking through and letting me know where I tripped up.


Also, for some reason or another, when I hadn't chopped the data, even in something already split, it still wasn't matching. My theory is that there may have been an extra character in there that I may have bee nforgetting. Nonetheless. I appreciate your input, and I will put that in my code to get everything back to how it should be. :D


In reply to Re^2: SSH Keyer for passwordless logins. by Sir mXe
in thread SSH Keyer for passwordless logins. by Sir mXe

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.