Perl文件读写

  • 写文件
[codesyntax lang="perl"]
#!/usr/bin/perl

open FILE, ">", "test.log";
select FILE;
print "hello\n";
print "world\n";
close(FILE);
[/codesyntax]
  • 参考
还不知道Perl语言如何循环吗?

你可能感兴趣的:(perl,文件读写)