in reply to Re: how to find particular string and store in to variable
in thread how to find particular string and store in to variable

Why not use the module to its full potential?

use URI::URL; my $url = URI::URL->new( 'http://172.20.37.115:8080/se/1.0/provision/subscribers/198968'); my @paths = $url->path_segments; my $last = $paths[-1]; print "$last\n"; __END__ 198968

Replies are listed 'Best First'.
Re^3: how to find particular string and store in to variable
by karlgoethebier (Abbot) on Jun 25, 2015 at 19:43 UTC
    "Why not use the module to its full potential?"

    Good question. Let us assume that i didn't remember it ;-(

    Update: And thanks for this advice.

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»