Hi,

I'm wondering how to make sure that when my data is written to a file, a
proper end of line is in place after ea. intended line.

code:

...

# now loop and append the data to the file 

# Loop thru hash and write data 
foreach $value(values %cgidata) {  
     if ($debug > 0) { print "Writing Values: \"$value\",<BR>\n";   }     
         print FILEHANDLE "\"$value\",";             # PRINT all data
   
 }  

# #### Here is were my question is #####################################

print FILEHANDLE "\n";                          # PRINT end of line     


... more code ...

should i use something like # print FILEHANDLE "\r" 

basically i want my data to output as comma delimited, but i want the end
of lines to be in place when i ftp the file over to a win system.

would appreciate any help

ps. i looked at perldocs but didnt find anything, and not sure if there is
an archive of answers for the list?

Sergio Gonzalez


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to