#!/usr/bin/perl use strict; use warnings; use URI; my $uri = URI->new( 'http://www.foo.com/asdf/blah/bar.html' ); print +($uri->path_segments)[-1];
Cheers - L~R
In reply to Re: Fetching last part of url
by Limbic~Region
in thread Fetching last part of url
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |