develooper Front page | perl.beginners | Postings from April 2002

Creating variables of a string

Thread Next
Michael Stearman
April 2, 2002 09:02
Creating variables of a string
Message ID:


I have a string that contains a word and 2 numbers.  For example,

Michael     57   3

I want to assign each of these three to different variables.  My only 
problem is that the word and the numbers are always different and the space 
between the words and numbers is always different as well.  Does anyone know 
how I would assign the word and numbers to three different variables?  
Thanks in advance.


Send and receive Hotmail on your mobile device:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About