1. Computing

Calculate Perl String Length

By January 3, 2012

Perl 6 Camelia logo

One of the most common things you might want to do is calculate Perl string length. For instance, you might ask the user to enter some text and want to make sure that they haven't entered too much or too little. Piece of cake. Just use Perl's length() function.

But that's just scratching the surface of what Perl can do with strings. Being designed from the ground up as a text manipulation language, Perl has a lot of string functions. Try some of these out in our quick and easy guide.

Photo Bagwold | Dreamstime.com. Used with permission.

Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.