okay. so i have a script, "create_account.pl" which spits out this error:

Use of uninitialized value in subroutine entry at /usr/local/share/perl/5.24.1/Crypt/PBKDF2/Hash/HMACSHA1.pm line 19.

i've done some "debugging" and have found the error happens on this line of "create_account.pl": $account{password} = $pb->generate($account{passwordagain});

I even tried to change it to:

my $temp = $pb->generate($account{password}); no dice!

yet, my "setstats.pl" script doesn't issue the error and the code is pretty much exactly the same stuff:

my $newdbpw = $pb->generate($newpw);

so...do i need to post ALL of the code, or is this enough to get us started?

some system stats? ubuntu 17.04 and perl5.24.1

Sincerely, Jarett


In reply to problem with Crypt::PBKDF2 by jamroll

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.