Hi,
Is perl has limitation of dealing with files bigger then 2 GBytes?
My UNIX operating system has no limits on file size and I am able to see
large files with ls in shell.
Korn shell scripts reading and writing to large files are working fine.
However perl scripts don't recognize large files:
test of file existence on large file fails,
open function returns "Value too large for defined data type" error.
At the same time Perl scripts work fine with files less then 2 GBytes.
Is there Perl module dealing with file processing and doesn't have 2 GBytes
limitation?
Please, help!

My test program:
#!/usr/bin/perl -w

$tapedir = "/tapes/";
$curr = 3;
$fname = $tapedir . "tape." . $curr;
if (-e $fname) {
        print "file $curr exists\n";
}
open (FH, $fname)  or die ("Can't Open the File\n$!\n");
close(FH);


Output:
Can't open the File
Value too large for defined data type

thanks


------------------------------------------------------------------------------
Warning : The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the intended 
recipient, you are hereby notified that any dissemination, distribution or copying of 
this communication is strictly prohibited. If you have received this communication in 
error, please notify us immediately by replying to this message and then delete it 
from your computer. All e-mail sent to this address will be received by the Providian 
Financial corporate e-mail system and is subject to archiving and review by someone 
other than the recipient.

==============================================================================



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to