Noe Dinnerstein: President, BodhiSoftWare wrote: > > When I run it I get the following output: > > # Value of <HANDLE> construct can be "0"; test with defined(). > File 'DorjeJigje:Programming:MacPerl Ÿ:Noe's Perl Stuff:addRpt3'; Line 8 You should fix that... > starting loop > end of loop > 1376 records read > ****** > The problem with this result is that there are only 989 records. This is a > text file exported from a Hypercard stack and it seems that whenever there > is a <RET> in a large text field, MacPerl interprets that as a record > delimiter. That _is_ a record separator. How do you distinguish between a newline as a record separator and a newline in the middle of a record? > Is there some reliable data massaging that can get the record > delimiter to be properly perceived by MacPerl? Don't use the record separator in the middle of a record. > I have WordPerfect and > Microsoft Word, as well SimpleText (although that can't handle such a large > file) but don't know if soft vs. hard returns is the relevant issue when > saving as a text file. I'm not aware of the internals of Hypercard > (which is beyond the scope of this mailing list) but figure there must be > some way to do this. Any help and/or insights would be appreciated. You can either: Change your script so it can tell the difference between the two uses of newlines or Replace the unwanted newlines before giving the file to your script. Ronald ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org