[roch-pm] Help with File handle.

Bob Walton bwalton at rochester.rr.com
Sat Feb 22 22:39:13 CST 2003


echo dev wrote:

>> From: "James E Keenan" <jkeen at concentric.net>
...
> I have tried both and nothing will work except when I print to stdio.
...


Hmmmm...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



More information about the Rochester-pm mailing list