I remember reading somewhere that it's possible to pass arguments to a perl cgi script as such:
Yes. If a CGI script is called from a URL of the form:
then the path
/foo/bar will be available in the environment variable
If you're using CGI.pm, this is also available in
$q->path_info. If you're using mod_perl,
Apache2::RequestRec has the same method.