On Fri, Oct 11, 2002 at 04:40:30PM +0100, mike wrote:
> ../build.pl
> /root/cvs/esound # this the output of $dir3
> /
> 
> cannot change No such file or directory at ./build.pl line 13,
> <BLD_LIST> line 55.
> this is ls in same directory, as you can see esound is there

I don't have any context for what the three lines you output are.  The
reason you can't chdir, though, is clear; now all you have to figure out is
why you're getting an error.  I can assure you it's not because either Perl
or the chdir function is broken, so it must be something else.

Perhaps your current directory isn't what you think it is.  I'd suggest you
make it more clear in your print; i.e. something along the lines of:

    print "cwd: ", getcwd(), ", chdir to: $dir\n";
    chdir($dir) || die("Unable to chdir to directory \"$dir\": \l$!.\n");

That way you know where you are in the filesystem, and what you're trying to
chdir to.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to