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:
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
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;
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;
{
> "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
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'
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/
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
> "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>
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=
[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 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
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
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
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
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
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
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
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/
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"=>
"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
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
"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.
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
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
.--[ 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
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
> 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
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
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
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
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
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
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
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
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
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]
37 matches
Mail list logo