Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Modules with ActiveState Perl

Status
Not open for further replies.

perlone

Programmer
May 20, 2001
438
US
I installed perl under windows 98 and i'm new to this whole module stuff. I installed MLBDM using the PPM Interactive Shell. After installing, my script still not working and here's the code:

#!/usr/bin/perl -w
print "Content-type: text/html\n\n";

use MLDBM qw(DB_File Storable);
use Fcntl;

my %car=();
tie (%car, "MLDBM", "car_data",
O_CREAT|O_RDWR, 0666, $DB_File::DB_BTREE) ||
die "Could not open or create database.";
$car{'JN1HU11P1HX875232'} =
{ 'make' => 'Nissan',
'model' => 'Maxima',
'year' => '1997',
'color' => 'evergreen'
};
$car{'1GNDM15Z2HB187252 '} =
{ 'make' => 'Chevrolet',
'model' => 'Astro',
'year' => '1999',
'color' => 'black'
};
print "Inventory contains: \n";
foreach (keys %car) {
print $_ . ":\t".$car{$_}{make}." ".$car{$_}{model}."\n";
}

untie (%car);

Is it the code or installation? To test all my script, I use the service from F2S.com. Does they have to install too? Thanks for reading and hope you can help.


-Aaron
 
assuming you're executing the scripts on f2s computers, the script won't have access to any of the modules on your personal computer. you should get yourself a webserver so you can test your scripts on your computer, rather than on someone else's computer. apache works well, even in win98, for just testing scripts. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
And if you're going to test them on your win98 machine you'll need to change the first line to #!C:\perl\bin\perl -w Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top