To trigger this one requires a tied variable, whose FETCH calls a
failing "require", in a vector context.
It's possible to simplify this program slightly and preserve the bug,
but I wanted to make everything legal except for the failing 'require'.
package Foo;
sub TIEHASH { bless [] }
sub FETCH { require 'cause of problem'; 1 }
package main;
tie %t,Foo;
@x = ( 1, eval { $t{BANG} } );
print "Bug has been fixed!\n";
(I ran into this inadvertantly since my perl-shell always evaluates in
vector context. But, yes, I do want to have a FETCH method calling
"require". It's a sort of autoloader.)
Ian
failing "require", in a vector context.
It's possible to simplify this program slightly and preserve the bug,
but I wanted to make everything legal except for the failing 'require'.
package Foo;
sub TIEHASH { bless [] }
sub FETCH { require 'cause of problem'; 1 }
package main;
tie %t,Foo;
@x = ( 1, eval { $t{BANG} } );
print "Bug has been fixed!\n";
(I ran into this inadvertantly since my perl-shell always evaluates in
vector context. But, yes, I do want to have a FETCH method calling
"require". It's a sort of autoloader.)
Ian