Feb 25, 2004 #1 bretttt Programmer Jul 23, 2002 74 US Hello, I have A scalar $example=" blah blah blah"; how can i remove the spaces up to the first character? Thank you.
Hello, I have A scalar $example=" blah blah blah"; how can i remove the spaces up to the first character? Thank you.
Feb 25, 2004 #2 Deleted Technical User Jul 17, 2003 470 US Try this.. Code: $example = s/^ *//; M. Brooks X Concepts LLC http://xconcepts.com Upvote 0 Downvote
Feb 25, 2004 #3 Deleted Technical User Jul 17, 2003 470 US OOPS.. $example =~ s/^ *//; M. Brooks X Concepts LLC http://xconcepts.com Upvote 0 Downvote
Feb 25, 2004 #4 mikevh Programmer Apr 23, 2001 1,033 US Code: $example =~ s/^\s+//; \s+ = one or more whitespace chars. Upvote 0 Downvote