Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Answer: Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'?

by nardo (Friar)
on Aug 30, 2000 at 19:12 UTC ( #30307=categorized answer: print w/replies, xml ) Need Help??

Q&A > files > Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'? - Answer contributed by nardo

multiprint("hello\n", LOGFILE, TEMP); sub multiprint { my $text = shift; for my $fh (@_) { print $fh $text; } }

  • Comment on Answer: Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-12-02 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (37 votes). Check out past polls.

    Notices?