Re: Cache::*

2016-02-20 Thread lee
Chris Knipe writes: > Hi, > > Are there any Cache::* modules that are thread safe and can be used with > Threading? > > Using Cache::Memory (even specifying the same NameSpace), two or more > threads can't access the same keys in the cache, > > Using Cache:

Cache::*

2016-02-18 Thread Chris Knipe
Hi, Are there any Cache::* modules that are thread safe and can be used with Threading? Using Cache::Memory (even specifying the same NameSpace), two or more threads can't access the same keys in the cache, Using Cache::File, there are issues with the indexes (documented too under Ca

Re: how to clear the cache inside the module use Math::Combinatorics;

2011-06-08 Thread Rob
On 06/06/2011 05:06, eventual wrote: > Hi, > Looking at the combination script below, what must I do so that the output of > Round 1, Round 2 and Round 3 are identical. > Thanks. > > # script below ### > > #!/usr/bin/perl > use strict; > use warnings; > use Math::Combinatorics;

how to clear the cache inside the module use Math::Combinatorics;

2011-06-05 Thread eventual
Hi, Looking at the combination script below, what must I do so that the output of Round 1, Round 2 and Round 3 are identical. Thanks.   # script below ###    #!/usr/bin/perl use strict; use warnings; use Math::Combinatorics; {

Re: cache and the interpreter

