perl - Using the File::Copy to copy a file -


i'm trying out simple program copy file. program dies error.

the code i'm trying is:

#! /usr/bin/perl -w  use file::copy #my $source = "1.txt"; #my $dest = "copy.txt"; copy("1.txt","copy.txt") or die"copy failed $!\n"; 

and error message is:

syntax error @ 3.pl line 5, near ") or" execution of 3.pl aborted due compilation errors.

you're missing semicolon ;

use file::copy; 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -