Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Spaces In Scalar

Status
Not open for further replies.

bretttt

Programmer
Jul 23, 2002
74
0
0
US
Hello, I have A scalar

$example=" blah blah blah";

how can i remove the spaces up to the first character?

Thank you.
 
Code:
$example =~ s/^\s+//;
\s+ = one or more whitespace chars.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top