Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: How to dup $FOO to STDIN

by belg4mit (Prior)
on Nov 15, 2001 at 20:30 UTC ( [id://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.

Thanks

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="/index.pl?node=st&lastnode_id=3333">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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-19 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found