Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Can Perl write multiple files at the same time?

by no_slogan (Deacon)
on Oct 20, 2014 at 15:09 UTC ( [id://1104451]=note: print w/replies, xml ) Need Help??


in reply to Can Perl write multiple files at the same time?

But ithreads are now discouraged, which leaves you with fork. You might try opening all 6 files at once and writing one block at a time to each of them -- that might work ok, depending on how your os does buffering.

Replies are listed 'Best First'.
Re^2: Can Perl write multiple files at the same time?
by Anonymous Monk on Oct 21, 2014 at 06:52 UTC

    But ithreads are now discouraged, which leaves you with fork. You might try opening all 6 files at once and writing one block at a time to each of them -- that might work ok, depending on how your os does buffering.

    No it doesn't, that just nonsense, don't spread it around Re^2: Splitting large array for threads.

      And who are you that we should take your word for it, even though you provide no reasoning behind your statement?

        And who are you that we should take your word for it, even though you provide no reasoning behind your statement?

        Hmm, does it matter who I am no_slogan ?

        In what way do I not provide reasoning?

        Did you read the link I linked? Something more than the perldelta entry?

        fork doesn't work on windows, threads do work on windows, and they also work on other OS ... sure threads have caveats, and sure there are lot of stupid ways to try to use threads, this is not a reason to discourage threads ;;; being tired of watching people try to use threads wrong and ask for help, isn't a valid reason to discourage the use of threads ... or encourage fork

        parroting FUD is FUD

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found