Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Perl

Idiom #228 Copy a file

Copy the file at path src to dst.

use File::Copy 'cp';
cp($src, $dst) or die $!;
with Ada.Directories;
Ada.Directories.Copy_File (Source_Name => Src,
                           Target_Name => Dst);

New implementation...