develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991126.001] open(my $FH,..) emits false warning

From:
Nick Ing-Simmons
Date:
November 26, 1999 07:18
Subject:
Re: [ID 19991126.001] open(my $FH,..) emits false warning
Message ID:
199911261513.PAA22919@tiuk.ti.com
M . J . T . Guy <mjtg@cus.cam.ac.uk> writes:
>jarausch@numa1.igpm.rwth-aachen.de (Helmut Jarausch) wrote
>> sub Check {
>>   open(my $FH,">dummy"); # line 4
>> }
>
>> Use of uninitialized value at - line 4.
>
>$FH hasn't been given a value, so what do you expect?

In 5.005_5X the my $FH is supposed to be vivified by open et al.
Looks like I/we botched something.

-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About