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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Returning number of characters in a phrase

Status
Not open for further replies.

c4n

Programmer
Mar 12, 2002
110
SI
How can I return the number of characters (including spaces) in a phrase the easiest/fastest way in Perl?

Thanks
 
$somevariable = "12345';
$length = length $somevariable;
print $length;


HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top