📄 perlos2.1
字号:
.\" 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 "PERLOS2 1".TH PERLOS2 1 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" 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"perlos2 \- Perl under OS/2, DOS, Win0.3*, Win0.95 and WinNT..SH "SYNOPSIS".IX Header "SYNOPSIS"One can read this document in the following formats:.PP.Vb 4\& man perlos2\& view perl perlos2\& explorer perlos2.html\& info perlos2.Ve.PPto list some (not all may be available simultaneously), or it maybe read \fIas is\fR: either as \fI\s-1README\s0.os2\fR, or \fIpod/perlos2.pod\fR..PPTo read the \fI.INF\fR version of documentation (\fBvery\fR recommended)outside of \s-1OS/2\s0, one needs an \s-1IBM\s0's reader (may be available on \s-1IBM\s0ftp sites (?) (\s-1URL\s0 anyone?)) or shipped with \s-1PC\s0 \s-1DOS\s0 7.0 and \s-1IBM\s0'sVisual Age \*(C+ 3.5..PPA copy of a Win* viewer is contained in the \*(L"Just add \s-1OS/2\s0 Warp\*(R" package.PP.Vb 1\& ftp://ftp.software.ibm.com/ps/products/os2/tools/jaow/jaow.zip.Ve.PPin \fI?:\eJUST_ADD\eview.exe\fR. This gives one an access to \s-1EMX\s0's \&\fI.INF\fR docs as well (text form is available in \fI/emx/doc\fR in \&\s-1EMX\s0's distribution). There is also a different viewer named xview..PPNote that if you have \fIlynx.exe\fR or \fInetscape.exe\fR installed, you can follow \s-1WWW\s0 linksfrom this document in \fI.INF\fR format. If you have \s-1EMX\s0 docs installed correctly, you can follow library links (you need to have \f(CW\*(C`view emxbook\*(C'\fRworking by setting \f(CW\*(C`EMXBOOK\*(C'\fR environment variable as it is describedin \s-1EMX\s0 docs)..SH "DESCRIPTION".IX Header "DESCRIPTION".Sh "Target".IX Subsection "Target"The target is to make \s-1OS/2\s0 one of the best supported platform forusing/building/developing Perl and \fIPerl applications\fR, as well asmake Perl the best language to use under \s-1OS/2\s0. The secondary target isto try to make this work under \s-1DOS\s0 and Win* as well (but not \fBtoo\fR hard)..PPThe current state is quite close to this target. Known limitations:.IP "\(bu" 5Some *nix programs use \fIfork()\fR a lot; with the mostly useful flavors ofperl for \s-1OS/2\s0 (there are several built simultaneously) this issupported; but some flavors do not support this (e.g., when Perl iscalled from inside \s-1REXX\s0). Using \fIfork()\fR after\&\fIuse\fRing dynamically loading extensions would not work with \fIvery\fR oldversions of \s-1EMX\s0..IP "\(bu" 5You need a separate perl executable \fIperl_\|_.exe\fR (see perl_\|_.exe)if you want to use \s-1PM\s0 code in your application (as Perl/Tk or OpenGLPerl modules do) without having a text-mode window present..SpWhile using the standard \fIperl.exe\fR from a text-mode window is possibletoo, I have seen cases when this causes degradation of the system stability.Using \fIperl_\|_.exe\fR avoids such a degradation..IP "\(bu" 5There is no simple way to access \s-1WPS\s0 objects. The only way I knowis via \f(CW\*(C`OS2::REXX\*(C'\fR and \f(CW\*(C`SOM\*(C'\fR extensions (see \s-1OS2::REXX\s0, Som).However, we do not have access toconvenience methods of Object-REXX. (Is it possible at all? I knowof no Object-REXX \s-1API\s0.) The \f(CW\*(C`SOM\*(C'\fR extension (currently in alpha-text)may eventually remove this shortcoming; however, due to the fact that\&\s-1DII\s0 is not supported by the \f(CW\*(C`SOM\*(C'\fR module, using \f(CW\*(C`SOM\*(C'\fR is not asconvenient as one would like it..PPPlease keep this list up-to-date by informing me about other items..Sh "Other OSes".IX Subsection "Other OSes"Since \s-1OS/2\s0 port of perl uses a remarkable \s-1EMX\s0 environment, it canrun (and build extensions, and \- possibly \- be built itself) under anyenvironment which can run \s-1EMX\s0. The current list is \s-1DOS\s0,DOS\-inside\-OS/2, Win0.3*, Win0.95 and WinNT. Out of many perl flavors,only one works, see \*(L"perl_.exe\*(R"..PPNote that not all features of Perl are available under theseenvironments. This depends on the features the \fIextender\fR \- mostprobably \s-1RSX\s0 \- decided to implement..PPCf. Prerequisites..Sh "Prerequisites".IX Subsection "Prerequisites".IP "\s-1EMX\s0" 6.IX Item "EMX"\&\s-1EMX\s0 runtime is required (may be substituted by \s-1RSX\s0). Note thatit is possible to make \fIperl_.exe\fR to run under \s-1DOS\s0 without anyexternal support by binding \fIemx.exe\fR/\fIrsx.exe\fR to it, see emxbind. Notethat under \s-1DOS\s0 for best results one should use \s-1RSX\s0 runtime, whichhas much more functions working (like \f(CW\*(C`fork\*(C'\fR, \f(CW\*(C`popen\*(C'\fR and so on). Infact \s-1RSX\s0 is required if there is no \s-1VCPI\s0 present. Note the\&\s-1RSX\s0 requires \s-1DPMI\s0. Many implementations of \s-1DPMI\s0 are known to be verybuggy, beware!.SpOnly the latest runtime is supported, currently \f(CW\*(C`0.9d fix 03\*(C'\fR. Perl may rununder earlier versions of \s-1EMX\s0, but this is not tested..SpOne can get different parts of \s-1EMX\s0 from, say.Sp.Vb 3\& http://www.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/\& http://powerusersbbs.com/pub/os2/dev/ [EMX+GCC Development]\& http://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/.Ve.SpThe runtime component should have the name \fIemxrt.zip\fR..Sp\&\fB\s-1NOTE\s0\fR. When using \fIemx.exe\fR/\fIrsx.exe\fR, it is enough to have them on your path. Onedoes not need to specify them explicitly (though this.Sp.Vb 1\& emx perl_.exe \-de 0.Ve.Spwill work as well.).IP "\s-1RSX\s0" 6.IX Item "RSX"To run Perl on \s-1DPMI\s0 platforms one needs \s-1RSX\s0 runtime. This isneeded under DOS\-inside\-OS/2, Win0.3*, Win0.95 and WinNT (see \&\*(L"Other OSes\*(R"). \s-1RSX\s0 would not work with \s-1VCPI\s0only, as \s-1EMX\s0 would, it requires \s-1DMPI\s0..SpHaving \s-1RSX\s0 and the latest \fIsh.exe\fR one gets a fully functional\&\fB*nix\fR\-ish environment under \s-1DOS\s0, say, \f(CW\*(C`fork\*(C'\fR, \f(CW\*(C`\`\`\*(C'\fR andpipe\-\f(CW\*(C`open\*(C'\fR work. In fact, MakeMaker works (for static build), so onecan have Perl development environment under \s-1DOS\s0..SpOne can get \s-1RSX\s0 from, say.Sp.Vb 3\& ftp://ftp.cdrom.com/pub/os2/emx09c/contrib\& ftp://ftp.uni\-bielefeld.de/pub/systems/msdos/misc\& ftp://ftp.leo.org/pub/comp/os/os2/leo/devtools/emx+gcc/contrib.Ve.SpContact the author on \f(CW\*(C`rainer@mathematik.uni\-bielefeld.de\*(C'\fR..SpThe latest \fIsh.exe\fR with \s-1DOS\s0 hooks is available in.Sp.Vb 1\& http://www.ilyaz.org/software/os2/.Ve.Spas \fIsh_dos.zip\fR or under similar names starting with \f(CW\*(C`sh\*(C'\fR, \f(CW\*(C`pdksh\*(C'\fR etc..IP "\s-1HPFS\s0" 6.IX Item "HPFS"Perl does not care about file systems, but the perl library containsmany files with long names, so to install it intact one needs a filesystem which supports long file names..SpNote that if you do not plan to build the perl itself, it may bepossible to fool \s-1EMX\s0 to truncate file names. This is not supported,read \s-1EMX\s0 docs to see how to do it..IP "pdksh" 6.IX Item "pdksh"To start external programs with complicated command lines (like withpipes in between, and/or quoting of arguments), Perl uses an externalshell. With \s-1EMX\s0 port such shell should be named \fIsh.exe\fR, and locatedeither in the wired-in-during-compile locations (usually \fIF:/bin\fR),or in configurable location (see \*(L"\s-1PERL_SH_DIR\s0\*(R")..SpFor best results use \s-1EMX\s0 pdksh. The standard binary (5.2.14 or later) runsunder \s-1DOS\s0 (with \s-1RSX\s0) as well, see.Sp.Vb 1\& http://www.ilyaz.org/software/os2/.Ve.Sh "Starting Perl programs under \s-1OS/2\s0 (and \s-1DOS\s0 and...)".IX Subsection "Starting Perl programs under OS/2 (and DOS and...)"Start your Perl program \fIfoo.pl\fR with arguments \f(CW\*(C`arg1 arg2 arg3\*(C'\fR thesame way as on any other platform, by.PP.Vb 1\& perl foo.pl arg1 arg2 arg3.Ve.PPIf you want to specify perl options \f(CW\*(C`\-my_opts\*(C'\fR to the perl itself (asopposed to your program), use.PP.Vb 1\& perl \-my_opts foo.pl arg1 arg2 arg3.Ve.PPAlternately, if you use OS/2\-ish shell, like \s-1CMD\s0 or 4os2, putthe following at the start of your perl script:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -