Desmond -- ...and then Desmond Lee said... % ... % A sample from the file looks like this: % % while ( $row = $db->sql_fetchrow($result) );^M % $db->sql_freeresult($result);^M^M $total_threads = % count($threadrow);^M }^M else^M {^M % message_die(GENERAL_MESSAGE, $lang['No_posts_topic']);^M }^M}^M// % END THREADED MOD CODE^M^M^M# ^M#-
Did you get this from a Mac, by chance? I see ctrl-M in there but no line breaks except what I'll bet a Twinkie your mail program put in for you. For delightful historical reasons, ASCII end-of-line is \r on Mac \n on UNIX \r\n on DOS (== Win) So it looks like you want something like perl -pi.bak -e 's/\r/\n/g' moby_threads_install.txt to change returns to newlines (rather than just stripping out returns by newlines -- because there aren't any newlines! % % % Thanks % % Desmond HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg28032/pgp00000.pgp
Description: PGP signature