Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: crypt sometimes returning undef

by hippo (Canon)
on Feb 14, 2018 at 10:24 UTC ( #1209125=note: print w/replies, xml ) Need Help??

in reply to crypt sometimes returning undef

my $cryptedpass = crypt($passwrd1, $never_blank_value));

Is that a paste from your code? It appears to have unbalanced brackets. Perhaps that's part of the problem?

Alternatively, if you add a diagnostic on such intermittent occurences you might spot a connection. eg:

die "Empty result from crypt($passwrd1, $never_blank_value)" unless de +fined $cryptedpass;

Replies are listed 'Best First'.
Re^2: crypt sometimes returning undef
by Beaker (Beadle) on Feb 14, 2018 at 10:28 UTC
    I've fixed this, sorry it was when I replaced the variable name with $never_blank_value for purposes of copying it here.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209125]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-07-19 23:26 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (421 votes). Check out past polls.