Programming Languages
C++
Subjective
Mar 13, 2013
What is the use of -n and -p options?
Detailed Explanation
The -n and -p options are used to wrap scripts inside loops. The -n option makes the Perl execute the script inside the loop. The -p option also used the same loop as -n loop but in addition to it, it uses continue. If both the -n and -p options are used together the -p option is given the preference.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts