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: 64405
Status: open
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

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



From xenoterracide [...] gmail.com Sun Jan 2 21: 10:59 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.519 tagged_above=-99.9 required=10 tests=[AWL=-0.309, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
X-Spam-Flag: NO
Content-Type: text/plain; charset=UTF-8
Message-ID: <AANLkTimBcF7FEnpnWuT=54bOsz4HGPkc0cju3UpntyGV [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.519
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3967C24137B for <cpan-bug+path-class [...] hipster.bestpractical.com>; Sun, 2 Jan 2011 21:10:59 -0500 (EST)
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 3Fzfypj9d+lI for <cpan-bug+path-class [...] hipster.bestpractical.com>; Sun, 2 Jan 2011 21:10:57 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 900F7241372 for <bugs-path-class [...] rt.cpan.org>; Sun, 2 Jan 2011 21:10:57 -0500 (EST)
Received: (qmail 7992 invoked by uid 103); 3 Jan 2011 02:10:56 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Jan 2011 02:10:56 -0000
Received: from mail-wy0-f178.google.com (HELO mail-wy0-f178.google.com) (74.125.82.178) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Sun, 02 Jan 2011 18:10:55 -0800
Received: by wyb42 with SMTP id 42so13408996wyb.9 for <bugs-path-class [...] rt.cpan.org>; Sun, 02 Jan 2011 18:10:52 -0800 (PST)
Received: by 10.227.138.129 with SMTP id a1mr6632300wbu.37.1294020651529; Sun, 02 Jan 2011 18:10:51 -0800 (PST)
Received: by 10.227.128.20 with HTTP; Sun, 2 Jan 2011 18:10:51 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=xenoterracide [...] gmail.com
Delivered-To: cpan-bug+path-class [...] hipster.bestpractical.com
Subject: strip convenience function
Return-Path: <xenoterracide [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vcTxQXkUkGxdWIVSZqtsPg0r+FBYxE9cBVWggFB8FfX9omwf/o9KUcDWmSETX9cnfs Krj06KAva8ldU3Jjm+s7cvOLt1WOKRK0/7v0H0ACdRedVJXhkWI5At0fA9AWZtjf2HbW yxpE8pvcBXp/r9L9/obvZ4NxsNRdfs63LyHC8=
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:received:date:message-id :subject:from:to:content-type; bh=o8/jH2d/zfAQixLTghy6P55eyOWPc0mvwlfqU3fTueE=; b=K2MrBjmfEhp7VjZGhLtIung/mrENxEDUA2pEzgcG5g0fF010+91Fw8obM9dYzFWtpk A+njDoYtX7iyElbNUdjeSFYUKS3WboeOav/trgmGHPrU2w7btX4+lxVdQlzWfYWMTbe8 AWY13uSrYfujSfeuXfztne1aVMAqm11/8MY3c=
Date: Sun, 2 Jan 2011 20:10:51 -0600
X-Spam-Level:
To: bugs-path-class [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
X-RT-Original-Encoding: utf-8
Content-Length: 689
Download (untitled) / with headers
text/plain 689b
my generalized problem is I have a Path::Class object with a path of /foo/bar/baz . but I need to modify the path of the object to be /bar/baz . It's been suggested that I create export the path to an array, and then shift the first element off, and create a new object from that array. This sounds like it will work but seems tedious. GNU tar (yes I realize this isn't gnu tar) has an argument --strip-components=N where N is the number of path components you want to strip off the front. I'm not really sure if the API should be $dir->strip(1); or something else. but it seems to me like that would be much nicer than what's been suggested. -- Caleb Cushing http://xenoterracide.com
MIME-Version: 1.0
In-Reply-To: <AANLkTimBcF7FEnpnWuT=54bOsz4HGPkc0cju3UpntyGV [...] mail.gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <AANLkTimBcF7FEnpnWuT=54bOsz4HGPkc0cju3UpntyGV [...] mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-19313-1294025970-1813.64405-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 122
Download (untitled) / with headers
text/plain 122b
I think maybe a more general solution would be to add push(), pop(), shift(), and unshift() methods. And maybe splice().
From xenoterracide [...] gmail.com Mon Jan 3 05: 46:16 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.474 tagged_above=-99.9 required=10 tests=[AWL=-0.264, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-19313-1294025970-758.64405-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-64405 [...] rt.cpan.org> <AANLkTimBcF7FEnpnWuT=54bOsz4HGPkc0cju3UpntyGV [...] mail.gmail.com> <rt-3.8.HEAD-19313-1294025970-758.64405-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <AANLkTin3+wyaQ=qBb-1+XHVDN8t_W8jxiykBpchZw1PY [...] mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.474
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=xenoterracide [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 914402411DF for <cpan-bug+Path-Class [...] hipster.bestpractical.com>; Mon, 3 Jan 2011 05:46:16 -0500 (EST)
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 C+nU+dVbV2tD for <cpan-bug+Path-Class [...] hipster.bestpractical.com>; Mon, 3 Jan 2011 05:46:15 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id BBF3B241185 for <bug-Path-Class [...] rt.cpan.org>; Mon, 3 Jan 2011 05:46:14 -0500 (EST)
Received: (qmail 11157 invoked by uid 103); 3 Jan 2011 10:46:14 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Jan 2011 10:46:14 -0000
Received: from mail-wy0-f178.google.com (HELO mail-wy0-f178.google.com) (74.125.82.178) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 03 Jan 2011 02:46:12 -0800
Received: by wyb42 with SMTP id 42so13637707wyb.9 for <bug-Path-Class [...] rt.cpan.org>; Mon, 03 Jan 2011 02:46:09 -0800 (PST)
Received: by 10.227.143.79 with SMTP id t15mr1092071wbu.95.1294051568734; Mon, 03 Jan 2011 02:46:08 -0800 (PST)
Received: by 10.227.128.20 with HTTP; Mon, 3 Jan 2011 02:46:08 -0800 (PST)
Delivered-To: cpan-bug+Path-Class [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #64405] strip convenience function
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Ws/QuolaKIGk98/5tyvvNzddZkbs4SX8xJXLSIBHUOv6dA0FoZb7OY9WNi7C4S8h6i FVlGwxQqL1U8XyCljZ75s8p8pom8BQ8TkMA4oun4N8UOYGj8aHR8rI2GehYSrjnDGv7T WuCi2EyBF0xURS5ICOJ7obQuGXyny2Bxj7Zes=
Return-Path: <xenoterracide [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Pcx6cnMHcq6fDVTJ+ASJkOletgtajI1eKR2lRuNA7f0=; b=Fz8Nr1Yc/Y2ss6zWu3ECXhSDbvr+iWxK5VoZelOeDtVg1JPsa0Eky6dihCUFqcJbCZ E0AV8bK66fzKS+dwuAMaIZWrTxJO1N5qnSV0Y+m0dL3NZT5t5aLPc9C31+KQIb2H6nMU UZpdibK2sIB0EGjb36UJ+yA10US0Oxpyskiu8=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Path-Class [...] hipster.bestpractical.com
X-RT-Mail-Extension: path-class
Date: Mon, 3 Jan 2011 04:46:08 -0600
X-Spam-Level:
To: bug-Path-Class [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Caleb Cushing <xenoterracide [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-9644-1294051577-340.64405-0-0 [...] rt.cpan.org>
Content-Length: 419
Download (untitled) / with headers
text/plain 419b
On Sun, Jan 2, 2011 at 9:39 PM, Ken Williams via RT <bug-Path-Class@rt.cpan.org> wrote: Show quoted text
> I think maybe a more general solution would be to add push(), pop(), shift(), and unshift() > methods.  And maybe splice().
that's possible, I'm not really picky on the end API, I just thought maybe this could be done cleaner. p.s. do you prefer bug reports here or google issues? -- Caleb Cushing http://xenoterracide.com
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-9644-1294051577-340.64405-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-64405 [...] rt.cpan.org> <AANLkTimBcF7FEnpnWuT=54bOsz4HGPkc0cju3UpntyGV [...] mail.gmail.com> <rt-3.8.HEAD-19313-1294025970-758.64405-6-0 [...] rt.cpan.org> <AANLkTin3+wyaQ=qBb-1+XHVDN8t_W8jxiykBpchZw1PY [...] mail.gmail.com> <rt-3.8.HEAD-9644-1294051577-340.64405-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-19313-1294063108-1856.64405-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 171
Download (untitled) / with headers
text/plain 171b
On Mon Jan 03 05:46:17 2011, XENO wrote: Show quoted text
> p.s. do you prefer bug reports here or google issues?
Probably best here on RT, I don't check the google queue much. Thanks.


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.