Re: Leopard Upgrade Killed my Modules
In article [EMAIL PROTECTED], Elton Hughes [EMAIL PROTECTED] wrote: Hello All, I upgraded to Mac OSX 10.5, using the upgrade option, and the modules I downloaded from CPAN are now missing. You probably had them installed in Mac OS X's Perl directories. I install my own perls (and have many installed) each with their own roots: $ ls -l /usr/local/perls drwxr-xr-x 5 root wheel 170 Dec 2 12:13 perl-5.10.0-rc2 drwxrwxr-x 5 brian wheel 170 Mar 14 2007 perl-5.6.2 drwxrwxr-x 5 brian wheel 170 Sep 22 13:02 perl-5.6.2-dist drwxrwxr-x 6 brian wheel 204 Apr 10 2007 perl-5.8.8-for-pugs drwxr-xr-x 5 brian wheel 170 Feb 22 2007 perl-5.8.8-threaded drwxr-xr-x 4 brian wheel 136 Feb 22 2007 perl-5.8.8-threaded-debugging drwxr-xr-x 5 brian wheel 170 Feb 26 2007 perl-5.9.4 drwxrwxr-x 5 brian wheel 170 Aug 19 01:42 perl-5.9.5 drwxrwxr-x 5 brian wheel 170 Oct 7 18:45 perl-5.9.5-for-kp6 drwxrwxr-x 5 brian wheel 170 Sep 30 17:16 perl4 drwxr-xr-x 24 brian brian 816 Mar 13 2007 perlbench-0.93 I think have links in /usr/local/bin to each of the interpreters I like to use: $ ls -l /usr/local/bin/perl* -rwxr-xr-x 2 root wheel 1103676 Apr 9 2007 /usr/local/bin/perl lrwxr-xr-x 1 root wheel 47 Dec 2 12:44 /usr/local/bin/perl5.10.0 - /usr/local/perls/perl-5.10.0-rc2/bin/perl5.10.0 lrwxr-xr-x 1 root wheel 41 Aug 16 00:00 /usr/local/bin/perl5.6.2 - /usr/local/perls/perl-5.6.2/bin/perl5.6.2 -rwxr-xr-x 2 root wheel 1103676 Apr 9 2007 /usr/local/bin/perl5.8.8 lrwxr-xr-x 1 root wheel 41 Sep 29 14:38 /usr/local/bin/perl5.9.5 - /usr/local/perls/perl-5.9.5/bin/perl5.9.5 When I want to install modules, I use the right interpreter with cpan(1): $ perl5.10.0 cpan Foo Bar
Re: Leopard Upgrade Killed my Modules
On Wed, Jan 09, 2008 at 10:51:03PM -0800, John Baldwin wrote: perl 5.9 looks like it has some nice features anyway. 5.10 is out now. Unfortunately it was just a bit too late to make it into Leopard. -- David Cantrell | Nth greatest programmer in the world Eye have a spelling chequer / It came with my pea sea It planely marques four my revue / Miss Steaks eye kin knot sea. Eye strike a quay and type a word / And weight for it to say Weather eye am wrong oar write / It shows me strait a weigh.
CamelBones...
Hi, I am writing an application in Perl and compiling it in CamelBones. I want to make it a DragDrop. I can't get the pasteboard to pass the file or folder information to the script. Does anyone have an example I could use as a template? Am I correct in thinking that the link is in the pList? I can't find this in any documentation. Thanks... Dan --
Re: CamelBones...
Simplest thing would be to start with the Document based Perl app template. There are several ways you can get at the file's contents - as an NSURL, an NSString local file path, an NSFileWrapper, or an NSData object. All you do is get info on the target in Xcode, set up the extension (.whatever) and set the document's UTI. The UTI is a backwards-domain string similar to Java's package naming scheme. So you'd probably use com.nytimes.dneville.ProjectName or something similar. Once you've assigned the file type info, you'll have support for the standard File menu, recent documents, and drag-n-drop support for document files - it's all standard stuff, already built into Cocoa's NSDocument architecture. If you'd prefer not to use document-based apps, you can register as the shared NSApplication's delegate, and handle the dropped files by responding to the -application:openFile: and/or -application:openFiles: delegate messages. You can also configure your app to read and/or edit standard types like txt or jpg, by using specific Apple UTIs, instead of UTIs based on your own domain. For details about UTIs: http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/understand_utis_intro/chapter_1_section_1.html sherm-- On Jan 10, 2008 9:31 AM, Dan Neville [EMAIL PROTECTED] wrote: Hi, I am writing an application in Perl and compiling it in CamelBones. I want to make it a DragDrop. I can't get the pasteboard to pass the file or folder information to the script. Does anyone have an example I could use as a template? Am I correct in thinking that the link is in the pList? I can't find this in any documentation. Thanks... Dan --
Re: CamelBones...
At 09:31 -0500 1/10/08, Dan Neville wrote: I am writing an application in Perl and compiling it in CamelBones. I want to make it a DragDrop. I can't get the pasteboard to pass the file or folder information to the script. Does anyone have an example I could use as a template? If all of Sherm's X-code stuff confuses your brain there is an AppleScript solution that doesn't make you learn the details of AppleScript. There is an example, with source, in: ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit It's actually some C drivel that changes line ends in text files but it could just as well have been a perl executable with a #! line at the top. It might now work properly for an application that is running when the drag occurs. -- -- From the U S of A, the only socialist country that refuses to admit it. --