.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "File::Spec::Native 3pm" .TH File::Spec::Native 3pm "2022-12-09" "perl v5.36.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" File::Spec::Native \- Use native OS implementation of File::Spec from a subclass .SH "VERSION" .IX Header "VERSION" version 1.004 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& # This serves little purpose on its own but can be useful in some situations \& \& # For example: \& use Path::Class 0.24; \& \& # convert foreign file type into native type \& # without having to know what the current OS is \& foreign_file(Win32 => $win32_path)\->as_foreign("Native"); \& \& # or to build a file\-spec dynamically (possibly taking the type from input): \& my $type = get_requested_file_spec(); # can return "Native" \& foreign_file($type => $file_path); \& \& # having $type be "Native" is an alternative to having to do: \& my $file = $type ? foreign_file($type, $file_path) : file($file_path); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module is a stupid hack to make the default File::Spec behavior available from a subclass. This can be useful when using another module that expects a subclass of File::Spec but you want to use the current, native \s-1OS\s0 format (automatically detected by File::Spec). .PP For example: \*(L"as_foreign\*(R" in Path::Class (as of version 0.24) allows you to translate a Path::Class object from one \s-1OS\s0 format to another. However, there is no way to specify that you want to translate the path into the current, native \s-1OS\s0 format without guessing at what that format is (which may include peeking into \f(CW@File::Spec::ISA\fR). .PP This module \f(CW@ISA\fR File::Spec. .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 File::Spec .IP "\(bu" 4 Path::Class .IP "\(bu" 4 .SH "SUPPORT" .IX Header "SUPPORT" .SS "Perldoc" .IX Subsection "Perldoc" You can find documentation for this module with the perldoc command. .PP .Vb 1 \& perldoc File::Spec::Native .Ve .SS "Websites" .IX Subsection "Websites" The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources. .IP "\(bu" 4 MetaCPAN .Sp A modern, open-source \s-1CPAN\s0 search engine, useful to view \s-1POD\s0 in \s-1HTML\s0 format. .Sp .SS "Bugs / Feature Requests" .IX Subsection "Bugs / Feature Requests" Please report any bugs or feature requests by email to \f(CW\*(C`bug\-file\-spec\-native at rt.cpan.org\*(C'\fR, or through the web interface at . You will be automatically notified of any progress on the request by the system. .SS "Source Code" .IX Subsection "Source Code" .PP .Vb 1 \& git clone https://github.com/rwstauner/File\-Spec\-Native.git .Ve .SH "AUTHOR" .IX Header "AUTHOR" Randy Stauner .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2011 by Randy Stauner. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.