neelamadhab patro wrote:
>
> While trying to open a file I faced the following problem. Does this mean
> perl has limitations like file size.
>
> The code I used is:
> open(INP,"<$file") || die "Failed : ($!)";
>
> Output:
> Failed: (Value too large for defined data type)
>
> Perl version I am using:
> /usr/local/bin/perl -v
> This is perl, version 5.004_04 built for sun4-solaris
>
> anyone knows why this ERROR came , when tried the same on command line it
> worked fine.
>
> size of the above file is 1.5G.

Your installation of Perl has been built so that it won't handle large files.
Usually this means the file size must be a valid 32-bit value, but that works
out to 2GB so perhaps in your case it's a signed 32-bit value (or 31 useful
bits). Anyway, your copy of Perl won't open this file and you need to upgrade,
it's as simple as that. Perl 5.4 is last century's colour.

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to