Help for this page

Select Code to Download


  1. or download this
    my $split = join '/', split //, $id;
    substr($split, -2, 2, '');
    my $url = "$base_url/$split/$id/$id-h/$id-h.htm";
    
  2. or download this
    substr( ( my $split = join '/', split //, $id ), -2, 2, '');
    my $url = "$base_url/$split/$id/$id-h/$id-h.htm";
    
  3. or download this
    ( my $url = join '/', split //, $id ) =~
        s{(.*)/}{$base_url/$1/$id/$id-h/$id-h.htm}s;
    
  4. or download this
    my $url = join('/', 
        $base_url,
    ...
        "$id-h",
        "$id-h.htm"
    );