⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file::spec::mac.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...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" '''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 turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "File::Spec::Mac 3".TH File::Spec::Mac 3 "2008-01-23" "perl v5.10.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::Mac \- File::Spec for Mac OS (Classic).SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\& require File::Spec::Mac; # Done internally by File::Spec if needed.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"Methods for manipulating file specifications..SH "METHODS".IX Header "METHODS".IP "canonpath" 2.IX Item "canonpath"On Mac \s-1OS\s0, there's nothing to be done. Returns what it's given..IP "\fIcatdir()\fR" 2.IX Item "catdir()"Concatenate two or more directory names to form a path separated by colons(\*(L":\*(R") ending with a directory. Resulting paths are \fBrelative\fR by default,but can be forced to be absolute (but avoid this, see below). Automaticallyputs a trailing \*(L":\*(R" on the end of the complete path, because that's what'sdone in MacPerl's environment and helps to distinguish a file path from adirectory path..Sp\&\fB\s-1IMPORTANT\s0 \s-1NOTE:\s0\fR Beginning with version 1.3 of this module, the resultingpath is relative by default and \fInot\fR absolute. This decision was made dueto portability reasons. Since \f(CW\*(C`File::Spec\->catdir()\*(C'\fR returns relative pathson all other operating systems, it will now also follow this convention on Mac\&\s-1OS\s0. Note that this may break some existing scripts..SpThe intended purpose of this routine is to concatenate \fIdirectory names\fR.But because of the nature of Macintosh paths, some additional possibilitiesare allowed to make using this routine give reasonable results for somecommon situations. In other words, you are also allowed to concatenate\&\fIpaths\fR instead of directory names (strictly speaking, a string like \*(L":a\*(R"is a path, but not a name, since it contains a punctuation character \*(L":\*(R")..SpSo, beside calls like.Sp.Vb 3\&    catdir("a") = ":a:"\&    catdir("a","b") = ":a:b:"\&    catdir() = ""                    (special case).Ve.Spcalls like the following.Sp.Vb 5\&    catdir(":a:") = ":a:"\&    catdir(":a","b") = ":a:b:"\&    catdir(":a:","b") = ":a:b:"\&    catdir(":a:",":b:") = ":a:b:"\&    catdir(":") = ":".Ve.Spare allowed..SpHere are the rules that are used in \f(CW\*(C`catdir()\*(C'\fR; note that we try to be ascompatible as possible to Unix:.RS 2.IP "1." 2The resulting path is relative by default, i.e. the resulting path will have aleading colon..IP "2." 2A trailing colon is added automatically to the resulting path, to denote adirectory..IP "3." 2Generally, each argument has one leading \*(L":\*(R" and one trailing \*(L":\*(R"removed (if any). They are then joined together by a \*(L":\*(R". Specialtreatment applies for arguments denoting updir paths like \*(L"::lib:\*(R",see (4), or arguments consisting solely of colons (\*(L"colon paths\*(R"),see (5)..IP "4." 2When an updir path like \*(L":::lib::\*(R" is passed as argument, the numberof directories to climb up is handled correctly, not removing leadingor trailing colons when necessary. E.g..Sp.Vb 2\&    catdir(":::a","::b","c")    = ":::a::b:c:"\&    catdir(":::a::","::b","c")  = ":::a:::b:c:".Ve.IP "5." 2Adding a colon \*(L":\*(R" or empty string "" to a path at \fIany\fR positiondoesn't alter the path, i.e. these arguments are ignored. (When a "\*(L"is passed as the first argument, it has a special meaning, see(6)). This way, a colon \*(R":\*(L" is handled like a \*(R".\*(L" (curdir) on Unix,while an empty string \*(R"" is generally ignored (see\&\f(CW\*(C`Unix\->canonpath()\*(C'\fR ). Likewise, a \*(L"::\*(R" is handled like a \*(L"..\*(R"(updir), and a \*(L":::\*(R" is handled like a \*(L"../..\*(R" etc.  E.g..Sp.Vb 2\&    catdir("a",":",":","b")   = ":a:b:"\&    catdir("a",":","::",":b") = ":a::b:".Ve.IP "6." 2If the first argument is an empty string "" or is a volume name, i.e. matchesthe pattern /^[^:]+:/, the resulting path is \fBabsolute\fR..IP "7." 2Passing an empty string "" as the first argument to \f(CW\*(C`catdir()\*(C'\fR islike passing\f(CW\*(C`File::Spec\->rootdir()\*(C'\fR as the first argument, i.e..Sp.Vb 1\&    catdir("","a","b")          is the same as\&\&    catdir(rootdir(),"a","b")..Ve.SpThis is true on Unix, where \f(CW\*(C`catdir("","a","b")\*(C'\fR yields \*(L"/a/b\*(R" and\&\f(CW\*(C`rootdir()\*(C'\fR is \*(L"/\*(R". Note that \f(CW\*(C`rootdir()\*(C'\fR on Mac \s-1OS\s0 is the startupvolume, which is the closest in concept to Unix' \*(L"/\*(R". This should helpto run existing scripts originally written for Unix..IP "8." 2For absolute paths, some cleanup is done, to ensure that the volumename isn't immediately followed by updirs. This is invalid, becausethis would go beyond \*(L"root\*(R". Generally, these cases are handled liketheir Unix counterparts:.Sp.Vb 10\& Unix:\&    Unix\->catdir("","")                 =  "/"\&    Unix\->catdir("",".")                =  "/"\&    Unix\->catdir("","..")               =  "/"              # can\*(Aqt go beyond root\&    Unix\->catdir("",".","..","..","a")  =  "/a"\& Mac:\&    Mac\->catdir("","")                  =  rootdir()         # (e.g. "HD:")\&    Mac\->catdir("",":")                 =  rootdir()\&    Mac\->catdir("","::")                =  rootdir()         # can\*(Aqt go beyond root\&    Mac\->catdir("",":","::","::","a")   =  rootdir() . "a:"  # (e.g. "HD:a:").Ve

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -