Perl 5.8.6 bug in open()?
- From: google@xxxxxxxxx
- Date: Tue, 30 Oct 2007 05:33:45 -0700
# --- <the program> ----
my $fname = '/volumes/hd/home/kevin/file_test '; # note file ends
with a space character
print "Exists: <$fname>\n" if (-e $fname);
print "Is a file: <$fname>\n" if (-f $fname);
open(FH, $fname) or die "Can't open '$fname': $!";
close(FH) or die "Can't close '$fname': $!";
# --- <the output> ---
Processing file: file_test
Exists: <file_test >
Is a file: <file_test >
Can't open 'file_test ': No such file or directory at testopen.pl line
42.
# -- <the question> ---
Is this a known bug in Perl 5.8.6?
.
- Follow-Ups:
- Re: Perl 5.8.6 bug in open()?
- From: John W . Krahn
- Re: Perl 5.8.6 bug in open()?
- From: Paul Lalli
- Re: Perl 5.8.6 bug in open()?
- From: Paul Lalli
- Re: Perl 5.8.6 bug in open()?
- From: Jeff Eggen
- Re: Perl 5.8.6 bug in open()?
- From: Rob Coops
- Re: Perl 5.8.6 bug in open()?
- Prev by Date: Re: perl with mysql which takes a file as a input that contains the info to create the tables
- Next by Date: Re: perl with mysql which takes a file as a input that contains the info to create the tables
- Previous by thread: perl with mysql which takes a file as a input that contains the info to create the tables
- Next by thread: Re: Perl 5.8.6 bug in open()?
- Index(es):
Relevant Pages
|