--- In perl-beginner@yahoogroups.com, "Kelly
Jones"
<kelly.terry.jones ...> wrote:
>
> perl -w dings me if I use a variable just once:
>
> Name "main::foo" used only once: possible
typo...
>
> even if I'm magically defining/using $foo somewhere
else.
>
> Is there any way to tag a variable to tell the -w
option that I'm
> intentionally using that variable just once, and not to
warn me
about it?
>
> I realize I could do something like: "$foo =
$foo" to force the issue,
> but that seems kludgy.
>
If you use "my $foo" you won't get the warning
message.
Why are you declaring the variable if you are not using?
What purpose
does that line of code serve?
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|