On Sunday, June 2, 2002, at 04:44 , Zysman, Roiy wrote:
>> Hi all
>> how do i catch the last segment of a path and file name
>> for example i would like to catch only "test.gif" in /usr/src/test.gif or
>> from /usr/src/test1/../.../..../test.gif
well most of use would
use File::Basename;
$basename = basename($fullname,@suffixlist);
cf perldoc File::Basename
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
