LCE009 KLB
3:20
Added: 4 years ago
From: pudgenet
Views: 22,594
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (6)

Sign In or Sign Up now to post a comment!
  • wow this really really really sucks i am faving it because it's so funny "why'd you read the frikin papers you stupid little frikin dicks!!!!" rofl

  • kien eres?

  • Ya all you have to do is put

    length($str);

    And finding the length of an array is also pretty easy you just go:

    $size = $#myArray;

  • The size of an array is scalar(@array). $#array gives you the last index of the array, which is usually size-1.

  • Both methods work. The book I'm reading ('The Web Wizards Guide to Perl and CGI') just says to use the range operator.

  • Well, $#array works, if you add one. Otherwise, it is not the size, it is the size minus 1. Assuming no one has changed $[, in which case $#array will be (size-($[-1)).

    Better to use scalar(@array).

  • Hahahahaha, that's the funniest thing I've ever heard!!!

    How did I miss this song?

    Find length of a string in perl. LOL! Isn't it just length(string)?

  • Yes, yes it is. :-)

  • doida

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more