source: vendor/perl/5.8.8/lib/File/Spec/Cygwin.pm@ 3181

Last change on this file since 3181 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 1.7 KB
Line 
1package File::Spec::Cygwin;
2
3use strict;
4use vars qw(@ISA $VERSION);
5require File::Spec::Unix;
6
7$VERSION = '1.1';
8
9@ISA = qw(File::Spec::Unix);
10
11=head1 NAME
12
13File::Spec::Cygwin - methods for Cygwin file specs
14
15=head1 SYNOPSIS
16
17 require File::Spec::Cygwin; # Done internally by File::Spec if needed
18
19=head1 DESCRIPTION
20
21See L<File::Spec> and L<File::Spec::Unix>. This package overrides the
22implementation of these methods, not the semantics.
23
24This module is still in beta. Cygwin-knowledgeable folks are invited
25to offer patches and suggestions.
26
27=cut
28
29=pod
30
31=over 4
32
33=item canonpath
34
35Any C<\> (backslashes) are converted to C</> (forward slashes),
36and then File::Spec::Unix canonpath() is called on the result.
37
38=cut
39
40sub canonpath {
41 my($self,$path) = @_;
42 $path =~ s|\\|/|g;
43 return $self->SUPER::canonpath($path);
44}
45