perl"s -M
am 22.07.2011 10:47:09 von Feng He
What's the meaning of Perl's "-M" operator?
which perldoc document is it get descripted in?
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: perl"s -M
am 22.07.2011 10:57:31 von Shlomi Fish
Hi Feng,
On Fri, 22 Jul 2011 16:47:09 +0800
Feng He wrote:
> What's the meaning of Perl's "-M" operator?
> which perldoc document is it get descripted in?
>
If you mean the -M operator inside Perl code see:
http://perldoc.perl.org/functions/-X.html
(Accessible as "perldoc -f -X" - "-f" for function.).
If you mean the command-line flag, see:
http://perldoc.perl.org/perlrun.html
("perldoc perlrun").
Hope it helps.
Regards,
Shlomi Fish
--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/
An original philosopher knows the right combination of ideas to steal.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: perl"s -M
am 22.07.2011 11:00:39 von Alan Haggai Alavi
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-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: perl"s -M
am 22.07.2011 11:13:58 von Feng He
Thank you all for the kind info.
On Fri, Jul 22, 2011 at 4:57 PM, Shlomi Fish wrote=
:
> Hi Feng,
>
> On Fri, 22 Jul 2011 16:47:09 +0800
> Feng He wrote:
>
>> What's the meaning of Perl's "-M" operator?
>> which perldoc document is it get descripted in?
>>
>
> If you mean the -M operator inside Perl code see:
>
> http://perldoc.perl.org/functions/-X.html
>
> (Accessible as "perldoc -f -X" - "-f" for function.).
>
> If you mean the command-line flag, see:
>
> http://perldoc.perl.org/perlrun.html
>
> ("perldoc perlrun").
>
> Hope it helps.
>
> Regards,
>
> Â Â Â Â Shlomi Fish
>
> --
> ------------------------------------------------------------ -----
> Shlomi Fish    http://www.shlomifish.org/
> Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/
>
> An original philosopher knows the right combination of ideas to steal.
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply =
..
>
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/