Keep It Simple, Stupid | |
PerlMonks |
Extracting Page Nameby JimStone (Initiate) |
on Apr 26, 2012 at 23:01 UTC ( [id://967484]=perlquestion: print w/replies, xml ) | Need Help?? |
JimStone has asked for the wisdom of the Perl Monks concerning the following question:
I am new to Perl, am trying to write a simple program but am running into problems trying to grab a page name from a string that is a URl. In other words, for example a URL http://www.myspace/myplace/db/gladtidings.shtml in $url.
I want to extract just the gladtidings.shtml into another string $pagename. And would like it to work on any URL. I know it's something simple I'm missing but at am a loss right now. Any help would be greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|