Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Active Munging via a pipe (code)

by Zaxo (Archbishop)
on Jan 17, 2002 at 06:51 UTC ( #139423=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ mkfifo logpipe
    $ perl -e 'open PIPE, "< logpipe"; { select 1<<fileno(PIPE),undef,unde
    +f,undef; print <PIPE>;redo}' &
    
  2. or download this
    $ echo foo >logpipe
    foo
    ...
    echo fie >logpipe
    fie
    $
    
  3. or download this
    $ fg
    perl -e 'open PIPE, "< logpipe"; {select 1<<fileno PIPE,undef,undef,un
    +def;print <PIPE>;redo}'
    # do a Ctrl-C here
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-12-09 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?