<?xml version="1.0" encoding="windows-1252"?>
<node id="138183" title="Re: Use modules with an import list on the command line" created="2002-01-11 23:03:27" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="83485">
blakem</author>
<data>
<field name="doctext">
Might also point out that the specifics are documented [http://www.perldoc.com/perl5.6.1/pod/perlrun.html#-m%5b-%5dmodule|in this section of perlrun]:
&lt;P&gt;
&lt;UL&gt;
&lt;TT&gt;
-m&amp;#091;-]module&lt;BR&gt;
-M&amp;#091;-]module&lt;BR&gt;
-M&amp;#091;-]'module ...'&lt;BR&gt;
-&amp;#091;mM]&amp;#091;-]module=arg&amp;#091;,arg]...&lt;BR&gt;
&lt;UL&gt;
     -mmodule executes `use' module `();' before executing
     your program.&lt;P&gt;

     -Mmodule executes `use' module `;' before executing
     your program.  You can use quotes to add extra code
     after the module name, e.g., `'-Mmodule qw(foo
     bar)''.&lt;P&gt;

     If the first character after the -M or -m is a dash
     (`-') then the 'use' is replaced with 'no'.&lt;P&gt;

     A little builtin syntactic sugar means you can also
     say -mmodule=foo,bar or -Mmodule=foo,bar as a
     shortcut for `'-Mmodule qw(foo bar)''.  This avoids
     the need to use quotes when importing symbols.  The
     actual code generated by -Mmodule=foo,bar is `use
     module split(/,/,q{foo,bar})'.  Note that the `='
     form removes the distinction between -m and -M.
&lt;/UL&gt;
&lt;/TT&gt;
&lt;/UL&gt;

&lt;P&gt;
-Blake

</field>
<field name="root_node">
138176</field>
<field name="parent_node">
138176</field>
</data>
</node>
