tachyon has asked for the wisdom of the Perl Monks concerning the following question:
I am writing an install script at the moment and have two qestions. On Debian you can use apt-get to install perl modules so what I want to know is:
1) What exactly does perl -e 'print $^O' return on Debian?
2) Where can I find the list of apt-get packages for perl. They almsot bear a linear relation to the real module name (prefix of lib and postfix of -perl) but not quite:
$cmd = 'apt-get install libcgi-perl' if $module eq + 'CGI'; $cmd = 'apt-get install libdbi-perl' if $module eq + 'DBI'; $cmd = 'apt-get install libmail-pop3client-perl' if $module eq + 'Mail::POP3Client'; $cmd = 'apt-get install libmime-perl' if $module eq + 'MIME::Base64'; $cmd = 'apt-get install libmime-lite-perl' if $module eq + 'MIME::Lite'; $cmd = 'apt-get install libcrypt-blowfish-perl' if $module eq + 'Crypt::Blowfish'; $cmd = 'apt-get install libcrypt-cbc-perl' if $module eq + 'Crypt::CBC'; $cmd = 'apt-get install libnet-perl' if $module eq + 'Net::SMTP'; $cmd = 'apt-get install libtext-perl' if $module eq + 'Text::Wrap'; print "Trying to install $module, command line $cmd\nPlease be + patient.....\n";
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help from Debian aficiandos
by elusion (Curate) on Dec 10, 2002 at 21:37 UTC | |
|
Re: Help from Debian aficiandos
by theorbtwo (Prior) on Dec 10, 2002 at 21:46 UTC | |
|
Re: Help from Debian aficiandos
by jsprat (Curate) on Dec 10, 2002 at 22:15 UTC | |
|
Re: Help from Debian aficiandos
by pfaut (Priest) on Dec 10, 2002 at 21:19 UTC | |
|
Re: Help from Debian aficiandos
by hossman (Prior) on Dec 10, 2002 at 21:43 UTC |