develooper Front page | perl.perl5.porters | Postings from August 2003

[perl #23630] problem with "used only once" warning

From:
perlbug-followup
Date:
August 28, 2003 09:40
Subject:
[perl #23630] problem with "used only once" warning
Message ID:
rt-23630-63865.1.93615119885138@rt.perl.org
# New Ticket Created by  fergal@esatclear.ie 
# Please include the string:  [perl #23630]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23630 >


> perl -we '$c'
Useless use of a variable in void context at -e line 1.
Name "main::c" used only once: possible typo at -e line 1.

> perl -we '$c,@c'
Useless use of a variable in void context at -e line 1.
Useless use of a variable in void context at -e line 1.

Although $c and @c are each used only once there is no warning for either of 
them.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About