Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / 5.8.0 / File / Spec / Cygwin.pm
CommitLineData
86530b38
AT
1package File::Spec::Cygwin;
2
3use strict;
4use vars qw(@ISA $VERSION);
5require File::Spec::Unix;
6
7$VERSION = '1.0';
8
9@ISA = qw(File::Spec::Unix);
10
11sub canonpath {
12 my($self,$path) = @_;
13 $path =~ s|\\|/|g;
14 return $self->SUPER::canonpath($path);
15}
16
17sub file_name_is_absolute {
18 my ($self,$file) = @_;
19 return 1 if $file =~ m{^([a-z]:)?[\\/]}is; # C:/test
20 return $self->SUPER::file_name_is_absolute($file);
21}
22
231;
24__END__
25
26=head1 NAME
27
28File::Spec::Cygwin - methods for Cygwin file specs
29
30=head1 SYNOPSIS
31
32 require File::Spec::Cygwin; # Done internally by File::Spec if needed
33
34=head1 DESCRIPTION
35
36See File::Spec::Unix for a documentation of the methods provided
37there. This package overrides the implementation of these methods, not
38the semantics.
39
40This module is still in beta. Cygwin-knowledgeable folks are invited
41to offer patches and suggestions.