develooper Front page | perl.perl5.porters | Postings from December 2010

Re: [perl #77994] Initialized variable incorrectly mentioned in"uninitialized value" warning

Thread Previous
From:
Abigail
Date:
December 14, 2010 08:04
Subject:
Re: [perl #77994] Initialized variable incorrectly mentioned in"uninitialized value" warning
Message ID:
20101214160408.GG13804@almanda
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

Thread Previous


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