use CGI; my $cgi = CGI->new(); my @path_params = split /\//, $cgi->path_info();