SRC: pmdirs - print the perl module path, newline separated 
Author Message
 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.



Fri, 03 Aug 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. SRC: stdpods - print out the paths to the modules that came with Perl

2. SRC: modpods - print out paths for the standard modules

3. SRC: sitepods - print out the paths to the modules

4. SRC: basepods - print out pod paths for the standard perl manpages

5. SRC: pods - print out all pod paths

6. SRC: faqpods - print out the paths to the faqs

7. SRC: podpath - print the path to the pod

8. SRC: pmpath - show path to a perl module

9. SRC: pmvers - print out a module's version

10. regexp question - separating path elements

11. SRC: printing to more than one filehandle

12. Newlines in prints

 

 
Powered by phpBB® Forum Software