> >And it can even be more subtle: > > > > $ perl -E '$a = $b = "abc100"; 0 + $b; say $a; say $b; > > $a ++; $b ++; say $a; say $b' > > That is a nasty one. Surely the expression 0 + $b should not > mutate the value > of $b. I'm surprised this is not considered a bug? Have you read perldoc Scalar::Util dualvar section?Thread Previous | Thread Next