Hi List,
Perl in WSH has got a grip on me lately, but I'm making
a little progress.
Using Win95 Osr2 and PERL build 517
IE 4.01 sp2 and WSH2-V 5.1 Script Engines
Looking through Find.pm(5-9-99), I was able to get
error messages by changing
warn "blah blah" to $main::WScript->echo()
The following line is causing the trouble in WSH...
# snip Find.pm line 145
opendir(DIR,'.') ||
($main::WScript->echo("Can't open $dir: $!\n"), $bydepth || return);
my(@filenames) = readdir(DIR);
closedir(DIR);
# end snip
Current Directory?
The string '.' is not recognized in WSH launched scripts and Find.pm returns
without even starting to process the directory.
If I change it to $dir, then it works without recursing through sub
directories.
Whats next?
TIA , Mark
ICQ 64329574
---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]