campbell paterson > File-SetSize > File::SetSize

Download:
File-SetSize-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.2   Source  

NAME ^

SetSize - Perl extension for reducing files from the top down

SYNOPSIS ^

  use File::SetSize;

DESCRIPTION ^

A very simple module to keep a file at set size by removing lines from the start of the file until the file is at the desired size. Ment created for apache logs.

usage

use File::SetSize;

$file_name = "/usr/local/apache/logs/access_log"; $keepatsize = 500; # in bytes

SetSize($file_name,$keepatsize);

AUTHOR ^

campbell paterson cam8chris@fastmail.com.au

SEE ALSO ^

perl(1).

syntax highlighting: