On Mon, 17 Dec 2001 17:04:28 +0100, Eelco Alosery wrote:

>what is wrong whit thee's lines, if i run this, perl make's a directory
>testdir but it olso makes a file testdir/test.file.
>perl dus not make the file in the directory testdir.
>
>on the internet under unix it works fine but on my mac it make's a mistake

On the Mac, the path separator is a colon (":").

Either use ":testdir:test.file" as a file path on the Mac (don't forget
the leading colon, or the Mac will search for the volume "testdir"), or
use the module File::Spec, which is intended to do this kind of stuff in
a portable way.

-- 
        Bart.

Reply via email to