develooper Front page | perl.perl5.porters | Postings from April 2010

Re: [perl #73930] File::Copy fails on IO::Handle objects

Thread Previous | Thread Next
From:
Philip Prindeville
Date:
April 9, 2010 04:23
Subject:
Re: [perl #73930] File::Copy fails on IO::Handle objects
Message ID:
4BBE5307.5090602@cpan.org
On 04/08/2010 01:45 PM, Dave Mitchell via RT wrote:
> Note this is still present in blead, and can be reproduced with the
> following. Note that the file actually gets copied.
>
> use Tie::StdHandle;
> tie *FH, 'Tie::StdHandle', '/etc/hosts';
> use File::Copy;
> copy(\*FH, "/tmp/hosts");
>
>   

Well, in the test suite for Filesys::SmbClient 3.99 it fails and had to
be commented out.

Probably because the IO::Handle fileno() method in that case does a croak().



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About