true has asked for the wisdom of the Perl Monks concerning the following question:
And here's the script which calls ModCounter.pm.package ModCounter; use Exporter; @ISA = qw(Exporter); use vars qw($cnt); @EXPORT_OK = qw(TotalRun); sub TotalRun{ $cnt++; return $cnt; } 1;
#!/usr/bin/perl -w use strict; print "Content-type:text/html\n\n"; use ModCounter; print "cnt=".ModCounter::TotalRun; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Persistent memory with mod_perl and a module.
by sauoq (Abbot) on Oct 19, 2002 at 00:21 UTC | |
|
Re: Persistent memory with mod_perl and a module.
by sharkey (Scribe) on Oct 19, 2002 at 17:17 UTC | |
by perrin (Chancellor) on Oct 19, 2002 at 18:50 UTC | |
|
Re: Persistent memory with mod_perl and a module.
by true (Pilgrim) on Oct 22, 2002 at 01:42 UTC | |
|
Re: Persistent memory with mod_perl and a module.
by true (Pilgrim) on Oct 28, 2002 at 03:59 UTC |