use Time::Local; my $timestamp=time; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($timestamp); my $y = $year + 1900; my $m = $mon + 1; #输出 print sprintf("%04d%02d%02d%02d",$y,$m,$mday,$hour);
use File::Basename; my ($myFile,$myPath,$mySuffix) = fileparse($0,qr{.pl});
use File::Copy ; if( -e $fpath) { # 复制文件 copy($fpath,$rootDir."/data") or warn "Could not copy files\n"; }else { die "$fpath not found! $!\n"; }
my %h_sub; $h_sub{MSCHO} = \&mscho; $h_sub{MAPHO} = \&mapho; #调用 do $h_sub{$tidx}->($para);
my @alarm_tmp = <IH0>; $alarm_text{$tidx} = \@alarm_tmp;
创建于:2014.06.27 最后更新:2014.06.28
原文地址:http://www.cnblogs.com/herzog/p/3812818.html