From: Andy Grundman Date: Tue, 13 Mar 2007 13:48:16 +0000 (+0000) Subject: It's silly to document constants, switched to 'use constant' to avoid this X-Git-Tag: 5.7099_04~227 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=333123efb5f595897f6b209de49b56e6587988c9 It's silly to document constants, switched to 'use constant' to avoid this --- diff --git a/lib/Catalyst/Engine/HTTP.pm b/lib/Catalyst/Engine/HTTP.pm index b8e50e7..b320a3d 100644 --- a/lib/Catalyst/Engine/HTTP.pm +++ b/lib/Catalyst/Engine/HTTP.pm @@ -16,9 +16,8 @@ use IO::Select (); require Catalyst::Engine::HTTP::Restarter; require Catalyst::Engine::HTTP::Restarter::Watcher; -sub CHUNKSIZE () { 64 * 1024 } - -sub DEBUG () { $ENV{CATALYST_HTTP_DEBUG} || 0 } +use constant CHUNKSIZE => 64 * 1024; +use constant DEBUG => $ENV{CATALYST_HTTP_DEBUG} || 0; =head1 NAME @@ -511,16 +510,6 @@ sub _socket_data { sub _inet_addr { unpack "N*", inet_aton( $_[0] ) } -=head1 CONSTANTS - -=head2 CHUNKSIZE - -How much data to read at once. This value is set to 64K. - -=head2 DEBUG - -Enables debugging via the environment variable CATALYST_HTTP_DEBUG. - =head1 SEE ALSO L, L.