can I just clarify something about delete:

my $x = 1;
{
    my $x = 2;
    delete $MY::{'$x'};
    print $x;
    $mysub = sub {$x};
}

print $mysub->();

People seem agreed that print $x should do the equivalent of
        throw "lexical '$x' no longer in scope"
rather than printing 1, but what should print $mysub->() do?

I'd like it to also throw the same error, preferably at clone time.
Comments?
    
    

Reply via email to