Barrie Slaymaker wrote:
> On Mon, Oct 22, 2001 at 10:46:04PM +0800, Stas Bekman wrote:
>
>>It works for me:
>>
>>my $package = << 'END';
>>package Foo ;
>>
>>enter:
>>print "entered\n" ;
>>
>>sub handler { goto enter }
>>
>>1 ;
>>END
>>
>>eval $package;
>>Foo::handler;
>>
>>p
On Mon, Oct 22, 2001 at 10:46:04PM +0800, Stas Bekman wrote:
>
> It works for me:
>
> my $package = << 'END';
> package Foo ;
>
> enter:
> print "entered\n" ;
>
> sub handler { goto enter }
>
> 1 ;
> END
>
> eval $package;
> Foo::handler;
>
> prints:
>
> entered
It sho
Barrie Slaymaker wrote:
> On Mon, Oct 22, 2001 at 08:33:49AM -, [EMAIL PROTECTED] wrote:
>
>>
>> +- the closure issue:
>> + there was a suggestion from raptor to use goto() to leave the code
>> + unwrapped in the sub handler, which will solve the closure problem,
>> + but the probl
On Mon, Oct 22, 2001 at 08:33:49AM -, [EMAIL PROTECTED] wrote:
>
> +- the closure issue:
> + there was a suggestion from raptor to use goto() to leave the code
> + unwrapped in the sub handler, which will solve the closure problem,
> + but the problem is that once you leave a su