perldoc -f length

#!/usr/local/bin/perl -w
use strict;
my $foo = "This is 10";
my $i = (length $foo);
print "The string is $i charecters long!\n";


>>> "Ho, Tony" <[EMAIL PROTECTED]> 01/17/03 06:08AM >>>
Hi guys
Do you know whether there is a function in perl to find the size of a string
?
For example, "06" would be size 2.

Cheers
Tony


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to