diff options
author | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-02-28 16:49:33 -0800 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-02-28 16:49:33 -0800 |
commit | a5f75d667838e8e7bb037880391f5c44476d33b4 (patch) | |
tree | 5005e888355c1508bc47da697efe119c1615b123 /pod/perlrun.pod | |
parent | 2920c5d2b358b11ace52104b6944bfa0e89256a7 (diff) | |
download | perl-a5f75d667838e8e7bb037880391f5c44476d33b4.tar.gz |
perl 5.002perl-5.002
[editor's note: changes seem to be mostly module updates,
documentation changes and some perl API macro additions]
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index fe8a154c39..7169515c54 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -260,11 +260,19 @@ C<-M>I<module> executes C<use> I<module> C<;> before executing your script. You can use quotes to add extra code after the module name, e.g., C<-M'module qw(foo bar)'>. +If the first character after the C<-M> or C<-m> is a dash (C<->) +then the 'use' is replaced with 'no'. + A little built-in syntactic sugar means you can also say C<-mmodule=foo> or C<-Mmodule=foo> as a shortcut for C<-M'module qw(foo)'>. Note that using the C<=> form removes the distinction between C<-m> and C<-M>. +To avoid the need to use quotes when importing more that one symbol +with the C<=> form, the text following the C<=> is split into a list +on commas (C<,>) rather than whitespace. The actual code generated +by C<-Mmodule=foo,bar> is C<use module split(/,/,q{foo,bar})>. + =item B<-n> causes Perl to assume the following loop around your script, which |