On Fri, 15 Nov 2002, Melanie Rouette wrote:

> Hi,
> I have something like: /usr/local/home/mel/file.txt and I'd like to 
> strip it so that I can put the path in a variable, the file name in 
> another one and the extention in a another one as well. How do I do 
> that, can I do it all in a same expression.  Something like, $path = 
> /usr/local/home/mel, $filename = file and finally $ext = txt.
> 
> Thanks in advance.
> Melanie

perldoc File::Basename
Comes with the standard distribution


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to