<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Hi folks</DIV><DIV><BR class="khtml-block-placeholder"></DIV>Many thanks to the people who replied to my earlier request for help. I was pleasantly surprised by such a positive response.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I might add that I live and work in Camp Hill, Brisbane, so an offer of help near to home would be greatly appreciated. I'll be in contact with the folks who offered to help shortly.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>In the meantime I've got a genuine Perl Query. I asked a friend of mine in the UK if there was something that would print the same thing to a number of different 'files', including the computer screen. He kindly wrote the following;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>sub Print_to {</DIV><DIV>my $rfh = shift;</DIV><DIV>print $_ @_ or die $! for @$rfh;</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So that when I code</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Print_to [$a, $b] "Smorg";</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Perl prints "Smorg" into the files represented by the variables $a and $b </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Note that Perl has already assigned filehandles to $a and $b by</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>my $a = &lt;FH&gt; ;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>etc..<DIV><BR class="khtml-block-placeholder"></DIV><DIV>This works just fine in my program.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The query is how do I get it to print the same thing to screen (I mean to the terminal or command prompt). Is it STDOUT? What's the syntax for saying 'make $a the output to screen'? My workaround at present is</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Print "Smorg";</DIV><DIV>Print_to [$a, $b] "Smorg"; </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>which doubles the number of lines in the code.</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Regards,</DIV><DIV>Martin</DIV><DIV>Visit my website...</DIV><DIV><A href="http://web.mac.com/martin_jacobs1"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; ">http://web.mac.com/martin_jacobs1 </SPAN></A></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></DIV></DIV></DIV></BODY></HTML>