You'll have to lc as appropriate but this covers path normalization pretty well.
use Path::Class; my @file =qw( C:\dir\file.pl C:/dir/file.pl C:\dir\File.PL ); for my $file ( @file ) { my $path = Path::Class::File->new($file); print $path->as_foreign("Win32")->absolute, $/; } # C:\dir\file.pl C:\dir\file.pl C:\dir\File.PL
In reply to Re: Unify windows filenames
by Anonymous Monk
in thread Unify windows filenames
by Sewi
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |