The stupid question is the question not asked | |
PerlMonks |
Re: why IPC::Open3 can't execute MS-DOS "dir" command?by bingos (Vicar) |
on Dec 04, 2009 at 11:44 UTC ( [id://811063]=note: print w/replies, xml ) | Need Help?? |
Very likely because dir isn't actually a command in and of itself, but is a built-in command of cmd.exe Change "dir * \/b\/s" to be "cmd /C dir * \/b\/s" You also shouldn't call subroutines with the & prefix, unless you know the behaviour that implies
In Section
Seekers of Perl Wisdom
|
|