# Some shared sub routines
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-02-12
+# Last modified: 2005-02-13
#
use strict;
my $path = shift;
$path =~ tr!\\!/!;
- unless($path =~ m!^/+$! || ($^O eq 'MSWin32' && $path =~ m!^[a-z]:/+$!))
+ unless($path =~ m!^/+$! || ($^O eq 'MSWin32' && $path =~ m!^[a-z]:/+$!i))
{
$path =~ s!/+$!!;
$path = substr($path,rindex($path,'/')+1);
my $path = shift;
$path =~ tr!\\!/!;
- unless($path =~ m!^/+$! || ($^O eq 'MSWin32' && $path =~ m!^[a-z]:/+$!))
+ unless($path =~ m!^/+$! || ($^O eq 'MSWin32' && $path =~ m!^[a-z]:/+$!i))
{
$path =~ s!/+$!!;
$path = substr($path,0,rindex($path,'/')+1);