Closed p5pRT closed 14 years ago
% perl -wle 'opendir $d\, "." or die; print "ok"; print ">>"\, fileno $d' ok Use of uninitialized value $d in print at -e line 1.
The error message claims that $d is uninitialized\, which is incorrect. $d contains a dirhandle. The message is generated because fileno($d) is returning undefined.
This was fixed in perl 5.10.1\, although a similar bug (#72090) is still present.
@cpansprout - Status changed from 'new' to 'resolved'
On Wed\, Sep 22\, 2010 at 09:54:43AM -0700\, Mark-Jason Dominus wrote:
# New Ticket Created by Mark-Jason Dominus # Please include the string: [perl #77994] # in the subject line of all future correspondence about this issue. # \<URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77994 >
This is a bug report for perl from mjd@plover.com\, generated with the help of perlbug 1.36 running under perl 5.10.0.
----------------------------------------------------------------- [Please enter your report here]
% perl -wle 'opendir $d\, "." or die; print "ok"; print ">>"\, fileno $d' ok Use of uninitialized value $d in print at -e line 1.
The error message claims that $d is uninitialized\, which is incorrect. $d contains a dirhandle. The message is generated because fileno($d) is returning undefined.
[Please do not change anything below this line] -----------------------------------------------------------------
I can confirm this is still the case in 5.12.2 and in blead.
Abigail
Migrated from rt.perl.org#77994 (status was 'resolved')
Searchable as RT77994$