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

[MacPerl] Mac path name length?



I don't think I've seen this discussed on the list; the FAQ and pod files
seem not to refer to it.

I'm writing a script which manipulates great numbers of files, recursively
down from a folder which gets dropped on the "droplet".  I'm taking
whatever Perl gives me as a pathname, using that to refer to the file -- in
other words, I'm not looking at colons, spaces, etc. so it should be
cross-platform when I'm done.  Isn't ARGV wonderful?  :-)

Anyway, I'm just wondering if the Mac has a pathname limit under MacPerl; I
seem to remember the path name (as opposed to the basename) can be pretty
long.  Isn't it something like 255 chars?  I don't want to inadvertently
hand it a humongous path that causes weird behavior in Perl (it's been
robust so far).  Am I better off to chdir into each dir and process the
basenames only?  Is that contrary to common UN*X procedure?

TIA...

--
| Greg Dunn                       | I shut out acceptance so I won't |
| gregdunn@indy.net               | get hurt; and move on to the next|
| GregDunn@aol.com                | one who will treat me like dirt. |
| http://members.aol.com/gregdunn |                Patti Rothberg    |



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