modules path to perl
How do I list what my ISP has on there server in terms of Modules? And what is the command (at the command line) to tell me what version The server has on it / and or the path to perl. Thanks Dave G. Looking for Web Talent, You found it! portfolio: www.coraconnection.com/web/ email: [EMAIL PROTECTED] tel/fax: (860) 231-9988
Re: modules path to perl
do a 'which perl' at the command line to get the location of perl. Not sure about the modules. To get the version of perl, do 'perl --version' at the command line. Tyler - Original Message - From: David Gilden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 05, 2001 12:29 PM Subject: modules path to perl How do I list what my ISP has on there server in terms of Modules? And what is the command (at the command line) to tell me what version The server has on it / and or the path to perl. Thanks Dave G. Looking for Web Talent, You found it! portfolio: www.coraconnection.com/web/ email: [EMAIL PROTECTED] tel/fax: (860) 231-9988
Re: modules path to perl
At 01:29 PM 7/5/01 -0400, David Gilden wrote: How do I list what my ISP has on there server in terms of Modules? perldoc CPAN and look for the autobundle command. You'll have to define your own personal CPAN directory first, but this is the official way. Dirtier way: find `perl -e 'print @INC'` -name *.pm -print And what is the command (at the command line) to tell me what version perl -v The server has on it / and or the path to perl. which perl
Re: modules path to perl
At 02:03 PM 7/5/01 -0400, David Gilden wrote: perldoc CPAN and look for the autobundle command. You'll have to define your own personal CPAN directory first, but this is the official way. Dirtier way: find `perl -e 'print @INC'` -name *.pm -print Got a long list of stuff, and wanted to write to a file, What did I miss here? (almost there...) Redirect: find `perl -e 'print @INC'` -name *.pm -print modules #!/usr/bin/perl @array = (test,dave); push @array ,`find @INC -name *.pm`; open (ML, modulelist) or die could not write file $!; while (@array){ print $_\n; } Er, just stick the module list in a file from the command line, no need to write a Perl script to do it. Then clean it up with an editor. If you're looking for more details, autobundle is the way to go; it will tell you version numbers. CPAN.pm can even tell you which modules have more recent versions available. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com