Programming Languages C++ Subjective
Mar 13, 2013

What is the use of -w, -t and strict in Perl?

Detailed Explanation

When we use –w, it gives warnings about the possible interpretation errors in the script.

Strict tells Perl to force checks on the definition and usage of variables. This can be invoked using the use strict command. If there are any unsafe or ambiguous commands in the script, this pragma stops the execution of the script instead of just giving warnings.

When used –t, it switches on taint checking. It forces Perl to check the origin of variables where outside variables cannot be used in sub shell executions and system calls

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback