May 14, 2014, 8:33 AM
Post #4 of 4
Why are you declaring $wanted as a global? 99.99% of the time that is the wrong thing to do. You should declare it as a lexical var.
Re: [sh.ajay12] Get part of the string
[In reply to]
my ($wanted) = $link =~ /pages\/(.*)\.cfg/;
(This post was edited by FishMonger on May 14, 2014, 8:34 AM)