- or download this
my @part = (
'http://example.net/app',
...
);
my $uri = join '/', @part;
- or download this
my @part = map defined $_->[-1] ? $_->[0] : (),
['http://example.net/app' => 1],
['admin' => $is_admin_link],
[$subsite], [$mode => 1], [$id], [$submode];
- or download this
my @part = map +(ref) ? (defined $_->[-1] ? $_->[0] : ()) : $_,
'http://example.net/app',
['admin' => $is_admin_link],
[$subsite], $mode, [$id], [$submode];