Permalink
Browse files

Deprecate File::Copy

  • Loading branch information...
1 parent 4587ca6 commit 058d256513051d776e99b872ca903600850100eb @tadzik committed Apr 30, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/File/Copy.pm
View
@@ -2,6 +2,11 @@ use v6;
module File::Copy;
+BEGIN {
+ warn "File::Copy is now deprecated, "
+ ~ "please use Rakudo's IO.copy() instead";
+}
+
sub cp(Str $from, Str $to) is export {
my $f1 = open $from, :r, :bin;
my $f2 = open $to, :w, :bin;

0 comments on commit 058d256

Please sign in to comment.