New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File::Copy fails on IO::Handle objects #10268
Comments
From philipp@cpan.orgI'm trying to use File::Copy(\*TIEDHANDLE, "/foo/bar"); and it's blowing out as: stat() on unopened filehandle FD at /usr/lib/perl5/5.10.0/File/Copy.pm line so I'm thinking that the logic bracketing the stat($from) and stat($to) should test to see if either one is a file handle first (i.e. use !$from_a_handle and !$to_a_handle, respectively). Same thing happens with IO::Handle() arguments. |
From @iabynNote this is still present in blead, and can be reproduced with the use Tie::StdHandle; |
The RT System itself - Status changed from 'new' to 'open' |
From philipp@cpan.orgOn 04/08/2010 01:45 PM, Dave Mitchell via RT wrote:
Well, in the test suite for Filesys::SmbClient 3.99 it fails and had to Probably because the IO::Handle fileno() method in that case does a croak(). |
From philipp@cpan.orgOn 04/08/2010 01:45 PM, Dave Mitchell via RT wrote:
Well, it wasn't working when the tied handle was one of |
Still present in perl-5.30.0. |
Migrated from rt.perl.org#73930 (status was 'open')
Searchable as RT73930$
The text was updated successfully, but these errors were encountered: