Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Passing filehandles to subs.

by r.joseph (Hermit)
on May 05, 2001 at 12:16 UTC ( #78202=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub one (*) { my $fh = shift; print $fh "$fh (glob)"; }
    
    open (OUTER,"+>out.txt") or die "$!\n\n";
    one (\*OUTER);
    
  2. or download this
    sub one (*) { my $fh = shift; print $fh "$fh (glob)"; }
    
    open (OUTER,"+>out.txt") or die "$!\n\n";
    one (*OUTER);
    
  3. or download this
    sub one(\*) { ... }
    
  4. or download this
    sub one(*) { ... }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2021-11-30 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?