sarah_anne
02-15-2003, 10:51 AM
Hello -
I'm not sure where to even begin to do this, as I've not come across it anywhere in my search for Perl tips and tutorials, so....
I have a variable amount of text, named $text, can be anything from one character to 2000. Now how would I be able to print the first 200 characters of this data? Or, even better, since the data is text in sentance form, the first two sentances (seperated by full stops) and then half of the next one?
I saw this at http://www.doctorjob.com/forum and it seemed like a nice intro into what a post was about, you see.
Any help would be great, as always :D
Sarah.
I'm not sure where to even begin to do this, as I've not come across it anywhere in my search for Perl tips and tutorials, so....
I have a variable amount of text, named $text, can be anything from one character to 2000. Now how would I be able to print the first 200 characters of this data? Or, even better, since the data is text in sentance form, the first two sentances (seperated by full stops) and then half of the next one?
I saw this at http://www.doctorjob.com/forum and it seemed like a nice intro into what a post was about, you see.
Any help would be great, as always :D
Sarah.