This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Clarify what -MFoo=number does on the command-line
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 27 Sep 2005 17:02:42 +0000 (17:02 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 27 Sep 2005 17:02:42 +0000 (17:02 +0000)
p4raw-id: //depot/perl@25623

pod/perlrun.pod

index 85706ca..dbf008d 100644 (file)
@@ -620,6 +620,10 @@ importing symbols.  The actual code generated by B<-Mmodule=foo,bar> is
 C<use module split(/,/,q{foo,bar})>.  Note that the C<=> form
 removes the distinction between B<-m> and B<-M>.
 
+A consequence of this is that B<-MFoo=number> never does a version check
+(unless C<Foo::import()> itself is set up to do a version check, which
+could happen for example if Foo inherits from Exporter.)
+
 =item B<-n>
 
 causes Perl to assume the following loop around your program, which