in reply to Re: Re: Re: Re: Re: Re: Getting the filename from full path name ?
in thread Getting the filename from full path name ?

there's the unix utility called basename,
And? Theres no such thing in Win32 nor a bunch of the other OS'es that Perl supports. Im sorry to be a bit snarky, but jusitfying a feature in perl by its existance in UNIX isnt actually a very helpful argument, Perl isnt UNIX and UNIX users arent even a majority in the community anymore.
Perl is deeply rooted in Unix. We have s/// (sed), tr, a2p, s2p, obscure function names like grep, and there's even basename, but only in a module which is not liked anymore.
  • Comment on Re: Re: Re: Re: Re: Re: Re: Getting the filename from full path name ?

Replies are listed 'Best First'.
Re^7: Getting the filename from full path name ?
by demerphq (Chancellor) on Apr 15, 2004 at 17:22 UTC

    Im aware that Perl is deeply rooted in Unix. And im happy about that. But that doesn't mean that there arent other better ways of doing things. One of those better things is that File::Spec has replaced File::Basename. :-) Which is about as OS agnostic as you get. Which is also a good thing. Portability++


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi