develooper Front page | perl.perl5.porters | Postings from January 2014

Re: [perl #121078] perlrun -M documentation minor error

Thread Previous | Thread Next
From:
Abigail
Date:
January 26, 2014 15:55
Subject:
Re: [perl #121078] perlrun -M documentation minor error
Message ID:
20140126155521.GA15170@almanda.fritz.box
On Fri, Jan 24, 2014 at 03:31:37PM -0800, perlbug@plan9.de wrote:
> # New Ticket Created by  perlbug@plan9.de 
> # Please include the string:  [perl #121078]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=121078 >
> 
> 
> 
> This is a bug report for perl from perlbug@plan9.de,
> generated with the help of perlbug 1.39 running under perl 5.18.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> The perlrun documentation for -M/-m says:
> 
>    Note that the "=" form removes the distinction between -m and -M.
> 
> I don't think this is correct. The distinction between -m and -M is that
> one doesn't call import and the other does. While = can make -m call
> import, there doesn't seem to be a way to get the effect of -mX with
> -MX=..., i.e. -M always results in import being called.
> 
> This is consistent with the documentation for "=": the split... expansion
> is never an explicit empty list as required by use to get the effect of
> "-m".
> 
> That also means that, if I was just too dense to figure it out and there
> IS a way to get no important from -M, then the description of the "="
> expansion is wrong.
> 


I added half a line of additional explanation with commit ef1f3bf.


Abigail

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About