in reply to use File::Basename - need to specify OS?

From the docs:

"If you haven't called fileparse_set_fstype(), the syntax {that is, how the path is parsed} is chosen by examining the builtin variable $^O according to these rules."

$^O is the variable that contains the name of the operating system under which perl was built.

"these rules" can be found in the perldoc for File::Basename under fileparse_set_fstype.

  • Comment on Re: use File::Basename - need to specify OS?

Replies are listed 'Best First'.
Re: Re: use File::Basename - need to specify OS?
by halley (Prior) on Apr 21, 2004 at 13:05 UTC
    And if you're on a Un*x variety, backslashes in your path designators are not appropriate. Thus, your "DOS"-style pathnames are not going to get parsed correctly unless you override your fileparse_set_fstype().

    --
    [ e d @ h a l l e y . c c ]