Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lecture - 21 PERL - Part I

Loading...

Sign in or sign up now!
66,314
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 6, 2008

Lecture Series on Internet Tecnologies by Prof. I. Sengupta, Department of Computer Science Engineering, IIT Kharagpur. For more details on NPTEL visit http://nptel.iitm.ac.in

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 7 dislikes

Link to this comment:

Share to:

Top Comments

  • 22:42 - 24:25 (Arithmetic operations on strings)

    is wrong!

    The output of the program will be

    "bat and 1"

    because if a scalar variable contains a string that doesn't begin with a number, it will be evaluated as 0 in a number context.

    So in $b = $a + 1; the Variable $a ist evaluated as 0 and the result for the value of $b is 1.

  • Fail! at 1:24

    Practical Report and Extraction Language??

    That would make PREL :P

see all

All Comments (43)

Sign In or Sign Up now to post a comment!
  • This was very useful, clear, and succinct. Thank you.

  • @timtico True, even the official tutorial says PERL is not an acronym.

  • Perl's unshift() function is used to add a value or values onto the beginning of an array (prepend), which increases the number of elements. The new values then become the first elements in the array. It returns the new total number of elements in the array.

  • Perl's push() function is used to push a value or values onto the end of an array, which increases the number of elements. The new values then become the last elements in the array. It returns the new total number of elements in the array.

  • around @51:41, his interpretation of the "Push" function is incorrect. Push ADDS the element to the end of the array, it does not replace the last element. The confusion came because he "popped" the array (red, blue, green, black) first, leaving him with (red, blue, green). Then, when he "pushed" white into the array, he got (red, blue, green, white), which looked as though white had replaced black, when in fact it was added to the end of a 3-element array.

  • nice video....:))

  • @UniTanzBielefeld :I have solved the mistake though,......:)

  • Nice video, thanks for ur time. I can only imagine the amount work involved

Loading...
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