Help for this page
my $uri; foreach ( ... ) { $uri.="$_/" if ( defined $_ && length($_) ) #omit undef and empties }
my @part = ( 'http://example.net/app', ... foreach (@parts) { $uri.="$_/" if ( defined $_ && length($_) ) #omit undef and empties }