tel2 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I'm trying to use (Merlyn's Basic Cookie Management) script, and it's working, but I have a some questions about it:1. Creates files under: /tmp/File::Cache, but I'm on a shared webhost, and I'd rather have them under my own local tmp dir, in /home/username/tmp/File::Cache. How can I change the code to use that path? I see CGI has a -path switch, but I tried inserting this line:
-path => '/home/username/tmp',
after line 14 of Merlyn's code, but cache files are still being created in /tmp/File::Cache, and I would have thought that File::Cache controls where they are placed, but I can't see how to change that path in File::Cache.
2. I notice that if the directory structure under /tmp/File::Cache exists, but there are no cache files created in it yet, I get this error when I run the code:
"Insecure dependency in chdir while running with -T switch at /usr/lib/perl5/5.8.8/File/Find.pm line 751."
How should I get around this error? I see that removing the "-T" switch from the shebang line avoids it, and changing from File::Cache to Cache::FileCache seems to also, but I'm wondering if there's a better way.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Merlyn's Basic Cookie Management (1)
by ELISHEVA (Prior) on Dec 20, 2010 at 08:49 UTC | |
|
Re: Merlyn's Basic Cookie Management (1)
by Khen1950fx (Canon) on Dec 20, 2010 at 08:34 UTC | |
by Your Mother (Archbishop) on Dec 20, 2010 at 14:42 UTC | |
|
Re: Merlyn's Basic Cookie Management (1)
by Anonyrnous Monk (Hermit) on Dec 20, 2010 at 09:35 UTC | |
|
Re: Merlyn's Basic Cookie Management (1)
by tel2 (Pilgrim) on Dec 23, 2010 at 00:09 UTC |