⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phoneyhits

📁 this gives details of the network programming
💻
字号:
#!/usr/local/bin/perl## add a line of phoney hitcounts for today to hitlist#$max = ($ARGV[0] || 1000);printf("Using $max\n");$_ = `date "+%m %d %Y"`;chomp;($mon,$day,$year) = split;open(F,"hitcount") || die $!;while (<F>) {    chomp; ($m,$d,$y) = split;    if (($m==$mon)&&($d==$day)&&($year=$y)) {	$lines[$i++] = sprintf("$mon $day $year %s", randhits());    } else {	$lines[$i++] = $_;    }}close(F);open(F,">hitcount") || die $!; if ($#lines<0) {    printf(F "$mon $day $year %s", randhits());} else {    for ($i=0;$i<=$#lines;$i++) {	printf(F "$lines[$i]\n");    }}close(F);sub randhits {    my($i);    my(@nums);    srand;    for ($i=0;$i<24;$i++) {	$nums[$i] = int(rand($max));    }    return(join(" ",@nums));}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -