#!/

 

I have two file have data & time and I need to get the different between it is there is any function to do it or I have to do one by one

 

 

 

 

 

 

use/bin/perl

open (date1,"temp3");

open (date2,"temp4");

$count=0;

chomp(@lines1=<date1>);

chomp(@lines2=<date2>);

foreach $record (@lines1)

{

$count++;

}

for ($i=0;$i<=$count-1;$i++)

{

print $i,"-",$lines1[$i]." ".$lines2[$i]."\n";

}

Disclaimer: The information in this email and in any files transmitted with it,
is intended only for the addressee and may contain confidential and/or privileged material.
Access to this email by anyone else is unauthorized. If you receive this in error,
please contact the sender immediately and delete the material from any computer.
If you are not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is strictly prohibited.
Statement and opinions expressed in this e-mail are those of the sender, and do not
necessarily reflect those of STC.
_______________________________________________
Perl-Win32-Web mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to