# perl -le 'use URI; my $url = URI->new("http://www.example.com/app/xyz/123"); print $url->path;' /app/xyz/123