use CGI::Enurl qw(enurl); my $url = "http://$domain:2087/xml-api/$class?" . enurl({ user => $user, $function => 1});
If you need to you can encode even the $class but I would assume that one is safe. See CGI::Enurl.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Clean way to build URI's?
by Jenda
in thread Clean way to build URI's?
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |