Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: How to dup $FOO to STDIN

by belg4mit (Prior)
on Nov 15, 2001 at 20:30 UTC ( #125606=note: print w/replies, xml ) Need Help??

in reply to Re: How to dup $FOO to STDIN
in thread How to dup $FOO to STDIN

#1 doesn't meet the criterion of duping a scalar filehandle (which I need because this is hapenning in parallel forks).

#2 Works!

#3 I had looked at perlipc but found nothing for dupping STDIN or scalar filehandles.


PS> "shouldn't not use caps" so I should then? ;-) Yeah wog has gotten on me about that too. I've cut back, but am still using for "globals" or effectively just scalar filehandles, so they lok like regular filehandles.

-- perl -p -e "s/(?:\w);(<A HREF="/">st< +/A>)/'\$1/mg"

Replies are listed 'Best First'.
Re:{3} How to dup $FOO to STDIN
by jeroenes (Priest) on Nov 15, 2001 at 20:39 UTC
    Already figured you wanted to do something with childs or the like, that's why I added the ipc stuff. It actually describes named pipes, and the use of open for ipc.

    On the caps: :-) && You shouldn't. Fileglobs are in caps because they are really special. Filehandles are less magical.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-05-17 20:08 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.