Added: 3 years ago
From: nptelhrd
Views: 68,644
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (43)

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

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

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

  • Comment removed

  • Thanx for the brilliant tutorial

  • Before they even starting to write the shebang, PERL-beginners should be FORCED to use:

    use strict;

    use warnings;

    and then add the shebang above those two lines.

  • Mistake at 16:52, print 'Marks obtained by $stud is $marks\n' will print Marks obtained by $stud is $marks\n.... "\n" is missing in the ans

  • Comment removed

  • I'm becoming very fond of the indian institutes of technology. Somehow I always manage to find myself coming to these lectures

  • Good job. I think this is really good for beginner programmers and very thorough. Of course there are some mistakes but other people make a lot of mistakes and make their videos hard to follow.

  • hahaha

  • hey guys, stop being critical !! everyone does mistakes !! :) :) he does a very gud job !!

  • I just typed in "perlm[ t]h\flgwesdef scx" and this shit came up... wtf?

  • Better if you guyz had tried learning some thing from the lecture.. rather than Commenting on it 

  • True! The values will be bat and 1. I have checked it.

  • Because "banana" is evaluated as 0. see Strings as a number slide!!! :)

  • great lecture! thanks.

  • super

  • Great lecture.....I like very much....Very useful....Thanks a lot....

  • Fail !!! 4:27 mispronouncing the word Linux

  • That accent makes me want to hang myself.

    Apu Nahasapeemapetilon , the mild mannered Operator of the Kwik-E-Mart by day..transforms into super Perl Guru by night teaching all who care on the inter-web of the world!

  • @kpb96m get used to it.....the world is getting smaller according to

    Friedmanites, and btw, your comment is pushing racial insensitivity.....

    The Indians have made a great many contributions to the world...you shouldn't diss them ............hell they invited 0 and their recent moon probe found water before we did............ i wonder how many Indians work at Google/YT...u just dissed some of the poeple that make it possible for u to even comment here...hmmmm

  • @kpb96m Please start respecting gurus. English is not native language of the speaker. I live in USA and no one has been commented like you did. The professor teaches in premier engineering institute in INDIA and not in UK or USA.

  • Great series....!!

  • Comment removed

  • nice lecture!!

  • Good Lecture.. Thanks for posting on net .. Really appreciate for your Efforts..

  • Excellent video.....but the part about unshift function and push function is wrong.

    Perl's push() function is used to push a value or values onto the end of an array, which increases the number of elements. unshift() adds elements to the beginning of an array

  • r tr any practical  use of Arithmetic operation on strings.

    because when i tried $c = "2at"

    $d = $c+1 i got 3.

  • 19:03

    One could use escape char within double quotes to get $100

    $expense = "\$100";

  • good lecture for someone who has little to good programming knowledge. The Line Oriented Quoting example missed the "" for EOM. It needs to be:

    print << "EOM";

    and then the lines and

    then end it with just EOM as show below

    EOM

    Thanks for the video though, its a nice idea to listen than to read sometimes. :-)

  • No need for the quotes. Omitting the quotes in a here-doc is the same as using double quotes, so variables will be interpolated in the string. If you don't want interpolation, use single quotes. e.g. print <<'EOM';

  • Fail! at 1:24

    Practical Report and Extraction Language??

    That would make PREL :P

  • :-)

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

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

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

  • Thank you for this class, it is really helpful!

  • Thanks Sir! This Lecture on Perl is very clear-cut with exhaustive set of examples.....

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