[Tutor] Slightly OT: public/private class members
Jerry Jorgenson
jerry@j3iss.com
Fri Feb 14 09:51:54 2003
> And what does strict (Perlicism?) do?
strict enforces declaration of variables before usage. So
use strict;
makes you issue a
my $variableName;
statement so the if you accidentally type $myVar or $myvariable later on,
an error will occur, rather than a new variable being created. This is
great for code maintainability, especially when you cut and paste functions
from other code.
Jerry
Jerry Jorgenson
jerry@j3iss.com
http://www.j3iss.com/
972-897-1166 (Cell)
972-209-0191 (Page)