
kaguya
New User
Dec 16, 2002, 12:16 AM
Post #1 of 2
(168 views)
|
|
why the codes can not be executed?
|
Can't Post
|
|
hello, i have a segment of code as followed: ... #path for rlog command $CMD{rlog} = 'D:/project/programs/rcs'; if (defined($tag)) { if (!open($fh, "-|")) { #TRUE open(STDERR, '>/dev/null') ; # execute rlog comand for a list of the files exec($CMD{rlog}, @files) or exit -1; } } else { ..... } I found that the code after this segment can not be executed at all. even a print operation can get nothing displyed. I don't know why. Seems the current task executed by this segment can not exit so that the program can not continue. but i indeed put "exit" there. what is wrong with code? pls help! thanks alot
|