Shell

来源:互联网 发布:国际学校知乎 编辑:程序博客网 时间:2024/06/18 14:11

shell命令直接作为函数,在Perl中调用。

<pre name="code" class="plain">#!/usr/bin/perl use strict; use Shell; print "now is : ", date(); print "current time is : ", date("+%T"); my @dirs = ls("-laF"); foreach(@dirs) {    print if(//$/);#print directory } exit 0;


0 0