[EMAIL PROTECTED] (Austin Hastings) writes:
> This is what I was talking about when I mentioned being able to do:
>   &cleanup .= { push @moves: [$i, $j]; }

This reminds me of something I thought the other day might be useful:

    $cleanup = bless {}, class { 
        method DESTROY { ... }
    };

Of course, it probably wouldn't work in this context because you couldn't
guarantee that the destructor will be called at the point of loop exit, but I
like the anonymous class syntax anyway.

-- 
I've looked at the listing, and it's right!
                -- Joel Halpern

Reply via email to