in reply to Re: module location
in thread module location
This code gets this error:#!/usr/bin/perl -w use strict; my $perl_module; BEGIN { my $ct_args = @ARGV; if ($ct_args != 1) { print "\nUsage: pwhich_short <perl module name>\n\n"; print "Example: pwhich_short DBI\n\n"; exit; } $perl_module = shift; }; eval "use $perl_module" or die "Can't find $perl_module: $!\n";
That's it. Does this work for you? Any ideas?Can't find DBI:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: module location
by liz (Monsignor) on Nov 07, 2003 at 15:50 UTC | |
by hmerrill (Friar) on Nov 07, 2003 at 16:23 UTC |