I need to generate a response with a background image, using cgi.pm, my script looks like this:
use CGI;
$q= new CGI;
print $q->header();
print $q->start_html(-title=>'test');
print "test"
print $q->end_html;
there is a parameter for BGCOLOR:
print...
I had the same problem when i first start using a local host, check the following points:
1)did you remember to start apache from the start menu before calling the script from your browser?
2)path to interpreter:
if you installed apache in your c drive,
your path to the perl interpreter is not...
I have a database that is in excel, to read it into perl and do calulations with it based on user input, I export it into text, save as .txt and read it in into Perl.
I would get the script to work directly from excel and skip the conversion to text.
I can get it to read directly from Excel...
Have you tried running perl from the command line.
Go to start>run> type in: command, and hit enter.
the dos window should pop up.
If you store your perl scripts on desktop: eg test.pl
Change the C:/ to C:windows/desktop if necessary (type cd desktop).
Then type:
perl test.pl and hit enter...
To get PerlDoc for windows users, go to www.activestate.com.
You can either view it online from the site
or
if you have downloaded perl 522 upwards for win32, its in a the perl folder: perl\html\lib\pod
its got all the basic info and links.
ratz
I have a script that works fine when the data is stored in the same file as the script.
The data is a 2-D array.
because the file is quite large, I stored it in a seperate .txt file to read only from the script.
But the script does not 'see' the data as a 2-d array, as it can't access specific...
To learn to basics of perl can get free online tutorials to begin with.
The problem is actually running the script on a server.
Here are some free CGI hosting places:
www.mycgiserver.com
www.tripod.com
www.virtualave.com
But if you just want to learn syntax and not output to HTML until you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.