[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Perl "use"
Why don't you just define the database in catalog.cfg and then access it
with regular minived tags?
-August
--
August Detlefsen - 'Net design and Development
mailto:augustd@idiom.com
Kyle Hayes wrote:
>
> ****** message to minivend-users from Kyle Hayes <kyle540@quicknet.net> ******
>
> Kim,
>
> Safe is designed to prevent you from leaving a safe little sandbox.
> Connecting to a database is definitely outside the sandbox. You probably
> should put this code into a UserTag or use the tag_data() call.
>
> Best,
> Kyle
>
> On Tue, 3 Aug 1999, Kim Armann wrote:
>
> > ****** message to minivend-users from Kim Armann <kim@nichols.de> ******
> >
> > Hi, I want to make an SQL-Connect with embedded Perl to a MySQL database
> > like
> > <PRE mv=perl>
> > use DBI;
> > $dbart = 'mysql';
> > $dbname = 'xxx';
> > $dbuser = 'minivend';
> > $dbpass = 'xxx';
> > $db = DBI->connect ($dbname, $dbuser, $dbpass, $dbart);
> > if (!$db) { return "Kann nicht verbinden $DBI::errstr\n";
> > }
> > else ....
> > </PRE>
> > but I get
> > .../search Safe: require trapped by operation mask at (eval 78) line 2.
> > what does it mean? I tried with $Safe{DBI}; ... but no result.
> >
> > Kim Armann
> > -
> > To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> > email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> > Archive of past messages: http://www.minivend.com/minivend/minivend-list
> >
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list