in reply to Re: -w, strict, and Tk...
in thread -w, strict, and Tk...

Am I the only one who finds it a bit odd that you can remove a warning for a variable that is only used once by creating another variable that is... only used once???

Why doesn't $work_around generate the same error it was introduced to stop?

--
my $chainsaw = 'Perl';

Replies are listed 'Best First'.
Re: Re: Re: -w, strict, and Tk...
by RMGir (Prior) on Mar 20, 2002 at 14:07 UTC
    Because it's lexical? The "only used once" warning only pops up for globals, I think.
    --
    Mike