[Tutor] Slightly OT: public/private class members
alan.gauld@bt.com
alan.gauld@bt.com
Fri Feb 14 11:33:02 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.
Ah, I see. OK that is a nice feature that VB can turn on too.
For production code it would be nice, for short scripts overkill.
A 'use strict' equivalent might be a good idea.
Alan g