Tuesday, January 13, 2009

eval

From a cow-orker:

> just out of curiosity, what does $mike evaluate to?

Hmmm,
$ php -r 'echo "\$mike=$mike\n";'
$mike=

$ perl -e 'print "\$mike=$mike\n";'
$mike=

$ ruby -e 'print "\$mike=",$mike,"\n";'
$mike=nil

Apparently, nothing.

Blog Archive