M
Martina
Why is important to use "use strict"?
Perl script work very good without this command.
Am I forgot something?
Tnx.
Perl script work very good without this command.
Am I forgot something?
Tnx.
Martina said:Why is important to use "use strict"?
Perl script work very good without this command.
Am I forgot something?
Tnx.
Martina said:Why is important to use "use strict"?
Perl script work very good without this command.
Am I forgot something?
You are forgetting that programmers are humans, too, and thus are making
mistakes.
"use strict" catches many of those all too human mistakes like e.g. typos in
variable names.
"Martina" <[email protected]> said:Why is important to use "use strict"?
Perl script work very good without this command.
Am I forgot something?
Tnx.
I'll have to take exception to this part about variable names.
use strict; almost demands that you also use 'my' variables.
Even when using warnings too, 'my' variables aren't checked for
"variable used only once" warnings. That is my clue that I mis-type
a variable name.
I don't understand that aspect of 'my' variables.
Chris said:I'll have to take exception to this part about variable names.
use strict; almost demands that you also use 'my' variables.
Even when using warnings too, 'my' variables aren't checked for
"variable used only once" warnings. That is my clue that I mis-type
a variable name.
I don't understand that aspect of 'my' variables.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.