Skip to content

Explicit mention of major version in code/tests #363

Open
@toddr

Description

@toddr

@bingos I see you've been doing some cleanup. Thank you!

I wanted to make sure we shared this with you so you were aware. we noticed that perl5 is mentioned explicitly in some places. Maybe these places could use $^V->{version}->[0] or even int $] to get the major?

Thanks for everything you do.

Todd

$>git grep /perl5
lib/ExtUtils/MM_Any.pm:    my $libstyle = $Config{installstyle} || 'lib/perl5';
lib/ExtUtils/MM_Any.pm:        $manstyle = $self->{LIBSTYLE} eq 'lib/perl5' ? 'lib/perl5' : '';
lib/ExtUtils/MakeMaker.pm:    INSTALLARCHLIB     INSTALL_BASE/lib/perl5/$Config{archname}
lib/ExtUtils/MakeMaker.pm:    INSTALLPRIVLIB     INSTALL_BASE/lib/perl5
lib/ExtUtils/MakeMaker/FAQ.pod:This will put modules into F<~/lib/perl5>, man pages into F<~/man> and
lib/ExtUtils/MakeMaker/FAQ.pod:set your C<PERL5LIB> environment variable to F<~/lib/perl5> or tell
lib/ExtUtils/MakeMaker/FAQ.pod:    use lib "$ENV{HOME}/lib/perl5";
lib/ExtUtils/MakeMaker/FAQ.pod:    use lib "/path/to/your/home/dir/lib/perl5";
lib/ExtUtils/MakeMaker/FAQ.pod:And then set PERL5LIB to F<~/tmp/lib/perl5>.  This works well when you
lib/ExtUtils/MakeMaker/FAQ.pod:=item "No rule to make target `/usr/lib/perl5/CORE/config.h', needed by `Makefile'"
t/INSTALL_BASE.t:    ("$instdir/lib/perl5/Big/Dummy.pm",
t/INSTALL_BASE.t:     "$instdir/lib/perl5/Big/Liar.pm",
t/INSTALL_BASE.t:     "$instdir/lib/perl5/$Config{archname}/perllocal.pod",
t/INSTALL_BASE.t:     "$instdir/lib/perl5/$Config{archname}/auto/Big/Dummy/.packlist"
t/fixin.t:#!/foo/bar/perl5.8.8 -w
t/fixin.t:        unlike $lines[$shb_line_num], qr[/foo/bar/perl5.8.8], "#! replaced";
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions