Perl Programming - Working with Scalar Data intro
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
Welcome back again, guys! In this section, I’m going to be giving you the overview of working with scalar data. Again, we’re going to go over all the topics that’s going to be discussed in this section. Let’s dive right into it.
What will you learn in this section? The first thing that we’re going to discuss is working with strings. All kinds of languages use strings. It’s probably the most important part of any data within programming languages. It’s text. That’s the whole point of looking at output and editing input. So again, with strings, it’s probably one of the most important topics of this course.
Working with numbers as well. It’s just as important with strings because of course everything revolves around numbers and we want to make calculations and perform different operations. We want to make useful Perl programs.
Working with variables. Now working with variables is really interesting. It’s going to help us a lot and it helps out a lot of other programmers because we can actually save information and use it later. That’s why variables are really important because they’re just containers that hold information that we can use for later use in our programs.
Getting user input. This will allow us to interact with our user so we can collect information from our users and we can perform some specific task or we can pretty much use that data for anything. So we’re going to be using the user input to save information from the user.
The chomp operator. The whole point of the chomp operator is just to remove or perform an action or an operation when we get user information. I’ll explain and talk about the whole point of the chomp operator. Everything serves a purpose in these topics.
Next on our list we’re going to be discussing decision making with if statements. I’ll go over not only if statements but the alternative if statements as well. The reason why this is very important in programming is because it gives logic to our programs and it gives us the ability to make pretty much decisions. If something happens, we want this to happen. So we’re going to be giving our Perl applications logic and we want it to do things based on decisions it makes.
Looping with while statements. This is heavily used in a lot of programming languages and programs as well because it saves us a lot of time from having to repeat a block of code and writing something over and over and over and over again. So we have this construct that gives us the opportunity to write something once and our Perl application will repeat itself until we want it to stop.
Again, for our conclusion or our section outro, I’ll give you guys a very brief overview of what you guys have just learned. I’ll see you guys in our next lecture. Let’s get started.