File::CounterSS - Counter that used File::Storage::Stat


File-CounterSS documentation  | view source Contained in the File-CounterSS distribution.

Index


NAME

Top

File::CounterSS - Counter that used File::Storage::Stat

SYNOPSIS

Top

  use File::CounterSS;
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id'});#Id =~ m|^[a-zA-Z0-9\-\_\/]+$|
  my ($day, $total) = $c->count;

  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', type => 'last'});#'total' is default value of type
  my ($day, $yesterday) = $c->count;

  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'week'});'day' is default value of range
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'mon'});
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'year'});




  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'day', type => 'last'});
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'week', type => 'last'});
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'mon', type => 'last'});
  my $c = File::CounterSS->new({DirPath => 'dirpath', Id => 'id', range => 'year', type => 'last'});

DESCRIPTION

Top

counter with two kinds of values at the same time. the first value is counted according to hour, day, week, mon, year. the second value is the last count or a count of the total.

AUTHOR

Top

Kazuhiro Osawa <ko@yappo.ne.jp>

COPYRIGHT AND LICENSE

Top


File-CounterSS documentation  | view source Contained in the File-CounterSS distribution.