Surely that won't do anything useful. I mean, it'll do the same asmy $v2; $v2 = -2 if 0;
Hence: no static variable, no value assigned.my $v2;
Anyway:
will create a static variable. But IMO that's a coincidence of the implementation, I wouldn't count on it.my $v2 if 0;
In reply to Re^2: 'my' with 'if 0' retains old value
by bart
in thread 'my' with 'if 0' retains old value
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |