NT glob() equivalent?

Just been dragged kicking and screaming into the NT world from the UNIX environment. First script I tried to write gave me an error when trying to use the glob() function. Does NT/Perl have another equivalent function for glob()? Error I get is "The name specified is not recognized as an internal or external command, operable program or batch file.".

Also, does anyone know a good website that specifies the differences between UNIX and NT Perl, or a site with a good NT Perl Tutorial?
snazzyragsAsked:
Who is Participating?
 
Kim RyanConnect With a Mentor IT ConsultantCommented:
In Perl for Windows, filename globbing is implemented by means of another program, called PerlGlob.exe, which should be in your search path. It should live in the same place as your Perl executables.

For a list of Windows incompatabilities:

http://www.activestate.com/ActivePerl/docs/Perl-Win32/perlwin32faq5.html#How_do_I_make_a_UNIX_based_scrip 
 
0
 
Kim RyanIT ConsultantCommented:
In Perl for Windows, filename globbing is implemented by means of another program, called PerlGlob.exe, which should be in your search path. It should live in the same place as your Perl executables.

For a list of Windows incompatabilities:

http://www.activestate.com/ActivePerl/docs/Perl-Win32/perlwin32faq5.html#How_do_I_make_a_UNIX_based_scrip
0
 
alamoCommented:
Look at File::DosGlob which implements glob() for DOS filesystems. It also can optionally be set up so that you don't have to modify every instance of glob() in an existing script, just use File::DosGlob 'glob';
0
 
snazzyragsAuthor Commented:
PerlGlob.exe is not installed on our NT Server. This could be an installation problem - we did not install Perl (our application vendor did it). However, I was able to work around the problem with opendir(), readdir() and closedir(). Thanks for the response, anyways.
- Doug
0
All Courses

From novice to tech pro — start learning today.