Skip Menu |

This queue is for tickets about the autodie CPAN distribution.

Report information
The Basics
Id: 69406
Status: resolved
Priority: 0/
Queue: autodie

People
Owner: Nobody in particular
Requestors: JDB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
On Mon Jul 11 13:48:30 2011, JDB wrote: Show quoted text
> 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
From what I can tell this was corrected at some point. On perl 5.30 with autodie 2.30, I get: $>touch foo; perl -Mautodie -we '$_="foo"; unlink()'; ls -l foo -rw-r--r-- 1 root root 0 Jan 8 01:08 foo
I'm going to close this but please re-open if I've missed something.