Subject: | Hard-coded forward slashes do not work on Windows |
Module: AuthDBIC 0.12
Perl: ActivePerl 5.8.9 Build 827
OS: Windows (XP and Vista)
Line 101 in AuthDBIC-0.12 uses hard-coded forward slashes in the
command sent to 'system'. This fails on Windows, which requires
backslashes.
You could set and use a variable with the appropriate slash using
an 'if' statement like this:
my $slash;
if ($^O eq 'MSWin32') {
$slash = "\\";
} else{
$slash = "/";
}
Thanks,
Roy Fulbright
P.S. I'm working my way through your book. Good job!