Thanks.

 

To get the statistics of a file on my windows box, I ran the following script:

 

 

open FILE1, "Perfect.xls" or die "Cannot open file: $!";

 

my @stuff = stat "FILE1";

 

print "@stuff";

 

 

 

Unfortunately, I don’t know why this never returned any values into my @stuff variable. Next I tried this:

 

 

 

open FILE1, "Perfect.xls" or die "Cannot open file: $!";

 

open FILE2, ">folder\Perfect.xls" or die "Cannot write to destination directory: $!";

 

system ("copy FILE1 FILE2");

 

close FILE1;

close FILE2;

 

 

I just kept getting the error : cannot find the file specified.

 

 

 

Kind regards

 

 

 

 

Adedayo Adeyeye

Netcom Africa Limited                              

Engineering

South Atlantic Petroleum Tower             

 

7/F, 7 Adeola Odeku Street

 

Victoria Island, Lagos, Nigeria                  

[EMAIL PROTECTED]   

Tel:

234.1.461.1234

Skype: crownd

Fax:

234.1.461.1235

http://www.netcomafrica.com

Mobile:

0802.501.3758

 

 

 

 

 

 

 

The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Kindly destroy this message and notify the sender by replying the email in such instances. We do not accept responsibility for any changes made to this message after it was originally sent and any views, opinions, conclusions or other information in this message which do not relate to the business of this firm or are not authorized by us. Netcom is not liable neither for the proper and complete transmission of the information contained in this communication nor any delay in its receipt.

 

 

 

 

 

Reply via email to