This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make File::Copy always return 0 (not "") on failure.
authorPaul Fenwick <pjf@perltraining.com.au>
Fri, 24 Apr 2009 13:44:01 +0000 (23:14 +0930)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 5 May 2009 07:17:48 +0000 (09:17 +0200)
commit079cb8cc5abf40c0b016f9f878493b4d192d85d3
tree99de0221add239bfe29fbbb2e8fcadbe92def069
parent46d6503777f357c38f9d1cde19b6d3d1c6f36d3d
Make File::Copy always return 0 (not "") on failure.

On Unix systems, the subroutines in File::Copy always return 0
on failure.

On Windows, move() and mv() return 0, but copy() and cp() return "".

This commit makes File::Copy consistently return 0 on failure.
lib/File/Copy.pm
lib/File/Copy.t