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

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

Josh Purinton
April 22, 2003 07:43
[perl #22010] open(F, "<&DATA") fails silently
Message ID:
# New Ticket Created by  Josh Purinton 
# Please include the string:  [perl #22010]
# in the subject line of all future correspondence about this issue. 
# <URL: >

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>;
foo Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About