Is there a man page for `perl`?

I wanted to know what perl -T means.

man perl says:

 PERL(1) Perl Programmers Reference Guide PERL(1) NAME perl - The Perl 5 language interpreter SYNOPSIS perl [ -sTtuUWX ] [ -hv ] [ -V[:configvar] ] [ -cw ] [ -d[t][:debugger] ] [ -D[number/list] ] [ -pna ] [ -Fpattern ] [ -l[octal] ] [ -0[octal/hexadecimal] ] [ -Idir ] [ -m[-]module ] [ -M[-]'module...' ] [ -f ] [ -C [number/list] ] [ -S ] [ -x[dir] ] [ -i[extension] ] [ [-e|-E] 'command' ] [ -- ] [ programfile ] [ argument ]... 

And then none of these command line arguments explain.

Where can I find manpage / perldoc for these command line arguments?

+4
source share
2 answers

Take a look at perldoc perlrun ("how to execute a Perl interpreter"):

-T

forces you to check "taint" so you can test them. Typically, these checks are performed only when setuid or setgid is run. It is a good idea to include them explicitly for programs that work on behalf of someone you may not necessarily trust, such as CGI programs or any Internet servers that you could write in Perl. See perlsec more details. For security reasons, this option should be noticed by Perl quite early; this usually means it should appear earlier on the command line or on the line #! for systems that support this design.

+11
source

From perldoc :

-T

includes "taint" so you can test them. Typically, these checks are performed only when setuid or setgid is run. It is a good idea to turn them explicitly for programs that work on behalf of someone you may not necessarily trust, such as CGI programs or any Internet servers that you could write in Perl. See Perelsec for more details. For security reasons, this option should be noticed by Perl quite early; this usually means that it should appear earlier on the command line or in #! line for systems that support this design.

+5
source

Source: https://habr.com/ru/post/1439612/


All Articles