6 ms·
The body of the op.crypt test is pretty neat. He is clearly excited about the perf optimization: # this evaluates entirely at compile time! if (crypt('uh',
by louzell 3y ago
The body of the op.crypt test is pretty neat. He is clearly excited about the perf optimization:
# this evaluates entirely at compile time!
if (crypt('uh','oh') eq 'ohPnjpYtoi1NU') {print "ok 1\n";} else {print "not ok 1\n";}
# this doesn't.
$uh = 'uh';
if (crypt($uh,'oh') eq 'ohPnjpYtoi1NU') {print "ok 2\n";} else {print "not ok 2\n";}