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

[MacPerl] Q: last ":" in a file path



What's the pro and con of having a ":" in the end of a path?

In Mac scripting, path ending with ":" indicates it's a folder, but apparently MacPerl (or Perl) doesn't care about this possibly because Unix world doesn't care. (since in unix folder are files (or such fact made very explicit))

For instance, the following script still works with or without ":" at the end of path.

opendir(D,"APS600:T2:Perl files");
print join("\n",readdir(D));

Can we say that the last ":" has absolutely no meaning in MacPerl?

 Xah, xah@best.com
 http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html
 "New Programing Paradigm: Parallel execution of bugs and C/C++ programers."



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