On Tuesday 04 September 2001 07:25 pm, Dan Sugalski wrote:
> Ah, but what people will want is:
>
>    my $x = "foo\n";
>    {
>      my $x = "bar\n";
>      delete $MY::{'$x'};
>      print $x;
>    }
>
> to print foo. That's where things get tricky. Though I suppose we could
> put some sort of placeholder with auto-backsearch capabilities. Or
> something.

Other than the obvious run-time requirements of this, what's wrong with 
simply looking in the current pad, seeing it's not there, then looking in 
the previous pad...?  (Assuming you know the variable by name....)

-- 
Bryan C. Warnock
[EMAIL PROTECTED]

Reply via email to