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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
Caching the value of a variable

 



aditya.chandra
New User

Jul 1, 2009, 9:33 PM

Post #1 of 4 (6111 views)
Caching the value of a variable Can't Post

Hi,

I have a perl script which calls a perl module. There is a variable in the perl module. I want this variable to retain its value when the script call the module next time.

Can someone help me regarding the same?


KevinR
Veteran


Jul 1, 2009, 9:41 PM

Post #2 of 4 (6110 views)
Re: [aditya.chandra] Caching the value of a variable [In reply to] Can't Post

Then you have to store the value to disk. How you store it is up to you, text file, database, maybe using Storable module.
-------------------------------------------------


aditya.chandra
New User

Jul 1, 2009, 9:57 PM

Post #3 of 4 (6109 views)
Re: [KevinR] Caching the value of a variable [In reply to] Can't Post

Hi Kevin,

The variable's value couldn't be stored in a file or in database as the variable will contain password.

Thanks,

Aditya


KevinR
Veteran


Jul 2, 2009, 11:21 AM

Post #4 of 4 (6099 views)
Re: [aditya.chandra] Caching the value of a variable [In reply to] Can't Post

Well, I have no idea how you can save the value of a variable without storing it somehow. You could store it in an encrypted form. But that is getting out of my range of knowledge.
-------------------------------------------------

 
 


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

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