The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-14-2008
ejdv ejdv is offline
Registered User
 

Join Date: Nov 2007
Posts: 17
Question Determine string in Perl.

Hi,

I have a little Perl question.
I need to determine the last word in the following string:

h t t p://abc.def.com/hijklm

The output should be the string hijklm.

h t t p is of course http.
The string between the slashes always differs.
The string after the last slash always differs.

Any idea how to do this ?

Best regards,

ejdv
Reply With Quote
Forum Sponsor