Luke, Thanks! Your code works, you are a fantastic
help. I've been surfing (and surfing and surfing)
google for hours trying to find the answer. Your code
works and now my testing can proceed :-) -Mark 



--- "Bakken, Luke" <[EMAIL PROTECTED]> wrote:

> > I'm using ActiveState v5.8.4 on Windows XP Home03.
> 
> > 
> > Here is the entire script...
> > print `dir /s`;
> > print "\n-----\n";
> > system('dir /b');
> > print "\n-----\n";
> > exec("dir /w");
> > print "\n-----\n";
> 
> Since dir is a built-in, you should do this:
> 
> use strict;
> 
> print qx!cmd /c dir /s!;
> print "\n-----\n";
> system('cmd /c dir /b');
> print "\n-----\n";
> system("cmd /c dir /w");
> print "\n-----\n";
> 
> 
> I do hope this is for testing, and that you won't be
> shelling out to dir
> in your script, as anything dir does can be done in
> pure Perl.
> 
> Luke
> 
> --
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> <http://learn.perl.org/>
> <http://learn.perl.org/first-response>
> 
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to