由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - perls questions //bow
相关主题
[转载] 请教三个关于emacs和perl的问题Questions about Makefile
漆血柜求A tough compiler problem
[转载] QUestion about Perl[转载] molscript and grasp
please help, CGI..where is libstdc++
perl出错求教GCC的编译?
c compile error help![转载] ask a question.
Link ErrorGCC 一问
大侠救命—— #include ERROR!!Help: convert // to /* */ in C code?
相关话题的讨论汇总
话题: file话题: list话题: bow话题: perls
进入Unix版参与讨论
1 (共1页)
a*****j
发帖数: 13
1
is it possible that I push filehandles into an array
like the following:
for($i=0; $i<10; ++$i)
{
open(tmp,"./abc.txt") or die(...);
push(@file_list, $tmp);
}
....
while(@file_list)
close(pop(@file_list));
I used the similar code like the above, but it gave me compilation errors.
another question: wot is the option that I should use to see compilation
errors from perl?
I am a pretty newbee in perl, please help!
//bow
a***r
发帖数: 35
2

while(@file_list){
close(pop(@file_list));
}
?

【在 a*****j 的大作中提到】
: is it possible that I push filehandles into an array
: like the following:
: for($i=0; $i<10; ++$i)
: {
: open(tmp,"./abc.txt") or die(...);
: push(@file_list, $tmp);
: }
: ....
: while(@file_list)
: close(pop(@file_list));

b*m
发帖数: 5
3


【在 a*****j 的大作中提到】
: is it possible that I push filehandles into an array
: like the following:
: for($i=0; $i<10; ++$i)
: {
: open(tmp,"./abc.txt") or die(...);
: push(@file_list, $tmp);
: }
: ....
: while(@file_list)
: close(pop(@file_list));

1 (共1页)
进入Unix版参与讨论
相关主题
Help: convert // to /* */ in C code?perl出错求教
about compiling new glibc/gcc in fc14 (转载)c compile error help!
help needed-install gcc/g++ 4.7 on ubuntu 14.04Link Error
Re: 请推荐一本perl book好不好大侠救命—— #include ERROR!!
[转载] 请教三个关于emacs和perl的问题Questions about Makefile
漆血柜求A tough compiler problem
[转载] QUestion about Perl[转载] molscript and grasp
please help, CGI..where is libstdc++
相关话题的讨论汇总
话题: file话题: list话题: bow话题: perls