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)



Subject: strip convenience function
Date: Sun, 2 Jan 2011 20:10:51 -0600
To: bugs-path-class [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
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
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().
Subject: Re: [rt.cpan.org #64405] strip convenience function
Date: Mon, 3 Jan 2011 04:46:08 -0600
To: bug-Path-Class [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
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
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.