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.