Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Passing filehandles to subs.

by r.joseph (Hermit)
on May 05, 2001 at 12:16 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found