Advertisement

07.04.2005 at 08:10AM PDT, ID: 21479700
[x]
Attachment Details

use vars qw( $q $db $html

Asked by rcinformatica in Perl Programming Language

Tags: vars, use, qw

Hi experts,
I have q few scripts that all need the variables declared with use vars qw( $q $db $html ..........

Now since the variables are more than 300 and all the scripts use the same variables I just wnated to save all the variables in a file and then call the file directly from each script something like:

foreach $line (@filewithvariables) {
print "use vars qw( $line)";
}

so that I do not have to waste 300 lines in any script.

Do you have any suggestions?


thanks for your timeStart Free Trial
[+][-]07.04.2005 at 10:53AM PDT, ID: 14363845

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 11:32AM PDT, ID: 14364005

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 12:52PM PDT, ID: 14364249

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 01:07PM PDT, ID: 14364294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 01:13PM PDT, ID: 14364319

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 01:21PM PDT, ID: 14364349

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.04.2005 at 01:33PM PDT, ID: 14364393

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2005 at 01:45PM PDT, ID: 14364438

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: vars, use, qw
Sign Up Now!
Solution Provided By: Mysidia
Participating Experts: 3
Solution Grade: B
 
 
[+][-]07.04.2005 at 01:57PM PDT, ID: 14364475

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32