LCE009 KLB

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
22,589
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 26, 2007

CONTENT ADVISORY: some bad words contained herein.

"KLB" is a song I wrote about the #perl IRC channel on EFNet, years ago. Props to nocarrier and Schwern.

Requested by jeek.

This is the Longest Concert Evar, starring Pudge. Send requests to concertrequest@pudge.net, or post them here.

Category:

Music

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (pudgenet)

  • 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. :-)

see all

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?

  • 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