Title: Message
Try File::Basename and you won't have to reinvent the wheel.
-----Original Message-----
From: Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: perl-win32-users - Best way to return a path to a file ?
Importance: Low

Hi,
 
I have just started to code up a subroutine to return the path only from a complete path to a file. This must the the 3rd time in two months as I have mislaid the routine on my HD and searching for it would probably take longer than the coding.
 
When writing this routine, I always seem to take the long way round and this got my curiosity going and wondering what other solutions people have come up with that are more elegant and obvious than my own.
 
I find many times that looking at someone elses code can provide an "aha" moment that last far beyong the snippet involved.
 
If anyone cares to share their code for this - that would be cool. If not - thats cool too. I am gonna head back to the editor and throw it together - again ;-) and I'll post it later so we can flame it in a public display of humiliation ;-)
 
Neil

Reply via email to