Error Window Pops up when I Try to Use "dir" as a File Handle
  Home FAQ Contact Sign in
alt.comp.lang.perl only
 
Advanced search
POPULAR GROUPS

more...

alt.comp.lang.perl Profile…
 Up
Error Window Pops up when I Try to Use "dir" as a File Handle         


Author: kvnsmnsn
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);
Show full article (1.35Kb)
2 Comments
Re: Error Window Pops up when I Try to Use "dir" as a File Handle         


Author: Joe Smith
Date: Jul 5, 2008 23:07

kvnsmnsn@hotmail.com wrote:
> open( DIR_OTPT, "dir Drctry |");
> local @drFiles = ;

my @drFiles = glob "Drctry/*";
no comments
Re: Error Window Pops up when I Try to Use "dir" as a File Handle         


Author: kvnsmnsn
Date: Jul 7, 2008 14:43

On Jul 5, 11:07 pm, Joe Smith inwap.com> wrote:
> kvnsm...@hotmail.com wrote:
>> open( DIR_OTPT, "dir Drctry |");
>> local @drFiles = ;
>
> my @drFiles = glob "Drctry/*";

Thanks! This works.
no comments

RELATED THREADS
SubjectArticles qty Group
aggiornamento errore [Numero errore: 0x8007007B]microsoft.public.it.windowsupdate ·