Re: unix or mac-style text files?

2002-11-20 Thread John Delacour
At 4:30 pm -0800 19/11/02, Heather Madrone wrote: Is perl on the Mac going to care whether source files are Mac-style or Unix-style? Is it going to have difficulty reading and operating on either kind of file? What kind of text files will it write? You can do a routine like the one below to

Re: unix or mac-style text files?

2002-11-20 Thread Chris Devers
On Tue, 19 Nov 2002, Heather Madrone wrote: I've already encountered a few text file anomalies on OS X. Most GUI applications seem to default to Mac-style text files (linefeeds only), but shell programs such as vi do not handle Mac-style text files gracefully. If vi fails, try vim -- it

Perl scripting for Cocoa apps...

2002-11-20 Thread lconley2
Hello, All: I'm absolutely new to Perl and Cocoa/Objective-C so please have patience with me if I sound terribly uninformed. As a QA engineer, what I'm trying to figure out is if Perl is useful for scripting apps written in Cocoa. Basically, I want to take a finished Cocoa app and write test

Re: Perl scripting for Cocoa apps...

2002-11-20 Thread Gregory Cranz
In a word, NO. What you describe - to my knowledge - can't be done with PERL. You can pipe text commands to your input API - and that's it. You can't emulate mouse clicks/drags or keyboard input. That's not what PERL is used for. What you describe - attempting to get around using

Re: unix or mac-style text files?

2002-11-20 Thread Peter N Lewis
At 13:22 + 20/11/02, John Delacour wrote: if (/\015\012/) { $/ = \015\012 ; } elsif (/\015/) { $/ = \015 ; } else { $/ = \012 ; } You can do this with one regular expression which will pick up the first line ending: $/ = /(\015\012|\015|\012)/ ? $1: \n; Note that because

Re: mod_ssl and libdbm

2002-11-20 Thread David Wheeler
On Tuesday, November 19, 2002, at 04:47 PM, Ken Williams wrote: Hmm - none of those are 'dbm', though. David, can you show/quote the page that claimed that dbm was a part of libSystem? I think that ndbm is it. It's what Perl finds when it compiles, and when I have gdbm installed, mod_ssl