in reply to Unlink doesn't work on first file

$! says that the file or directory does not exist, even though it does.

I'm working on UNIX, specifically Solaris 5.6.

Replies are listed 'Best First'.
Re: Re: Unlink
by strat (Canon) on Nov 13, 2002 at 17:32 UTC
    Maybe you are not in the directory you think to be. I had this problem some years ago under WinNT with different Webservers, and tried something like the following to find out what is my actual working directory:
    #! /usr/bin/perl -w use strict; use Cwd; print "Content-type: text/html\n\n"; print "Actual dir is: ", cwd;

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Re: Re: Unlink
by TheHobbit (Pilgrim) on Nov 13, 2002 at 21:51 UTC

    Hi,
    Are you sure there is no <emph>unprintable</emph> characters in the file name? I had the same problem and it turned out that, aving got the filename from a DOS file, it has a \r appended to it. It didn't show on the ls output, but was there...

    Hoping it helps...


    Leo TheHobbit