my( $s, $t ); $s = "value t is $t"; $t = "xyz"; print $s; in perl 5, it will give a warning, and won't do "right" thing. we have to use other way or eval '$s' before print to get a "correct" answer.
So I wonder, If we can make $scalar lazy also. As array now is lazy by default. Even if making scalar lazy might cause problem sometimes, Is it possible to add a property which is like my $var is lazy; to handle these situation? Thanks, Xinming