Previous Thread
Next Thread
Print Thread
Rate Thread
#103054 07/28/2001 5:03 PM
Joined: Jul 2001
Posts: 37
Member
Member
Offline
Joined: Jul 2001
Posts: 37
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.

Sponsored Links
Entire Thread
Subject Posted By Posted
Require??? Chuck1616 07/29/2001 12:03 AM
Re: Require??? Mark Badolato 07/29/2001 12:28 AM
Re: Require??? Chuck1616 07/29/2001 1:09 AM
Re: Require??? jordo 07/29/2001 1:49 AM
Re: Require??? Chuck1616 07/29/2001 4:47 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 39197
Topics Created 0
Posts Made 0
Users Online 3
Birthdays 31
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)