in reply to lexical weirdness(?)
It looks like the my does not reset the variable value to undef if it is initialized through a test.
Those 2 snippets are not equivalent either:
foreach (1..2) { my $i; print "$i\n"; $i++; }Now is this a bug or a feature?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: lexical weirdness(?)
by Anonymous Monk on Oct 25, 2000 at 19:48 UTC | |
by tye (Sage) on Oct 25, 2000 at 22:16 UTC |