Thanks for your comments. It is a good idea. ultimately I was thinking of using the array. Since I am a new bee to this, while writing small programs I am trying to learn different aspects of the same function. Which I believe will be good for me in the long run. and in return I ll be able to contribute when I am ready. This was just a snippet of code for people to look at and evaluate logic and comment, not on the whole program and programming semantics. I do not like to waste list members valuable time on reading the whole code where it is not necessary.
Thanks -----Original Message----- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 11:55 AM To: [EMAIL PROTECTED] Subject: Re: string seperated by multiple spaces Naser Ali wrote: > Any suggestions on what am I doing wrong..? Why do you want a scalar variable for each value? Why not using an array instead? And you seem not to be using strictures and warnings. Others have helped you with the pattern passed to split(). -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>