logo

internet.com
Join the free
WDVL newsletter!

home

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

Up to => Home / Authoring / Scripting / Tutorial

Instantly look up a "techie" word using Webopedia!!


internet.com
e-commerce
WebDeveloper Network


Live coverage of Fall Internet World '99!

Copyright 1999 internet.com Corporation. Legal Notices. Privacy Policy.

www.internet.com