Data Variable problem. (could somebody have a look at this asap if possible please?)

Posted on 2009-05-18
Last Modified: 2012-05-07
My programme consists a HTML form, two scripts and two modules. My problem is that I can input data from my HTML form to first script fine, it's just that when i try progressing to the second script i get receive the errors:

Software error:
Unknown enzyme selection ''

Content-type: text/html
Software error:
ran out of frames

Now... these errors occur when the button is pressed to send the user over to

Software error:
Unknown enzyme selection ''

Is an option in Script 1, and it is this option which generates the first set of data for the first HTML page. Why this error has been brought up again when going across to the second script is beyond me.

Content-type: text/html
Software error:
ran out of frames

suggests to me that none of my variable data from Script1 has been brought across to Script2 and so a second HTML page isn't generated.

Any help on this would be much appreciated!
Question by:StephenMcGowan
LVL 11

Accepted Solution

climbgunks earned 500 total points
ID: 24416767

The array @fragments is never being populated.  

Your call:
   system './', @fragments, $orfprotein1,$orfprotein2,$orfprotein3,$orfprotein4,$orfprotein5,$orfprotein6;

is running in a separate process... and not populating @fragments.

Furthermore, this statement:

is making the problem worse.  All it's doing is making $fragments[0] = ''.     Therefore, there is now a fragment (albeit not a valid one), and you enter the loop that matches fragments to frames.   However,   all of $orfproteinN  are undefined so you get the error message you're seeing above when it tries to compare the fragment against a new frame.


Author Comment

ID: 24416862
Thanks Climbgunks, i think it's getting somewhere,

Is there anyway of re-initialising a variable in a second script?

I've #'d out all the:

system './', @fragments, $orfprotein1,$orfprotein2,$orfprotein3,$orfprotein4,$orfprotein5,$orfprotein6;


But i'm receiving the errors:

Global symbol "$orfprotein1" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "$orfprotein2" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "$orfprotein3" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "$orfprotein4" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "$orfprotein5" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "$orfprotein6" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 81.
Global symbol "@fragments" requires explicit package name at /home/march09/campus12sm/public_html/Submission/ line 88.

Is there anyway of reinitialising the variables? or making them universal between two separate scripts? Thanks so much for your time, and for getting back to me!

I think this is the problem!



Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replace  text in a file 2 97
File Find regex problem 4 60
Perl script to find new files and compress those new files 5 81
Vb script to unzip a files and rename the files 12 97
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (,  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now