[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl - cpan



On Fri, Feb 09, 2001 at 01:39:36PM -0600, techlists@techgod.net wrote:
> what is the command to connect to CPAN to down load modules...I've had a brain fart and can't remember
> 
> wayne

if you've got the CPAN perl module, then

	perl -MCPAN -e 'shell'

will keep you off the streets for a while.

i've got a script called 'cpan' which does basically that;
i thought i got it from a debian package but

	# dpkg -S cpan
	dpkg: *cpan* not found.

	# which cpan
	/usr/bin/cpan

here it is in all its glory:

	#!/usr/bin/perl

	eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
		if 0; # not running under some shell

	use CPAN;
	shell;

that's it!

-- 
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
		-- Isaac Asimov, 'The Genetic Code'

will@serensoft.com    ***    http://www.dontUthink.com/

http://groups.yahoo.com/group/newbieDoc -- next week's
newbie needs your brain: document your experience today!



Reply to: