Require??? - 07/29/2001 12:03 AM
What I am about to ask may sound confusing, but please bear with me.
Say I have "script a"(script_a.cgi) that contains a hash.
%script_a_hash = (
'name_test' => 'This Is A Name',
'des_test' => 'This is a description'
)
But I also have "script b"(script_b.cgi) that requires the use of variables from that hash.
How would I go about calling information from "script a" to "script b"?
Would it be done like*:
require '/scrip_a.cgi';
print $script_a_hash{name_test};
Because when I try that all I get is a blank screen.
Any help is appreciated.
-----------------
* NOTE: That is just an exert, I do have the PERL path, etc.
Say I have "script a"(script_a.cgi) that contains a hash.
%script_a_hash = (
'name_test' => 'This Is A Name',
'des_test' => 'This is a description'
)
But I also have "script b"(script_b.cgi) that requires the use of variables from that hash.
How would I go about calling information from "script a" to "script b"?
Would it be done like*:
require '/scrip_a.cgi';
print $script_a_hash{name_test};
Because when I try that all I get is a blank screen.
Any help is appreciated.
-----------------
* NOTE: That is just an exert, I do have the PERL path, etc.