Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

james (1129)

  (email not shown publicly)


Journal of james (1129)

Tuesday June 26, 2001
09:23 AM

[ #337 ]

YARH -- yet another ruby hack.
It was Marcel's idea. Blame him. I'm sat here with constructs like:

my $val = 0->true;
if ($val && $val == 0) {
    print "this shouldn't happen\n";

And having it do what it shouldn't, or should. I'm not sure anymore. Marcel just added arbitrary runtime properties as well which is pretty cool, so things like:


works. And the maths stuff works as well:

$val = 5;
print $val->times(2);

yields 10, rather than the expected runtime error.