Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        my $uri = ('URI'->new($string)->path_segments)[-1];
        is $uri, $expect{$string};
    }