use Apache; # path_info will contain a leading slash. You might want to get # rid of trailing slashes too ... YMMV (my $path = Apache->request->path_info) =~ s#^/##; my %param = split /[\/=]/, $path; print "$param{variablea}:$param{variableb}"; # 3892:"test"