Parsing file name out of URL pathname

Darrell Berry (darrell@shrine.cyber.ad.jp)
Fri, 19 May 1995 23:34:31 +0900


The perl libwww routine wwwurl'parse returns the full pathname of the url,
but what is the best way to just get the _file_ name...


eg pathname is /~darrell/this.html
   filename is this.html

In particular, what patterns are acceptable for filenames? Can't believe
someone hasn't already added this.

------------------------------------------------------------------------------
 darrell berry              :                   i r i s / e
 darrell@shrine.cyber.ad.jp :  7-3-48-1 shinjuku shinjuku-ku tokyo 160 japan
..............................................................................
              http://shrine.cyber.ad.jp/~darrell/irise.html
------------------------------------------------------------------------------