From: Ron Goral [EMAIL PROTECTED]
Date: 2004/12/26 Sun PM 10:35:37 CST
-Original Message-
From: Jeff Zucker [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 26, 2004 10:30 PM
Paul Boutros wrote:
use strict;
my $val = 'DBI';
require $val;
Try it with $val = 'DBI.pm'
Subject: RE: Evaluated require $database not found.
What you missed is fundamental to understanding Perl vs
understanding
anything about the DBI module, and I would really recommend you
picking up a
good beginners book on Perl.
The values for $db_name, $host_name, $user_name
Ron Wingfield wrote:
RE: Your question, I still have no idea what you mean by $database. Is that the DBD, the RDBMS, the schema within the RDBMS, or something else?
No, . . .nothing that sophisticated. It's my spelling (could just as easily be
$foobar ) for a scalar variable to whom is
Wingfield
Cc: dbi-users
Sent: Monday, December 27, 2004 10:07 AM
Subject: Re: Evaluated require $database not found.
Ron Wingfield wrote:
RE: Your question, I still have no idea what you mean by $database. Is
that the DBD, the RDBMS, the schema within the RDBMS, or something else
: Evaluated require $database not found.
Hi Jeff,
First, Never apologize for any question regarding IT! (Keep in mind that
Murphy never heard of IT when he canonized his laws.)
To furthur explain, I want to pass a run-time parameter from pgm-A to pgm-B.
This parameter (in addition
Ron Wingfield wrote:
A practical example of a business application might be illustrated by a
manufacturing operation spread over multiple cities. In such a
scenario, a common server (i.e., the actual physical box and all),
located in Little Rock also serves the Ft. Smith and Memphis locations,
.
- Original Message -
From: Jeff Zucker
To: Ron Wingfield
Cc: dbi-users@perl.org
Sent: Monday, December 27, 2004 11:55 AM
Subject: Re: Evaluated require $database not found.
Ron Wingfield wrote:
A practical example of a business application might be illustrated
at eleven,
Ron W.
- Original Message -
From: Jeff Zucker
To: Ron Wingfield
Cc: dbi-users@perl.org
Sent: Monday, December 27, 2004 11:55 AM
Subject: Re: Evaluated require $database
Continuing to experiment with the evaluation of the require $database
scenario, I've learned this:
use strict;
use CGI;
use Perl_API_Utils; # installed in /www/cgi-bin/perl
use DBI;
use lib qw(/usr/home/rtwingfield/bin /www/cgi-bin/perl);
$cgi = new CGI;
.
.
.
print
require $database not found.
Continuing to experiment with the evaluation of the require
$database scenario, I've learned this:
use strict;
use CGI;
use Perl_API_Utils; # installed in /www/cgi-bin/perl
use DBI;
use lib qw(/usr/home/rtwingfield/bin /www/cgi-bin/perl);
$cgi
At 11:17 PM -0500 12/26/04, Paul Boutros wrote:
If I understand correctly, you're trying to decide at run-time what module
to include. I don't think that's possible. For example, the following
code:
use strict;
my $val = 'DBI';
require $val;
fails for me on every system I've tried with a:
Can't
Paul Boutros wrote:
If I understand correctly, you're trying to decide at run-time what module
to include. I don't think that's possible. For example, the following
code:
use strict;
my $val = 'DBI';
require $val;
Try it with $val = 'DBI.pm' :-)
-Original Message-
Continuing to
-Original Message-
From: Jeff Zucker [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 26, 2004 10:30 PM
To: Paul Boutros; dbi-users
Subject: Re: Evaluated require $database not found.
Paul Boutros wrote:
If I understand correctly, you're trying to decide at run-time
what
-
From: Paul Boutros
To: Ron Wingfield ; dbi-users@perl.org
Sent: Sunday, December 26, 2004 10:17 PM
Subject: RE: Evaluated require $database not found.
If I understand correctly, you're trying to decide at run-time what module
to include. I don't think that's possible. For example
- Original Message -
From: Ron Goral
To: Jeff Zucker ; Paul Boutros ; dbi-users
Sent: Sunday, December 26, 2004 10:35 PM
Subject: RE: Evaluated require $database not found.
-Original Message-
From: Jeff Zucker
: Ron Goral [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 26, 2004 11:36 PM
To: Jeff Zucker; Paul Boutros; dbi-users
Subject: RE: Evaluated require $database not found.
-Original Message-
From: Jeff Zucker [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 26, 2004 10:30 PM
Sent: Sunday, December 26, 2004 11:16 PM
Subject: RE: Evaluated require $database not found.
Yup, indeed both the EVAL STRING construct
my $val = 'DBI';
eval require $val;;
and explicitly giving file-extensions
my $val = 'DBI.pm';
require $val;
work just fine on my systems
17 matches
Mail list logo