0 votes
in Perl by
What is the use of -n and -p options?

1 Answer

0 votes
by

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.

...