怎样用类似下面这种Perl单行命令来实现呢?复制代码
- use Date::Calc qw( Today Day_of_Week );
- ($year,$month,$day) = Today();
- $week = int(($day + Day_of_Week($year,$month,1) - 2) / 7) + 1;
- print "$week\n";
复制代码
- perl -e "print '=' x 3"
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |