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.
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.
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.
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
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';
This was very useful, clear, and succinct. Thank you.
Blyledge 2 months ago
This has been flagged as spam show
ohh.. i see.. nice
lovelplants 2 months ago
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.
saxenasanchit85 2 months ago 2
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.
saxenasanchit85 2 months ago
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.
thiswastaken 4 months ago
nice video....:))
hitesh9432 7 months ago
Nice video, thanks for ur time. I can only imagine the amount work involved
fran2382 7 months ago
Comment removed
BraMonate 8 months ago
Thanx for the brilliant tutorial
BraMonate 8 months ago
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.
BitaminaTek 10 months ago
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
hardikshuklay2k 10 months ago
Comment removed
jjrocky007 10 months ago
I'm becoming very fond of the indian institutes of technology. Somehow I always manage to find myself coming to these lectures
joeman3429 10 months ago
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.
vichuit 1 year ago
hahaha
dave597 1 year ago
hey guys, stop being critical !! everyone does mistakes !! :) :) he does a very gud job !!
TheHoneyzap 1 year ago
I just typed in "perlm[ t]h\flgwesdef scx" and this shit came up... wtf?
WilllPow 1 year ago
Better if you guyz had tried learning some thing from the lecture.. rather than Commenting on it
MrMeethapawan 1 year ago
True! The values will be bat and 1. I have checked it.
rite2312 1 year ago
Because "banana" is evaluated as 0. see Strings as a number slide!!! :)
thisismineaccount 1 year ago
great lecture! thanks.
naqism 1 year ago
super
vishwaramkumar 1 year ago
Great lecture.....I like very much....Very useful....Thanks a lot....
vishwaramkumar 1 year ago
Fail !!! 4:27 mispronouncing the word Linux
kpb96m 1 year ago
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 1 year ago
@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
dankbot420 1 year ago 3
@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.
vishnukant 9 months ago
Great series....!!
suseem0 1 year ago
Comment removed
mrProgrammingGeek 1 year ago
nice lecture!!
mrProgrammingGeek 1 year ago
Good Lecture.. Thanks for posting on net .. Really appreciate for your Efforts..
madhavendra22 1 year ago
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
chetha1000007 1 year ago
r tr any practical use of Arithmetic operation on strings.
because when i tried $c = "2at"
$d = $c+1 i got 3.
shruthiBR 2 years ago
19:03
One could use escape char within double quotes to get $100
$expense = "\$100";
wojlys 2 years ago
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. :-)
kittuis4u 2 years ago
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';
sparkloweb 2 years ago
Fail! at 1:24
Practical Report and Extraction Language??
That would make PREL :P
timtico 2 years ago 14
:-)
bakalao2k 2 years ago
@timtico True, even the official tutorial says PERL is not an acronym.
TheBluewaterice 2 months ago
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 3 years ago 14
@UniTanzBielefeld :I have solved the mistake though,......:)
jjrocky007 7 months ago
Thank you for this class, it is really helpful!
ElNick09 3 years ago
Thanks Sir! This Lecture on Perl is very clear-cut with exhaustive set of examples.....
lance3311 3 years ago