perl-CGI-Easy-URLconf-2.0.1-alt1 P > @ , 0 c9b5a5c4d6522364d90b713ab11a68c80656d8da @-Z_p > 0 ? d # N # C T s ( 8 @ D p K ( V 8 \ 9 h : A k F r G H I \ ] ^ d e f C perl-CGI-Easy-URLconf 2.0.1 alt1 map url path to handler sub and vice versa This module provide support for clean, user-friendly URLs. This can be archived by configuring web server to run your CGI/FastCGI script for any url requested by user, and let you manually dispatch different urls to corresponding handlers (subroutines). Additionally, you can take some CGI parameters from url's path instead of usual GET parameters. The idea is to set rules when CGI/FastCGI starts using: a) setup_path() - to map url's path to handler subroutine (also called "view") b) setup_view() - to map handler subroutine to url and then use: a) path2view() - to get handler subroutine matching current url's path b) view2path() - to get url matching some handler subroutine (for inserting into HTML templates or sending redirects). Example: setup_path( '/articles/' => \&list_articles, '/articles.php' => \&list_articles, '/index.php' => \&show_home_page, ); setup_path( POST => '/articles/' => \&add_new_article, ); my $r = CGI::Easy::Request->new(); my $handler = path2view($r); setup_view( \&list_articles => '/articles/', ); printf 'Articles', view2path(\&list_articles); printf '