[ This was private mail, and Matthew gave me permission to reply to the list. ] At 15.06 -0400 1999.07.07, Matthew Langford wrote: >On Wed, 7 Jul 1999, Chris Nandor wrote: > >> RuntimeBuilder creates runtimes, not droplets. > >Pardon my ignorance: what's the difference? A droplet is a small executable Mac app that calls the MacPerl program to execute the Perl script embedded in it. A runtime is a slarge executable Mac app that calls _itself_ to execute the Perl script embedded in it. Runtimes don't (in theory :) need a MacPerl installation in order to work. Droplets do. The two times (that I can think of) to use a runtime are when you are distributing to someone who does not have MacPerl installed (such as Apple did with Carbon Dater), or when you want to have a MacPerl program run persistently while you use MacPerl for other things, too. For instance, I made my mp3player MacPerl program into a runtime, so I could use MacPerl while I played MP3 files in the runtime. >> I don't know offhand ... I thought maybe the last version of RuntimeBuilder >> would have gotten those files all for you, but you could give it a try. >> Was it a dynaloader error? If so, you need to get the file >> :LIB:ARCH:auto:IO:File:File (where ARCH is MacPPC or MacCFM68K, and LIB is >> probably lib or site_perl). You'd also need >> :LIB:ARCH:auto:Text:CSV_XS:CSV_XS. > >Yeah. I read an old message on the list where you suggested that someone >duplicate the folder structure with the necessary files. I did that; >mostly all that was necessary was creating a lib and site_perl and >dropping in whatever the runtime complained about. Good, so it works now? >Haven't you used CSV_XS? Hm. Kinda. :) I built and tested it (running the tests it comes with) and distribute it, but I don't use it. >I'm having problems with it, specifically >getline() always fails. I am using 'binary' => 1, and also using >different quote chars and sep chars. (I know these are correct for this >file.) > >The original file has DOS line endings, but I've tried converting it to >Mac line endings and tried using the 'eol' option. Neither worked. > >I would like to debug it with print statements, but getline() seems to be >all or nothing. Since this is a binary file (ie, it contains embedded >linebreaks), manually reading a line and passing it to parse() and >fields() won't work. > >I guess I'll have to hardcode the input file (I was using ARGV and >dropping) and use the debugger. The debugger doesn't work so well in the >runtime. :) And I'm not very comfortable with the Perl debugger. As I haven't really used Text::CSV_XS, nothing jumps out at me as being helpful to you. Maybe someone else can help. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org