Hi Feng,

> What's the meaning of Perl's "-M" operator?

`-M` is a command switch. It is used to load a module and is equivalent to 
`use`-ing a module within the script. `-M` is different from `-m` in that the 
former executes `import` function of the module whereas the latter does not 
import any function except for the ones that have been explicitly listed with 
the command switch.

> which perldoc document is it get descripted in?

Command switches are documented in `perlrun`.

Regards,
Alan Haggai Alavi.
-- 
The difference makes the difference.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to