Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Mac OS alias from Perl: msg#00024

lang.perl.macosx

Subject: Re: Mac OS alias from Perl

Yes the alias function in MacOSX is different than regular Unix. If your software is targets a Unix server and not to only run under MacOSX, it is much better to make the links on the Mac at the command line with Unix ln command (e.g. ln -s -which is safer) to test and maintain a consistent Unix environment. Fortunately Mac support of regular Unix is really excellent and ln works as advertise on a Mac. By the way, another "got-you" is the Mac filesystem.  On new Mac computers where the software is pre-installed, the filesystem ignores case. The is not true in regular Unix. For example: in regular Unix, a file name like "johnsfile" and "johnsFile" are considered different file. But on the Mac,  they are considered the same. But you have a true Unix filesystem by reformating the disk to support case sensitive file naming. This has hurt me several times till I reformated my drive.

Chris Devers wrote:
On Dec 8, 2007, at 7:06 PM, Celeste Suliin Burris <csburris@xxxxxxxxxxxxx> wrote:

Use a symbolic link instead.  Perl handles those natively, and they can be
accessed from the command line. The Finder just treats them the same as
aliases.



Not quite. I forget the details at the moment, but Finder aliases are kind of like "firm links": while hardlinks point to inodes, and softlinks point to file pathnames, aliases point to the logical file in a more robust way than symlinks. For example, if the reverent file moves, symlinks break, but aliases shouldn't.

If you really want aliases, I think the CPAN modules of Dan Kogai and Chris Nandor are the place to start. I forget who wrote what, but modules like (I think) MacOS::File and Mac::Glue can either make the right calls directly, or leverage Applescript / OSAscript to do this for you.

Or if symlinks/softlinks are enough, just use the traditional Perl / Unix methods to make those.



--

Michael Barto
Software Architect

LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
http://www.logiqwest.com/

    mbarto@xxxxxxxxxxxxx
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949

'tis a gift to be simple
This e-mail may contain LogiQwest proprietary information and should be treated as confidential.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation