首页 > 试题广场 >

已知attention文件内容如下: drwxr-xr-x

[单选题]

已知attention文件内容如下:

drwxr-xr-x 2 Jancy 4096 Oct 2 08:02 testa

drwxr-xr-x 2 Lily 4096 Oct 3 10:17 testb

drwxr-xr-x 2 Jancy 4096 Oct 4 12:03 testc

drwxr-xr-x 2 Jancy 4096 Otc 5 14:30 testd

drwxr-xr-x 2 Jane 4096 Otc 6 06:56 tests

仔细查看下列程序,输出结果是什么?

open(IN,"<attention");

while (<IN>){

   chomp;

   if($_=~/drwxr-xr-x\s+\d+\s+Jancy\s+\d+\s+Otc\s+(\d+)\s+14:30\s+(.+)$/){

    if($1>4){

      print "$2";

    } else {

      print "no";

    }

  }

}

  • testa

  • testc

  • testd

  • no

这道题你会答吗?花几分钟告诉大家答案吧!