P is for Practical | |
PerlMonks |
Re: Removing whitespaceby BUU (Prior) |
on May 07, 2002 at 12:46 UTC ( [id://164614]=note: print w/replies, xml ) | Need Help?? |
s/\s*//g; will remove all the whice space in your var, as to your specfic one, you could do something like (split /\,/,$user)[1] Which would return the word after the second comma and before the third (if there is one). And have you tried super search?
In Section
Seekers of Perl Wisdom
|
|