Parse::Path::File::Win32 - C:\Windows\file\path\support
my $path = Parse::Path->new(
path => 'C:\WINDOWS\SYSTEM32',
style => 'File::Win32',
This is a file-based path style for Windows paths. Some examples:
Arrays are, of course, not supported. Neither is quoting, as that is a product of the shell, not the path itself.
Absolute paths will contain a blank first step, a la Path::Class. Though, it is recommended to use is_absolute for checking for path relativity.
my $volume = $path->volume;
$path->volume(''); # removes the volume
Returns or sets the volume. This must be a single letter, or a blank string to remove it.
Volumes are automatically extracted and put into this attribute when passed as a path string. If transformed back into a string, it will show the volume again. Normalization will capitalize the volume, as there is no difference between C: and c:.
Though Windows isn't case-sensitive, it does support upper and lowercase letters. Thus, there is no logic to force case on the paths (except for volume), and is left as an exercise to the user.
UNC paths are not supported. This would be a different path style, anyway.
The project homepage is https://github.com/SineSwiper/Parse-Path/wiki.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Parse::Path/.
Brendan Byrd <email@example.com>
This software is Copyright (c) 2013 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Parse::Path, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.