CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
making variables available to other scripts



May 26, 2001, 8:48 AM

Post #1 of 2 (400 views)
making variables available to other scripts Can't Post


This is possibly a dumb question, but my boss wants me to do something similar so...

I want to be able to make a scalar variable available to another script. Is there an easier way to do this besides passing it to a filehandle and writing it to a flat file db for future retrieval?


May 26, 2001, 10:45 AM

Post #2 of 2 (396 views)
Re: making variables available to other scripts [In reply to] Can't Post

Hi Oscar,

well another way would be to modify an environment variable (you can look here if you use unix), but really saving your data to a file is by far the simpliest way i can think of.

are you sure you really need two script? if they're launched in sequence, may be one script could call the other with the variable as an argument?


Real programmers´butcher dont understand when they just ask for 3735928559.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives