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

Re: Pipe dream

by ambrus (Abbot)
on Sep 09, 2005 at 11:07 UTC ( [id://490512]=note: print w/replies, xml ) Need Help??


in reply to Pipe dream

You do know about open("-|") and open("|-"), don't you?

However, I don't like to pipe data through real pipes between processes. I rather like real coroutines that pass values to each other, not just text through a pipe. Perl is not really good in this, because it doesn't have continuations and coroutines, and it's very difficult to add them to the perl core now. If you want that, you can use one of

  • python which has coroutines and transparent lazy lists based on them,
  • perl6 which will have them too but it's not ready yet,
  • scheme has continuations built in, and some scheme implementations and libraries have even more support
  • ruby, which has a callback-based iterator modell in its core classes; but also continuations and some libraries based on it
  • lua which has coroutines

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2025-07-17 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.