|Pathologically Eclectic Rubbish Lister|
Syntax question withby rlk (Pilgrim)
|on Jan 02, 2001 at 08:53 UTC||Need Help??|
rlk has asked for the wisdom of the Perl Monks concerning the following question:
I'm hesitant to post an "did I find a bug in perl?" type question, but I ran across a snippet of code yesterday that has caused me some confusion.
The original code looked like this:
However, this raises a syntax error. Some further testing revealed that
and, somewhat more surprisingly
both work as expected (i.e, return the elements of @foo interlaced with ones)
To further confuse the issue, this error cropped up several times in a set of otherwise completely functional scripts, leading me to wonder if this is a change (/me avoids using the word "bug") in 5.6, which I believe the scripts predate. Any thoughts?