in reply to GLOB & FILE

File::Spec is object-oriented, so you don't want to call subroutines directly. Instead call them as class methods:

File::Spec->catfile('a','b');

Replies are listed 'Best First'.
Re^2: GLOB & FILE
by Anonymous Monk on Aug 12, 2013 at 09:39 UTC

    File::Spec is object-oriented

    Not really :) It might be class-oriented though :)

    so you don't want to call subroutines directly

    You kind of do if you're using File::Spec::Functions

    OTOH, Path::Tiny has constructor path() with many methods :)