Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: die/warn bug in elsif

by Steve_p (Priest)
on Jan 19, 2006 at 01:11 UTC ( #524100=note: print w/replies, xml ) Need Help??

in reply to die/warn bug in elsif

Congratulations on finding one of the oldest recorded Perl bug!

The cause is related to how perl interprets Perl code. The easiest explanation comes from Perlbug ticket #1034 by Ilya Zakharevich.

Diagnostic messages read the line-number-of-currently-executed-chunk-of-code from some memory location. This memory location should be reset when flow of execution winds around. It is reset at the beginning of each statement. Resetting it more often would slow things down, keeping the line-number at each opcode would take a lot of memory.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://524100]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-04-18 09:24 GMT
Find Nodes?
    Voting Booth?

    No recent polls found