Re: [roch-pm] Help with File handle.

2003-02-22 Thread Bob Walton
echo dev wrote:

From: James E Keenan [EMAIL PROTECTED]
...
I have tried both and nothing will work except when I print to stdio.
...

H...can you tell us if the following test program copied verbatim 
generates file /home/hde/file.conf with one line of output in it:

open CONFIG_FILE,/home/hde/file.conf or die Oops, $!;
print CONFIG_FILE This is a line of output\n;
Note that the select function has nothing to do with where output gets 
written by the print function.  And note there is no comma following the 
filehandle specification in the print function call (that being a common 
error).
--
Bob Walton

--
For information on unsubscribing from this list, please visit
http://rochester.pm.org


[roch-pm] Oops

2003-02-22 Thread Bob Walton
Bob Walton wrote:

...
Note that the select function has nothing to do with where output gets 
written by the print function.  ... 
...

OopsBLUSH, I see that the select function does indeed specify the 
default filehandle for the print function -- sorry about the 
misinformation.  I've never seen it used that way before -- probably 
because it is so much clearer to specify the filehandle when printing to 
anything other than STDOUT.
--
Bob Walton

--
For information on unsubscribing from this list, please visit
http://rochester.pm.org