Bill Becker wrote: > What would be the best way to determine this programmatically ???
The File::Spec module should lead you in the right direction. $pathsep = File::Spec->catdir(''); yields ":" for $pathsep on my Mac (running OS 8.6), and "/" on my Linux machine. Cheers, David Iberri > Bruce Van Allen wrote: >> >> At 12:08 PM -0500 4/17/02, Tom Carr wrote: >>> I wrote a simple perl script on macOS9.2 and want to move to an OSX box. >>> When I run it on the OSX box, my path syntax is not working. Is the path >>> syntax for OSX different than OS9? >>> >>> my $files_to_move = ':In'; #top level folder for search >>> >>> In this line, ":In" does not resolve. The "In" directory is in the same >>> directory as the perl script. >> >> In OS X, Perl is uses the UNIX path separator, '/', instead of Mac's ':'. >> >> Also, paths are UNIX-style. If you use BBEdit, open the script or >> file in question, and get the path from the toolbar button. That'll >> give you an example to follow. >>