in reply to beginner - hyphen before a parameter
It is just one of many conventions in the way you specify parameters.
Specifically, perl "auto-quotes" the name when used at the left side of the "=>" operator, so the name essentially is "-host", "-user" etc..., and perl does not try to understand the contents.
How a particular name is interpreted is left to the recipient of the parameters.
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|