perl's -M
What's the meaning of Perl's "-M" operator?
which perldoc document is it get descripted in?
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: perl's -M
Hi Feng,
On Fri, 22 Jul 2011 16:47:09 +0800
Feng He <shorttag [at] gmail.com> 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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: perl's -M
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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: perl's -M
Thank you all for the kind info.
On Fri, Jul 22, 2011 at 4:57 PM, Shlomi Fish <shlomif [at] shlomifish.org> wrote=
:
> Hi Feng,
>
> On Fri, 22 Jul 2011 16:47:09 +0800
> Feng He <shorttag [at] gmail.com> 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,
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Shlomi Fish
>
> --
> ------------------------------------------------------------ -----
> Shlomi Fish =C2=A0 =C2=A0 =C2=A0 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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/