Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Passing filehandles to subroutines

by ibanix (Hermit)
on Jan 27, 2003 at 07:11 UTC ( [id://230154]=note: print w/replies, xml ) Need Help??


in reply to Re: Passing filehandles to subroutines
in thread Passing filehandles to subroutines

John,

This is very cool. I like this method. Do you have any idea if this is going to be supported in Perl 6? Or, perhaps I should ask, is this 'kosher'? This isn't a "may be removed if we feel like it" feature, is it?

Thanks!

ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Replies are listed 'Best First'.
Re: Re: Re: Passing filehandles to subroutines
by John M. Dlugosz (Monsignor) on Jan 27, 2003 at 07:45 UTC
    See if you can find my thread via super search or skimming the list of nodes I posted. That is when I asked if it was 'kosher' and got a lot of remarks about it. What I remember: yes, it is proper and will work moving forward, but doesn't work on older versions (I don't remember when) so it is an issue if you need to run on older stuff, but no other issues impressed me enough to remember or disuade me.

    —John

      I think it's supported since version 5.6.

      Arjen

Re: Re: Re: Passing filehandles to subroutines
by castaway (Parson) on Jan 27, 2003 at 07:19 UTC
    It's pretty normal as far as I know, I use it all the time. Look at the perlsub documentation about passing around filehandles.

    C.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found