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

📄 config.pod

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 POD
📖 第 1 页 / 共 5 页
字号:
=head1 NAMEConfig - access Perl configuration information=head1 SYNOPSIS    use Config;    if ($Config{usethreads}) {	print "has thread support\n"    }     use Config qw(myconfig config_sh config_vars config_re);    print myconfig();    print config_sh();    print config_re();    config_vars(qw(osname archname));=head1 DESCRIPTIONThe Config module contains all the information that was available tothe C<Configure> program at Perl build time (over 900 values).Shell variables from the F<config.sh> file (written by Configure) arestored in the readonly-variable C<%Config>, indexed by their names.Values stored in config.sh as 'undef' are returned as undefinedvalues.  The perl C<exists> function can be used to check if anamed variable exists.=over 4=item myconfig()Returns a textual summary of the major perl configuration values.See also C<-V> in L<perlrun/Switches>.=item config_sh()Returns the entire perl configuration information in the form of theoriginal config.sh shell variable assignment script.=item config_re($regex)Like config_sh() but returns, as a list, only the config entries who'snames match the $regex.=item config_vars(@names)Prints to STDOUT the values of the named configuration variable. Each isprinted on a separate line in the form:  name='value';Names which are unknown are output as C<name='UNKNOWN';>.See also C<-V:name> in L<perlrun/Switches>.=back=head1 EXAMPLEHere's a more sophisticated example of using %Config:    use Config;    use strict;    my %sig_num;    my @sig_name;    unless($Config{sig_name} && $Config{sig_num}) {	die "No sigs?";    } else {	my @names = split ' ', $Config{sig_name};	@sig_num{@names} = split ' ', $Config{sig_num};	foreach (@names) {	    $sig_name[$sig_num{$_}] ||= $_;	}       }    print "signal #17 = $sig_name[17]\n";    if ($sig_num{ALRM}) { 	print "SIGALRM is $sig_num{ALRM}\n";    }   =head1 WARNINGBecause this information is not stored within the perl executableitself it is possible (but unlikely) that the information does notrelate to the actual perl binary which is being used to access it.The Config module is installed into the architecture and versionspecific library directory ($Config{installarchlib}) and it checks theperl version number when loaded.The values stored in config.sh may be either single-quoted ordouble-quoted. Double-quoted strings are handy for those cases where youneed to include escape sequences in the strings. To avoid runtime variableinterpolation, any C<$> and C<@> characters are replaced by C<\$> andC<\@>, respectively. This isn't foolproof, of course, so don't embed C<\$>or C<\@> in double-quoted strings unless you're willing to deal with theconsequences. (The slashes will end up escaped and the C<$> or C<@> willtrigger variable interpolation)=head1 GLOSSARYMost C<Config> variables are determined by the C<Configure> scripton platforms supported by it (which is most UNIX platforms).  Someplatforms have custom-made C<Config> variables, and may thus not havesome of the variables described below, or may have extraneous variablesspecific to that particular port.  See the port specific documentationin such cases.=head2 _=over 4=item C<_a>From F<Unix.U>:This variable defines the extension used for ordinary library files.For unix, it is F<.a>.  The F<.> is included.  Other possiblevalues include F<.lib>.=item C<_exe>From F<Unix.U>:This variable defines the extension used for executable files.C<DJGPP>, Cygwin and F<OS/2> use F<.exe>.  Stratus C<VOS> uses F<.pm>.On operating systems which do not require a specific extensionfor executable files, this variable is empty.=item C<_o>From F<Unix.U>:This variable defines the extension used for object files.For unix, it is F<.o>.  The F<.> is included.  Other possiblevalues include F<.obj>.=back=head2 a=over 4=item C<afs>From F<afs.U>:This variable is set to C<true> if C<AFS> (Andrew File System) is usedon the system, C<false> otherwise.  It is possible to override thiswith a hint value or command line option, but you'd better knowwhat you are doing.=item C<afsroot>From F<afs.U>:This variable is by default set to F</afs>. In the unlikely casethis is not the correct root, it is possible to override this witha hint value or command line option.  This will be used in subsequenttests for AFSness in the Perl configure and test process.=item C<alignbytes>From F<alignbytes.U>:This variable holds the number of bytes required to align adouble-- or a long double when applicable. Usual values are2, 4 and 8.  The default is eight, for safety.=item C<ansi2knr>From F<ansi2knr.U>:This variable is set if the user needs to run ansi2knr.Currently, this is not supported, so we just abort.=item C<aphostname>From F<d_gethname.U>:This variable contains the command which can be used to compute thehost name. The command is fully qualified by its absolute path, to makeit safe when used by a process with super-user privileges.=item C<api_revision>From F<patchlevel.U>:The three variables, api_revision, api_version, andapi_subversion, specify the version of the oldest perl binarycompatible with the present perl.  In a full version stringsuch as F<5.6.1>, api_revision is the C<5>.Prior to 5.5.640, the format was a floating point number,like 5.00563.F<perl.c>:incpush() and F<lib/lib.pm> will automatically search inF<$sitelib/.>. for older directories back to the limit specifiedby these api_ variables.  This is only useful if you have aperl library directory tree structured like the default one.See C<INSTALL> for how this works.  The versioned site_perldirectory was introduced in 5.005, so that is the lowestpossible value.  The version list appropriate for the currentsystem is determined in F<inc_version_list.U>.C<XXX> To do:  Since compatibility can depend on compile timeoptions (such as bincompat, longlong, etc.) it should(perhaps) be set by Configure, but currently it isn't.Currently, we read a hard-wired value from F<patchlevel.h>.Perhaps what we ought to do is take the hard-wired value fromF<patchlevel.h> but then modify it if the current Configureoptions warrant.  F<patchlevel.h> then would use an #ifdef guard.=item C<api_subversion>From F<patchlevel.U>:The three variables, api_revision, api_version, andapi_subversion, specify the version of the oldest perl binarycompatible with the present perl.  In a full version stringsuch as F<5.6.1>, api_subversion is the C<1>.  See api_revision forfull details.=item C<api_version>From F<patchlevel.U>:The three variables, api_revision, api_version, andapi_subversion, specify the version of the oldest perl binarycompatible with the present perl.  In a full version stringsuch as F<5.6.1>, api_version is the C<6>.  See api_revision forfull details.  As a special case, 5.5.0 is rendered in theold-style as 5.005.  (In the 5.005_0x maintenance series,this was the only versioned directory in $sitelib.)=item C<api_versionstring>From F<patchlevel.U>:This variable combines api_revision, api_version, andapi_subversion in a format such as 5.6.1 (or 5_6_1) suitablefor use as a directory name.  This is filesystem dependent.=item C<ar>From F<Loc.U>:This variable is used internally by Configure to determine thefull pathname (if any) of the ar program.  After Configure runs,the value is reset to a plain C<ar> and is not useful.=item C<archlib>From F<archlib.U>:This variable holds the name of the directory in which the user wantsto put architecture-dependent public library files for $package.It is most often a local directory such as F</usr/local/lib>.Programs using this variable must be prepared to dealwith filename expansion.=item C<archlibexp>From F<archlib.U>:This variable is the same as the archlib variable, but isfilename expanded at configuration time, for convenient use.=item C<archname>From F<archname.U>:This variable is a short name to characterize the currentarchitecture.  It is used mainly to construct the default archlib.=item C<archname64>From F<use64bits.U>:This variable is used for the 64-bitness part of $archname.=item C<archobjs>From F<Unix.U>:This variable defines any additional objects that must be linkedin with the program on this architecture.  On unix, it is usuallyempty.  It is typically used to include emulations of unix callsor other facilities.  For perl on F<OS/2>, for example, this wouldinclude F<os2/os2.obj>.=item C<asctime_r_proto>From F<d_asctime_r.U>:This variable encodes the prototype of asctime_r.It is zero if d_asctime_r is undef, and one of theC<REENTRANT_PROTO_T_ABC> macros of F<reentr.h> if d_asctime_ris defined.=item C<awk>From F<Loc.U>:This variable is used internally by Configure to determine thefull pathname (if any) of the awk program.  After Configure runs,the value is reset to a plain C<awk> and is not useful.=back=head2 b=over 4=item C<baserev>From F<baserev.U>:The base revision level of this package, from the F<.package> file.=item C<bash>From F<Loc.U>:This variable is defined but not used by Configure.The value is a plain '' and is not useful.=item C<bin>From F<bin.U>:This variable holds the name of the directory in which the user wantsto put publicly executable images for the package in question.  Itis most often a local directory such as F</usr/local/bin>. Programs usingthis variable must be prepared to deal with F<~name> substitution.=item C<binexp>From F<bin.U>:This is the same as the bin variable, but is filename expanded atconfiguration time, for use in your makefiles.=item C<bison>From F<Loc.U>:This variable is used internally by Configure to determine thefull pathname (if any) of the bison program.  After Configure runs,the value is reset to a plain C<bison> and is not useful.=item C<byacc>From F<Loc.U>:This variable is used internally by Configure to determine thefull pathname (if any) of the byacc program.  After Configure runs,the value is reset to a plain C<byacc> and is not useful.=item C<byteorder>From F<byteorder.U>:This variable holds the byte order in a C<UV>. In the following,larger digits indicate more significance.  The variable byteorderis either 4321 on a big-endian machine, or 1234 on a little-endian,or 87654321 on a Cray ... or 3412 with weird order !=back=head2 c=over 4=item C<c>From F<n.U>:This variable contains the \c string if that is what causes the echocommand to suppress newline.  Otherwise it is null.  Correct usage is$echo $n "prompt for a question: $c".=item C<castflags>From F<d_castneg.U>:This variable contains a flag that precise difficulties thecompiler has casting odd floating values to unsigned long:0 = ok1 = couldn't cast < 02 = couldn't cast >= 0x800000004 = couldn't cast in argument expression list=item C<cat>From F<Loc.U>:This variable is used internally by Configure to determine thefull pathname (if any) of the cat program.  After Configure runs,the value is reset to a plain C<cat> and is not useful.=item C<cc>From F<cc.U>:This variable holds the name of a command to execute a C compiler whichcan resolve multiple global references that happen to have the samename.  Usual values are C<cc> and C<gcc>.Fervent C<ANSI> compilers may be called C<c89>.  C<AIX> has xlc.=item C<cccdlflags>From F<dlsrc.U>:This variable contains any special flags that might need to bepassed with C<cc -c> to compile modules to be used to create a sharedlibrary that will be used for dynamic loading.  For hpux, thisshould be +z.  It is up to the makefile to use it.=item C<ccdlflags>From F<dlsrc.U>:This variable contains any special flags that might need to bepassed to cc to link with a shared library for dynamic loading.It is up to the makefile to use it.  For sunos 4.1, it shouldbe empty.=item C<ccflags>From F<ccflags.U>:This variable contains any additional C compiler flags desired bythe user.  It is up to the Makefile to use this.=item C<ccflags_uselargefiles>From F<uselfs.U>:This variable contains the compiler flags needed by large file buildsand added to ccflags by hints files.=item C<ccname>From F<Checkcc.U>:This can set either by hints files or by Configure.  If usinggcc, this is gcc, and if not, usually equal to cc, unimpressive, no?Some platforms, however, make good use of this by storing theflavor of the C compiler being used here.  For example if usingthe Sun WorkShop suite, ccname will be C<workshop>.=item C<ccsymbols>From F<Cppsym.U>:The variable contains the symbols defined by the C compiler alone.The symbols defined by cpp or by cc when it calls cpp are not inthis list, see cppsymbols and cppccsymbols.The list is a space-separated list of symbol=value tokens.=item C<ccversion>From F<Checkcc.U>:This can set either by hints files or by Configure.  If usinga (non-gcc) vendor cc, this variable may contain a version forthe compiler.=item C<cf_by>From F<cf_who.U>:Login name of the person who ran the Configure script and answered thequestions. This is used to tag both F<config.sh> and F<config_h.SH>.=item C<cf_email>From F<cf_email.U>:Electronic mail address of the person who ran Configure. This can beused by units that require the user's e-mail, like F<MailList.U>.=item C<cf_time>From F<cf_who.U>:Holds the output of the C<date> command when the configuration file wasproduced. This is used to tag both F<config.sh> and F<config_h.SH>.=item C<chgrp>

⌨️ 快捷键说明

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