in reply to Executing / Retrieving Output from Command
dir likely is not an external program but a shell built-in. Thus your backticks fail, and thus $newTest is undef. You can inspect $? and $! for the error(s). Maybe you meant to run cmd /c dir, or maybe you wanted readdir, glob or File::Find?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Executing / Retrieving Output from Command
by ikegami (Patriarch) on Mar 15, 2010 at 18:29 UTC |