home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!gatech!udel!louie!braindamaged.cis.udel.edu!pyrros
- From: pyrros@braindamaged.cis.udel.edu (Christos T. Pyrros)
- Newsgroups: comp.lang.perl
- Subject: Error: Allocation to large in Perl for DOS -- bug?
- Message-ID: <1992Dec11.191756.16339@udel.edu>
- Date: 11 Dec 92 19:17:56 GMT
- Article-I.D.: udel.1992Dec11.191756.16339
- Sender: usenet@udel.edu (USENET News Service)
- Organization: University of Delaware, Newark
- Lines: 45
- Nntp-Posting-Host: braindamaged.cis.udel.edu
-
- When running the program below, I'm getting the following error:
-
- Allocation to large: 11fe6
-
- This error occurs on binary files that are over 200k or so. The binary
- files are AutoCAD Release 12 plot files for CalComp plotters. Strangely,
- this problem does NOT occur on AutoCAD Release 11 plot files, which are
- slightly different.
-
- Here is the program:
-
- $absoutfile="c:\\tmp\\tmp.cdl";
- $absinfile="c:\\tmp\\120.plt";
-
- print "\nGenerating $absoutfile from $absinfile...\n";
-
- open(NEWFILE,">$absoutfile") || die "Can't write to $absoutfile!\n";
- open(REALFILE,"$absinfile") || die "Can't read file $absinfile!\n";
-
- while(<REALFILE>)
- {
- if (!//) {next;}
- print NEWFILE;
- }
- close(NEWFILE);
-
-
- I'm using DOS 5.0 (mem reports 565k avail), and perl for DOS:
-
-
- This is perl, version 4.0
-
- $RCSfile: perl.c,v $$Revision: 4.0.1.6 $$Date: 91/11/11 16:38:45 $
- Patch level: 19
-
- Copyright (c) 1989, 1990, 1991, Larry Wall
- MS-DOS port Copyright (c) 1989, 1990, Diomidis Spinellis
- V1.5 Borland C++ & VROOM port Copyright (c) 1992, Stuart Phillips
-
-
- Is this a bug? Or am I doing something wrong?
-
- Thank you,
-
- Chris
-