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

Trailing ':'



After getting into directory names and such, I am finding that NOT putting
a ':' at the end of a directory name can sometimes cause bad things.
Matthias and I are hereby saying that all directory names should end in a
colon in all routines.  It will often work without it, but it is best if
you do it.

I am saying this as a plea for convention, but also a call for help: if you
find any routines in MacPerl that do NOT return a trailing colon on a
directory, please notify the list, so they can be fixed.

File::Find currently does not work.  This is going to be changed.  So if
you depend on the value of $File::Find::dir having a trailing colon, get
ready for the change.  File::Find::find(\&wanted, $dir) fails if $dir is a
volume name, because of colon problems.  I tried to come up with a fix, but
eventually when it gets fixed better it will still probably break if you
pass it "VolumeName" instead of "VolumeName:".

Sigh.  :)

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#