in reply to Re^2: URI plus File::Spec::Unix -- good idea or bad?
in thread URI plus File::Spec::Unix -- good idea or bad?

Slightly less clumsy?
$uri->path( $uri->path .( $uri->path =~ m{/$} ? '' : '/' ) .'index.html' );