
SRC: pmdirs - print the perl module path, newline separated
#!/usr/bin/env perl
# pmdirs -- print the perl module path, newline separated
BEGIN { $^W = 1 }
print $_, "\n";
Quote:
}
__END__
=head1 NAME
pmdirs - print out module directories
=head1 DESCRIPTION
This is for people who don't want to parse through C<perl -V> output or
hack up their own calls to C<perl -e>.
=head1 EXAMPLES
$ pmdirs
/home/tchrist/perllib/i686-linux
/home/tchrist/perllib
/usr/local/devperl/lib/5.00554/i686-linux
/usr/local/devperl/lib/5.00554
/usr/local/devperl/lib/site_perl/5.00554/i686-linux
/usr/local/devperl/lib/site_perl/5.00554
.
This also works for alternate version of Perl:
$ filsperl -S pmdirs
/home/tchrist/perllib
/usr/local/filsperl/lib/5.00554/i686-linux-thread
/usr/local/filsperl/lib/5.00554
/usr/local/filsperl/lib/site_perl/5.00554/i686-linux-thread
/usr/local/filsperl/lib/site_perl/5.00554
.
=head1 SEE ALSO
perlrun(1), perlvar(1), lib(3)
=head1 AUTHOR and COPYRIGHT
Copyright (c) 1999 Tom Christiansen
This is free software. You may modify it and distribute it
under the Perl's Artistic Licence. Modified versions must be
clearly indicated.
--
Mathematics: That branch of Human Thought which takes a finite set of trivial
axioms and maps them to a countably infinite set of unintuitive theorems.