in reply to Re: 'my' with 'if 0' retains old value
in thread 'my' with 'if 0' retains old value
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: 'my' with 'if 0' retains old value
by ikegami (Patriarch) on Apr 21, 2006 at 15:24 UTC | |
by diotalevi (Canon) on Apr 21, 2006 at 18:25 UTC |