Front page | perl.perl5.porters |
Postings from August 2001
Re: Perl and files > 2GB
Thread Previous
From:
Michael G Schwern
Date:
August 31, 2001 12:51
Subject:
Re: Perl and files > 2GB
Message ID:
20010831155128.E598@blackrider
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
>
> test.pl
> #!/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 <schwern@pobox.com> http://www.pobox.com/~schwern/
Perl6 Quality Assurance <perl-qa@perl.org> Kwalitee Is Job One
<Skrewtape> I've heard that semen tastes different depending on diet. Is that
true?
<Skrewtape> Hello?
<Schwern> Skrewtape: Hang on, I'm conducting research.
Thread Previous