develooper Front page | perl.perl5.porters | Postings from April 2003

[perl #22010] open(F, "<&DATA") fails silently

From:
Josh Purinton
Date:
April 22, 2003 07:43
Subject:
[perl #22010] open(F, "<&DATA") fails silently
Message ID:
rt-22010-55470.8.33545089214525@bugs6.perl.org
# New Ticket Created by  Josh Purinton 
# Please include the string:  [perl #22010]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22010 >


The following program should either die(), print a warning, or print
"foo".  Instead it prints nothing:

#!/usr/bin/perl -w
use strict;
open(F, "<&DATA") || die "open: $!\n";
print <F>;
__DATA__
foo




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