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

I need a module to return an array which contains a list of filenames in a specified directory on win32. Somthing like Meta::Utils::File::Dir on *nix perl, or the Dir class in ruby. I've mucked around aspn and only found a semi-functional Meta::Utils::File::Dir. Any idea on what I could do?
  • Comment on Equivalent of Meta::Utils::File::Dir on win32

Replies are listed 'Best First'.
Re: Equivalent of Meta::Utils::File::Dir on win32
by fglock (Vicar) on Jun 13, 2003 at 20:24 UTC

    File::DosGlob doesn't do everything Meta::Utils::File::Dir does, but it can be used to create an array:

    use File::DosGlob; @files = File::DosGlob::glob "c:*.*"; print "@files";
Re: Equivalent of Meta::Utils::File::Dir on win32
by Grygonos (Chaplain) on Jun 13, 2003 at 20:20 UTC
    disregard... i picked up my book and discovered readdir.... please forgive this post.(ie don't downvote me hehe)