maloi has asked for the wisdom of the Perl Monks concerning the following question:
which dies at the unlink, reporting "unlink: No such file or directory" $theLink doesn't change at all at any point in the code - the file's path/name is simply sent off to another program (which currently does nothing)... Any ideas?# This part works beautifully... $pathToFiles = '/home/pencilneckgeek/files'; $tempDir = '/home/pencilneckgeek/tmp/' + random(10000); mkdir($tempDir) or die "mkdir: $!\n"; $origFile = "$pathToFiles/theFile.txt"; $theLink = "$tempDir/theFile.txt"; symlink($origFile, $theLink) or die "symlink: $!\n"; # do some stuff... ... # now, here's where the problem lies... unlink($theLink) or die "unlink: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unlink unworking
by chromatic (Archbishop) on May 17, 2000 at 06:02 UTC | |
|
Re: unlink unworking
by Maqs (Deacon) on May 17, 2000 at 13:16 UTC | |
|
Re: unlink unworking
by btrott (Parson) on May 17, 2000 at 05:53 UTC | |
|
Re: unlink unworking
by perlmonkey (Hermit) on May 17, 2000 at 12:12 UTC | |
|
RE: unlink unworking
by turnstep (Parson) on May 17, 2000 at 06:17 UTC |