On StackExchange I came across a command that looked like this:
perl -pe ...
Curious what the
-pe options meant, I did
man perl. This is the synopsis of that man page:
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 ]...
However, the man page does not explain what any of the options
sTtuUWXhvcwpnafS do. Instead it refers you to
perldoc. However, I can't seem to find any reference to the actual command line arguments in
perldoc. Where are they actually documented? Is there some secret linux documentation information retrieval method I am unaware of here?
On a side note/rant, is the fact that I can't find this information an indication of a failing in the perl documentation? I am happy to read the documentation rather than just ask questions online, but I swear finding my answer in the documentation can be near impossible at times! Graarh! /rant