Author: kvnsmnsnkvnsmnsn Date: Jun 30, 2008 15:14
I recently ran a Perl script on my Windows Vista Enterprise machine
that appeared to go into an infinite loop. After it sat there for a
while apparently not doing anything I killed the window it was running
in.
Now I can't run that program any more, nor can I run any program that
pipes the command's output into a file handle. For example, I
wrote the very simple Perl script:
open( DIR_OTPT, "dir Drctry |");
print "Before.\n";
local @drFiles = ;
print "After.\n";
for $fileLine (@drFiles)
{ chomp( $fileLine);
print "[$fileLine]\n";
}
close( DIR_OTPT);
|