Skip Menu | will be shut down on March 1st, 2021.

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: Thanks.

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

Owner: Nobody in particular
Requestors: robert [...]

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

From oroszi.robert [...] Wed May 26 05: 18:48 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-9.912 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on
Content-Type: multipart/alternative; boundary=0015175cb714b9133104877bc4de
Message-ID: <AANLkTinqtvFrIWA4BClG0QJ2fSyHLGSLBwsKl6j7ntM2 [...]>
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -9.912
Received: from localhost (localhost []) by (Postfix) with ESMTP id 610FA2407EA for <cpan-bug+Path-Class [...]>; Wed, 26 May 2010 05:18:48 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id RSEK17eVU7Im for <cpan-bug+Path-Class [...]>; Wed, 26 May 2010 05:18:44 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id EADE32407E5 for <bug-Path-Class [...]>; Wed, 26 May 2010 05:18:43 -0400 (EDT)
Received: (qmail 20911 invoked by uid 103); 26 May 2010 09:19:23 -0000
Received: from ( by with QMQP; 26 May 2010 09:19:23 -0000
Received: from (HELO ( by (qpsmtpd/0.80) with ESMTP; Wed, 26 May 2010 02:19:21 -0700
Received: by bwz3 with SMTP id 3so907168bwz.9 for <bug-Path-Class [...]>; Wed, 26 May 2010 02:19:18 -0700 (PDT)
Received: by with SMTP id s16mr3448309bkt.20.1274865558032; Wed, 26 May 2010 02:19:18 -0700 (PDT)
Received: by with HTTP; Wed, 26 May 2010 02:19:17 -0700 (PDT)
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Authentication-Results: (amavisd-new); domainkeys=pass header.sender=oroszi.robert [...]
Delivered-To: cpan-bug+Path-Class [...]
Subject: bug in remove
Return-Path: <oroszi.robert [...]>
Domainkey-Signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=lTk3MOiQHNZ/LT4siHgVIExObES1N+yeEGt70lJJOikmOu9Q66Ek97+tJD6f41CC+K qVYV9zag/e+yiLQ/MTQFftuGrIq7yqDoievmq6ZL+smRg6XmjsMP1Sg70mbQK2smYCvD glaox6niF8cIdjEtgC0eWJhZmCnvz1hPLa19g=
X-RT-Mail-Extension: path-class
X-Original-To: cpan-bug+Path-Class [...]
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=IgoZTAu6hVXxj2mkXtkTSlELE05UxjGS9qOVPlrzoSE=; b=QEgy1i9VdOJGYU5w2D1hR7PgpDLhrBGjP8+RT6mFgTotvuX4cWT9uQnlwB+1yf5OlN RPQwLqq9TmKj1AvaWgsDru/mdkPdu33x2Wi7sA52MrTXyMW91LMM/ilUiMbefiOrTxbk +TAuEgH5Ae7QSCwca3kXambOQwFqgPcy8kP3Q=
X-Google-Sender-Auth: KK46Rpmh9cfDzKrLz3lcdJ_puhw
Sender: oroszi.robert [...]
Date: Wed, 26 May 2010 11:19:17 +0200
To: bug-Path-Class [...]
From: Róbert Oroszi <robert [...]>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 374
Download (untitled) / with headers
text/plain 374b
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
content-type: text/html; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 452

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to