I have a small piece of a program which loops through lines of data, using the <while> construct, one line at a time, and prints different pre-defined sentences, contingent upon what is found in each line of data. The data are in the program file, in a __DATA__ section. I use the simple print command.

The output looks like this:

This is the first sentence.
This is the next sentence.
And this is the third one.
etc.

I'd like the output to look like this:


This is the first sentence. This is the next sentence. And this is the third one. etc.

Any suggestions how to accomplish this?

Thanks.

--Chris Ryan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to