Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > string length

Reply
Thread Tools

string length

 
 
vertigo
Guest
Posts: n/a
 
      07-27-2004
Hello
Sorry for such simple question:
i have:
my $myval="long sentence...."
How can i count $myval length (how many characters does it have) ?

Thanx
Michal

 
Reply With Quote
 
 
 
 
Marek Dabrowski
Guest
Posts: n/a
 
      07-27-2004
vertigo wrote:
> Hello
> Sorry for such simple question:
> i have:
> my $myval="long sentence...."
> How can i count $myval length (how many characters does it have) ?
>
> Thanx
> Michal
>


length("some string");
 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      07-27-2004
vertigo wrote:
> my $myval="long sentence...."
> How can i count $myval length (how many characters does it have) ?


We haven't had this SAQ (Self Answering Question) for a while: perldoc -f
length

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
String exceeding length - Getting absolute string length james.w.appleby@gmail.com Java 5 01-11-2007 12:07 AM
911...Need Help! : Length cannot be less than zero. Parameter name : length manmit.walia@gmail.com ASP .Net 2 01-10-2006 03:29 PM
left(string, length) or right(string, length)? Sam ASP .Net 3 02-17-2005 12:01 PM
System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length =?Utf-8?B?SG96aQ==?= ASP .Net 1 06-01-2004 11:06 PM
How to get length of string? length() problems Mitchua Perl 5 07-17-2003 12:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57