diff options
author | Abigail <abigail@abigail.be> | 2014-01-26 16:51:14 +0100 |
---|---|---|
committer | Abigail <abigail@abigail.be> | 2014-01-26 16:54:24 +0100 |
commit | c2d9228f2ebd4faf3f1605e7adb5d962d6366bbd (patch) | |
tree | 5ed64301e65e52af7d9ee9f7111b0d2b901c2b81 /pod/perlrun.pod | |
parent | d643f78d66cb6950d42fe1c98c07e78252d52c6d (diff) | |
download | perl-c2d9228f2ebd4faf3f1605e7adb5d962d6366bbd.tar.gz |
Make it clear what it means if there's no distinction between -M and -m.
Triggered by perl #121078, where someone thought one could mimic the
behaviour of C<-m> by a clever use of C<-M> and C<=>.
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 1feecb0524..b54588171e 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -671,7 +671,8 @@ B<-mI<MODULE>=foo,bar> or B<-MI<MODULE>=foo,bar> as a shortcut for B<'-MI<MODULE> qw(foo bar)'>. This avoids the need to use quotes when importing symbols. The actual code generated by B<-MI<MODULE>=foo,bar> is C<use module split(/,/,q{foo,bar})>. Note that the C<=> form -removes the distinction between B<-m> and B<-M>. +removes the distinction between B<-m> and B<-M>; that is, +B<-mI<MODULE>=foo,bar> is the same as B<-MI<MODULE>=foo,bar>. A consequence of this is that B<-MI<MODULE>=number> never does a version check, unless C<I<MODULE>::import()> itself is set up to do a version check, which |