Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Filehandle in subroutine in use VRML.pm

by bliako (Monsignor)
on Jul 08, 2022 at 09:19 UTC ( [id://11145353]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $fh = undef;
    print "1.fh is now $fh\n";
    ...
      $$fhref = *STDOUT unless $$fhref;
      print {$$fhref} $lines;
    }
    
  2. or download this
    my $fh = undef;
    printout('some lines1', $fh);
    ...
      my $fh = $_fh ? $_fh : *STDOUT;
      print $fh $lines;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found