[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] File sizes with MacPerl




Is it the case that there is an intrinsic limit to the size
of a file that MacPerl can handle?  I wanted to read over a
file of about 16MB, and in fact 622K lines, but was completely
unable to do so.

If I just processed the first couple of thousand lines, which I
put with BBEdit into another file, then there was no problem,
but the full file meant that MacPerl crashed or did nothing,
according as to whether I actually tried to print the short
lines in the file, or just used the file in a do nothing

while ( <INFILE> ) {
     $i++ ;
#    print "$_" if ( m/\AU+/ ) ;
     if ($i == 1000) {die "Bye!\n"} ;
};

Note I was initially only going to treat the first 1000 lines
of the file anyway.  I never got as far as doing any real processing
of the file on the Mac.

The Mac is a Mac 9600 (604e 200MHz with 128MB RAM and 129MB virtual)
running Mac OS 8.6, and MacPerl 5.2.0r4 had been given 50MB.
The only other application running was BBEdit 4.5.  There was lots
of disk space available (1.9GB HFS plus 1.3GB HFS+).

On a workstation under
Digital UNIX V4.0F  (Rev. 1229); Sun Nov 14 18:42:21 EST 1999
all worked fine with
perl5 (5.0 patchlevel 4 subversion 1)
   Built under dec_osf
   Compiled at Mar 10 1998 18:39:59
although the machine has
Memory: Real: 73M/154M act/tot  Virtual: 68M/469M use/tot  Free: 12M

I am puzzled because I tend to think of the Mac as in fact more
powerful than this workstation.  It's certainly more flexible
usually.

Best regards,

	Patrick Ion

ion@ams.org or pion@umich.edu


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org