#!/usr/local/bin/perl -w use strict; use URI; my $url = 'http://www.example.com/foo/bar.pl?baz'; my $u1 = URI->new($url); my @seg = $u1->path_segments; print "file: $seg[-1] \n";
--
"I just read perlman:perlboot," said Tom, objectively.
naChoZ
In reply to Re: URL $ENV variables
by naChoZ
in thread URL $ENV variables
by bodmin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |