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 ex
C:\>perl -e "print length('06')";
2
C:\>
See
perldoc -f length
José.
> -Original Message-
> From: HO Tony (CSG)
> Sent: Friday, January 17, 2003 12:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: Length of String
>
>
> Hi guys
&
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