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

Re: Perl and files > 2GB

Thread Previous
Michael G Schwern
August 31, 2001 12:51
Re: Perl and files > 2GB
Message ID:
On Fri, Aug 31, 2001 at 09:05:58AM -0000, Yusuf Goolamabbas wrote:
> Redhat Linux 7.1, perl 5.6.0, kernel 2.4.8-ac7, glibc-2.2.2
> dd if=/dev/zero of=foo bs=1024k count=2048
> #!/usr/bin/perl
> open(FH,"foo") or die "Can't open foo $! \n" ;
> close(FH);
> Output: Can't open foo File too large
> Is this a Perl bug/feature or a Redhat packaging issue ?

When in doubt, blame Redhat. ;)

Seriously, though.  Run "perl -V" and see if "USE_LARGE_FILES" or
"LARGEFILE_SOURCE" is set.  If not, it's Redhat's configuration.

And upgrade to 5.6.1 (or Debian).


Michael G. Schwern   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
<Skrewtape> I've heard that semen tastes different depending on diet.  Is that
<Skrewtape> Hello?
<Schwern> Skrewtape:  Hang on, I'm conducting research.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About