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)



From oroszi.robert [...] gmail.com 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 16.mx.develooper.com
Content-Type: multipart/alternative; boundary=0015175cb714b9133104877bc4de
Message-ID: <AANLkTinqtvFrIWA4BClG0QJ2fSyHLGSLBwsKl6j7ntM2 [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -9.912
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 610FA2407EA for <cpan-bug+Path-Class [...] hipster.bestpractical.com>; Wed, 26 May 2010 05:18:48 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RSEK17eVU7Im for <cpan-bug+Path-Class [...] hipster.bestpractical.com>; Wed, 26 May 2010 05:18:44 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id EADE32407E5 for <bug-Path-Class [...] rt.cpan.org>; 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 x16.dev (10.0.100.26) by x1.dev with QMQP; 26 May 2010 09:19:23 -0000
Received: from mail-bw0-f50.google.com (HELO mail-bw0-f50.google.com) (209.85.214.50) by 16.mx.develooper.com (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 [...] rt.cpan.org>; Wed, 26 May 2010 02:19:18 -0700 (PDT)
Received: by 10.204.136.208 with SMTP id s16mr3448309bkt.20.1274865558032; Wed, 26 May 2010 02:19:18 -0700 (PDT)
Received: by 10.204.50.200 with HTTP; Wed, 26 May 2010 02:19:17 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.sender=oroszi.robert [...] gmail.com
Delivered-To: cpan-bug+Path-Class [...] hipster.bestpractical.com
Subject: bug in remove
Return-Path: <oroszi.robert [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; 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 [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; 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 [...] gmail.com
Date: Wed, 26 May 2010 11:19:17 +0200
X-Spam-Level:
To: bug-Path-Class [...] rt.cpan.org
From: Róbert Oroszi <robert [...] oroszi.net>
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.