Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 57850
Status: new
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: robert [...] oroszi.net
Cc:
AdminCc:

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



Subject: bug in remove
Date: Wed, 26 May 2010 11:19:17 +0200
To: bug-Path-Class [...] rt.cpan.org
From: RĂ³bert Oroszi <robert [...] oroszi.net>
Hi i just found a bug in Path::Class. Now remove sub looks like this: sub remove { my $file = shift->stringify; return unlink $file unless -e $file; # Sets $! correctly 1 while unlink $file; return not -e $file; } BUT it cannot remove the file, because "unless -e $file" returns true, so you should change like this: return unlink $file unless !(-e $file); thx