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

Re: [MacPerl] error reading file with -w



At 16:31 -0800 2000.10.15, g3pb wrote:
>while ($d=<IN>) {

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

NB: in perl5.005 and up, defined() is performed automatically for you in
this operation.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

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