Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Parallel downloading under Win32?

by Xenofur (Monk)
on Apr 29, 2009 at 12:31 UTC ( [id://760860]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Parallel downloading under Win32?
in thread Parallel downloading under Win32?

Good suggestion, certainly a more sensible approach than system, but not really applicable for me. While I want this to be able to run under Win32, i do not want to lose ability to run it under Linux.
  • Comment on Re^4: Parallel downloading under Win32?

Replies are listed 'Best First'.
Re^5: Parallel downloading under Win32?
by syphilis (Archbishop) on Apr 29, 2009 at 13:10 UTC
    While I want this to be able to run under Win32, i do not want to lose ability to run it under Linux

    That might make it more messy. Assuming that the code that works on linux *doesn't* work on windows, you could resort to something like:
    if($^O =~ /mswin32/i) { require Win32::Process; # do the task using Win32::Process } else { # do the task using whatever it is that works on linux }
    As an alternative, you may find that the code that works on linux also works on windows if run under Cygwin. Is using Cygwin an option ?

    Cheers,
    Rob
      Cygwin is not an option, as the target audience is slightly techy, but not THAT techy. I was aware of the possibility of checking for OS already, but really didn't want to get into that mess. Luckily, someone else already did, as ikegami showed above. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2026-01-17 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (121 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.