Split a string by anything other than spaces
Have you ever tried this. Dont go on writing big perl code for this. Here's a simple solution for this.my @arr=split /\S+/,$str;where
$str is your string
\s obviously matches a white space character. But \S matches a non white space character.
So \S+ matches atleast one non white space character.
.png)







I am a software programmer working in India. I usually like to blog in my free time.
0 comments: