[prog] Length of a string in Perl

Almut Behrens almut-behrens at gmx.net
Wed May 28 13:50:30 EST 2003


Dan Richter wrote:
> What Perl function can I use to get the length of a string?

length() -- sometimes, Perl is less cryptic than expected :)

e.g.

  $s = "blahblah";
  my $len = length $s;


Almut


-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



More information about the Programming mailing list