in reply to Re^3: glob: where are the full paths?
in thread glob: where are the full paths?

Hi,

My book mentions legacy code may contain that syntax--even though it it used to be inefficient because it caused a separate process to start up. I find that I don't have to import ':glob' (or anything else from File::Glob) for that syntax to work.

Thanks.

Replies are listed 'Best First'.
Re^5: glob: where are the full paths?
by Marshall (Canon) on Nov 14, 2009 at 10:59 UTC
    I've written code in various flavors that use 3 different types of "glob". My experience with this is that: "friends don't tell other friends to glob"! I am quite sure that your program with the default glob works in your test cases, on your Operating System. You presented the most simple case of "give me all files in the directory that my program is running in". Some Monks figure that POSIX glob is the way to go. I've run into platform and Perl version problems with that. I figure that no glob is the way to go.

    because it caused a separate process to start up.No. A Perl "use" statement doesn't cause that to happen.