in reply to Re: POE::Wheel::Run & Tk Problems
in thread POE::Wheel::Run & Tk Problems - Solved

Your post piqued my curiosity. I haven't used Windows in 10 years, so I thought I'd do a little review. I started with the dir command. Evidently, DOS does have a dir command. You can see it's documentation for 95, 98, ME here.

Linux has a dir command also, but I'm not sure if all distros have it. The dir command appears to be just like ls, and it's written by the authors of ls, Richard Stallman and David MacKenzie.

Update: It works on Vista too.

Replies are listed 'Best First'.
Re^3: POE::Wheel::Run & Tk Problems
by rcaputo (Chaplain) on Aug 05, 2009 at 06:49 UTC

    Well, sure. It would be silly for an operating system to be unable to list directory contents. CMD.EXE has a built-in "dir" command, but there is no actual DIR.EXE or DIR.COM program in the version I just checked.

    Nevertheless, system() seems able to execute shell built-ins on Windows:

    C:\>perl -wle "system('set')" ALLUSERSPROFILE=C:\Documents and Settings\All Users
    Whereas this sort of thing fails in UNIX:
    % perl -wle 'system "set"' Can't exec "set": No such file or directory at -e line 1.