zenweezil
02-07-2004, 03:24 AM
I currently use the following code to split a text file up so the first paragraph appears on the home page and then the user can click in to read the rest:
@display = split(/<BR><BR>/, $small_story);
$showtext = $display[0];
Unfortuantely the text file sometimes has <BR> <BR> instead of <BR><BR> -- so how can I set the split up to use one or the other?
Or do I have to take the $showtext and split it again looking for a <BR> <BR>?
@display = split(/<BR><BR>/, $small_story);
$showtext = $display[0];
Unfortuantely the text file sometimes has <BR> <BR> instead of <BR><BR> -- so how can I set the split up to use one or the other?
Or do I have to take the $showtext and split it again looking for a <BR> <BR>?