[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] unknown error question

On Wed, 9 Jun 1999, Robert Pollard wrote:

> #! perl -w
> $holdingThing = 'Backup Folder';
> # Name "main::holdingThing" used only once: possible typo.
> File 'Untitled #3'; Line 3
It's the Perl equivalent of an "unused variable" warning, which is common
enough with other language compilers also.

95% of the time, a variable showing up once like this means that in one
place in the code you've got $holdingThing and somewhere else you've got
$holding_thing, and one's a typo.

It's better to vet these with -w; later you can turn that switch off when
your code is production.


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org