Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: How to use threads to write worksheets of excel

by BrowserUk (Patriarch)
on Jun 30, 2015 at 14:25 UTC ( [id://1132621]=note: print w/replies, xml ) Need Help??


in reply to Re: How to use threads to write worksheets of excel
in thread How to use threads to write worksheets of excel

I think you’ll see that it simply can’t be done

No surprise here, just more total bollocks!

Of course it can be done.

#! perl -slw use strict; use threads; open my $fh, '>', 'junk.dat' or die $!; $_->join for map { async { seek $fh, $_ *80, 0; print $fh $_ x 78; }; } 1 .. 4; close $fh; open $fh, '<', 'junk.dat' or die $!; print while <$fh>; close $fh; __END__ C:\test>t-write.pl 1111111111111111111111111111111111111111111111111111111111111111111111 +11111111 2222222222222222222222222222222222222222222222222222222222222222222222 +22222222 3333333333333333333333333333333333333333333333333333333333333333333333 +33333333 4444444444444444444444444444444444444444444444444444444444444444444444 +44444444

Didn't your recent meditation achieve your required quota of humiliation for this week?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found