But why should the compiler care if I used a variable only once? Why does
it suspect it as a typo? I think I need to do something here to satisfy
the compiler. But I am not sure what it is!
BTW Mike, are you going to YAPC?
Mike Burns <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
06/07/2004 01:09 PM
To: Ranga Nathan <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: Re: [Boston.pm] Variable used only once warning
--- Ranga Nathan mumbled on 2004-06-07 11.49.43 -0700 ---
> I keep getting bogus messages like:
> Name "ams::uscs_trailer_out" used only once: possible typo at
> /local/bax/test/uscs_client.pl line 137.
> Name "ams::uscs_header_out" used only once: possible typo at
> /local/bax/test/uscs_client.pl line 137.
This probably isn't bogus. Do you only use this variable once?
Note that this is just a warning, not an error.
To "use a variable" means to have it on the RHS, usually. LHS only counts
as
defining it.
--
Mike Burns [EMAIL PROTECTED] http://netgeek.ws
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm