Skip to content

Document a way to perform use Module VERSION LIST on the command-line #19002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pod/perlrun.pod
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,11 @@ 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
could happen for example if I<MODULE> inherits from L<Exporter>.

However, it should be noted that since the syntax C<'-MI<MODULE foo,bar>'>
shown above will generate C<use MODULE ('foo', 'bar')>, it's possible
to do a version check using C<'-MI<MODULE VERSION foo,bar>'>, which will
generate C<use MODULE VERSION ('foo', 'bar')>.

=item B<-n>
X<-n>

Expand Down