![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Problem with a new lineby tptass (Sexton) |
on Aug 06, 2008 at 22:37 UTC ( #702764=note: print w/replies, xml ) | Need Help?? |
What exactly does your text document look like with your guestbook entries? Does it look correct with the delimiter? Check out your for loop...
You loop through every line in the file in the outer loop so if one were to enter a new line in the comment then it would be an additional line, which would mean it would go through the inner code. You have to do a check to see if the line has a "|", your demlimiter and if it does than and only then print our your "
Update: Actually ran a test, I forgot you had to bash slash the delimiter. All you will have to do is add the following to the horizontal bar:
In Section
Seekers of Perl Wisdom
|
|