in reply to Login?
You need a DBD module (such as DBD::Sybase). Here's a modified example from the DBI documentation:
That's not beautiful and it won't compile, but it's the basics. Once you get DBI installed, type perldoc DBI and you'll get plenty of information. (See CPAN for how to install it.)use DBI; my $data_source = "DBD::Sybase::dbname"; # or something like this my $dbh = DBI->connect($data_source, $username, $password); my $sth = $dbh->prepare(' SELECT user, pass FROM auth '); # or some +thing like this $sth = $dbh->execute; while (($user, $pass) = $sth->fetchrow_array)) { # do something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: (chromatic) Re: Login?
by Abigail (Deacon) on Jul 15, 2000 at 11:49 UTC | |
by CMonster (Scribe) on Jul 15, 2000 at 21:07 UTC | |
by BBQ (Curate) on Jul 16, 2000 at 03:31 UTC |