2011-05-06 Thread Uri Guttman
> "MM" == Mike McClain writes: >> INIT { MM> This is the solution I needed. MM> Absolutely a big help. MM> Not only did you supply an explanation but a solution. MM> Best answer possible. not to rain on your parade but from your point of view INIT and BEGIN are the same thing. th

Re: cache and the interpreter

2011-05-06 Thread Mike McClain
On Fri, May 06, 2011 at 08:16:14AM +0100, Rob Dixon wrote: > On 06/05/2011 01:21, Mike McClain wrote: > > > > Here's a simple example that illustrates the problem I've run into: > As Uri says, initialising variables at the point of declaration is done > at run time. This is from 'Programming Perl'

Re: cache and the interpreter

2011-05-06 Thread Dr.Ruud
On 2011-05-06 02:21, Mike McClain wrote: $fibs[$#fibs+1] = 2; push @fibs, 2; -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: cache and the interpreter

2011-05-06 Thread Rob Dixon
On 06/05/2011 01:21, Mike McClain wrote: > > Here's a simple example that illustrates the problem I've run into: > > perl -le' > show(); > { my @fibs = (0,1,1); my ($x, $y) = (1,2); > sub show > { print "x=$x\ty=$y\t\$#fibs=$#fibs\tfibs=@fibs\tscalar \@fibs = ", > scalar

Re: cache and the interpreter

2011-05-05 Thread Uri Guttman
> "MM" == Mike McClain writes: MM> Here's a simple example that illustrates the problem I've run into: MM> perl -le' MM> show(); MM> { my @fibs = (0,1,1); my ($x, $y) = (1,2); MM> sub show MM> { print "x=$x\ty=$y\t\$#fibs=$#fibs\tfibs=@fibs\tscalar \@fibs = ", MM>

cache and the interpreter

2011-05-05 Thread Mike McClain
Here's a simple example that illustrates the problem I've run into: perl -le' show(); { my @fibs = (0,1,1); my ($x, $y) = (1,2); sub show { print "x=$x\ty=$y\t\$#fibs=$#fibs\tfibs=@fibs\tscalar \@fibs = ", scalar @fibs; }; $fibs[$#fibs+1] = 2; } show(); ' x= y=

Re: Cache::FastMmap

2008-10-06 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: > i keep on getting this error in httpd log when i run a perl script > which uses cache::fastmmap Does it actually use cache::fastmmap, or Cache::FastMmap? -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Cache::FastMmap

2008-10-06 Thread [EMAIL PROTECTED]
Cache::FastMmap does not support threads sorry at /usr/lib/perl5/ site_perl/5.8.5/i386-linux-thread-multi/Cache/FastMmap.pm line 1134 hi all, i keep on getting this error in httpd log when i run a perl script which uses cache::fastmmap how can i rectify this and run script successfully i

Re: Random Image and Cache problem

2007-09-03 Thread Dr.Ruud
Carl Miller schreef: > The other website would call the perl script in an tag, like so: > > http://www.my_site.com/cgi-bin/random_banner.cgi"; > width="468" height="60"> > > I've tried several perl scripts that basically work, but the problem > is always the same with all of them: the browser alw

Re: Random Image and Cache problem

2007-09-03 Thread Mumia W.
On 09/03/2007 10:06 AM, Carl Miller wrote: Thanks Gunnar and Mumia. I figured out that the problem is unique to Internet Explorer. The three other browsers I tried don't have this problem. But I can't get IE to not cache. I've tried these: print "Cache-Control: no

Re: Random Image and Cache problem

2007-09-03 Thread Tom Phoenix
On 9/3/07, Carl Miller <[EMAIL PROTECTED]> wrote: > I figured out that the problem is unique to Internet Explorer. The three > other browsers I tried don't have this problem. But I can't get IE to not > cache. > Can anyone give some insight into where the problem

Re: Random Image and Cache problem

2007-09-03 Thread Carl Miller
Thanks Gunnar and Mumia. I figured out that the problem is unique to Internet Explorer. The three other browsers I tried don't have this problem. But I can't get IE to not cache. I've tried these: print "Cache-Control: no-cache\n"; print "Pragma: no-cache

Re: Random Image and Cache problem

2007-09-02 Thread Mumia W.
way to see a different banner is to hit Reload/Refresh. Is there a script out there that avoids the cache problem in displaying random banners via an tag? Thanks! Use a "Cache-control" header that specifies "no-cache" and use an Expires header that uses a date in the p

Re: Random Image and Cache problem

2007-09-02 Thread Gunnar Hjalmarsson
is to hit Reload/Refresh. Is there a script out there that avoids the cache problem in displaying random banners via an tag? Let the script print a couple of no-cache CGI headers: print "Cache-Control: no-cache\n"; print "Pragma: no-cache\n"; # for HTTP/1.0 -- Gunn

Random Image and Cache problem

2007-09-02 Thread Carl Miller
sh. Is there a script out there that avoids the cache problem in displaying random banners via an tag? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

printing 2 Cache-Control header using CGI.pm

2004-11-10 Thread victor
I would like to print out these header using CGI.pm Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 doing $cgi->header(-"Cache-Control"=>"no-store, no-cache, must-revalidate", -"Cache-Control"=>

Re: Cache::Filecache Question

2004-03-05 Thread R. Joseph Newton
"Michael C. Davis" wrote: > At 09:58 PM 3/4/04 -0800, R. Joseph Newton wrote: > >If you are using the Cache::FileCache package, the package-level functions > >exorted by the package are available to you. Any object blessed into this > >package will have acces

Re: Cache::Filecache Question

2004-03-05 Thread Michael C. Davis
At 09:58 PM 3/4/04 -0800, R. Joseph Newton wrote: >If you are using the Cache::FileCache package, the package-level functions >exorted by the package are available to you. Any object blessed into this >package will have access to all methods defined in the package. Remember that >an

Re: Cache::Filecache Question

2004-03-04 Thread R. Joseph Newton
"Michael C. Davis" wrote: > Hi, I'm having trouble finding much documentation of namespaces as used > with Cache::FileCache. I've read the CPAN page and it doesn't say much > about that particular issue. Could anyone point me to anything more > explanatory.

Cache::Filecache Question

2004-03-04 Thread Michael C. Davis
Hi, I'm having trouble finding much documentation of namespaces as used with Cache::FileCache. I've read the CPAN page and it doesn't say much about that particular issue. Could anyone point me to anything more explanatory. My particular interest is in the relation betwee

Cache problem

2003-06-04 Thread Pierre-Alain Prongué
Hi all, I have the following problem with an appilcation which use the Cache::FileCache module. The application has stopped to work after a full disk situation. The following error message appear in the log file of my Apache web server (on RedHat): Magic number checking on storable string

Re: File::Find cache?

2002-11-11 Thread Frank Wiles
.--[ Fogle Cpl Shawn B wrote (2002/11/12 at 04:20:58) ]-- | | Does File::Find cache itself to memory even after the script has been | completed? I've put a script together that is going to find ~1785 files in | 30 directories.. | | The First time I try my script

File::Find cache?

2002-11-11 Thread Fogle Cpl Shawn B
Does File::Find cache itself to memory even after the script has been completed? I've put a script together that is going to find ~1785 files in 30 directories.. The First time I try my script after computer's turned on... real0m14.972s user0m0.410s sys 0m0.270s and the s

RE: Maintaining a Cache of Hash References

2002-01-16 Thread Tomasi, Chuck
> From: Frank [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 15, 2002 11:59 AM > To: '[EMAIL PROTECTED]' > Subject: Re: Maintaining a Cache of Hash References > > > On Tue, Jan 15, 2002 at 11:41:28AM -0600, Tomasi, wrote: > > I'm trying to maintai

RE: Maintaining a Cache of Hash References

2002-01-16 Thread Tomasi, Chuck
odify the > corresponding element in @_: > > $_[1] = $UserCache[$id]; Tried it, didn't work. When the select from the database is made, and populates $user->{FieldName}, I'm populating "$user", not $_[1], so why would I have to operate any differently when refer

Re: Maintaining a Cache of Hash References

2002-01-15 Thread Frank
On Tue, Jan 15, 2002 at 11:41:28AM -0600, Tomasi, wrote: > I'm trying to maintain a cache of hashes to reduce database hits. What I > want is to determine if I've retrieved the data from the DB before, if so, > just pass back the copy of information used last time, otherwise

Re: Maintaining a Cache of Hash References

2002-01-15 Thread Jeff 'japhy' Pinyan
On Jan 15, Tomasi, Chuck said: >I'm trying to maintain a cache of hashes to reduce database hits. What I >want is to determine if I've retrieved the data from the DB before, if so, >just pass back the copy of information used last time, otherwise read it >from the DB and

Maintaining a Cache of Hash References

2002-01-15 Thread Tomasi, Chuck
I'm trying to maintain a cache of hashes to reduce database hits. What I want is to determine if I've retrieved the data from the DB before, if so, just pass back the copy of information used last time, otherwise read it from the DB and make a note of it. It would seem I'm

Re: get & cache

2001-09-21 Thread Michael Fowler
On Fri, Sep 21, 2001 at 02:25:01PM -0400, Cohan, Drew wrote: > I wasn't sure if LWP::Simple did any caching since there wasn't any mention > of it in perldoc LWP::Simple. In general, can I assume that an omission of > a feature related to a function means that it doesn't exist? I would, yes. Th

RE: get & cache

2001-09-21 Thread Cohan, Drew
ED] Subject: Re: get & cache On Thu, Sep 20, 2001 at 08:43:49AM -0400, Cohan, Drew wrote: > offhand does anybody know if get ($url) does any sort of cacheing of the > contents of the url? if it does, how do you turn cacheing off? What get() are you referring to? LWP::Simple::get? L

Re: get & cache

2001-09-21 Thread Michael Fowler
On Thu, Sep 20, 2001 at 08:43:49AM -0400, Cohan, Drew wrote: > offhand does anybody know if get ($url) does any sort of cacheing of the > contents of the url? if it does, how do you turn cacheing off? What get() are you referring to? LWP::Simple::get? LWP::Simple::get doesn't do any caching; i

Re: get & cache

2001-09-21 Thread walter valenti
No, get($url) does'nt cache. Walter > hi, > > offhand does anybody know if get ($url) does any sort of cacheing of the > contents of the url? if it does, how do you turn cacheing off? > > thanks, > > -- drew > [EMAIL PROTECTED] > > -- > To uns

get & cache

2001-09-20 Thread Cohan, Drew
hi, offhand does anybody know if get ($url) does any sort of cacheing of the contents of the url? if it does, how do you turn cacheing off? thanks, -- drew [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]