develooper Front page | perl.perl5.porters | Postings from September 1999

croak in a tied method doesn't like eval

Thread Previous | Thread Next
From:
paul.marquess
Date:
September 30, 1999 13:07
Subject:
croak in a tied method doesn't like eval
Message ID:
5104D4DBC598D211B5FE0000F8FE7EB202D49C1F@mbtlipnt02.btlabs.bt.co.uk
When I run the script below with 5.005_58 or greater I get this 

    panic: POPSTACK

Older versions of Perl work fine and changing the croak to a die fixes the
problem.

Paul


package TiedHash ;
use Carp ;

sub TIEHASH  { bless {}, $_[0] }
sub STORE    { croak "abcd" }

package main ;

tie %h, TiedHash ;
eval { $h{1} = 2 } ;

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About