string length

Discussion in 'Perl' started by vertigo, Jul 27, 2004.

  1. vertigo

    vertigo Guest

    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
     
    vertigo, Jul 27, 2004
    #1
    1. Advertising

  2. 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");
     
    Marek Dabrowski, Jul 27, 2004
    #2
    1. Advertising

  3. 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
     
    Jürgen Exner, Jul 27, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mitchua
    Replies:
    5
    Views:
    2,833
    Eric J. Roode
    Jul 17, 2003
  2. =?Utf-8?B?SG96aQ==?=
    Replies:
    1
    Views:
    7,030
    Ken Cox [Microsoft MVP]
    Jun 2, 2004
  3. Sam
    Replies:
    3
    Views:
    14,204
    Karl Seguin
    Feb 17, 2005
  4. Replies:
    2
    Views:
    5,972
  5. Replies:
    5
    Views:
    690
    John W. Kennedy
    Jan 11, 2007
Loading...

Share This Page