Skip to content

Instantly share code, notes, and snippets.

@xtetsuji
Created August 28, 2012 10:20
Show Gist options
  • Save xtetsuji/3496953 to your computer and use it in GitHub Desktop.
Save xtetsuji/3496953 to your computer and use it in GitHub Desktop.
Show almost every Apache2::Const having constants.
#!/usr/bin/env perl
# ogata 2012/08/28
# Show almost every Apache2::Const having constants.
use strict;
use warnings;
use Apache2::Const -compile => qw(
:cmd_how
:common
:config
:conn_keepalive
:context
:filter_type
:http
:input_mode
:log
:methods
:mpmq
:options
:override
:platform
:remotehost
:satisfy
:types
:proxy
);
for my $key ( sort keys %Apache2::Const:: ) {
print "$key => " . eval("Apache2::Const::$key") . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment