Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: Re: Re: Streaming to Handles

by sgifford (Prior)
on May 01, 2004 at 16:21 UTC ( #349637=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: Streaming to Handles
in thread Streaming to Handles

...Which isn't as hard as it sounds. Something like:

my $f = List->new; my $pid = open(FROM_LIST,"-"); if (!defined($pid)) { die "fork error: $!\n"; } elsif (!$pid) { # Child $f->stream_to(\*STDOUT); $f->look_in('c:/'); $f->list; exit(0); } # Parent while (<FROM_LIST>) { print "$_\n"; }
should do the trick.

Comment on Re: Re: Re: Re: Streaming to Handles
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-11-25 15:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (682 votes), past polls