Skip Menu |

This queue is for tickets about the File-Copy-Recursive CPAN distribution.

Report information
The Basics
Id: 19637
Status: resolved
Priority: 0/
Queue: File-Copy-Recursive

People
Owner: Nobody in particular
Requestors: ndedik [...] swsoft.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.22
Fixed in: 0.23



Subject: Indirect method invocation instead of passing parameter
When I use: dircopy('/somepath', 'somedir/somefile') I catch the following error: Can't locate object method "pathrmdir" via package "somedir/somefile" (perhaps you forgot to load "somedir/somefile"?) at /usr/lib/perl5/site_ perl/5.8.3/File/Copy/Recursive.pm line 126. It's because of the line: pathrmdir $_[1] or carp "\$RMTrgDir failed: $!"; Perl tries to indirectly call pathrmdir as a method of $_[1], i.e. $_[1] ->pathrmdir. In order for this code to work, it should look like this: pathrmdir($_[1]) or carp "\$RMTrgDir failed: $!"; Please, fix it in CPAN so I can rely on the last version in a software project I am working for. Thanks a lot!
Sorry, I meant that build 0.22 is *broken*, not *fixed* concerning this bug...
Fixed in 0.23, just uploaded to CPAN thanks :)
Of course try it with your code and let me know that its resolved for you or not ;)
Thanks a lot for such a quick response :)! I'll wait for my CPAN mirror site I use to update the module and let you know how it works. Thanks :)!
Subject: Re: [rt.cpan.org #19637] Indirect method invocation instead of passing parameter
Date: Thu, 1 Jun 2006 10:00:34 -0500
To: bug-File-Copy-Recursive [...] rt.cpan.org
From: SimpleMood Webmaster <webmaster [...] simplemood.com>
On Jun 1, 2006, at 8:57 AM, Guest via RT wrote: Show quoted text
> > Queue: File-Copy-Recursive > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19637 > > > Thanks a lot for such a quick response :)! I'll wait for my CPAN > mirror
My pleasure :) Show quoted text
> site I use to update the module and let you know how it works. Thanks > :)!
Sounds good
Yeah, seems that it works, thanks ;)!
On Fri Jun 02 07:16:35 2006, guest wrote: Show quoted text
> Yeah, seems that it works, thanks ;)!
Great, thanks