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

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

Thread Previous | Thread Next
Philip Prindeville
April 9, 2010 04:23
Re: [perl #73930] File::Copy fails on IO::Handle objects
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About