Lecture - 21 PERL - Part I
Top Comments
All Comments (43)
-
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
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 2 years ago 14
Fail! at 1:24
Practical Report and Extraction Language??
That would make PREL :P
timtico 2 years ago 12