CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Help In Cutting Texts...



Apr 4, 2001, 2:16 AM

Post #1 of 1 (1439 views)
Help In Cutting Texts... Can't Post

I need a Loop that will cut the text thats in a @text .
It should cut the 40 chars that are in the first sentence , but it should know where there is "SPACE" , and if there is it should cut a word before it .
The rest of the sentence should paste into the next line so it will cut again .
After every 40 chars (Or less) the program will add <BR>
I need also that the program will stop after 5 lines .
after that It should print whats achieved to the screen.

Whats very important that the terms of cutting (the length[40] and the lines[5] will be a variables so I can change it to the cases depends on what I'll need it.

Thanks !!!!!!!!!!!!



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives