Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!barn From: barn@convex.com (Tim Barney) Newsgroups: comp.lang.perl Subject: path truncation quest Summary: How to take last component off path? Keywords: path,truncation Message-ID: <1991Mar21.010547.13331@convex.com> Date: 21 Mar 91 01:05:47 GMT Sender: barn@convex.com Organization: Convex Computer Corporation, Richardson, Tx. Lines: 8 Nntp-Posting-Host: convex1.convex.com Any suggestions on how, given the argument "/directory/sub/100.host.0" that one could take off the "100.host.0" component, leaving "/directory/sub" ? I've thought of splitting it and just taking the first 2 components, but there could be any number of directory levels. tim_