Log in



Tags » ‘best’

How do I figure out where the perl interpreter is for for my web host(will pick best answer)?

November 9th, 2010 by

Question by dharma: How do I figure out where the perl interpreter is for for my web host(will pick best answer)?
I dont know what to put for the shebang line. I need to upload the perl file and html file so my instructor can use it.
I am using hostingspot.com
No diea if its linux or unix like
I am using them as CGI scripts. I have been putting them in the CGI bin.

Best answer:

Answer by Jonas
Usually /usr/bin/perl …

You could also put “/usr/bin/env perl” in the shebang, which is probably more “correct”.

Have you tried “which perl” (assuming the host is a Linux or UNIX-like host)?

Are you trying to run the scripts as CGI scripts? Some hosts use different intepreters for that.

Know better? Leave your own answer in the comments!

What is the best .DBM file manager module for perl?

November 7th, 2010 by

Question by J needs Help: What is the best .DBM file manager module for perl?
I need to not use a mySQL database, so I need to use a .DBM file. I have no prior knowledge with databases and Perl.

Best answer:

Answer by S T
DB_File.

http://search.cpan.org/dist/DB_File/

But actually you don’t have to use that stone age technology like DBM.
I’d suggest to use DBD::SQLite. It provides DBI interface, so you can run SQL queries, like with any other databases, like MySQL, Postgre or Oracle, also it has transactions etc etc.
Also, DBD::SQLite is easier to install.

Give your answer to this question below!


Powered by Yahoo! Answers