Perl Programming - Working with Arrays and Lists outro
Get the entire Perl Programming course for 20% off: http://stoneriverelearning.com/courses/perl-programming-for-beginners-online-course?product_id=38639&coupon_code=YOUTUBE20
Congratulations, guys! You’ve made it through section 4. This is our conclusion, Working with Arrays and Lists. I’m just going to go over everything that we’ve discussed and give you guys a brief overview. Again, let’s dive right into it.
What did you guys learn in this section? Well, we’ve learned how to create arrays. Again, creating an array is just using some variable and you can assign it a list of different values that you can use and is extremely, extremely easy to set up by the skills that we used.
We’ve also learned how to access our arrays via the indices. With this, after we set up our array and assign it values, we can individually select each array element and use that independent value within our Perl program. Again, we learned how to access the arrays via the indices or which I call subscripts.
Creating the list. We’ve learned how to create specific scalar variables and assign them to specific values which is also called a list. A list of values is nothing more but a simple list that’s being assigned to an array or independent variables.
Performing assignment with lists. This is just specifying independent scalar variables and assigning them in order to specific values.
Also we learned how to convert arrays into beautiful strings which we can print out using our beautiful print function as well.
Using the foreach loop on arrays and lists. Now you guys have two different forms of using the loop construction. You guys learned how to use the while loop. In addition to that, you guys know how to use the foreach loop on arrays in their list. Again, the foreach loop is extremely important because it saves us a load of time from having to repeat ourselves with writing code and we can loop through our arrays and see what values are assigned to our arrays and list.
Understanding in list context. Now you guys know the difference between scalar variables and list context or scalar context and list context. You guys can use either or depending on what you want to use it for.
Understanding the STDIN operator in list context. This just assigns a value to a scalar or a scalar or list context.
Congratulations again, guys. I’ll see you guys in our next section.