Scalar variable naming conventions 

Scalar variable naming conventions
  • Finally, you might notice that in these examples, we choose very descriptive names. Rather than saying for example: 
  • $x = 27; 
    $y = "Selena Sol"; 
    we say something like the following: 
    $age = 27; 
    $full_name = "Selena Sol"; 
  • Though it is not necessary that you make your scalar variable names descriptive (sometimes it can mean a lot more typing), I recommend that you do your best to choose names that will clearly communicate the function of the variable to you and to others a month or a year down the line. 
Manipulating substrings with the substr function
Table of Contents
Perl List Arrays


Graphics & Media Lab. >> Библиотека | Курсы | Графикон

Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
mailto: Laboratory