top | item 36655374

(no title)

louzell | 2 years 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";}

discuss

order

No comments yet.