in reply to How to use threads to write worksheets of excel

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: How to use threads to write worksheets of excel
by BrowserUk (Patriarch) on Jun 30, 2015 at 14:25 UTC
    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!
Re^2: How to use threads to write worksheets of excel
by marioroy (Prior) on Jul 05, 2015 at 20:30 UTC