pontifex
03-08-2007, 07:48 PM
Recently I’ve been looking to code my own Perl scripts for MacOSX. I’ve asked (http://forums.macosxhints.com/showthread.php?t=66377) about (http://forums.macosxhints.com/showthread.php?t=66222) doing scripts before, but this is the first time that I’ve actually sat down to write one.
I seem to be having some issues with Perl on OSX. In this ( http://forums.macosxhints.com/showthread.php?t=66222) thread Hayne (Thanks for all the help!), uses ‘use Mac::Files’ to get at some Mac specific routines that would seem to make life easier for me. But he also suggests doing a ‘perldoc Mac::Files’, which does not work on my machine!
perldoc Mac::Files
No documentation found for "Mac::Files".
From what I’ve been able to glean, Mac::Files is part of Mac-Carbon ( http://search.cpan.org/~cnandor/Mac-Carbon-0.77/), a third party suite of modules for interfacing with the OSX carbon API. It looks as if Hayne expected it to be installed by default…
It would seem to be a perfectly suitable set of modules to have bundled with the stock Perl installation I’ve seen on my computer, but it does not seem to be installed as of yet. Is this normal?
I’ve verified that Perl is indeed installed and “working” on my machine, but I’ve been hesitant to use it as of yet because it seems incomplete. When reading the man page (http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/perl.1.html), I’ve found several references to inaccurate information. For instance, the man page cites that perl documentation lives in /usr/local/lib/perl5/man directory, but I don’t have one. Instead it seems to be in /System/Library/Perl/5.8.1, along with other crucial modules.
So really a pointer to some coherent documentation about Perl on Mac would be of great help. Some tool to check if my Perl is functioning correctly would be helpfully as well.
Thanks for helping to put my mind at ease.
--Pontifex
I seem to be having some issues with Perl on OSX. In this ( http://forums.macosxhints.com/showthread.php?t=66222) thread Hayne (Thanks for all the help!), uses ‘use Mac::Files’ to get at some Mac specific routines that would seem to make life easier for me. But he also suggests doing a ‘perldoc Mac::Files’, which does not work on my machine!
perldoc Mac::Files
No documentation found for "Mac::Files".
From what I’ve been able to glean, Mac::Files is part of Mac-Carbon ( http://search.cpan.org/~cnandor/Mac-Carbon-0.77/), a third party suite of modules for interfacing with the OSX carbon API. It looks as if Hayne expected it to be installed by default…
It would seem to be a perfectly suitable set of modules to have bundled with the stock Perl installation I’ve seen on my computer, but it does not seem to be installed as of yet. Is this normal?
I’ve verified that Perl is indeed installed and “working” on my machine, but I’ve been hesitant to use it as of yet because it seems incomplete. When reading the man page (http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/perl.1.html), I’ve found several references to inaccurate information. For instance, the man page cites that perl documentation lives in /usr/local/lib/perl5/man directory, but I don’t have one. Instead it seems to be in /System/Library/Perl/5.8.1, along with other crucial modules.
So really a pointer to some coherent documentation about Perl on Mac would be of great help. Some tool to check if my Perl is functioning correctly would be helpfully as well.
Thanks for helping to put my mind at ease.
--Pontifex