in reply to Re: lexical weirdness(?)
in thread lexical weirdness(?)

my $foo if 0;

This is a "feature" that has been covered on p5p... when the "if" fails, the lexical variable is not re-allocated and so stays whatever it was. I believe the consensus was not to expect this feature to stick around.

Replies are listed 'Best First'.
(tye)Re: lexical weirdness(?)
by tye (Sage) on Oct 25, 2000 at 22:16 UTC

    Well, it was an accident that some decided was a feature causing "the rest of us" to put them straight that this "feature" isn't something they should expect to never be "fixed". (:

            - tye (but my friends call me "Tye")