develooper Front page | perl.perl5.porters | Postings from August 2006

[perl #40245] POD error for PerlIO::scalar in 5.8.8

Thread Next
From:
Shawn Boyette
Date:
August 28, 2006 02:16
Subject:
[perl #40245] POD error for PerlIO::scalar in 5.8.8
Message ID:
rt-3.5.HEAD-31263-1156749685-634.40245-75-0@perl.org
# New Ticket Created by  "Shawn Boyette" 
# Please include the string:  [perl #40245]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40245 >


In Perl version

    perl, v5.8.8 built for x86_64-linux-gnu-thread-multi

'perldoc PerlIO::scalar' says:

    Currently fileno($fh) returns "undef".

But this returns -1:

    perl -le '$string = "foo"; open $fh, "<:scalar", \$string; print
fileno $fh;'

At least now I know why I couldn't get to 100% test coverage :)

-- 
Shawn Boyette
<sboyette@gmail.com>


Thread Next


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