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

Re^5: threads and their alternatives

by BrowserUk (Pope)
on Sep 30, 2011 at 22:20 UTC ( #928946=note: print w/replies, xml ) Need Help??


in reply to Re^4: threads and their alternatives
in thread Alternatives to threads for maintaining GUI app responsiveness

I haven't used AnyEvent::DBI, as I'd use a thread instead of an external process

Then what would be the point of AnyEvent for the OPs problem?


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.

Replies are listed 'Best First'.
Re^6: threads and their alternatives
by Corion (Pope) on Sep 30, 2011 at 22:26 UTC

    My reply was more in regard to your statement that "there exists no solution" for calling blocking APIs (outside of threads), where I wanted to highlight that there exists no good solution (outside of threads).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928946]
help
Chatterbox?
[shmem]: Re^5: Understanding endianness of a number - nice! "zigamorph" will be the host name of the VM I'll set up to debug Microfocus COBOL/perl stuff :-D
[prospect]: Hi, to avoid cluthering the Seekers of Perl Wisdom page. I wanted to print out the values on a new line each. So I though I put a . "\n" behind "print foreach func()" but something interesting happens and it I just get "5" as output :p
[prospect]: print foreach func(). "\n"; sub func { return ( 1, 2, 3, 4, 5 ); }
[prospect]: if I remove the ".\n" I get "12345" as output

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-07-24 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.