home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / Component.pm < prev    next >
Encoding:
Perl POD Document  |  2003-11-21  |  1.5 KB  |  61 lines

  1. # $Id: Component.pm,v 1.6 2003/11/21 05:08:25 rcaputo Exp $
  2. # Copyrights and documentation are after __end__.
  3.  
  4. package POE::Component;
  5.  
  6. use strict;
  7.  
  8. use vars qw($VERSION);
  9. $VERSION = do {my@r=(q$Revision: 1.6 $=~/\d+/g);sprintf"%d."."%04d"x$#r,@r};
  10.  
  11. use Carp qw(croak);
  12.  
  13. sub new {
  14.   my $type = shift;
  15.   croak "$type is not meant to be used directly";
  16. }
  17.  
  18. 1;
  19.  
  20. __END__
  21.  
  22. =head1 NAME
  23.  
  24. POE::Component - a POE servlet class
  25.  
  26. =head1 SYNOPSIS
  27.  
  28. Varies from component to component.
  29.  
  30. =head1 DESCRIPTION
  31.  
  32. POE components are event-driven modules, many of which act as little
  33. daemons that supply services to the programs they're parts of.  In
  34. general, they talk with other sessions by receiving and posting
  35. events, but this is not a formal convention.  A component's interface
  36. design should prefer to make sense; for example, an SMTP client should
  37. have a method to just "send a message" rather than (or in addition to)
  38. several others that deal with the intricacies of the SMTP protocol.
  39.  
  40. The POE::Component namespace was started as place for contributors to
  41. publish their POE-based modules without requiring coordination with
  42. the main POE distribution.
  43.  
  44. =head1 SEE ALSO
  45.  
  46. The SEE ALSO section in L<POE> contains a table of contents covering
  47. the entire POE distribution.
  48.  
  49. =head1 TO DO
  50.  
  51. Document the customary (but not mandatory!) process of creating and
  52. publishing a component.
  53.  
  54. =head1 AUTHORS & COPYRIGHTS
  55.  
  56. Each component is written and copyrighted by its author.
  57.  
  58. Please see L<POE> for more information about authors and contributors.
  59.  
  60. =cut
  61.