Re: [roch-pm] Help with File handle.
- Original Message - From: echo dev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 12:41 PM Subject: [roch-pm] Help with File handle. when I print something (something more like 500+ lines of paths) to stdio it prints everyone\ but when I print to a file it does'nt print anything. I open the file with open (CONFIG_FILE, /home/hde/file.conf) or die Can't open file file.conf : $!\n; then I select the output like select CONFIG_FILE; In the simplest case, there's no need to 'select CONFIG_FILE'. Why couldn't you just say: print CONFIG_FILE $_\n foreach (paths); Jim Keenan -- For information on unsubscribing from this list, please visit http://rochester.pm.org
Re: [roch-pm] Help with File handle.
From: James E Keenan [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [roch-pm] Help with File handle. Date: Sat, 22 Feb 2003 17:29:31 -0500 - Original Message - From: echo dev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 12:41 PM Subject: [roch-pm] Help with File handle. when I print something (something more like 500+ lines of paths) to stdio it prints everyone\ but when I print to a file it does'nt print anything. I open the file with open (CONFIG_FILE, /home/hde/file.conf) or die Can't open file file.conf : $!\n; then I select the output like select CONFIG_FILE; In the simplest case, there's no need to 'select CONFIG_FILE'. Why couldn't you just say: print CONFIG_FILE $_\n foreach (paths); Jim Keenan -- For information on unsubscribing from this list, please visit http://rochester.pm.org I have tried both and nothing will work except when I print to stdio. hde _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- For information on unsubscribing from this list, please visit http://rochester.pm.org
Re: [roch-pm] Help with File handle.
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