The run-time behavior will assign the value on the RHS of the operator to $string.The important run-time behaviour of my is to make a note to release the scalar on scope exit. Thus my $foo if $false means that the var isn't released at the end of the block, making the value still available at the next entry to the block.
Dave.
In reply to Re^2: How does my work with a trailing conditional
by dave_the_m
in thread How does my work with a trailing conditional
by DeaconBlues
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |