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

Re: [MacPerl] Another elementary question



> # Value of <HANDLE> construct can be "0"; test with defined().
> File 'DorjeJigje:Programming:MacPerl Ä:Noe's Perl Stuff:addRpt3'; Line 8

I know this isn't really your problem, but when using "strict":

while ($line = <IN>) {

should be

while (defined($line = <IN>)) {

so that you rule out cases where "<IN>" is undefined.

--Brian

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