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

Re: Filehandle in subroutine in use VRML.pm

by bliako (Monsignor)
on Jul 08, 2022 at 09:19 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2022-12-05 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?