Help for this page

Select Code to Download


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