NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Strongly, strongly disagree (Score:1)
You're way off base on this one.
I've been using Mac for Perl dev for about 6-7 years (whenever OS X 10.1 came out) and consider it first class. The Mac:: packages are largely irrelevant -- Carbon is a legacy API from the 90s, about as relevant today as a Win95-specific API would be I suppose. If you used a Win95:: library, you'd get similar complaints from users of a modern Windows OS.
The "flood" of Win32:: packages is because you need those platform-specific hacks to get anything done on Windows Perl. N
Re: (Score:2)
File::HomeDir, for the Mac, requires Mac::Files which is unfortunately bundled with Mac::Carbon. The latter does not and will never run on a 64-bit Perl, but that's the direction we're going. Because Bundle::CPAN requires File::HomeDir, a fresh Perl installation on a Mac is very painful if you have a 64-bit Perl. I had to manually install File::HomeDir after locally patching it to work around the Mac::Files pain.
Re: (Score:1)
Then build me a Cocoa replacement and I'll link to that instead
Re: (Score:2)
But you don't need Cocoa or Carbon just to have File::HomeDir functionality, do you? Or am I missing something?
Re: (Score:1)
See my previous comments.
The location of your "Documents" directory can only be determined via a system call. You cannot assume ~/Documents in all cases.
This is the reason that we use Mac::Files in the first place.
Re: (Score:1)
This argument has become so tiresome, though. Are there any examples of any real installation where the natural constant values of "user homedir from getpw*" followed by, say, Documents, are wrong?
I can accept that to be 100% accurate to the spec, you must ask the Cocoa layer, but since there is no way to change these values, it's fairly absurd to demand that we will simply make it harder to use a Mac than another unix box. It would be nice to have a Cocoa-based directory checker, but without it, nothing
rjbs
Re:Strongly, strongly disagree (Score:1)
Reply to This
Parent
Re: (Score:1)
I USED to just use ~/Documents, and then I got yelled at and donated the code to use the system call.
I forget exactly why it was a problem, I'm hoping pudge chips in.
Re: (Score:2)
Here's a patch to fallback ~/Documents and a like if Mac::Files is not available
http://gist.github.com/198459 [github.com]
It also fixed the bug in darwin.t where it skips the whole tests if you have multiple users.