Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What is the easiest way to concat dir, file and ext in a OS-independent way (also the opposite of fileparse)? Regards, Klaus

Replies are listed 'Best First'.
Re: opposite of fileparse
by davorg (Chancellor) on Nov 08, 2001 at 21:19 UTC

    You might find the File::Spec module to be useful.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you don't talk about Perl club."

      And you might find links to the module (File::Spec), our local copy of its documentation (File::Spec), and my review of it (File::Spec) useful.

              - tye (but my friends call me "Tye")