in reply to Re^2: unlink fails to delete files with perculiar names
in thread unlink fails to delete files with perculiar names
It's merely speculation that he assigned it using a double-quoted literal
Agreed. That's why likely work.
It might just as well have come from a readdir
But don't you have to combine the values from readdir with the path in order to get a fully qualified path?
Could he be doing something like $targ = "$path/$fname";?
why would unlink have returned 1, as the OP states?
Not sure, but that construct looks suspect to me: my($no) = unlink $targ || carp "Unable to delete file $targ\n";.
What ends up in $no if unlink returns 0; the return value from carp()?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: unlink fails to delete files with perculiar names
by Anonymous Monk on Nov 22, 2011 at 11:06 UTC | |
by Eliya (Vicar) on Nov 22, 2011 at 12:11 UTC |