perl:使用system函数
system函数使用介绍
#!/usr/bin/perl -w
$stant=system("ls");
print "$stant\n";
$well=system "'date'";
print "three:$well\n-------------\n";
@hello=("echo","hello,world!");
system(@hello);
`` 也可以用的
一个简单的例子:
#!/usr/bin/perl -w @a=`ls /root` ; foreach ( @a ) { print $_ ; }
直接输出
print `ls /root`;
有点相关的文章
- 如何用perl处理测序文件 (1.000)
- perl常用的内置特殊变量 (1.000)
- 用Perl下载NCBI的Blast库(Blastdb) (1.000)
- 用Perl创建UTF-8的文件 (1.000)
- Perl:用File::Basename来获取文件名 (1.000)
- PHP柱状图、饼状图和线性图 (RANDOM - 0.500)
It’s an awesome article designed for all the web visitors; they will get advantage from it I am sure.
my blog post; Xanax
jypkcqubocch
You actually make it seem really easy together with
your presentation but I in finding this matter to be actually one
thing which I believe I’d never understand. It kind of feels too complex and extremely broad for me. I am taking a look forward in your next submit, I’ll try to get
the cling of it!
Thanks for the marvelous posting! I certainly enjoyed reading it, you will be a great author.
I will make certain to bookmark your blog and definitely will come back down the road.
I want to encourage you to ultimately continue your great job, have a
nice afternoon!
I take pleasure in, result in I discovered exactly what I was looking
for. You have ended my 4 day long hunt! God Bless you man.
Have a great day. Bye