in reply to Strange warn behavior in loop

I've tried on some of the systems I have at hand, and it looks like a v5.8.8 bug :

SystemPerl versioncorrect
Linux Slackware 11.0 v5.8.8 i486-linuxNo
Linux Debian Sargev5.8.4 i386-linux-thread-multiYes
Linux Debian Etchv5.8.8 i486-linux-thread-multiNo
Mac OS X 10.4v5.8.6 darwin-thread-multi-2levelYes
IRIX 6.5.22 v5.6.1 irix-n32Yes

Replies are listed 'Best First'.
Re^2: Strange warn behavior in loop
by blazar (Canon) on Jul 17, 2007 at 10:21 UTC
    I've tried on some of the systems I have at hand, and it looks like a v5.8.8 bug :

    Confirmed under the Redmondish side of the world, too:

    C:\temp>perl -e "for (2,2) {print;warn}" Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. 21

    Note that I wanted to further simplify the test code, but the bug doesn't seem to show up with a c<for> statement modifier:

    C:\temp>perl -e "print,warn for 2,2" Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. 22

    BTW: what if $@ is set?

    C:\temp>perl -e "$@='all your base are belong to us';for (2,2) {print; +warn}" all your base are belong to us ...caught at -e line 1. all your base are belong to us ...caught ...caught at -e line 1 +. 21

    Nope, the bug is still there...