develooper Front page | perl.perl5.porters | Postings from July 2008

Re: [perl #56530] [RESOLVED] <variable> used only once: possible typo

Thread Next
From:
Toralf Förster
Date:
July 5, 2008 11:43
Subject:
Re: [perl #56530] [RESOLVED] <variable> 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 respond to this message it will reopen the ticket. If you must, please send email directly to the 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 to
the variable foo, but the given example shows that the variable is used after it is incremented...


-- 
MfG/Sincerely

Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About