develooper Front page | perl.perl5.porters | Postings from February 2003

Re: odd (or not so odd?) segmentation fault in 5.8.0

Thread Previous | Thread Next
From:
Enache Adrian
Date:
February 17, 2003 09:16
Subject:
Re: odd (or not so odd?) segmentation fault in 5.8.0
Message ID:
20030217171150.GA1379@ratsnest.hole
On Mon, Feb 17, 2003 at 11:15:57AM +0000, Dave Mitchell wrote:
> This is why 'untie $a', and '$a' have no magical effect within
> FETCH().

If this was true, all my previous my examples should print just
(1) (1) (1) (1) (1) (1)
Am I wrong ?

Try this too:

$ perl5.8.0 -e '$,=" ";$a = 1; { package P; sub TIESCALAR {bless[]}
sub FETCH {$main::a+1} } tie $a, P; print $a,"$a $a $a $a",$a,"\n"'
6 2 3 4 5 7

Adi

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