全部文本 #262765 原始 编辑

Miscellany

公开 text v1 · 不可变
·已发布 2006-11-30 21:38 UTC
渲染后的文本正文
my @input = <STDIN>;
unless ($input[25] =~ /.*ITN.*ITE.*WAHEAD.*WBEHIND.*WLEFT.*WRIGHT.*STATUS.*/) { exit; }
splice(@input,0,27); splice(@input,-3); # Get rid of unneeded stuff

   if ($ARGV[0] eq "-s" ) { &summary(@input) }
elsif ($ARGV[0] eq "-h" ) { &help }
elsif ($ARGV[0] eq "-e" ) { &error(@input) }