Cool File & Directory Modules File::Copy 28 of 69 : prev | index | next

File::Copy

copy()

  use File::Copy;
  copy("file1","file2") or die "Copy failed: $!";
  $n = FileHandle->new("/a/file","r");
  copy($n,\*STDOUT);
Either argument may be
  • a string,
  • a FileHandle reference or
  • a FileHandle glob

© 2003 Barbie - barbie@missbarbell.co.uk contents http://birmingham.pm.org/