NAME Net::Spooler - A Perl extension for writing spooling daemons SYNOPSIS # Create a subclass of Net::Spooler use Net::Spooler; package MySpooler; @MySpooler::ISA = qw(Net::Spooler); # Inherit everything, except a single method: sub ProcessFile { my $self = shift; my $file = shift; # Try to process the file here ... # Raise an exception, if something went wrong: die "Failed: $!" unless Something(); # Return to indicate sucess. } # Create and run the spooler package main; my $spooler = Net::Spooler->new( 'spool-dir' => '/var/myspooler' ); $spooler->Bind(); DESCRIPTION This package contains a spooling daemon, in other words a process, that accepts files from an outside source (currently a Unix or TCP/IP socket), stores them in a spooling directory and processes them. The package is implemented as an abstract base class: It is not usefull in itself, but you can get your spooling daemon easily by deriving a concrete subclass from `Net::Spooler'. In the best case you can inherit everything and overwrite just a single method, the *ProcessFile* method, which attempts to process a single file from the spooling directory. `Net::Spooler' is in turn derived from the `Net::Daemon' package, thus it borrows class design, in particular methods and attributes, from `Net::Daemon'. See the Net::Daemon manpage for details on this superclass. However, there are a few additions to `Net::Daemon': Attributes Like in `Net::Daemon', attributes can be set via the command line, in the config file or as constructor arguments (order descending from most important). And remember, that you can use the `Net::Daemon' attributes too! See the Net::Daemon manpage. *admin* (B<--admin=) The administrators email address. From time to time it may happen, that the admin receives an email in case of problems. *expiretime* (--expiretime=