Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!voder!nsc!taux01!tasu74!crehta From: crehta@tasu74.UUCP (Ran Ever-Hadani) Newsgroups: comp.lang.perl Subject: Re: Passing file handles as parameters Message-ID: <3769@taux01.UUCP> Date: 3 May 90 08:30:19 GMT References: <3751@taux01.UUCP> <1990May2.164445.11633@iwarp.intel.com> Sender: netnews@taux01.UUCP Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani) Organization: National Semiconductor (IC) Ltd, Israel Lines: 28 In article <1990May2.164445.11633@iwarp.intel.com> merlyn@iwarp.intel.com (Randal Schwartz) writes: >In article <3751@taux01.UUCP>, crehta@tasu74 (Ran Ever-Hadani) writes: >| .... Would this be possible >| in the future? > >It has been possible for a long time. > print $filehandle "hello world\n"; >Pretty durn easy if you ask me. And it's even documented! I plea not guilty. I tried print "STDOUT" "Hello\n"; Which gave a syntax error. I didn't realise the possibility that $variable as a special case may be used where EXPR is not legal, so I didn't look it up in the manual. Sorry -- Ran ----------------------------------------------- Reply-To: crehta@taux01.nsc.com (Ran Ever-Hadani) Disclaimer: The above is to be attributed to me only, not to any organization. Apology: Bad English. E-mailed spelling and style corrections are welcome.