Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Scalar context changes bareword value?by crenz (Priest) |
on Apr 22, 2004 at 13:27 UTC ( [id://347345]=note: print w/replies, xml ) | Need Help?? |
broquaint, thanks for the research. It seems you found the phenomenon causing the problem. Fletch, I would expect for the bareword to stay the same, even in scalar context. If I change sub 1 to
the second value printed is Bareword and not 1. So am I misunderstanding the spec here, or is it a bug?
In Section
Seekers of Perl Wisdom
|
|