Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: POE::Wheel::Run & Tk Problems

by Khen1950fx (Canon)
on Aug 05, 2009 at 06:25 UTC ( [id://785980]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://785980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found