[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Looping folders



On Fri, 6 Feb 1998 16:55:45 -0800, Rich Morin wrote:
>
>At 14:58 -0800 on 2/6/98, Mark Manning/Muniz Eng. wrote:
>
>> ... they had aliased a folder (somehow) to point
>> back at the top level directory.
>
>Yow!  Unix doesn't allow anyone except root (superuser) to make hard
>links to directories, and doesn't encourage it even then.  Mac OS
>aliases are a bit more like Unix symbolic links than hard links in
>implementation, but it appears that the semantics are still close
>enough for this sort of usage to cause problems...
 
And the point is...??? Unix does not prevent symbolic links from pointing
to a directory up the tree, so the same thing could happen.

This is Yet Another Reason why people should not try to reinvent the
wheel, but instead become familiar with the code that comes with Perl. It
is quite likely thut weird stuff like this is already dealt with,
especially in modules that come with the Perl core. It's also much faster
to learn how to use, say, File::Find than to write and debug your own.

>
>-r
>
>Rich Morin, Canta Forda Computer Laboratory | Prime Time Freeware -
quality
> UNIX consulting, training, and writing | freeware at affordable prices
> P.O. Box 1488, Pacifica, CA, 94044, USA | www.ptf.com info@ptf.com
> rdm@cfcl.com +1 650-873-7841 | +1 408-433-9662 -0727 (Fax)
>
>



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch