Subject: | autodie doesn't implement unlink() |
unlink() is documented to be the same as unlink($_) but autodie
implements it to be the same as unlink(()):
$ touch foo; perl -we '$_="foo"; unlink()'; ls -l foo
ls: foo: No such file or directory
$ touch foo; perl -Mautodie -we '$_="foo"; unlink()'; ls -l foo
Can't unlink(): at -e line 1
-rw-r--r-- 1 jan staff 0 11 Jul 00:09 foo