Well I was sorta right and sorta wrong. Sorry 'bout that.
A little more food for the fire "." can match anything except (usually) a newline or null (Mastering Regular Expressions).
So I guess I'm real crunchy and tasty with mustard.
Use the shebang line on Win32 if you are doing something like
#! /usr/local/bin/perl -w
The Win32 version picks up the "command line" options that are present.
Well the "^" is the beginning anchor and "$" is the ending anchor, so m/^$/ will match only a null string - nothing between the beginning and the ending markers. And a "*" will match 0 (zero) or more occurrences of any character. So m/^*$/ is indeed any string...
I donwloaded the module and installed it.
It worked fine.
What version of perl are you using?
I put the pm file in \perl\site\lib\win32.
#!perl -w
use strict;
use Win32::DriveInfo;
my $type = Win32::DriveInfo::DriveType('a');
print "drive type is: $type\n";
output is
drive type...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.