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)
- BioPerl指南 - 序列格式的转换 (RANDOM - 0.500)






