I tried it that way as well..
----
$ cat delete.pl
#!/usr/bin/perl -w
use IO::Dir;
tie %dir, 'IO::Dir', '.', DIR_UNLINK;
delete($dir{'foo'}) || die "$!\n";
------
and get the following warning..
Argument "DIR_UNLINK" isn't numeric in bitwise and (&) at /usr/lib/perl/5.8/IO/Dir.pm line 94.
The output is still the same as above and "echo $?" still returns 255. Have tried this on 3 separate systems.
In reply to Re^2: IO::DIR?
by vaj
in thread IO::DIR?
by vaj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |