--- AnyEvent/lib/AnyEvent/Strict.pm 2008/07/09 11:00:02 1.4 +++ AnyEvent/lib/AnyEvent/Strict.pm 2008/07/09 11:53:40 1.5 @@ -1,10 +1,30 @@ -package AnyEvent::Strict; +=head1 NAME + +AnyEvent::Strict - force strict mode on for the whole process + +=head1 SYNOPSIS + + use AnyEvent::Strict; + # struct mode now switched on + +=head1 DESCRIPTION + +This module implements AnyEvent's strict mode. + +Loading it makes AnyEvent check all arguments to AnyEvent-methods, at the +expense of being slower (often the argument checking takes longer than the +actual fucntion). + +Normally, you don't load this module yourself but instead use it +indirectly via the C environment variable (see +L). However, this module can be loaded at any time. -# supply checks for argument validity for many functions -# this is an internal module. although it could be loaded -# at any time, this is not really documented. +=cut + +package AnyEvent::Strict; use Carp qw(croak); + use AnyEvent (); AnyEvent::post_detect { @@ -127,4 +147,12 @@ $class->SUPER::now (@_) } -1 +1; + +=head1 AUTHOR + + Marc Lehmann + http://home.schmorp.de/ + +=cut +