2009年5月8日星期五

[PerlChina] Re: 关于获取运行时的命令行参数的问题

I see.

----- Original Message -----
From: agentzh
To: perlchina@googlegroups.com
Sent: Friday, May 08, 2009 3:05 PM
Subject: [PerlChina] Re: 关于获取运行时的命令行参数的问题


2009/5/8 Jester <jester@perlchina.org>

如果用下面的方法运行一个perl脚本:
myprogram.pl input1 input2 > output.txt

对于你的 perl 脚本而言,输出文件句柄就是 stdout ;) 它好像没有一般意义上的"文件名"的说,呵呵。。。如果真需要名字,我们一般这么写:

myprogram.pl -o output.txt input1 input2...


-agentzh


--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina Mongers 讨论组"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

没有评论: