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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Separating field input into individual words.

 



perlkid
stranger

Mar 4, 2000, 2:51 PM

Post #1 of 3 (773 views)
Separating field input into individual words. Can't Post

 
Hi,

How can I split a form value into two words. How can I read how many words are in a form value or scalar? I know how to read how many letters there are but I need to have my program read the amount of words in a form{'value'} and split them into individual words so I can use the substr and take the first letter of each word in the form value.

Thanks,

perlkid


Cure
User

Mar 4, 2000, 7:25 PM

Post #2 of 3 (773 views)
Re: Separating field input into individual words. [In reply to] Can't Post

Hi Perlkid

Use a regex(regular expression)

Cure


perlkid
stranger

Mar 4, 2000, 11:30 PM

Post #3 of 3 (773 views)
Re: Separating field input into individual words. [In reply to] Can't Post

 
Thanks cure, but how do I use a regex?

 
 


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

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