Re: [perl #56530] [RESOLVED] used only once: possible typo
by Toralf Foerster other posts by this author
Jul 5 2008 11:43AM messages near this date
Smoke [5.11.0] 34101 FAIL(F) MSWin32 WinXP/.Net SP3 (x86/2 cpu)
|
Re: [perl #56530] [RESOLVED] used only once: possible typo
At Friday 04 July 2008 23:11:53 Bram via RT wrote :
> According to our records, your request regarding
> "<variable> used only once: possible typo"
> has been resolved.
>
> If you have any further questions or concerns, please respond to this message.
>
> For other topics, please create a new ticket.
>
> Please don't feel obligated to say "Thanks" or "Kudos" or "I owe you a beer" -- if you res
pond to this message it will reopen the ticket. If you must, please send email directly to t
he person who handled your ticket, and not to the tracking system.
>
> <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56530 >
>
Yes, "perl works as designed" might be an answer.
OTOH I'm wondering whether perl could be improved to not give a warning in such a case.
The term "used only once" is true for a line like "$foo = 1; " if ther's no further access t
o
the variable foo, but the given example shows that the variable is used after it is incremen
ted...
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
Thread:
Toralf Foerster
Bram
|