* perl on tru64 -- taking a chance...
@ 2001-04-18 12:24 kat
0 siblings, 0 replies; only message in thread
From: kat @ 2001-04-18 12:24 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--=====================_2414722==_.ALT", Size: 4299 bytes --]
--=====================_2414722==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Ok, I have exhausted all other options. I am going to take a chance,
since this is on Tru64 that there are some perl experts on the list that
might be ableto help.... I have spent 3 days with this and no luck. File
permissions, ownership, etc, have all been checked/rechecked and double
checked. This is on Apache on Tru64. Anyway...
This code used to work, and now, no matter what I use for a path, I always
get an error opening the file... Does anyone see anything obvious here in
this snippit??
#!/usr/bin/perl
#This script will return quiz responses to a browser. It reads from a quiz
database file
#which has a structure as follows:
#Record Key = StudentID+StudentName+Department+Company+QuestionID
#Record Value = StudentID, StudentName, Department, Company, QuestionID,
QuestionName, Chapter, Type, Answer, Grade, PageNumber, Weight, Tries
#Field values are delimited by the | character.
#Load the Database Module
use Fcntl;
use DB_File;
#parse the response data
&parse_form_data(*submit_data);
$database = "/anthing I put here, whether valid or not, makes no difference";
for(0..255){
$escapes{chr($_)} = sprintf("%%%02X", $_);
}
#Open the database file and tie it to the %file variable
tie(%file, "DB_File", $database, O_RDWR, 0644, $DB_HASH)
or &return_error (500, "Quiz Control File Error", "Failure-Could not open
quiz database!");
#Get the Student Information to return scores for
$query_ID = $submit_data{'StudentID'};
$query_Name = $submit_data{'StudentName'};
$query_Department = $submit_data{'Department'};
$query_Company = $submit_data{'Company'};
$query_Chapter = $submit_data{'Chapter'};
$query_Title = $submit_data{'Title'};
$query_ListTitle = $submit_data{'ListTitle'};
$query_Prompt1 = $submit_data{'Prompt1'};
$query_Prompt2 = $submit_data{'Prompt2'};
$query_Prompt3 = $submit_data{'Prompt3'};
$query_Prompt4 = $submit_data{'Prompt4'};
--=====================_2414722==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
Ok, I have exhausted all other options. I am going to take a
chance, since this is on Tru64 that there are some perl experts on the
list that might be ableto help.... I have spent 3 days with this and no
luck. File permissions, ownership, etc, have all been
checked/rechecked and double checked. This is on Apache on Tru64.
Anyway...<br>
<br>
This code used to work, and now, no matter what I use for a path, I
always get an error opening the file... Does anyone see anything obvious
here in this snippit??<br>
<br>
<font face="Courier New, Courier">#!/usr/bin/perl<br>
<br>
#This script will return quiz responses to a browser. It reads from a
quiz database file<br>
#which has a structure as follows:<br>
#Record Key = StudentID+StudentName+Department+Company+QuestionID<br>
#Record Value = StudentID, StudentName, Department, Company, QuestionID,
QuestionName, Chapter, Type, Answer, Grade, PageNumber, Weight,
Tries<br>
#Field values are delimited by the | character.<br>
<br>
#Load the Database Module<br>
use Fcntl;<br>
use DB_File;<br>
<br>
#parse the response data<br>
&parse_form_data(*submit_data); <br>
<br>
$database = "/anthing I put here, whether valid or not, makes no
difference";<br>
<br>
<br>
for(0..255){<br>
$escapes{chr($_)} = sprintf("%%%02X", $_);<br>
}<br>
<br>
#Open the database file and tie it to the %file variable<br>
tie(%file, "DB_File", $database, O_RDWR, 0644, $DB_HASH)<br>
or &return_error (500, "Quiz Control File Error",
"Failure-Could not open quiz database!");<br>
<br>
#Get the Student Information to return scores for<br>
$query_ID = $submit_data{'StudentID'};<br>
$query_Name = $submit_data{'StudentName'};<br>
$query_Department = $submit_data{'Department'};<br>
$query_Company = $submit_data{'Company'};<br>
$query_Chapter = $submit_data{'Chapter'};<br>
$query_Title = $submit_data{'Title'};<br>
$query_ListTitle = $submit_data{'ListTitle'};<br>
$query_Prompt1 = $submit_data{'Prompt1'};<br>
$query_Prompt2 = $submit_data{'Prompt2'};<br>
$query_Prompt3 = $submit_data{'Prompt3'};<br>
$query_Prompt4 = $submit_data{'Prompt4'};<br>
<br>
<br>
</font></html>
--=====================_2414722==_.ALT--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-18 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 12:24 perl on tru64 -- taking a chance kat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox