Martin, Well, you can use a simple html tag called pre. ------------------------------------------- open(FILE, "</path/file"); local $/ = undef; # slurp mode, pull all data coming in one shot (so it all goes into a scalar) $contents_of_file = <FILE>; close(FILE);
print qq^ <pre> $contents_of_file </pre> ^; ------------------------------------------- Is that what you are looking for or do you want to actually split up the data into individual variables? Regards, David ----- Original Message ----- From: "Martin Pestun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 24, 2002 6:54 AM Subject: text problem Hi everybody I've got text file on the local machine and Apache too. What I don't know is how can I display this file like html file using cgi. The file looks like: USER PID PPID %CPU TIME COMMAND user 26794 26002 0.0 0:00 user 4687 4685 0.0 0:00 -ksh user 15120 15118 0.0 0:00 -ksh user 18918 18821 0.0 0:00 -ksh user 21894 21885 0.0 0:00 -ksh user 26719 26716 0.1 0:00 -ksh user 26795 26719 0.0 0:00 -ksh I mean that the result of this cgi program is displayed the same like file text. Can you help me? Martin Pestun -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]