diff --git a/data/miniconda3/man/man1/perlop.1 b/data/miniconda3/man/man1/perlop.1 new file mode 100644 index 0000000000000000000000000000000000000000..e4b7cc6c80a392e71182b0139183f1bf86d7253f --- /dev/null +++ b/data/miniconda3/man/man1/perlop.1 @@ -0,0 +1,4156 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PERLOP 1" +.TH PERLOP 1 "2020-12-26" "perl v5.32.1" "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" +perlop \- Perl operators and precedence +.IX Xref "operator" +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +In Perl, the operator determines what operation is performed, +independent of the type of the operands. For example \f(CW\*(C`$x\ +\ $y\*(C'\fR +is always a numeric addition, and if \f(CW$x\fR or \f(CW$y\fR do not contain +numbers, an attempt is made to convert them to numbers first. +.PP +This is in contrast to many other dynamic languages, where the +operation is determined by the type of the first argument. It also +means that Perl has two versions of some operators, one for numeric +and one for string comparison. For example \f(CW\*(C`$x\ ==\ $y\*(C'\fR compares +two numbers for equality, and \f(CW\*(C`$x\ eq\ $y\*(C'\fR compares two strings. +.PP +There are a few exceptions though: \f(CW\*(C`x\*(C'\fR can be either string +repetition or list repetition, depending on the type of the left +operand, and \f(CW\*(C`&\*(C'\fR, \f(CW\*(C`|\*(C'\fR, \f(CW\*(C`^\*(C'\fR and \f(CW\*(C`~\*(C'\fR can be either string or numeric bit +operations. +.SS "Operator Precedence and Associativity" +.IX Xref "operator, precedence precedence associativity" +.IX Subsection "Operator Precedence and Associativity" +Operator precedence and associativity work in Perl more or less like +they do in mathematics. +.PP +\&\fIOperator precedence\fR means some operators group more tightly than others. +For example, in \f(CW\*(C`2 + 4 * 5\*(C'\fR, the multiplication has higher precedence, so \f(CW\*(C`4 +* 5\*(C'\fR is grouped together as the right-hand operand of the addition, rather +than \f(CW\*(C`2 + 4\*(C'\fR being grouped together as the left-hand operand of the +multiplication. It is as if the expression were written \f(CW\*(C`2 + (4 * 5)\*(C'\fR, not +\&\f(CW\*(C`(2 + 4) * 5\*(C'\fR. So the expression yields \f(CW\*(C`2 + 20 == 22\*(C'\fR, rather than +\&\f(CW\*(C`6 * 5 == 30\*(C'\fR. +.PP +\&\fIOperator associativity\fR defines what happens if a sequence of the same +operators is used one after another: +usually that they will be grouped at the left +or the right. For example, in \f(CW\*(C`9 \- 3 \- 2\*(C'\fR, subtraction is left associative, +so \f(CW\*(C`9 \- 3\*(C'\fR is grouped together as the left-hand operand of the second +subtraction, rather than \f(CW\*(C`3 \- 2\*(C'\fR being grouped together as the right-hand +operand of the first subtraction. It is as if the expression were written +\&\f(CW\*(C`(9 \- 3) \- 2\*(C'\fR, not \f(CW\*(C`9 \- (3 \- 2)\*(C'\fR. So the expression yields \f(CW\*(C`6 \- 2 == 4\*(C'\fR, +rather than \f(CW\*(C`9 \- 1 == 8\*(C'\fR. +.PP +For simple operators that evaluate all their operands and then combine the +values in some way, precedence and associativity (and parentheses) imply some +ordering requirements on those combining operations. For example, in \f(CW\*(C`2 + 4 * +5\*(C'\fR, the grouping implied by precedence means that the multiplication of 4 and +5 must be performed before the addition of 2 and 20, simply because the result +of that multiplication is required as one of the operands of the addition. But +the order of operations is not fully determined by this: in \f(CW\*(C`2 * 2 + 4 * 5\*(C'\fR +both multiplications must be performed before the addition, but the grouping +does not say anything about the order in which the two multiplications are +performed. In fact Perl has a general rule that the operands of an operator +are evaluated in left-to-right order. A few operators such as \f(CW\*(C`&&=\*(C'\fR have +special evaluation rules that can result in an operand not being evaluated at +all; in general, the top-level operator in an expression has control of +operand evaluation. +.PP +Some comparison operators, as their associativity, \fIchain\fR with some +operators of the same precedence (but never with operators of different +precedence). This chaining means that each comparison is performed +on the two arguments surrounding it, with each interior argument taking +part in two comparisons, and the comparison results are implicitly ANDed. +Thus \f(CW"$x\ <\ $y\ <=\ $z"\fR behaves exactly like \f(CW"$x\ <\ $y\ &&\ $y\ <=\ $z"\fR, assuming that \f(CW"$y"\fR is as simple a scalar as +it looks. The ANDing short-circuits just like \f(CW"&&"\fR does, stopping +the sequence of comparisons as soon as one yields false. +.PP +In a chained comparison, each argument expression is evaluated at most +once, even if it takes part in two comparisons, but the result of the +evaluation is fetched for each comparison. (It is not evaluated +at all if the short-circuiting means that it's not required for any +comparisons.) This matters if the computation of an interior argument +is expensive or non-deterministic. For example, +.PP +.Vb 1 +\& if($x < expensive_sub() <= $z) { ... +.Ve +.PP +is not entirely like +.PP +.Vb 1 +\& if($x < expensive_sub() && expensive_sub() <= $z) { ... +.Ve +.PP +but instead closer to +.PP +.Vb 2 +\& my $tmp = expensive_sub(); +\& if($x < $tmp && $tmp <= $z) { ... +.Ve +.PP +in that the subroutine is only called once. However, it's not exactly +like this latter code either, because the chained comparison doesn't +actually involve any temporary variable (named or otherwise): there is +no assignment. This doesn't make much difference where the expression +is a call to an ordinary subroutine, but matters more with an lvalue +subroutine, or if the argument expression yields some unusual kind of +scalar by other means. For example, if the argument expression yields +a tied scalar, then the expression is evaluated to produce that scalar +at most once, but the value of that scalar may be fetched up to twice, +once for each comparison in which it is actually used. +.PP +In this example, the expression is evaluated only once, and the tied +scalar (the result of the expression) is fetched for each comparison that +uses it. +.PP +.Vb 1 +\& if ($x < $tied_scalar < $z) { ... +.Ve +.PP +In the next example, the expression is evaluated only once, and the tied +scalar is fetched once as part of the operation within the expression. +The result of that operation is fetched for each comparison, which +normally doesn't matter unless that expression result is also magical due +to operator overloading. +.PP +.Vb 1 +\& if ($x < $tied_scalar + 42 < $z) { ... +.Ve +.PP +Some operators are instead non-associative, meaning that it is a syntax +error to use a sequence of those operators of the same precedence. +For example, \f(CW"$x\ ..\ $y\ ..\ $z"\fR is an error. +.PP +Perl operators have the following associativity and precedence, +listed from highest precedence to lowest. Operators borrowed from +C keep the same precedence relationship with each other, even where +C's precedence is slightly screwy. (This makes learning Perl easier +for C folks.) With very few exceptions, these all operate on scalar +values only, not array values. +.PP +.Vb 10 +\& left terms and list operators (leftward) +\& left \-> +\& nonassoc ++ \-\- +\& right ** +\& right ! ~ \e and unary + and \- +\& left =~ !~ +\& left * / % x +\& left + \- . +\& left << >> +\& nonassoc named unary operators +\& chained < > <= >= lt gt le ge +\& chain/na == != eq ne <=> cmp ~~ +\& nonassoc isa +\& left & +\& left | ^ +\& left && +\& left || // +\& nonassoc .. ... +\& right ?: +\& right = += \-= *= etc. goto last next redo dump +\& left , => +\& nonassoc list operators (rightward) +\& right not +\& left and +\& left or xor +.Ve +.PP +In the following sections, these operators are covered in detail, in the +same order in which they appear in the table above. +.PP +Many operators can be overloaded for objects. See overload. +.SS "Terms and List Operators (Leftward)" +.IX Xref "list operator operator, list term" +.IX Subsection "Terms and List Operators (Leftward)" +A \s-1TERM\s0 has the highest precedence in Perl. They include variables, +quote and quote-like operators, any expression in parentheses, +and any function whose arguments are parenthesized. Actually, there +aren't really functions in this sense, just list operators and unary +operators behaving as functions because you put parentheses around +the arguments. These are all documented in perlfunc. +.PP +If any list operator (\f(CW\*(C`print()\*(C'\fR, etc.) or any unary operator (\f(CW\*(C`chdir()\*(C'\fR, etc.) +is followed by a left parenthesis as the next token, the operator and +arguments within parentheses are taken to be of highest precedence, +just like a normal function call. +.PP +In the absence of parentheses, the precedence of list operators such as +\&\f(CW\*(C`print\*(C'\fR, \f(CW\*(C`sort\*(C'\fR, or \f(CW\*(C`chmod\*(C'\fR is either very high or very low depending on +whether you are looking at the left side or the right side of the operator. +For example, in +.PP +.Vb 2 +\& @ary = (1, 3, sort 4, 2); +\& print @ary; # prints 1324 +.Ve +.PP +the commas on the right of the \f(CW\*(C`sort\*(C'\fR are evaluated before the \f(CW\*(C`sort\*(C'\fR, +but the commas on the left are evaluated after. In other words, +list operators tend to gobble up all arguments that follow, and +then act like a simple \s-1TERM\s0 with regard to the preceding expression. +Be careful with parentheses: +.PP +.Vb 3 +\& # These evaluate exit before doing the print: +\& print($foo, exit); # Obviously not what you want. +\& print $foo, exit; # Nor is this. +\& +\& # These do the print before evaluating exit: +\& (print $foo), exit; # This is what you want. +\& print($foo), exit; # Or this. +\& print ($foo), exit; # Or even this. +.Ve +.PP +Also note that +.PP +.Vb 1 +\& print ($foo & 255) + 1, "\en"; +.Ve +.PP +probably doesn't do what you expect at first glance. The parentheses +enclose the argument list for \f(CW\*(C`print\*(C'\fR which is evaluated (printing +the result of \f(CW\*(C`$foo\ &\ 255\*(C'\fR). Then one is added to the return value +of \f(CW\*(C`print\*(C'\fR (usually 1). The result is something like this: +.PP +.Vb 1 +\& 1 + 1, "\en"; # Obviously not what you meant. +.Ve +.PP +To do what you meant properly, you must write: +.PP +.Vb 1 +\& print(($foo & 255) + 1, "\en"); +.Ve +.PP +See \*(L"Named Unary Operators\*(R" for more discussion of this. +.PP +Also parsed as terms are the \f(CW\*(C`do\ {}\*(C'\fR and \f(CW\*(C`eval\ {}\*(C'\fR constructs, as +well as subroutine and method calls, and the anonymous +constructors \f(CW\*(C`[]\*(C'\fR and \f(CW\*(C`{}\*(C'\fR. +.PP +See also \*(L"Quote and Quote-like Operators\*(R" toward the end of this section, +as well as \*(L"I/O Operators\*(R". +.SS "The Arrow Operator" +.IX Xref "arrow dereference ->" +.IX Subsection "The Arrow Operator" +"\f(CW\*(C`\->\*(C'\fR" is an infix dereference operator, just as it is in C +and \*(C+. If the right side is either a \f(CW\*(C`[...]\*(C'\fR, \f(CW\*(C`{...}\*(C'\fR, or a +\&\f(CW\*(C`(...)\*(C'\fR subscript, then the left side must be either a hard or +symbolic reference to an array, a hash, or a subroutine respectively. +(Or technically speaking, a location capable of holding a hard +reference, if it's an array or hash reference being used for +assignment.) See perlreftut and perlref. +.PP +Otherwise, the right side is a method name or a simple scalar +variable containing either the method name or a subroutine reference, +and the left side must be either an object (a blessed reference) +or a class name (that is, a package name). See perlobj. +.PP +The dereferencing cases (as opposed to method-calling cases) are +somewhat extended by the \f(CW\*(C`postderef\*(C'\fR feature. For the +details of that feature, consult \*(L"Postfix Dereference Syntax\*(R" in perlref. +.SS "Auto-increment and Auto-decrement" +.IX Xref "increment auto-increment ++ decrement auto-decrement --" +.IX Subsection "Auto-increment and Auto-decrement" +\&\f(CW"++"\fR and \f(CW"\-\-"\fR work as in C. That is, if placed before a variable, +they increment or decrement the variable by one before returning the +value, and if placed after, increment or decrement after returning the +value. +.PP +.Vb 3 +\& $i = 0; $j = 0; +\& print $i++; # prints 0 +\& print ++$j; # prints 1 +.Ve +.PP +Note that just as in C, Perl doesn't define \fBwhen\fR the variable is +incremented or decremented. You just know it will be done sometime +before or after the value is returned. This also means that modifying +a variable twice in the same statement will lead to undefined behavior. +Avoid statements like: +.PP +.Vb 2 +\& $i = $i ++; +\& print ++ $i + $i ++; +.Ve +.PP +Perl will not guarantee what the result of the above statements is. +.PP +The auto-increment operator has a little extra builtin magic to it. If +you increment a variable that is numeric, or that has ever been used in +a numeric context, you get a normal increment. If, however, the +variable has been used in only string contexts since it was set, and +has a value that is not the empty string and matches the pattern +\&\f(CW\*(C`/^[a\-zA\-Z]*[0\-9]*\ez/\*(C'\fR, the increment is done as a string, preserving each +character within its range, with carry: +.PP +.Vb 4 +\& print ++($foo = "99"); # prints "100" +\& print ++($foo = "a0"); # prints "a1" +\& print ++($foo = "Az"); # prints "Ba" +\& print ++($foo = "zz"); # prints "aaa" +.Ve +.PP +\&\f(CW\*(C`undef\*(C'\fR is always treated as numeric, and in particular is changed +to \f(CW0\fR before incrementing (so that a post-increment of an undef value +will return \f(CW0\fR rather than \f(CW\*(C`undef\*(C'\fR). +.PP +The auto-decrement operator is not magical. +.SS "Exponentiation" +.IX Xref "** exponentiation power" +.IX Subsection "Exponentiation" +Binary \f(CW"**"\fR is the exponentiation operator. It binds even more +tightly than unary minus, so \f(CW\*(C`\-2**4\*(C'\fR is \f(CW\*(C`\-(2**4)\*(C'\fR, not \f(CW\*(C`(\-2)**4\*(C'\fR. +(This is +implemented using C's \f(CWpow(3)\fR function, which actually works on doubles +internally.) +.PP +Note that certain exponentiation expressions are ill-defined: +these include \f(CW\*(C`0**0\*(C'\fR, \f(CW\*(C`1**Inf\*(C'\fR, and \f(CW\*(C`Inf**0\*(C'\fR. Do not expect +any particular results from these special cases, the results +are platform-dependent. +.SS "Symbolic Unary Operators" +.IX Xref "unary operator operator, unary" +.IX Subsection "Symbolic Unary Operators" +Unary \f(CW"!"\fR performs logical negation, that is, \*(L"not\*(R". See also +\&\f(CW\*(C`not\*(C'\fR for a lower precedence version of this. +.IX Xref "!" +.PP +Unary \f(CW"\-"\fR performs arithmetic negation if the operand is numeric, +including any string that looks like a number. If the operand is +an identifier, a string consisting of a minus sign concatenated +with the identifier is returned. Otherwise, if the string starts +with a plus or minus, a string starting with the opposite sign is +returned. One effect of these rules is that \f(CW\*(C`\-bareword\*(C'\fR is equivalent +to the string \f(CW"\-bareword"\fR. If, however, the string begins with a +non-alphabetic character (excluding \f(CW"+"\fR or \f(CW"\-"\fR), Perl will attempt +to convert +the string to a numeric, and the arithmetic negation is performed. If the +string cannot be cleanly converted to a numeric, Perl will give the warning +\&\fBArgument \*(L"the string\*(R" isn't numeric in negation (\-) at ...\fR. +.IX Xref "- negation, arithmetic" +.PP +Unary \f(CW"~"\fR performs bitwise negation, that is, 1's complement. For +example, \f(CW\*(C`0666\ &\ ~027\*(C'\fR is 0640. (See also \*(L"Integer Arithmetic\*(R" and +\&\*(L"Bitwise String Operators\*(R".) Note that the width of the result is +platform-dependent: \f(CW\*(C`~0\*(C'\fR is 32 bits wide on a 32\-bit platform, but 64 +bits wide on a 64\-bit platform, so if you are expecting a certain bit +width, remember to use the \f(CW"&"\fR operator to mask off the excess bits. +.IX Xref "~ negation, binary" +.PP +Starting in Perl 5.28, it is a fatal error to try to complement a string +containing a character with an ordinal value above 255. +.PP +If the \*(L"bitwise\*(R" feature is enabled via \f(CW\*(C`use\ feature\ \*(Aqbitwise\*(Aq\*(C'\fR or \f(CW\*(C`use v5.28\*(C'\fR, then unary +\&\f(CW"~"\fR always treats its argument as a number, and an +alternate form of the operator, \f(CW"~."\fR, always treats its argument as a +string. So \f(CW\*(C`~0\*(C'\fR and \f(CW\*(C`~"0"\*(C'\fR will both give 2**32\-1 on 32\-bit platforms, +whereas \f(CW\*(C`~.0\*(C'\fR and \f(CW\*(C`~."0"\*(C'\fR will both yield \f(CW"\exff"\fR. Until Perl 5.28, +this feature produced a warning in the \f(CW"experimental::bitwise"\fR category. +.PP +Unary \f(CW"+"\fR has no effect whatsoever, even on strings. It is useful +syntactically for separating a function name from a parenthesized expression +that would otherwise be interpreted as the complete list of function +arguments. (See examples above under \*(L"Terms and List Operators (Leftward)\*(R".) +.IX Xref "+" +.PP +Unary \f(CW"\e"\fR creates references. If its operand is a single sigilled +thing, it creates a reference to that object. If its operand is a +parenthesised list, then it creates references to the things mentioned +in the list. Otherwise it puts its operand in list context, and creates +a list of references to the scalars in the list provided by the operand. +See perlreftut +and perlref. Do not confuse this behavior with the behavior of +backslash within a string, although both forms do convey the notion +of protecting the next thing from interpolation. +.IX Xref "\\ reference backslash" +.SS "Binding Operators" +.IX Xref "binding operator, binding =~ !~" +.IX Subsection "Binding Operators" +Binary \f(CW"=~"\fR binds a scalar expression to a pattern match. Certain operations +search or modify the string \f(CW$_\fR by default. This operator makes that kind +of operation work on some other string. The right argument is a search +pattern, substitution, or transliteration. The left argument is what is +supposed to be searched, substituted, or transliterated instead of the default +\&\f(CW$_\fR. When used in scalar context, the return value generally indicates the +success of the operation. The exceptions are substitution (\f(CW\*(C`s///\*(C'\fR) +and transliteration (\f(CW\*(C`y///\*(C'\fR) with the \f(CW\*(C`/r\*(C'\fR (non-destructive) option, +which cause the \fBr\fReturn value to be the result of the substitution. +Behavior in list context depends on the particular operator. +See \*(L"Regexp Quote-Like Operators\*(R" for details and perlretut for +examples using these operators. +.PP +If the right argument is an expression rather than a search pattern, +substitution, or transliteration, it is interpreted as a search pattern at run +time. Note that this means that its +contents will be interpolated twice, so +.PP +.Vb 1 +\& \*(Aq\e\e\*(Aq =~ q\*(Aq\e\e\*(Aq; +.Ve +.PP +is not ok, as the regex engine will end up trying to compile the +pattern \f(CW\*(C`\e\*(C'\fR, which it will consider a syntax error. +.PP +Binary \f(CW"!~"\fR is just like \f(CW"=~"\fR except the return value is negated in +the logical sense. +.PP +Binary \f(CW"!~"\fR with a non-destructive substitution (\f(CW\*(C`s///r\*(C'\fR) or transliteration +(\f(CW\*(C`y///r\*(C'\fR) is a syntax error. +.SS "Multiplicative Operators" +.IX Xref "operator, multiplicative" +.IX Subsection "Multiplicative Operators" +Binary \f(CW"*"\fR multiplies two numbers. +.IX Xref "*" +.PP +Binary \f(CW"/"\fR divides two numbers. +.IX Xref "slash" +.PP +Binary \f(CW"%"\fR is the modulo operator, which computes the division +remainder of its first argument with respect to its second argument. +Given integer +operands \f(CW$m\fR and \f(CW$n\fR: If \f(CW$n\fR is positive, then \f(CW\*(C`$m\ %\ $n\*(C'\fR is +\&\f(CW$m\fR minus the largest multiple of \f(CW$n\fR less than or equal to +\&\f(CW$m\fR. If \f(CW$n\fR is negative, then \f(CW\*(C`$m\ %\ $n\*(C'\fR is \f(CW$m\fR minus the +smallest multiple of \f(CW$n\fR that is not less than \f(CW$m\fR (that is, the +result will be less than or equal to zero). If the operands +\&\f(CW$m\fR and \f(CW$n\fR are floating point values and the absolute value of +\&\f(CW$n\fR (that is \f(CW\*(C`abs($n)\*(C'\fR) is less than \f(CW\*(C`(UV_MAX\ +\ 1)\*(C'\fR, only +the integer portion of \f(CW$m\fR and \f(CW$n\fR will be used in the operation +(Note: here \f(CW\*(C`UV_MAX\*(C'\fR means the maximum of the unsigned integer type). +If the absolute value of the right operand (\f(CW\*(C`abs($n)\*(C'\fR) is greater than +or equal to \f(CW\*(C`(UV_MAX\ +\ 1)\*(C'\fR, \f(CW"%"\fR computes the floating-point remainder +\&\f(CW$r\fR in the equation \f(CW\*(C`($r\ =\ $m\ \-\ $i*$n)\*(C'\fR where \f(CW$i\fR is a certain +integer that makes \f(CW$r\fR have the same sign as the right operand +\&\f(CW$n\fR (\fBnot\fR as the left operand \f(CW$m\fR like C function \f(CW\*(C`fmod()\*(C'\fR) +and the absolute value less than that of \f(CW$n\fR. +Note that when \f(CW\*(C`use\ integer\*(C'\fR is in scope, \f(CW"%"\fR gives you direct access +to the modulo operator as implemented by your C compiler. This +operator is not as well defined for negative operands, but it will +execute faster. +.IX Xref "% remainder modulo mod" +.PP +Binary \f(CW\*(C`x\*(C'\fR is the repetition operator. In scalar context, or if the +left operand is neither enclosed in parentheses nor a \f(CW\*(C`qw//\*(C'\fR list, +it performs a string repetition. In that case it supplies scalar +context to the left operand, and returns a string consisting of the +left operand string repeated the number of times specified by the right +operand. If the \f(CW\*(C`x\*(C'\fR is in list context, and the left operand is either +enclosed in parentheses or a \f(CW\*(C`qw//\*(C'\fR list, it performs a list repetition. +In that case it supplies list context to the left operand, and returns +a list consisting of the left operand list repeated the number of times +specified by the right operand. +If the right operand is zero or negative (raising a warning on +negative), it returns an empty string +or an empty list, depending on the context. +.IX Xref "x" +.PP +.Vb 1 +\& print \*(Aq\-\*(Aq x 80; # print row of dashes +\& +\& print "\et" x ($tab/8), \*(Aq \*(Aq x ($tab%8); # tab over +\& +\& @ones = (1) x 80; # a list of 80 1\*(Aqs +\& @ones = (5) x @ones; # set all elements to 5 +.Ve +.SS "Additive Operators" +.IX Xref "operator, additive" +.IX Subsection "Additive Operators" +Binary \f(CW"+"\fR returns the sum of two numbers. +.IX Xref "+" +.PP +Binary \f(CW"\-"\fR returns the difference of two numbers. +.IX Xref "-" +.PP +Binary \f(CW"."\fR concatenates two strings. +.IX Xref "string, concatenation concatenation cat concat concatenate ." +.SS "Shift Operators" +.IX Xref "shift operator operator, shift << >> right shift left shift bitwise shift shl shr shift, right shift, left" +.IX Subsection "Shift Operators" +Binary \f(CW"<<"\fR returns the value of its left argument shifted left by the +number of bits specified by the right argument. Arguments should be +integers. (See also \*(L"Integer Arithmetic\*(R".) +.PP +Binary \f(CW">>"\fR returns the value of its left argument shifted right by +the number of bits specified by the right argument. Arguments should +be integers. (See also \*(L"Integer Arithmetic\*(R".) +.PP +If \f(CW\*(C`use\ integer\*(C'\fR (see \*(L"Integer Arithmetic\*(R") is in force then +signed C integers are used (\fIarithmetic shift\fR), otherwise unsigned C +integers are used (\fIlogical shift\fR), even for negative shiftees. +In arithmetic right shift the sign bit is replicated on the left, +in logical shift zero bits come in from the left. +.PP +Either way, the implementation isn't going to generate results larger +than the size of the integer type Perl was built with (32 bits or 64 bits). +.PP +Shifting by negative number of bits means the reverse shift: left +shift becomes right shift, right shift becomes left shift. This is +unlike in C, where negative shift is undefined. +.PP +Shifting by more bits than the size of the integers means most of the +time zero (all bits fall off), except that under \f(CW\*(C`use\ integer\*(C'\fR +right overshifting a negative shiftee results in \-1. This is unlike +in C, where shifting by too many bits is undefined. A common C +behavior is \*(L"shift by modulo wordbits\*(R", so that for example +.PP +.Vb 1 +\& 1 >> 64 == 1 >> (64 % 64) == 1 >> 0 == 1 # Common C behavior. +.Ve +.PP +but that is completely accidental. +.PP +If you get tired of being subject to your platform's native integers, +the \f(CW\*(C`use\ bigint\*(C'\fR pragma neatly sidesteps the issue altogether: +.PP +.Vb 5 +\& print 20 << 20; # 20971520 +\& print 20 << 40; # 5120 on 32\-bit machines, +\& # 21990232555520 on 64\-bit machines +\& use bigint; +\& print 20 << 100; # 25353012004564588029934064107520 +.Ve +.SS "Named Unary Operators" +.IX Xref "operator, named unary" +.IX Subsection "Named Unary Operators" +The various named unary operators are treated as functions with one +argument, with optional parentheses. +.PP +If any list operator (\f(CW\*(C`print()\*(C'\fR, etc.) or any unary operator (\f(CW\*(C`chdir()\*(C'\fR, etc.) +is followed by a left parenthesis as the next token, the operator and +arguments within parentheses are taken to be of highest precedence, +just like a normal function call. For example, +because named unary operators are higher precedence than \f(CW\*(C`||\*(C'\fR: +.PP +.Vb 4 +\& chdir $foo || die; # (chdir $foo) || die +\& chdir($foo) || die; # (chdir $foo) || die +\& chdir ($foo) || die; # (chdir $foo) || die +\& chdir +($foo) || die; # (chdir $foo) || die +.Ve +.PP +but, because \f(CW"*"\fR is higher precedence than named operators: +.PP +.Vb 4 +\& chdir $foo * 20; # chdir ($foo * 20) +\& chdir($foo) * 20; # (chdir $foo) * 20 +\& chdir ($foo) * 20; # (chdir $foo) * 20 +\& chdir +($foo) * 20; # chdir ($foo * 20) +\& +\& rand 10 * 20; # rand (10 * 20) +\& rand(10) * 20; # (rand 10) * 20 +\& rand (10) * 20; # (rand 10) * 20 +\& rand +(10) * 20; # rand (10 * 20) +.Ve +.PP +Regarding precedence, the filetest operators, like \f(CW\*(C`\-f\*(C'\fR, \f(CW\*(C`\-M\*(C'\fR, etc. are +treated like named unary operators, but they don't follow this functional +parenthesis rule. That means, for example, that \f(CW\*(C`\-f($file).".bak"\*(C'\fR is +equivalent to \f(CW\*(C`\-f\ "$file.bak"\*(C'\fR. +.IX Xref "-X filetest operator, filetest" +.PP +See also \*(L"Terms and List Operators (Leftward)\*(R". +.SS "Relational Operators" +.IX Xref "relational operator operator, relational" +.IX Subsection "Relational Operators" +Perl operators that return true or false generally return values +that can be safely used as numbers. For example, the relational +operators in this section and the equality operators in the next +one return \f(CW1\fR for true and a special version of the defined empty +string, \f(CW""\fR, which counts as a zero but is exempt from warnings +about improper numeric conversions, just as \f(CW"0\ but\ true"\fR is. +.PP +Binary \f(CW"<"\fR returns true if the left argument is numerically less than +the right argument. +.IX Xref "<" +.PP +Binary \f(CW">"\fR returns true if the left argument is numerically greater +than the right argument. +.IX Xref ">" +.PP +Binary \f(CW"<="\fR returns true if the left argument is numerically less than +or equal to the right argument. +.IX Xref "<=" +.PP +Binary \f(CW">="\fR returns true if the left argument is numerically greater +than or equal to the right argument. +.IX Xref ">=" +.PP +Binary \f(CW"lt"\fR returns true if the left argument is stringwise less than +the right argument. +.IX Xref "lt" +.PP +Binary \f(CW"gt"\fR returns true if the left argument is stringwise greater +than the right argument. +.IX Xref "gt" +.PP +Binary \f(CW"le"\fR returns true if the left argument is stringwise less than +or equal to the right argument. +.IX Xref "le" +.PP +Binary \f(CW"ge"\fR returns true if the left argument is stringwise greater +than or equal to the right argument. +.IX Xref "ge" +.PP +A sequence of relational operators, such as \f(CW"$x\ <\ $y\ <=\ $z"\fR, performs chained comparisons, in the manner described above in +the section \*(L"Operator Precedence and Associativity\*(R". +Beware that they do not chain with equality operators, which have lower +precedence. +.SS "Equality Operators" +.IX Xref "equality equal equals operator, equality" +.IX Subsection "Equality Operators" +Binary \f(CW"=="\fR returns true if the left argument is numerically equal to +the right argument. +.IX Xref "==" +.PP +Binary \f(CW"!="\fR returns true if the left argument is numerically not equal +to the right argument. +.IX Xref "!=" +.PP +Binary \f(CW"eq"\fR returns true if the left argument is stringwise equal to +the right argument. +.IX Xref "eq" +.PP +Binary \f(CW"ne"\fR returns true if the left argument is stringwise not equal +to the right argument. +.IX Xref "ne" +.PP +A sequence of the above equality operators, such as \f(CW"$x\ ==\ $y\ ==\ $z"\fR, performs chained comparisons, in the manner described above in +the section \*(L"Operator Precedence and Associativity\*(R". +Beware that they do not chain with relational operators, which have +higher precedence. +.PP +Binary \f(CW"<=>"\fR returns \-1, 0, or 1 depending on whether the left +argument is numerically less than, equal to, or greater than the right +argument. If your platform supports \f(CW\*(C`NaN\*(C'\fR's (not-a-numbers) as numeric +values, using them with \f(CW"<=>"\fR returns undef. \f(CW\*(C`NaN\*(C'\fR is not +\&\f(CW"<"\fR, \f(CW"=="\fR, \f(CW">"\fR, \f(CW"<="\fR or \f(CW">="\fR anything +(even \f(CW\*(C`NaN\*(C'\fR), so those 5 return false. \f(CW\*(C`NaN\ !=\ NaN\*(C'\fR returns +true, as does \f(CW\*(C`NaN\ !=\*(C'\fR\ \fIanything\ else\fR. If your platform doesn't +support \f(CW\*(C`NaN\*(C'\fR's then \f(CW\*(C`NaN\*(C'\fR is just a string with numeric value 0. +.IX Xref "<=> spaceship" +.PP +.Vb 2 +\& $ perl \-le \*(Aq$x = "NaN"; print "No NaN support here" if $x == $x\*(Aq +\& $ perl \-le \*(Aq$x = "NaN"; print "NaN support here" if $x != $x\*(Aq +.Ve +.PP +(Note that the bigint, bigrat, and bignum pragmas all +support \f(CW"NaN"\fR.) +.PP +Binary \f(CW"cmp"\fR returns \-1, 0, or 1 depending on whether the left +argument is stringwise less than, equal to, or greater than the right +argument. +.IX Xref "cmp" +.PP +Binary \f(CW"~~"\fR does a smartmatch between its arguments. Smart matching +is described in the next section. +.IX Xref "~~" +.PP +The two-sided ordering operators \f(CW"<=>"\fR and \f(CW"cmp"\fR, and the +smartmatch operator \f(CW"~~"\fR, are non-associative with respect to each +other and with respect to the equality operators of the same precedence. +.PP +\&\f(CW"lt"\fR, \f(CW"le"\fR, \f(CW"ge"\fR, \f(CW"gt"\fR and \f(CW"cmp"\fR use the collation (sort) +order specified by the current \f(CW\*(C`LC_COLLATE\*(C'\fR locale if a \f(CW\*(C`use\ locale\*(C'\fR form that includes collation is in effect. See perllocale. +Do not mix these with Unicode, +only use them with legacy 8\-bit locale encodings. +The standard \f(CW\*(C`Unicode::Collate\*(C'\fR and +\&\f(CW\*(C`Unicode::Collate::Locale\*(C'\fR modules offer much more powerful +solutions to collation issues. +.PP +For case-insensitive comparisons, look at the \*(L"fc\*(R" in perlfunc case-folding +function, available in Perl v5.16 or later: +.PP +.Vb 1 +\& if ( fc($x) eq fc($y) ) { ... } +.Ve +.SS "Class Instance Operator" +.IX Xref "isa operator" +.IX Subsection "Class Instance Operator" +Binary \f(CW\*(C`isa\*(C'\fR evaluates to true when the left argument is an object instance of +the class (or a subclass derived from that class) given by the right argument. +If the left argument is not defined, not a blessed object instance, nor does +not derive from the class given by the right argument, the operator evaluates +as false. The right argument may give the class either as a bareword or a +scalar expression that yields a string class name: +.PP +.Vb 1 +\& if( $obj isa Some::Class ) { ... } +\& +\& if( $obj isa "Different::Class" ) { ... } +\& if( $obj isa $name_of_class ) { ... } +.Ve +.PP +This is an experimental feature and is available from Perl 5.31.6 when enabled +by \f(CW\*(C`use feature \*(Aqisa\*(Aq\*(C'\fR. It emits a warning in the \f(CW\*(C`experimental::isa\*(C'\fR +category. +.SS "Smartmatch Operator" +.IX Subsection "Smartmatch Operator" +First available in Perl 5.10.1 (the 5.10.0 version behaved differently), +binary \f(CW\*(C`~~\*(C'\fR does a \*(L"smartmatch\*(R" between its arguments. This is mostly +used implicitly in the \f(CW\*(C`when\*(C'\fR construct described in perlsyn, although +not all \f(CW\*(C`when\*(C'\fR clauses call the smartmatch operator. Unique among all of +Perl's operators, the smartmatch operator can recurse. The smartmatch +operator is experimental and its behavior is +subject to change. +.PP +It is also unique in that all other Perl operators impose a context +(usually string or numeric context) on their operands, autoconverting +those operands to those imposed contexts. In contrast, smartmatch +\&\fIinfers\fR contexts from the actual types of its operands and uses that +type information to select a suitable comparison mechanism. +.PP +The \f(CW\*(C`~~\*(C'\fR operator compares its operands \*(L"polymorphically\*(R", determining how +to compare them according to their actual types (numeric, string, array, +hash, etc.). Like the equality operators with which it shares the same +precedence, \f(CW\*(C`~~\*(C'\fR returns 1 for true and \f(CW""\fR for false. It is often best +read aloud as \*(L"in\*(R", \*(L"inside of\*(R", or \*(L"is contained in\*(R", because the left +operand is often looked for \fIinside\fR the right operand. That makes the +order of the operands to the smartmatch operand often opposite that of +the regular match operator. In other words, the \*(L"smaller\*(R" thing is usually +placed in the left operand and the larger one in the right. +.PP +The behavior of a smartmatch depends on what type of things its arguments +are, as determined by the following table. The first row of the table +whose types apply determines the smartmatch behavior. Because what +actually happens is mostly determined by the type of the second operand, +the table is sorted on the right operand instead of on the left. +.PP +.Vb 4 +\& Left Right Description and pseudocode +\& =============================================================== +\& Any undef check whether Any is undefined +\& like: !defined Any +\& +\& Any Object invoke ~~ overloading on Object, or die +\& +\& Right operand is an ARRAY: +\& +\& Left Right Description and pseudocode +\& =============================================================== +\& ARRAY1 ARRAY2 recurse on paired elements of ARRAY1 and ARRAY2[2] +\& like: (ARRAY1[0] ~~ ARRAY2[0]) +\& && (ARRAY1[1] ~~ ARRAY2[1]) && ... +\& HASH ARRAY any ARRAY elements exist as HASH keys +\& like: grep { exists HASH\->{$_} } ARRAY +\& Regexp ARRAY any ARRAY elements pattern match Regexp +\& like: grep { /Regexp/ } ARRAY +\& undef ARRAY undef in ARRAY +\& like: grep { !defined } ARRAY +\& Any ARRAY smartmatch each ARRAY element[3] +\& like: grep { Any ~~ $_ } ARRAY +\& +\& Right operand is a HASH: +\& +\& Left Right Description and pseudocode +\& =============================================================== +\& HASH1 HASH2 all same keys in both HASHes +\& like: keys HASH1 == +\& grep { exists HASH2\->{$_} } keys HASH1 +\& ARRAY HASH any ARRAY elements exist as HASH keys +\& like: grep { exists HASH\->{$_} } ARRAY +\& Regexp HASH any HASH keys pattern match Regexp +\& like: grep { /Regexp/ } keys HASH +\& undef HASH always false (undef can\*(Aqt be a key) +\& like: 0 == 1 +\& Any HASH HASH key existence +\& like: exists HASH\->{Any} +\& +\& Right operand is CODE: +\& +\& Left Right Description and pseudocode +\& =============================================================== +\& ARRAY CODE sub returns true on all ARRAY elements[1] +\& like: !grep { !CODE\->($_) } ARRAY +\& HASH CODE sub returns true on all HASH keys[1] +\& like: !grep { !CODE\->($_) } keys HASH +\& Any CODE sub passed Any returns true +\& like: CODE\->(Any) +.Ve +.PP +Right operand is a Regexp: +.PP +.Vb 8 +\& Left Right Description and pseudocode +\& =============================================================== +\& ARRAY Regexp any ARRAY elements match Regexp +\& like: grep { /Regexp/ } ARRAY +\& HASH Regexp any HASH keys match Regexp +\& like: grep { /Regexp/ } keys HASH +\& Any Regexp pattern match +\& like: Any =~ /Regexp/ +\& +\& Other: +\& +\& Left Right Description and pseudocode +\& =============================================================== +\& Object Any invoke ~~ overloading on Object, +\& or fall back to... +\& +\& Any Num numeric equality +\& like: Any == Num +\& Num nummy[4] numeric equality +\& like: Num == nummy +\& undef Any check whether undefined +\& like: !defined(Any) +\& Any Any string equality +\& like: Any eq Any +.Ve +.PP +Notes: +.IP "1. Empty hashes or arrays match." 4 +.IX Item "1. Empty hashes or arrays match." +.PD 0 +.IP "2. That is, each element smartmatches the element of the same index in the other array.[3]" 4 +.IX Item "2. That is, each element smartmatches the element of the same index in the other array.[3]" +.IP "3. If a circular reference is found, fall back to referential equality." 4 +.IX Item "3. If a circular reference is found, fall back to referential equality." +.IP "4. Either an actual number, or a string that looks like one." 4 +.IX Item "4. Either an actual number, or a string that looks like one." +.PD +.PP +The smartmatch implicitly dereferences any non-blessed hash or array +reference, so the \f(CW\*(C`\f(CIHASH\f(CW\*(C'\fR and \f(CW\*(C`\f(CIARRAY\f(CW\*(C'\fR entries apply in those cases. +For blessed references, the \f(CW\*(C`\f(CIObject\f(CW\*(C'\fR entries apply. Smartmatches +involving hashes only consider hash keys, never hash values. +.PP +The \*(L"like\*(R" code entry is not always an exact rendition. For example, the +smartmatch operator short-circuits whenever possible, but \f(CW\*(C`grep\*(C'\fR does +not. Also, \f(CW\*(C`grep\*(C'\fR in scalar context returns the number of matches, but +\&\f(CW\*(C`~~\*(C'\fR returns only true or false. +.PP +Unlike most operators, the smartmatch operator knows to treat \f(CW\*(C`undef\*(C'\fR +specially: +.PP +.Vb 3 +\& use v5.10.1; +\& @array = (1, 2, 3, undef, 4, 5); +\& say "some elements undefined" if undef ~~ @array; +.Ve +.PP +Each operand is considered in a modified scalar context, the modification +being that array and hash variables are passed by reference to the +operator, which implicitly dereferences them. Both elements +of each pair are the same: +.PP +.Vb 1 +\& use v5.10.1; +\& +\& my %hash = (red => 1, blue => 2, green => 3, +\& orange => 4, yellow => 5, purple => 6, +\& black => 7, grey => 8, white => 9); +\& +\& my @array = qw(red blue green); +\& +\& say "some array elements in hash keys" if @array ~~ %hash; +\& say "some array elements in hash keys" if \e@array ~~ \e%hash; +\& +\& say "red in array" if "red" ~~ @array; +\& say "red in array" if "red" ~~ \e@array; +\& +\& say "some keys end in e" if /e$/ ~~ %hash; +\& say "some keys end in e" if /e$/ ~~ \e%hash; +.Ve +.PP +Two arrays smartmatch if each element in the first array smartmatches +(that is, is \*(L"in\*(R") the corresponding element in the second array, +recursively. +.PP +.Vb 6 +\& use v5.10.1; +\& my @little = qw(red blue green); +\& my @bigger = ("red", "blue", [ "orange", "green" ] ); +\& if (@little ~~ @bigger) { # true! +\& say "little is contained in bigger"; +\& } +.Ve +.PP +Because the smartmatch operator recurses on nested arrays, this +will still report that \*(L"red\*(R" is in the array. +.PP +.Vb 4 +\& use v5.10.1; +\& my @array = qw(red blue green); +\& my $nested_array = [[[[[[[ @array ]]]]]]]; +\& say "red in array" if "red" ~~ $nested_array; +.Ve +.PP +If two arrays smartmatch each other, then they are deep +copies of each others' values, as this example reports: +.PP +.Vb 3 +\& use v5.12.0; +\& my @a = (0, 1, 2, [3, [4, 5], 6], 7); +\& my @b = (0, 1, 2, [3, [4, 5], 6], 7); +\& +\& if (@a ~~ @b && @b ~~ @a) { +\& say "a and b are deep copies of each other"; +\& } +\& elsif (@a ~~ @b) { +\& say "a smartmatches in b"; +\& } +\& elsif (@b ~~ @a) { +\& say "b smartmatches in a"; +\& } +\& else { +\& say "a and b don\*(Aqt smartmatch each other at all"; +\& } +.Ve +.PP +If you were to set \f(CW\*(C`$b[3]\ =\ 4\*(C'\fR, then instead of reporting that \*(L"a and b +are deep copies of each other\*(R", it now reports that \f(CW"b smartmatches in a"\fR. +That's because the corresponding position in \f(CW@a\fR contains an array that +(eventually) has a 4 in it. +.PP +Smartmatching one hash against another reports whether both contain the +same keys, no more and no less. This could be used to see whether two +records have the same field names, without caring what values those fields +might have. For example: +.PP +.Vb 3 +\& use v5.10.1; +\& sub make_dogtag { +\& state $REQUIRED_FIELDS = { name=>1, rank=>1, serial_num=>1 }; +\& +\& my ($class, $init_fields) = @_; +\& +\& die "Must supply (only) name, rank, and serial number" +\& unless $init_fields ~~ $REQUIRED_FIELDS; +\& +\& ... +\& } +.Ve +.PP +However, this only does what you mean if \f(CW$init_fields\fR is indeed a hash +reference. The condition \f(CW\*(C`$init_fields ~~ $REQUIRED_FIELDS\*(C'\fR also allows the +strings \f(CW"name"\fR, \f(CW"rank"\fR, \f(CW"serial_num"\fR as well as any array reference +that contains \f(CW"name"\fR or \f(CW"rank"\fR or \f(CW"serial_num"\fR anywhere to pass +through. +.PP +The smartmatch operator is most often used as the implicit operator of a +\&\f(CW\*(C`when\*(C'\fR clause. See the section on \*(L"Switch Statements\*(R" in perlsyn. +.PP +\fISmartmatching of Objects\fR +.IX Subsection "Smartmatching of Objects" +.PP +To avoid relying on an object's underlying representation, if the +smartmatch's right operand is an object that doesn't overload \f(CW\*(C`~~\*(C'\fR, +it raises the exception "\f(CW\*(C`Smartmatching a non\-overloaded object +breaks encapsulation\*(C'\fR\*(L". That's because one has no business digging +around to see whether something is \*(R"in" an object. These are all +illegal on objects without a \f(CW\*(C`~~\*(C'\fR overload: +.PP +.Vb 3 +\& %hash ~~ $object +\& 42 ~~ $object +\& "fred" ~~ $object +.Ve +.PP +However, you can change the way an object is smartmatched by overloading +the \f(CW\*(C`~~\*(C'\fR operator. This is allowed to +extend the usual smartmatch semantics. +For objects that do have an \f(CW\*(C`~~\*(C'\fR overload, see overload. +.PP +Using an object as the left operand is allowed, although not very useful. +Smartmatching rules take precedence over overloading, so even if the +object in the left operand has smartmatch overloading, this will be +ignored. A left operand that is a non-overloaded object falls back on a +string or numeric comparison of whatever the \f(CW\*(C`ref\*(C'\fR operator returns. That +means that +.PP +.Vb 1 +\& $object ~~ X +.Ve +.PP +does \fInot\fR invoke the overload method with \f(CW\*(C`\f(CIX\f(CW\*(C'\fR as an argument. +Instead the above table is consulted as normal, and based on the type of +\&\f(CW\*(C`\f(CIX\f(CW\*(C'\fR, overloading may or may not be invoked. For simple strings or +numbers, \*(L"in\*(R" becomes equivalent to this: +.PP +.Vb 2 +\& $object ~~ $number ref($object) == $number +\& $object ~~ $string ref($object) eq $string +.Ve +.PP +For example, this reports that the handle smells IOish +(but please don't really do this!): +.PP +.Vb 5 +\& use IO::Handle; +\& my $fh = IO::Handle\->new(); +\& if ($fh ~~ /\ebIO\eb/) { +\& say "handle smells IOish"; +\& } +.Ve +.PP +That's because it treats \f(CW$fh\fR as a string like +\&\f(CW"IO::Handle=GLOB(0x8039e0)"\fR, then pattern matches against that. +.SS "Bitwise And" +.IX Xref "operator, bitwise, and bitwise and &" +.IX Subsection "Bitwise And" +Binary \f(CW"&"\fR returns its operands ANDed together bit by bit. Although no +warning is currently raised, the result is not well defined when this operation +is performed on operands that aren't either numbers (see +\&\*(L"Integer Arithmetic\*(R") nor bitstrings (see \*(L"Bitwise String Operators\*(R"). +.PP +Note that \f(CW"&"\fR has lower priority than relational operators, so for example +the parentheses are essential in a test like +.PP +.Vb 1 +\& print "Even\en" if ($x & 1) == 0; +.Ve +.PP +If the \*(L"bitwise\*(R" feature is enabled via \f(CW\*(C`use\ feature\ \*(Aqbitwise\*(Aq\*(C'\fR or +\&\f(CW\*(C`use v5.28\*(C'\fR, then this operator always treats its operands as numbers. +Before Perl 5.28 this feature produced a warning in the +\&\f(CW"experimental::bitwise"\fR category. +.SS "Bitwise Or and Exclusive Or" +.IX Xref "operator, bitwise, or bitwise or | operator, bitwise, xor bitwise xor ^" +.IX Subsection "Bitwise Or and Exclusive Or" +Binary \f(CW"|"\fR returns its operands ORed together bit by bit. +.PP +Binary \f(CW"^"\fR returns its operands XORed together bit by bit. +.PP +Although no warning is currently raised, the results are not well +defined when these operations are performed on operands that aren't either +numbers (see \*(L"Integer Arithmetic\*(R") nor bitstrings (see \*(L"Bitwise String +Operators\*(R"). +.PP +Note that \f(CW"|"\fR and \f(CW"^"\fR have lower priority than relational operators, so +for example the parentheses are essential in a test like +.PP +.Vb 1 +\& print "false\en" if (8 | 2) != 10; +.Ve +.PP +If the \*(L"bitwise\*(R" feature is enabled via \f(CW\*(C`use\ feature\ \*(Aqbitwise\*(Aq\*(C'\fR or +\&\f(CW\*(C`use v5.28\*(C'\fR, then this operator always treats its operands as numbers. +Before Perl 5.28. this feature produced a warning in the +\&\f(CW"experimental::bitwise"\fR category. +.SS "C\-style Logical And" +.IX Xref "&& logical and operator, logical, and" +.IX Subsection "C-style Logical And" +Binary \f(CW"&&"\fR performs a short-circuit logical \s-1AND\s0 operation. That is, +if the left operand is false, the right operand is not even evaluated. +Scalar or list context propagates down to the right operand if it +is evaluated. +.SS "C\-style Logical Or" +.IX Xref "|| operator, logical, or" +.IX Subsection "C-style Logical Or" +Binary \f(CW"||"\fR performs a short-circuit logical \s-1OR\s0 operation. That is, +if the left operand is true, the right operand is not even evaluated. +Scalar or list context propagates down to the right operand if it +is evaluated. +.SS "Logical Defined-Or" +.IX Xref "operator, logical, defined-or" +.IX Subsection "Logical Defined-Or" +Although it has no direct equivalent in C, Perl's \f(CW\*(C`//\*(C'\fR operator is related +to its C\-style \*(L"or\*(R". In fact, it's exactly the same as \f(CW\*(C`||\*(C'\fR, except that it +tests the left hand side's definedness instead of its truth. Thus, +\&\f(CW\*(C`EXPR1\ //\ EXPR2\*(C'\fR returns the value of \f(CW\*(C`EXPR1\*(C'\fR if it's defined, +otherwise, the value of \f(CW\*(C`EXPR2\*(C'\fR is returned. +(\f(CW\*(C`EXPR1\*(C'\fR is evaluated in scalar context, \f(CW\*(C`EXPR2\*(C'\fR +in the context of \f(CW\*(C`//\*(C'\fR itself). Usually, +this is the same result as \f(CW\*(C`defined(EXPR1)\ ?\ EXPR1\ :\ EXPR2\*(C'\fR (except that +the ternary-operator form can be used as a lvalue, while \f(CW\*(C`EXPR1\ //\ EXPR2\*(C'\fR +cannot). This is very useful for +providing default values for variables. If you actually want to test if +at least one of \f(CW$x\fR and \f(CW$y\fR is defined, use \f(CW\*(C`defined($x\ //\ $y)\*(C'\fR. +.PP +The \f(CW\*(C`||\*(C'\fR, \f(CW\*(C`//\*(C'\fR and \f(CW\*(C`&&\*(C'\fR operators return the last value evaluated +(unlike C's \f(CW\*(C`||\*(C'\fR and \f(CW\*(C`&&\*(C'\fR, which return 0 or 1). Thus, a reasonably +portable way to find out the home directory might be: +.PP +.Vb 4 +\& $home = $ENV{HOME} +\& // $ENV{LOGDIR} +\& // (getpwuid($<))[7] +\& // die "You\*(Aqre homeless!\en"; +.Ve +.PP +In particular, this means that you shouldn't use this +for selecting between two aggregates for assignment: +.PP +.Vb 3 +\& @a = @b || @c; # This doesn\*(Aqt do the right thing +\& @a = scalar(@b) || @c; # because it really means this. +\& @a = @b ? @b : @c; # This works fine, though. +.Ve +.PP +As alternatives to \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR when used for +control flow, Perl provides the \f(CW\*(C`and\*(C'\fR and \f(CW\*(C`or\*(C'\fR operators (see below). +The short-circuit behavior is identical. The precedence of \f(CW"and"\fR +and \f(CW"or"\fR is much lower, however, so that you can safely use them after a +list operator without the need for parentheses: +.PP +.Vb 2 +\& unlink "alpha", "beta", "gamma" +\& or gripe(), next LINE; +.Ve +.PP +With the C\-style operators that would have been written like this: +.PP +.Vb 2 +\& unlink("alpha", "beta", "gamma") +\& || (gripe(), next LINE); +.Ve +.PP +It would be even more readable to write that this way: +.PP +.Vb 4 +\& unless(unlink("alpha", "beta", "gamma")) { +\& gripe(); +\& next LINE; +\& } +.Ve +.PP +Using \f(CW"or"\fR for assignment is unlikely to do what you want; see below. +.SS "Range Operators" +.IX Xref "operator, range range .. ..." +.IX Subsection "Range Operators" +Binary \f(CW".."\fR is the range operator, which is really two different +operators depending on the context. In list context, it returns a +list of values counting (up by ones) from the left value to the right +value. If the left value is greater than the right value then it +returns the empty list. The range operator is useful for writing +\&\f(CW\*(C`foreach\ (1..10)\*(C'\fR loops and for doing slice operations on arrays. In +the current implementation, no temporary array is created when the +range operator is used as the expression in \f(CW\*(C`foreach\*(C'\fR loops, but older +versions of Perl might burn a lot of memory when you write something +like this: +.PP +.Vb 3 +\& for (1 .. 1_000_000) { +\& # code +\& } +.Ve +.PP +The range operator also works on strings, using the magical +auto-increment, see below. +.PP +In scalar context, \f(CW".."\fR returns a boolean value. The operator is +bistable, like a flip-flop, and emulates the line-range (comma) +operator of \fBsed\fR, \fBawk\fR, and various editors. Each \f(CW".."\fR operator +maintains its own boolean state, even across calls to a subroutine +that contains it. It is false as long as its left operand is false. +Once the left operand is true, the range operator stays true until the +right operand is true, \fI\s-1AFTER\s0\fR which the range operator becomes false +again. It doesn't become false till the next time the range operator +is evaluated. It can test the right operand and become false on the +same evaluation it became true (as in \fBawk\fR), but it still returns +true once. If you don't want it to test the right operand until the +next evaluation, as in \fBsed\fR, just use three dots (\f(CW"..."\fR) instead of +two. In all other regards, \f(CW"..."\fR behaves just like \f(CW".."\fR does. +.PP +The right operand is not evaluated while the operator is in the +\&\*(L"false\*(R" state, and the left operand is not evaluated while the +operator is in the \*(L"true\*(R" state. The precedence is a little lower +than || and &&. The value returned is either the empty string for +false, or a sequence number (beginning with 1) for true. The sequence +number is reset for each range encountered. The final sequence number +in a range has the string \f(CW"E0"\fR appended to it, which doesn't affect +its numeric value, but gives you something to search for if you want +to exclude the endpoint. You can exclude the beginning point by +waiting for the sequence number to be greater than 1. +.PP +If either operand of scalar \f(CW".."\fR is a constant expression, +that operand is considered true if it is equal (\f(CW\*(C`==\*(C'\fR) to the current +input line number (the \f(CW$.\fR variable). +.PP +To be pedantic, the comparison is actually \f(CW\*(C`int(EXPR)\ ==\ int(EXPR)\*(C'\fR, +but that is only an issue if you use a floating point expression; when +implicitly using \f(CW$.\fR as described in the previous paragraph, the +comparison is \f(CW\*(C`int(EXPR)\ ==\ int($.)\*(C'\fR which is only an issue when \f(CW$.\fR +is set to a floating point value and you are not reading from a file. +Furthermore, \f(CW"span"\ ..\ "spat"\fR or \f(CW\*(C`2.18\ ..\ 3.14\*(C'\fR will not do what +you want in scalar context because each of the operands are evaluated +using their integer representation. +.PP +Examples: +.PP +As a scalar operator: +.PP +.Vb 2 +\& if (101 .. 200) { print; } # print 2nd hundred lines, short for +\& # if ($. == 101 .. $. == 200) { print; } +\& +\& next LINE if (1 .. /^$/); # skip header lines, short for +\& # next LINE if ($. == 1 .. /^$/); +\& # (typically in a loop labeled LINE) +\& +\& s/^/> / if (/^$/ .. eof()); # quote body +\& +\& # parse mail messages +\& while (<>) { +\& $in_header = 1 .. /^$/; +\& $in_body = /^$/ .. eof; +\& if ($in_header) { +\& # do something +\& } else { # in body +\& # do something else +\& } +\& } continue { +\& close ARGV if eof; # reset $. each file +\& } +.Ve +.PP +Here's a simple example to illustrate the difference between +the two range operators: +.PP +.Vb 4 +\& @lines = (" \- Foo", +\& "01 \- Bar", +\& "1 \- Baz", +\& " \- Quux"); +\& +\& foreach (@lines) { +\& if (/0/ .. /1/) { +\& print "$_\en"; +\& } +\& } +.Ve +.PP +This program will print only the line containing \*(L"Bar\*(R". If +the range operator is changed to \f(CW\*(C`...\*(C'\fR, it will also print the +\&\*(L"Baz\*(R" line. +.PP +And now some examples as a list operator: +.PP +.Vb 3 +\& for (101 .. 200) { print } # print $_ 100 times +\& @foo = @foo[0 .. $#foo]; # an expensive no\-op +\& @foo = @foo[$#foo\-4 .. $#foo]; # slice last 5 items +.Ve +.PP +Because each operand is evaluated in integer form, \f(CW\*(C`2.18\ ..\ 3.14\*(C'\fR will +return two elements in list context. +.PP +.Vb 1 +\& @list = (2.18 .. 3.14); # same as @list = (2 .. 3); +.Ve +.PP +The range operator in list context can make use of the magical +auto-increment algorithm if both operands are strings, subject to the +following rules: +.IP "\(bu" 4 +With one exception (below), if both strings look like numbers to Perl, +the magic increment will not be applied, and the strings will be treated +as numbers (more specifically, integers) instead. +.Sp +For example, \f(CW"\-2".."2"\fR is the same as \f(CW\*(C`\-2..2\*(C'\fR, and +\&\f(CW"2.18".."3.14"\fR produces \f(CW\*(C`2, 3\*(C'\fR. +.IP "\(bu" 4 +The exception to the above rule is when the left-hand string begins with +\&\f(CW0\fR and is longer than one character, in this case the magic increment +\&\fIwill\fR be applied, even though strings like \f(CW"01"\fR would normally look +like a number to Perl. +.Sp +For example, \f(CW"01".."04"\fR produces \f(CW"01", "02", "03", "04"\fR, and +\&\f(CW"00".."\-1"\fR produces \f(CW"00"\fR through \f(CW"99"\fR \- this may seem +surprising, but see the following rules for why it works this way. +To get dates with leading zeros, you can say: +.Sp +.Vb 2 +\& @z2 = ("01" .. "31"); +\& print $z2[$mday]; +.Ve +.Sp +If you want to force strings to be interpreted as numbers, you could say +.Sp +.Vb 1 +\& @numbers = ( 0+$first .. 0+$last ); +.Ve +.Sp +\&\fBNote:\fR In Perl versions 5.30 and below, \fIany\fR string on the left-hand +side beginning with \f(CW"0"\fR, including the string \f(CW"0"\fR itself, would +cause the magic string increment behavior. This means that on these Perl +versions, \f(CW"0".."\-1"\fR would produce \f(CW"0"\fR through \f(CW"99"\fR, which was +inconsistent with \f(CW\*(C`0..\-1\*(C'\fR, which produces the empty list. This also means +that \f(CW"0".."9"\fR now produces a list of integers instead of a list of +strings. +.IP "\(bu" 4 +If the initial value specified isn't part of a magical increment +sequence (that is, a non-empty string matching \f(CW\*(C`/^[a\-zA\-Z]*[0\-9]*\ez/\*(C'\fR), +only the initial value will be returned. +.Sp +For example, \f(CW"ax".."az"\fR produces \f(CW"ax", "ay", "az"\fR, but +\&\f(CW"*x".."az"\fR produces only \f(CW"*x"\fR. +.IP "\(bu" 4 +For other initial values that are strings that do follow the rules of the +magical increment, the corresponding sequence will be returned. +.Sp +For example, you can say +.Sp +.Vb 1 +\& @alphabet = ("A" .. "Z"); +.Ve +.Sp +to get all normal letters of the English alphabet, or +.Sp +.Vb 1 +\& $hexdigit = (0 .. 9, "a" .. "f")[$num & 15]; +.Ve +.Sp +to get a hexadecimal digit. +.IP "\(bu" 4 +If the final value specified is not in the sequence that the magical +increment would produce, the sequence goes until the next value would +be longer than the final value specified. If the length of the final +string is shorter than the first, the empty list is returned. +.Sp +For example, \f(CW"a".."\-\-"\fR is the same as \f(CW"a".."zz"\fR, \f(CW"0".."xx"\fR +produces \f(CW"0"\fR through \f(CW"99"\fR, and \f(CW"aaa".."\-\-"\fR returns the empty +list. +.PP +As of Perl 5.26, the list-context range operator on strings works as expected +in the scope of \f(CW"use\ feature\ \*(Aqunicode_strings"\fR. In previous versions, and outside the scope of +that feature, it exhibits \*(L"The \*(R"Unicode Bug"" in perlunicode: its behavior +depends on the internal encoding of the range endpoint. +.PP +Because the magical increment only works on non-empty strings matching +\&\f(CW\*(C`/^[a\-zA\-Z]*[0\-9]*\ez/\*(C'\fR, the following will only return an alpha: +.PP +.Vb 2 +\& use charnames "greek"; +\& my @greek_small = ("\eN{alpha}" .. "\eN{omega}"); +.Ve +.PP +To get the 25 traditional lowercase Greek letters, including both sigmas, +you could use this instead: +.PP +.Vb 5 +\& use charnames "greek"; +\& my @greek_small = map { chr } ( ord("\eN{alpha}") +\& .. +\& ord("\eN{omega}") +\& ); +.Ve +.PP +However, because there are \fImany\fR other lowercase Greek characters than +just those, to match lowercase Greek characters in a regular expression, +you could use the pattern \f(CW\*(C`/(?:(?=\ep{Greek})\ep{Lower})+/\*(C'\fR (or the +experimental feature \f(CW\*(C`/(?[\ \ep{Greek}\ &\ \ep{Lower}\ ])+/\*(C'\fR). +.SS "Conditional Operator" +.IX Xref "operator, conditional operator, ternary ternary ?:" +.IX Subsection "Conditional Operator" +Ternary \f(CW"?:"\fR is the conditional operator, just as in C. It works much +like an if-then-else. If the argument before the \f(CW\*(C`?\*(C'\fR is true, the +argument before the \f(CW\*(C`:\*(C'\fR is returned, otherwise the argument after the +\&\f(CW\*(C`:\*(C'\fR is returned. For example: +.PP +.Vb 2 +\& printf "I have %d dog%s.\en", $n, +\& ($n == 1) ? "" : "s"; +.Ve +.PP +Scalar or list context propagates downward into the 2nd +or 3rd argument, whichever is selected. +.PP +.Vb 3 +\& $x = $ok ? $y : $z; # get a scalar +\& @x = $ok ? @y : @z; # get an array +\& $x = $ok ? @y : @z; # oops, that\*(Aqs just a count! +.Ve +.PP +The operator may be assigned to if both the 2nd and 3rd arguments are +legal lvalues (meaning that you can assign to them): +.PP +.Vb 1 +\& ($x_or_y ? $x : $y) = $z; +.Ve +.PP +Because this operator produces an assignable result, using assignments +without parentheses will get you in trouble. For example, this: +.PP +.Vb 1 +\& $x % 2 ? $x += 10 : $x += 2 +.Ve +.PP +Really means this: +.PP +.Vb 1 +\& (($x % 2) ? ($x += 10) : $x) += 2 +.Ve +.PP +Rather than this: +.PP +.Vb 1 +\& ($x % 2) ? ($x += 10) : ($x += 2) +.Ve +.PP +That should probably be written more simply as: +.PP +.Vb 1 +\& $x += ($x % 2) ? 10 : 2; +.Ve +.SS "Assignment Operators" +.IX Xref "assignment operator, assignment = **= += *= &= <<= &&= -= = |= >>= ||= = .= %= ^= x= &.= |.= ^.=" +.IX Subsection "Assignment Operators" +\&\f(CW"="\fR is the ordinary assignment operator. +.PP +Assignment operators work as in C. That is, +.PP +.Vb 1 +\& $x += 2; +.Ve +.PP +is equivalent to +.PP +.Vb 1 +\& $x = $x + 2; +.Ve +.PP +although without duplicating any side effects that dereferencing the lvalue +might trigger, such as from \f(CW\*(C`tie()\*(C'\fR. Other assignment operators work similarly. +The following are recognized: +.PP +.Vb 4 +\& **= += *= &= &.= <<= &&= +\& \-= /= |= |.= >>= ||= +\& .= %= ^= ^.= //= +\& x= +.Ve +.PP +Although these are grouped by family, they all have the precedence +of assignment. These combined assignment operators can only operate on +scalars, whereas the ordinary assignment operator can assign to arrays, +hashes, lists and even references. (See \*(L"Context\*(R" +and \*(L"List value constructors\*(R" in perldata, and \*(L"Assigning to +References\*(R" in perlref.) +.PP +Unlike in C, the scalar assignment operator produces a valid lvalue. +Modifying an assignment is equivalent to doing the assignment and +then modifying the variable that was assigned to. This is useful +for modifying a copy of something, like this: +.PP +.Vb 1 +\& ($tmp = $global) =~ tr/13579/24680/; +.Ve +.PP +Although as of 5.14, that can be also be accomplished this way: +.PP +.Vb 2 +\& use v5.14; +\& $tmp = ($global =~ tr/13579/24680/r); +.Ve +.PP +Likewise, +.PP +.Vb 1 +\& ($x += 2) *= 3; +.Ve +.PP +is equivalent to +.PP +.Vb 2 +\& $x += 2; +\& $x *= 3; +.Ve +.PP +Similarly, a list assignment in list context produces the list of +lvalues assigned to, and a list assignment in scalar context returns +the number of elements produced by the expression on the right hand +side of the assignment. +.PP +The three dotted bitwise assignment operators (\f(CW\*(C`&.=\*(C'\fR \f(CW\*(C`|.=\*(C'\fR \f(CW\*(C`^.=\*(C'\fR) are new in +Perl 5.22. See \*(L"Bitwise String Operators\*(R". +.SS "Comma Operator" +.IX Xref "comma operator, comma ," +.IX Subsection "Comma Operator" +Binary \f(CW","\fR is the comma operator. In scalar context it evaluates +its left argument, throws that value away, then evaluates its right +argument and returns that value. This is just like C's comma operator. +.PP +In list context, it's just the list argument separator, and inserts +both its arguments into the list. These arguments are also evaluated +from left to right. +.PP +The \f(CW\*(C`=>\*(C'\fR operator (sometimes pronounced \*(L"fat comma\*(R") is a synonym +for the comma except that it causes a +word on its left to be interpreted as a string if it begins with a letter +or underscore and is composed only of letters, digits and underscores. +This includes operands that might otherwise be interpreted as operators, +constants, single number v\-strings or function calls. If in doubt about +this behavior, the left operand can be quoted explicitly. +.PP +Otherwise, the \f(CW\*(C`=>\*(C'\fR operator behaves exactly as the comma operator +or list argument separator, according to context. +.PP +For example: +.PP +.Vb 1 +\& use constant FOO => "something"; +\& +\& my %h = ( FOO => 23 ); +.Ve +.PP +is equivalent to: +.PP +.Vb 1 +\& my %h = ("FOO", 23); +.Ve +.PP +It is \fI\s-1NOT\s0\fR: +.PP +.Vb 1 +\& my %h = ("something", 23); +.Ve +.PP +The \f(CW\*(C`=>\*(C'\fR operator is helpful in documenting the correspondence +between keys and values in hashes, and other paired elements in lists. +.PP +.Vb 2 +\& %hash = ( $key => $value ); +\& login( $username => $password ); +.Ve +.PP +The special quoting behavior ignores precedence, and hence may apply to +\&\fIpart\fR of the left operand: +.PP +.Vb 1 +\& print time.shift => "bbb"; +.Ve +.PP +That example prints something like \f(CW"1314363215shiftbbb"\fR, because the +\&\f(CW\*(C`=>\*(C'\fR implicitly quotes the \f(CW\*(C`shift\*(C'\fR immediately on its left, ignoring +the fact that \f(CW\*(C`time.shift\*(C'\fR is the entire left operand. +.SS "List Operators (Rightward)" +.IX Xref "operator, list, rightward list operator" +.IX Subsection "List Operators (Rightward)" +On the right side of a list operator, the comma has very low precedence, +such that it controls all comma-separated expressions found there. +The only operators with lower precedence are the logical operators +\&\f(CW"and"\fR, \f(CW"or"\fR, and \f(CW"not"\fR, which may be used to evaluate calls to list +operators without the need for parentheses: +.PP +.Vb 2 +\& open HANDLE, "< :encoding(UTF\-8)", "filename" +\& or die "Can\*(Aqt open: $!\en"; +.Ve +.PP +However, some people find that code harder to read than writing +it with parentheses: +.PP +.Vb 2 +\& open(HANDLE, "< :encoding(UTF\-8)", "filename") +\& or die "Can\*(Aqt open: $!\en"; +.Ve +.PP +in which case you might as well just use the more customary \f(CW"||"\fR operator: +.PP +.Vb 2 +\& open(HANDLE, "< :encoding(UTF\-8)", "filename") +\& || die "Can\*(Aqt open: $!\en"; +.Ve +.PP +See also discussion of list operators in \*(L"Terms and List Operators (Leftward)\*(R". +.SS "Logical Not" +.IX Xref "operator, logical, not not" +.IX Subsection "Logical Not" +Unary \f(CW"not"\fR returns the logical negation of the expression to its right. +It's the equivalent of \f(CW"!"\fR except for the very low precedence. +.SS "Logical And" +.IX Xref "operator, logical, and and" +.IX Subsection "Logical And" +Binary \f(CW"and"\fR returns the logical conjunction of the two surrounding +expressions. It's equivalent to \f(CW\*(C`&&\*(C'\fR except for the very low +precedence. This means that it short-circuits: the right +expression is evaluated only if the left expression is true. +.SS "Logical or and Exclusive Or" +.IX Xref "operator, logical, or operator, logical, xor operator, logical, exclusive or or xor" +.IX Subsection "Logical or and Exclusive Or" +Binary \f(CW"or"\fR returns the logical disjunction of the two surrounding +expressions. It's equivalent to \f(CW\*(C`||\*(C'\fR except for the very low precedence. +This makes it useful for control flow: +.PP +.Vb 1 +\& print FH $data or die "Can\*(Aqt write to FH: $!"; +.Ve +.PP +This means that it short-circuits: the right expression is evaluated +only if the left expression is false. Due to its precedence, you must +be careful to avoid using it as replacement for the \f(CW\*(C`||\*(C'\fR operator. +It usually works out better for flow control than in assignments: +.PP +.Vb 3 +\& $x = $y or $z; # bug: this is wrong +\& ($x = $y) or $z; # really means this +\& $x = $y || $z; # better written this way +.Ve +.PP +However, when it's a list-context assignment and you're trying to use +\&\f(CW\*(C`||\*(C'\fR for control flow, you probably need \f(CW"or"\fR so that the assignment +takes higher precedence. +.PP +.Vb 2 +\& @info = stat($file) || die; # oops, scalar sense of stat! +\& @info = stat($file) or die; # better, now @info gets its due +.Ve +.PP +Then again, you could always use parentheses. +.PP +Binary \f(CW"xor"\fR returns the exclusive-OR of the two surrounding expressions. +It cannot short-circuit (of course). +.PP +There is no low precedence operator for defined-OR. +.SS "C Operators Missing From Perl" +.IX Xref "operator, missing from perl & * typecasting (TYPE)" +.IX Subsection "C Operators Missing From Perl" +Here is what C has that Perl doesn't: +.IP "unary &" 8 +.IX Item "unary &" +Address-of operator. (But see the \f(CW"\e"\fR operator for taking a reference.) +.IP "unary *" 8 +.IX Item "unary *" +Dereference-address operator. (Perl's prefix dereferencing +operators are typed: \f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR, \f(CW\*(C`%\*(C'\fR, and \f(CW\*(C`&\*(C'\fR.) +.IP "(\s-1TYPE\s0)" 8 +.IX Item "(TYPE)" +Type-casting operator. +.SS "Quote and Quote-like Operators" +.IX Xref "operator, quote operator, quote-like q qq qx qw m qr s tr ' '' "" """" ` `` << escape sequence escape" +.IX Subsection "Quote and Quote-like Operators" +While we usually think of quotes as literal values, in Perl they +function as operators, providing various kinds of interpolating and +pattern matching capabilities. Perl provides customary quote characters +for these behaviors, but also provides a way for you to choose your +quote character for any of them. In the following table, a \f(CW\*(C`{}\*(C'\fR represents +any pair of delimiters you choose. +.PP +.Vb 11 +\& Customary Generic Meaning Interpolates +\& \*(Aq\*(Aq q{} Literal no +\& "" qq{} Literal yes +\& \`\` qx{} Command yes* +\& qw{} Word list no +\& // m{} Pattern match yes* +\& qr{} Pattern yes* +\& s{}{} Substitution yes* +\& tr{}{} Transliteration no (but see below) +\& y{}{} Transliteration no (but see below) +\& <{key}[0]\*(C'\fR are also interpolated, as are array and hash slices. +But method calls such as \f(CW\*(C`$obj\->meth\*(C'\fR are not. +.PP +Interpolating an array or slice interpolates the elements in order, +separated by the value of \f(CW$"\fR, so is equivalent to interpolating +\&\f(CW\*(C`join\ $",\ @array\*(C'\fR. \*(L"Punctuation\*(R" arrays such as \f(CW\*(C`@*\*(C'\fR are usually +interpolated only if the name is enclosed in braces \f(CW\*(C`@{*}\*(C'\fR, but the +arrays \f(CW@_\fR, \f(CW\*(C`@+\*(C'\fR, and \f(CW\*(C`@\-\*(C'\fR are interpolated even without braces. +.PP +For double-quoted strings, the quoting from \f(CW\*(C`\eQ\*(C'\fR is applied after +interpolation and escapes are processed. +.PP +.Vb 1 +\& "abc\eQfoo\etbar$s\eExyz" +.Ve +.PP +is equivalent to +.PP +.Vb 1 +\& "abc" . quotemeta("foo\etbar$s") . "xyz" +.Ve +.PP +For the pattern of regex operators (\f(CW\*(C`qr//\*(C'\fR, \f(CW\*(C`m//\*(C'\fR and \f(CW\*(C`s///\*(C'\fR), +the quoting from \f(CW\*(C`\eQ\*(C'\fR is applied after interpolation is processed, +but before escapes are processed. This allows the pattern to match +literally (except for \f(CW\*(C`$\*(C'\fR and \f(CW\*(C`@\*(C'\fR). For example, the following matches: +.PP +.Vb 1 +\& \*(Aq\es\et\*(Aq =~ /\eQ\es\et/ +.Ve +.PP +Because \f(CW\*(C`$\*(C'\fR or \f(CW\*(C`@\*(C'\fR trigger interpolation, you'll need to use something +like \f(CW\*(C`/\eQuser\eE\e@\eQhost/\*(C'\fR to match them literally. +.PP +Patterns are subject to an additional level of interpretation as a +regular expression. This is done as a second pass, after variables are +interpolated, so that regular expressions may be incorporated into the +pattern from the variables. If this is not what you want, use \f(CW\*(C`\eQ\*(C'\fR to +interpolate a variable literally. +.PP +Apart from the behavior described above, Perl does not expand +multiple levels of interpolation. In particular, contrary to the +expectations of shell programmers, back-quotes do \fI\s-1NOT\s0\fR interpolate +within double quotes, nor do single quotes impede evaluation of +variables when used within double quotes. +.SS "Regexp Quote-Like Operators" +.IX Xref "operator, regexp" +.IX Subsection "Regexp Quote-Like Operators" +Here are the quote-like operators that apply to pattern +matching and related activities. +.ie n .IP """qr/\fISTRING\fP/msixpodualn""" 8 +.el .IP "\f(CWqr/\f(CISTRING\f(CW/msixpodualn\fR" 8 +.IX Xref "qr i m o s x p" +.IX Item "qr/STRING/msixpodualn" +This operator quotes (and possibly compiles) its \fI\s-1STRING\s0\fR as a regular +expression. \fI\s-1STRING\s0\fR is interpolated the same way as \fI\s-1PATTERN\s0\fR +in \f(CW\*(C`m/\f(CIPATTERN\f(CW/\*(C'\fR. If \f(CW"\*(Aq"\fR is used as the delimiter, no variable +interpolation is done. Returns a Perl value which may be used instead of the +corresponding \f(CW\*(C`/\f(CISTRING\f(CW/msixpodualn\*(C'\fR expression. The returned value is a +normalized version of the original pattern. It magically differs from +a string containing the same characters: \f(CW\*(C`ref(qr/x/)\*(C'\fR returns \*(L"Regexp\*(R"; +however, dereferencing it is not well defined (you currently get the +normalized version of the original pattern, but this may change). +.Sp +For example, +.Sp +.Vb 3 +\& $rex = qr/my.STRING/is; +\& print $rex; # prints (?si\-xm:my.STRING) +\& s/$rex/foo/; +.Ve +.Sp +is equivalent to +.Sp +.Vb 1 +\& s/my.STRING/foo/is; +.Ve +.Sp +The result may be used as a subpattern in a match: +.Sp +.Vb 5 +\& $re = qr/$pattern/; +\& $string =~ /foo${re}bar/; # can be interpolated in other +\& # patterns +\& $string =~ $re; # or used standalone +\& $string =~ /$re/; # or this way +.Ve +.Sp +Since Perl may compile the pattern at the moment of execution of the \f(CW\*(C`qr()\*(C'\fR +operator, using \f(CW\*(C`qr()\*(C'\fR may have speed advantages in some situations, +notably if the result of \f(CW\*(C`qr()\*(C'\fR is used standalone: +.Sp +.Vb 11 +\& sub match { +\& my $patterns = shift; +\& my @compiled = map qr/$_/i, @$patterns; +\& grep { +\& my $success = 0; +\& foreach my $pat (@compiled) { +\& $success = 1, last if /$pat/; +\& } +\& $success; +\& } @_; +\& } +.Ve +.Sp +Precompilation of the pattern into an internal representation at +the moment of \f(CW\*(C`qr()\*(C'\fR avoids the need to recompile the pattern every +time a match \f(CW\*(C`/$pat/\*(C'\fR is attempted. (Perl has many other internal +optimizations, but none would be triggered in the above example if +we did not use \f(CW\*(C`qr()\*(C'\fR operator.) +.Sp +Options (specified by the following modifiers) are: +.Sp +.Vb 10 +\& m Treat string as multiple lines. +\& s Treat string as single line. (Make . match a newline) +\& i Do case\-insensitive pattern matching. +\& x Use extended regular expressions; specifying two +\& x\*(Aqs means \et and the SPACE character are ignored within +\& square\-bracketed character classes +\& p When matching preserve a copy of the matched string so +\& that ${^PREMATCH}, ${^MATCH}, ${^POSTMATCH} will be +\& defined (ignored starting in v5.20) as these are always +\& defined starting in that release +\& o Compile pattern only once. +\& a ASCII\-restrict: Use ASCII for \ed, \es, \ew and [[:posix:]] +\& character classes; specifying two a\*(Aqs adds the further +\& restriction that no ASCII character will match a +\& non\-ASCII one under /i. +\& l Use the current run\-time locale\*(Aqs rules. +\& u Use Unicode rules. +\& d Use Unicode or native charset, as in 5.12 and earlier. +\& n Non\-capture mode. Don\*(Aqt let () fill in $1, $2, etc... +.Ve +.Sp +If a precompiled pattern is embedded in a larger pattern then the effect +of \f(CW"msixpluadn"\fR will be propagated appropriately. The effect that the +\&\f(CW\*(C`/o\*(C'\fR modifier has is not propagated, being restricted to those patterns +explicitly using it. +.Sp +The \f(CW\*(C`/a\*(C'\fR, \f(CW\*(C`/d\*(C'\fR, \f(CW\*(C`/l\*(C'\fR, and \f(CW\*(C`/u\*(C'\fR modifiers (added in Perl 5.14) +control the character set rules, but \f(CW\*(C`/a\*(C'\fR is the only one you are likely +to want to specify explicitly; the other three are selected +automatically by various pragmas. +.Sp +See perlre for additional information on valid syntax for \fI\s-1STRING\s0\fR, and +for a detailed look at the semantics of regular expressions. In +particular, all modifiers except the largely obsolete \f(CW\*(C`/o\*(C'\fR are further +explained in \*(L"Modifiers\*(R" in perlre. \f(CW\*(C`/o\*(C'\fR is described in the next section. +.ie n .IP """m/\fIPATTERN\fP/msixpodualngc""" 8 +.el .IP "\f(CWm/\f(CIPATTERN\f(CW/msixpodualngc\fR" 8 +.IX Xref "m operator, match regexp, options regexp regex, options regex m s i x p o g c" +.IX Item "m/PATTERN/msixpodualngc" +.PD 0 +.ie n .IP """/\fIPATTERN\fP/msixpodualngc""" 8 +.el .IP "\f(CW/\f(CIPATTERN\f(CW/msixpodualngc\fR" 8 +.IX Item "/PATTERN/msixpodualngc" +.PD +Searches a string for a pattern match, and in scalar context returns +true if it succeeds, false if it fails. If no string is specified +via the \f(CW\*(C`=~\*(C'\fR or \f(CW\*(C`!~\*(C'\fR operator, the \f(CW$_\fR string is searched. (The +string specified with \f(CW\*(C`=~\*(C'\fR need not be an lvalue\*(--it may be the +result of an expression evaluation, but remember the \f(CW\*(C`=~\*(C'\fR binds +rather tightly.) See also perlre. +.Sp +Options are as described in \f(CW\*(C`qr//\*(C'\fR above; in addition, the following match +process modifiers are available: +.Sp +.Vb 3 +\& g Match globally, i.e., find all occurrences. +\& c Do not reset search position on a failed match when /g is +\& in effect. +.Ve +.Sp +If \f(CW"/"\fR is the delimiter then the initial \f(CW\*(C`m\*(C'\fR is optional. With the \f(CW\*(C`m\*(C'\fR +you can use any pair of non-whitespace (\s-1ASCII\s0) characters +as delimiters. This is particularly useful for matching path names +that contain \f(CW"/"\fR, to avoid \s-1LTS\s0 (leaning toothpick syndrome). If \f(CW"?"\fR is +the delimiter, then a match-only-once rule applies, +described in \f(CW\*(C`m?\f(CIPATTERN\f(CW?\*(C'\fR below. If \f(CW"\*(Aq"\fR (single quote) is the delimiter, +no variable interpolation is performed on the \fI\s-1PATTERN\s0\fR. +When using a delimiter character valid in an identifier, whitespace is required +after the \f(CW\*(C`m\*(C'\fR. +.Sp +\&\fI\s-1PATTERN\s0\fR may contain variables, which will be interpolated +every time the pattern search is evaluated, except +for when the delimiter is a single quote. (Note that \f(CW$(\fR, \f(CW$)\fR, and +\&\f(CW$|\fR are not interpolated because they look like end-of-string tests.) +Perl will not recompile the pattern unless an interpolated +variable that it contains changes. You can force Perl to skip the +test and never recompile by adding a \f(CW\*(C`/o\*(C'\fR (which stands for \*(L"once\*(R") +after the trailing delimiter. +Once upon a time, Perl would recompile regular expressions +unnecessarily, and this modifier was useful to tell it not to do so, in the +interests of speed. But now, the only reasons to use \f(CW\*(C`/o\*(C'\fR are one of: +.RS 8 +.IP "1." 4 +The variables are thousands of characters long and you know that they +don't change, and you need to wring out the last little bit of speed by +having Perl skip testing for that. (There is a maintenance penalty for +doing this, as mentioning \f(CW\*(C`/o\*(C'\fR constitutes a promise that you won't +change the variables in the pattern. If you do change them, Perl won't +even notice.) +.IP "2." 4 +you want the pattern to use the initial values of the variables +regardless of whether they change or not. (But there are saner ways +of accomplishing this than using \f(CW\*(C`/o\*(C'\fR.) +.IP "3." 4 +If the pattern contains embedded code, such as +.Sp +.Vb 3 +\& use re \*(Aqeval\*(Aq; +\& $code = \*(Aqfoo(?{ $x })\*(Aq; +\& /$code/ +.Ve +.Sp +then perl will recompile each time, even though the pattern string hasn't +changed, to ensure that the current value of \f(CW$x\fR is seen each time. +Use \f(CW\*(C`/o\*(C'\fR if you want to avoid this. +.RE +.RS 8 +.Sp +The bottom line is that using \f(CW\*(C`/o\*(C'\fR is almost never a good idea. +.RE +.ie n .IP "The empty pattern ""//""" 8 +.el .IP "The empty pattern \f(CW//\fR" 8 +.IX Item "The empty pattern //" +If the \fI\s-1PATTERN\s0\fR evaluates to the empty string, the last +\&\fIsuccessfully\fR matched regular expression is used instead. In this +case, only the \f(CW\*(C`g\*(C'\fR and \f(CW\*(C`c\*(C'\fR flags on the empty pattern are honored; +the other flags are taken from the original pattern. If no match has +previously succeeded, this will (silently) act instead as a genuine +empty pattern (which will always match). +.Sp +Note that it's possible to confuse Perl into thinking \f(CW\*(C`//\*(C'\fR (the empty +regex) is really \f(CW\*(C`//\*(C'\fR (the defined-or operator). Perl is usually pretty +good about this, but some pathological cases might trigger this, such as +\&\f(CW\*(C`$x///\*(C'\fR (is that \f(CW\*(C`($x)\ /\ (//)\*(C'\fR or \f(CW\*(C`$x\ //\ /\*(C'\fR?) and \f(CW\*(C`print\ $fh\ //\*(C'\fR +(\f(CW\*(C`print\ $fh(//\*(C'\fR or \f(CW\*(C`print($fh\ //\*(C'\fR?). In all of these examples, Perl +will assume you meant defined-or. If you meant the empty regex, just +use parentheses or spaces to disambiguate, or even prefix the empty +regex with an \f(CW\*(C`m\*(C'\fR (so \f(CW\*(C`//\*(C'\fR becomes \f(CW\*(C`m//\*(C'\fR). +.IP "Matching in list context" 8 +.IX Item "Matching in list context" +If the \f(CW\*(C`/g\*(C'\fR option is not used, \f(CW\*(C`m//\*(C'\fR in list context returns a +list consisting of the subexpressions matched by the parentheses in the +pattern, that is, (\f(CW$1\fR, \f(CW$2\fR, \f(CW$3\fR...) (Note that here \f(CW$1\fR etc. are +also set). When there are no parentheses in the pattern, the return +value is the list \f(CW\*(C`(1)\*(C'\fR for success. +With or without parentheses, an empty list is returned upon failure. +.Sp +Examples: +.Sp +.Vb 2 +\& open(TTY, "+ =~ /^y/i && foo(); # do foo if desired +\& +\& if (/Version: *([0\-9.]*)/) { $version = $1; } +\& +\& next if m#^/usr/spool/uucp#; +\& +\& # poor man\*(Aqs grep +\& $arg = shift; +\& while (<>) { +\& print if /$arg/o; # compile only once (no longer needed!) +\& } +\& +\& if (($F1, $F2, $Etc) = ($foo =~ /^(\eS+)\es+(\eS+)\es*(.*)/)) +.Ve +.Sp +This last example splits \f(CW$foo\fR into the first two words and the +remainder of the line, and assigns those three fields to \f(CW$F1\fR, \f(CW$F2\fR, and +\&\f(CW$Etc\fR. The conditional is true if any variables were assigned; that is, +if the pattern matched. +.Sp +The \f(CW\*(C`/g\*(C'\fR modifier specifies global pattern matching\*(--that is, +matching as many times as possible within the string. How it behaves +depends on the context. In list context, it returns a list of the +substrings matched by any capturing parentheses in the regular +expression. If there are no parentheses, it returns a list of all +the matched strings, as if there were parentheses around the whole +pattern. +.Sp +In scalar context, each execution of \f(CW\*(C`m//g\*(C'\fR finds the next match, +returning true if it matches, and false if there is no further match. +The position after the last match can be read or set using the \f(CW\*(C`pos()\*(C'\fR +function; see \*(L"pos\*(R" in perlfunc. A failed match normally resets the +search position to the beginning of the string, but you can avoid that +by adding the \f(CW\*(C`/c\*(C'\fR modifier (for example, \f(CW\*(C`m//gc\*(C'\fR). Modifying the target +string also resets the search position. +.ie n .IP """\eG \fIassertion\fP""" 8 +.el .IP "\f(CW\eG \f(CIassertion\f(CW\fR" 8 +.IX Item "G assertion" +You can intermix \f(CW\*(C`m//g\*(C'\fR matches with \f(CW\*(C`m/\eG.../g\*(C'\fR, where \f(CW\*(C`\eG\*(C'\fR is a +zero-width assertion that matches the exact position where the +previous \f(CW\*(C`m//g\*(C'\fR, if any, left off. Without the \f(CW\*(C`/g\*(C'\fR modifier, the +\&\f(CW\*(C`\eG\*(C'\fR assertion still anchors at \f(CW\*(C`pos()\*(C'\fR as it was at the start of +the operation (see \*(L"pos\*(R" in perlfunc), but the match is of course only +attempted once. Using \f(CW\*(C`\eG\*(C'\fR without \f(CW\*(C`/g\*(C'\fR on a target string that has +not previously had a \f(CW\*(C`/g\*(C'\fR match applied to it is the same as using +the \f(CW\*(C`\eA\*(C'\fR assertion to match the beginning of the string. Note also +that, currently, \f(CW\*(C`\eG\*(C'\fR is only properly supported when anchored at the +very beginning of the pattern. +.Sp +Examples: +.Sp +.Vb 2 +\& # list context +\& ($one,$five,$fifteen) = (\`uptime\` =~ /(\ed+\e.\ed+)/g); +\& +\& # scalar context +\& local $/ = ""; +\& while ($paragraph = <>) { +\& while ($paragraph =~ /\ep{Ll}[\*(Aq")]*[.!?]+[\*(Aq")]*\es/g) { +\& $sentences++; +\& } +\& } +\& say $sentences; +.Ve +.Sp +Here's another way to check for sentences in a paragraph: +.Sp +.Vb 10 +\& my $sentence_rx = qr{ +\& (?: (?<= ^ ) | (?<= \es ) ) # after start\-of\-string or +\& # whitespace +\& \ep{Lu} # capital letter +\& .*? # a bunch of anything +\& (?<= \eS ) # that ends in non\- +\& # whitespace +\& (?) { +\& say "NEW PARAGRAPH"; +\& my $count = 0; +\& while ($paragraph =~ /($sentence_rx)/g) { +\& printf "\etgot sentence %d: <%s>\en", ++$count, $1; +\& } +\& } +.Ve +.Sp +Here's how to use \f(CW\*(C`m//gc\*(C'\fR with \f(CW\*(C`\eG\*(C'\fR: +.Sp +.Vb 10 +\& $_ = "ppooqppqq"; +\& while ($i++ < 2) { +\& print "1: \*(Aq"; +\& print $1 while /(o)/gc; print "\*(Aq, pos=", pos, "\en"; +\& print "2: \*(Aq"; +\& print $1 if /\eG(q)/gc; print "\*(Aq, pos=", pos, "\en"; +\& print "3: \*(Aq"; +\& print $1 while /(p)/gc; print "\*(Aq, pos=", pos, "\en"; +\& } +\& print "Final: \*(Aq$1\*(Aq, pos=",pos,"\en" if /\eG(.)/; +.Ve +.Sp +The last example should print: +.Sp +.Vb 7 +\& 1: \*(Aqoo\*(Aq, pos=4 +\& 2: \*(Aqq\*(Aq, pos=5 +\& 3: \*(Aqpp\*(Aq, pos=7 +\& 1: \*(Aq\*(Aq, pos=7 +\& 2: \*(Aqq\*(Aq, pos=8 +\& 3: \*(Aq\*(Aq, pos=8 +\& Final: \*(Aqq\*(Aq, pos=8 +.Ve +.Sp +Notice that the final match matched \f(CW\*(C`q\*(C'\fR instead of \f(CW\*(C`p\*(C'\fR, which a match +without the \f(CW\*(C`\eG\*(C'\fR anchor would have done. Also note that the final match +did not update \f(CW\*(C`pos\*(C'\fR. \f(CW\*(C`pos\*(C'\fR is only updated on a \f(CW\*(C`/g\*(C'\fR match. If the +final match did indeed match \f(CW\*(C`p\*(C'\fR, it's a good bet that you're running an +ancient (pre\-5.6.0) version of Perl. +.Sp +A useful idiom for \f(CW\*(C`lex\*(C'\fR\-like scanners is \f(CW\*(C`/\eG.../gc\*(C'\fR. You can +combine several regexps like this to process a string part-by-part, +doing different actions depending on which regexp matched. Each +regexp tries to match where the previous one leaves off. +.Sp +.Vb 4 +\& $_ = <<\*(AqEOL\*(Aq; +\& $url = URI::URL\->new( "http://example.com/" ); +\& die if $url eq "xXx"; +\& EOL +\& +\& LOOP: { +\& print(" digits"), redo LOOP if /\eG\ed+\eb[,.;]?\es*/gc; +\& print(" lowercase"), redo LOOP +\& if /\eG\ep{Ll}+\eb[,.;]?\es*/gc; +\& print(" UPPERCASE"), redo LOOP +\& if /\eG\ep{Lu}+\eb[,.;]?\es*/gc; +\& print(" Capitalized"), redo LOOP +\& if /\eG\ep{Lu}\ep{Ll}+\eb[,.;]?\es*/gc; +\& print(" MiXeD"), redo LOOP if /\eG\epL+\eb[,.;]?\es*/gc; +\& print(" alphanumeric"), redo LOOP +\& if /\eG[\ep{Alpha}\epN]+\eb[,.;]?\es*/gc; +\& print(" line\-noise"), redo LOOP if /\eG\eW+/gc; +\& print ". That\*(Aqs all!\en"; +\& } +.Ve +.Sp +Here is the output (split into several lines): +.Sp +.Vb 4 +\& line\-noise lowercase line\-noise UPPERCASE line\-noise UPPERCASE +\& line\-noise lowercase line\-noise lowercase line\-noise lowercase +\& lowercase line\-noise lowercase lowercase line\-noise lowercase +\& lowercase line\-noise MiXeD line\-noise. That\*(Aqs all! +.Ve +.ie n .IP """m?\fIPATTERN\fP?msixpodualngc""" 8 +.el .IP "\f(CWm?\f(CIPATTERN\f(CW?msixpodualngc\fR" 8 +.IX Xref "? operator, match-once" +.IX Item "m?PATTERN?msixpodualngc" +This is just like the \f(CW\*(C`m/\f(CIPATTERN\f(CW/\*(C'\fR search, except that it matches +only once between calls to the \f(CW\*(C`reset()\*(C'\fR operator. This is a useful +optimization when you want to see only the first occurrence of +something in each file of a set of files, for instance. Only \f(CW\*(C`m??\*(C'\fR +patterns local to the current package are reset. +.Sp +.Vb 7 +\& while (<>) { +\& if (m?^$?) { +\& # blank line between header and body +\& } +\& } continue { +\& reset if eof; # clear m?? status for next file +\& } +.Ve +.Sp +Another example switched the first \*(L"latin1\*(R" encoding it finds +to \*(L"utf8\*(R" in a pod file: +.Sp +.Vb 1 +\& s//utf8/ if m? ^ =encoding \eh+ \eK latin1 ?x; +.Ve +.Sp +The match-once behavior is controlled by the match delimiter being +\&\f(CW\*(C`?\*(C'\fR; with any other delimiter this is the normal \f(CW\*(C`m//\*(C'\fR operator. +.Sp +In the past, the leading \f(CW\*(C`m\*(C'\fR in \f(CW\*(C`m?\f(CIPATTERN\f(CW?\*(C'\fR was optional, but omitting it +would produce a deprecation warning. As of v5.22.0, omitting it produces a +syntax error. If you encounter this construct in older code, you can just add +\&\f(CW\*(C`m\*(C'\fR. +.ie n .IP """s/\fIPATTERN\fP/\fIREPLACEMENT\fP/msixpodualngcer""" 8 +.el .IP "\f(CWs/\f(CIPATTERN\f(CW/\f(CIREPLACEMENT\f(CW/msixpodualngcer\fR" 8 +.IX Xref "s substitute substitution replace regexp, replace regexp, substitute m s i x p o g c e r" +.IX Item "s/PATTERN/REPLACEMENT/msixpodualngcer" +Searches a string for a pattern, and if found, replaces that pattern +with the replacement text and returns the number of substitutions +made. Otherwise it returns false (a value that is both an empty string (\f(CW""\fR) +and numeric zero (\f(CW0\fR) as described in \*(L"Relational Operators\*(R"). +.Sp +If the \f(CW\*(C`/r\*(C'\fR (non-destructive) option is used then it runs the +substitution on a copy of the string and instead of returning the +number of substitutions, it returns the copy whether or not a +substitution occurred. The original string is never changed when +\&\f(CW\*(C`/r\*(C'\fR is used. The copy will always be a plain string, even if the +input is an object or a tied variable. +.Sp +If no string is specified via the \f(CW\*(C`=~\*(C'\fR or \f(CW\*(C`!~\*(C'\fR operator, the \f(CW$_\fR +variable is searched and modified. Unless the \f(CW\*(C`/r\*(C'\fR option is used, +the string specified must be a scalar variable, an array element, a +hash element, or an assignment to one of those; that is, some sort of +scalar lvalue. +.Sp +If the delimiter chosen is a single quote, no variable interpolation is +done on either the \fI\s-1PATTERN\s0\fR or the \fI\s-1REPLACEMENT\s0\fR. Otherwise, if the +\&\fI\s-1PATTERN\s0\fR contains a \f(CW\*(C`$\*(C'\fR that looks like a variable rather than an +end-of-string test, the variable will be interpolated into the pattern +at run-time. If you want the pattern compiled only once the first time +the variable is interpolated, use the \f(CW\*(C`/o\*(C'\fR option. If the pattern +evaluates to the empty string, the last successfully executed regular +expression is used instead. See perlre for further explanation on these. +.Sp +Options are as with \f(CW\*(C`m//\*(C'\fR with the addition of the following replacement +specific options: +.Sp +.Vb 5 +\& e Evaluate the right side as an expression. +\& ee Evaluate the right side as a string then eval the +\& result. +\& r Return substitution and leave the original string +\& untouched. +.Ve +.Sp +Any non-whitespace delimiter may replace the slashes. Add space after +the \f(CW\*(C`s\*(C'\fR when using a character allowed in identifiers. If single quotes +are used, no interpretation is done on the replacement string (the \f(CW\*(C`/e\*(C'\fR +modifier overrides this, however). Note that Perl treats backticks +as normal delimiters; the replacement text is not evaluated as a command. +If the \fI\s-1PATTERN\s0\fR is delimited by bracketing quotes, the \fI\s-1REPLACEMENT\s0\fR has +its own pair of quotes, which may or may not be bracketing quotes, for example, +\&\f(CW\*(C`s(foo)(bar)\*(C'\fR or \f(CW\*(C`s/bar/\*(C'\fR. A \f(CW\*(C`/e\*(C'\fR will cause the +replacement portion to be treated as a full-fledged Perl expression +and evaluated right then and there. It is, however, syntax checked at +compile-time. A second \f(CW\*(C`e\*(C'\fR modifier will cause the replacement portion +to be \f(CW\*(C`eval\*(C'\fRed before being run as a Perl expression. +.Sp +Examples: +.Sp +.Vb 1 +\& s/\ebgreen\eb/mauve/g; # don\*(Aqt change wintergreen +\& +\& $path =~ s|/usr/bin|/usr/local/bin|; +\& +\& s/Login: $foo/Login: $bar/; # run\-time pattern +\& +\& ($foo = $bar) =~ s/this/that/; # copy first, then +\& # change +\& ($foo = "$bar") =~ s/this/that/; # convert to string, +\& # copy, then change +\& $foo = $bar =~ s/this/that/r; # Same as above using /r +\& $foo = $bar =~ s/this/that/r +\& =~ s/that/the other/r; # Chained substitutes +\& # using /r +\& @foo = map { s/this/that/r } @bar # /r is very useful in +\& # maps +\& +\& $count = ($paragraph =~ s/Mister\eb/Mr./g); # get change\-cnt +\& +\& $_ = \*(Aqabc123xyz\*(Aq; +\& s/\ed+/$&*2/e; # yields \*(Aqabc246xyz\*(Aq +\& s/\ed+/sprintf("%5d",$&)/e; # yields \*(Aqabc 246xyz\*(Aq +\& s/\ew/$& x 2/eg; # yields \*(Aqaabbcc 224466xxyyzz\*(Aq +\& +\& s/%(.)/$percent{$1}/g; # change percent escapes; no /e +\& s/%(.)/$percent{$1} || $&/ge; # expr now, so /e +\& s/^=(\ew+)/pod($1)/ge; # use function call +\& +\& $_ = \*(Aqabc123xyz\*(Aq; +\& $x = s/abc/def/r; # $x is \*(Aqdef123xyz\*(Aq and +\& # $_ remains \*(Aqabc123xyz\*(Aq. +\& +\& # expand variables in $_, but dynamics only, using +\& # symbolic dereferencing +\& s/\e$(\ew+)/${$1}/g; +\& +\& # Add one to the value of any numbers in the string +\& s/(\ed+)/1 + $1/eg; +\& +\& # Titlecase words in the last 30 characters only +\& substr($str, \-30) =~ s/\eb(\ep{Alpha}+)\eb/\eu\eL$1/g; +\& +\& # This will expand any embedded scalar variable +\& # (including lexicals) in $_ : First $1 is interpolated +\& # to the variable name, and then evaluated +\& s/(\e$\ew+)/$1/eeg; +\& +\& # Delete (most) C comments. +\& $program =~ s { +\& /\e* # Match the opening delimiter. +\& .*? # Match a minimal number of characters. +\& \e*/ # Match the closing delimiter. +\& } []gsx; +\& +\& s/^\es*(.*?)\es*$/$1/; # trim whitespace in $_, +\& # expensively +\& +\& for ($variable) { # trim whitespace in $variable, +\& # cheap +\& s/^\es+//; +\& s/\es+$//; +\& } +\& +\& s/([^ ]*) *([^ ]*)/$2 $1/; # reverse 1st two fields +\& +\& $foo !~ s/A/a/g; # Lowercase all A\*(Aqs in $foo; return +\& # 0 if any were found and changed; +\& # otherwise return 1 +.Ve +.Sp +Note the use of \f(CW\*(C`$\*(C'\fR instead of \f(CW\*(C`\e\*(C'\fR in the last example. Unlike +\&\fBsed\fR, we use the \e<\fIdigit\fR> form only in the left hand side. +Anywhere else it's $<\fIdigit\fR>. +.Sp +Occasionally, you can't use just a \f(CW\*(C`/g\*(C'\fR to get all the changes +to occur that you might want. Here are two common cases: +.Sp +.Vb 2 +\& # put commas in the right places in an integer +\& 1 while s/(\ed)(\ed\ed\ed)(?!\ed)/$1,$2/g; +\& +\& # expand tabs to 8\-column spacing +\& 1 while s/\et+/\*(Aq \*(Aq x (length($&)*8 \- length($\`)%8)/e; +.Ve +.Sp +While \f(CW\*(C`s///\*(C'\fR accepts the \f(CW\*(C`/c\*(C'\fR flag, it has no effect beyond +producing a warning if warnings are enabled. +.IX Xref " c" +.SS "Quote-Like Operators" +.IX Xref "operator, quote-like" +.IX Subsection "Quote-Like Operators" +.ie n .IP """q/\fISTRING\fP/""" 4 +.el .IP "\f(CWq/\f(CISTRING\f(CW/\fR" 4 +.IX Xref "q quote, single ' ''" +.IX Item "q/STRING/" +.PD 0 +.ie n .IP "\*(Aq\fISTRING\fP\*(Aq" 4 +.el .IP "\f(CW\*(Aq\f(CISTRING\f(CW\*(Aq\fR" 4 +.IX Item "STRING" +.PD +A single-quoted, literal string. A backslash represents a backslash +unless followed by the delimiter or another backslash, in which case +the delimiter or backslash is interpolated. +.Sp +.Vb 3 +\& $foo = q!I said, "You said, \*(AqShe said it.\*(Aq"!; +\& $bar = q(\*(AqThis is it.\*(Aq); +\& $baz = \*(Aq\en\*(Aq; # a two\-character string +.Ve +.ie n .IP """qq/\fISTRING\fP/""" 4 +.el .IP "\f(CWqq/\f(CISTRING\f(CW/\fR" 4 +.IX Xref "qq quote, double "" """"" +.IX Item "qq/STRING/" +.PD 0 +.ie n .IP """\fISTRING\fP""" 4 +.el .IP "\f(CW``\f(CISTRING\f(CW''\fR" 4 +.IX Item """STRING""" +.PD +A double-quoted, interpolated string. +.Sp +.Vb 4 +\& $_ .= qq +\& (*** The previous line contains the naughty word "$1".\en) +\& if /\eb(tcl|java|python)\eb/i; # :\-) +\& $baz = "\en"; # a one\-character string +.Ve +.ie n .IP """qx/\fISTRING\fP/""" 4 +.el .IP "\f(CWqx/\f(CISTRING\f(CW/\fR" 4 +.IX Xref "qx ` `` backtick" +.IX Item "qx/STRING/" +.PD 0 +.ie n .IP """\`\fISTRING\fP\`""" 4 +.el .IP "\f(CW\`\f(CISTRING\f(CW\`\fR" 4 +.IX Item "STRING" +.PD +A string which is (possibly) interpolated and then executed as a +system command, via \fI/bin/sh\fR or its equivalent if required. Shell +wildcards, pipes, and redirections will be honored. Similarly to +\&\f(CW\*(C`system\*(C'\fR, if the string contains no shell metacharacters then it will +executed directly. The collected standard output of the command is +returned; standard error is unaffected. In scalar context, it comes +back as a single (potentially multi-line) string, or \f(CW\*(C`undef\*(C'\fR if the +shell (or command) could not be started. In list context, returns a +list of lines (however you've defined lines with \f(CW$/\fR or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR), or an empty list if the shell (or command) +could not be started. +.Sp +Because backticks do not affect standard error, use shell file descriptor +syntax (assuming the shell supports this) if you care to address this. +To capture a command's \s-1STDERR\s0 and \s-1STDOUT\s0 together: +.Sp +.Vb 1 +\& $output = \`cmd 2>&1\`; +.Ve +.Sp +To capture a command's \s-1STDOUT\s0 but discard its \s-1STDERR:\s0 +.Sp +.Vb 1 +\& $output = \`cmd 2>/dev/null\`; +.Ve +.Sp +To capture a command's \s-1STDERR\s0 but discard its \s-1STDOUT\s0 (ordering is +important here): +.Sp +.Vb 1 +\& $output = \`cmd 2>&1 1>/dev/null\`; +.Ve +.Sp +To exchange a command's \s-1STDOUT\s0 and \s-1STDERR\s0 in order to capture the \s-1STDERR\s0 +but leave its \s-1STDOUT\s0 to come out the old \s-1STDERR:\s0 +.Sp +.Vb 1 +\& $output = \`cmd 3>&1 1>&2 2>&3 3>&\-\`; +.Ve +.Sp +To read both a command's \s-1STDOUT\s0 and its \s-1STDERR\s0 separately, it's easiest +to redirect them separately to files, and then read from those files +when the program is done: +.Sp +.Vb 1 +\& system("program args 1>program.stdout 2>program.stderr"); +.Ve +.Sp +The \s-1STDIN\s0 filehandle used by the command is inherited from Perl's \s-1STDIN.\s0 +For example: +.Sp +.Vb 3 +\& open(SPLAT, "stuff") || die "can\*(Aqt open stuff: $!"; +\& open(STDIN, "<&SPLAT") || die "can\*(Aqt dupe SPLAT: $!"; +\& print STDOUT \`sort\`; +.Ve +.Sp +will print the sorted contents of the file named \fI\*(L"stuff\*(R"\fR. +.Sp +Using single-quote as a delimiter protects the command from Perl's +double-quote interpolation, passing it on to the shell instead: +.Sp +.Vb 2 +\& $perl_info = qx(ps $$); # that\*(Aqs Perl\*(Aqs $$ +\& $shell_info = qx\*(Aqps $$\*(Aq; # that\*(Aqs the new shell\*(Aqs $$ +.Ve +.Sp +How that string gets evaluated is entirely subject to the command +interpreter on your system. On most platforms, you will have to protect +shell metacharacters if you want them treated literally. This is in +practice difficult to do, as it's unclear how to escape which characters. +See perlsec for a clean and safe example of a manual \f(CW\*(C`fork()\*(C'\fR and \f(CW\*(C`exec()\*(C'\fR +to emulate backticks safely. +.Sp +On some platforms (notably DOS-like ones), the shell may not be +capable of dealing with multiline commands, so putting newlines in +the string may not get you what you want. You may be able to evaluate +multiple commands in a single line by separating them with the command +separator character, if your shell supports that (for example, \f(CW\*(C`;\*(C'\fR on +many Unix shells and \f(CW\*(C`&\*(C'\fR on the Windows \s-1NT\s0 \f(CW\*(C`cmd\*(C'\fR shell). +.Sp +Perl will attempt to flush all files opened for +output before starting the child process, but this may not be supported +on some platforms (see perlport). To be safe, you may need to set +\&\f(CW$|\fR (\f(CW$AUTOFLUSH\fR in \f(CW\*(C`English\*(C'\fR) or call the \f(CW\*(C`autoflush()\*(C'\fR method of +\&\f(CW\*(C`IO::Handle\*(C'\fR on any open handles. +.Sp +Beware that some command shells may place restrictions on the length +of the command line. You must ensure your strings don't exceed this +limit after any necessary interpolations. See the platform-specific +release notes for more details about your particular environment. +.Sp +Using this operator can lead to programs that are difficult to port, +because the shell commands called vary between systems, and may in +fact not be present at all. As one example, the \f(CW\*(C`type\*(C'\fR command under +the \s-1POSIX\s0 shell is very different from the \f(CW\*(C`type\*(C'\fR command under \s-1DOS.\s0 +That doesn't mean you should go out of your way to avoid backticks +when they're the right way to get something done. Perl was made to be +a glue language, and one of the things it glues together is commands. +Just understand what you're getting yourself into. +.Sp +Like \f(CW\*(C`system\*(C'\fR, backticks put the child process exit code in \f(CW$?\fR. +If you'd like to manually inspect failure, you can check all possible +failure modes by inspecting \f(CW$?\fR like this: +.Sp +.Vb 10 +\& if ($? == \-1) { +\& print "failed to execute: $!\en"; +\& } +\& elsif ($? & 127) { +\& printf "child died with signal %d, %s coredump\en", +\& ($? & 127), ($? & 128) ? \*(Aqwith\*(Aq : \*(Aqwithout\*(Aq; +\& } +\& else { +\& printf "child exited with value %d\en", $? >> 8; +\& } +.Ve +.Sp +Use the open pragma to control the I/O layers used when reading the +output of the command, for example: +.Sp +.Vb 2 +\& use open IN => ":encoding(UTF\-8)"; +\& my $x = \`cmd\-producing\-utf\-8\`; +.Ve +.Sp +\&\f(CW\*(C`qx//\*(C'\fR can also be called like a function with \*(L"readpipe\*(R" in perlfunc. +.Sp +See \*(L"I/O Operators\*(R" for more discussion. +.ie n .IP """qw/\fISTRING\fP/""" 4 +.el .IP "\f(CWqw/\f(CISTRING\f(CW/\fR" 4 +.IX Xref "qw quote, list quote, words" +.IX Item "qw/STRING/" +Evaluates to a list of the words extracted out of \fI\s-1STRING\s0\fR, using embedded +whitespace as the word delimiters. It can be understood as being roughly +equivalent to: +.Sp +.Vb 1 +\& split(" ", q/STRING/); +.Ve +.Sp +the differences being that it only splits on \s-1ASCII\s0 whitespace, +generates a real list at compile time, and +in scalar context it returns the last element in the list. So +this expression: +.Sp +.Vb 1 +\& qw(foo bar baz) +.Ve +.Sp +is semantically equivalent to the list: +.Sp +.Vb 1 +\& "foo", "bar", "baz" +.Ve +.Sp +Some frequently seen examples: +.Sp +.Vb 2 +\& use POSIX qw( setlocale localeconv ) +\& @EXPORT = qw( foo bar baz ); +.Ve +.Sp +A common mistake is to try to separate the words with commas or to +put comments into a multi-line \f(CW\*(C`qw\*(C'\fR\-string. For this reason, the +\&\f(CW\*(C`use\ warnings\*(C'\fR pragma and the \fB\-w\fR switch (that is, the \f(CW$^W\fR variable) +produces warnings if the \fI\s-1STRING\s0\fR contains the \f(CW","\fR or the \f(CW"#"\fR character. +.ie n .IP """tr/\fISEARCHLIST\fP/\fIREPLACEMENTLIST\fP/cdsr""" 4 +.el .IP "\f(CWtr/\f(CISEARCHLIST\f(CW/\f(CIREPLACEMENTLIST\f(CW/cdsr\fR" 4 +.IX Xref "tr y transliterate c d s" +.IX Item "tr/SEARCHLIST/REPLACEMENTLIST/cdsr" +.PD 0 +.ie n .IP """y/\fISEARCHLIST\fP/\fIREPLACEMENTLIST\fP/cdsr""" 4 +.el .IP "\f(CWy/\f(CISEARCHLIST\f(CW/\f(CIREPLACEMENTLIST\f(CW/cdsr\fR" 4 +.IX Item "y/SEARCHLIST/REPLACEMENTLIST/cdsr" +.PD +Transliterates all occurrences of the characters found (or not found +if the \f(CW\*(C`/c\*(C'\fR modifier is specified) in the search list with the +positionally corresponding character in the replacement list, possibly +deleting some, depending on the modifiers specified. It returns the +number of characters replaced or deleted. If no string is specified via +the \f(CW\*(C`=~\*(C'\fR or \f(CW\*(C`!~\*(C'\fR operator, the \f(CW$_\fR string is transliterated. +.Sp +For \fBsed\fR devotees, \f(CW\*(C`y\*(C'\fR is provided as a synonym for \f(CW\*(C`tr\*(C'\fR. +.Sp +If the \f(CW\*(C`/r\*(C'\fR (non-destructive) option is present, a new copy of the string +is made and its characters transliterated, and this copy is returned no +matter whether it was modified or not: the original string is always +left unchanged. The new copy is always a plain string, even if the input +string is an object or a tied variable. +.Sp +Unless the \f(CW\*(C`/r\*(C'\fR option is used, the string specified with \f(CW\*(C`=~\*(C'\fR must be a +scalar variable, an array element, a hash element, or an assignment to one +of those; in other words, an lvalue. +.Sp +If the characters delimiting \fI\s-1SEARCHLIST\s0\fR and \fI\s-1REPLACEMENTLIST\s0\fR +are single quotes (\f(CW\*(C`tr\*(Aq\f(CISEARCHLIST\f(CW\*(Aq\f(CIREPLACEMENTLIST\f(CW\*(Aq\*(C'\fR), the only +interpolation is removal of \f(CW\*(C`\e\*(C'\fR from pairs of \f(CW\*(C`\e\e\*(C'\fR. +.Sp +Otherwise, a character range may be specified with a hyphen, so +\&\f(CW\*(C`tr/A\-J/0\-9/\*(C'\fR does the same replacement as +\&\f(CW\*(C`tr/ACEGIBDFHJ/0246813579/\*(C'\fR. +.Sp +If the \fI\s-1SEARCHLIST\s0\fR is delimited by bracketing quotes, the +\&\fI\s-1REPLACEMENTLIST\s0\fR must have its own pair of quotes, which may or may +not be bracketing quotes; for example, \f(CW\*(C`tr[aeiouy][yuoiea]\*(C'\fR or +\&\f(CW\*(C`tr(+\e\-*/)/ABCD/\*(C'\fR. +.Sp +Characters may be literals, or (if the delimiters aren't single quotes) +any of the escape sequences accepted in double-quoted strings. But +there is never any variable interpolation, so \f(CW"$"\fR and \f(CW"@"\fR are +always treated as literals. A hyphen at the beginning or end, or +preceded by a backslash is also always considered a literal. Escape +sequence details are in the table near the beginning of this +section. +.Sp +Note that \f(CW\*(C`tr\*(C'\fR does \fBnot\fR do regular expression character classes such as +\&\f(CW\*(C`\ed\*(C'\fR or \f(CW\*(C`\epL\*(C'\fR. The \f(CW\*(C`tr\*(C'\fR operator is not equivalent to the \f(CWtr(1)\fR +utility. \f(CW\*(C`tr[a\-z][A\-Z]\*(C'\fR will uppercase the 26 letters \*(L"a\*(R" through \*(L"z\*(R", +but for case changing not confined to \s-1ASCII,\s0 use +\&\f(CW\*(C`lc\*(C'\fR, \f(CW\*(C`uc\*(C'\fR, +\&\f(CW\*(C`lcfirst\*(C'\fR, \f(CW\*(C`ucfirst\*(C'\fR +(all documented in perlfunc), or the +substitution operator \f(CW\*(C`s/\f(CIPATTERN\f(CW/\f(CIREPLACEMENT\f(CW/\*(C'\fR +(with \f(CW\*(C`\eU\*(C'\fR, \f(CW\*(C`\eu\*(C'\fR, \f(CW\*(C`\eL\*(C'\fR, and \f(CW\*(C`\el\*(C'\fR string-interpolation escapes in the +\&\fI\s-1REPLACEMENT\s0\fR portion). +.Sp +Most ranges are unportable between character sets, but certain ones +signal Perl to do special handling to make them portable. There are two +classes of portable ranges. The first are any subsets of the ranges +\&\f(CW\*(C`A\-Z\*(C'\fR, \f(CW\*(C`a\-z\*(C'\fR, and \f(CW\*(C`0\-9\*(C'\fR, when expressed as literal characters. +.Sp +.Vb 1 +\& tr/h\-k/H\-K/ +.Ve +.Sp +capitalizes the letters \f(CW"h"\fR, \f(CW"i"\fR, \f(CW"j"\fR, and \f(CW"k"\fR and nothing +else, no matter what the platform's character set is. In contrast, all +of +.Sp +.Vb 3 +\& tr/\ex68\-\ex6B/\ex48\-\ex4B/ +\& tr/h\-\ex6B/H\-\ex4B/ +\& tr/\ex68\-k/\ex48\-K/ +.Ve +.Sp +do the same capitalizations as the previous example when run on \s-1ASCII\s0 +platforms, but something completely different on \s-1EBCDIC\s0 ones. +.Sp +The second class of portable ranges is invoked when one or both of the +range's end points are expressed as \f(CW\*(C`\eN{...}\*(C'\fR +.Sp +.Vb 1 +\& $string =~ tr/\eN{U+20}\-\eN{U+7E}//d; +.Ve +.Sp +removes from \f(CW$string\fR all the platform's characters which are +equivalent to any of Unicode U+0020, U+0021, ... U+007D, U+007E. This +is a portable range, and has the same effect on every platform it is +run on. In this example, these are the \s-1ASCII\s0 +printable characters. So after this is run, \f(CW$string\fR has only +controls and characters which have no \s-1ASCII\s0 equivalents. +.Sp +But, even for portable ranges, it is not generally obvious what is +included without having to look things up in the manual. A sound +principle is to use only ranges that both begin from, and end at, either +\&\s-1ASCII\s0 alphabetics of equal case (\f(CW\*(C`b\-e\*(C'\fR, \f(CW\*(C`B\-E\*(C'\fR), or digits (\f(CW\*(C`1\-4\*(C'\fR). +Anything else is unclear (and unportable unless \f(CW\*(C`\eN{...}\*(C'\fR is used). If +in doubt, spell out the character sets in full. +.Sp +Options: +.Sp +.Vb 5 +\& c Complement the SEARCHLIST. +\& d Delete found but unreplaced characters. +\& r Return the modified string and leave the original string +\& untouched. +\& s Squash duplicate replaced characters. +.Ve +.Sp +If the \f(CW\*(C`/d\*(C'\fR modifier is specified, any characters specified by +\&\fI\s-1SEARCHLIST\s0\fR not found in \fI\s-1REPLACEMENTLIST\s0\fR are deleted. (Note that +this is slightly more flexible than the behavior of some \fBtr\fR programs, +which delete anything they find in the \fI\s-1SEARCHLIST\s0\fR, period.) +.Sp +If the \f(CW\*(C`/s\*(C'\fR modifier is specified, sequences of characters, all in a +row, that were transliterated to the same character are squashed down to +a single instance of that character. +.Sp +.Vb 2 +\& my $a = "aaaba" +\& $a =~ tr/a/a/s # $a now is "aba" +.Ve +.Sp +If the \f(CW\*(C`/d\*(C'\fR modifier is used, the \fI\s-1REPLACEMENTLIST\s0\fR is always interpreted +exactly as specified. Otherwise, if the \fI\s-1REPLACEMENTLIST\s0\fR is shorter +than the \fI\s-1SEARCHLIST\s0\fR, the final character, if any, is replicated until +it is long enough. There won't be a final character if and only if the +\&\fI\s-1REPLACEMENTLIST\s0\fR is empty, in which case \fI\s-1REPLACEMENTLIST\s0\fR is +copied from \fI\s-1SEARCHLIST\s0\fR. An empty \fI\s-1REPLACEMENTLIST\s0\fR is useful +for counting characters in a class, or for squashing character sequences +in a class. +.Sp +.Vb 4 +\& tr/abcd// tr/abcd/abcd/ +\& tr/abcd/AB/ tr/abcd/ABBB/ +\& tr/abcd//d s/[abcd]//g +\& tr/abcd/AB/d (tr/ab/AB/ + s/[cd]//g) \- but run together +.Ve +.Sp +If the \f(CW\*(C`/c\*(C'\fR modifier is specified, the characters to be transliterated +are the ones \s-1NOT\s0 in \fI\s-1SEARCHLIST\s0\fR, that is, it is complemented. If +\&\f(CW\*(C`/d\*(C'\fR and/or \f(CW\*(C`/s\*(C'\fR are also specified, they apply to the complemented +\&\fI\s-1SEARCHLIST\s0\fR. Recall, that if \fI\s-1REPLACEMENTLIST\s0\fR is empty (except +under \f(CW\*(C`/d\*(C'\fR) a copy of \fI\s-1SEARCHLIST\s0\fR is used instead. That copy is made +after complementing under \f(CW\*(C`/c\*(C'\fR. \fI\s-1SEARCHLIST\s0\fR is sorted by code point +order after complementing, and any \fI\s-1REPLACEMENTLIST\s0\fR is applied to +that sorted result. This means that under \f(CW\*(C`/c\*(C'\fR, the order of the +characters specified in \fI\s-1SEARCHLIST\s0\fR is irrelevant. This can +lead to different results on \s-1EBCDIC\s0 systems if \fI\s-1REPLACEMENTLIST\s0\fR +contains more than one character, hence it is generally non-portable to +use \f(CW\*(C`/c\*(C'\fR with such a \fI\s-1REPLACEMENTLIST\s0\fR. +.Sp +Another way of describing the operation is this: +If \f(CW\*(C`/c\*(C'\fR is specified, the \fI\s-1SEARCHLIST\s0\fR is sorted by code point order, +then complemented. If \fI\s-1REPLACEMENTLIST\s0\fR is empty and \f(CW\*(C`/d\*(C'\fR is not +specified, \fI\s-1REPLACEMENTLIST\s0\fR is replaced by a copy of \fI\s-1SEARCHLIST\s0\fR (as +modified under \f(CW\*(C`/c\*(C'\fR), and these potentially modified lists are used as +the basis for what follows. Any character in the target string that +isn't in \fI\s-1SEARCHLIST\s0\fR is passed through unchanged. Every other +character in the target string is replaced by the character in +\&\fI\s-1REPLACEMENTLIST\s0\fR that positionally corresponds to its mate in +\&\fI\s-1SEARCHLIST\s0\fR, except that under \f(CW\*(C`/s\*(C'\fR, the 2nd and following characters +are squeezed out in a sequence of characters in a row that all translate +to the same character. If \fI\s-1SEARCHLIST\s0\fR is longer than +\&\fI\s-1REPLACEMENTLIST\s0\fR, characters in the target string that match a +character in \fI\s-1SEARCHLIST\s0\fR that doesn't have a correspondence in +\&\fI\s-1REPLACEMENTLIST\s0\fR are either deleted from the target string if \f(CW\*(C`/d\*(C'\fR is +specified; or replaced by the final character in \fI\s-1REPLACEMENTLIST\s0\fR if +\&\f(CW\*(C`/d\*(C'\fR isn't specified. +.Sp +Some examples: +.Sp +.Vb 1 +\& $ARGV[1] =~ tr/A\-Z/a\-z/; # canonicalize to lower case ASCII +\& +\& $cnt = tr/*/*/; # count the stars in $_ +\& $cnt = tr/*//; # same thing +\& +\& $cnt = $sky =~ tr/*/*/; # count the stars in $sky +\& $cnt = $sky =~ tr/*//; # same thing +\& +\& $cnt = $sky =~ tr/*//c; # count all the non\-stars in $sky +\& $cnt = $sky =~ tr/*/*/c; # same, but transliterate each non\-star +\& # into a star, leaving the already\-stars +\& # alone. Afterwards, everything in $sky +\& # is a star. +\& +\& $cnt = tr/0\-9//; # count the ASCII digits in $_ +\& +\& tr/a\-zA\-Z//s; # bookkeeper \-> bokeper +\& tr/o/o/s; # bookkeeper \-> bokkeeper +\& tr/oe/oe/s; # bookkeeper \-> bokkeper +\& tr/oe//s; # bookkeeper \-> bokkeper +\& tr/oe/o/s; # bookkeeper \-> bokkopor +\& +\& ($HOST = $host) =~ tr/a\-z/A\-Z/; +\& $HOST = $host =~ tr/a\-z/A\-Z/r; # same thing +\& +\& $HOST = $host =~ tr/a\-z/A\-Z/r # chained with s///r +\& =~ s/:/ \-p/r; +\& +\& tr/a\-zA\-Z/ /cs; # change non\-alphas to single space +\& +\& @stripped = map tr/a\-zA\-Z/ /csr, @original; +\& # /r with map +\& +\& tr [\e200\-\e377] +\& [\e000\-\e177]; # wickedly delete 8th bit +\& +\& $foo !~ tr/A/a/ # transliterate all the A\*(Aqs in $foo to \*(Aqa\*(Aq, +\& # return 0 if any were found and changed. +\& # Otherwise return 1 +.Ve +.Sp +If multiple transliterations are given for a character, only the +first one is used: +.Sp +.Vb 1 +\& tr/AAA/XYZ/ +.Ve +.Sp +will transliterate any A to X. +.Sp +Because the transliteration table is built at compile time, neither +the \fI\s-1SEARCHLIST\s0\fR nor the \fI\s-1REPLACEMENTLIST\s0\fR are subjected to double quote +interpolation. That means that if you want to use variables, you +must use an \f(CW\*(C`eval()\*(C'\fR: +.Sp +.Vb 2 +\& eval "tr/$oldlist/$newlist/"; +\& die $@ if $@; +\& +\& eval "tr/$oldlist/$newlist/, 1" or die $@; +.Ve +.ie n .IP """<<\fIEOF\fP""" 4 +.el .IP "\f(CW<<\f(CIEOF\f(CW\fR" 4 +.IX Xref "here-doc heredoc here-document <<" +.IX Item "<\*(C'\fR). +If the starting delimiter is an unpaired character like \f(CW\*(C`/\*(C'\fR or a closing +punctuation, the ending delimiter is the same as the starting delimiter. +Therefore a \f(CW\*(C`/\*(C'\fR terminates a \f(CW\*(C`qq//\*(C'\fR construct, while a \f(CW\*(C`]\*(C'\fR terminates +both \f(CW\*(C`qq[]\*(C'\fR and \f(CW\*(C`qq]]\*(C'\fR constructs. +.Sp +When searching for single-character delimiters, escaped delimiters +and \f(CW\*(C`\e\e\*(C'\fR are skipped. For example, while searching for terminating \f(CW\*(C`/\*(C'\fR, +combinations of \f(CW\*(C`\e\e\*(C'\fR and \f(CW\*(C`\e/\*(C'\fR are skipped. If the delimiters are +bracketing, nested pairs are also skipped. For example, while searching +for a closing \f(CW\*(C`]\*(C'\fR paired with the opening \f(CW\*(C`[\*(C'\fR, combinations of \f(CW\*(C`\e\e\*(C'\fR, \f(CW\*(C`\e]\*(C'\fR, +and \f(CW\*(C`\e[\*(C'\fR are all skipped, and nested \f(CW\*(C`[\*(C'\fR and \f(CW\*(C`]\*(C'\fR are skipped as well. +However, when backslashes are used as the delimiters (like \f(CW\*(C`qq\e\e\*(C'\fR and +\&\f(CW\*(C`tr\e\e\e\*(C'\fR), nothing is skipped. +During the search for the end, backslashes that escape delimiters or +other backslashes are removed (exactly speaking, they are not copied to the +safe location). +.Sp +For constructs with three-part delimiters (\f(CW\*(C`s///\*(C'\fR, \f(CW\*(C`y///\*(C'\fR, and +\&\f(CW\*(C`tr///\*(C'\fR), the search is repeated once more. +If the first delimiter is not an opening punctuation, the three delimiters must +be the same, such as \f(CW\*(C`s!!!\*(C'\fR and \f(CW\*(C`tr)))\*(C'\fR, +in which case the second delimiter +terminates the left part and starts the right part at once. +If the left part is delimited by bracketing punctuation (that is \f(CW\*(C`()\*(C'\fR, +\&\f(CW\*(C`[]\*(C'\fR, \f(CW\*(C`{}\*(C'\fR, or \f(CW\*(C`<>\*(C'\fR), the right part needs another pair of +delimiters such as \f(CW\*(C`s(){}\*(C'\fR and \f(CW\*(C`tr[]//\*(C'\fR. In these cases, whitespace +and comments are allowed between the two parts, although the comment must follow +at least one whitespace character; otherwise a character expected as the +start of the comment may be regarded as the starting delimiter of the right part. +.Sp +During this search no attention is paid to the semantics of the construct. +Thus: +.Sp +.Vb 1 +\& "$hash{"$foo/$bar"}" +.Ve +.Sp +or: +.Sp +.Vb 3 +\& m/ +\& bar # NOT a comment, this slash / terminated m//! +\& /x +.Ve +.Sp +do not form legal quoted expressions. The quoted part ends on the +first \f(CW\*(C`"\*(C'\fR and \f(CW\*(C`/\*(C'\fR, and the rest happens to be a syntax error. +Because the slash that terminated \f(CW\*(C`m//\*(C'\fR was followed by a \f(CW\*(C`SPACE\*(C'\fR, +the example above is not \f(CW\*(C`m//x\*(C'\fR, but rather \f(CW\*(C`m//\*(C'\fR with no \f(CW\*(C`/x\*(C'\fR +modifier. So the embedded \f(CW\*(C`#\*(C'\fR is interpreted as a literal \f(CW\*(C`#\*(C'\fR. +.Sp +Also no attention is paid to \f(CW\*(C`\ec\e\*(C'\fR (multichar control char syntax) during +this search. Thus the second \f(CW\*(C`\e\*(C'\fR in \f(CW\*(C`qq/\ec\e/\*(C'\fR is interpreted as a part +of \f(CW\*(C`\e/\*(C'\fR, and the following \f(CW\*(C`/\*(C'\fR is not recognized as a delimiter. +Instead, use \f(CW\*(C`\e034\*(C'\fR or \f(CW\*(C`\ex1c\*(C'\fR at the end of quoted constructs. +.IP "Interpolation" 4 +.IX Xref "interpolation" +.IX Item "Interpolation" +The next step is interpolation in the text obtained, which is now +delimiter-independent. There are multiple cases. +.RS 4 +.ie n .IP """<<\*(AqEOF\*(Aq""" 4 +.el .IP "\f(CW<<\*(AqEOF\*(Aq\fR" 4 +.IX Item "<"", ""<<""EOF""""" 4 +.el .IP "\f(CW``''\fR, \f(CW\`\`\fR, \f(CWqq//\fR, \f(CWqx//\fR, \f(CW\fR, \f(CW<<``EOF''\fR" 4 +.IX Item """"", , qq//, qx//, , <<""EOF""" +\&\f(CW\*(C`\eQ\*(C'\fR, \f(CW\*(C`\eU\*(C'\fR, \f(CW\*(C`\eu\*(C'\fR, \f(CW\*(C`\eL\*(C'\fR, \f(CW\*(C`\el\*(C'\fR, \f(CW\*(C`\eF\*(C'\fR (possibly paired with \f(CW\*(C`\eE\*(C'\fR) are +converted to corresponding Perl constructs. Thus, \f(CW"$foo\eQbaz$bar"\fR +is converted to \f(CW\*(C`$foo\ .\ (quotemeta("baz"\ .\ $bar))\*(C'\fR internally. +The other escape sequences such as \f(CW\*(C`\e200\*(C'\fR and \f(CW\*(C`\et\*(C'\fR and backslashed +characters such as \f(CW\*(C`\e\e\*(C'\fR and \f(CW\*(C`\e\-\*(C'\fR are replaced with appropriate +expansions. +.Sp +Let it be stressed that \fIwhatever falls between \f(CI\*(C`\eQ\*(C'\fI and \f(CI\*(C`\eE\*(C'\fI\fR +is interpolated in the usual way. Something like \f(CW"\eQ\e\eE"\fR has +no \f(CW\*(C`\eE\*(C'\fR inside. Instead, it has \f(CW\*(C`\eQ\*(C'\fR, \f(CW\*(C`\e\e\*(C'\fR, and \f(CW\*(C`E\*(C'\fR, so the +result is the same as for \f(CW"\e\e\e\eE"\fR. As a general rule, backslashes +between \f(CW\*(C`\eQ\*(C'\fR and \f(CW\*(C`\eE\*(C'\fR may lead to counterintuitive results. So, +\&\f(CW"\eQ\et\eE"\fR is converted to \f(CW\*(C`quotemeta("\et")\*(C'\fR, which is the same +as \f(CW"\e\e\et"\fR (since \s-1TAB\s0 is not alphanumeric). Note also that: +.Sp +.Vb 2 +\& $str = \*(Aq\et\*(Aq; +\& return "\eQ$str"; +.Ve +.Sp +may be closer to the conjectural \fIintention\fR of the writer of \f(CW"\eQ\et\eE"\fR. +.Sp +Interpolated scalars and arrays are converted internally to the \f(CW\*(C`join\*(C'\fR and +\&\f(CW"."\fR catenation operations. Thus, \f(CW"$foo\ XXX\ \*(Aq@arr\*(Aq"\fR becomes: +.Sp +.Vb 1 +\& $foo . " XXX \*(Aq" . (join $", @arr) . "\*(Aq"; +.Ve +.Sp +All operations above are performed simultaneously, left to right. +.Sp +Because the result of \f(CW"\eQ\ \f(CISTRING\f(CW\ \eE"\fR has all metacharacters +quoted, there is no way to insert a literal \f(CW\*(C`$\*(C'\fR or \f(CW\*(C`@\*(C'\fR inside a +\&\f(CW\*(C`\eQ\eE\*(C'\fR pair. If protected by \f(CW\*(C`\e\*(C'\fR, \f(CW\*(C`$\*(C'\fR will be quoted to become +\&\f(CW"\e\e\e$"\fR; if not, it is interpreted as the start of an interpolated +scalar. +.Sp +Note also that the interpolation code needs to make a decision on +where the interpolated scalar ends. For instance, whether +\&\f(CW"a\ $x\ \->\ {c}"\fR really means: +.Sp +.Vb 1 +\& "a " . $x . " \-> {c}"; +.Ve +.Sp +or: +.Sp +.Vb 1 +\& "a " . $x \-> {c}; +.Ve +.Sp +Most of the time, the longest possible text that does not include +spaces between components and which contains matching braces or +brackets. because the outcome may be determined by voting based +on heuristic estimators, the result is not strictly predictable. +Fortunately, it's usually correct for ambiguous cases. +.ie n .IP "the replacement of ""s///""" 4 +.el .IP "the replacement of \f(CWs///\fR" 4 +.IX Item "the replacement of s///" +Processing of \f(CW\*(C`\eQ\*(C'\fR, \f(CW\*(C`\eU\*(C'\fR, \f(CW\*(C`\eu\*(C'\fR, \f(CW\*(C`\eL\*(C'\fR, \f(CW\*(C`\el\*(C'\fR, \f(CW\*(C`\eF\*(C'\fR and interpolation +happens as with \f(CW\*(C`qq//\*(C'\fR constructs. +.Sp +It is at this step that \f(CW\*(C`\e1\*(C'\fR is begrudgingly converted to \f(CW$1\fR in +the replacement text of \f(CW\*(C`s///\*(C'\fR, in order to correct the incorrigible +\&\fIsed\fR hackers who haven't picked up the saner idiom yet. A warning +is emitted if the \f(CW\*(C`use\ warnings\*(C'\fR pragma or the \fB\-w\fR command-line flag +(that is, the \f(CW$^W\fR variable) was set. +.ie n .IP """RE"" in ""m?RE?"", ""/RE/"", ""m/RE/"", ""s/RE/foo/""," 4 +.el .IP "\f(CWRE\fR in \f(CWm?RE?\fR, \f(CW/RE/\fR, \f(CWm/RE/\fR, \f(CWs/RE/foo/\fR," 4 +.IX Item "RE in m?RE?, /RE/, m/RE/, s/RE/foo/," +Processing of \f(CW\*(C`\eQ\*(C'\fR, \f(CW\*(C`\eU\*(C'\fR, \f(CW\*(C`\eu\*(C'\fR, \f(CW\*(C`\eL\*(C'\fR, \f(CW\*(C`\el\*(C'\fR, \f(CW\*(C`\eF\*(C'\fR, \f(CW\*(C`\eE\*(C'\fR, +and interpolation happens (almost) as with \f(CW\*(C`qq//\*(C'\fR constructs. +.Sp +Processing of \f(CW\*(C`\eN{...}\*(C'\fR is also done here, and compiled into an intermediate +form for the regex compiler. (This is because, as mentioned below, the regex +compilation may be done at execution time, and \f(CW\*(C`\eN{...}\*(C'\fR is a compile-time +construct.) +.Sp +However any other combinations of \f(CW\*(C`\e\*(C'\fR followed by a character +are not substituted but only skipped, in order to parse them +as regular expressions at the following step. +As \f(CW\*(C`\ec\*(C'\fR is skipped at this step, \f(CW\*(C`@\*(C'\fR of \f(CW\*(C`\ec@\*(C'\fR in \s-1RE\s0 is possibly +treated as an array symbol (for example \f(CW@foo\fR), +even though the same text in \f(CW\*(C`qq//\*(C'\fR gives interpolation of \f(CW\*(C`\ec@\*(C'\fR. +.Sp +Code blocks such as \f(CW\*(C`(?{BLOCK})\*(C'\fR are handled by temporarily passing control +back to the perl parser, in a similar way that an interpolated array +subscript expression such as \f(CW"foo$array[1+f("[xyz")]bar"\fR would be. +.Sp +Moreover, inside \f(CW\*(C`(?{BLOCK})\*(C'\fR, \f(CW\*(C`(?#\ comment\ )\*(C'\fR, and +a \f(CW\*(C`#\*(C'\fR\-comment in a \f(CW\*(C`/x\*(C'\fR\-regular expression, no processing is +performed whatsoever. This is the first step at which the presence +of the \f(CW\*(C`/x\*(C'\fR modifier is relevant. +.Sp +Interpolation in patterns has several quirks: \f(CW$|\fR, \f(CW$(\fR, \f(CW$)\fR, \f(CW\*(C`@+\*(C'\fR +and \f(CW\*(C`@\-\*(C'\fR are not interpolated, and constructs \f(CW$var[SOMETHING]\fR are +voted (by several different estimators) to be either an array element +or \f(CW$var\fR followed by an \s-1RE\s0 alternative. This is where the notation +\&\f(CW\*(C`${arr[$bar]}\*(C'\fR comes handy: \f(CW\*(C`/${arr[0\-9]}/\*(C'\fR is interpreted as +array element \f(CW\*(C`\-9\*(C'\fR, not as a regular expression from the variable +\&\f(CW$arr\fR followed by a digit, which would be the interpretation of +\&\f(CW\*(C`/$arr[0\-9]/\*(C'\fR. Since voting among different estimators may occur, +the result is not predictable. +.Sp +The lack of processing of \f(CW\*(C`\e\e\*(C'\fR creates specific restrictions on +the post-processed text. If the delimiter is \f(CW\*(C`/\*(C'\fR, one cannot get +the combination \f(CW\*(C`\e/\*(C'\fR into the result of this step. \f(CW\*(C`/\*(C'\fR will +finish the regular expression, \f(CW\*(C`\e/\*(C'\fR will be stripped to \f(CW\*(C`/\*(C'\fR on +the previous step, and \f(CW\*(C`\e\e/\*(C'\fR will be left as is. Because \f(CW\*(C`/\*(C'\fR is +equivalent to \f(CW\*(C`\e/\*(C'\fR inside a regular expression, this does not +matter unless the delimiter happens to be character special to the +\&\s-1RE\s0 engine, such as in \f(CW\*(C`s*foo*bar*\*(C'\fR, \f(CW\*(C`m[foo]\*(C'\fR, or \f(CW\*(C`m?foo?\*(C'\fR; or an +alphanumeric char, as in: +.Sp +.Vb 1 +\& m m ^ a \es* b mmx; +.Ve +.Sp +In the \s-1RE\s0 above, which is intentionally obfuscated for illustration, the +delimiter is \f(CW\*(C`m\*(C'\fR, the modifier is \f(CW\*(C`mx\*(C'\fR, and after delimiter-removal the +\&\s-1RE\s0 is the same as for \f(CW\*(C`m/\ ^\ a\ \es*\ b\ /mx\*(C'\fR. There's more than one +reason you're encouraged to restrict your delimiters to non-alphanumeric, +non-whitespace choices. +.RE +.RS 4 +.Sp +This step is the last one for all constructs except regular expressions, +which are processed further. +.RE +.IP "parsing regular expressions" 4 +.IX Xref "regexp, parse" +.IX Item "parsing regular expressions" +Previous steps were performed during the compilation of Perl code, +but this one happens at run time, although it may be optimized to +be calculated at compile time if appropriate. After preprocessing +described above, and possibly after evaluation if concatenation, +joining, casing translation, or metaquoting are involved, the +resulting \fIstring\fR is passed to the \s-1RE\s0 engine for compilation. +.Sp +Whatever happens in the \s-1RE\s0 engine might be better discussed in perlre, +but for the sake of continuity, we shall do so here. +.Sp +This is another step where the presence of the \f(CW\*(C`/x\*(C'\fR modifier is +relevant. The \s-1RE\s0 engine scans the string from left to right and +converts it into a finite automaton. +.Sp +Backslashed characters are either replaced with corresponding +literal strings (as with \f(CW\*(C`\e{\*(C'\fR), or else they generate special nodes +in the finite automaton (as with \f(CW\*(C`\eb\*(C'\fR). Characters special to the +\&\s-1RE\s0 engine (such as \f(CW\*(C`|\*(C'\fR) generate corresponding nodes or groups of +nodes. \f(CW\*(C`(?#...)\*(C'\fR comments are ignored. All the rest is either +converted to literal strings to match, or else is ignored (as is +whitespace and \f(CW\*(C`#\*(C'\fR\-style comments if \f(CW\*(C`/x\*(C'\fR is present). +.Sp +Parsing of the bracketed character class construct, \f(CW\*(C`[...]\*(C'\fR, is +rather different than the rule used for the rest of the pattern. +The terminator of this construct is found using the same rules as +for finding the terminator of a \f(CW\*(C`{}\*(C'\fR\-delimited construct, the only +exception being that \f(CW\*(C`]\*(C'\fR immediately following \f(CW\*(C`[\*(C'\fR is treated as +though preceded by a backslash. +.Sp +The terminator of runtime \f(CW\*(C`(?{...})\*(C'\fR is found by temporarily switching +control to the perl parser, which should stop at the point where the +logically balancing terminating \f(CW\*(C`}\*(C'\fR is found. +.Sp +It is possible to inspect both the string given to \s-1RE\s0 engine and the +resulting finite automaton. See the arguments \f(CW\*(C`debug\*(C'\fR/\f(CW\*(C`debugcolor\*(C'\fR +in the \f(CW\*(C`use\ re\*(C'\fR pragma, as well as Perl's \fB\-Dr\fR command-line +switch documented in \*(L"Command Switches\*(R" in perlrun. +.IP "Optimization of regular expressions" 4 +.IX Xref "regexp, optimization" +.IX Item "Optimization of regular expressions" +This step is listed for completeness only. Since it does not change +semantics, details of this step are not documented and are subject +to change without notice. This step is performed over the finite +automaton that was generated during the previous pass. +.Sp +It is at this stage that \f(CW\*(C`split()\*(C'\fR silently optimizes \f(CW\*(C`/^/\*(C'\fR to +mean \f(CW\*(C`/^/m\*(C'\fR. +.SS "I/O Operators" +.IX Xref "operator, i o operator, io io while filehandle <> <<>> @ARGV" +.IX Subsection "I/O Operators" +There are several I/O operators you should know about. +.PP +A string enclosed by backticks (grave accents) first undergoes +double-quote interpolation. It is then interpreted as an external +command, and the output of that command is the value of the +backtick string, like in a shell. In scalar context, a single string +consisting of all output is returned. In list context, a list of +values is returned, one per line of output. (You can set \f(CW$/\fR to use +a different line terminator.) The command is executed each time the +pseudo-literal is evaluated. The status value of the command is +returned in \f(CW$?\fR (see perlvar for the interpretation of \f(CW$?\fR). +Unlike in \fBcsh\fR, no translation is done on the return data\*(--newlines +remain newlines. Unlike in any of the shells, single quotes do not +hide variable names in the command from interpretation. To pass a +literal dollar-sign through to the shell you need to hide it with a +backslash. The generalized form of backticks is \f(CW\*(C`qx//\*(C'\fR, or you can +call the \*(L"readpipe\*(R" in perlfunc function. (Because +backticks always undergo shell expansion as well, see perlsec for +security concerns.) +.IX Xref "qx ` `` backtick glob" +.PP +In scalar context, evaluating a filehandle in angle brackets yields +the next line from that file (the newline, if any, included), or +\&\f(CW\*(C`undef\*(C'\fR at end-of-file or on error. When \f(CW$/\fR is set to \f(CW\*(C`undef\*(C'\fR +(sometimes known as file-slurp mode) and the file is empty, it +returns \f(CW\*(Aq\*(Aq\fR the first time, followed by \f(CW\*(C`undef\*(C'\fR subsequently. +.PP +Ordinarily you must assign the returned value to a variable, but +there is one situation where an automatic assignment happens. If +and only if the input symbol is the only thing inside the conditional +of a \f(CW\*(C`while\*(C'\fR statement (even if disguised as a \f(CW\*(C`for(;;)\*(C'\fR loop), +the value is automatically assigned to the global variable \f(CW$_\fR, +destroying whatever was there previously. (This may seem like an +odd thing to you, but you'll use the construct in almost every Perl +script you write.) The \f(CW$_\fR variable is not implicitly localized. +You'll have to put a \f(CW\*(C`local\ $_;\*(C'\fR before the loop if you want that +to happen. Furthermore, if the input symbol or an explicit assignment +of the input symbol to a scalar is used as a \f(CW\*(C`while\*(C'\fR/\f(CW\*(C`for\*(C'\fR condition, +then the condition actually tests for definedness of the expression's +value, not for its regular truth value. +.PP +Thus the following lines are equivalent: +.PP +.Vb 7 +\& while (defined($_ = )) { print; } +\& while ($_ = ) { print; } +\& while () { print; } +\& for (;;) { print; } +\& print while defined($_ = ); +\& print while ($_ = ); +\& print while ; +.Ve +.PP +This also behaves similarly, but assigns to a lexical variable +instead of to \f(CW$_\fR: +.PP +.Vb 1 +\& while (my $line = ) { print $line } +.Ve +.PP +In these loop constructs, the assigned value (whether assignment +is automatic or explicit) is then tested to see whether it is +defined. The defined test avoids problems where the line has a string +value that would be treated as false by Perl; for example a "" or +a \f(CW"0"\fR with no trailing newline. If you really mean for such values +to terminate the loop, they should be tested for explicitly: +.PP +.Vb 2 +\& while (($_ = ) ne \*(Aq0\*(Aq) { ... } +\& while () { last unless $_; ... } +.Ve +.PP +In other boolean contexts, \f(CW\*(C`<\f(CIFILEHANDLE\f(CW>\*(C'\fR without an +explicit \f(CW\*(C`defined\*(C'\fR test or comparison elicits a warning if the +\&\f(CW\*(C`use\ warnings\*(C'\fR pragma or the \fB\-w\fR +command-line switch (the \f(CW$^W\fR variable) is in effect. +.PP +The filehandles \s-1STDIN, STDOUT,\s0 and \s-1STDERR\s0 are predefined. (The +filehandles \f(CW\*(C`stdin\*(C'\fR, \f(CW\*(C`stdout\*(C'\fR, and \f(CW\*(C`stderr\*(C'\fR will also work except +in packages, where they would be interpreted as local identifiers +rather than global.) Additional filehandles may be created with +the \f(CW\*(C`open()\*(C'\fR function, amongst others. See perlopentut and +\&\*(L"open\*(R" in perlfunc for details on this. +.IX Xref "stdin stdout sterr" +.PP +If a \f(CW\*(C`<\f(CIFILEHANDLE\f(CW>\*(C'\fR is used in a context that is looking for +a list, a list comprising all input lines is returned, one line per +list element. It's easy to grow to a rather large data space this +way, so use with care. +.PP +\&\f(CW\*(C`<\f(CIFILEHANDLE\f(CW>\*(C'\fR may also be spelled \f(CW\*(C`readline(*\f(CIFILEHANDLE\f(CW)\*(C'\fR. +See \*(L"readline\*(R" in perlfunc. +.PP +The null filehandle \f(CW\*(C`<>\*(C'\fR is special: it can be used to emulate the +behavior of \fBsed\fR and \fBawk\fR, and any other Unix filter program +that takes a list of filenames, doing the same to each line +of input from all of them. Input from \f(CW\*(C`<>\*(C'\fR comes either from +standard input, or from each file listed on the command line. Here's +how it works: the first time \f(CW\*(C`<>\*(C'\fR is evaluated, the \f(CW@ARGV\fR array is +checked, and if it is empty, \f(CW$ARGV[0]\fR is set to \f(CW"\-"\fR, which when opened +gives you standard input. The \f(CW@ARGV\fR array is then processed as a list +of filenames. The loop +.PP +.Vb 3 +\& while (<>) { +\& ... # code for each line +\& } +.Ve +.PP +is equivalent to the following Perl-like pseudo code: +.PP +.Vb 7 +\& unshift(@ARGV, \*(Aq\-\*(Aq) unless @ARGV; +\& while ($ARGV = shift) { +\& open(ARGV, $ARGV); +\& while () { +\& ... # code for each line +\& } +\& } +.Ve +.PP +except that it isn't so cumbersome to say, and will actually work. +It really does shift the \f(CW@ARGV\fR array and put the current filename +into the \f(CW$ARGV\fR variable. It also uses filehandle \fI\s-1ARGV\s0\fR +internally. \f(CW\*(C`<>\*(C'\fR is just a synonym for \f(CW\*(C`\*(C'\fR, which +is magical. (The pseudo code above doesn't work because it treats +\&\f(CW\*(C`\*(C'\fR as non-magical.) +.PP +Since the null filehandle uses the two argument form of \*(L"open\*(R" in perlfunc +it interprets special characters, so if you have a script like this: +.PP +.Vb 3 +\& while (<>) { +\& print; +\& } +.Ve +.PP +and call it with \f(CW\*(C`perl\ dangerous.pl\ \*(Aqrm\ \-rfv\ *|\*(Aq\*(C'\fR, it actually opens a +pipe, executes the \f(CW\*(C`rm\*(C'\fR command and reads \f(CW\*(C`rm\*(C'\fR's output from that pipe. +If you want all items in \f(CW@ARGV\fR to be interpreted as file names, you +can use the module \f(CW\*(C`ARGV::readonly\*(C'\fR from \s-1CPAN,\s0 or use the double bracket: +.PP +.Vb 3 +\& while (<<>>) { +\& print; +\& } +.Ve +.PP +Using double angle brackets inside of a while causes the open to use the +three argument form (with the second argument being \f(CW\*(C`<\*(C'\fR), so all +arguments in \f(CW\*(C`ARGV\*(C'\fR are treated as literal filenames (including \f(CW"\-"\fR). +(Note that for convenience, if you use \f(CW\*(C`<<>>\*(C'\fR and if \f(CW@ARGV\fR is +empty, it will still read from the standard input.) +.PP +You can modify \f(CW@ARGV\fR before the first \f(CW\*(C`<>\*(C'\fR as long as the array ends up +containing the list of filenames you really want. Line numbers (\f(CW$.\fR) +continue as though the input were one big happy file. See the example +in \*(L"eof\*(R" in perlfunc for how to reset line numbers on each file. +.PP +If you want to set \f(CW@ARGV\fR to your own list of files, go right ahead. +This sets \f(CW@ARGV\fR to all plain text files if no \f(CW@ARGV\fR was given: +.PP +.Vb 1 +\& @ARGV = grep { \-f && \-T } glob(\*(Aq*\*(Aq) unless @ARGV; +.Ve +.PP +You can even set them to pipe commands. For example, this automatically +filters compressed arguments through \fBgzip\fR: +.PP +.Vb 1 +\& @ARGV = map { /\e.(gz|Z)$/ ? "gzip \-dc < $_ |" : $_ } @ARGV; +.Ve +.PP +If you want to pass switches into your script, you can use one of the +\&\f(CW\*(C`Getopts\*(C'\fR modules or put a loop on the front like this: +.PP +.Vb 7 +\& while ($_ = $ARGV[0], /^\-/) { +\& shift; +\& last if /^\-\-$/; +\& if (/^\-D(.*)/) { $debug = $1 } +\& if (/^\-v/) { $verbose++ } +\& # ... # other switches +\& } +\& +\& while (<>) { +\& # ... # code for each line +\& } +.Ve +.PP +The \f(CW\*(C`<>\*(C'\fR symbol will return \f(CW\*(C`undef\*(C'\fR for end-of-file only once. +If you call it again after this, it will assume you are processing another +\&\f(CW@ARGV\fR list, and if you haven't set \f(CW@ARGV\fR, will read input from \s-1STDIN.\s0 +.PP +If what the angle brackets contain is a simple scalar variable (for example, +\&\f(CW$foo\fR), then that variable contains the name of the +filehandle to input from, or its typeglob, or a reference to the +same. For example: +.PP +.Vb 2 +\& $fh = \e*STDIN; +\& $line = <$fh>; +.Ve +.PP +If what's within the angle brackets is neither a filehandle nor a simple +scalar variable containing a filehandle name, typeglob, or typeglob +reference, it is interpreted as a filename pattern to be globbed, and +either a list of filenames or the next filename in the list is returned, +depending on context. This distinction is determined on syntactic +grounds alone. That means \f(CW\*(C`<$x>\*(C'\fR is always a \f(CW\*(C`readline()\*(C'\fR from +an indirect handle, but \f(CW\*(C`<$hash{key}>\*(C'\fR is always a \f(CW\*(C`glob()\*(C'\fR. +That's because \f(CW$x\fR is a simple scalar variable, but \f(CW$hash{key}\fR is +not\*(--it's a hash element. Even \f(CW\*(C`<$x >\*(C'\fR (note the extra space) +is treated as \f(CW\*(C`glob("$x ")\*(C'\fR, not \f(CW\*(C`readline($x)\*(C'\fR. +.PP +One level of double-quote interpretation is done first, but you can't +say \f(CW\*(C`<$foo>\*(C'\fR because that's an indirect filehandle as explained +in the previous paragraph. (In older versions of Perl, programmers +would insert curly brackets to force interpretation as a filename glob: +\&\f(CW\*(C`<${foo}>\*(C'\fR. These days, it's considered cleaner to call the +internal function directly as \f(CW\*(C`glob($foo)\*(C'\fR, which is probably the right +way to have done it in the first place.) For example: +.PP +.Vb 3 +\& while (<*.c>) { +\& chmod 0644, $_; +\& } +.Ve +.PP +is roughly equivalent to: +.PP +.Vb 5 +\& open(FOO, "echo *.c | tr \-s \*(Aq \et\er\ef\*(Aq \*(Aq\e\e012\e\e012\e\e012\e\e012\*(Aq|"); +\& while () { +\& chomp; +\& chmod 0644, $_; +\& } +.Ve +.PP +except that the globbing is actually done internally using the standard +\&\f(CW\*(C`File::Glob\*(C'\fR extension. Of course, the shortest way to do the above is: +.PP +.Vb 1 +\& chmod 0644, <*.c>; +.Ve +.PP +A (file)glob evaluates its (embedded) argument only when it is +starting a new list. All values must be read before it will start +over. In list context, this isn't important because you automatically +get them all anyway. However, in scalar context the operator returns +the next value each time it's called, or \f(CW\*(C`undef\*(C'\fR when the list has +run out. As with filehandle reads, an automatic \f(CW\*(C`defined\*(C'\fR is +generated when the glob occurs in the test part of a \f(CW\*(C`while\*(C'\fR, +because legal glob returns (for example, +a file called \fI0\fR) would otherwise +terminate the loop. Again, \f(CW\*(C`undef\*(C'\fR is returned only once. So if +you're expecting a single value from a glob, it is much better to +say +.PP +.Vb 1 +\& ($file) = ; +.Ve +.PP +than +.PP +.Vb 1 +\& $file = ; +.Ve +.PP +because the latter will alternate between returning a filename and +returning false. +.PP +If you're trying to do variable interpolation, it's definitely better +to use the \f(CW\*(C`glob()\*(C'\fR function, because the older notation can cause people +to become confused with the indirect filehandle notation. +.PP +.Vb 2 +\& @files = glob("$dir/*.[ch]"); +\& @files = glob($files[$i]); +.Ve +.PP +If an angle-bracket-based globbing expression is used as the condition of +a \f(CW\*(C`while\*(C'\fR or \f(CW\*(C`for\*(C'\fR loop, then it will be implicitly assigned to \f(CW$_\fR. +If either a globbing expression or an explicit assignment of a globbing +expression to a scalar is used as a \f(CW\*(C`while\*(C'\fR/\f(CW\*(C`for\*(C'\fR condition, then +the condition actually tests for definedness of the expression's value, +not for its regular truth value. +.SS "Constant Folding" +.IX Xref "constant folding folding" +.IX Subsection "Constant Folding" +Like C, Perl does a certain amount of expression evaluation at +compile time whenever it determines that all arguments to an +operator are static and have no side effects. In particular, string +concatenation happens at compile time between literals that don't do +variable substitution. Backslash interpolation also happens at +compile time. You can say +.PP +.Vb 3 +\& \*(AqNow is the time for all\*(Aq +\& . "\en" +\& . \*(Aqgood men to come to.\*(Aq +.Ve +.PP +and this all reduces to one string internally. Likewise, if +you say +.PP +.Vb 3 +\& foreach $file (@filenames) { +\& if (\-s $file > 5 + 100 * 2**16) { } +\& } +.Ve +.PP +the compiler precomputes the number which that expression +represents so that the interpreter won't have to. +.SS "No-ops" +.IX Xref "no-op nop" +.IX Subsection "No-ops" +Perl doesn't officially have a no-op operator, but the bare constants +\&\f(CW0\fR and \f(CW1\fR are special-cased not to produce a warning in void +context, so you can for example safely do +.PP +.Vb 1 +\& 1 while foo(); +.Ve +.SS "Bitwise String Operators" +.IX Xref "operator, bitwise, string &. |. ^. ~." +.IX Subsection "Bitwise String Operators" +Bitstrings of any size may be manipulated by the bitwise operators +(\f(CW\*(C`~ | & ^\*(C'\fR). +.PP +If the operands to a binary bitwise op are strings of different +sizes, \fB|\fR and \fB^\fR ops act as though the shorter operand had +additional zero bits on the right, while the \fB&\fR op acts as though +the longer operand were truncated to the length of the shorter. +The granularity for such extension or truncation is one or more +bytes. +.PP +.Vb 5 +\& # ASCII\-based examples +\& print "j p \en" ^ " a h"; # prints "JAPH\en" +\& print "JA" | " ph\en"; # prints "japh\en" +\& print "japh\enJunk" & \*(Aq_\|_\|_\|_\|_\*(Aq; # prints "JAPH\en"; +\& print \*(Aqp N$\*(Aq ^ " E>\*(C'\fR) always produce integral results. (But see also +\&\*(L"Bitwise String Operators\*(R".) However, \f(CW\*(C`use\ integer\*(C'\fR still has meaning for +them. By default, their results are interpreted as unsigned integers, but +if \f(CW\*(C`use\ integer\*(C'\fR is in effect, their results are interpreted +as signed integers. For example, \f(CW\*(C`~0\*(C'\fR usually evaluates to a large +integral value. However, \f(CW\*(C`use\ integer;\ ~0\*(C'\fR is \f(CW\*(C`\-1\*(C'\fR on two's-complement +machines. +.SS "Floating-point Arithmetic" +.IX Subsection "Floating-point Arithmetic" + +.IX Xref "floating-point floating point float real" +.PP +While \f(CW\*(C`use\ integer\*(C'\fR provides integer-only arithmetic, there is no +analogous mechanism to provide automatic rounding or truncation to a +certain number of decimal places. For rounding to a certain number +of digits, \f(CW\*(C`sprintf()\*(C'\fR or \f(CW\*(C`printf()\*(C'\fR is usually the easiest route. +See perlfaq4. +.PP +Floating-point numbers are only approximations to what a mathematician +would call real numbers. There are infinitely more reals than floats, +so some corners must be cut. For example: +.PP +.Vb 2 +\& printf "%.20g\en", 123456789123456789; +\& # produces 123456789123456784 +.Ve +.PP +Testing for exact floating-point equality or inequality is not a +good idea. Here's a (relatively expensive) work-around to compare +whether two floating-point numbers are equal to a particular number of +decimal places. See Knuth, volume \s-1II,\s0 for a more robust treatment of +this topic. +.PP +.Vb 7 +\& sub fp_equal { +\& my ($X, $Y, $POINTS) = @_; +\& my ($tX, $tY); +\& $tX = sprintf("%.${POINTS}g", $X); +\& $tY = sprintf("%.${POINTS}g", $Y); +\& return $tX eq $tY; +\& } +.Ve +.PP +The \s-1POSIX\s0 module (part of the standard perl distribution) implements +\&\f(CW\*(C`ceil()\*(C'\fR, \f(CW\*(C`floor()\*(C'\fR, and other mathematical and trigonometric functions. +The \f(CW\*(C`Math::Complex\*(C'\fR module (part of the standard perl distribution) +defines mathematical functions that work on both the reals and the +imaginary numbers. \f(CW\*(C`Math::Complex\*(C'\fR is not as efficient as \s-1POSIX,\s0 but +\&\s-1POSIX\s0 can't work with complex numbers. +.PP +Rounding in financial applications can have serious implications, and +the rounding method used should be specified precisely. In these +cases, it probably pays not to trust whichever system rounding is +being used by Perl, but to instead implement the rounding function you +need yourself. +.SS "Bigger Numbers" +.IX Xref "number, arbitrary precision" +.IX Subsection "Bigger Numbers" +The standard \f(CW\*(C`Math::BigInt\*(C'\fR, \f(CW\*(C`Math::BigRat\*(C'\fR, and +\&\f(CW\*(C`Math::BigFloat\*(C'\fR modules, +along with the \f(CW\*(C`bignum\*(C'\fR, \f(CW\*(C`bigint\*(C'\fR, and \f(CW\*(C`bigrat\*(C'\fR pragmas, provide +variable-precision arithmetic and overloaded operators, although +they're currently pretty slow. At the cost of some space and +considerable speed, they avoid the normal pitfalls associated with +limited-precision representations. +.PP +.Vb 5 +\& use 5.010; +\& use bigint; # easy interface to Math::BigInt +\& $x = 123456789123456789; +\& say $x * $x; +\& +15241578780673678515622620750190521 +.Ve +.PP +Or with rationals: +.PP +.Vb 8 +\& use 5.010; +\& use bigrat; +\& $x = 3/22; +\& $y = 4/6; +\& say "x/y is ", $x/$y; +\& say "x*y is ", $x*$y; +\& x/y is 9/44 +\& x*y is 1/11 +.Ve +.PP +Several modules let you calculate with unlimited or fixed precision +(bound only by memory and \s-1CPU\s0 time). There +are also some non-standard modules that +provide faster implementations via external C libraries. +.PP +Here is a short, but incomplete summary: +.PP +.Vb 10 +\& Math::String treat string sequences like numbers +\& Math::FixedPrecision calculate with a fixed precision +\& Math::Currency for currency calculations +\& Bit::Vector manipulate bit vectors fast (uses C) +\& Math::BigIntFast Bit::Vector wrapper for big numbers +\& Math::Pari provides access to the Pari C library +\& Math::Cephes uses the external Cephes C library (no +\& big numbers) +\& Math::Cephes::Fraction fractions via the Cephes library +\& Math::GMP another one using an external C library +\& Math::GMPz an alternative interface to libgmp\*(Aqs big ints +\& Math::GMPq an interface to libgmp\*(Aqs fraction numbers +\& Math::GMPf an interface to libgmp\*(Aqs floating point numbers +.Ve +.PP +Choose wisely. diff --git a/data/miniconda3/man/man1/perlport.1 b/data/miniconda3/man/man1/perlport.1 new file mode 100644 index 0000000000000000000000000000000000000000..96e36d10f0ad0154134cb976056d5978e98487c4 --- /dev/null +++ b/data/miniconda3/man/man1/perlport.1 @@ -0,0 +1,2608 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PERLPORT 1" +.TH PERLPORT 1 "2020-12-18" "perl v5.32.1" "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" +perlport \- Writing portable Perl +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl runs on numerous operating systems. While most of them share +much in common, they also have their own unique features. +.PP +This document is meant to help you to find out what constitutes portable +Perl code. That way once you make a decision to write portably, +you know where the lines are drawn, and you can stay within them. +.PP +There is a tradeoff between taking full advantage of one particular +type of computer and taking advantage of a full range of them. +Naturally, as you broaden your range and become more diverse, the +common factors drop, and you are left with an increasingly smaller +area of common ground in which you can operate to accomplish a +particular task. Thus, when you begin attacking a problem, it is +important to consider under which part of the tradeoff curve you +want to operate. Specifically, you must decide whether it is +important that the task that you are coding has the full generality +of being portable, or whether to just get the job done right now. +This is the hardest choice to be made. The rest is easy, because +Perl provides many choices, whichever way you want to approach your +problem. +.PP +Looking at it another way, writing portable code is usually about +willfully limiting your available choices. Naturally, it takes +discipline and sacrifice to do that. The product of portability +and convenience may be a constant. You have been warned. +.PP +Be aware of two important points: +.IP "Not all Perl programs have to be portable" 4 +.IX Item "Not all Perl programs have to be portable" +There is no reason you should not use Perl as a language to glue Unix +tools together, or to prototype a Macintosh application, or to manage the +Windows registry. If it makes no sense to aim for portability for one +reason or another in a given program, then don't bother. +.IP "Nearly all of Perl already \fIis\fR portable" 4 +.IX Item "Nearly all of Perl already is portable" +Don't be fooled into thinking that it is hard to create portable Perl +code. It isn't. Perl tries its level-best to bridge the gaps between +what's available on different platforms, and all the means available to +use those features. Thus almost all Perl code runs on any machine +without modification. But there are some significant issues in +writing portable code, and this document is entirely about those issues. +.PP +Here's the general rule: When you approach a task commonly done +using a whole range of platforms, think about writing portable +code. That way, you don't sacrifice much by way of the implementation +choices you can avail yourself of, and at the same time you can give +your users lots of platform choices. On the other hand, when you have to +take advantage of some unique feature of a particular platform, as is +often the case with systems programming (whether for Unix, Windows, +\&\s-1VMS,\s0 etc.), consider writing platform-specific code. +.PP +When the code will run on only two or three operating systems, you +may need to consider only the differences of those particular systems. +The important thing is to decide where the code will run and to be +deliberate in your decision. +.PP +The material below is separated into three main sections: main issues of +portability (\*(L"\s-1ISSUES\*(R"\s0), platform-specific issues (\*(L"\s-1PLATFORMS\*(R"\s0), and +built-in Perl functions that behave differently on various ports +(\*(L"\s-1FUNCTION IMPLEMENTATIONS\*(R"\s0). +.PP +This information should not be considered complete; it includes possibly +transient information about idiosyncrasies of some of the ports, almost +all of which are in a state of constant evolution. Thus, this material +should be considered a perpetual work in progress +(\f(CW\*(C`Under Construction\*(C'\fR). +.SH "ISSUES" +.IX Header "ISSUES" +.SS "Newlines" +.IX Subsection "Newlines" +In most operating systems, lines in files are terminated by newlines. +Just what is used as a newline may vary from \s-1OS\s0 to \s-1OS.\s0 Unix +traditionally uses \f(CW\*(C`\e012\*(C'\fR, one type of DOSish I/O uses \f(CW\*(C`\e015\e012\*(C'\fR, +Mac\ \s-1OS\s0 uses \f(CW\*(C`\e015\*(C'\fR, and z/OS uses \f(CW\*(C`\e025\*(C'\fR. +.PP +Perl uses \f(CW\*(C`\en\*(C'\fR to represent the \*(L"logical\*(R" newline, where what is +logical may depend on the platform in use. In MacPerl, \f(CW\*(C`\en\*(C'\fR always +means \f(CW\*(C`\e015\*(C'\fR. On \s-1EBCDIC\s0 platforms, \f(CW\*(C`\en\*(C'\fR could be \f(CW\*(C`\e025\*(C'\fR or \f(CW\*(C`\e045\*(C'\fR. +In DOSish perls, \f(CW\*(C`\en\*(C'\fR usually means \f(CW\*(C`\e012\*(C'\fR, but when +accessing a file in \*(L"text\*(R" mode, perl uses the \f(CW\*(C`:crlf\*(C'\fR layer that +translates it to (or from) \f(CW\*(C`\e015\e012\*(C'\fR, depending on whether you're +reading or writing. Unix does the same thing on ttys in canonical +mode. \f(CW\*(C`\e015\e012\*(C'\fR is commonly referred to as \s-1CRLF.\s0 +.PP +To trim trailing newlines from text lines use +\&\f(CW\*(C`chomp\*(C'\fR. With default settings that function +looks for a trailing \f(CW\*(C`\en\*(C'\fR character and thus trims in a portable way. +.PP +When dealing with binary files (or text files in binary mode) be sure +to explicitly set \f(CW$/\fR to the appropriate value for +your file format before using \f(CW\*(C`chomp\*(C'\fR. +.PP +Because of the \*(L"text\*(R" mode translation, DOSish perls have limitations in +using \f(CW\*(C`seek\*(C'\fR and +\&\f(CW\*(C`tell\*(C'\fR on a file accessed in \*(L"text\*(R" mode. +Stick to \f(CW\*(C`seek\*(C'\fR\-ing to +locations you got from \f(CW\*(C`tell\*(C'\fR (and no +others), and you are usually free to use +\&\f(CW\*(C`seek\*(C'\fR and +\&\f(CW\*(C`tell\*(C'\fR even in \*(L"text\*(R" mode. Using +\&\f(CW\*(C`seek\*(C'\fR or +\&\f(CW\*(C`tell\*(C'\fR or other file operations may be +non-portable. If you use \f(CW\*(C`binmode\*(C'\fR on a +file, however, you can usually +\&\f(CW\*(C`seek\*(C'\fR and +\&\f(CW\*(C`tell\*(C'\fR with arbitrary values safely. +.PP +A common misconception in socket programming is that \f(CW\*(C`\en\ eq\ \e012\*(C'\fR +everywhere. When using protocols such as common Internet protocols, +\&\f(CW\*(C`\e012\*(C'\fR and \f(CW\*(C`\e015\*(C'\fR are called for specifically, and the values of +the logical \f(CW\*(C`\en\*(C'\fR and \f(CW\*(C`\er\*(C'\fR (carriage return) are not reliable. +.PP +.Vb 2 +\& print $socket "Hi there, client!\er\en"; # WRONG +\& print $socket "Hi there, client!\e015\e012"; # RIGHT +.Ve +.PP +However, using \f(CW\*(C`\e015\e012\*(C'\fR (or \f(CW\*(C`\ecM\ecJ\*(C'\fR, or \f(CW\*(C`\ex0D\ex0A\*(C'\fR) can be tedious +and unsightly, as well as confusing to those maintaining the code. As +such, the \f(CW\*(C`Socket\*(C'\fR module supplies the Right Thing for those +who want it. +.PP +.Vb 2 +\& use Socket qw(:DEFAULT :crlf); +\& print $socket "Hi there, client!$CRLF" # RIGHT +.Ve +.PP +When reading from a socket, remember that the default input record +separator \f(CW$/\fR is \f(CW\*(C`\en\*(C'\fR, but robust socket code +will recognize as either \f(CW\*(C`\e012\*(C'\fR or \f(CW\*(C`\e015\e012\*(C'\fR as end of line: +.PP +.Vb 3 +\& while (<$socket>) { # NOT ADVISABLE! +\& # ... +\& } +.Ve +.PP +Because both \s-1CRLF\s0 and \s-1LF\s0 end in \s-1LF,\s0 the input record separator can +be set to \s-1LF\s0 and any \s-1CR\s0 stripped later. Better to write: +.PP +.Vb 2 +\& use Socket qw(:DEFAULT :crlf); +\& local($/) = LF; # not needed if $/ is already \e012 +\& +\& while (<$socket>) { +\& s/$CR?$LF/\en/; # not sure if socket uses LF or CRLF, OK +\& # s/\e015?\e012/\en/; # same thing +\& } +.Ve +.PP +This example is preferred over the previous one\*(--even for Unix +platforms\*(--because now any \f(CW\*(C`\e015\*(C'\fR's (\f(CW\*(C`\ecM\*(C'\fR's) are stripped out +(and there was much rejoicing). +.PP +Similarly, functions that return text data\*(--such as a function that +fetches a web page\*(--should sometimes translate newlines before +returning the data, if they've not yet been translated to the local +newline representation. A single line of code will often suffice: +.PP +.Vb 2 +\& $data =~ s/\e015?\e012/\en/g; +\& return $data; +.Ve +.PP +Some of this may be confusing. Here's a handy reference to the \s-1ASCII CR\s0 +and \s-1LF\s0 characters. You can print it out and stick it in your wallet. +.PP +.Vb 2 +\& LF eq \e012 eq \ex0A eq \ecJ eq chr(10) eq ASCII 10 +\& CR eq \e015 eq \ex0D eq \ecM eq chr(13) eq ASCII 13 +\& +\& | Unix | DOS | Mac | +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& \en | LF | LF | CR | +\& \er | CR | CR | LF | +\& \en * | LF | CRLF | CR | +\& \er * | CR | CR | LF | +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& * text\-mode STDIO +.Ve +.PP +The Unix column assumes that you are not accessing a serial line +(like a tty) in canonical mode. If you are, then \s-1CR\s0 on input becomes +\&\*(L"\en\*(R", and \*(L"\en\*(R" on output becomes \s-1CRLF.\s0 +.PP +These are just the most common definitions of \f(CW\*(C`\en\*(C'\fR and \f(CW\*(C`\er\*(C'\fR in Perl. +There may well be others. For example, on an \s-1EBCDIC\s0 implementation +such as z/OS (\s-1OS/390\s0) or \s-1OS/400\s0 (using the \s-1ILE,\s0 the \s-1PASE\s0 is ASCII-based) +the above material is similar to \*(L"Unix\*(R" but the code numbers change: +.PP +.Vb 4 +\& LF eq \e025 eq \ex15 eq \ecU eq chr(21) eq CP\-1047 21 +\& LF eq \e045 eq \ex25 eq chr(37) eq CP\-0037 37 +\& CR eq \e015 eq \ex0D eq \ecM eq chr(13) eq CP\-1047 13 +\& CR eq \e015 eq \ex0D eq \ecM eq chr(13) eq CP\-0037 13 +\& +\& | z/OS | OS/400 | +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& \en | LF | LF | +\& \er | CR | CR | +\& \en * | LF | LF | +\& \er * | CR | CR | +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& * text\-mode STDIO +.Ve +.SS "Numbers endianness and Width" +.IX Subsection "Numbers endianness and Width" +Different CPUs store integers and floating point numbers in different +orders (called \fIendianness\fR) and widths (32\-bit and 64\-bit being the +most common today). This affects your programs when they attempt to transfer +numbers in binary format from one \s-1CPU\s0 architecture to another, +usually either \*(L"live\*(R" via network connection, or by storing the +numbers to secondary storage such as a disk file or tape. +.PP +Conflicting storage orders make an utter mess out of the numbers. If a +little-endian host (Intel, \s-1VAX\s0) stores 0x12345678 (305419896 in +decimal), a big-endian host (Motorola, Sparc, \s-1PA\s0) reads it as +0x78563412 (2018915346 in decimal). Alpha and \s-1MIPS\s0 can be either: +Digital/Compaq used/uses them in little-endian mode; SGI/Cray uses +them in big-endian mode. To avoid this problem in network (socket) +connections use the \f(CW\*(C`pack\*(C'\fR and +\&\f(CW\*(C`unpack\*(C'\fR formats \f(CW\*(C`n\*(C'\fR and \f(CW\*(C`N\*(C'\fR, the +\&\*(L"network\*(R" orders. These are guaranteed to be portable. +.PP +As of Perl 5.10.0, you can also use the \f(CW\*(C`>\*(C'\fR and \f(CW\*(C`<\*(C'\fR modifiers +to force big\- or little-endian byte-order. This is useful if you want +to store signed integers or 64\-bit integers, for example. +.PP +You can explore the endianness of your platform by unpacking a +data structure packed in native format such as: +.PP +.Vb 3 +\& print unpack("h*", pack("s2", 1, 2)), "\en"; +\& # \*(Aq10002000\*(Aq on e.g. Intel x86 or Alpha 21064 in little\-endian mode +\& # \*(Aq00100020\*(Aq on e.g. Motorola 68040 +.Ve +.PP +If you need to distinguish between endian architectures you could use +either of the variables set like so: +.PP +.Vb 2 +\& $is_big_endian = unpack("h*", pack("s", 1)) =~ /01/; +\& $is_little_endian = unpack("h*", pack("s", 1)) =~ /^1/; +.Ve +.PP +Differing widths can cause truncation even between platforms of equal +endianness. The platform of shorter width loses the upper parts of the +number. There is no good solution for this problem except to avoid +transferring or storing raw binary numbers. +.PP +One can circumnavigate both these problems in two ways. Either +transfer and store numbers always in text format, instead of raw +binary, or else consider using modules like +\&\f(CW\*(C`Data::Dumper\*(C'\fR and \f(CW\*(C`Storable\*(C'\fR (included as +of Perl 5.8). Keeping all data as text significantly simplifies matters. +.SS "Files and Filesystems" +.IX Subsection "Files and Filesystems" +Most platforms these days structure files in a hierarchical fashion. +So, it is reasonably safe to assume that all platforms support the +notion of a \*(L"path\*(R" to uniquely identify a file on the system. How +that path is really written, though, differs considerably. +.PP +Although similar, file path specifications differ between Unix, +Windows, Mac\ \s-1OS, OS/2, VMS, VOS, RISC\s0\ \s-1OS,\s0 and probably others. +Unix, for example, is one of the few OSes that has the elegant idea +of a single root directory. +.PP +\&\s-1DOS, OS/2, VMS, VOS,\s0 and Windows can work similarly to Unix with \f(CW\*(C`/\*(C'\fR +as path separator, or in their own idiosyncratic ways (such as having +several root directories and various \*(L"unrooted\*(R" device files such \s-1NIL:\s0 +and \s-1LPT:\s0). +.PP +Mac\ \s-1OS 9\s0 and earlier used \f(CW\*(C`:\*(C'\fR as a path separator instead of \f(CW\*(C`/\*(C'\fR. +.PP +The filesystem may support neither hard links +(\f(CW\*(C`link\*(C'\fR) nor symbolic links +(\f(CW\*(C`symlink\*(C'\fR, +\&\f(CW\*(C`readlink\*(C'\fR, +\&\f(CW\*(C`lstat\*(C'\fR). +.PP +The filesystem may support neither access timestamp nor change +timestamp (meaning that about the only portable timestamp is the +modification timestamp), or one second granularity of any timestamps +(e.g. the \s-1FAT\s0 filesystem limits the time granularity to two seconds). +.PP +The \*(L"inode change timestamp\*(R" (the \f(CW\*(C`\-C\*(C'\fR +filetest) may really be the \*(L"creation timestamp\*(R" (which it is not in +Unix). +.PP +\&\s-1VOS\s0 perl can emulate Unix filenames with \f(CW\*(C`/\*(C'\fR as path separator. The +native pathname characters greater-than, less-than, number-sign, and +percent-sign are always accepted. +.PP +\&\s-1RISC\s0\ \s-1OS\s0 perl can emulate Unix filenames with \f(CW\*(C`/\*(C'\fR as path +separator, or go native and use \f(CW\*(C`.\*(C'\fR for path separator and \f(CW\*(C`:\*(C'\fR to +signal filesystems and disk names. +.PP +Don't assume Unix filesystem access semantics: that read, write, +and execute are all the permissions there are, and even if they exist, +that their semantics (for example what do \f(CW\*(C`r\*(C'\fR, \f(CW\*(C`w\*(C'\fR, and \f(CW\*(C`x\*(C'\fR mean on +a directory) are the Unix ones. The various Unix/POSIX compatibility +layers usually try to make interfaces like \f(CW\*(C`chmod\*(C'\fR +work, but sometimes there simply is no good mapping. +.PP +The \f(CW\*(C`File::Spec\*(C'\fR modules provide methods to manipulate path +specifications and return the results in native format for each +platform. This is often unnecessary as Unix-style paths are +understood by Perl on every supported platform, but if you need to +produce native paths for a native utility that does not understand +Unix syntax, or if you are operating on paths or path components +in unknown (and thus possibly native) syntax, \f(CW\*(C`File::Spec\*(C'\fR +is your friend. Here are two brief examples: +.PP +.Vb 2 +\& use File::Spec::Functions; +\& chdir(updir()); # go up one directory +\& +\& # Concatenate a path from its components +\& my $file = catfile(updir(), \*(Aqtemp\*(Aq, \*(Aqfile.txt\*(Aq); +\& # on Unix: \*(Aq../temp/file.txt\*(Aq +\& # on Win32: \*(Aq..\etemp\efile.txt\*(Aq +\& # on VMS: \*(Aq[\-.temp]file.txt\*(Aq +.Ve +.PP +In general, production code should not have file paths hardcoded. +Making them user-supplied or read from a configuration file is +better, keeping in mind that file path syntax varies on different +machines. +.PP +This is especially noticeable in scripts like Makefiles and test suites, +which often assume \f(CW\*(C`/\*(C'\fR as a path separator for subdirectories. +.PP +Also of use is \f(CW\*(C`File::Basename\*(C'\fR from the standard +distribution, which splits a pathname into pieces (base filename, full +path to directory, and file suffix). +.PP +Even when on a single platform (if you can call Unix a single platform), +remember not to count on the existence or the contents of particular +system-specific files or directories, like \fI/etc/passwd\fR, +\&\fI/etc/sendmail.conf\fR, \fI/etc/resolv.conf\fR, or even \fI/tmp/\fR. For +example, \fI/etc/passwd\fR may exist but not contain the encrypted +passwords, because the system is using some form of enhanced security. +Or it may not contain all the accounts, because the system is using \s-1NIS.\s0 +If code does need to rely on such a file, include a description of the +file and its format in the code's documentation, then make it easy for +the user to override the default location of the file. +.PP +Don't assume a text file will end with a newline. They should, +but people forget. +.PP +Do not have two files or directories of the same name with different +case, like \fItest.pl\fR and \fITest.pl\fR, as many platforms have +case-insensitive (or at least case-forgiving) filenames. Also, try +not to have non-word characters (except for \f(CW\*(C`.\*(C'\fR) in the names, and +keep them to the 8.3 convention, for maximum portability, onerous a +burden though this may appear. +.PP +Likewise, when using the \f(CW\*(C`AutoSplit\*(C'\fR module, try to keep +your functions to 8.3 naming and case-insensitive conventions; or, at the +least, make it so the resulting files have a unique (case-insensitively) +first 8 characters. +.PP +Whitespace in filenames is tolerated on most systems, but not all, +and even on systems where it might be tolerated, some utilities +might become confused by such whitespace. +.PP +Many systems (\s-1DOS, VMS ODS\-2\s0) cannot have more than one \f(CW\*(C`.\*(C'\fR in their +filenames. +.PP +Don't assume \f(CW\*(C`>\*(C'\fR won't be the first character of a filename. +Always use the three-arg version of +\&\f(CW\*(C`open\*(C'\fR: +.PP +.Vb 1 +\& open my $fh, \*(Aq<\*(Aq, $existing_file) or die $!; +.Ve +.PP +Two-arg \f(CW\*(C`open\*(C'\fR is magic and can +translate characters like \f(CW\*(C`>\*(C'\fR, \f(CW\*(C`<\*(C'\fR, and \f(CW\*(C`|\*(C'\fR in filenames, +which is usually the wrong thing to do. +\&\f(CW\*(C`sysopen\*(C'\fR and three-arg +\&\f(CW\*(C`open\*(C'\fR don't have this problem. +.PP +Don't use \f(CW\*(C`:\*(C'\fR as a part of a filename since many systems use that for +their own semantics (Mac \s-1OS\s0 Classic for separating pathname components, +many networking schemes and utilities for separating the nodename and +the pathname, and so on). For the same reasons, avoid \f(CW\*(C`@\*(C'\fR, \f(CW\*(C`;\*(C'\fR and +\&\f(CW\*(C`|\*(C'\fR. +.PP +Don't assume that in pathnames you can collapse two leading slashes +\&\f(CW\*(C`//\*(C'\fR into one: some networking and clustering filesystems have special +semantics for that. Let the operating system sort it out. +.PP +The \fIportable filename characters\fR as defined by \s-1ANSI C\s0 are +.PP +.Vb 4 +\& a b c d e f g h i j k l m n o p q r s t u v w x y z +\& A B C D E F G H I J K L M N O P Q R S T U V W X Y Z +\& 0 1 2 3 4 5 6 7 8 9 +\& . _ \- +.Ve +.PP +and \f(CW\*(C`\-\*(C'\fR shouldn't be the first character. If you want to be +hypercorrect, stay case-insensitive and within the 8.3 naming +convention (all the files and directories have to be unique within one +directory if their names are lowercased and truncated to eight +characters before the \f(CW\*(C`.\*(C'\fR, if any, and to three characters after the +\&\f(CW\*(C`.\*(C'\fR, if any). (And do not use \f(CW\*(C`.\*(C'\fRs in directory names.) +.SS "System Interaction" +.IX Subsection "System Interaction" +Not all platforms provide a command line. These are usually platforms +that rely primarily on a Graphical User Interface (\s-1GUI\s0) for user +interaction. A program requiring a command line interface might +not work everywhere. This is probably for the user of the program +to deal with, so don't stay up late worrying about it. +.PP +Some platforms can't delete or rename files held open by the system, +this limitation may also apply to changing filesystem metainformation +like file permissions or owners. Remember to +\&\f(CW\*(C`close\*(C'\fR files when you are done with them. +Don't \f(CW\*(C`unlink\*(C'\fR or +\&\f(CW\*(C`rename\*(C'\fR an open file. Don't +\&\f(CW\*(C`tie\*(C'\fR or +\&\f(CW\*(C`open\*(C'\fR a file already tied or opened; +\&\f(CW\*(C`untie\*(C'\fR or +\&\f(CW\*(C`close\*(C'\fR it first. +.PP +Don't open the same file more than once at a time for writing, as some +operating systems put mandatory locks on such files. +.PP +Don't assume that write/modify permission on a directory gives the +right to add or delete files/directories in that directory. That is +filesystem specific: in some filesystems you need write/modify +permission also (or even just) in the file/directory itself. In some +filesystems (\s-1AFS, DFS\s0) the permission to add/delete directory entries +is a completely separate permission. +.PP +Don't assume that a single \f(CW\*(C`unlink\*(C'\fR completely +gets rid of the file: some filesystems (most notably the ones in \s-1VMS\s0) have +versioned filesystems, and \f(CW\*(C`unlink\*(C'\fR removes only +the most recent one (it doesn't remove all the versions because by default +the native tools on those platforms remove just the most recent version, +too). The portable idiom to remove all the versions of a file is +.PP +.Vb 1 +\& 1 while unlink "file"; +.Ve +.PP +This will terminate if the file is undeletable for some reason +(protected, not there, and so on). +.PP +Don't count on a specific environment variable existing in +\&\f(CW%ENV\fR. Don't count on \f(CW%ENV\fR entries +being case-sensitive, or even case-preserving. Don't try to clear +\&\f(CW%ENV\fR by saying \f(CW\*(C`%ENV = ();\*(C'\fR, or, if you really have +to, make it conditional on \f(CW\*(C`$^O ne \*(AqVMS\*(Aq\*(C'\fR since in \s-1VMS\s0 the +\&\f(CW%ENV\fR table is much more than a per-process key-value +string table. +.PP +On \s-1VMS,\s0 some entries in the \f(CW%ENV\fR hash are dynamically +created when their key is used on a read if they did not previously +exist. The values for \f(CW$ENV{HOME}\fR, \f(CW$ENV{TERM}\fR, \f(CW$ENV{PATH}\fR, and +\&\f(CW$ENV{USER}\fR, are known to be dynamically generated. The specific names +that are dynamically generated may vary with the version of the C library +on \s-1VMS,\s0 and more may exist than are documented. +.PP +On \s-1VMS\s0 by default, changes to the \f(CW%ENV\fR hash persist +after perl exits. Subsequent invocations of perl in the same process can +inadvertently inherit environment settings that were meant to be +temporary. +.PP +Don't count on signals or \f(CW%SIG\fR for anything. +.PP +Don't count on filename globbing. Use +\&\f(CW\*(C`opendir\*(C'\fR, +\&\f(CW\*(C`readdir\*(C'\fR, and +\&\f(CW\*(C`closedir\*(C'\fR instead. +.PP +Don't count on per-program environment variables, or per-program current +directories. +.PP +Don't count on specific values of \f(CW$!\fR, neither numeric nor +especially the string values. Users may switch their locales causing +error messages to be translated into their languages. If you can +trust a POSIXish environment, you can portably use the symbols defined +by the \f(CW\*(C`Errno\*(C'\fR module, like \f(CW\*(C`ENOENT\*(C'\fR. And don't trust on the +values of \f(CW$!\fR at all except immediately after a failed +system call. +.SS "Command names versus file pathnames" +.IX Subsection "Command names versus file pathnames" +Don't assume that the name used to invoke a command or program with +\&\f(CW\*(C`system\*(C'\fR or \f(CW\*(C`exec\*(C'\fR can +also be used to test for the existence of the file that holds the +executable code for that command or program. +First, many systems have \*(L"internal\*(R" commands that are built-in to the +shell or \s-1OS\s0 and while these commands can be invoked, there is no +corresponding file. Second, some operating systems (e.g., Cygwin, +\&\s-1DJGPP, OS/2,\s0 and \s-1VOS\s0) have required suffixes for executable files; +these suffixes are generally permitted on the command name but are not +required. Thus, a command like \f(CW\*(C`perl\*(C'\fR might exist in a file named +\&\fIperl\fR, \fIperl.exe\fR, or \fIperl.pm\fR, depending on the operating system. +The variable \f(CW$Config{_exe}\fR in the +\&\f(CW\*(C`Config\*(C'\fR module holds the executable suffix, if any. Third, +the \s-1VMS\s0 port carefully sets up \f(CW$^X\fR and +\&\f(CW$Config{perlpath}\fR so that no further processing +is required. This is just as well, because the matching regular +expression used below would then have to deal with a possible trailing +version number in the \s-1VMS\s0 file name. +.PP +To convert \f(CW$^X\fR to a file pathname, taking account of +the requirements of the various operating system possibilities, say: +.PP +.Vb 6 +\& use Config; +\& my $thisperl = $^X; +\& if ($^O ne \*(AqVMS\*(Aq) { +\& $thisperl .= $Config{_exe} +\& unless $thisperl =~ m/\eQ$Config{_exe}\eE$/i; +\& } +.Ve +.PP +To convert \f(CW$Config{perlpath}\fR to a file pathname, say: +.PP +.Vb 6 +\& use Config; +\& my $thisperl = $Config{perlpath}; +\& if ($^O ne \*(AqVMS\*(Aq) { +\& $thisperl .= $Config{_exe} +\& unless $thisperl =~ m/\eQ$Config{_exe}\eE$/i; +\& } +.Ve +.SS "Networking" +.IX Subsection "Networking" +Don't assume that you can reach the public Internet. +.PP +Don't assume that there is only one way to get through firewalls +to the public Internet. +.PP +Don't assume that you can reach outside world through any other port +than 80, or some web proxy. ftp is blocked by many firewalls. +.PP +Don't assume that you can send email by connecting to the local \s-1SMTP\s0 port. +.PP +Don't assume that you can reach yourself or any node by the name +\&'localhost'. The same goes for '127.0.0.1'. You will have to try both. +.PP +Don't assume that the host has only one network card, or that it +can't bind to many virtual \s-1IP\s0 addresses. +.PP +Don't assume a particular network device name. +.PP +Don't assume a particular set of +\&\f(CW\*(C`ioctl\*(C'\fRs will work. +.PP +Don't assume that you can ping hosts and get replies. +.PP +Don't assume that any particular port (service) will respond. +.PP +Don't assume that \f(CW\*(C`Sys::Hostname\*(C'\fR (or any other \s-1API\s0 or +command) returns either a fully qualified hostname or a non-qualified +hostname: it all depends on how the system had been configured. Also +remember that for things such as \s-1DHCP\s0 and \s-1NAT,\s0 the hostname you get back +might not be very useful. +.PP +All the above \fIdon't\fRs may look daunting, and they are, but the key +is to degrade gracefully if one cannot reach the particular network +service one wants. Croaking or hanging do not look very professional. +.SS "Interprocess Communication (\s-1IPC\s0)" +.IX Subsection "Interprocess Communication (IPC)" +In general, don't directly access the system in code meant to be +portable. That means, no \f(CW\*(C`system\*(C'\fR, +\&\f(CW\*(C`exec\*(C'\fR, \f(CW\*(C`fork\*(C'\fR, +\&\f(CW\*(C`pipe\*(C'\fR, +\&\f(CW\*(C`\`\`\*(C'\fR or \f(CW\*(C`qx//\*(C'\fR, +\&\f(CW\*(C`open\*(C'\fR with a \f(CW\*(C`|\*(C'\fR, nor any of the other +things that makes being a Perl hacker worth being. +.PP +Commands that launch external processes are generally supported on +most platforms (though many of them do not support any type of +forking). The problem with using them arises from what you invoke +them on. External tools are often named differently on different +platforms, may not be available in the same location, might accept +different arguments, can behave differently, and often present their +results in a platform-dependent way. Thus, you should seldom depend +on them to produce consistent results. (Then again, if you're calling +\&\f(CW\*(C`netstat \-a\*(C'\fR, you probably don't expect it to run on both Unix and \s-1CP/M.\s0) +.PP +One especially common bit of Perl code is opening a pipe to \fBsendmail\fR: +.PP +.Vb 2 +\& open(my $mail, \*(Aq|\-\*(Aq, \*(Aq/usr/lib/sendmail \-t\*(Aq) +\& or die "cannot fork sendmail: $!"; +.Ve +.PP +This is fine for systems programming when sendmail is known to be +available. But it is not fine for many non-Unix systems, and even +some Unix systems that may not have sendmail installed. If a portable +solution is needed, see the various distributions on \s-1CPAN\s0 that deal +with it. \f(CW\*(C`Mail::Mailer\*(C'\fR and \f(CW\*(C`Mail::Send\*(C'\fR +in the \f(CW\*(C`MailTools\*(C'\fR distribution are commonly used, and provide several +mailing methods, including \f(CW\*(C`mail\*(C'\fR, \f(CW\*(C`sendmail\*(C'\fR, and direct \s-1SMTP\s0 (via +\&\f(CW\*(C`Net::SMTP\*(C'\fR) if a mail transfer agent is not available. +\&\f(CW\*(C`Mail::Sendmail\*(C'\fR is a standalone module that provides +simple, platform-independent mailing. +.PP +The Unix System V \s-1IPC\s0 (\f(CW\*(C`msg*(), sem*(), shm*()\*(C'\fR) is not available +even on all Unix platforms. +.PP +Do not use either the bare result of \f(CW\*(C`pack("N", 10, 20, 30, 40)\*(C'\fR or +bare v\-strings (such as \f(CW\*(C`v10.20.30.40\*(C'\fR) to represent IPv4 addresses: +both forms just pack the four bytes into network order. That this +would be equal to the C language \f(CW\*(C`in_addr\*(C'\fR struct (which is what the +socket code internally uses) is not guaranteed. To be portable use +the routines of the \f(CW\*(C`Socket\*(C'\fR module, such as +\&\f(CW\*(C`inet_aton\*(C'\fR, +\&\f(CW\*(C`inet_ntoa\*(C'\fR, and +\&\f(CW\*(C`sockaddr_in\*(C'\fR. +.PP +The rule of thumb for portable code is: Do it all in portable Perl, or +use a module (that may internally implement it with platform-specific +code, but exposes a common interface). +.SS "External Subroutines (\s-1XS\s0)" +.IX Subsection "External Subroutines (XS)" +\&\s-1XS\s0 code can usually be made to work with any platform, but dependent +libraries, header files, etc., might not be readily available or +portable, or the \s-1XS\s0 code itself might be platform-specific, just as Perl +code might be. If the libraries and headers are portable, then it is +normally reasonable to make sure the \s-1XS\s0 code is portable, too. +.PP +A different type of portability issue arises when writing \s-1XS\s0 code: +availability of a C compiler on the end-user's system. C brings +with it its own portability issues, and writing \s-1XS\s0 code will expose +you to some of those. Writing purely in Perl is an easier way to +achieve portability. +.SS "Standard Modules" +.IX Subsection "Standard Modules" +In general, the standard modules work across platforms. Notable +exceptions are the \f(CW\*(C`CPAN\*(C'\fR module (which currently makes +connections to external programs that may not be available), +platform-specific modules (like \f(CW\*(C`ExtUtils::MM_VMS\*(C'\fR), +and \s-1DBM\s0 modules. +.PP +There is no one \s-1DBM\s0 module available on all platforms. +\&\f(CW\*(C`SDBM_File\*(C'\fR and the others are generally available on all +Unix and DOSish ports, but not in MacPerl, where only +\&\f(CW\*(C`NDBM_File\*(C'\fR and \f(CW\*(C`DB_File\*(C'\fR are available. +.PP +The good news is that at least some \s-1DBM\s0 module should be available, and +\&\f(CW\*(C`AnyDBM_File\*(C'\fR will use whichever module it can find. Of +course, then the code needs to be fairly strict, dropping to the greatest +common factor (e.g., not exceeding 1K for each record), so that it will +work with any \s-1DBM\s0 module. See AnyDBM_File for more details. +.SS "Time and Date" +.IX Subsection "Time and Date" +The system's notion of time of day and calendar date is controlled in +widely different ways. Don't assume the timezone is stored in \f(CW$ENV{TZ}\fR, +and even if it is, don't assume that you can control the timezone through +that variable. Don't assume anything about the three-letter timezone +abbreviations (for example that \s-1MST\s0 would be the Mountain Standard Time, +it's been known to stand for Moscow Standard Time). If you need to +use timezones, express them in some unambiguous format like the +exact number of minutes offset from \s-1UTC,\s0 or the \s-1POSIX\s0 timezone +format. +.PP +Don't assume that the epoch starts at 00:00:00, January 1, 1970, +because that is \s-1OS\-\s0 and implementation-specific. It is better to +store a date in an unambiguous representation. The \s-1ISO 8601\s0 standard +defines YYYY-MM-DD as the date format, or \s-1YYYY\-MM\-DDTHH:MM:SS\s0 +(that's a literal \*(L"T\*(R" separating the date from the time). +Please do use the \s-1ISO 8601\s0 instead of making us guess what +date 02/03/04 might be. \s-1ISO 8601\s0 even sorts nicely as-is. +A text representation (like \*(L"1987\-12\-18\*(R") can be easily converted +into an OS-specific value using a module like +\&\f(CW\*(C`Time::Piece\*(C'\fR (see \*(L"Date Parsing\*(R" in Time::Piece) or +\&\f(CW\*(C`Date::Parse\*(C'\fR. An array of values, such as those +returned by \f(CW\*(C`localtime\*(C'\fR, can be converted to an OS-specific +representation using \f(CW\*(C`Time::Local\*(C'\fR. +.PP +When calculating specific times, such as for tests in time or date modules, +it may be appropriate to calculate an offset for the epoch. +.PP +.Vb 2 +\& use Time::Local qw(timegm); +\& my $offset = timegm(0, 0, 0, 1, 0, 1970); +.Ve +.PP +The value for \f(CW$offset\fR in Unix will be \f(CW0\fR, but in Mac \s-1OS\s0 Classic +will be some large number. \f(CW$offset\fR can then be added to a Unix time +value to get what should be the proper value on any system. +.SS "Character sets and character encoding" +.IX Subsection "Character sets and character encoding" +Assume very little about character sets. +.PP +Assume nothing about numerical values (\f(CW\*(C`ord\*(C'\fR, +\&\f(CW\*(C`chr\*(C'\fR) of characters. +Do not use explicit code point ranges (like \f(CW\*(C`\exHH\-\exHH)\*(C'\fR. However, +starting in Perl v5.22, regular expression pattern bracketed character +class ranges specified like \f(CW\*(C`qr/[\eN{U+HH}\-\eN{U+HH}]/\*(C'\fR are portable, +and starting in Perl v5.24, the same ranges are portable in +\&\f(CW\*(C`tr///\*(C'\fR. +You can portably use symbolic character classes like \f(CW\*(C`[:print:]\*(C'\fR. +.PP +Do not assume that the alphabetic characters are encoded contiguously +(in the numeric sense). There may be gaps. Special coding in Perl, +however, guarantees that all subsets of \f(CW\*(C`qr/[A\-Z]/\*(C'\fR, \f(CW\*(C`qr/[a\-z]/\*(C'\fR, and +\&\f(CW\*(C`qr/[0\-9]/\*(C'\fR behave as expected. +\&\f(CW\*(C`tr///\*(C'\fR +behaves the same for these ranges. In patterns, any ranges specified with +end points using the \f(CW\*(C`\eN{...}\*(C'\fR notations ensures character set +portability, but it is a bug in Perl v5.22 that this isn't true of +\&\f(CW\*(C`tr///\*(C'\fR, +fixed in v5.24. +.PP +Do not assume anything about the ordering of the characters. +The lowercase letters may come before or after the uppercase letters; +the lowercase and uppercase may be interlaced so that both \*(L"a\*(R" and \*(L"A\*(R" +come before \*(L"b\*(R"; the accented and other international characters may +be interlaced so that a\*: comes before \*(L"b\*(R". +Unicode::Collate can be used to sort this all out. +.SS "Internationalisation" +.IX Subsection "Internationalisation" +If you may assume \s-1POSIX\s0 (a rather large assumption), you may read +more about the \s-1POSIX\s0 locale system from perllocale. The locale +system at least attempts to make things a little bit more portable, +or at least more convenient and native-friendly for non-English +users. The system affects character sets and encoding, and date +and time formatting\*(--amongst other things. +.PP +If you really want to be international, you should consider Unicode. +See perluniintro and perlunicode for more information. +.PP +By default Perl assumes your source code is written in an 8\-bit \s-1ASCII\s0 +superset. To embed Unicode characters in your strings and regexes, you can +use the \f(CW\*(C`\ex{HH}\*(C'\fR or (more portably) \f(CW\*(C`\eN{U+HH}\*(C'\fR +notations. You can also use the +\&\f(CW\*(C`utf8\*(C'\fR pragma and write your code in \s-1UTF\-8,\s0 which lets you use +Unicode characters directly (not just in quoted constructs but also in +identifiers). +.SS "System Resources" +.IX Subsection "System Resources" +If your code is destined for systems with severely constrained (or +missing!) virtual memory systems then you want to be \fIespecially\fR mindful +of avoiding wasteful constructs such as: +.PP +.Vb 1 +\& my @lines = <$very_large_file>; # bad +\& +\& while (<$fh>) {$file .= $_} # sometimes bad +\& my $file = join(\*(Aq\*(Aq, <$fh>); # better +.Ve +.PP +The last two constructs may appear unintuitive to most people. The +first repeatedly grows a string, whereas the second allocates a +large chunk of memory in one go. On some systems, the second is +more efficient than the first. +.SS "Security" +.IX Subsection "Security" +Most multi-user platforms provide basic levels of security, usually +implemented at the filesystem level. Some, however, unfortunately do +not. Thus the notion of user id, or \*(L"home\*(R" directory, +or even the state of being logged-in, may be unrecognizable on many +platforms. If you write programs that are security-conscious, it +is usually best to know what type of system you will be running +under so that you can write code explicitly for that platform (or +class of platforms). +.PP +Don't assume the Unix filesystem access semantics: the operating +system or the filesystem may be using some \s-1ACL\s0 systems, which are +richer languages than the usual \f(CW\*(C`rwx\*(C'\fR. Even if the \f(CW\*(C`rwx\*(C'\fR exist, +their semantics might be different. +.PP +(From the security viewpoint, testing for permissions before attempting to +do something is silly anyway: if one tries this, there is potential +for race conditions. Someone or something might change the +permissions between the permissions check and the actual operation. +Just try the operation.) +.PP +Don't assume the Unix user and group semantics: especially, don't +expect \f(CW$<\fR and \f(CW$>\fR (or +\&\f(CW$(\fR and \f(CW$)\fR) to work for switching +identities (or memberships). +.PP +Don't assume set-uid and set-gid semantics. (And even if you do, +think twice: set-uid and set-gid are a known can of security worms.) +.SS "Style" +.IX Subsection "Style" +For those times when it is necessary to have platform-specific code, +consider keeping the platform-specific code in one place, making porting +to other platforms easier. Use the \f(CW\*(C`Config\*(C'\fR module and the +special variable \f(CW$^O\fR to differentiate platforms, as +described in \*(L"\s-1PLATFORMS\*(R"\s0. +.PP +Beware of the \*(L"else syndrome\*(R": +.PP +.Vb 5 +\& if ($^O eq \*(AqMSWin32\*(Aq) { +\& # code that assumes Windows +\& } else { +\& # code that assumes Linux +\& } +.Ve +.PP +The \f(CW\*(C`else\*(C'\fR branch should be used for the really ultimate fallback, +not for code specific to some platform. +.PP +Be careful in the tests you supply with your module or programs. +Module code may be fully portable, but its tests might not be. This +often happens when tests spawn off other processes or call external +programs to aid in the testing, or when (as noted above) the tests +assume certain things about the filesystem and paths. Be careful not +to depend on a specific output style for errors, such as when checking +\&\f(CW$!\fR after a failed system call. Using +\&\f(CW$!\fR for anything else than displaying it as output is +doubtful (though see the \f(CW\*(C`Errno\*(C'\fR module for testing reasonably +portably for error value). Some platforms expect a certain output format, +and Perl on those platforms may have been adjusted accordingly. Most +specifically, don't anchor a regex when testing an error value. +.SH "CPAN Testers" +.IX Header "CPAN Testers" +Modules uploaded to \s-1CPAN\s0 are tested by a variety of volunteers on +different platforms. These \s-1CPAN\s0 testers are notified by mail of each +new upload, and reply to the list with \s-1PASS, FAIL, NA\s0 (not applicable to +this platform), or \s-1UNKNOWN\s0 (unknown), along with any relevant notations. +.PP +The purpose of the testing is twofold: one, to help developers fix any +problems in their code that crop up because of lack of testing on other +platforms; two, to provide users with information about whether +a given module works on a given platform. +.PP +Also see: +.IP "\(bu" 4 +Mailing list: cpan\-testers\-discuss@perl.org +.IP "\(bu" 4 +Testing results: +.SH "PLATFORMS" +.IX Header "PLATFORMS" +Perl is built with a \f(CW$^O\fR variable that indicates the +operating system it was built on. This was implemented +to help speed up code that would otherwise have to \f(CW\*(C`use Config\*(C'\fR +and use the value of \f(CW$Config{osname}\fR. Of course, +to get more detailed information about the system, looking into +\&\f(CW%Config\fR is certainly recommended. +.PP +\&\f(CW%Config\fR cannot always be trusted, however, +because it was built at compile time. If perl was built in one place, +then transferred elsewhere, some values may be wrong. The values may +even have been edited after the fact. +.SS "Unix" +.IX Subsection "Unix" +Perl works on a bewildering variety of Unix and Unix-like platforms (see +e.g. most of the files in the \fIhints/\fR directory in the source code kit). +On most of these systems, the value of \f(CW$^O\fR (hence +\&\f(CW$Config{osname}\fR, too) is determined either by +lowercasing and stripping punctuation from the first field of the string +returned by typing \f(CW\*(C`uname \-a\*(C'\fR (or a similar command) at the shell prompt +or by testing the file system for the presence of uniquely named files +such as a kernel or header file. Here, for example, are a few of the +more popular Unix flavors: +.PP +.Vb 10 +\& uname $^O $Config{archname} +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& AIX aix aix +\& BSD/OS bsdos i386\-bsdos +\& Darwin darwin darwin +\& DYNIX/ptx dynixptx i386\-dynixptx +\& FreeBSD freebsd freebsd\-i386 +\& Haiku haiku BePC\-haiku +\& Linux linux arm\-linux +\& Linux linux armv5tel\-linux +\& Linux linux i386\-linux +\& Linux linux i586\-linux +\& Linux linux ppc\-linux +\& HP\-UX hpux PA\-RISC1.1 +\& IRIX irix irix +\& Mac OS X darwin darwin +\& NeXT 3 next next\-fat +\& NeXT 4 next OPENSTEP\-Mach +\& openbsd openbsd i386\-openbsd +\& OSF1 dec_osf alpha\-dec_osf +\& reliantunix\-n svr4 RM400\-svr4 +\& SCO_SV sco_sv i386\-sco_sv +\& SINIX\-N svr4 RM400\-svr4 +\& sn4609 unicos CRAY_C90\-unicos +\& sn6521 unicosmk t3e\-unicosmk +\& sn9617 unicos CRAY_J90\-unicos +\& SunOS solaris sun4\-solaris +\& SunOS solaris i86pc\-solaris +\& SunOS4 sunos sun4\-sunos +.Ve +.PP +Because the value of \f(CW$Config{archname}\fR may +depend on the hardware architecture, it can vary more than the value of +\&\f(CW$^O\fR. +.SS "\s-1DOS\s0 and Derivatives" +.IX Subsection "DOS and Derivatives" +Perl has long been ported to Intel-style microcomputers running under +systems like PC-DOS, MS-DOS, \s-1OS/2,\s0 and most Windows platforms you can +bring yourself to mention (except for Windows \s-1CE,\s0 if you count that). +Users familiar with \fI\s-1COMMAND.COM\s0\fR or \fI\s-1CMD.EXE\s0\fR style shells should +be aware that each of these file specifications may have subtle +differences: +.PP +.Vb 4 +\& my $filespec0 = "c:/foo/bar/file.txt"; +\& my $filespec1 = "c:\e\efoo\e\ebar\e\efile.txt"; +\& my $filespec2 = \*(Aqc:\efoo\ebar\efile.txt\*(Aq; +\& my $filespec3 = \*(Aqc:\e\efoo\e\ebar\e\efile.txt\*(Aq; +.Ve +.PP +System calls accept either \f(CW\*(C`/\*(C'\fR or \f(CW\*(C`\e\*(C'\fR as the path separator. +However, many command-line utilities of \s-1DOS\s0 vintage treat \f(CW\*(C`/\*(C'\fR as +the option prefix, so may get confused by filenames containing \f(CW\*(C`/\*(C'\fR. +Aside from calling any external programs, \f(CW\*(C`/\*(C'\fR will work just fine, +and probably better, as it is more consistent with popular usage, +and avoids the problem of remembering what to backwhack and what +not to. +.PP +The \s-1DOS FAT\s0 filesystem can accommodate only \*(L"8.3\*(R" style filenames. Under +the \*(L"case-insensitive, but case-preserving\*(R" \s-1HPFS\s0 (\s-1OS/2\s0) and \s-1NTFS\s0 (\s-1NT\s0) +filesystems you may have to be careful about case returned with functions +like \f(CW\*(C`readdir\*(C'\fR or used with functions like +\&\f(CW\*(C`open\*(C'\fR or +\&\f(CW\*(C`opendir\*(C'\fR. +.PP +\&\s-1DOS\s0 also treats several filenames as special, such as \fI\s-1AUX\s0\fR, \fI\s-1PRN\s0\fR, +\&\fI\s-1NUL\s0\fR, \fI\s-1CON\s0\fR, \fI\s-1COM1\s0\fR, \fI\s-1LPT1\s0\fR, \fI\s-1LPT2\s0\fR, etc. Unfortunately, sometimes +these filenames won't even work if you include an explicit directory +prefix. It is best to avoid such filenames, if you want your code to be +portable to \s-1DOS\s0 and its derivatives. It's hard to know what these all +are, unfortunately. +.PP +Users of these operating systems may also wish to make use of +scripts such as \fIpl2bat.bat\fR to put wrappers around your scripts. +.PP +Newline (\f(CW\*(C`\en\*(C'\fR) is translated as \f(CW\*(C`\e015\e012\*(C'\fR by the I/O system when +reading from and writing to files (see \*(L"Newlines\*(R"). +\&\f(CW\*(C`binmode($filehandle)\*(C'\fR will keep \f(CW\*(C`\en\*(C'\fR translated as \f(CW\*(C`\e012\*(C'\fR for that +filehandle. +\&\f(CW\*(C`binmode\*(C'\fR should always be used for code +that deals with binary data. That's assuming you realize in advance that +your data is in binary. General-purpose programs should often assume +nothing about their data. +.PP +The \f(CW$^O\fR variable and the +\&\f(CW$Config{archname}\fR values for various DOSish +perls are as follows: +.PP +.Vb 10 +\& OS $^O $Config{archname} ID Version +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& MS\-DOS dos ? +\& PC\-DOS dos ? +\& OS/2 os2 ? +\& Windows 3.1 ? ? 0 3 01 +\& Windows 95 MSWin32 MSWin32\-x86 1 4 00 +\& Windows 98 MSWin32 MSWin32\-x86 1 4 10 +\& Windows ME MSWin32 MSWin32\-x86 1 ? +\& Windows NT MSWin32 MSWin32\-x86 2 4 xx +\& Windows NT MSWin32 MSWin32\-ALPHA 2 4 xx +\& Windows NT MSWin32 MSWin32\-ppc 2 4 xx +\& Windows 2000 MSWin32 MSWin32\-x86 2 5 00 +\& Windows XP MSWin32 MSWin32\-x86 2 5 01 +\& Windows 2003 MSWin32 MSWin32\-x86 2 5 02 +\& Windows Vista MSWin32 MSWin32\-x86 2 6 00 +\& Windows 7 MSWin32 MSWin32\-x86 2 6 01 +\& Windows 7 MSWin32 MSWin32\-x64 2 6 01 +\& Windows 2008 MSWin32 MSWin32\-x86 2 6 01 +\& Windows 2008 MSWin32 MSWin32\-x64 2 6 01 +\& Windows CE MSWin32 ? 3 +\& Cygwin cygwin cygwin +.Ve +.PP +The various MSWin32 Perl's can distinguish the \s-1OS\s0 they are running on +via the value of the fifth element of the list returned from +\&\f(CW\*(C`Win32::GetOSVersion()\*(C'\fR. For example: +.PP +.Vb 4 +\& if ($^O eq \*(AqMSWin32\*(Aq) { +\& my @os_version_info = Win32::GetOSVersion(); +\& print +(\*(Aq3.1\*(Aq,\*(Aq95\*(Aq,\*(AqNT\*(Aq)[$os_version_info[4]],"\en"; +\& } +.Ve +.PP +There are also \f(CW\*(C`Win32::IsWinNT()|Win32/Win32::IsWinNT()\*(C'\fR, +\&\f(CW\*(C`Win32::IsWin95()|Win32/Win32::IsWin95()\*(C'\fR, and +\&\f(CW\*(C`Win32::GetOSName()\*(C'\fR; try +\&\f(CW\*(C`perldoc Win32\*(C'\fR. +The very portable \f(CW\*(C`POSIX::uname()\*(C'\fR will work too: +.PP +.Vb 2 +\& c:\e> perl \-MPOSIX \-we "print join \*(Aq|\*(Aq, uname" +\& Windows NT|moonru|5.0|Build 2195 (Service Pack 2)|x86 +.Ve +.PP +Errors set by Winsock functions are now put directly into \f(CW$^E\fR, +and the relevant \f(CW\*(C`WSAE*\*(C'\fR error codes are now exported from the +Errno and \s-1POSIX\s0 modules for testing this against. +.PP +The previous behavior of putting the errors (converted to POSIX-style +\&\f(CW\*(C`E*\*(C'\fR error codes since Perl 5.20.0) into \f(CW$!\fR was buggy due to +the non-equivalence of like-named Winsock and \s-1POSIX\s0 error constants, +a relationship between which has unfortunately been established +in one way or another since Perl 5.8.0. +.PP +The new behavior provides a much more robust solution for checking +Winsock errors in portable software without accidentally matching +\&\s-1POSIX\s0 tests that were intended for other OSes and may have different +meanings for Winsock. +.PP +The old behavior is currently retained, warts and all, for backwards +compatibility, but users are encouraged to change any code that +tests \f(CW$!\fR against \f(CW\*(C`E*\*(C'\fR constants for Winsock errors to instead +test \f(CW$^E\fR against \f(CW\*(C`WSAE*\*(C'\fR constants. After a suitable deprecation +period, which started with Perl 5.24, the old behavior may be +removed, leaving \f(CW$!\fR unchanged after Winsock function calls, to +avoid any possible confusion over which error variable to check. +.PP +Also see: +.IP "\(bu" 4 +The djgpp environment for \s-1DOS,\s0 +and perldos. +.IP "\(bu" 4 +The \s-1EMX\s0 environment for \s-1DOS, OS/2,\s0 etc. emx@iaehv.nl, + Also perlos2. +.IP "\(bu" 4 +Build instructions for Win32 in perlwin32, or under the Cygnus environment +in perlcygwin. +.IP "\(bu" 4 +The \f(CW\*(C`Win32::*\*(C'\fR modules in Win32. +.IP "\(bu" 4 +The ActiveState Pages, +.IP "\(bu" 4 +The Cygwin environment for Win32; \fI\s-1README\s0.cygwin\fR (installed +as perlcygwin), +.IP "\(bu" 4 +The U/WIN environment for Win32, + +.IP "\(bu" 4 +Build instructions for \s-1OS/2,\s0 perlos2 +.SS "\s-1VMS\s0" +.IX Subsection "VMS" +Perl on \s-1VMS\s0 is discussed in perlvms in the Perl distribution. +.PP +The official name of \s-1VMS\s0 as of this writing is OpenVMS. +.PP +Interacting with Perl from the Digital Command Language (\s-1DCL\s0) shell +often requires a different set of quotation marks than Unix shells do. +For example: +.PP +.Vb 2 +\& $ perl \-e "print ""Hello, world.\en""" +\& Hello, world. +.Ve +.PP +There are several ways to wrap your Perl scripts in \s-1DCL\s0 \fI.COM\fR files, if +you are so inclined. For example: +.PP +.Vb 6 +\& $ write sys$output "Hello from DCL!" +\& $ if p1 .eqs. "" +\& $ then perl \-x \*(Aqf$environment("PROCEDURE") +\& $ else perl \-x \- \*(Aqp1 \*(Aqp2 \*(Aqp3 \*(Aqp4 \*(Aqp5 \*(Aqp6 \*(Aqp7 \*(Aqp8 +\& $ deck/dollars="_\|_END_\|_" +\& #!/usr/bin/perl +\& +\& print "Hello from Perl!\en"; +\& +\& _\|_END_\|_ +\& $ endif +.Ve +.PP +Do take care with \f(CW\*(C`$ ASSIGN/nolog/user SYS$COMMAND: SYS$INPUT\*(C'\fR if your +Perl-in-DCL script expects to do things like \f(CW\*(C`$read = ;\*(C'\fR. +.PP +The \s-1VMS\s0 operating system has two filesystems, designated by their +on-disk structure (\s-1ODS\s0) level: \s-1ODS\-2\s0 and its successor \s-1ODS\-5.\s0 The +initial port of Perl to \s-1VMS\s0 pre-dates \s-1ODS\-5,\s0 but all current testing and +development assumes \s-1ODS\-5\s0 and its capabilities, including case +preservation, extended characters in filespecs, and names up to 8192 +bytes long. +.PP +Perl on \s-1VMS\s0 can accept either \s-1VMS\-\s0 or Unix-style file +specifications as in either of the following: +.PP +.Vb 2 +\& $ perl \-ne "print if /perl_setup/i" SYS$LOGIN:LOGIN.COM +\& $ perl \-ne "print if /perl_setup/i" /sys$login/login.com +.Ve +.PP +but not a mixture of both as in: +.PP +.Vb 2 +\& $ perl \-ne "print if /perl_setup/i" sys$login:/login.com +\& Can\*(Aqt open sys$login:/login.com: file specification syntax error +.Ve +.PP +In general, the easiest path to portability is always to specify +filenames in Unix format unless they will need to be processed by native +commands or utilities. Because of this latter consideration, the +File::Spec module by default returns native format specifications +regardless of input format. This default may be reversed so that +filenames are always reported in Unix format by specifying the +\&\f(CW\*(C`DECC$FILENAME_UNIX_REPORT\*(C'\fR feature logical in the environment. +.PP +The file type, or extension, is always present in a VMS-format file +specification even if it's zero-length. This means that, by default, +\&\f(CW\*(C`readdir\*(C'\fR will return a trailing dot on a +file with no extension, so where you would see \f(CW"a"\fR on Unix you'll see +\&\f(CW"a."\fR on \s-1VMS.\s0 However, the trailing dot may be suppressed by enabling +the \f(CW\*(C`DECC$READDIR_DROPDOTNOTYPE\*(C'\fR feature in the environment (see the \s-1CRTL\s0 +documentation on feature logical names). +.PP +What \f(CW\*(C`\en\*(C'\fR represents depends on the type of file opened. It usually +represents \f(CW\*(C`\e012\*(C'\fR but it could also be \f(CW\*(C`\e015\*(C'\fR, \f(CW\*(C`\e012\*(C'\fR, \f(CW\*(C`\e015\e012\*(C'\fR, +\&\f(CW\*(C`\e000\*(C'\fR, \f(CW\*(C`\e040\*(C'\fR, or nothing depending on the file organization and +record format. The \f(CW\*(C`VMS::Stdio\*(C'\fR module provides access to +the special \f(CW\*(C`fopen()\*(C'\fR requirements of files with unusual attributes on +\&\s-1VMS.\s0 +.PP +The value of \f(CW$^O\fR on OpenVMS is \*(L"\s-1VMS\*(R".\s0 To determine the +architecture that you are running on refer to +\&\f(CW$Config{archname}\fR. +.PP +On \s-1VMS,\s0 perl determines the \s-1UTC\s0 offset from the \f(CW\*(C`SYS$TIMEZONE_DIFFERENTIAL\*(C'\fR +logical name. Although the \s-1VMS\s0 epoch began at 17\-NOV\-1858 00:00:00.00, +calls to \f(CW\*(C`localtime\*(C'\fR are adjusted to count +offsets from 01\-JAN\-1970 00:00:00.00, just like Unix. +.PP +Also see: +.IP "\(bu" 4 +\&\fI\s-1README\s0.vms\fR (installed as \fIREADME_vms\fR), perlvms +.IP "\(bu" 4 +vmsperl list, vmsperl\-subscribe@perl.org +.IP "\(bu" 4 +vmsperl on the web, +.IP "\(bu" 4 +\&\s-1VMS\s0 Software Inc. web site, +.SS "\s-1VOS\s0" +.IX Subsection "VOS" +Perl on \s-1VOS\s0 (also known as OpenVOS) is discussed in \fI\s-1README\s0.vos\fR +in the Perl distribution (installed as perlvos). Perl on \s-1VOS\s0 +can accept either \s-1VOS\-\s0 or Unix-style file specifications as in +either of the following: +.PP +.Vb 2 +\& $ perl \-ne "print if /perl_setup/i" >system>notices +\& $ perl \-ne "print if /perl_setup/i" /system/notices +.Ve +.PP +or even a mixture of both as in: +.PP +.Vb 1 +\& $ perl \-ne "print if /perl_setup/i" >system/notices +.Ve +.PP +Even though \s-1VOS\s0 allows the slash character to appear in object +names, because the \s-1VOS\s0 port of Perl interprets it as a pathname +delimiting character, \s-1VOS\s0 files, directories, or links whose +names contain a slash character cannot be processed. Such files +must be renamed before they can be processed by Perl. +.PP +Older releases of \s-1VOS\s0 (prior to OpenVOS Release 17.0) limit file +names to 32 or fewer characters, prohibit file names from +starting with a \f(CW\*(C`\-\*(C'\fR character, and prohibit file names from +containing \f(CW\*(C` \*(C'\fR (space) or any character from the set \f(CW\*(C`!#%&\*(Aq()*;<=>?\*(C'\fR. +.PP +Newer releases of \s-1VOS\s0 (OpenVOS Release 17.0 or later) support a +feature known as extended names. On these releases, file names +can contain up to 255 characters, are prohibited from starting +with a \f(CW\*(C`\-\*(C'\fR character, and the set of prohibited characters is +reduced to \f(CW\*(C`#%*<>?\*(C'\fR. There are +restrictions involving spaces and apostrophes: these characters +must not begin or end a name, nor can they immediately precede or +follow a period. Additionally, a space must not immediately +precede another space or hyphen. Specifically, the following +character combinations are prohibited: space-space, +space-hyphen, period-space, space-period, period-apostrophe, +apostrophe-period, leading or trailing space, and leading or +trailing apostrophe. Although an extended file name is limited +to 255 characters, a path name is still limited to 256 +characters. +.PP +The value of \f(CW$^O\fR on \s-1VOS\s0 is \*(L"vos\*(R". To determine the +architecture that you are running on refer to +\&\f(CW$Config{archname}\fR. +.PP +Also see: +.IP "\(bu" 4 +\&\fI\s-1README\s0.vos\fR (installed as perlvos) +.IP "\(bu" 4 +The \s-1VOS\s0 mailing list. +.Sp +There is no specific mailing list for Perl on \s-1VOS.\s0 You can contact +the Stratus Technologies Customer Assistance Center (\s-1CAC\s0) for your +region, or you can use the contact information located in the +distribution files on the Stratus Anonymous \s-1FTP\s0 site. +.IP "\(bu" 4 +Stratus Technologies on the web at +.IP "\(bu" 4 +\&\s-1VOS\s0 Open-Source Software on the web at +.SS "\s-1EBCDIC\s0 Platforms" +.IX Subsection "EBCDIC Platforms" +v5.22 core Perl runs on z/OS (formerly \s-1OS/390\s0). Theoretically it could +run on the successors of \s-1OS/400\s0 on \s-1AS/400\s0 minicomputers as well as +\&\s-1VM/ESA,\s0 and \s-1BS2000\s0 for S/390 Mainframes. Such computers use \s-1EBCDIC\s0 +character sets internally (usually Character Code Set \s-1ID 0037\s0 for \s-1OS/400\s0 +and either 1047 or POSIX-BC for S/390 systems). +.PP +The rest of this section may need updating, but we don't know what it +should say. Please submit comments to +. +.PP +On the mainframe Perl currently works under the \*(L"Unix system +services for \s-1OS/390\*(R"\s0 (formerly known as OpenEdition), \s-1VM/ESA\s0 OpenEdition, or +the \s-1BS200\s0 POSIX-BC system (\s-1BS2000\s0 is supported in Perl 5.6 and greater). +See perlos390 for details. Note that for \s-1OS/400\s0 there is also a port of +Perl 5.8.1/5.10.0 or later to the \s-1PASE\s0 which is ASCII-based (as opposed to +\&\s-1ILE\s0 which is EBCDIC-based), see perlos400. +.PP +As of R2.5 of \s-1USS\s0 for \s-1OS/390\s0 and Version 2.3 of \s-1VM/ESA\s0 these Unix +sub-systems do not support the \f(CW\*(C`#!\*(C'\fR shebang trick for script invocation. +Hence, on \s-1OS/390\s0 and \s-1VM/ESA\s0 Perl scripts can be executed with a header +similar to the following simple script: +.PP +.Vb 4 +\& : # use perl +\& eval \*(Aqexec /usr/local/bin/perl \-S $0 ${1+"$@"}\*(Aq +\& if 0; +\& #!/usr/local/bin/perl # just a comment really +\& +\& print "Hello from perl!\en"; +.Ve +.PP +\&\s-1OS/390\s0 will support the \f(CW\*(C`#!\*(C'\fR shebang trick in release 2.8 and beyond. +Calls to \f(CW\*(C`system\*(C'\fR and backticks can use \s-1POSIX\s0 +shell syntax on all S/390 systems. +.PP +On the \s-1AS/400,\s0 if \s-1PERL5\s0 is in your library list, you may need +to wrap your Perl scripts in a \s-1CL\s0 procedure to invoke them like so: +.PP +.Vb 3 +\& BEGIN +\& CALL PGM(PERL5/PERL) PARM(\*(Aq/QOpenSys/hello.pl\*(Aq) +\& ENDPGM +.Ve +.PP +This will invoke the Perl script \fIhello.pl\fR in the root of the +QOpenSys file system. On the \s-1AS/400\s0 calls to +\&\f(CW\*(C`system\*(C'\fR or backticks must use \s-1CL\s0 syntax. +.PP +On these platforms, bear in mind that the \s-1EBCDIC\s0 character set may have +an effect on what happens with some Perl functions (such as +\&\f(CW\*(C`chr\*(C'\fR, \f(CW\*(C`pack\*(C'\fR, +\&\f(CW\*(C`print\*(C'\fR, +\&\f(CW\*(C`printf\*(C'\fR, +\&\f(CW\*(C`ord\*(C'\fR, \f(CW\*(C`sort\*(C'\fR, +\&\f(CW\*(C`sprintf\*(C'\fR, +\&\f(CW\*(C`unpack\*(C'\fR), as +well as bit-fiddling with \s-1ASCII\s0 constants using operators like +\&\f(CW\*(C`^\*(C'\fR, \f(CW\*(C`&\*(C'\fR and \f(CW\*(C`|\*(C'\fR, not to mention +dealing with socket interfaces to \s-1ASCII\s0 computers (see \*(L"Newlines\*(R"). +.PP +Fortunately, most web servers for the mainframe will correctly +translate the \f(CW\*(C`\en\*(C'\fR in the following statement to its \s-1ASCII\s0 equivalent +(\f(CW\*(C`\er\*(C'\fR is the same under both Unix and z/OS): +.PP +.Vb 1 +\& print "Content\-type: text/html\er\en\er\en"; +.Ve +.PP +The values of \f(CW$^O\fR on some of these platforms include: +.PP +.Vb 5 +\& uname $^O $Config{archname} +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& OS/390 os390 os390 +\& OS400 os400 os400 +\& POSIX\-BC posix\-bc BS2000\-posix\-bc +.Ve +.PP +Some simple tricks for determining if you are running on an \s-1EBCDIC\s0 +platform could include any of the following (perhaps all): +.PP +.Vb 1 +\& if ("\et" eq "\e005") { print "EBCDIC may be spoken here!\en"; } +\& +\& if (ord(\*(AqA\*(Aq) == 193) { print "EBCDIC may be spoken here!\en"; } +\& +\& if (chr(169) eq \*(Aqz\*(Aq) { print "EBCDIC may be spoken here!\en"; } +.Ve +.PP +One thing you may not want to rely on is the \s-1EBCDIC\s0 encoding +of punctuation characters since these may differ from code page to code +page (and once your module or script is rumoured to work with \s-1EBCDIC,\s0 +folks will want it to work with all \s-1EBCDIC\s0 character sets). +.PP +Also see: +.IP "\(bu" 4 +perlos390, perlos400, perlbs2000, perlebcdic. +.IP "\(bu" 4 +The perl\-mvs@perl.org list is for discussion of porting issues as well as +general usage issues for all \s-1EBCDIC\s0 Perls. Send a message body of +\&\*(L"subscribe perl-mvs\*(R" to majordomo@perl.org. +.IP "\(bu" 4 +\&\s-1AS/400\s0 Perl information at + +as well as on \s-1CPAN\s0 in the \fIports/\fR directory. +.SS "Acorn \s-1RISC OS\s0" +.IX Subsection "Acorn RISC OS" +Because Acorns use \s-1ASCII\s0 with newlines (\f(CW\*(C`\en\*(C'\fR) in text files as \f(CW\*(C`\e012\*(C'\fR like +Unix, and because Unix filename emulation is turned on by default, +most simple scripts will probably work \*(L"out of the box\*(R". The native +filesystem is modular, and individual filesystems are free to be +case-sensitive or insensitive, and are usually case-preserving. Some +native filesystems have name length limits, which file and directory +names are silently truncated to fit. Scripts should be aware that the +standard filesystem currently has a name length limit of \fB10\fR +characters, with up to 77 items in a directory, but other filesystems +may not impose such limitations. +.PP +Native filenames are of the form +.PP +.Vb 1 +\& Filesystem#Special_Field::DiskName.$.Directory.Directory.File +.Ve +.PP +where +.PP +.Vb 8 +\& Special_Field is not usually present, but may contain . and $ . +\& Filesystem =~ m|[A\-Za\-z0\-9_]| +\& DsicName =~ m|[A\-Za\-z0\-9_/]| +\& $ represents the root directory +\& . is the path separator +\& @ is the current directory (per filesystem but machine global) +\& ^ is the parent directory +\& Directory and File =~ m|[^\e0\- "\e.\e$\e%\e&:\e@\e\e^\e|\e177]+| +.Ve +.PP +The default filename translation is roughly \f(CW\*(C`tr|/.|./|\*(C'\fR, swapping dots +and slashes. +.PP +Note that \f(CW\*(C`"ADFS::HardDisk.$.File" ne \*(AqADFS::HardDisk.$.File\*(Aq\*(C'\fR and that +the second stage of \f(CW\*(C`$\*(C'\fR interpolation in regular expressions will fall +foul of the \f(CW$.\fR variable if scripts are not careful. +.PP +Logical paths specified by system variables containing comma-separated +search lists are also allowed; hence \f(CW\*(C`System:Modules\*(C'\fR is a valid +filename, and the filesystem will prefix \f(CW\*(C`Modules\*(C'\fR with each section of +\&\f(CW\*(C`System$Path\*(C'\fR until a name is made that points to an object on disk. +Writing to a new file \f(CW\*(C`System:Modules\*(C'\fR would be allowed only if +\&\f(CW\*(C`System$Path\*(C'\fR contains a single item list. The filesystem will also +expand system variables in filenames if enclosed in angle brackets, so +\&\f(CW\*(C`.Modules\*(C'\fR would look for the file +\&\f(CW\*(C`$ENV{\*(AqSystem$Dir\*(Aq}\ .\ \*(AqModules\*(Aq\*(C'\fR. The obvious implication of this is +that \fBfully qualified filenames can start with \f(CB\*(C`<>\*(C'\fB\fR and the +three-argument form of \f(CW\*(C`open\*(C'\fR should +always be used. +.PP +Because \f(CW\*(C`.\*(C'\fR was in use as a directory separator and filenames could not +be assumed to be unique after 10 characters, Acorn implemented the C +compiler to strip the trailing \f(CW\*(C`.c\*(C'\fR \f(CW\*(C`.h\*(C'\fR \f(CW\*(C`.s\*(C'\fR and \f(CW\*(C`.o\*(C'\fR suffix from +filenames specified in source code and store the respective files in +subdirectories named after the suffix. Hence files are translated: +.PP +.Vb 6 +\& foo.h h.foo +\& C:foo.h C:h.foo (logical path variable) +\& sys/os.h sys.h.os (C compiler groks Unix\-speak) +\& 10charname.c c.10charname +\& 10charname.o o.10charname +\& 11charname_.c c.11charname (assuming filesystem truncates at 10) +.Ve +.PP +The Unix emulation library's translation of filenames to native assumes +that this sort of translation is required, and it allows a user-defined list +of known suffixes that it will transpose in this fashion. This may +seem transparent, but consider that with these rules \fIfoo/bar/baz.h\fR +and \fIfoo/bar/h/baz\fR both map to \fIfoo.bar.h.baz\fR, and that +\&\f(CW\*(C`readdir\*(C'\fR and \f(CW\*(C`glob\*(C'\fR +cannot and do not attempt to emulate the reverse mapping. Other +\&\f(CW\*(C`.\*(C'\fR's in filenames are translated to \f(CW\*(C`/\*(C'\fR. +.PP +As implied above, the environment accessed through +\&\f(CW%ENV\fR is global, and the convention is that program +specific environment variables are of the form \f(CW\*(C`Program$Name\*(C'\fR. +Each filesystem maintains a current directory, +and the current filesystem's current directory is the \fBglobal\fR current +directory. Consequently, sociable programs don't change the current +directory but rely on full pathnames, and programs (and Makefiles) cannot +assume that they can spawn a child process which can change the current +directory without affecting its parent (and everyone else for that +matter). +.PP +Because native operating system filehandles are global and are currently +allocated down from 255, with 0 being a reserved value, the Unix emulation +library emulates Unix filehandles. Consequently, you can't rely on +passing \f(CW\*(C`STDIN\*(C'\fR, \f(CW\*(C`STDOUT\*(C'\fR, or \f(CW\*(C`STDERR\*(C'\fR to your children. +.PP +The desire of users to express filenames of the form +\&\f(CW\*(C`.Bar\*(C'\fR on the command line unquoted causes problems, +too: \f(CW\*(C`\`\`\*(C'\fR command output capture has +to perform a guessing game. It assumes that a string \f(CW\*(C`<[^<>]+\e$[^<>]>\*(C'\fR +is a reference to an environment variable, whereas anything else involving +\&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>\*(C'\fR is redirection, and generally manages to be 99% +right. Of course, the problem remains that scripts cannot rely on any +Unix tools being available, or that any tools found have Unix-like command +line arguments. +.PP +Extensions and \s-1XS\s0 are, in theory, buildable by anyone using free +tools. In practice, many don't, as users of the Acorn platform are +used to binary distributions. MakeMaker does run, but no available +make currently copes with MakeMaker's makefiles; even if and when +this should be fixed, the lack of a Unix-like shell will cause +problems with makefile rules, especially lines of the form +\&\f(CW\*(C`cd sdbm && make all\*(C'\fR, and anything using quoting. +.PP +\&\*(L"\s-1RISC\s0\ \s-1OS\*(R"\s0 is the proper name for the operating system, but the value +in \f(CW$^O\fR is \*(L"riscos\*(R" (because we don't like shouting). +.SS "Other perls" +.IX Subsection "Other perls" +Perl has been ported to many platforms that do not fit into any of +the categories listed above. Some, such as AmigaOS, +\&\s-1QNX,\s0 Plan 9, and \s-1VOS,\s0 have been well-integrated into the standard +Perl source code kit. You may need to see the \fIports/\fR directory +on \s-1CPAN\s0 for information, and possibly binaries, for the likes of: +aos, Atari \s-1ST,\s0 lynxos, riscos, Novell Netware, Tandem Guardian, +\&\fIetc.\fR (Yes, we know that some of these OSes may fall under the +Unix category, but we are not a standards body.) +.PP +Some approximate operating system names and their \f(CW$^O\fR +values in the \*(L"\s-1OTHER\*(R"\s0 category include: +.PP +.Vb 3 +\& OS $^O $Config{archname} +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& Amiga DOS amigaos m68k\-amigos +.Ve +.PP +See also: +.IP "\(bu" 4 +Amiga, \fI\s-1README\s0.amiga\fR (installed as perlamiga). +.IP "\(bu" 4 +A free perl5\-based \s-1PERL.NLM\s0 for Novell Netware is available in +precompiled binary and source code form from +as well as from \s-1CPAN.\s0 +.IP "\(bu" 4 +Plan\ 9, \fI\s-1README\s0.plan9\fR +.SH "FUNCTION IMPLEMENTATIONS" +.IX Header "FUNCTION IMPLEMENTATIONS" +Listed below are functions that are either completely unimplemented +or else have been implemented differently on various platforms. +Preceding each description will be, in parentheses, a list of +platforms that the description applies to. +.PP +The list may well be incomplete, or even wrong in some places. When +in doubt, consult the platform-specific \s-1README\s0 files in the Perl +source distribution, and any other documentation resources accompanying +a given port. +.PP +Be aware, moreover, that even among Unix-ish systems there are variations. +.PP +For many functions, you can also query \f(CW%Config\fR, +exported by default from the \f(CW\*(C`Config\*(C'\fR module. For example, to +check whether the platform has the \f(CW\*(C`lstat\*(C'\fR +call, check \f(CW$Config{d_lstat}\fR. See Config for a +full description of available variables. +.SS "Alphabetical Listing of Perl Functions" +.IX Subsection "Alphabetical Listing of Perl Functions" +.IP "\-X" 8 +.IX Item "-X" +(Win32) +\&\f(CW\*(C`\-w\*(C'\fR only inspects the read-only file attribute (\s-1FILE_ATTRIBUTE_READONLY\s0), +which determines whether the directory can be deleted, not whether it can +be written to. Directories always have read and write access unless denied +by discretionary access control lists (DACLs). +.Sp +(\s-1VMS\s0) +\&\f(CW\*(C`\-r\*(C'\fR, \f(CW\*(C`\-w\*(C'\fR, \f(CW\*(C`\-x\*(C'\fR, and \f(CW\*(C`\-o\*(C'\fR tell whether the file is accessible, +which may not reflect UIC-based file protections. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`\-s\*(C'\fR by name on an open file will return the space reserved on disk, +rather than the current extent. \f(CW\*(C`\-s\*(C'\fR on an open filehandle returns the +current size. +.Sp +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`\-R\*(C'\fR, \f(CW\*(C`\-W\*(C'\fR, \f(CW\*(C`\-X\*(C'\fR, \f(CW\*(C`\-O\*(C'\fR are indistinguishable from \f(CW\*(C`\-r\*(C'\fR, \f(CW\*(C`\-w\*(C'\fR, +\&\f(CW\*(C`\-x\*(C'\fR, \f(CW\*(C`\-o\*(C'\fR. +.Sp +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`\-g\*(C'\fR, \f(CW\*(C`\-k\*(C'\fR, \f(CW\*(C`\-l\*(C'\fR, \f(CW\*(C`\-u\*(C'\fR, \f(CW\*(C`\-A\*(C'\fR are not particularly meaningful. +.Sp +(\s-1VMS, RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`\-p\*(C'\fR is not particularly meaningful. +.Sp +(\s-1VMS\s0) +\&\f(CW\*(C`\-d\*(C'\fR is true if passed a device spec without an explicit directory. +.Sp +(Win32) +\&\f(CW\*(C`\-x\*(C'\fR (or \f(CW\*(C`\-X\*(C'\fR) determine if a file ends in one of the executable +suffixes. \f(CW\*(C`\-S\*(C'\fR is meaningless. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`\-x\*(C'\fR (or \f(CW\*(C`\-X\*(C'\fR) determine if a file has an executable file type. +.IP "alarm" 8 +.IX Item "alarm" +(Win32) +Emulated using timers that must be explicitly polled whenever Perl +wants to dispatch \*(L"safe signals\*(R" and therefore cannot interrupt +blocking system calls. +.IP "atan2" 8 +.IX Item "atan2" +(Tru64, HP-UX 10.20) +Due to issues with various CPUs, math libraries, compilers, and standards, +results for \f(CW\*(C`atan2\*(C'\fR may vary depending on any combination of the above. +Perl attempts to conform to the Open Group/IEEE standards for the results +returned from \f(CW\*(C`atan2\*(C'\fR, but cannot force the issue if the system Perl is +run on does not allow it. +.Sp +The current version of the standards for \f(CW\*(C`atan2\*(C'\fR is available at +. +.IP "binmode" 8 +.IX Item "binmode" +(\s-1RISC\s0\ \s-1OS\s0) +Meaningless. +.Sp +(\s-1VMS\s0) +Reopens file and restores pointer; if function fails, underlying +filehandle may be closed, or pointer may be in a different position. +.Sp +(Win32) +The value returned by \f(CW\*(C`tell\*(C'\fR may be affected +after the call, and the filehandle may be flushed. +.IP "chmod" 8 +.IX Item "chmod" +(Win32) +Only good for changing \*(L"owner\*(R" read-write access; \*(L"group\*(R" and \*(L"other\*(R" +bits are meaningless. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Only good for changing \*(L"owner\*(R" and \*(L"other\*(R" read-write access. +.Sp +(\s-1VOS\s0) +Access permissions are mapped onto \s-1VOS\s0 access-control list changes. +.Sp +(Cygwin) +The actual permissions set depend on the value of the \f(CW\*(C`CYGWIN\*(C'\fR variable +in the \s-1SYSTEM\s0 environment settings. +.Sp +(Android) +Setting the exec bit on some locations (generally \fI/sdcard\fR) will return true +but not actually set the bit. +.Sp +(\s-1VMS\s0) +A mode argument of zero sets permissions to the user's default permission mask +rather than disabling all permissions. +.IP "chown" 8 +.IX Item "chown" +(Plan\ 9, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.Sp +(Win32) +Does nothing, but won't fail. +.Sp +(\s-1VOS\s0) +A little funky, because \s-1VOS\s0's notion of ownership is a little funky. +.IP "chroot" 8 +.IX Item "chroot" +(Win32, \s-1VMS,\s0 Plan\ 9, \s-1RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "crypt" 8 +.IX Item "crypt" +(Win32) +May not be available if library or source was not provided when building +perl. +.Sp +(Android) +Not implemented. +.IP "dbmclose" 8 +.IX Item "dbmclose" +(\s-1VMS,\s0 Plan\ 9, \s-1VOS\s0) +Not implemented. +.IP "dbmopen" 8 +.IX Item "dbmopen" +(\s-1VMS,\s0 Plan\ 9, \s-1VOS\s0) +Not implemented. +.IP "dump" 8 +.IX Item "dump" +(\s-1RISC\s0\ \s-1OS\s0) +Not useful. +.Sp +(Cygwin, Win32) +Not supported. +.Sp +(\s-1VMS\s0) +Invokes \s-1VMS\s0 debugger. +.IP "exec" 8 +.IX Item "exec" +(Win32) +\&\f(CW\*(C`exec LIST\*(C'\fR without the use of indirect object syntax (\f(CW\*(C`exec PROGRAM LIST\*(C'\fR) +may fall back to trying the shell if the first \f(CW\*(C`spawn()\*(C'\fR fails. +.Sp +Note that the list form of \fBexec()\fR is emulated since the Win32 \s-1API\s0 +\&\fBCreateProcess()\fR accepts a simple string rather than an array of +command-line arguments. This may have security implications for your +code. +.Sp +(SunOS, Solaris, HP-UX) +Does not automatically flush output handles on some platforms. +.Sp +(Symbian \s-1OS\s0) +Not supported. +.IP "exit" 8 +.IX Item "exit" +(\s-1VMS\s0) +Emulates Unix \f(CW\*(C`exit\*(C'\fR (which considers \f(CW\*(C`exit 1\*(C'\fR to indicate an error) by +mapping the \f(CW1\fR to \f(CW\*(C`SS$_ABORT\*(C'\fR (\f(CW44\fR). This behavior may be overridden +with the pragma \f(CW\*(C`use vmsish \*(Aqexit\*(Aq\*(C'\fR. As with +the \s-1CRTL\s0's \f(CW\*(C`exit()\*(C'\fR function, \f(CW\*(C`exit 0\*(C'\fR is also mapped to an exit status +of \f(CW\*(C`SS$_NORMAL\*(C'\fR (\f(CW1\fR); this mapping cannot be overridden. Any other +argument to \f(CW\*(C`exit\*(C'\fR +is used directly as Perl's exit status. On \s-1VMS,\s0 unless the future +\&\s-1POSIX_EXIT\s0 mode is enabled, the exit code should always be a valid +\&\s-1VMS\s0 exit code and not a generic number. When the \s-1POSIX_EXIT\s0 mode is +enabled, a generic number will be encoded in a method compatible with +the C library _POSIX_EXIT macro so that it can be decoded by other +programs, particularly ones written in C, like the \s-1GNV\s0 package. +.Sp +(Solaris) +\&\f(CW\*(C`exit\*(C'\fR resets file pointers, which is a problem when called +from a child process (created by \f(CW\*(C`fork\*(C'\fR) in +\&\f(CW\*(C`BEGIN\*(C'\fR. +A workaround is to use \f(CW\*(C`POSIX::_exit\*(C'\fR. +.Sp +.Vb 3 +\& exit unless $Config{archname} =~ /\ebsolaris\eb/; +\& require POSIX; +\& POSIX::_exit(0); +.Ve +.IP "fcntl" 8 +.IX Item "fcntl" +(Win32) +Not implemented. +.Sp +(\s-1VMS\s0) +Some functions available based on the version of \s-1VMS.\s0 +.IP "flock" 8 +.IX Item "flock" +(\s-1VMS, RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "fork" 8 +.IX Item "fork" +(AmigaOS, \s-1RISC\s0\ \s-1OS, VMS\s0) +Not implemented. +.Sp +(Win32) +Emulated using multiple interpreters. See perlfork. +.Sp +(SunOS, Solaris, HP-UX) +Does not automatically flush output handles on some platforms. +.IP "getlogin" 8 +.IX Item "getlogin" +(\s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "getpgrp" 8 +.IX Item "getpgrp" +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "getppid" 8 +.IX Item "getppid" +(Win32, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "getpriority" 8 +.IX Item "getpriority" +(Win32, \s-1VMS, RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "getpwnam" 8 +.IX Item "getpwnam" +(Win32) +Not implemented. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Not useful. +.IP "getgrnam" 8 +.IX Item "getgrnam" +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "getnetbyname" 8 +.IX Item "getnetbyname" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "getpwuid" 8 +.IX Item "getpwuid" +(Win32) +Not implemented. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Not useful. +.IP "getgrgid" 8 +.IX Item "getgrgid" +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "getnetbyaddr" 8 +.IX Item "getnetbyaddr" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "getprotobynumber" 8 +.IX Item "getprotobynumber" +(Android) +Not implemented. +.IP "getpwent" 8 +.IX Item "getpwent" +(Android, Win32) +Not implemented. +.IP "getgrent" 8 +.IX Item "getgrent" +(Android, Win32, \s-1VMS\s0) +Not implemented. +.IP "gethostbyname" 8 +.IX Item "gethostbyname" +(Irix\ 5) +\&\f(CW\*(C`gethostbyname(\*(Aqlocalhost\*(Aq)\*(C'\fR does not work everywhere: you may have +to use \f(CW\*(C`gethostbyname(\*(Aq127.0.0.1\*(Aq)\*(C'\fR. +.IP "gethostent" 8 +.IX Item "gethostent" +(Win32) +Not implemented. +.IP "getnetent" 8 +.IX Item "getnetent" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "getprotoent" 8 +.IX Item "getprotoent" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "getservent" 8 +.IX Item "getservent" +(Win32, Plan\ 9) +Not implemented. +.IP "seekdir" 8 +.IX Item "seekdir" +(Android) +Not implemented. +.IP "sethostent" 8 +.IX Item "sethostent" +(Android, Win32, Plan\ 9, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setnetent" 8 +.IX Item "setnetent" +(Win32, Plan\ 9, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setprotoent" 8 +.IX Item "setprotoent" +(Android, Win32, Plan\ 9, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setservent" 8 +.IX Item "setservent" +(Plan\ 9, Win32, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "endpwent" 8 +.IX Item "endpwent" +(Win32) +Not implemented. +.Sp +(Android) +Either not implemented or a no-op. +.IP "endgrent" 8 +.IX Item "endgrent" +(Android, \s-1RISC\s0\ \s-1OS, VMS,\s0 Win32) +Not implemented. +.IP "endhostent" 8 +.IX Item "endhostent" +(Android, Win32) +Not implemented. +.IP "endnetent" 8 +.IX Item "endnetent" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "endprotoent" 8 +.IX Item "endprotoent" +(Android, Win32, Plan\ 9) +Not implemented. +.IP "endservent" 8 +.IX Item "endservent" +(Plan\ 9, Win32) +Not implemented. +.IP "getsockopt" 8 +.IX Item "getsockopt" +(Plan\ 9) +Not implemented. +.IP "glob" 8 +.IX Item "glob" +This operator is implemented via the \f(CW\*(C`File::Glob\*(C'\fR extension +on most platforms. See File::Glob for portability information. +.IP "gmtime" 8 +.IX Item "gmtime" +In theory, \f(CW\*(C`gmtime\*(C'\fR is reliable from \-2**63 to 2**63\-1. However, +because work-arounds in the implementation use floating point numbers, +it will become inaccurate as the time gets larger. This is a bug and +will be fixed in the future. +.Sp +(\s-1VOS\s0) +Time values are 32\-bit quantities. +.IP "ioctl" 8 +.IX Item "ioctl" +(\s-1VMS\s0) +Not implemented. +.Sp +(Win32) +Available only for socket handles, and it does what the \f(CW\*(C`ioctlsocket()\*(C'\fR call +in the Winsock \s-1API\s0 does. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Available only for socket handles. +.IP "kill" 8 +.IX Item "kill" +(\s-1RISC\s0\ \s-1OS\s0) +Not implemented, hence not useful for taint checking. +.Sp +(Win32) +\&\f(CW\*(C`kill\*(C'\fR doesn't send a signal to the identified process like it does on +Unix platforms. Instead \f(CW\*(C`kill($sig, $pid)\*(C'\fR terminates the process +identified by \f(CW$pid\fR, and makes it exit immediately with exit status +\&\f(CW$sig\fR. As in Unix, if \f(CW$sig\fR is 0 and the specified process exists, it +returns true without actually terminating it. +.Sp +(Win32) +\&\f(CW\*(C`kill(\-9, $pid)\*(C'\fR will terminate the process specified by \f(CW$pid\fR and +recursively all child processes owned by it. This is different from +the Unix semantics, where the signal will be delivered to all +processes in the same process group as the process specified by +\&\f(CW$pid\fR. +.Sp +(\s-1VMS\s0) +A pid of \-1 indicating all processes on the system is not currently +supported. +.IP "link" 8 +.IX Item "link" +(\s-1RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.Sp +(AmigaOS) +Link count not updated because hard links are not quite that hard +(They are sort of half-way between hard and soft links). +.Sp +(Win32) +Hard links are implemented on Win32 under \s-1NTFS\s0 only. They are +natively supported on Windows 2000 and later. On Windows \s-1NT\s0 they +are implemented using the Windows \s-1POSIX\s0 subsystem support and the +Perl process will need Administrator or Backup Operator privileges +to create hard links. +.Sp +(\s-1VMS\s0) +Available on 64 bit OpenVMS 8.2 and later. +.IP "localtime" 8 +.IX Item "localtime" +\&\f(CW\*(C`localtime\*(C'\fR has the same range as \*(L"gmtime\*(R", but because time zone +rules change, its accuracy for historical and future times may degrade +but usually by no more than an hour. +.IP "lstat" 8 +.IX Item "lstat" +(\s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.Sp +(Win32) +Return values (especially for device and inode) may be bogus. +.IP "msgctl" 8 +.IX Item "msgctl" +.PD 0 +.IP "msgget" 8 +.IX Item "msgget" +.IP "msgsnd" 8 +.IX Item "msgsnd" +.IP "msgrcv" 8 +.IX Item "msgrcv" +.PD +(Android, Win32, \s-1VMS,\s0 Plan\ 9, \s-1RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "open" 8 +.IX Item "open" +(\s-1RISC\s0\ \s-1OS\s0) +Open modes \f(CW\*(C`|\-\*(C'\fR and \f(CW\*(C`\-|\*(C'\fR are unsupported. +.Sp +(SunOS, Solaris, HP-UX) +Opening a process does not automatically flush output handles on some +platforms. +.Sp +(Win32) +Both of modes \f(CW\*(C`|\-\*(C'\fR and \f(CW\*(C`\-|\*(C'\fR are supported, but the list form is +emulated since the Win32 \s-1API\s0 \fBCreateProcess()\fR accepts a simple string +rather than an array of arguments. This may have security +implications for your code. +.IP "readlink" 8 +.IX Item "readlink" +(Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "rename" 8 +.IX Item "rename" +(Win32) +Can't move directories between directories on different logical volumes. +.IP "rewinddir" 8 +.IX Item "rewinddir" +(Win32) +Will not cause \f(CW\*(C`readdir\*(C'\fR to re-read the +directory stream. The entries already read before the \f(CW\*(C`rewinddir\*(C'\fR call +will just be returned again from a cache buffer. +.IP "select" 8 +.IX Item "select" +(Win32, \s-1VMS\s0) +Only implemented on sockets. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Only reliable on sockets. +.Sp +Note that the \f(CW\*(C`select FILEHANDLE\*(C'\fR form is +generally portable. +.IP "semctl" 8 +.IX Item "semctl" +.PD 0 +.IP "semget" 8 +.IX Item "semget" +.IP "semop" 8 +.IX Item "semop" +.PD +(Android, Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setgrent" 8 +.IX Item "setgrent" +(Android, \s-1VMS,\s0 Win32, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setpgrp" 8 +.IX Item "setpgrp" +(Win32, \s-1VMS, RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "setpriority" 8 +.IX Item "setpriority" +(Win32, \s-1VMS, RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "setpwent" 8 +.IX Item "setpwent" +(Android, Win32, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "setsockopt" 8 +.IX Item "setsockopt" +(Plan\ 9) +Not implemented. +.IP "shmctl" 8 +.IX Item "shmctl" +.PD 0 +.IP "shmget" 8 +.IX Item "shmget" +.IP "shmread" 8 +.IX Item "shmread" +.IP "shmwrite" 8 +.IX Item "shmwrite" +.PD +(Android, Win32, \s-1VMS, RISC\s0\ \s-1OS\s0) +Not implemented. +.IP "sleep" 8 +.IX Item "sleep" +(Win32) +Emulated using synchronization functions such that it can be +interrupted by \f(CW\*(C`alarm\*(C'\fR, and limited to a +maximum of 4294967 seconds, approximately 49 days. +.IP "socketpair" 8 +.IX Item "socketpair" +(\s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.Sp +(\s-1VMS\s0) +Available on 64 bit OpenVMS 8.2 and later. +.IP "stat" 8 +.IX Item "stat" +Platforms that do not have \f(CW\*(C`rdev\*(C'\fR, \f(CW\*(C`blksize\*(C'\fR, or \f(CW\*(C`blocks\*(C'\fR will return +these as \f(CW\*(Aq\*(Aq\fR, so numeric comparison or manipulation of these fields may +cause 'not numeric' warnings. +.Sp +(Mac\ \s-1OS\s0\ X) +\&\f(CW\*(C`ctime\*(C'\fR not supported on \s-1UFS.\s0 +.Sp +(Win32) +\&\f(CW\*(C`ctime\*(C'\fR is creation time instead of inode change time. +.Sp +(Win32) +\&\f(CW\*(C`dev\*(C'\fR and \f(CW\*(C`ino\*(C'\fR are not meaningful. +.Sp +(\s-1VMS\s0) +\&\f(CW\*(C`dev\*(C'\fR and \f(CW\*(C`ino\*(C'\fR are not necessarily reliable. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +\&\f(CW\*(C`mtime\*(C'\fR, \f(CW\*(C`atime\*(C'\fR and \f(CW\*(C`ctime\*(C'\fR all return the last modification time. +\&\f(CW\*(C`dev\*(C'\fR and \f(CW\*(C`ino\*(C'\fR are not necessarily reliable. +.Sp +(\s-1OS/2\s0) +\&\f(CW\*(C`dev\*(C'\fR, \f(CW\*(C`rdev\*(C'\fR, \f(CW\*(C`blksize\*(C'\fR, and \f(CW\*(C`blocks\*(C'\fR are not available. \f(CW\*(C`ino\*(C'\fR is not +meaningful and will differ between stat calls on the same file. +.Sp +(Cygwin) +Some versions of cygwin when doing a \f(CW\*(C`stat("foo")\*(C'\fR and not finding it +may then attempt to \f(CW\*(C`stat("foo.exe")\*(C'\fR. +.Sp +(Win32) +\&\f(CW\*(C`stat\*(C'\fR needs to open the file to determine the link count +and update attributes that may have been changed through hard links. +Setting \f(CW\*(C`${^WIN32_SLOPPY_STAT}\*(C'\fR to a +true value speeds up \f(CW\*(C`stat\*(C'\fR by not performing this operation. +.IP "symlink" 8 +.IX Item "symlink" +(Win32, \s-1RISC\s0\ \s-1OS\s0) +Not implemented. +.Sp +(\s-1VMS\s0) +Implemented on 64 bit \s-1VMS 8.3.\s0 \s-1VMS\s0 requires the symbolic link to be in Unix +syntax if it is intended to resolve to a valid path. +.IP "syscall" 8 +.IX Item "syscall" +(Win32, \s-1VMS, RISC\s0\ \s-1OS, VOS\s0) +Not implemented. +.IP "sysopen" 8 +.IX Item "sysopen" +(Mac\ \s-1OS, OS/390\s0) +The traditional \f(CW0\fR, \f(CW1\fR, and \f(CW2\fR MODEs are implemented with different +numeric values on some systems. The flags exported by \f(CW\*(C`Fcntl\*(C'\fR +(\f(CW\*(C`O_RDONLY\*(C'\fR, \f(CW\*(C`O_WRONLY\*(C'\fR, \f(CW\*(C`O_RDWR\*(C'\fR) should work everywhere though. +.IP "system" 8 +.IX Item "system" +(Win32) +As an optimization, may not call the command shell specified in +\&\f(CW$ENV{PERL5SHELL}\fR. \f(CW\*(C`system(1, @args)\*(C'\fR spawns an external +process and immediately returns its process designator, without +waiting for it to terminate. Return value may be used subsequently +in \f(CW\*(C`wait\*(C'\fR or \f(CW\*(C`waitpid\*(C'\fR. +Failure to \f(CW\*(C`spawn()\*(C'\fR a subprocess is indicated by setting +\&\f(CW$?\fR to \f(CW\*(C`255 << 8\*(C'\fR. \f(CW$?\fR is set in a +way compatible with Unix (i.e. the exit status of the subprocess is +obtained by \f(CW\*(C`$? >> 8\*(C'\fR, as described in the documentation). +.Sp +Note that the list form of \fBsystem()\fR is emulated since the Win32 \s-1API\s0 +\&\fBCreateProcess()\fR accepts a simple string rather than an array of +command-line arguments. This may have security implications for your +code. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +There is no shell to process metacharacters, and the native standard is +to pass a command line terminated by \*(L"\en\*(R" \*(L"\er\*(R" or \*(L"\e0\*(R" to the spawned +program. Redirection such as \f(CW\*(C`> foo\*(C'\fR is performed (if at all) by +the run time library of the spawned program. \f(CW\*(C`system LIST\*(C'\fR will call +the Unix emulation library's \f(CW\*(C`exec\*(C'\fR emulation, +which attempts to provide emulation of the stdin, stdout, stderr in force +in the parent, provided the child program uses a compatible version of the +emulation library. \f(CW\*(C`system SCALAR\*(C'\fR will call the native command line +directly and no such emulation of a child Unix program will occur. +Mileage \fBwill\fR vary. +.Sp +(Win32) +\&\f(CW\*(C`system LIST\*(C'\fR without the use of indirect object syntax (\f(CW\*(C`system PROGRAM LIST\*(C'\fR) +may fall back to trying the shell if the first \f(CW\*(C`spawn()\*(C'\fR fails. +.Sp +(SunOS, Solaris, HP-UX) +Does not automatically flush output handles on some platforms. +.Sp +(\s-1VMS\s0) +As with Win32, \f(CW\*(C`system(1, @args)\*(C'\fR spawns an external process and +immediately returns its process designator without waiting for the +process to terminate. In this case the return value may be used subsequently +in \f(CW\*(C`wait\*(C'\fR or \f(CW\*(C`waitpid\*(C'\fR. +Otherwise the return value is POSIX-like (shifted up by 8 bits), which only +allows room for a made-up value derived from the severity bits of the native +32\-bit condition code (unless overridden by +\&\f(CW\*(C`use vmsish \*(Aqstatus\*(Aq\*(C'\fR). If the native +condition code is one that has a \s-1POSIX\s0 value encoded, the \s-1POSIX\s0 value will +be decoded to extract the expected exit value. For more details see +\&\*(L"$?\*(R" in perlvms. +.IP "telldir" 8 +.IX Item "telldir" +(Android) +Not implemented. +.IP "times" 8 +.IX Item "times" +(Win32) +\&\*(L"Cumulative\*(R" times will be bogus. On anything other than Windows \s-1NT\s0 +or Windows 2000, \*(L"system\*(R" time will be bogus, and \*(L"user\*(R" time is +actually the time returned by the \f(CW\*(C`clock()\*(C'\fR function in the C +runtime library. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Not useful. +.IP "truncate" 8 +.IX Item "truncate" +(Older versions of \s-1VMS\s0) +Not implemented. +.Sp +(\s-1VOS\s0) +Truncation to same-or-shorter lengths only. +.Sp +(Win32) +If a \s-1FILEHANDLE\s0 is supplied, it must be writable and opened in append +mode (i.e., use \f(CW\*(C`open(my $fh, \*(Aq>>\*(Aq, \*(Aqfilename\*(Aq)\*(C'\fR +or \f(CW\*(C`sysopen(my $fh, ..., O_APPEND|O_RDWR)\*(C'\fR. If a filename is supplied, it +should not be held open elsewhere. +.IP "umask" 8 +.IX Item "umask" +Returns \f(CW\*(C`undef\*(C'\fR where unavailable. +.Sp +(AmigaOS) +\&\f(CW\*(C`umask\*(C'\fR works but the correct permissions are set only when the file +is finally closed. +.IP "utime" 8 +.IX Item "utime" +(\s-1VMS, RISC\s0\ \s-1OS\s0) +Only the modification time is updated. +.Sp +(Win32) +May not behave as expected. Behavior depends on the C runtime +library's implementation of \f(CW\*(C`utime()\*(C'\fR, and the filesystem +being used. The \s-1FAT\s0 filesystem typically does not support an \*(L"access +time\*(R" field, and it may limit timestamps to a granularity of two seconds. +.IP "wait" 8 +.IX Item "wait" +.PD 0 +.IP "waitpid" 8 +.IX Item "waitpid" +.PD +(Win32) +Can only be applied to process handles returned for processes spawned +using \f(CW\*(C`system(1, ...)\*(C'\fR or pseudo processes created with +\&\f(CW\*(C`fork\*(C'\fR. +.Sp +(\s-1RISC\s0\ \s-1OS\s0) +Not useful. +.SH "Supported Platforms" +.IX Header "Supported Platforms" +The following platforms are known to build Perl 5.12 (as of April 2010, +its release date) from the standard source code distribution available +at +.IP "Linux (x86, \s-1ARM, IA64\s0)" 4 +.IX Item "Linux (x86, ARM, IA64)" +.PD 0 +.IP "HP-UX" 4 +.IX Item "HP-UX" +.IP "\s-1AIX\s0" 4 +.IX Item "AIX" +.IP "Win32" 4 +.IX Item "Win32" +.RS 4 +.IP "Windows 2000" 4 +.IX Item "Windows 2000" +.IP "Windows \s-1XP\s0" 4 +.IX Item "Windows XP" +.IP "Windows Server 2003" 4 +.IX Item "Windows Server 2003" +.IP "Windows Vista" 4 +.IX Item "Windows Vista" +.IP "Windows Server 2008" 4 +.IX Item "Windows Server 2008" +.IP "Windows 7" 4 +.IX Item "Windows 7" +.RE +.RS 4 +.RE +.IP "Cygwin" 4 +.IX Item "Cygwin" +.PD +Some tests are known to fail: +.RS 4 +.IP "\(bu" 4 +\&\fIext/XS\-APItest/t/call_checker.t\fR \- see + +.IP "\(bu" 4 +\&\fIdist/I18N\-Collate/t/I18N\-Collate.t\fR +.IP "\(bu" 4 +\&\fIext/Win32CORE/t/win32core.t\fR \- may fail on recent cygwin installs. +.RE +.RS 4 +.RE +.IP "Solaris (x86, \s-1SPARC\s0)" 4 +.IX Item "Solaris (x86, SPARC)" +.PD 0 +.IP "OpenVMS" 4 +.IX Item "OpenVMS" +.RS 4 +.IP "Alpha (7.2 and later)" 4 +.IX Item "Alpha (7.2 and later)" +.IP "I64 (8.2 and later)" 4 +.IX Item "I64 (8.2 and later)" +.RE +.RS 4 +.RE +.IP "Symbian" 4 +.IX Item "Symbian" +.IP "NetBSD" 4 +.IX Item "NetBSD" +.IP "FreeBSD" 4 +.IX Item "FreeBSD" +.IP "Debian GNU/kFreeBSD" 4 +.IX Item "Debian GNU/kFreeBSD" +.IP "Haiku" 4 +.IX Item "Haiku" +.IP "Irix (6.5. What else?)" 4 +.IX Item "Irix (6.5. What else?)" +.IP "OpenBSD" 4 +.IX Item "OpenBSD" +.IP "Dragonfly \s-1BSD\s0" 4 +.IX Item "Dragonfly BSD" +.IP "Midnight \s-1BSD\s0" 4 +.IX Item "Midnight BSD" +.IP "\s-1QNX\s0 Neutrino \s-1RTOS\s0 (6.5.0)" 4 +.IX Item "QNX Neutrino RTOS (6.5.0)" +.IP "MirOS \s-1BSD\s0" 4 +.IX Item "MirOS BSD" +.IP "Stratus OpenVOS (17.0 or later)" 4 +.IX Item "Stratus OpenVOS (17.0 or later)" +.PD +Caveats: +.RS 4 +.IP "time_t issues that may or may not be fixed" 4 +.IX Item "time_t issues that may or may not be fixed" +.RE +.RS 4 +.RE +.PD 0 +.IP "Symbian (Series 60 v3, 3.2 and 5 \- what else?)" 4 +.IX Item "Symbian (Series 60 v3, 3.2 and 5 - what else?)" +.IP "Stratus \s-1VOS /\s0 OpenVOS" 4 +.IX Item "Stratus VOS / OpenVOS" +.IP "\s-1AIX\s0" 4 +.IX Item "AIX" +.IP "Android" 4 +.IX Item "Android" +.IP "FreeMINT" 4 +.IX Item "FreeMINT" +.PD +Perl now builds with FreeMiNT/Atari. It fails a few tests, that needs +some investigation. +.Sp +The FreeMiNT port uses \s-1GNU\s0 dld for loadable module capabilities. So +ensure you have that library installed when building perl. +.SH "EOL Platforms" +.IX Header "EOL Platforms" +.SS "(Perl 5.20)" +.IX Subsection "(Perl 5.20)" +The following platforms were supported by a previous version of +Perl but have been officially removed from Perl's source code +as of 5.20: +.IP "\s-1AT&T\s0 3b1" 4 +.IX Item "AT&T 3b1" +.SS "(Perl 5.14)" +.IX Subsection "(Perl 5.14)" +The following platforms were supported up to 5.10. They may still +have worked in 5.12, but supporting code has been removed for 5.14: +.IP "Windows 95" 4 +.IX Item "Windows 95" +.PD 0 +.IP "Windows 98" 4 +.IX Item "Windows 98" +.IP "Windows \s-1ME\s0" 4 +.IX Item "Windows ME" +.IP "Windows \s-1NT4\s0" 4 +.IX Item "Windows NT4" +.PD +.SS "(Perl 5.12)" +.IX Subsection "(Perl 5.12)" +The following platforms were supported by a previous version of +Perl but have been officially removed from Perl's source code +as of 5.12: +.IP "Atari MiNT" 4 +.IX Item "Atari MiNT" +.PD 0 +.IP "Apollo Domain/OS" 4 +.IX Item "Apollo Domain/OS" +.IP "Apple Mac \s-1OS 8/9\s0" 4 +.IX Item "Apple Mac OS 8/9" +.IP "Tenon Machten" 4 +.IX Item "Tenon Machten" +.PD +.SH "Supported Platforms (Perl 5.8)" +.IX Header "Supported Platforms (Perl 5.8)" +As of July 2002 (the Perl release 5.8.0), the following platforms were +able to build Perl from the standard source code distribution +available at +.PP +.Vb 10 +\& AIX +\& BeOS +\& BSD/OS (BSDi) +\& Cygwin +\& DG/UX +\& DOS DJGPP 1) +\& DYNIX/ptx +\& EPOC R5 +\& FreeBSD +\& HI\-UXMPP (Hitachi) (5.8.0 worked but we didn\*(Aqt know it) +\& HP\-UX +\& IRIX +\& Linux +\& Mac OS Classic +\& Mac OS X (Darwin) +\& MPE/iX +\& NetBSD +\& NetWare +\& NonStop\-UX +\& ReliantUNIX (formerly SINIX) +\& OpenBSD +\& OpenVMS (formerly VMS) +\& Open UNIX (Unixware) (since Perl 5.8.1/5.9.0) +\& OS/2 +\& OS/400 (using the PASE) (since Perl 5.8.1/5.9.0) +\& POSIX\-BC (formerly BS2000) +\& QNX +\& Solaris +\& SunOS 4 +\& SUPER\-UX (NEC) +\& Tru64 UNIX (formerly DEC OSF/1, Digital UNIX) +\& UNICOS +\& UNICOS/mk +\& UTS +\& VOS / OpenVOS +\& Win95/98/ME/2K/XP 2) +\& WinCE +\& z/OS (formerly OS/390) +\& VM/ESA +\& +\& 1) in DOS mode either the DOS or OS/2 ports can be used +\& 2) compilers: Borland, MinGW (GCC), VC6 +.Ve +.PP +The following platforms worked with the previous releases (5.6 and +5.7), but we did not manage either to fix or to test these in time +for the 5.8.0 release. There is a very good chance that many of these +will work fine with the 5.8.0. +.PP +.Vb 10 +\& BSD/OS +\& DomainOS +\& Hurd +\& LynxOS +\& MachTen +\& PowerMAX +\& SCO SV +\& SVR4 +\& Unixware +\& Windows 3.1 +.Ve +.PP +Known to be broken for 5.8.0 (but 5.6.1 and 5.7.2 can be used): +.PP +.Vb 1 +\& AmigaOS 3 +.Ve +.PP +The following platforms have been known to build Perl from source in +the past (5.005_03 and earlier), but we haven't been able to verify +their status for the current release, either because the +hardware/software platforms are rare or because we don't have an +active champion on these platforms\*(--or both. They used to work, +though, so go ahead and try compiling them, and let + know +of any trouble. +.PP +.Vb 10 +\& 3b1 +\& A/UX +\& ConvexOS +\& CX/UX +\& DC/OSx +\& DDE SMES +\& DOS EMX +\& Dynix +\& EP/IX +\& ESIX +\& FPS +\& GENIX +\& Greenhills +\& ISC +\& MachTen 68k +\& MPC +\& NEWS\-OS +\& NextSTEP +\& OpenSTEP +\& Opus +\& Plan 9 +\& RISC/os +\& SCO ODT/OSR +\& Stellar +\& SVR2 +\& TI1500 +\& TitanOS +\& Ultrix +\& Unisys Dynix +.Ve +.PP +The following platforms have their own source code distributions and +binaries available via +.PP +.Vb 1 +\& Perl release +\& +\& OS/400 (ILE) 5.005_02 +\& Tandem Guardian 5.004 +.Ve +.PP +The following platforms have only binaries available via + : +.PP +.Vb 1 +\& Perl release +\& +\& Acorn RISCOS 5.005_02 +\& AOS 5.002 +\& LynxOS 5.004_02 +.Ve +.PP +Although we do suggest that you always build your own Perl from +the source code, both for maximal configurability and for security, +in case you are in a hurry you can check + for binary distributions. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlaix, perlamiga, perlbs2000, +perlcygwin, perldos, +perlebcdic, perlfreebsd, perlhurd, perlhpux, perlirix, +perlmacos, perlmacosx, +perlnetware, perlos2, perlos390, perlos400, +perlplan9, perlqnx, perlsolaris, perltru64, +perlunicode, perlvms, perlvos, perlwin32, and Win32. +.SH "AUTHORS / CONTRIBUTORS" +.IX Header "AUTHORS / CONTRIBUTORS" +Abigail , +Charles Bailey , +Graham Barr , +Tom Christiansen , +Nicholas Clark , +Thomas Dorner , +Andy Dougherty , +Dominic Dunlop , +Neale Ferguson , +David J. Fiander , +Paul Green , +M.J.T. Guy , +Jarkko Hietaniemi , +Luther Huffman , +Nick Ing-Simmons , +Andreas J. Ko\*:nig , +Markus Laker , +Andrew M. Langmead , +Lukas Mai , +Larry Moore , +Paul Moore , +Chris Nandor , +Matthias Neeracher , +Philip Newton , +Gary Ng <71564.1743@CompuServe.COM>, +Tom Phoenix , +Andre\*' Pirard , +Peter Prymmer , +Hugo van der Sanden , +Gurusamy Sarathy , +Paul J. Schinder , +Michael G Schwern , +Dan Sugalski , +Nathan Torkington , +John Malmberg diff --git a/data/miniconda3/man/man3/AnyDBM_File.3 b/data/miniconda3/man/man3/AnyDBM_File.3 new file mode 100644 index 0000000000000000000000000000000000000000..1df03e1e3eee1995c29cd72446fd285640dce590 --- /dev/null +++ b/data/miniconda3/man/man3/AnyDBM_File.3 @@ -0,0 +1,208 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "AnyDBM_File 3" +.TH AnyDBM_File 3 "2020-12-18" "perl v5.32.1" "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" +AnyDBM_File \- provide framework for multiple DBMs +.PP +NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File \- various DBM implementations +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use AnyDBM_File; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is a \*(L"pure virtual base class\*(R"\-\-it has nothing of its own. +It's just there to inherit from one of the various \s-1DBM\s0 packages. It +prefers ndbm for compatibility reasons with Perl 4, then Berkeley \s-1DB\s0 (See +DB_File), \s-1GDBM, SDBM\s0 (which is always there\*(--it comes with Perl), and +finally \s-1ODBM.\s0 This way old programs that used to use \s-1NDBM\s0 via \fBdbmopen()\fR +can still do so, but new ones can reorder \f(CW@ISA:\fR +.PP +.Vb 2 +\& BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) } +\& use AnyDBM_File; +.Ve +.PP +Having multiple \s-1DBM\s0 implementations makes it trivial to copy database formats: +.PP +.Vb 4 +\& use Fcntl; use NDBM_File; use DB_File; +\& tie %newhash, \*(AqDB_File\*(Aq, $new_filename, O_CREAT|O_RDWR; +\& tie %oldhash, \*(AqNDBM_File\*(Aq, $old_filename, 1, 0; +\& %newhash = %oldhash; +.Ve +.SS "\s-1DBM\s0 Comparisons" +.IX Subsection "DBM Comparisons" +Here's a partial table of features the different packages offer: +.PP +.Vb 10 +\& odbm ndbm sdbm gdbm bsd\-db +\& \-\-\-\- \-\-\-\- \-\-\-\- \-\-\-\- \-\-\-\-\-\- +\& Linkage comes w/ perl yes yes yes yes yes +\& Src comes w/ perl no no yes no no +\& Comes w/ many unix os yes yes[0] no no no +\& Builds ok on !unix ? ? yes yes ? +\& Code Size ? ? small big big +\& Database Size ? ? small big? ok[1] +\& Speed ? ? slow ok fast +\& FTPable no no yes yes yes +\& Easy to build N/A N/A yes yes ok[2] +\& Size limits 1k 4k 1k[3] none none +\& Byte\-order independent no no no no yes +\& Licensing restrictions ? ? no yes no +.Ve +.IP "[0]" 4 +.IX Item "[0]" +on mixed universe machines, may be in the bsd compat library, +which is often shunned. +.IP "[1]" 4 +.IX Item "[1]" +Can be trimmed if you compile for one access method. +.IP "[2]" 4 +.IX Item "[2]" +See DB_File. +Requires symbolic links. +.IP "[3]" 4 +.IX Item "[3]" +By default, but can be redefined. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBdbm\fR\|(3), \fBndbm\fR\|(3), \fBDB_File\fR\|(3), perldbmfilter diff --git a/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult%3A%3ATest.3 b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult%3A%3ATest.3 new file mode 100644 index 0000000000000000000000000000000000000000..c2d5dcfd2c769255704c37c38485a06a6cd5e0a7 --- /dev/null +++ b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult%3A%3ATest.3 @@ -0,0 +1,241 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "App::Prove::State::Result::Test 3" +.TH App::Prove::State::Result::Test 3 "2020-12-18" "perl v5.32.1" "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" +App::Prove::State::Result::Test \- Individual test results. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to +store persistent state across runs. This module encapsulates the results for a +single test. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Re\-run failed tests +\& $ prove \-\-state=failed,save \-rbv +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`name\*(C'\fI\fR +.IX Subsection "name" +.PP +The name of the test. Usually a filename. +.PP +\fI\f(CI\*(C`elapsed\*(C'\fI\fR +.IX Subsection "elapsed" +.PP +The total elapsed times the test took to run, in seconds from the epoch.. +.PP +\fI\f(CI\*(C`generation\*(C'\fI\fR +.IX Subsection "generation" +.PP +The number for the \*(L"generation\*(R" of the test run. The first generation is 1 +(one) and subsequent generations are 2, 3, etc. +.PP +\fI\f(CI\*(C`last_pass_time\*(C'\fI\fR +.IX Subsection "last_pass_time" +.PP +The last time the test program passed, in seconds from the epoch. +.PP +Returns \f(CW\*(C`undef\*(C'\fR if the program has never passed. +.PP +\fI\f(CI\*(C`last_fail_time\*(C'\fI\fR +.IX Subsection "last_fail_time" +.PP +The last time the test suite failed, in seconds from the epoch. +.PP +Returns \f(CW\*(C`undef\*(C'\fR if the program has never failed. +.PP +\fI\f(CI\*(C`mtime\*(C'\fI\fR +.IX Subsection "mtime" +.PP +Returns the mtime of the test, in seconds from the epoch. +.PP +\fI\f(CI\*(C`raw\*(C'\fI\fR +.IX Subsection "raw" +.PP +Returns a hashref of raw test data, suitable for serialization by \s-1YAML.\s0 +.PP +\fI\f(CI\*(C`result\*(C'\fI\fR +.IX Subsection "result" +.PP +Currently, whether or not the test suite passed with no 'problems' (such as +\&\s-1TODO\s0 passed). +.PP +\fI\f(CI\*(C`run_time\*(C'\fI\fR +.IX Subsection "run_time" +.PP +The total time it took for the test to run, in seconds. If \f(CW\*(C`Time::HiRes\*(C'\fR is +available, it will have finer granularity. +.PP +\fI\f(CI\*(C`num_todo\*(C'\fI\fR +.IX Subsection "num_todo" +.PP +The number of tests with \s-1TODO\s0 directives. +.PP +\fI\f(CI\*(C`sequence\*(C'\fI\fR +.IX Subsection "sequence" +.PP +The order in which this test was run for the given test suite result. +.PP +\fI\f(CI\*(C`total_passes\*(C'\fI\fR +.IX Subsection "total_passes" +.PP +The number of times the test has passed. +.PP +\fI\f(CI\*(C`total_failures\*(C'\fI\fR +.IX Subsection "total_failures" +.PP +The number of times the test has failed. +.PP +\fI\f(CI\*(C`parser\*(C'\fI\fR +.IX Subsection "parser" +.PP +The underlying parser object. This is useful if you need the full +information for the test program. diff --git a/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult.3 b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult.3 new file mode 100644 index 0000000000000000000000000000000000000000..9088740e3df2067442e8bdc170b3f6e7c3b529d3 --- /dev/null +++ b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult.3 @@ -0,0 +1,251 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "App::Prove::State::Result 3" +.TH App::Prove::State::Result 3 "2020-12-18" "perl v5.32.1" "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" +App::Prove::State::Result \- Individual test suite results. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to +store persistent state across runs. This module encapsulates the results for a +single test suite run. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Re\-run failed tests +\& $ prove \-\-state=failed,save \-rbv +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 4 +\& my $result = App::Prove::State::Result\->new({ +\& generation => $generation, +\& tests => \e%tests, +\& }); +.Ve +.PP +Returns a new \f(CW\*(C`App::Prove::State::Result\*(C'\fR instance. +.ie n .SS """state_version""" +.el .SS "\f(CWstate_version\fP" +.IX Subsection "state_version" +Returns the current version of state storage. +.ie n .SS """test_class""" +.el .SS "\f(CWtest_class\fP" +.IX Subsection "test_class" +Returns the name of the class used for tracking individual tests. This class +should either subclass from \f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR or provide an +identical interface. +.PP +\fI\f(CI\*(C`generation\*(C'\fI\fR +.IX Subsection "generation" +.PP +Getter/setter for the \*(L"generation\*(R" of the test suite run. The first +generation is 1 (one) and subsequent generations are 2, 3, etc. +.PP +\fI\f(CI\*(C`last_run_time\*(C'\fI\fR +.IX Subsection "last_run_time" +.PP +Getter/setter for the time of the test suite run. +.PP +\fI\f(CI\*(C`tests\*(C'\fI\fR +.IX Subsection "tests" +.PP +Returns the tests for a given generation. This is a hashref or a hash, +depending on context called. The keys to the hash are the individual +test names and the value is a hashref with various interesting values. +Each k/v pair might resemble something like this: +.PP +.Vb 11 +\& \*(Aqt/foo.t\*(Aq => { +\& elapsed => \*(Aq0.0428488254547119\*(Aq, +\& gen => \*(Aq7\*(Aq, +\& last_pass_time => \*(Aq1219328376.07815\*(Aq, +\& last_result => \*(Aq0\*(Aq, +\& last_run_time => \*(Aq1219328376.07815\*(Aq, +\& last_todo => \*(Aq0\*(Aq, +\& mtime => \*(Aq1191708862\*(Aq, +\& seq => \*(Aq192\*(Aq, +\& total_passes => \*(Aq6\*(Aq, +\& } +.Ve +.PP +\fI\f(CI\*(C`test\*(C'\fI\fR +.IX Subsection "test" +.PP +.Vb 1 +\& my $test = $result\->test(\*(Aqt/customer/create.t\*(Aq); +.Ve +.PP +Returns an individual \f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR instance for the +given test name (usually the filename). Will return a new +\&\f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR instance if the name is not found. +.PP +\fI\f(CI\*(C`test_names\*(C'\fI\fR +.IX Subsection "test_names" +.PP +Returns an list of test names, sorted by run order. +.PP +\fI\f(CI\*(C`remove\*(C'\fI\fR +.IX Subsection "remove" +.PP +.Vb 2 +\& $result\->remove($test_name); # remove the test +\& my $test = $result\->test($test_name); # fatal error +.Ve +.PP +Removes a given test from results. This is a no-op if the test name is not +found. +.PP +\fI\f(CI\*(C`num_tests\*(C'\fI\fR +.IX Subsection "num_tests" +.PP +Returns the number of tests for a given test suite result. +.PP +\fI\f(CI\*(C`raw\*(C'\fI\fR +.IX Subsection "raw" +.PP +Returns a hashref of raw results, suitable for serialization by \s-1YAML.\s0 diff --git a/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState.3 b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState.3 new file mode 100644 index 0000000000000000000000000000000000000000..e8293d815b613ea75718770fb9ab371a0d863f27 --- /dev/null +++ b/data/miniconda3/man/man3/App%3A%3AProve%3A%3AState.3 @@ -0,0 +1,273 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "App::Prove::State 3" +.TH App::Prove::State 3 "2020-12-18" "perl v5.32.1" "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" +App::Prove::State \- State storage for the "prove" command. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to +store persistent state across runs. This module implements that state +and the operations that may be performed on it. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Re\-run failed tests +\& $ prove \-\-state=failed,save \-rbv +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Accepts a hashref with the following key/value pairs: +.IP "\(bu" 4 +\&\f(CW\*(C`store\*(C'\fR +.Sp +The filename of the data store holding the data that App::Prove::State reads. +.IP "\(bu" 4 +\&\f(CW\*(C`extensions\*(C'\fR (optional) +.Sp +The test name extensions. Defaults to \f(CW\*(C`.t\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`result_class\*(C'\fR (optional) +.Sp +The name of the \f(CW\*(C`result_class\*(C'\fR. Defaults to \f(CW\*(C`App::Prove::State::Result\*(C'\fR. +.ie n .SS """result_class""" +.el .SS "\f(CWresult_class\fP" +.IX Subsection "result_class" +Getter/setter for the name of the class used for tracking test results. This +class should either subclass from \f(CW\*(C`App::Prove::State::Result\*(C'\fR or provide an +identical interface. +.ie n .SS """extensions""" +.el .SS "\f(CWextensions\fP" +.IX Subsection "extensions" +Get or set the list of extensions that files must have in order to be +considered tests. Defaults to ['.t']. +.ie n .SS """results""" +.el .SS "\f(CWresults\fP" +.IX Subsection "results" +Get the results of the last test run. Returns a \f(CW\*(C`result_class()\*(C'\fR instance. +.ie n .SS """commit""" +.el .SS "\f(CWcommit\fP" +.IX Subsection "commit" +Save the test results. Should be called after all tests have run. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`apply_switch\*(C'\fI\fR +.IX Subsection "apply_switch" +.PP +.Vb 1 +\& $self\->apply_switch(\*(Aqfailed,save\*(Aq); +.Ve +.PP +Apply a list of switch options to the state, updating the internal +object state as a result. Nothing is returned. +.PP +Diagnostics: + \- \*(L"Illegal state option: \f(CW%s\fR\*(R" +.ie n .IP """last""" 4 +.el .IP "\f(CWlast\fR" 4 +.IX Item "last" +Run in the same order as last time +.ie n .IP """failed""" 4 +.el .IP "\f(CWfailed\fR" 4 +.IX Item "failed" +Run only the failed tests from last time +.ie n .IP """passed""" 4 +.el .IP "\f(CWpassed\fR" 4 +.IX Item "passed" +Run only the passed tests from last time +.ie n .IP """all""" 4 +.el .IP "\f(CWall\fR" 4 +.IX Item "all" +Run all tests in normal order +.ie n .IP """hot""" 4 +.el .IP "\f(CWhot\fR" 4 +.IX Item "hot" +Run the tests that most recently failed first +.ie n .IP """todo""" 4 +.el .IP "\f(CWtodo\fR" 4 +.IX Item "todo" +Run the tests ordered by number of todos. +.ie n .IP """slow""" 4 +.el .IP "\f(CWslow\fR" 4 +.IX Item "slow" +Run the tests in slowest to fastest order. +.ie n .IP """fast""" 4 +.el .IP "\f(CWfast\fR" 4 +.IX Item "fast" +Run test tests in fastest to slowest order. +.ie n .IP """new""" 4 +.el .IP "\f(CWnew\fR" 4 +.IX Item "new" +Run the tests in newest to oldest order. +.ie n .IP """old""" 4 +.el .IP "\f(CWold\fR" 4 +.IX Item "old" +Run the tests in oldest to newest order. +.ie n .IP """save""" 4 +.el .IP "\f(CWsave\fR" 4 +.IX Item "save" +Save the state on exit. +.PP +\fI\f(CI\*(C`get_tests\*(C'\fI\fR +.IX Subsection "get_tests" +.PP +Given a list of args get the names of tests that should run +.PP +\fI\f(CI\*(C`observe_test\*(C'\fI\fR +.IX Subsection "observe_test" +.PP +Store the results of a test. +.PP +\fI\f(CI\*(C`save\*(C'\fI\fR +.IX Subsection "save" +.PP +Write the state to a file. +.PP +\fI\f(CI\*(C`load\*(C'\fI\fR +.IX Subsection "load" +.PP +Load the state from a file diff --git a/data/miniconda3/man/man3/App%3A%3AProve.3 b/data/miniconda3/man/man3/App%3A%3AProve.3 new file mode 100644 index 0000000000000000000000000000000000000000..ad6dc7ba51345311d3380380679dda75792964f2 --- /dev/null +++ b/data/miniconda3/man/man3/App%3A%3AProve.3 @@ -0,0 +1,451 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "App::Prove 3" +.TH App::Prove 3 "2020-12-18" "perl v5.32.1" "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" +App::Prove \- Implements the "prove" command. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Test::Harness provides a command, \f(CW\*(C`prove\*(C'\fR, which runs a \s-1TAP\s0 based +test suite and prints a report. The \f(CW\*(C`prove\*(C'\fR command is a minimal +wrapper around an instance of this module. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use App::Prove; +\& +\& my $app = App::Prove\->new; +\& $app\->process_args(@ARGV); +\& $app\->run; +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create a new \f(CW\*(C`App::Prove\*(C'\fR. Optionally a hash ref of attribute +initializers may be passed. +.PP +\fI\f(CI\*(C`state_class\*(C'\fI\fR +.IX Subsection "state_class" +.PP +Getter/setter for the name of the class used for maintaining state. This +class should either subclass from \f(CW\*(C`App::Prove::State\*(C'\fR or provide an identical +interface. +.PP +\fI\f(CI\*(C`state_manager\*(C'\fI\fR +.IX Subsection "state_manager" +.PP +Getter/setter for the instance of the \f(CW\*(C`state_class\*(C'\fR. +.PP +\fI\f(CI\*(C`add_rc_file\*(C'\fI\fR +.IX Subsection "add_rc_file" +.PP +.Vb 1 +\& $prove\->add_rc_file(\*(Aqmyproj/.proverc\*(Aq); +.Ve +.PP +Called before \f(CW\*(C`process_args\*(C'\fR to prepend the contents of an rc file to +the options. +.PP +\fI\f(CI\*(C`process_args\*(C'\fI\fR +.IX Subsection "process_args" +.PP +.Vb 1 +\& $prove\->process_args(@args); +.Ve +.PP +Processes the command-line arguments. Attributes will be set +appropriately. Any filenames may be found in the \f(CW\*(C`argv\*(C'\fR attribute. +.PP +Dies on invalid arguments. +.PP +\fI\f(CI\*(C`run\*(C'\fI\fR +.IX Subsection "run" +.PP +Perform whatever actions the command line args specified. The \f(CW\*(C`prove\*(C'\fR +command line tool consists of the following code: +.PP +.Vb 1 +\& use App::Prove; +\& +\& my $app = App::Prove\->new; +\& $app\->process_args(@ARGV); +\& exit( $app\->run ? 0 : 1 ); # if you need the exit code +.Ve +.PP +\fI\f(CI\*(C`require_harness\*(C'\fI\fR +.IX Subsection "require_harness" +.PP +Load a harness replacement class. +.PP +.Vb 1 +\& $prove\->require_harness($for => $class_name); +.Ve +.PP +\fI\f(CI\*(C`print_version\*(C'\fI\fR +.IX Subsection "print_version" +.PP +Display the version numbers of the loaded TAP::Harness and the +current Perl. +.SS "Attributes" +.IX Subsection "Attributes" +After command line parsing the following attributes reflect the values +of the corresponding command line switches. They may be altered before +calling \f(CW\*(C`run\*(C'\fR. +.ie n .IP """archive""" 4 +.el .IP "\f(CWarchive\fR" 4 +.IX Item "archive" +.PD 0 +.ie n .IP """argv""" 4 +.el .IP "\f(CWargv\fR" 4 +.IX Item "argv" +.ie n .IP """backwards""" 4 +.el .IP "\f(CWbackwards\fR" 4 +.IX Item "backwards" +.ie n .IP """blib""" 4 +.el .IP "\f(CWblib\fR" 4 +.IX Item "blib" +.ie n .IP """color""" 4 +.el .IP "\f(CWcolor\fR" 4 +.IX Item "color" +.ie n .IP """directives""" 4 +.el .IP "\f(CWdirectives\fR" 4 +.IX Item "directives" +.ie n .IP """dry""" 4 +.el .IP "\f(CWdry\fR" 4 +.IX Item "dry" +.ie n .IP """exec""" 4 +.el .IP "\f(CWexec\fR" 4 +.IX Item "exec" +.ie n .IP """extensions""" 4 +.el .IP "\f(CWextensions\fR" 4 +.IX Item "extensions" +.ie n .IP """failures""" 4 +.el .IP "\f(CWfailures\fR" 4 +.IX Item "failures" +.ie n .IP """comments""" 4 +.el .IP "\f(CWcomments\fR" 4 +.IX Item "comments" +.ie n .IP """formatter""" 4 +.el .IP "\f(CWformatter\fR" 4 +.IX Item "formatter" +.ie n .IP """harness""" 4 +.el .IP "\f(CWharness\fR" 4 +.IX Item "harness" +.ie n .IP """ignore_exit""" 4 +.el .IP "\f(CWignore_exit\fR" 4 +.IX Item "ignore_exit" +.ie n .IP """includes""" 4 +.el .IP "\f(CWincludes\fR" 4 +.IX Item "includes" +.ie n .IP """jobs""" 4 +.el .IP "\f(CWjobs\fR" 4 +.IX Item "jobs" +.ie n .IP """lib""" 4 +.el .IP "\f(CWlib\fR" 4 +.IX Item "lib" +.ie n .IP """merge""" 4 +.el .IP "\f(CWmerge\fR" 4 +.IX Item "merge" +.ie n .IP """modules""" 4 +.el .IP "\f(CWmodules\fR" 4 +.IX Item "modules" +.ie n .IP """parse""" 4 +.el .IP "\f(CWparse\fR" 4 +.IX Item "parse" +.ie n .IP """plugins""" 4 +.el .IP "\f(CWplugins\fR" 4 +.IX Item "plugins" +.ie n .IP """quiet""" 4 +.el .IP "\f(CWquiet\fR" 4 +.IX Item "quiet" +.ie n .IP """really_quiet""" 4 +.el .IP "\f(CWreally_quiet\fR" 4 +.IX Item "really_quiet" +.ie n .IP """recurse""" 4 +.el .IP "\f(CWrecurse\fR" 4 +.IX Item "recurse" +.ie n .IP """rules""" 4 +.el .IP "\f(CWrules\fR" 4 +.IX Item "rules" +.ie n .IP """show_count""" 4 +.el .IP "\f(CWshow_count\fR" 4 +.IX Item "show_count" +.ie n .IP """show_help""" 4 +.el .IP "\f(CWshow_help\fR" 4 +.IX Item "show_help" +.ie n .IP """show_man""" 4 +.el .IP "\f(CWshow_man\fR" 4 +.IX Item "show_man" +.ie n .IP """show_version""" 4 +.el .IP "\f(CWshow_version\fR" 4 +.IX Item "show_version" +.ie n .IP """shuffle""" 4 +.el .IP "\f(CWshuffle\fR" 4 +.IX Item "shuffle" +.ie n .IP """state""" 4 +.el .IP "\f(CWstate\fR" 4 +.IX Item "state" +.ie n .IP """state_class""" 4 +.el .IP "\f(CWstate_class\fR" 4 +.IX Item "state_class" +.ie n .IP """taint_fail""" 4 +.el .IP "\f(CWtaint_fail\fR" 4 +.IX Item "taint_fail" +.ie n .IP """taint_warn""" 4 +.el .IP "\f(CWtaint_warn\fR" 4 +.IX Item "taint_warn" +.ie n .IP """test_args""" 4 +.el .IP "\f(CWtest_args\fR" 4 +.IX Item "test_args" +.ie n .IP """timer""" 4 +.el .IP "\f(CWtimer\fR" 4 +.IX Item "timer" +.ie n .IP """verbose""" 4 +.el .IP "\f(CWverbose\fR" 4 +.IX Item "verbose" +.ie n .IP """warnings_fail""" 4 +.el .IP "\f(CWwarnings_fail\fR" 4 +.IX Item "warnings_fail" +.ie n .IP """warnings_warn""" 4 +.el .IP "\f(CWwarnings_warn\fR" 4 +.IX Item "warnings_warn" +.ie n .IP """tapversion""" 4 +.el .IP "\f(CWtapversion\fR" 4 +.IX Item "tapversion" +.ie n .IP """trap""" 4 +.el .IP "\f(CWtrap\fR" 4 +.IX Item "trap" +.PD +.SH "PLUGINS" +.IX Header "PLUGINS" +\&\f(CW\*(C`App::Prove\*(C'\fR provides support for 3rd\-party plugins. These are currently +loaded at run-time, \fIafter\fR arguments have been parsed (so you can not +change the way arguments are processed, sorry), typically with the +\&\f(CW\*(C`\-P\f(CIplugin\f(CW\*(C'\fR switch, eg: +.PP +.Vb 1 +\& prove \-PMyPlugin +.Ve +.PP +This will search for a module named \f(CW\*(C`App::Prove::Plugin::MyPlugin\*(C'\fR, or failing +that, \f(CW\*(C`MyPlugin\*(C'\fR. If the plugin can't be found, \f(CW\*(C`prove\*(C'\fR will complain & exit. +.PP +You can pass an argument to your plugin by appending an \f(CW\*(C`=\*(C'\fR after the plugin +name, eg \f(CW\*(C`\-PMyPlugin=foo\*(C'\fR. You can pass multiple arguments using commas: +.PP +.Vb 1 +\& prove \-PMyPlugin=foo,bar,baz +.Ve +.PP +These are passed in to your plugin's \f(CW\*(C`load()\*(C'\fR class method (if it has one), +along with a reference to the \f(CW\*(C`App::Prove\*(C'\fR object that is invoking your plugin: +.PP +.Vb 2 +\& sub load { +\& my ($class, $p) = @_; +\& +\& my @args = @{ $p\->{args} }; +\& # @args will contain ( \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq, \*(Aqbaz\*(Aq ) +\& $p\->{app_prove}\->do_something; +\& ... +\& } +.Ve +.PP +Note that the user's arguments are also passed to your plugin's \f(CW\*(C`import()\*(C'\fR +function as a list, eg: +.PP +.Vb 5 +\& sub import { +\& my ($class, @args) = @_; +\& # @args will contain ( \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq, \*(Aqbaz\*(Aq ) +\& ... +\& } +.Ve +.PP +This is for backwards compatibility, and may be deprecated in the future. +.SS "Sample Plugin" +.IX Subsection "Sample Plugin" +Here's a sample plugin, for your reference: +.PP +.Vb 1 +\& package App::Prove::Plugin::Foo; +\& +\& # Sample plugin, try running with: +\& # prove \-PFoo=bar \-r \-j3 +\& # prove \-PFoo \-Q +\& # prove \-PFoo=bar,My::Formatter +\& +\& use strict; +\& use warnings; +\& +\& sub load { +\& my ($class, $p) = @_; +\& my @args = @{ $p\->{args} }; +\& my $app = $p\->{app_prove}; +\& +\& print "loading plugin: $class, args: ", join(\*(Aq, \*(Aq, @args ), "\en"; +\& +\& # turn on verbosity +\& $app\->verbose( 1 ); +\& +\& # set the formatter? +\& $app\->formatter( $args[1] ) if @args > 1; +\& +\& # print some of App::Prove\*(Aqs state: +\& for my $attr (qw( jobs quiet really_quiet recurse verbose )) { +\& my $val = $app\->$attr; +\& $val = \*(Aqundef\*(Aq unless defined( $val ); +\& print "$attr: $val\en"; +\& } +\& +\& return 1; +\& } +\& +\& 1; +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +prove, TAP::Harness diff --git a/data/miniconda3/man/man3/Archive%3A%3ATar%3A%3AFile.3 b/data/miniconda3/man/man3/Archive%3A%3ATar%3A%3AFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..d6f2198863f68524fb625d39b768e652eec6d126 --- /dev/null +++ b/data/miniconda3/man/man3/Archive%3A%3ATar%3A%3AFile.3 @@ -0,0 +1,363 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Archive::Tar::File 3" +.TH Archive::Tar::File 3 "2020-12-18" "perl v5.32.1" "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" +Archive::Tar::File \- a subclass for in\-memory extracted file from Archive::Tar +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& my @items = $tar\->get_files; +\& +\& print $_\->name, \*(Aq \*(Aq, $_\->size, "\en" for @items; +\& +\& print $object\->get_content; +\& $object\->replace_content(\*(Aqnew content\*(Aq); +\& +\& $object\->rename( \*(Aqnew/full/path/to/file.c\*(Aq ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Archive::Tar::Files provides a neat little object layer for in-memory +extracted files. It's mostly used internally in Archive::Tar to tidy +up the code, but there's no reason users shouldn't use this \s-1API\s0 as +well. +.SS "Accessors" +.IX Subsection "Accessors" +A lot of the methods in this package are accessors to the various +fields in the tar header: +.IP "name" 4 +.IX Item "name" +The file's name +.IP "mode" 4 +.IX Item "mode" +The file's mode +.IP "uid" 4 +.IX Item "uid" +The user id owning the file +.IP "gid" 4 +.IX Item "gid" +The group id owning the file +.IP "size" 4 +.IX Item "size" +File size in bytes +.IP "mtime" 4 +.IX Item "mtime" +Modification time. Adjusted to mac-time on MacOS if required +.IP "chksum" 4 +.IX Item "chksum" +Checksum field for the tar header +.IP "type" 4 +.IX Item "type" +File type \*(-- numeric, but comparable to exported constants \*(-- see +Archive::Tar's documentation +.IP "linkname" 4 +.IX Item "linkname" +If the file is a symlink, the file it's pointing to +.IP "magic" 4 +.IX Item "magic" +Tar magic string \*(-- not useful for most users +.IP "version" 4 +.IX Item "version" +Tar version string \*(-- not useful for most users +.IP "uname" 4 +.IX Item "uname" +The user name that owns the file +.IP "gname" 4 +.IX Item "gname" +The group name that owns the file +.IP "devmajor" 4 +.IX Item "devmajor" +Device major number in case of a special file +.IP "devminor" 4 +.IX Item "devminor" +Device minor number in case of a special file +.IP "prefix" 4 +.IX Item "prefix" +Any directory to prefix to the extraction path, if any +.IP "raw" 4 +.IX Item "raw" +Raw tar header \*(-- not useful for most users +.SH "Methods" +.IX Header "Methods" +.ie n .SS "Archive::Tar::File\->new( file => $path )" +.el .SS "Archive::Tar::File\->new( file => \f(CW$path\fP )" +.IX Subsection "Archive::Tar::File->new( file => $path )" +Returns a new Archive::Tar::File object from an existing file. +.PP +Returns undef on failure. +.ie n .SS "Archive::Tar::File\->new( data => $path, $data, $opt )" +.el .SS "Archive::Tar::File\->new( data => \f(CW$path\fP, \f(CW$data\fP, \f(CW$opt\fP )" +.IX Subsection "Archive::Tar::File->new( data => $path, $data, $opt )" +Returns a new Archive::Tar::File object from data. +.PP +\&\f(CW$path\fR defines the file name (which need not exist), \f(CW$data\fR the +file contents, and \f(CW$opt\fR is a reference to a hash of attributes +which may be used to override the default attributes (fields in the +tar header), which are described above in the Accessors section. +.PP +Returns undef on failure. +.ie n .SS "Archive::Tar::File\->new( chunk => $chunk )" +.el .SS "Archive::Tar::File\->new( chunk => \f(CW$chunk\fP )" +.IX Subsection "Archive::Tar::File->new( chunk => $chunk )" +Returns a new Archive::Tar::File object from a raw 512\-byte tar +archive chunk. +.PP +Returns undef on failure. +.ie n .SS "$bool = $file\->extract( [ $alternative_name ] )" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->extract( [ \f(CW$alternative_name\fP ] )" +.IX Subsection "$bool = $file->extract( [ $alternative_name ] )" +Extract this object, optionally to an alternative name. +.PP +See \f(CW\*(C`Archive::Tar\->extract_file\*(C'\fR for details. +.PP +Returns true on success and false on failure. +.ie n .SS "$path = $file\->full_path" +.el .SS "\f(CW$path\fP = \f(CW$file\fP\->full_path" +.IX Subsection "$path = $file->full_path" +Returns the full path from the tar header; this is basically a +concatenation of the \f(CW\*(C`prefix\*(C'\fR and \f(CW\*(C`name\*(C'\fR fields. +.ie n .SS "$bool = $file\->validate" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->validate" +.IX Subsection "$bool = $file->validate" +Done by Archive::Tar internally when reading the tar file: +validate the header against the checksum to ensure integer tar file. +.PP +Returns true on success, false on failure +.ie n .SS "$bool = $file\->has_content" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->has_content" +.IX Subsection "$bool = $file->has_content" +Returns a boolean to indicate whether the current object has content. +Some special files like directories and so on never will have any +content. This method is mainly to make sure you don't get warnings +for using uninitialized values when looking at an object's content. +.ie n .SS "$content = $file\->get_content" +.el .SS "\f(CW$content\fP = \f(CW$file\fP\->get_content" +.IX Subsection "$content = $file->get_content" +Returns the current content for the in-memory file +.ie n .SS "$cref = $file\->get_content_by_ref" +.el .SS "\f(CW$cref\fP = \f(CW$file\fP\->get_content_by_ref" +.IX Subsection "$cref = $file->get_content_by_ref" +Returns the current content for the in-memory file as a scalar +reference. Normal users won't need this, but it will save memory if +you are dealing with very large data files in your tar archive, since +it will pass the contents by reference, rather than make a copy of it +first. +.ie n .SS "$bool = $file\->replace_content( $content )" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->replace_content( \f(CW$content\fP )" +.IX Subsection "$bool = $file->replace_content( $content )" +Replace the current content of the file with the new content. This +only affects the in-memory archive, not the on-disk version until +you write it. +.PP +Returns true on success, false on failure. +.ie n .SS "$bool = $file\->rename( $new_name )" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->rename( \f(CW$new_name\fP )" +.IX Subsection "$bool = $file->rename( $new_name )" +Rename the current file to \f(CW$new_name\fR. +.PP +Note that you must specify a Unix path for \f(CW$new_name\fR, since per tar +standard, all files in the archive must be Unix paths. +.PP +Returns true on success and false on failure. +.ie n .SS "$bool = $file\->chmod $mode)" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->chmod \f(CW$mode\fP)" +.IX Subsection "$bool = $file->chmod $mode)" +Change mode of \f(CW$file\fR to \f(CW$mode\fR. The mode can be a string or a number +which is interpreted as octal whether or not a leading 0 is given. +.PP +Returns true on success and false on failure. +.ie n .SS "$bool = $file\->chown( $user [, $group])" +.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->chown( \f(CW$user\fP [, \f(CW$group\fP])" +.IX Subsection "$bool = $file->chown( $user [, $group])" +Change owner of \f(CW$file\fR to \f(CW$user\fR. If a \f(CW$group\fR is given that is changed +as well. You can also pass a single parameter with a colon separating the +use and group as in 'root:wheel'. +.PP +Returns true on success and false on failure. +.SH "Convenience methods" +.IX Header "Convenience methods" +To quickly check the type of a \f(CW\*(C`Archive::Tar::File\*(C'\fR object, you can +use the following methods: +.ie n .IP "$file\->is_file" 4 +.el .IP "\f(CW$file\fR\->is_file" 4 +.IX Item "$file->is_file" +Returns true if the file is of type \f(CW\*(C`file\*(C'\fR +.ie n .IP "$file\->is_dir" 4 +.el .IP "\f(CW$file\fR\->is_dir" 4 +.IX Item "$file->is_dir" +Returns true if the file is of type \f(CW\*(C`dir\*(C'\fR +.ie n .IP "$file\->is_hardlink" 4 +.el .IP "\f(CW$file\fR\->is_hardlink" 4 +.IX Item "$file->is_hardlink" +Returns true if the file is of type \f(CW\*(C`hardlink\*(C'\fR +.ie n .IP "$file\->is_symlink" 4 +.el .IP "\f(CW$file\fR\->is_symlink" 4 +.IX Item "$file->is_symlink" +Returns true if the file is of type \f(CW\*(C`symlink\*(C'\fR +.ie n .IP "$file\->is_chardev" 4 +.el .IP "\f(CW$file\fR\->is_chardev" 4 +.IX Item "$file->is_chardev" +Returns true if the file is of type \f(CW\*(C`chardev\*(C'\fR +.ie n .IP "$file\->is_blockdev" 4 +.el .IP "\f(CW$file\fR\->is_blockdev" 4 +.IX Item "$file->is_blockdev" +Returns true if the file is of type \f(CW\*(C`blockdev\*(C'\fR +.ie n .IP "$file\->is_fifo" 4 +.el .IP "\f(CW$file\fR\->is_fifo" 4 +.IX Item "$file->is_fifo" +Returns true if the file is of type \f(CW\*(C`fifo\*(C'\fR +.ie n .IP "$file\->is_socket" 4 +.el .IP "\f(CW$file\fR\->is_socket" 4 +.IX Item "$file->is_socket" +Returns true if the file is of type \f(CW\*(C`socket\*(C'\fR +.ie n .IP "$file\->is_longlink" 4 +.el .IP "\f(CW$file\fR\->is_longlink" 4 +.IX Item "$file->is_longlink" +Returns true if the file is of type \f(CW\*(C`LongLink\*(C'\fR. +Should not happen after a successful \f(CW\*(C`read\*(C'\fR. +.ie n .IP "$file\->is_label" 4 +.el .IP "\f(CW$file\fR\->is_label" 4 +.IX Item "$file->is_label" +Returns true if the file is of type \f(CW\*(C`Label\*(C'\fR. +Should not happen after a successful \f(CW\*(C`read\*(C'\fR. +.ie n .IP "$file\->is_unknown" 4 +.el .IP "\f(CW$file\fR\->is_unknown" 4 +.IX Item "$file->is_unknown" +Returns true if the file type is \f(CW\*(C`unknown\*(C'\fR diff --git a/data/miniconda3/man/man3/Archive%3A%3ATar.3 b/data/miniconda3/man/man3/Archive%3A%3ATar.3 new file mode 100644 index 0000000000000000000000000000000000000000..18ead03bce7ef05813335570c9446c26761dbf2c --- /dev/null +++ b/data/miniconda3/man/man3/Archive%3A%3ATar.3 @@ -0,0 +1,1056 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Archive::Tar 3" +.TH Archive::Tar 3 "2020-12-18" "perl v5.32.1" "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" +Archive::Tar \- module for manipulations of tar archives +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Archive::Tar; +\& my $tar = Archive::Tar\->new; +\& +\& $tar\->read(\*(Aqorigin.tgz\*(Aq); +\& $tar\->extract(); +\& +\& $tar\->add_files(\*(Aqfile/foo.pl\*(Aq, \*(Aqdocs/README\*(Aq); +\& $tar\->add_data(\*(Aqfile/baz.txt\*(Aq, \*(AqThis is the contents now\*(Aq); +\& +\& $tar\->rename(\*(Aqoldname\*(Aq, \*(Aqnew/file/name\*(Aq); +\& $tar\->chown(\*(Aq/\*(Aq, \*(Aqroot\*(Aq); +\& $tar\->chown(\*(Aq/\*(Aq, \*(Aqroot:root\*(Aq); +\& $tar\->chmod(\*(Aq/tmp\*(Aq, \*(Aq1777\*(Aq); +\& +\& $tar\->write(\*(Aqfiles.tar\*(Aq); # plain tar +\& $tar\->write(\*(Aqfiles.tgz\*(Aq, COMPRESS_GZIP); # gzip compressed +\& $tar\->write(\*(Aqfiles.tbz\*(Aq, COMPRESS_BZIP); # bzip2 compressed +\& $tar\->write(\*(Aqfiles.txz\*(Aq, COMPRESS_XZ); # xz compressed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Archive::Tar provides an object oriented mechanism for handling tar +files. It provides class methods for quick and easy files handling +while also allowing for the creation of tar file objects for custom +manipulation. If you have the IO::Zlib module installed, +Archive::Tar will also support compressed or gzipped tar files. +.PP +An object of class Archive::Tar represents a .tar(.gz) archive full +of files and things. +.SH "Object Methods" +.IX Header "Object Methods" +.ie n .SS "Archive::Tar\->new( [$file, $compressed] )" +.el .SS "Archive::Tar\->new( [$file, \f(CW$compressed\fP] )" +.IX Subsection "Archive::Tar->new( [$file, $compressed] )" +Returns a new Tar object. If given any arguments, \f(CW\*(C`new()\*(C'\fR calls the +\&\f(CW\*(C`read()\*(C'\fR method automatically, passing on the arguments provided to +the \f(CW\*(C`read()\*(C'\fR method. +.PP +If \f(CW\*(C`new()\*(C'\fR is invoked with arguments and the \f(CW\*(C`read()\*(C'\fR method fails +for any reason, \f(CW\*(C`new()\*(C'\fR returns undef. +.ie n .SS "$tar\->read ( $filename|$handle, [$compressed, {opt => 'val'}] )" +.el .SS "\f(CW$tar\fP\->read ( \f(CW$filename\fP|$handle, [$compressed, {opt => 'val'}] )" +.IX Subsection "$tar->read ( $filename|$handle, [$compressed, {opt => 'val'}] )" +Read the given tar file into memory. +The first argument can either be the name of a file or a reference to +an already open filehandle (or an IO::Zlib object if it's compressed) +.PP +The \f(CW\*(C`read\*(C'\fR will \fIreplace\fR any previous content in \f(CW$tar\fR! +.PP +The second argument may be considered optional, but remains for +backwards compatibility. Archive::Tar now looks at the file +magic to determine what class should be used to open the file +and will transparently Do The Right Thing. +.PP +Archive::Tar will warn if you try to pass a bzip2 / xz compressed file and the +IO::Uncompress::Bunzip2 / IO::Uncompress::UnXz are not available and simply return. +.PP +Note that you can currently \fBnot\fR pass a \f(CW\*(C`gzip\*(C'\fR compressed +filehandle, which is not opened with \f(CW\*(C`IO::Zlib\*(C'\fR, a \f(CW\*(C`bzip2\*(C'\fR compressed +filehandle, which is not opened with \f(CW\*(C`IO::Uncompress::Bunzip2\*(C'\fR, a \f(CW\*(C`xz\*(C'\fR compressed +filehandle, which is not opened with \f(CW\*(C`IO::Uncompress::UnXz\*(C'\fR, nor a string +containing the full archive information (either compressed or +uncompressed). These are worth while features, but not currently +implemented. See the \f(CW\*(C`TODO\*(C'\fR section. +.PP +The third argument can be a hash reference with options. Note that +all options are case-sensitive. +.IP "limit" 4 +.IX Item "limit" +Do not read more than \f(CW\*(C`limit\*(C'\fR files. This is useful if you have +very big archives, and are only interested in the first few files. +.IP "filter" 4 +.IX Item "filter" +Can be set to a regular expression. Only files with names that match +the expression will be read. +.IP "md5" 4 +.IX Item "md5" +Set to 1 and the md5sum of files will be returned (instead of file data) + my \f(CW$iter\fR = Archive::Tar\->iter( \f(CW$file\fR, 1, {md5 => 1} ); + while( my \f(CW$f\fR = \f(CW$iter\fR\->() ) { + print \f(CW$f\fR\->data . \*(L"\et\*(R" . \f(CW$f\fR\->full_path . $/; + } +.IP "extract" 4 +.IX Item "extract" +If set to true, immediately extract entries when reading them. This +gives you the same memory break as the \f(CW\*(C`extract_archive\*(C'\fR function. +Note however that entries will not be read into memory, but written +straight to disk. This means no \f(CW\*(C`Archive::Tar::File\*(C'\fR objects are +created for you to inspect. +.PP +All files are stored internally as \f(CW\*(C`Archive::Tar::File\*(C'\fR objects. +Please consult the Archive::Tar::File documentation for details. +.PP +Returns the number of files read in scalar context, and a list of +\&\f(CW\*(C`Archive::Tar::File\*(C'\fR objects in list context. +.ie n .SS "$tar\->contains_file( $filename )" +.el .SS "\f(CW$tar\fP\->contains_file( \f(CW$filename\fP )" +.IX Subsection "$tar->contains_file( $filename )" +Check if the archive contains a certain file. +It will return true if the file is in the archive, false otherwise. +.PP +Note however, that this function does an exact match using \f(CW\*(C`eq\*(C'\fR +on the full path. So it cannot compensate for case-insensitive file\- +systems or compare 2 paths to see if they would point to the same +underlying file. +.ie n .SS "$tar\->extract( [@filenames] )" +.el .SS "\f(CW$tar\fP\->extract( [@filenames] )" +.IX Subsection "$tar->extract( [@filenames] )" +Write files whose names are equivalent to any of the names in +\&\f(CW@filenames\fR to disk, creating subdirectories as necessary. This +might not work too well under \s-1VMS.\s0 +Under MacPerl, the file's modification time will be converted to the +MacOS zero of time, and appropriate conversions will be done to the +path. However, the length of each element of the path is not +inspected to see whether it's longer than MacOS currently allows (32 +characters). +.PP +If \f(CW\*(C`extract\*(C'\fR is called without a list of file names, the entire +contents of the archive are extracted. +.PP +Returns a list of filenames extracted. +.ie n .SS "$tar\->extract_file( $file, [$extract_path] )" +.el .SS "\f(CW$tar\fP\->extract_file( \f(CW$file\fP, [$extract_path] )" +.IX Subsection "$tar->extract_file( $file, [$extract_path] )" +Write an entry, whose name is equivalent to the file name provided to +disk. Optionally takes a second parameter, which is the full native +path (including filename) the entry will be written to. +.PP +For example: +.PP +.Vb 1 +\& $tar\->extract_file( \*(Aqname/in/archive\*(Aq, \*(Aqname/i/want/to/give/it\*(Aq ); +\& +\& $tar\->extract_file( $at_file_object, \*(Aqname/i/want/to/give/it\*(Aq ); +.Ve +.PP +Returns true on success, false on failure. +.ie n .SS "$tar\->list_files( [\e@properties] )" +.el .SS "\f(CW$tar\fP\->list_files( [\e@properties] )" +.IX Subsection "$tar->list_files( [@properties] )" +Returns a list of the names of all the files in the archive. +.PP +If \f(CW\*(C`list_files()\*(C'\fR is passed an array reference as its first argument +it returns a list of hash references containing the requested +properties of each file. The following list of properties is +supported: name, size, mtime (last modified date), mode, uid, gid, +linkname, uname, gname, devmajor, devminor, prefix. +.PP +Passing an array reference containing only one element, 'name', is +special cased to return a list of names rather than a list of hash +references, making it equivalent to calling \f(CW\*(C`list_files\*(C'\fR without +arguments. +.ie n .SS "$tar\->get_files( [@filenames] )" +.el .SS "\f(CW$tar\fP\->get_files( [@filenames] )" +.IX Subsection "$tar->get_files( [@filenames] )" +Returns the \f(CW\*(C`Archive::Tar::File\*(C'\fR objects matching the filenames +provided. If no filename list was passed, all \f(CW\*(C`Archive::Tar::File\*(C'\fR +objects in the current Tar object are returned. +.PP +Please refer to the \f(CW\*(C`Archive::Tar::File\*(C'\fR documentation on how to +handle these objects. +.ie n .SS "$tar\->get_content( $file )" +.el .SS "\f(CW$tar\fP\->get_content( \f(CW$file\fP )" +.IX Subsection "$tar->get_content( $file )" +Return the content of the named file. +.ie n .SS "$tar\->replace_content( $file, $content )" +.el .SS "\f(CW$tar\fP\->replace_content( \f(CW$file\fP, \f(CW$content\fP )" +.IX Subsection "$tar->replace_content( $file, $content )" +Make the string \f(CW$content\fR be the content for the file named \f(CW$file\fR. +.ie n .SS "$tar\->rename( $file, $new_name )" +.el .SS "\f(CW$tar\fP\->rename( \f(CW$file\fP, \f(CW$new_name\fP )" +.IX Subsection "$tar->rename( $file, $new_name )" +Rename the file of the in-memory archive to \f(CW$new_name\fR. +.PP +Note that you must specify a Unix path for \f(CW$new_name\fR, since per tar +standard, all files in the archive must be Unix paths. +.PP +Returns true on success and false on failure. +.ie n .SS "$tar\->chmod( $file, $mode )" +.el .SS "\f(CW$tar\fP\->chmod( \f(CW$file\fP, \f(CW$mode\fP )" +.IX Subsection "$tar->chmod( $file, $mode )" +Change mode of \f(CW$file\fR to \f(CW$mode\fR. +.PP +Returns true on success and false on failure. +.ie n .SS "$tar\->chown( $file, $uname [, $gname] )" +.el .SS "\f(CW$tar\fP\->chown( \f(CW$file\fP, \f(CW$uname\fP [, \f(CW$gname\fP] )" +.IX Subsection "$tar->chown( $file, $uname [, $gname] )" +Change owner \f(CW$file\fR to \f(CW$uname\fR and \f(CW$gname\fR. +.PP +Returns true on success and false on failure. +.ie n .SS "$tar\->remove (@filenamelist)" +.el .SS "\f(CW$tar\fP\->remove (@filenamelist)" +.IX Subsection "$tar->remove (@filenamelist)" +Removes any entries with names matching any of the given filenames +from the in-memory archive. Returns a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR +objects that remain. +.ie n .SS "$tar\->clear" +.el .SS "\f(CW$tar\fP\->clear" +.IX Subsection "$tar->clear" +\&\f(CW\*(C`clear\*(C'\fR clears the current in-memory archive. This effectively gives +you a 'blank' object, ready to be filled again. Note that \f(CW\*(C`clear\*(C'\fR +only has effect on the object, not the underlying tarfile. +.ie n .SS "$tar\->write ( [$file, $compressed, $prefix] )" +.el .SS "\f(CW$tar\fP\->write ( [$file, \f(CW$compressed\fP, \f(CW$prefix\fP] )" +.IX Subsection "$tar->write ( [$file, $compressed, $prefix] )" +Write the in-memory archive to disk. The first argument can either +be the name of a file or a reference to an already open filehandle (a +\&\s-1GLOB\s0 reference). +.PP +The second argument is used to indicate compression. You can +compress using \f(CW\*(C`gzip\*(C'\fR, \f(CW\*(C`bzip2\*(C'\fR or \f(CW\*(C`xz\*(C'\fR. If you pass a digit, it's assumed +to be the \f(CW\*(C`gzip\*(C'\fR compression level (between 1 and 9), but the use of +constants is preferred: +.PP +.Vb 2 +\& # write a gzip compressed file +\& $tar\->write( \*(Aqout.tgz\*(Aq, COMPRESS_GZIP ); +\& +\& # write a bzip compressed file +\& $tar\->write( \*(Aqout.tbz\*(Aq, COMPRESS_BZIP ); +\& +\& # write a xz compressed file +\& $tar\->write( \*(Aqout.txz\*(Aq, COMPRESS_XZ ); +.Ve +.PP +Note that when you pass in a filehandle, the compression argument +is ignored, as all files are printed verbatim to your filehandle. +If you wish to enable compression with filehandles, use an +\&\f(CW\*(C`IO::Zlib\*(C'\fR, \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR or \f(CW\*(C`IO::Compress::Xz\*(C'\fR filehandle instead. +.PP +The third argument is an optional prefix. All files will be tucked +away in the directory you specify as prefix. So if you have files +\&'a' and 'b' in your archive, and you specify 'foo' as prefix, they +will be written to the archive as 'foo/a' and 'foo/b'. +.PP +If no arguments are given, \f(CW\*(C`write\*(C'\fR returns the entire formatted +archive as a string, which could be useful if you'd like to stuff the +archive into a socket or a pipe to gzip or something. +.ie n .SS "$tar\->add_files( @filenamelist )" +.el .SS "\f(CW$tar\fP\->add_files( \f(CW@filenamelist\fP )" +.IX Subsection "$tar->add_files( @filenamelist )" +Takes a list of filenames and adds them to the in-memory archive. +.PP +The path to the file is automatically converted to a Unix like +equivalent for use in the archive, and, if on MacOS, the file's +modification time is converted from the MacOS epoch to the Unix epoch. +So tar archives created on MacOS with \fBArchive::Tar\fR can be read +both with \fItar\fR on Unix and applications like \fIsuntar\fR or +\&\fIStuffit Expander\fR on MacOS. +.PP +Be aware that the file's type/creator and resource fork will be lost, +which is usually what you want in cross-platform archives. +.PP +Instead of a filename, you can also pass it an existing \f(CW\*(C`Archive::Tar::File\*(C'\fR +object from, for example, another archive. The object will be clone, and +effectively be a copy of the original, not an alias. +.PP +Returns a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR objects that were just added. +.ie n .SS "$tar\->add_data ( $filename, $data, [$opthashref] )" +.el .SS "\f(CW$tar\fP\->add_data ( \f(CW$filename\fP, \f(CW$data\fP, [$opthashref] )" +.IX Subsection "$tar->add_data ( $filename, $data, [$opthashref] )" +Takes a filename, a scalar full of data and optionally a reference to +a hash with specific options. +.PP +Will add a file to the in-memory archive, with name \f(CW$filename\fR and +content \f(CW$data\fR. Specific properties can be set using \f(CW$opthashref\fR. +The following list of properties is supported: name, size, mtime +(last modified date), mode, uid, gid, linkname, uname, gname, +devmajor, devminor, prefix, type. (On MacOS, the file's path and +modification times are converted to Unix equivalents.) +.PP +Valid values for the file type are the following constants defined by +Archive::Tar::Constant: +.IP "\s-1FILE\s0" 4 +.IX Item "FILE" +Regular file. +.IP "\s-1HARDLINK\s0" 4 +.IX Item "HARDLINK" +.PD 0 +.IP "\s-1SYMLINK\s0" 4 +.IX Item "SYMLINK" +.PD +Hard and symbolic (\*(L"soft\*(R") links; linkname should specify target. +.IP "\s-1CHARDEV\s0" 4 +.IX Item "CHARDEV" +.PD 0 +.IP "\s-1BLOCKDEV\s0" 4 +.IX Item "BLOCKDEV" +.PD +Character and block devices. devmajor and devminor should specify the major +and minor device numbers. +.IP "\s-1DIR\s0" 4 +.IX Item "DIR" +Directory. +.IP "\s-1FIFO\s0" 4 +.IX Item "FIFO" +\&\s-1FIFO\s0 (named pipe). +.IP "\s-1SOCKET\s0" 4 +.IX Item "SOCKET" +Socket. +.PP +Returns the \f(CW\*(C`Archive::Tar::File\*(C'\fR object that was just added, or +\&\f(CW\*(C`undef\*(C'\fR on failure. +.ie n .SS "$tar\->error( [$BOOL] )" +.el .SS "\f(CW$tar\fP\->error( [$BOOL] )" +.IX Subsection "$tar->error( [$BOOL] )" +Returns the current error string (usually, the last error reported). +If a true value was specified, it will give the \f(CW\*(C`Carp::longmess\*(C'\fR +equivalent of the error, in effect giving you a stacktrace. +.PP +For backwards compatibility, this error is also available as +\&\f(CW$Archive::Tar::error\fR although it is much recommended you use the +method call instead. +.ie n .SS "$tar\->setcwd( $cwd );" +.el .SS "\f(CW$tar\fP\->setcwd( \f(CW$cwd\fP );" +.IX Subsection "$tar->setcwd( $cwd );" +\&\f(CW\*(C`Archive::Tar\*(C'\fR needs to know the current directory, and it will run +\&\f(CW\*(C`Cwd::cwd()\*(C'\fR \fIevery\fR time it extracts a \fIrelative\fR entry from the +tarfile and saves it in the file system. (As of version 1.30, however, +\&\f(CW\*(C`Archive::Tar\*(C'\fR will use the speed optimization described below +automatically, so it's only relevant if you're using \f(CW\*(C`extract_file()\*(C'\fR). +.PP +Since \f(CW\*(C`Archive::Tar\*(C'\fR doesn't change the current directory internally +while it is extracting the items in a tarball, all calls to \f(CW\*(C`Cwd::cwd()\*(C'\fR +can be avoided if we can guarantee that the current directory doesn't +get changed externally. +.PP +To use this performance boost, set the current directory via +.PP +.Vb 2 +\& use Cwd; +\& $tar\->setcwd( cwd() ); +.Ve +.PP +once before calling a function like \f(CW\*(C`extract_file\*(C'\fR and +\&\f(CW\*(C`Archive::Tar\*(C'\fR will use the current directory setting from then on +and won't call \f(CW\*(C`Cwd::cwd()\*(C'\fR internally. +.PP +To switch back to the default behaviour, use +.PP +.Vb 1 +\& $tar\->setcwd( undef ); +.Ve +.PP +and \f(CW\*(C`Archive::Tar\*(C'\fR will call \f(CW\*(C`Cwd::cwd()\*(C'\fR internally again. +.PP +If you're using \f(CW\*(C`Archive::Tar\*(C'\fR's \f(CW\*(C`extract()\*(C'\fR method, \f(CW\*(C`setcwd()\*(C'\fR will +be called for you. +.SH "Class Methods" +.IX Header "Class Methods" +.ie n .SS "Archive::Tar\->create_archive($file, $compressed, @filelist)" +.el .SS "Archive::Tar\->create_archive($file, \f(CW$compressed\fP, \f(CW@filelist\fP)" +.IX Subsection "Archive::Tar->create_archive($file, $compressed, @filelist)" +Creates a tar file from the list of files provided. The first +argument can either be the name of the tar file to create or a +reference to an open file handle (e.g. a \s-1GLOB\s0 reference). +.PP +The second argument is used to indicate compression. You can +compress using \f(CW\*(C`gzip\*(C'\fR, \f(CW\*(C`bzip2\*(C'\fR or \f(CW\*(C`xz\*(C'\fR. If you pass a digit, it's assumed +to be the \f(CW\*(C`gzip\*(C'\fR compression level (between 1 and 9), but the use of +constants is preferred: +.PP +.Vb 2 +\& # write a gzip compressed file +\& Archive::Tar\->create_archive( \*(Aqout.tgz\*(Aq, COMPRESS_GZIP, @filelist ); +\& +\& # write a bzip compressed file +\& Archive::Tar\->create_archive( \*(Aqout.tbz\*(Aq, COMPRESS_BZIP, @filelist ); +\& +\& # write a xz compressed file +\& Archive::Tar\->create_archive( \*(Aqout.txz\*(Aq, COMPRESS_XZ, @filelist ); +.Ve +.PP +Note that when you pass in a filehandle, the compression argument +is ignored, as all files are printed verbatim to your filehandle. +If you wish to enable compression with filehandles, use an +\&\f(CW\*(C`IO::Zlib\*(C'\fR, \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR or \f(CW\*(C`IO::Compress::Xz\*(C'\fR filehandle instead. +.PP +The remaining arguments list the files to be included in the tar file. +These files must all exist. Any files which don't exist or can't be +read are silently ignored. +.PP +If the archive creation fails for any reason, \f(CW\*(C`create_archive\*(C'\fR will +return false. Please use the \f(CW\*(C`error\*(C'\fR method to find the cause of the +failure. +.PP +Note that this method does not write \f(CW\*(C`on the fly\*(C'\fR as it were; it +still reads all the files into memory before writing out the archive. +Consult the \s-1FAQ\s0 below if this is a problem. +.ie n .SS "Archive::Tar\->iter( $filename, [ $compressed, {opt => $val} ] )" +.el .SS "Archive::Tar\->iter( \f(CW$filename\fP, [ \f(CW$compressed\fP, {opt => \f(CW$val\fP} ] )" +.IX Subsection "Archive::Tar->iter( $filename, [ $compressed, {opt => $val} ] )" +Returns an iterator function that reads the tar file without loading +it all in memory. Each time the function is called it will return the +next file in the tarball. The files are returned as +\&\f(CW\*(C`Archive::Tar::File\*(C'\fR objects. The iterator function returns the +empty list once it has exhausted the files contained. +.PP +The second argument can be a hash reference with options, which are +identical to the arguments passed to \f(CW\*(C`read()\*(C'\fR. +.PP +Example usage: +.PP +.Vb 1 +\& my $next = Archive::Tar\->iter( "example.tar.gz", 1, {filter => qr/\e.pm$/} ); +\& +\& while( my $f = $next\->() ) { +\& print $f\->name, "\en"; +\& +\& $f\->extract or warn "Extraction failed"; +\& +\& # .... +\& } +.Ve +.ie n .SS "Archive::Tar\->list_archive($file, $compressed, [\e@properties])" +.el .SS "Archive::Tar\->list_archive($file, \f(CW$compressed\fP, [\e@properties])" +.IX Subsection "Archive::Tar->list_archive($file, $compressed, [@properties])" +Returns a list of the names of all the files in the archive. The +first argument can either be the name of the tar file to list or a +reference to an open file handle (e.g. a \s-1GLOB\s0 reference). +.PP +If \f(CW\*(C`list_archive()\*(C'\fR is passed an array reference as its third +argument it returns a list of hash references containing the requested +properties of each file. The following list of properties is +supported: full_path, name, size, mtime (last modified date), mode, +uid, gid, linkname, uname, gname, devmajor, devminor, prefix, type. +.PP +See \f(CW\*(C`Archive::Tar::File\*(C'\fR for details about supported properties. +.PP +Passing an array reference containing only one element, 'name', is +special cased to return a list of names rather than a list of hash +references. +.ie n .SS "Archive::Tar\->extract_archive($file, $compressed)" +.el .SS "Archive::Tar\->extract_archive($file, \f(CW$compressed\fP)" +.IX Subsection "Archive::Tar->extract_archive($file, $compressed)" +Extracts the contents of the tar file. The first argument can either +be the name of the tar file to create or a reference to an open file +handle (e.g. a \s-1GLOB\s0 reference). All relative paths in the tar file will +be created underneath the current working directory. +.PP +\&\f(CW\*(C`extract_archive\*(C'\fR will return a list of files it extracted. +If the archive extraction fails for any reason, \f(CW\*(C`extract_archive\*(C'\fR +will return false. Please use the \f(CW\*(C`error\*(C'\fR method to find the cause +of the failure. +.ie n .SS "$bool = Archive::Tar\->has_io_string" +.el .SS "\f(CW$bool\fP = Archive::Tar\->has_io_string" +.IX Subsection "$bool = Archive::Tar->has_io_string" +Returns true if we currently have \f(CW\*(C`IO::String\*(C'\fR support loaded. +.PP +Either \f(CW\*(C`IO::String\*(C'\fR or \f(CW\*(C`perlio\*(C'\fR support is needed to support writing +stringified archives. Currently, \f(CW\*(C`perlio\*(C'\fR is the preferred method, if +available. +.PP +See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section to see how to change this preference. +.ie n .SS "$bool = Archive::Tar\->has_perlio" +.el .SS "\f(CW$bool\fP = Archive::Tar\->has_perlio" +.IX Subsection "$bool = Archive::Tar->has_perlio" +Returns true if we currently have \f(CW\*(C`perlio\*(C'\fR support loaded. +.PP +This requires \f(CW\*(C`perl\-5.8\*(C'\fR or higher, compiled with \f(CW\*(C`perlio\*(C'\fR +.PP +Either \f(CW\*(C`IO::String\*(C'\fR or \f(CW\*(C`perlio\*(C'\fR support is needed to support writing +stringified archives. Currently, \f(CW\*(C`perlio\*(C'\fR is the preferred method, if +available. +.PP +See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section to see how to change this preference. +.ie n .SS "$bool = Archive::Tar\->has_zlib_support" +.el .SS "\f(CW$bool\fP = Archive::Tar\->has_zlib_support" +.IX Subsection "$bool = Archive::Tar->has_zlib_support" +Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`zlib\*(C'\fR compressed archives +.ie n .SS "$bool = Archive::Tar\->has_bzip2_support" +.el .SS "\f(CW$bool\fP = Archive::Tar\->has_bzip2_support" +.IX Subsection "$bool = Archive::Tar->has_bzip2_support" +Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`bzip2\*(C'\fR compressed archives +.ie n .SS "$bool = Archive::Tar\->has_xz_support" +.el .SS "\f(CW$bool\fP = Archive::Tar\->has_xz_support" +.IX Subsection "$bool = Archive::Tar->has_xz_support" +Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`xz\*(C'\fR compressed archives +.SS "Archive::Tar\->can_handle_compressed_files" +.IX Subsection "Archive::Tar->can_handle_compressed_files" +A simple checking routine, which will return true if \f(CW\*(C`Archive::Tar\*(C'\fR +is able to uncompress compressed archives on the fly with \f(CW\*(C`IO::Zlib\*(C'\fR, +\&\f(CW\*(C`IO::Compress::Bzip2\*(C'\fR and \f(CW\*(C`IO::Compress::Xz\*(C'\fR or false if not both are installed. +.PP +You can use this as a shortcut to determine whether \f(CW\*(C`Archive::Tar\*(C'\fR +will do what you think before passing compressed archives to its +\&\f(CW\*(C`read\*(C'\fR method. +.SH "GLOBAL VARIABLES" +.IX Header "GLOBAL VARIABLES" +.ie n .SS "$Archive::Tar::FOLLOW_SYMLINK" +.el .SS "\f(CW$Archive::Tar::FOLLOW_SYMLINK\fP" +.IX Subsection "$Archive::Tar::FOLLOW_SYMLINK" +Set this variable to \f(CW1\fR to make \f(CW\*(C`Archive::Tar\*(C'\fR effectively make a +copy of the file when extracting. Default is \f(CW0\fR, which +means the symlink stays intact. Of course, you will have to pack the +file linked to as well. +.PP +This option is checked when you write out the tarfile using \f(CW\*(C`write\*(C'\fR +or \f(CW\*(C`create_archive\*(C'\fR. +.PP +This works just like \f(CW\*(C`/bin/tar\*(C'\fR's \f(CW\*(C`\-h\*(C'\fR option. +.ie n .SS "$Archive::Tar::CHOWN" +.el .SS "\f(CW$Archive::Tar::CHOWN\fP" +.IX Subsection "$Archive::Tar::CHOWN" +By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to \f(CW\*(C`chown\*(C'\fR your files if it is +able to. In some cases, this may not be desired. In that case, set +this variable to \f(CW0\fR to disable \f(CW\*(C`chown\*(C'\fR\-ing, even if it were +possible. +.PP +The default is \f(CW1\fR. +.ie n .SS "$Archive::Tar::CHMOD" +.el .SS "\f(CW$Archive::Tar::CHMOD\fP" +.IX Subsection "$Archive::Tar::CHMOD" +By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to \f(CW\*(C`chmod\*(C'\fR your files to +whatever mode was specified for the particular file in the archive. +In some cases, this may not be desired. In that case, set this +variable to \f(CW0\fR to disable \f(CW\*(C`chmod\*(C'\fR\-ing. +.PP +The default is \f(CW1\fR. +.ie n .SS "$Archive::Tar::SAME_PERMISSIONS" +.el .SS "\f(CW$Archive::Tar::SAME_PERMISSIONS\fP" +.IX Subsection "$Archive::Tar::SAME_PERMISSIONS" +When, \f(CW$Archive::Tar::CHMOD\fR is enabled, this setting controls whether +the permissions on files from the archive are used without modification +of if they are filtered by removing any setid bits and applying the +current umask. +.PP +The default is \f(CW1\fR for the root user and \f(CW0\fR for normal users. +.ie n .SS "$Archive::Tar::DO_NOT_USE_PREFIX" +.el .SS "\f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fP" +.IX Subsection "$Archive::Tar::DO_NOT_USE_PREFIX" +By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to put paths that are over +100 characters in the \f(CW\*(C`prefix\*(C'\fR field of your tar header, as +defined per POSIX-standard. However, some (older) tar programs +do not implement this spec. To retain compatibility with these older +or non-POSIX compliant versions, you can set the \f(CW$DO_NOT_USE_PREFIX\fR +variable to a true value, and \f(CW\*(C`Archive::Tar\*(C'\fR will use an alternate +way of dealing with paths over 100 characters by using the +\&\f(CW\*(C`GNU Extended Header\*(C'\fR feature. +.PP +Note that clients who do not support the \f(CW\*(C`GNU Extended Header\*(C'\fR +feature will not be able to read these archives. Such clients include +tars on \f(CW\*(C`Solaris\*(C'\fR, \f(CW\*(C`Irix\*(C'\fR and \f(CW\*(C`AIX\*(C'\fR. +.PP +The default is \f(CW0\fR. +.ie n .SS "$Archive::Tar::DEBUG" +.el .SS "\f(CW$Archive::Tar::DEBUG\fP" +.IX Subsection "$Archive::Tar::DEBUG" +Set this variable to \f(CW1\fR to always get the \f(CW\*(C`Carp::longmess\*(C'\fR output +of the warnings, instead of the regular \f(CW\*(C`carp\*(C'\fR. This is the same +message you would get by doing: +.PP +.Vb 1 +\& $tar\->error(1); +.Ve +.PP +Defaults to \f(CW0\fR. +.ie n .SS "$Archive::Tar::WARN" +.el .SS "\f(CW$Archive::Tar::WARN\fP" +.IX Subsection "$Archive::Tar::WARN" +Set this variable to \f(CW0\fR if you do not want any warnings printed. +Personally I recommend against doing this, but people asked for the +option. Also, be advised that this is of course not threadsafe. +.PP +Defaults to \f(CW1\fR. +.ie n .SS "$Archive::Tar::error" +.el .SS "\f(CW$Archive::Tar::error\fP" +.IX Subsection "$Archive::Tar::error" +Holds the last reported error. Kept for historical reasons, but its +use is very much discouraged. Use the \f(CW\*(C`error()\*(C'\fR method instead: +.PP +.Vb 1 +\& warn $tar\->error unless $tar\->extract; +.Ve +.PP +Note that in older versions of this module, the \f(CW\*(C`error()\*(C'\fR method +would return an effectively global value even when called an instance +method as above. This has since been fixed, and multiple instances of +\&\f(CW\*(C`Archive::Tar\*(C'\fR now have separate error strings. +.ie n .SS "$Archive::Tar::INSECURE_EXTRACT_MODE" +.el .SS "\f(CW$Archive::Tar::INSECURE_EXTRACT_MODE\fP" +.IX Subsection "$Archive::Tar::INSECURE_EXTRACT_MODE" +This variable indicates whether \f(CW\*(C`Archive::Tar\*(C'\fR should allow +files to be extracted outside their current working directory. +.PP +Allowing this could have security implications, as a malicious +tar archive could alter or replace any file the extracting user +has permissions to. Therefor, the default is to not allow +insecure extractions. +.PP +If you trust the archive, or have other reasons to allow the +archive to write files outside your current working directory, +set this variable to \f(CW\*(C`true\*(C'\fR. +.PP +Note that this is a backwards incompatible change from version +\&\f(CW1.36\fR and before. +.ie n .SS "$Archive::Tar::HAS_PERLIO" +.el .SS "\f(CW$Archive::Tar::HAS_PERLIO\fP" +.IX Subsection "$Archive::Tar::HAS_PERLIO" +This variable holds a boolean indicating if we currently have +\&\f(CW\*(C`perlio\*(C'\fR support loaded. This will be enabled for any perl +greater than \f(CW5.8\fR compiled with \f(CW\*(C`perlio\*(C'\fR. +.PP +If you feel strongly about disabling it, set this variable to +\&\f(CW\*(C`false\*(C'\fR. Note that you will then need \f(CW\*(C`IO::String\*(C'\fR installed +to support writing stringified archives. +.PP +Don't change this variable unless you \fBreally\fR know what you're +doing. +.ie n .SS "$Archive::Tar::HAS_IO_STRING" +.el .SS "\f(CW$Archive::Tar::HAS_IO_STRING\fP" +.IX Subsection "$Archive::Tar::HAS_IO_STRING" +This variable holds a boolean indicating if we currently have +\&\f(CW\*(C`IO::String\*(C'\fR support loaded. This will be enabled for any perl +that has a loadable \f(CW\*(C`IO::String\*(C'\fR module. +.PP +If you feel strongly about disabling it, set this variable to +\&\f(CW\*(C`false\*(C'\fR. Note that you will then need \f(CW\*(C`perlio\*(C'\fR support from +your perl to be able to write stringified archives. +.PP +Don't change this variable unless you \fBreally\fR know what you're +doing. +.ie n .SS "$Archive::Tar::ZERO_PAD_NUMBERS" +.el .SS "\f(CW$Archive::Tar::ZERO_PAD_NUMBERS\fP" +.IX Subsection "$Archive::Tar::ZERO_PAD_NUMBERS" +This variable holds a boolean indicating if we will create +zero padded numbers for \f(CW\*(C`size\*(C'\fR, \f(CW\*(C`mtime\*(C'\fR and \f(CW\*(C`checksum\*(C'\fR. +The default is \f(CW0\fR, indicating that we will create space padded +numbers. Added for compatibility with \f(CW\*(C`busybox\*(C'\fR implementations. +.SS "Tuning the way \s-1RESOLVE_SYMLINK\s0 will works" +.IX Subsection "Tuning the way RESOLVE_SYMLINK will works" +.Vb 2 +\& You can tune the behaviour by setting the $Archive::Tar::RESOLVE_SYMLINK variable, +\& or $ENV{PERL5_AT_RESOLVE_SYMLINK} before loading the module Archive::Tar. +\& +\& Values can be one of the following: +\& +\& none +\& Disable this mechanism and failed as it was in previous version (<1.88) +\& +\& speed (default) +\& If you prefer speed +\& this will read again the whole archive using read() so all entries +\& will be available +\& +\& memory +\& If you prefer memory +\& +\& Limitation +\& +\& It won\*(Aqt work for terminal, pipe or sockets or every non seekable source. +.Ve +.SH "FAQ" +.IX Header "FAQ" +.IP "What's the minimum perl version required to run Archive::Tar?" 4 +.IX Item "What's the minimum perl version required to run Archive::Tar?" +You will need perl version 5.005_03 or newer. +.IP "Isn't Archive::Tar slow?" 4 +.IX Item "Isn't Archive::Tar slow?" +Yes it is. It's pure perl, so it's a lot slower then your \f(CW\*(C`/bin/tar\*(C'\fR +However, it's very portable. If speed is an issue, consider using +\&\f(CW\*(C`/bin/tar\*(C'\fR instead. +.IP "Isn't Archive::Tar heavier on memory than /bin/tar?" 4 +.IX Item "Isn't Archive::Tar heavier on memory than /bin/tar?" +Yes it is, see previous answer. Since \f(CW\*(C`Compress::Zlib\*(C'\fR and therefore +\&\f(CW\*(C`IO::Zlib\*(C'\fR doesn't support \f(CW\*(C`seek\*(C'\fR on their filehandles, there is little +choice but to read the archive into memory. +This is ok if you want to do in-memory manipulation of the archive. +.Sp +If you just want to extract, use the \f(CW\*(C`extract_archive\*(C'\fR class method +instead. It will optimize and write to disk immediately. +.Sp +Another option is to use the \f(CW\*(C`iter\*(C'\fR class method to iterate over +the files in the tarball without reading them all in memory at once. +.IP "Can you lazy-load data instead?" 4 +.IX Item "Can you lazy-load data instead?" +In some cases, yes. You can use the \f(CW\*(C`iter\*(C'\fR class method to iterate +over the files in the tarball without reading them all in memory at once. +.IP "How much memory will an X kb tar file need?" 4 +.IX Item "How much memory will an X kb tar file need?" +Probably more than X kb, since it will all be read into memory. If +this is a problem, and you don't need to do in memory manipulation +of the archive, consider using the \f(CW\*(C`iter\*(C'\fR class method, or \f(CW\*(C`/bin/tar\*(C'\fR +instead. +.IP "What do you do with unsupported filetypes in an archive?" 4 +.IX Item "What do you do with unsupported filetypes in an archive?" +\&\f(CW\*(C`Unix\*(C'\fR has a few filetypes that aren't supported on other platforms, +like \f(CW\*(C`Win32\*(C'\fR. If we encounter a \f(CW\*(C`hardlink\*(C'\fR or \f(CW\*(C`symlink\*(C'\fR we'll just +try to make a copy of the original file, rather than throwing an error. +.Sp +This does require you to read the entire archive in to memory first, +since otherwise we wouldn't know what data to fill the copy with. +(This means that you cannot use the class methods, including \f(CW\*(C`iter\*(C'\fR +on archives that have incompatible filetypes and still expect things +to work). +.Sp +For other filetypes, like \f(CW\*(C`chardevs\*(C'\fR and \f(CW\*(C`blockdevs\*(C'\fR we'll warn that +the extraction of this particular item didn't work. +.IP "I'm using WinZip, or some other non-POSIX client, and files are not being extracted properly!" 4 +.IX Item "I'm using WinZip, or some other non-POSIX client, and files are not being extracted properly!" +By default, \f(CW\*(C`Archive::Tar\*(C'\fR is in a completely POSIX-compatible +mode, which uses the POSIX-specification of \f(CW\*(C`tar\*(C'\fR to store files. +For paths greater than 100 characters, this is done using the +\&\f(CW\*(C`POSIX header prefix\*(C'\fR. Non-POSIX-compatible clients may not support +this part of the specification, and may only support the \f(CW\*(C`GNU Extended +Header\*(C'\fR functionality. To facilitate those clients, you can set the +\&\f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fR variable to \f(CW\*(C`true\*(C'\fR. See the +\&\f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section for details on this variable. +.Sp +Note that \s-1GNU\s0 tar earlier than version 1.14 does not cope well with +the \f(CW\*(C`POSIX header prefix\*(C'\fR. If you use such a version, consider setting +the \f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fR variable to \f(CW\*(C`true\*(C'\fR. +.IP "How do I extract only files that have property X from an archive?" 4 +.IX Item "How do I extract only files that have property X from an archive?" +Sometimes, you might not wish to extract a complete archive, just +the files that are relevant to you, based on some criteria. +.Sp +You can do this by filtering a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR objects +based on your criteria. For example, to extract only files that have +the string \f(CW\*(C`foo\*(C'\fR in their title, you would use: +.Sp +.Vb 3 +\& $tar\->extract( +\& grep { $_\->full_path =~ /foo/ } $tar\->get_files +\& ); +.Ve +.Sp +This way, you can filter on any attribute of the files in the archive. +Consult the \f(CW\*(C`Archive::Tar::File\*(C'\fR documentation on how to use these +objects. +.IP "How do I access .tar.Z files?" 4 +.IX Item "How do I access .tar.Z files?" +The \f(CW\*(C`Archive::Tar\*(C'\fR module can optionally use \f(CW\*(C`Compress::Zlib\*(C'\fR (via +the \f(CW\*(C`IO::Zlib\*(C'\fR module) to access tar files that have been compressed +with \f(CW\*(C`gzip\*(C'\fR. Unfortunately tar files compressed with the Unix \f(CW\*(C`compress\*(C'\fR +utility cannot be read by \f(CW\*(C`Compress::Zlib\*(C'\fR and so cannot be directly +accesses by \f(CW\*(C`Archive::Tar\*(C'\fR. +.Sp +If the \f(CW\*(C`uncompress\*(C'\fR or \f(CW\*(C`gunzip\*(C'\fR programs are available, you can use +one of these workarounds to read \f(CW\*(C`.tar.Z\*(C'\fR files from \f(CW\*(C`Archive::Tar\*(C'\fR +.Sp +Firstly with \f(CW\*(C`uncompress\*(C'\fR +.Sp +.Vb 1 +\& use Archive::Tar; +\& +\& open F, "uncompress \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.Sp +and this with \f(CW\*(C`gunzip\*(C'\fR +.Sp +.Vb 1 +\& use Archive::Tar; +\& +\& open F, "gunzip \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.Sp +Similarly, if the \f(CW\*(C`compress\*(C'\fR program is available, you can use this to +write a \f(CW\*(C`.tar.Z\*(C'\fR file +.Sp +.Vb 2 +\& use Archive::Tar; +\& use IO::File; +\& +\& my $fh = new IO::File "| compress \-c >$filename"; +\& my $tar = Archive::Tar\->new(); +\& ... +\& $tar\->write($fh); +\& $fh\->close ; +.Ve +.IP "How do I handle Unicode strings?" 4 +.IX Item "How do I handle Unicode strings?" +\&\f(CW\*(C`Archive::Tar\*(C'\fR uses byte semantics for any files it reads from or writes +to disk. This is not a problem if you only deal with files and never +look at their content or work solely with byte strings. But if you use +Unicode strings with character semantics, some additional steps need +to be taken. +.Sp +For example, if you add a Unicode string like +.Sp +.Vb 2 +\& # Problem +\& $tar\->add_data(\*(Aqfile.txt\*(Aq, "Euro: \ex{20AC}"); +.Ve +.Sp +then there will be a problem later when the tarfile gets written out +to disk via \f(CW\*(C`$tar\->write()\*(C'\fR: +.Sp +.Vb 1 +\& Wide character in print at .../Archive/Tar.pm line 1014. +.Ve +.Sp +The data was added as a Unicode string and when writing it out to disk, +the \f(CW\*(C`:utf8\*(C'\fR line discipline wasn't set by \f(CW\*(C`Archive::Tar\*(C'\fR, so Perl +tried to convert the string to \s-1ISO\-8859\s0 and failed. The written file +now contains garbage. +.Sp +For this reason, Unicode strings need to be converted to UTF\-8\-encoded +bytestrings before they are handed off to \f(CW\*(C`add_data()\*(C'\fR: +.Sp +.Vb 3 +\& use Encode; +\& my $data = "Accented character: \ex{20AC}"; +\& $data = encode(\*(Aqutf8\*(Aq, $data); +\& +\& $tar\->add_data(\*(Aqfile.txt\*(Aq, $data); +.Ve +.Sp +A opposite problem occurs if you extract a UTF8\-encoded file from a +tarball. Using \f(CW\*(C`get_content()\*(C'\fR on the \f(CW\*(C`Archive::Tar::File\*(C'\fR object +will return its content as a bytestring, not as a Unicode string. +.Sp +If you want it to be a Unicode string (because you want character +semantics with operations like regular expression matching), you need +to decode the UTF8\-encoded content and have Perl convert it into +a Unicode string: +.Sp +.Vb 2 +\& use Encode; +\& my $data = $tar\->get_content(); +\& +\& # Make it a Unicode string +\& $data = decode(\*(Aqutf8\*(Aq, $data); +.Ve +.Sp +There is no easy way to provide this functionality in \f(CW\*(C`Archive::Tar\*(C'\fR, +because a tarball can contain many files, and each of which could be +encoded in a different way. +.SH "CAVEATS" +.IX Header "CAVEATS" +The \s-1AIX\s0 tar does not fill all unused space in the tar archive with 0x00. +This sometimes leads to warning messages from \f(CW\*(C`Archive::Tar\*(C'\fR. +.PP +.Vb 1 +\& Invalid header block at offset nnn +.Ve +.PP +A fix for that problem is scheduled to be released in the following levels +of \s-1AIX,\s0 all of which should be coming out in the 4th quarter of 2009: +.PP +.Vb 4 +\& AIX 5.3 TL7 SP10 +\& AIX 5.3 TL8 SP8 +\& AIX 5.3 TL9 SP5 +\& AIX 5.3 TL10 SP2 +\& +\& AIX 6.1 TL0 SP11 +\& AIX 6.1 TL1 SP7 +\& AIX 6.1 TL2 SP6 +\& AIX 6.1 TL3 SP3 +.Ve +.PP +The \s-1IBM APAR\s0 number for this problem is \s-1IZ50240\s0 (Reported component \s-1ID: +5765G0300 / AIX 5.3\s0). It is possible to get an ifix for that problem. +If you need an ifix please contact your local \s-1IBM AIX\s0 support. +.SH "TODO" +.IX Header "TODO" +.IP "Check if passed in handles are open for read/write" 4 +.IX Item "Check if passed in handles are open for read/write" +Currently I don't know of any portable pure perl way to do this. +Suggestions welcome. +.IP "Allow archives to be passed in as string" 4 +.IX Item "Allow archives to be passed in as string" +Currently, we only allow opened filehandles or filenames, but +not strings. The internals would need some reworking to facilitate +stringified archives. +.IP "Facilitate processing an opened filehandle of a compressed archive" 4 +.IX Item "Facilitate processing an opened filehandle of a compressed archive" +Currently, we only support this if the filehandle is an IO::Zlib object. +Environments, like apache, will present you with an opened filehandle +to an uploaded file, which might be a compressed archive. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "The \s-1GNU\s0 tar specification" 4 +.IX Item "The GNU tar specification" +\&\f(CW\*(C`http://www.gnu.org/software/tar/manual/tar.html\*(C'\fR +.IP "The \s-1PAX\s0 format specification" 4 +.IX Item "The PAX format specification" +The specification which tar derives from; \f(CW\*(C` http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html\*(C'\fR +.ie n .IP "A comparison of \s-1GNU\s0 and \s-1POSIX\s0 tar standards; ""http://www.delorie.com/gnu/docs/tar/tar_114.html""" 4 +.el .IP "A comparison of \s-1GNU\s0 and \s-1POSIX\s0 tar standards; \f(CWhttp://www.delorie.com/gnu/docs/tar/tar_114.html\fR" 4 +.IX Item "A comparison of GNU and POSIX tar standards; http://www.delorie.com/gnu/docs/tar/tar_114.html" +.PD 0 +.IP "\s-1GNU\s0 tar intends to switch to \s-1POSIX\s0 compatibility" 4 +.IX Item "GNU tar intends to switch to POSIX compatibility" +.PD +\&\s-1GNU\s0 Tar authors have expressed their intention to become completely +POSIX-compatible; \f(CW\*(C`http://www.gnu.org/software/tar/manual/html_node/Formats.html\*(C'\fR +.IP "A Comparison between various tar implementations" 4 +.IX Item "A Comparison between various tar implementations" +Lists known issues and incompatibilities; \f(CW\*(C`http://gd.tuwien.ac.at/utils/archivers/star/README.otherbugs\*(C'\fR +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.PP +Please reports bugs to . +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Thanks to Sean Burke, Chris Nandor, Chip Salzenberg, Tim Heaney, Gisle Aas, +Rainer Tammer and especially Andrew Savige for their help and suggestions. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This module is copyright (c) 2002 \- 2009 Jos Boumans +. All rights reserved. +.PP +This library is free software; you may redistribute and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/AutoLoader.3 b/data/miniconda3/man/man3/AutoLoader.3 new file mode 100644 index 0000000000000000000000000000000000000000..60dd9a9b3212d0952d0da8d221a5c57c172e0931 --- /dev/null +++ b/data/miniconda3/man/man3/AutoLoader.3 @@ -0,0 +1,381 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "AutoLoader 3" +.TH AutoLoader 3 "2020-12-18" "perl v5.32.1" "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" +AutoLoader \- load subroutines only on demand +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package Foo; +\& use AutoLoader \*(AqAUTOLOAD\*(Aq; # import the default AUTOLOAD subroutine +\& +\& package Bar; +\& use AutoLoader; # don\*(Aqt import AUTOLOAD, define our own +\& sub AUTOLOAD { +\& ... +\& $AutoLoader::AUTOLOAD = "..."; +\& goto &AutoLoader::AUTOLOAD; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBAutoLoader\fR module works with the \fBAutoSplit\fR module and the +\&\f(CW\*(C`_\|_END_\|_\*(C'\fR token to defer the loading of some subroutines until they are +used rather than loading them all at once. +.PP +To use \fBAutoLoader\fR, the author of a module has to place the +definitions of subroutines to be autoloaded after an \f(CW\*(C`_\|_END_\|_\*(C'\fR token. +(See perldata.) The \fBAutoSplit\fR module can then be run manually to +extract the definitions into individual files \fIauto/funcname.al\fR. +.PP +\&\fBAutoLoader\fR implements an \s-1AUTOLOAD\s0 subroutine. When an undefined +subroutine in is called in a client module of \fBAutoLoader\fR, +\&\fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine attempts to locate the subroutine in a +file with a name related to the location of the file from which the +client module was read. As an example, if \fI\s-1POSIX\s0.pm\fR is located in +\&\fI/usr/local/lib/perl5/POSIX.pm\fR, \fBAutoLoader\fR will look for perl +subroutines \fB\s-1POSIX\s0\fR in \fI/usr/local/lib/perl5/auto/POSIX/*.al\fR, where +the \f(CW\*(C`.al\*(C'\fR file has the same name as the subroutine, sans package. If +such a file exists, \s-1AUTOLOAD\s0 will read and evaluate it, +thus (presumably) defining the needed subroutine. \s-1AUTOLOAD\s0 will then +\&\f(CW\*(C`goto\*(C'\fR the newly defined subroutine. +.PP +Once this process completes for a given function, it is defined, so +future calls to the subroutine will bypass the \s-1AUTOLOAD\s0 mechanism. +.SS "Subroutine Stubs" +.IX Subsection "Subroutine Stubs" +In order for object method lookup and/or prototype checking to operate +correctly even when methods have not yet been defined it is necessary to +\&\*(L"forward declare\*(R" each subroutine (as in \f(CW\*(C`sub NAME;\*(C'\fR). See +\&\*(L"\s-1SYNOPSIS\*(R"\s0 in perlsub. Such forward declaration creates \*(L"subroutine +stubs\*(R", which are place holders with no code. +.PP +The AutoSplit and \fBAutoLoader\fR modules automate the creation of forward +declarations. The AutoSplit module creates an 'index' file containing +forward declarations of all the AutoSplit subroutines. When the +AutoLoader module is 'use'd it loads these declarations into its callers +package. +.PP +Because of this mechanism it is important that \fBAutoLoader\fR is always +\&\f(CW\*(C`use\*(C'\fRd and not \f(CW\*(C`require\*(C'\fRd. +.SS "Using \fBAutoLoader\fP's \s-1AUTOLOAD\s0 Subroutine" +.IX Subsection "Using AutoLoader's AUTOLOAD Subroutine" +In order to use \fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine you \fImust\fR +explicitly import it: +.PP +.Vb 1 +\& use AutoLoader \*(AqAUTOLOAD\*(Aq; +.Ve +.SS "Overriding \fBAutoLoader\fP's \s-1AUTOLOAD\s0 Subroutine" +.IX Subsection "Overriding AutoLoader's AUTOLOAD Subroutine" +Some modules, mainly extensions, provide their own \s-1AUTOLOAD\s0 subroutines. +They typically need to check for some special cases (such as constants) +and then fallback to \fBAutoLoader\fR's \s-1AUTOLOAD\s0 for the rest. +.PP +Such modules should \fInot\fR import \fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine. +Instead, they should define their own \s-1AUTOLOAD\s0 subroutines along these +lines: +.PP +.Vb 2 +\& use AutoLoader; +\& use Carp; +\& +\& sub AUTOLOAD { +\& my $sub = $AUTOLOAD; +\& (my $constname = $sub) =~ s/.*:://; +\& my $val = constant($constname, @_ ? $_[0] : 0); +\& if ($! != 0) { +\& if ($! =~ /Invalid/ || $!{EINVAL}) { +\& $AutoLoader::AUTOLOAD = $sub; +\& goto &AutoLoader::AUTOLOAD; +\& } +\& else { +\& croak "Your vendor has not defined constant $constname"; +\& } +\& } +\& *$sub = sub { $val }; # same as: eval "sub $sub { $val }"; +\& goto &$sub; +\& } +.Ve +.PP +If any module's own \s-1AUTOLOAD\s0 subroutine has no need to fallback to the +AutoLoader's \s-1AUTOLOAD\s0 subroutine (because it doesn't have any AutoSplit +subroutines), then that module should not use \fBAutoLoader\fR at all. +.SS "Package Lexicals" +.IX Subsection "Package Lexicals" +Package lexicals declared with \f(CW\*(C`my\*(C'\fR in the main block of a package +using \fBAutoLoader\fR will not be visible to auto-loaded subroutines, due to +the fact that the given scope ends at the \f(CW\*(C`_\|_END_\|_\*(C'\fR marker. A module +using such variables as package globals will not work properly under the +\&\fBAutoLoader\fR. +.PP +The \f(CW\*(C`vars\*(C'\fR pragma (see \*(L"vars\*(R" in perlmod) may be used in such +situations as an alternative to explicitly qualifying all globals with +the package namespace. Variables pre-declared with this pragma will be +visible to any autoloaded routines (but will not be invisible outside +the package, unfortunately). +.SS "Not Using AutoLoader" +.IX Subsection "Not Using AutoLoader" +You can stop using AutoLoader by simply +.PP +.Vb 1 +\& no AutoLoader; +.Ve +.SS "\fBAutoLoader\fP vs. \fBSelfLoader\fP" +.IX Subsection "AutoLoader vs. SelfLoader" +The \fBAutoLoader\fR is similar in purpose to \fBSelfLoader\fR: both delay the +loading of subroutines. +.PP +\&\fBSelfLoader\fR uses the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR marker rather than \f(CW\*(C`_\|_END_\|_\*(C'\fR. +While this avoids the use of a hierarchy of disk files and the +associated open/close for each routine loaded, \fBSelfLoader\fR suffers a +startup speed disadvantage in the one-time parsing of the lines after +\&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR, after which routines are cached. \fBSelfLoader\fR can also +handle multiple packages in a file. +.PP +\&\fBAutoLoader\fR only reads code as it is requested, and in many cases +should be faster, but requires a mechanism like \fBAutoSplit\fR be used to +create the individual files. ExtUtils::MakeMaker will invoke +\&\fBAutoSplit\fR automatically if \fBAutoLoader\fR is used in a module source +file. +.SS "Forcing AutoLoader to Load a Function" +.IX Subsection "Forcing AutoLoader to Load a Function" +Sometimes, it can be necessary or useful to make sure that a certain +function is fully loaded by AutoLoader. This is the case, for example, +when you need to wrap a function to inject debugging code. It is also +helpful to force early loading of code before forking to make use of +copy-on-write as much as possible. +.PP +Starting with AutoLoader 5.73, you can call the +\&\f(CW\*(C`AutoLoader::autoload_sub\*(C'\fR function with the fully-qualified name of +the function to load from its \fI.al\fR file. The behaviour is exactly +the same as if you called the function, triggering the regular +\&\f(CW\*(C`AUTOLOAD\*(C'\fR mechanism, but it does not actually execute the +autoloaded function. +.SH "CAVEATS" +.IX Header "CAVEATS" +AutoLoaders prior to Perl 5.002 had a slightly different interface. Any +old modules which use \fBAutoLoader\fR should be changed to the new calling +style. Typically this just means changing a require to a use, adding +the explicit \f(CW\*(AqAUTOLOAD\*(Aq\fR import if needed, and removing \fBAutoLoader\fR +from \f(CW@ISA\fR. +.PP +On systems with restrictions on file name length, the file corresponding +to a subroutine may have a shorter name that the routine itself. This +can lead to conflicting file names. The \fIAutoSplit\fR package warns of +these potential conflicts when used to split a module. +.PP +AutoLoader may fail to find the autosplit files (or even find the wrong +ones) in cases where \f(CW@INC\fR contains relative paths, \fBand\fR the program +does \f(CW\*(C`chdir\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +SelfLoader \- an autoloader that doesn't use external files. +.SH "AUTHOR" +.IX Header "AUTHOR" +\&\f(CW\*(C`AutoLoader\*(C'\fR is maintained by the perl5\-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the \s-1CPAN\s0 release can be sent to its maintainer, +though. +.PP +Author and Maintainer: The Perl5\-Porters +.PP +Maintainer of the \s-1CPAN\s0 release: Steffen Mueller +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This package has been part of the perl core since the first release +of perl5. It has been released separately to \s-1CPAN\s0 so older installations +can benefit from bug fixes. +.PP +This package has the same copyright and license as the perl core: +.PP +.Vb 4 +\& Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, +\& 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, +\& 2011, 2012, 2013 +\& by Larry Wall and others +\& +\& All rights reserved. +\& +\& This program is free software; you can redistribute it and/or modify +\& it under the terms of either: +\& +\& a) the GNU General Public License as published by the Free +\& Software Foundation; either version 1, or (at your option) any +\& later version, or +\& +\& b) the "Artistic License" which comes with this Kit. +\& +\& This program is distributed in the hope that it will be useful, +\& but WITHOUT ANY WARRANTY; without even the implied warranty of +\& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either +\& the GNU General Public License or the Artistic License for more details. +\& +\& You should have received a copy of the Artistic License with this +\& Kit, in the file named "Artistic". If not, I\*(Aqll be glad to provide one. +\& +\& You should also have received a copy of the GNU General Public License +\& along with this program in the file named "Copying". If not, write to the +\& Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +\& MA 02110\-1301, USA or visit their web page on the internet at +\& http://www.gnu.org/copyleft/gpl.html. +\& +\& For those of you that choose to use the GNU General Public License, +\& my interpretation of the GNU General Public License is that no Perl +\& script falls under the terms of the GPL unless you explicitly put +\& said script under the terms of the GPL yourself. Furthermore, any +\& object code linked with perl does not automatically fall under the +\& terms of the GPL, provided such object code only adds definitions +\& of subroutines and variables, and does not otherwise impair the +\& resulting interpreter from executing any standard Perl script. I +\& consider linking in C subroutines in this manner to be the moral +\& equivalent of defining subroutines in the Perl language itself. You +\& may sell such an object file as proprietary provided that you provide +\& or offer to provide the Perl source, as specified by the GNU General +\& Public License. (This is merely an alternate way of specifying input +\& to the program.) You may also sell a binary produced by the dumping of +\& a running Perl script that belongs to you, provided that you provide or +\& offer to provide the Perl source as specified by the GPL. (The +\& fact that a Perl interpreter and your code are in the same binary file +\& is, in this case, a form of mere aggregation.) This is my interpretation +\& of the GPL. If you still have concerns or difficulties understanding +\& my intent, feel free to contact me. Of course, the Artistic License +\& spells all this out for your protection, so you may prefer to use that. +.Ve diff --git a/data/miniconda3/man/man3/AutoSplit.3 b/data/miniconda3/man/man3/AutoSplit.3 new file mode 100644 index 0000000000000000000000000000000000000000..c06c5e792a7ae40ca8dd523c2f67a077c5f3326d --- /dev/null +++ b/data/miniconda3/man/man3/AutoSplit.3 @@ -0,0 +1,320 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "AutoSplit 3" +.TH AutoSplit 3 "2020-12-18" "perl v5.32.1" "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" +AutoSplit \- split a package for autoloading +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& autosplit($file, $dir, $keep, $check, $modtime); +\& +\& autosplit_lib_modules(@modules); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This function will split up your program into files that the AutoLoader +module can handle. It is used by both the standard perl libraries and by +the MakeMaker utility, to automatically configure libraries for autoloading. +.PP +The \f(CW\*(C`autosplit\*(C'\fR interface splits the specified file into a hierarchy +rooted at the directory \f(CW$dir\fR. It creates directories as needed to reflect +class hierarchy, and creates the file \fIautosplit.ix\fR. This file acts as +both forward declaration of all package routines, and as timestamp for the +last update of the hierarchy. +.PP +The remaining three arguments to \f(CW\*(C`autosplit\*(C'\fR govern other options to +the autosplitter. +.ie n .IP "$keep" 2 +.el .IP "\f(CW$keep\fR" 2 +.IX Item "$keep" +If the third argument, \fI\f(CI$keep\fI\fR, is false, then any +pre-existing \f(CW\*(C`*.al\*(C'\fR files in the autoload directory are removed if +they are no longer part of the module (obsoleted functions). +\&\f(CW$keep\fR defaults to 0. +.ie n .IP "$check" 2 +.el .IP "\f(CW$check\fR" 2 +.IX Item "$check" +The +fourth argument, \fI\f(CI$check\fI\fR, instructs \f(CW\*(C`autosplit\*(C'\fR to check the module +currently being split to ensure that it includes a \f(CW\*(C`use\*(C'\fR +specification for the AutoLoader module, and skips the module if +AutoLoader is not detected. +\&\f(CW$check\fR defaults to 1. +.ie n .IP "$modtime" 2 +.el .IP "\f(CW$modtime\fR" 2 +.IX Item "$modtime" +Lastly, the \fI\f(CI$modtime\fI\fR argument specifies +that \f(CW\*(C`autosplit\*(C'\fR is to check the modification time of the module +against that of the \f(CW\*(C`autosplit.ix\*(C'\fR file, and only split the module if +it is newer. +\&\f(CW$modtime\fR defaults to 1. +.PP +Typical use of AutoSplit in the perl MakeMaker utility is via the command-line +with: +.PP +.Vb 1 +\& perl \-e \*(Aquse AutoSplit; autosplit($ARGV[0], $ARGV[1], 0, 1, 1)\*(Aq +.Ve +.PP +Defined as a Make macro, it is invoked with file and directory arguments; +\&\f(CW\*(C`autosplit\*(C'\fR will split the specified file into the specified directory and +delete obsolete \f(CW\*(C`.al\*(C'\fR files, after checking first that the module does use +the AutoLoader, and ensuring that the module is not already currently split +in its current form (the modtime test). +.PP +The \f(CW\*(C`autosplit_lib_modules\*(C'\fR form is used in the building of perl. It takes +as input a list of files (modules) that are assumed to reside in a directory +\&\fBlib\fR relative to the current directory. Each file is sent to the +autosplitter one at a time, to be split into the directory \fBlib/auto\fR. +.PP +In both usages of the autosplitter, only subroutines defined following the +perl \fI_\|_END_\|_\fR token are split out into separate files. Some +routines may be placed prior to this marker to force their immediate loading +and parsing. +.SS "Multiple packages" +.IX Subsection "Multiple packages" +As of version 1.01 of the AutoSplit module it is possible to have +multiple packages within a single file. Both of the following cases +are supported: +.PP +.Vb 7 +\& package NAME; +\& _\|_END_\|_ +\& sub AAA { ... } +\& package NAME::option1; +\& sub BBB { ... } +\& package NAME::option2; +\& sub BBB { ... } +\& +\& package NAME; +\& _\|_END_\|_ +\& sub AAA { ... } +\& sub NAME::option1::BBB { ... } +\& sub NAME::option2::BBB { ... } +.Ve +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +\&\f(CW\*(C`AutoSplit\*(C'\fR will inform the user if it is necessary to create the +top-level directory specified in the invocation. It is preferred that +the script or installation process that invokes \f(CW\*(C`AutoSplit\*(C'\fR have +created the full directory path ahead of time. This warning may +indicate that the module is being split into an incorrect path. +.PP +\&\f(CW\*(C`AutoSplit\*(C'\fR will warn the user of all subroutines whose name causes +potential file naming conflicts on machines with drastically limited +(8 characters or less) file name length. Since the subroutine name is +used as the file name, these warnings can aid in portability to such +systems. +.PP +Warnings are issued and the file skipped if \f(CW\*(C`AutoSplit\*(C'\fR cannot locate +either the \fI_\|_END_\|_\fR marker or a \*(L"package Name;\*(R"\-style specification. +.PP +\&\f(CW\*(C`AutoSplit\*(C'\fR will also emit general diagnostics for inability to +create directories or files. +.SH "AUTHOR" +.IX Header "AUTHOR" +\&\f(CW\*(C`AutoSplit\*(C'\fR is maintained by the perl5\-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the \s-1CPAN\s0 release can be sent to its maintainer, +though. +.PP +Author and Maintainer: The Perl5\-Porters +.PP +Maintainer of the \s-1CPAN\s0 release: Steffen Mueller +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This package has been part of the perl core since the first release +of perl5. It has been released separately to \s-1CPAN\s0 so older installations +can benefit from bug fixes. +.PP +This package has the same copyright and license as the perl core: +.PP +.Vb 3 +\& Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, +\& 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +\& by Larry Wall and others +\& +\& All rights reserved. +\& +\& This program is free software; you can redistribute it and/or modify +\& it under the terms of either: +\& +\& a) the GNU General Public License as published by the Free +\& Software Foundation; either version 1, or (at your option) any +\& later version, or +\& +\& b) the "Artistic License" which comes with this Kit. +\& +\& This program is distributed in the hope that it will be useful, +\& but WITHOUT ANY WARRANTY; without even the implied warranty of +\& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either +\& the GNU General Public License or the Artistic License for more details. +\& +\& You should have received a copy of the Artistic License with this +\& Kit, in the file named "Artistic". If not, I\*(Aqll be glad to provide one. +\& +\& You should also have received a copy of the GNU General Public License +\& along with this program in the file named "Copying". If not, write to the +\& Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +\& 02111\-1307, USA or visit their web page on the internet at +\& http://www.gnu.org/copyleft/gpl.html. +\& +\& For those of you that choose to use the GNU General Public License, +\& my interpretation of the GNU General Public License is that no Perl +\& script falls under the terms of the GPL unless you explicitly put +\& said script under the terms of the GPL yourself. Furthermore, any +\& object code linked with perl does not automatically fall under the +\& terms of the GPL, provided such object code only adds definitions +\& of subroutines and variables, and does not otherwise impair the +\& resulting interpreter from executing any standard Perl script. I +\& consider linking in C subroutines in this manner to be the moral +\& equivalent of defining subroutines in the Perl language itself. You +\& may sell such an object file as proprietary provided that you provide +\& or offer to provide the Perl source, as specified by the GNU General +\& Public License. (This is merely an alternate way of specifying input +\& to the program.) You may also sell a binary produced by the dumping of +\& a running Perl script that belongs to you, provided that you provide or +\& offer to provide the Perl source as specified by the GPL. (The +\& fact that a Perl interpreter and your code are in the same binary file +\& is, in this case, a form of mere aggregation.) This is my interpretation +\& of the GPL. If you still have concerns or difficulties understanding +\& my intent, feel free to contact me. Of course, the Artistic License +\& spells all this out for your protection, so you may prefer to use that. +.Ve diff --git a/data/miniconda3/man/man3/B%3A%3AConcise.3 b/data/miniconda3/man/man3/B%3A%3AConcise.3 new file mode 100644 index 0000000000000000000000000000000000000000..93425c34e3c12e224c305e4073acef4f7f3cb14a --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3AConcise.3 @@ -0,0 +1,827 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B::Concise 3" +.TH B::Concise 3 "2020-12-18" "perl v5.32.1" "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" +B::Concise \- Walk Perl syntax tree, printing concise info about ops +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-MO=Concise[,OPTIONS] foo.pl +\& +\& use B::Concise qw(set_style add_callback); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This compiler backend prints the internal OPs of a Perl program's syntax +tree in one of several space-efficient text formats suitable for debugging +the inner workings of perl or other compiler backends. It can print OPs in +the order they appear in the \s-1OP\s0 tree, in the order they will execute, or +in a text approximation to their tree structure, and the format of the +information displayed is customizable. Its function is similar to that of +perl's \fB\-Dx\fR debugging flag or the \fBB::Terse\fR module, but it is more +sophisticated and flexible. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Here's two outputs (or 'renderings'), using the \-exec and \-basic +(i.e. default) formatting conventions on the same code snippet. +.PP +.Vb 9 +\& % perl \-MO=Concise,\-exec \-e \*(Aq$a = $b + 42\*(Aq +\& 1 <0> enter +\& 2 <;> nextstate(main 1 \-e:1) v +\& 3 <#> gvsv[*b] s +\& 4 <$> const[IV 42] s +\& * 5 <2> add[t3] sK/2 +\& 6 <#> gvsv[*a] s +\& 7 <2> sassign vKS/2 +\& 8 <@> leave[1 ref] vKP/REFC +.Ve +.PP +In this \-exec rendering, each opcode is executed in the order shown. +The add opcode, marked with '*', is discussed in more detail. +.PP +The 1st column is the op's sequence number, starting at 1, and is +displayed in base 36 by default. Here they're purely linear; the +sequences are very helpful when looking at code with loops and +branches. +.PP +The symbol between angle brackets indicates the op's type, for +example; <2> is a \s-1BINOP,\s0 <@> a \s-1LISTOP,\s0 and <#> is a \s-1PADOP,\s0 which is +used in threaded perls. (see \*(L"\s-1OP\s0 class abbreviations\*(R"). +.PP +The opname, as in \fB'add[t1]'\fR, may be followed by op-specific +information in parentheses or brackets (ex \fB'[t1]'\fR). +.PP +The op-flags (ex \fB'sK/2'\fR) are described in (\*(L"\s-1OP\s0 flags +abbreviations\*(R"). +.PP +.Vb 11 +\& % perl \-MO=Concise \-e \*(Aq$a = $b + 42\*(Aq +\& 8 <@> leave[1 ref] vKP/REFC \->(end) +\& 1 <0> enter \->2 +\& 2 <;> nextstate(main 1 \-e:1) v \->3 +\& 7 <2> sassign vKS/2 \->8 +\& * 5 <2> add[t1] sK/2 \->6 +\& \- <1> ex\-rv2sv sK/1 \->4 +\& 3 <$> gvsv(*b) s \->4 +\& 4 <$> const(IV 42) s \->5 +\& \- <1> ex\-rv2sv sKRM*/1 \->7 +\& 6 <$> gvsv(*a) s \->7 +.Ve +.PP +The default rendering is top-down, so they're not in execution order. +This form reflects the way the stack is used to parse and evaluate +expressions; the add operates on the two terms below it in the tree. +.PP +Nullops appear as \f(CW\*(C`ex\-opname\*(C'\fR, where \fIopname\fR is an op that has been +optimized away by perl. They're displayed with a sequence-number of +\&'\-', because they are not executed (they don't appear in previous +example), they're printed here because they reflect the parse. +.PP +The arrow points to the sequence number of the next op; they're not +displayed in \-exec mode, for obvious reasons. +.PP +Note that because this rendering was done on a non-threaded perl, the +PADOPs in the previous examples are now SVOPs, and some (but not all) +of the square brackets have been replaced by round ones. This is a +subtle feature to provide some visual distinction between renderings +on threaded and un-threaded perls. +.SH "OPTIONS" +.IX Header "OPTIONS" +Arguments that don't start with a hyphen are taken to be the names of +subroutines or formats to render; if no +such functions are specified, the main +body of the program (outside any subroutines, and not including use'd +or require'd files) is rendered. Passing \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`UNITCHECK\*(C'\fR, +\&\f(CW\*(C`CHECK\*(C'\fR, \f(CW\*(C`INIT\*(C'\fR, or \f(CW\*(C`END\*(C'\fR will cause all of the corresponding +special blocks to be printed. Arguments must follow options. +.PP +Options affect how things are rendered (ie printed). They're presented +here by their visual effect, 1st being strongest. They're grouped +according to how they interrelate; within each group the options are +mutually exclusive (unless otherwise stated). +.SS "Options for Opcode Ordering" +.IX Subsection "Options for Opcode Ordering" +These options control the 'vertical display' of opcodes. The display +\&'order' is also called 'mode' elsewhere in this document. +.IP "\fB\-basic\fR" 4 +.IX Item "-basic" +Print OPs in the order they appear in the \s-1OP\s0 tree (a preorder +traversal, starting at the root). The indentation of each \s-1OP\s0 shows its +level in the tree, and the '\->' at the end of the line indicates the +next opcode in execution order. This mode is the default, so the flag +is included simply for completeness. +.IP "\fB\-exec\fR" 4 +.IX Item "-exec" +Print OPs in the order they would normally execute (for the majority +of constructs this is a postorder traversal of the tree, ending at the +root). In most cases the \s-1OP\s0 that usually follows a given \s-1OP\s0 will +appear directly below it; alternate paths are shown by indentation. In +cases like loops when control jumps out of a linear path, a 'goto' +line is generated. +.IP "\fB\-tree\fR" 4 +.IX Item "-tree" +Print OPs in a text approximation of a tree, with the root of the tree +at the left and 'left\-to\-right' order of children transformed into +\&'top\-to\-bottom'. Because this mode grows both to the right and down, +it isn't suitable for large programs (unless you have a very wide +terminal). +.SS "Options for Line-Style" +.IX Subsection "Options for Line-Style" +These options select the line-style (or just style) used to render +each opcode, and dictates what info is actually printed into each line. +.IP "\fB\-concise\fR" 4 +.IX Item "-concise" +Use the author's favorite set of formatting conventions. This is the +default, of course. +.IP "\fB\-terse\fR" 4 +.IX Item "-terse" +Use formatting conventions that emulate the output of \fBB::Terse\fR. The +basic mode is almost indistinguishable from the real \fBB::Terse\fR, and the +exec mode looks very similar, but is in a more logical order and lacks +curly brackets. \fBB::Terse\fR doesn't have a tree mode, so the tree mode +is only vaguely reminiscent of \fBB::Terse\fR. +.IP "\fB\-linenoise\fR" 4 +.IX Item "-linenoise" +Use formatting conventions in which the name of each \s-1OP,\s0 rather than being +written out in full, is represented by a one\- or two-character abbreviation. +This is mainly a joke. +.IP "\fB\-debug\fR" 4 +.IX Item "-debug" +Use formatting conventions reminiscent of \s-1CPAN\s0 module \fBB::Debug\fR; these aren't +very concise at all. +.IP "\fB\-env\fR" 4 +.IX Item "-env" +Use formatting conventions read from the environment variables +\&\f(CW\*(C`B_CONCISE_FORMAT\*(C'\fR, \f(CW\*(C`B_CONCISE_GOTO_FORMAT\*(C'\fR, and \f(CW\*(C`B_CONCISE_TREE_FORMAT\*(C'\fR. +.SS "Options for tree-specific formatting" +.IX Subsection "Options for tree-specific formatting" +.IP "\fB\-compact\fR" 4 +.IX Item "-compact" +Use a tree format in which the minimum amount of space is used for the +lines connecting nodes (one character in most cases). This squeezes out +a few precious columns of screen real estate. +.IP "\fB\-loose\fR" 4 +.IX Item "-loose" +Use a tree format that uses longer edges to separate \s-1OP\s0 nodes. This format +tends to look better than the compact one, especially in \s-1ASCII,\s0 and is +the default. +.IP "\fB\-vt\fR" 4 +.IX Item "-vt" +Use tree connecting characters drawn from the \s-1VT100\s0 line-drawing set. +This looks better if your terminal supports it. +.IP "\fB\-ascii\fR" 4 +.IX Item "-ascii" +Draw the tree with standard \s-1ASCII\s0 characters like \f(CW\*(C`+\*(C'\fR and \f(CW\*(C`|\*(C'\fR. These don't +look as clean as the \s-1VT100\s0 characters, but they'll work with almost any +terminal (or the horizontal scrolling mode of \fBless\fR\|(1)) and are suitable +for text documentation or email. This is the default. +.PP +These are pairwise exclusive, i.e. compact or loose, vt or ascii. +.SS "Options controlling sequence numbering" +.IX Subsection "Options controlling sequence numbering" +.IP "\fB\-base\fR\fIn\fR" 4 +.IX Item "-basen" +Print \s-1OP\s0 sequence numbers in base \fIn\fR. If \fIn\fR is greater than 10, the +digit for 11 will be 'a', and so on. If \fIn\fR is greater than 36, the digit +for 37 will be 'A', and so on until 62. Values greater than 62 are not +currently supported. The default is 36. +.IP "\fB\-bigendian\fR" 4 +.IX Item "-bigendian" +Print sequence numbers with the most significant digit first. This is the +usual convention for Arabic numerals, and the default. +.IP "\fB\-littleendian\fR" 4 +.IX Item "-littleendian" +Print sequence numbers with the least significant digit first. This is +obviously mutually exclusive with bigendian. +.SS "Other options" +.IX Subsection "Other options" +.IP "\fB\-src\fR" 4 +.IX Item "-src" +With this option, the rendering of each statement (starting with the +nextstate \s-1OP\s0) will be preceded by the 1st line of source code that +generates it. For example: +.Sp +.Vb 10 +\& 1 <0> enter +\& # 1: my $i; +\& 2 <;> nextstate(main 1 junk.pl:1) v:{ +\& 3 <0> padsv[$i:1,10] vM/LVINTRO +\& # 3: for $i (0..9) { +\& 4 <;> nextstate(main 3 junk.pl:3) v:{ +\& 5 <0> pushmark s +\& 6 <$> const[IV 0] s +\& 7 <$> const[IV 9] s +\& 8 <{> enteriter(next\->j last\->m redo\->9)[$i:1,10] lKS +\& k <0> iter s +\& l <|> and(other\->9) vK/1 +\& # 4: print "line "; +\& 9 <;> nextstate(main 2 junk.pl:4) v +\& a <0> pushmark s +\& b <$> const[PV "line "] s +\& c <@> print vK +\& # 5: print "$i\en"; +\& ... +.Ve +.ie n .IP "\fB\-stash=""somepackage""\fR" 4 +.el .IP "\fB\-stash=``somepackage''\fR" 4 +.IX Item "-stash=somepackage" +With this, \*(L"somepackage\*(R" will be required, then the stash is +inspected, and each function is rendered. +.PP +The following options are pairwise exclusive. +.IP "\fB\-main\fR" 4 +.IX Item "-main" +Include the main program in the output, even if subroutines were also +specified. This rendering is normally suppressed when a subroutine +name or reference is given. +.IP "\fB\-nomain\fR" 4 +.IX Item "-nomain" +This restores the default behavior after you've changed it with '\-main' +(it's not normally needed). If no subroutine name/ref is given, main is +rendered, regardless of this flag. +.IP "\fB\-nobanner\fR" 4 +.IX Item "-nobanner" +Renderings usually include a banner line identifying the function name +or stringified subref. This suppresses the printing of the banner. +.Sp +\&\s-1TBC:\s0 Remove the stringified coderef; while it provides a 'cookie' for +each function rendered, the cookies used should be 1,2,3.. not a +random hex-address. It also complicates string comparison of two +different trees. +.IP "\fB\-banner\fR" 4 +.IX Item "-banner" +restores default banner behavior. +.IP "\fB\-banneris\fR => subref" 4 +.IX Item "-banneris => subref" +\&\s-1TBC:\s0 a hookpoint (and an option to set it) for a user-supplied +function to produce a banner appropriate for users needs. It's not +ideal, because the rendering-state variables, which are a natural +candidate for use in concise.t, are unavailable to the user. +.SS "Option Stickiness" +.IX Subsection "Option Stickiness" +If you invoke Concise more than once in a program, you should know that +the options are 'sticky'. This means that the options you provide in +the first call will be remembered for the 2nd call, unless you +re-specify or change them. +.SH "ABBREVIATIONS" +.IX Header "ABBREVIATIONS" +The concise style uses symbols to convey maximum info with minimal +clutter (like hex addresses). With just a little practice, you can +start to see the flowers, not just the branches, in the trees. +.SS "\s-1OP\s0 class abbreviations" +.IX Subsection "OP class abbreviations" +These symbols appear before the op-name, and indicate the +B:: namespace that represents the ops in your Perl code. +.PP +.Vb 10 +\& 0 OP (aka BASEOP) An OP with no children +\& 1 UNOP An OP with one child +\& + UNOP_AUX A UNOP with auxillary fields +\& 2 BINOP An OP with two children +\& | LOGOP A control branch OP +\& @ LISTOP An OP that could have lots of children +\& / PMOP An OP with a regular expression +\& $ SVOP An OP with an SV +\& " PVOP An OP with a string +\& { LOOP An OP that holds pointers for a loop +\& ; COP An OP that marks the start of a statement +\& # PADOP An OP with a GV on the pad +\& . METHOP An OP with method call info +.Ve +.SS "\s-1OP\s0 flags abbreviations" +.IX Subsection "OP flags abbreviations" +\&\s-1OP\s0 flags are either public or private. The public flags alter the +behavior of each opcode in consistent ways, and are represented by 0 +or more single characters. +.PP +.Vb 12 +\& v OPf_WANT_VOID Want nothing (void context) +\& s OPf_WANT_SCALAR Want single value (scalar context) +\& l OPf_WANT_LIST Want list of any length (list context) +\& Want is unknown +\& K OPf_KIDS There is a firstborn child. +\& P OPf_PARENS This operator was parenthesized. +\& (Or block needs explicit scope entry.) +\& R OPf_REF Certified reference. +\& (Return container, not containee). +\& M OPf_MOD Will modify (lvalue). +\& S OPf_STACKED Some arg is arriving on the stack. +\& * OPf_SPECIAL Do something weird for this op (see op.h) +.Ve +.PP +Private flags, if any are set for an opcode, are displayed after a '/' +.PP +.Vb 2 +\& 8 <@> leave[1 ref] vKP/REFC \->(end) +\& 7 <2> sassign vKS/2 \->8 +.Ve +.PP +They're opcode specific, and occur less often than the public ones, so +they're represented by short mnemonics instead of single-chars; see +B::Op_private and \fIregen/op_private\fR for more details. +.SH "FORMATTING SPECIFICATIONS" +.IX Header "FORMATTING SPECIFICATIONS" +For each line-style ('concise', 'terse', 'linenoise', etc.) there are +3 format-specs which control how OPs are rendered. +.PP +The first is the 'default' format, which is used in both basic and exec +modes to print all opcodes. The 2nd, goto-format, is used in exec +mode when branches are encountered. They're not real opcodes, and are +inserted to look like a closing curly brace. The tree-format is tree +specific. +.PP +When a line is rendered, the correct format-spec is copied and scanned +for the following items; data is substituted in, and other +manipulations like basic indenting are done, for each opcode rendered. +.PP +There are 3 kinds of items that may be populated; special patterns, +#vars, and literal text, which is copied verbatim. (Yes, it's a set +of s///g steps.) +.SS "Special Patterns" +.IX Subsection "Special Patterns" +These items are the primitives used to perform indenting, and to +select text from amongst alternatives. +.IP "\fB(x(\fR\fIexec_text\fR\fB;\fR\fIbasic_text\fR\fB)x)\fR" 4 +.IX Item "(x(exec_text;basic_text)x)" +Generates \fIexec_text\fR in exec mode, or \fIbasic_text\fR in basic mode. +.IP "\fB(*(\fR\fItext\fR\fB)*)\fR" 4 +.IX Item "(*(text)*)" +Generates one copy of \fItext\fR for each indentation level. +.IP "\fB(*(\fR\fItext1\fR\fB;\fR\fItext2\fR\fB)*)\fR" 4 +.IX Item "(*(text1;text2)*)" +Generates one fewer copies of \fItext1\fR than the indentation level, followed +by one copy of \fItext2\fR if the indentation level is more than 0. +.IP "\fB(?(\fR\fItext1\fR\fB#\fR\fIvar\fR\fIText2\fR\fB)?)\fR" 4 +.IX Item "(?(text1#varText2)?)" +If the value of \fIvar\fR is true (not empty or zero), generates the +value of \fIvar\fR surrounded by \fItext1\fR and \fIText2\fR, otherwise +nothing. +.IP "\fB~\fR" 4 +.IX Item "~" +Any number of tildes and surrounding whitespace will be collapsed to +a single space. +.SS "# Variables" +.IX Subsection "# Variables" +These #vars represent opcode properties that you may want as part of +your rendering. The '#' is intended as a private sigil; a #var's +value is interpolated into the style-line, much like \*(L"read \f(CW$this\fR\*(R". +.PP +These vars take 3 forms: +.IP "\fB#\fR\fIvar\fR" 4 +.IX Item "#var" +A property named 'var' is assumed to exist for the opcodes, and is +interpolated into the rendering. +.IP "\fB#\fR\fIvar\fR\fIN\fR" 4 +.IX Item "#varN" +Generates the value of \fIvar\fR, left justified to fill \fIN\fR spaces. +Note that this means while you can have properties 'foo' and 'foo2', +you cannot render 'foo2', but you could with 'foo2a'. You would be +wise not to rely on this behavior going forward ;\-) +.IP "\fB#\fR\fIVar\fR" 4 +.IX Item "#Var" +This ucfirst form of #var generates a tag-value form of itself for +display; it converts '#Var' into a 'Var => #var' style, which is then +handled as described above. (Imp-note: #Vars cannot be used for +conditional-fills, because the => #var transform is done after the check +for #Var's value). +.PP +The following variables are 'defined' by B::Concise; when they are +used in a style, their respective values are plugged into the +rendering of each opcode. +.PP +Only some of these are used by the standard styles, the others are +provided for you to delve into optree mechanics, should you wish to +add a new style (see \*(L"add_style\*(R" below) that uses them. You can +also add new ones using \*(L"add_callback\*(R". +.IP "\fB#addr\fR" 4 +.IX Item "#addr" +The address of the \s-1OP,\s0 in hexadecimal. +.IP "\fB#arg\fR" 4 +.IX Item "#arg" +The OP-specific information of the \s-1OP\s0 (such as the \s-1SV\s0 for an \s-1SVOP,\s0 the +non-local exit pointers for a \s-1LOOP,\s0 etc.) enclosed in parentheses. +.IP "\fB#class\fR" 4 +.IX Item "#class" +The B\-determined class of the \s-1OP,\s0 in all caps. +.IP "\fB#classsym\fR" 4 +.IX Item "#classsym" +A single symbol abbreviating the class of the \s-1OP.\s0 +.IP "\fB#coplabel\fR" 4 +.IX Item "#coplabel" +The label of the statement or block the \s-1OP\s0 is the start of, if any. +.IP "\fB#exname\fR" 4 +.IX Item "#exname" +The name of the \s-1OP,\s0 or 'ex\-foo' if the \s-1OP\s0 is a null that used to be a foo. +.IP "\fB#extarg\fR" 4 +.IX Item "#extarg" +The target of the \s-1OP,\s0 or nothing for a nulled \s-1OP.\s0 +.IP "\fB#firstaddr\fR" 4 +.IX Item "#firstaddr" +The address of the \s-1OP\s0's first child, in hexadecimal. +.IP "\fB#flags\fR" 4 +.IX Item "#flags" +The \s-1OP\s0's flags, abbreviated as a series of symbols. +.IP "\fB#flagval\fR" 4 +.IX Item "#flagval" +The numeric value of the \s-1OP\s0's flags. +.IP "\fB#hints\fR" 4 +.IX Item "#hints" +The \s-1COP\s0's hint flags, rendered with abbreviated names if possible. An empty +string if this is not a \s-1COP.\s0 Here are the symbols used: +.Sp +.Vb 10 +\& $ strict refs +\& & strict subs +\& * strict vars +\& x$ explicit use/no strict refs +\& x& explicit use/no strict subs +\& x* explicit use/no strict vars +\& i integers +\& l locale +\& b bytes +\& { block scope +\& % localise %^H +\& < open in +\& > open out +\& I overload int +\& F overload float +\& B overload binary +\& S overload string +\& R overload re +\& T taint +\& E eval +\& X filetest access +\& U utf\-8 +\& +\& us use feature \*(Aqunicode_strings\*(Aq +\& fea=NNN feature bundle number +.Ve +.IP "\fB#hintsval\fR" 4 +.IX Item "#hintsval" +The numeric value of the \s-1COP\s0's hint flags, or an empty string if this is not +a \s-1COP.\s0 +.IP "\fB#hyphseq\fR" 4 +.IX Item "#hyphseq" +The sequence number of the \s-1OP,\s0 or a hyphen if it doesn't have one. +.IP "\fB#label\fR" 4 +.IX Item "#label" +\&'\s-1NEXT\s0', '\s-1LAST\s0', or '\s-1REDO\s0' if the \s-1OP\s0 is a target of one of those in exec +mode, or empty otherwise. +.IP "\fB#lastaddr\fR" 4 +.IX Item "#lastaddr" +The address of the \s-1OP\s0's last child, in hexadecimal. +.IP "\fB#name\fR" 4 +.IX Item "#name" +The \s-1OP\s0's name. +.IP "\fB#NAME\fR" 4 +.IX Item "#NAME" +The \s-1OP\s0's name, in all caps. +.IP "\fB#next\fR" 4 +.IX Item "#next" +The sequence number of the \s-1OP\s0's next \s-1OP.\s0 +.IP "\fB#nextaddr\fR" 4 +.IX Item "#nextaddr" +The address of the \s-1OP\s0's next \s-1OP,\s0 in hexadecimal. +.IP "\fB#noise\fR" 4 +.IX Item "#noise" +A one\- or two-character abbreviation for the \s-1OP\s0's name. +.IP "\fB#private\fR" 4 +.IX Item "#private" +The \s-1OP\s0's private flags, rendered with abbreviated names if possible. +.IP "\fB#privval\fR" 4 +.IX Item "#privval" +The numeric value of the \s-1OP\s0's private flags. +.IP "\fB#seq\fR" 4 +.IX Item "#seq" +The sequence number of the \s-1OP.\s0 Note that this is a sequence number +generated by B::Concise. +.IP "\fB#opt\fR" 4 +.IX Item "#opt" +Whether or not the op has been optimized by the peephole optimizer. +.IP "\fB#sibaddr\fR" 4 +.IX Item "#sibaddr" +The address of the \s-1OP\s0's next youngest sibling, in hexadecimal. +.IP "\fB#svaddr\fR" 4 +.IX Item "#svaddr" +The address of the \s-1OP\s0's \s-1SV,\s0 if it has an \s-1SV,\s0 in hexadecimal. +.IP "\fB#svclass\fR" 4 +.IX Item "#svclass" +The class of the \s-1OP\s0's \s-1SV,\s0 if it has one, in all caps (e.g., '\s-1IV\s0'). +.IP "\fB#svval\fR" 4 +.IX Item "#svval" +The value of the \s-1OP\s0's \s-1SV,\s0 if it has one, in a short human-readable format. +.IP "\fB#targ\fR" 4 +.IX Item "#targ" +The numeric value of the \s-1OP\s0's targ. +.IP "\fB#targarg\fR" 4 +.IX Item "#targarg" +The name of the variable the \s-1OP\s0's targ refers to, if any, otherwise the +letter t followed by the \s-1OP\s0's targ in decimal. +.IP "\fB#targarglife\fR" 4 +.IX Item "#targarglife" +Same as \fB#targarg\fR, but followed by the \s-1COP\s0 sequence numbers that delimit +the variable's lifetime (or 'end' for a variable in an open scope) for a +variable. +.IP "\fB#typenum\fR" 4 +.IX Item "#typenum" +The numeric value of the \s-1OP\s0's type, in decimal. +.SH "One-Liner Command tips" +.IX Header "One-Liner Command tips" +.IP "perl \-MO=Concise,bar foo.pl" 4 +.IX Item "perl -MO=Concise,bar foo.pl" +Renders only \fBbar()\fR from foo.pl. To see main, drop the ',bar'. To see +both, add ',\-main' +.IP "perl \-MDigest::MD5=md5 \-MO=Concise,md5 \-e1" 4 +.IX Item "perl -MDigest::MD5=md5 -MO=Concise,md5 -e1" +Identifies md5 as an \s-1XS\s0 function. The export is needed so that \s-1BC\s0 can +find it in main. +.IP "perl \-MPOSIX \-MO=Concise,_POSIX_ARG_MAX \-e1" 4 +.IX Item "perl -MPOSIX -MO=Concise,_POSIX_ARG_MAX -e1" +Identifies _POSIX_ARG_MAX as a constant sub, optimized to an \s-1IV.\s0 +Although \s-1POSIX\s0 isn't entirely consistent across platforms, this is +likely to be present in virtually all of them. +.IP "perl \-MPOSIX \-MO=Concise,a \-e 'print _POSIX_SAVED_IDS'" 4 +.IX Item "perl -MPOSIX -MO=Concise,a -e 'print _POSIX_SAVED_IDS'" +This renders a print statement, which includes a call to the function. +It's identical to rendering a file with a use call and that single +statement, except for the filename which appears in the nextstate ops. +.IP "perl \-MPOSIX \-MO=Concise,a \-e 'sub a{_POSIX_SAVED_IDS}'" 4 +.IX Item "perl -MPOSIX -MO=Concise,a -e 'sub a{_POSIX_SAVED_IDS}'" +This is \fBvery\fR similar to previous, only the first two ops differ. This +subroutine rendering is more representative, insofar as a single main +program will have many subs. +.ie n .IP "perl \-MB::Concise \-e 'B::Concise::compile(""\-exec"",""\-src"", \e%B::Concise::)\->()'" 4 +.el .IP "perl \-MB::Concise \-e 'B::Concise::compile(``\-exec'',``\-src'', \e%B::Concise::)\->()'" 4 +.IX Item "perl -MB::Concise -e 'B::Concise::compile(-exec,-src, %B::Concise::)->()'" +This renders all functions in the B::Concise package with the source +lines. It eschews the O framework so that the stashref can be passed +directly to \fBB::Concise::compile()\fR. See \-stash option for a more +convenient way to render a package. +.SH "Using B::Concise outside of the O framework" +.IX Header "Using B::Concise outside of the O framework" +The common (and original) usage of B::Concise was for command-line +renderings of simple code, as given in \s-1EXAMPLE.\s0 But you can also use +\&\fBB::Concise\fR from your code, and call \fBcompile()\fR directly, and +repeatedly. By doing so, you can avoid the compile-time only +operation of O.pm, and even use the debugger to step through +\&\fBB::Concise::compile()\fR itself. +.PP +Once you're doing this, you may alter Concise output by adding new +rendering styles, and by optionally adding callback routines which +populate new variables, if such were referenced from those (just +added) styles. +.SS "Example: Altering Concise Renderings" +.IX Subsection "Example: Altering Concise Renderings" +.Vb 9 +\& use B::Concise qw(set_style add_callback); +\& add_style($yourStyleName => $defaultfmt, $gotofmt, $treefmt); +\& add_callback +\& ( sub { +\& my ($h, $op, $format, $level, $stylename) = @_; +\& $h\->{variable} = some_func($op); +\& }); +\& $walker = B::Concise::compile(@options,@subnames,@subrefs); +\& $walker\->(); +.Ve +.SS "\fBset_style()\fP" +.IX Subsection "set_style()" +\&\fBset_style\fR accepts 3 arguments, and updates the three format-specs +comprising a line-style (basic-exec, goto, tree). It has one minor +drawback though; it doesn't register the style under a new name. This +can become an issue if you render more than once and switch styles. +Thus you may prefer to use \fBadd_style()\fR and/or \fBset_style_standard()\fR +instead. +.SS "set_style_standard($name)" +.IX Subsection "set_style_standard($name)" +This restores one of the standard line-styles: \f(CW\*(C`terse\*(C'\fR, \f(CW\*(C`concise\*(C'\fR, +\&\f(CW\*(C`linenoise\*(C'\fR, \f(CW\*(C`debug\*(C'\fR, \f(CW\*(C`env\*(C'\fR, into effect. It also accepts style +names previously defined with \fBadd_style()\fR. +.SS "add_style ()" +.IX Subsection "add_style ()" +This subroutine accepts a new style name and three style arguments as +above, and creates, registers, and selects the newly named style. It is +an error to re-add a style; call \fBset_style_standard()\fR to switch between +several styles. +.SS "add_callback ()" +.IX Subsection "add_callback ()" +If your newly minted styles refer to any new #variables, you'll need +to define a callback subroutine that will populate (or modify) those +variables. They are then available for use in the style you've +chosen. +.PP +The callbacks are called for each opcode visited by Concise, in the +same order as they are added. Each subroutine is passed five +parameters. +.PP +.Vb 6 +\& 1. A hashref, containing the variable names and values which are +\& populated into the report\-line for the op +\& 2. the op, as a B object +\& 3. a reference to the format string +\& 4. the formatting (indent) level +\& 5. the selected stylename +.Ve +.PP +To define your own variables, simply add them to the hash, or change +existing values if you need to. The level and format are passed in as +references to scalars, but it is unlikely that they will need to be +changed or even used. +.SS "Running \fBB::Concise::compile()\fP" +.IX Subsection "Running B::Concise::compile()" +\&\fBcompile\fR accepts options as described above in \*(L"\s-1OPTIONS\*(R"\s0, and +arguments, which are either coderefs, or subroutine names. +.PP +It constructs and returns a \f(CW$treewalker\fR coderef, which when invoked, +traverses, or walks, and renders the optrees of the given arguments to +\&\s-1STDOUT.\s0 You can reuse this, and can change the rendering style used +each time; thereafter the coderef renders in the new style. +.PP +\&\fBwalk_output\fR lets you change the print destination from \s-1STDOUT\s0 to +another open filehandle, or into a string passed as a ref (unless +you've built perl with \-Uuseperlio). +.PP +.Vb 7 +\& my $walker = B::Concise::compile(\*(Aq\-terse\*(Aq,\*(AqaFuncName\*(Aq, \e&aSubRef); # 1 +\& walk_output(\emy $buf); +\& $walker\->(); # 1 renders \-terse +\& set_style_standard(\*(Aqconcise\*(Aq); # 2 +\& $walker\->(); # 2 renders \-concise +\& $walker\->(@new); # 3 renders whatever +\& print "3 different renderings: terse, concise, and @new: $buf\en"; +.Ve +.PP +When \f(CW$walker\fR is called, it traverses the subroutines supplied when it +was created, and renders them using the current style. You can change +the style afterwards in several different ways: +.PP +.Vb 3 +\& 1. call C, altering style or mode/order +\& 2. call C +\& 3. call $walker, passing @new options +.Ve +.PP +Passing new options to the \f(CW$walker\fR is the easiest way to change +amongst any pre-defined styles (the ones you add are automatically +recognized as options), and is the only way to alter rendering order +without calling compile again. Note however that rendering state is +still shared amongst multiple \f(CW$walker\fR objects, so they must still be +used in a coordinated manner. +.SS "\fBB::Concise::reset_sequence()\fP" +.IX Subsection "B::Concise::reset_sequence()" +This function (not exported) lets you reset the sequence numbers (note +that they're numbered arbitrarily, their goal being to be human +readable). Its purpose is mostly to support testing, i.e. to compare +the concise output from two identical anonymous subroutines (but +different instances). Without the reset, B::Concise, seeing that +they're separate optrees, generates different sequence numbers in +the output. +.SS "Errors" +.IX Subsection "Errors" +Errors in rendering (non-existent function-name, non-existent coderef) +are written to the \s-1STDOUT,\s0 or wherever you've set it via +\&\fBwalk_output()\fR. +.PP +Errors using the various *style* calls, and bad args to \fBwalk_output()\fR, +result in \fBdie()\fR. Use an eval if you wish to catch these errors and +continue processing. +.SH "AUTHOR" +.IX Header "AUTHOR" +Stephen McCamant, . diff --git a/data/miniconda3/man/man3/B%3A%3ADeparse.3 b/data/miniconda3/man/man3/B%3A%3ADeparse.3 new file mode 100644 index 0000000000000000000000000000000000000000..f2964db95d73bcd04a87ea89bf2aae7ba045c910 --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3ADeparse.3 @@ -0,0 +1,618 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B::Deparse 3" +.TH B::Deparse 3 "2020-12-18" "perl v5.32.1" "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" +B::Deparse \- Perl compiler backend to produce perl code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBperl\fR \fB\-MO=Deparse\fR[\fB,\-d\fR][\fB,\-f\fR\fI\s-1FILE\s0\fR][\fB,\-p\fR][\fB,\-q\fR][\fB,\-l\fR] + [\fB,\-s\fR\fI\s-1LETTERS\s0\fR][\fB,\-x\fR\fI\s-1LEVEL\s0\fR] \fIprog.pl\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +B::Deparse is a backend module for the Perl compiler that generates +perl source code, based on the internal compiled structure that perl +itself creates after parsing a program. The output of B::Deparse won't +be exactly the same as the original source, since perl doesn't keep +track of comments or whitespace, and there isn't a one-to-one +correspondence between perl's syntactical constructions and their +compiled form, but it will often be close. When you use the \fB\-p\fR +option, the output also includes parentheses even when they are not +required by precedence, which can make it easy to see if perl is +parsing your expressions the way you intended. +.PP +While B::Deparse goes to some lengths to try to figure out what your +original program was doing, some parts of the language can still trip +it up; it still fails even on some parts of Perl's own test suite. If +you encounter a failure other than the most common ones described in +the \s-1BUGS\s0 section below, you can help contribute to B::Deparse's +ongoing development by submitting a bug report with a small +example. +.SH "OPTIONS" +.IX Header "OPTIONS" +As with all compiler backend options, these must follow directly after +the '\-MO=Deparse', separated by a comma but not any white space. +.IP "\fB\-d\fR" 4 +.IX Item "-d" +Output data values (when they appear as constants) using Data::Dumper. +Without this option, B::Deparse will use some simple routines of its +own for the same purpose. Currently, Data::Dumper is better for some +kinds of data (such as complex structures with sharing and +self-reference) while the built-in routines are better for others +(such as odd floating-point values). +.IP "\fB\-f\fR\fI\s-1FILE\s0\fR" 4 +.IX Item "-fFILE" +Normally, B::Deparse deparses the main code of a program, and all the subs +defined in the same file. To include subs defined in +other files, pass the \fB\-f\fR option with the filename. +You can pass the \fB\-f\fR option several times, to +include more than one secondary file. (Most of the time you don't want to +use it at all.) You can also use this option to include subs which are +defined in the scope of a \fB#line\fR directive with two parameters. +.IP "\fB\-l\fR" 4 +.IX Item "-l" +Add '#line' declarations to the output based on the line and file +locations of the original code. +.IP "\fB\-p\fR" 4 +.IX Item "-p" +Print extra parentheses. Without this option, B::Deparse includes +parentheses in its output only when they are needed, based on the +structure of your program. With \fB\-p\fR, it uses parentheses (almost) +whenever they would be legal. This can be useful if you are used to +\&\s-1LISP,\s0 or if you want to see how perl parses your input. If you say +.Sp +.Vb 3 +\& if ($var & 0x7f == 65) {print "Gimme an A!"} +\& print ($which ? $a : $b), "\en"; +\& $name = $ENV{USER} or "Bob"; +.Ve +.Sp +\&\f(CW\*(C`B::Deparse,\-p\*(C'\fR will print +.Sp +.Vb 5 +\& if (($var & 0)) { +\& print(\*(AqGimme an A!\*(Aq) +\& }; +\& (print(($which ? $a : $b)), \*(Aq???\*(Aq); +\& (($name = $ENV{\*(AqUSER\*(Aq}) or \*(Aq???\*(Aq) +.Ve +.Sp +which probably isn't what you intended (the \f(CW\*(Aq???\*(Aq\fR is a sign that +perl optimized away a constant value). +.IP "\fB\-P\fR" 4 +.IX Item "-P" +Disable prototype checking. With this option, all function calls are +deparsed as if no prototype was defined for them. In other words, +.Sp +.Vb 1 +\& perl \-MO=Deparse,\-P \-e \*(Aqsub foo (\e@) { 1 } foo @x\*(Aq +.Ve +.Sp +will print +.Sp +.Vb 4 +\& sub foo (\e@) { +\& 1; +\& } +\& &foo(\e@x); +.Ve +.Sp +making clear how the parameters are actually passed to \f(CW\*(C`foo\*(C'\fR. +.IP "\fB\-q\fR" 4 +.IX Item "-q" +Expand double-quoted strings into the corresponding combinations of +concatenation, uc, ucfirst, lc, lcfirst, quotemeta, and join. For +instance, print +.Sp +.Vb 1 +\& print "Hello, $world, @ladies, \eu$gentlemen\eE, \eu\eL$me!"; +.Ve +.Sp +as +.Sp +.Vb 2 +\& print \*(AqHello, \*(Aq . $world . \*(Aq, \*(Aq . join($", @ladies) . \*(Aq, \*(Aq +\& . ucfirst($gentlemen) . \*(Aq, \*(Aq . ucfirst(lc $me . \*(Aq!\*(Aq); +.Ve +.Sp +Note that the expanded form represents the way perl handles such +constructions internally \*(-- this option actually turns off the reverse +translation that B::Deparse usually does. On the other hand, note that +\&\f(CW\*(C`$x = "$y"\*(C'\fR is not the same as \f(CW\*(C`$x = $y\*(C'\fR: the former makes the value +of \f(CW$y\fR into a string before doing the assignment. +.IP "\fB\-s\fR\fI\s-1LETTERS\s0\fR" 4 +.IX Item "-sLETTERS" +Tweak the style of B::Deparse's output. The letters should follow +directly after the 's', with no space or punctuation. The following +options are available: +.RS 4 +.IP "\fBC\fR" 4 +.IX Item "C" +Cuddle \f(CW\*(C`elsif\*(C'\fR, \f(CW\*(C`else\*(C'\fR, and \f(CW\*(C`continue\*(C'\fR blocks. For example, print +.Sp +.Vb 5 +\& if (...) { +\& ... +\& } else { +\& ... +\& } +.Ve +.Sp +instead of +.Sp +.Vb 6 +\& if (...) { +\& ... +\& } +\& else { +\& ... +\& } +.Ve +.Sp +The default is not to cuddle. +.IP "\fBi\fR\fI\s-1NUMBER\s0\fR" 4 +.IX Item "iNUMBER" +Indent lines by multiples of \fI\s-1NUMBER\s0\fR columns. The default is 4 columns. +.IP "\fBT\fR" 4 +.IX Item "T" +Use tabs for each 8 columns of indent. The default is to use only spaces. +For instance, if the style options are \fB\-si4T\fR, a line that's indented +3 times will be preceded by one tab and four spaces; if the options were +\&\fB\-si8T\fR, the same line would be preceded by three tabs. +.IP "\fBv\fR\fI\s-1STRING\s0\fR\fB.\fR" 4 +.IX Item "vSTRING." +Print \fI\s-1STRING\s0\fR for the value of a constant that can't be determined +because it was optimized away (mnemonic: this happens when a constant +is used in \fBv\fRoid context). The end of the string is marked by a period. +The string should be a valid perl expression, generally a constant. +Note that unless it's a number, it probably needs to be quoted, and on +a command line quotes need to be protected from the shell. Some +conventional values include 0, 1, 42, '', 'foo', and +\&'Useless use of constant omitted' (which may need to be +\&\fB\-sv\*(L"'Useless use of constant omitted'.\*(R"\fR +or something similar depending on your shell). The default is '???'. +If you're using B::Deparse on a module or other file that's require'd, +you shouldn't use a value that evaluates to false, since the customary +true constant at the end of a module will be in void context when the +file is compiled as a main program. +.RE +.RS 4 +.RE +.IP "\fB\-x\fR\fI\s-1LEVEL\s0\fR" 4 +.IX Item "-xLEVEL" +Expand conventional syntax constructions into equivalent ones that expose +their internal operation. \fI\s-1LEVEL\s0\fR should be a digit, with higher values +meaning more expansion. As with \fB\-q\fR, this actually involves turning off +special cases in B::Deparse's normal operations. +.Sp +If \fI\s-1LEVEL\s0\fR is at least 3, \f(CW\*(C`for\*(C'\fR loops will be translated into equivalent +while loops with continue blocks; for instance +.Sp +.Vb 3 +\& for ($i = 0; $i < 10; ++$i) { +\& print $i; +\& } +.Ve +.Sp +turns into +.Sp +.Vb 6 +\& $i = 0; +\& while ($i < 10) { +\& print $i; +\& } continue { +\& ++$i +\& } +.Ve +.Sp +Note that in a few cases this translation can't be perfectly carried back +into the source code \*(-- if the loop's initializer declares a my variable, +for instance, it won't have the correct scope outside of the loop. +.Sp +If \fI\s-1LEVEL\s0\fR is at least 5, \f(CW\*(C`use\*(C'\fR declarations will be translated into +\&\f(CW\*(C`BEGIN\*(C'\fR blocks containing calls to \f(CW\*(C`require\*(C'\fR and \f(CW\*(C`import\*(C'\fR; for +instance, +.Sp +.Vb 1 +\& use strict \*(Aqrefs\*(Aq; +.Ve +.Sp +turns into +.Sp +.Vb 6 +\& sub BEGIN { +\& require strict; +\& do { +\& \*(Aqstrict\*(Aq\->import(\*(Aqrefs\*(Aq) +\& }; +\& } +.Ve +.Sp +If \fI\s-1LEVEL\s0\fR is at least 7, \f(CW\*(C`if\*(C'\fR statements will be translated into +equivalent expressions using \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`?:\*(C'\fR and \f(CW\*(C`do {}\*(C'\fR; for instance +.Sp +.Vb 9 +\& print \*(Aqhi\*(Aq if $nice; +\& if ($nice) { +\& print \*(Aqhi\*(Aq; +\& } +\& if ($nice) { +\& print \*(Aqhi\*(Aq; +\& } else { +\& print \*(Aqbye\*(Aq; +\& } +.Ve +.Sp +turns into +.Sp +.Vb 3 +\& $nice and print \*(Aqhi\*(Aq; +\& $nice and do { print \*(Aqhi\*(Aq }; +\& $nice ? do { print \*(Aqhi\*(Aq } : do { print \*(Aqbye\*(Aq }; +.Ve +.Sp +Long sequences of elsifs will turn into nested ternary operators, which +B::Deparse doesn't know how to indent nicely. +.SH "USING B::Deparse AS A MODULE" +.IX Header "USING B::Deparse AS A MODULE" +.SS "Synopsis" +.IX Subsection "Synopsis" +.Vb 4 +\& use B::Deparse; +\& $deparse = B::Deparse\->new("\-p", "\-sC"); +\& $body = $deparse\->coderef2text(\e&func); +\& eval "sub func $body"; # the inverse operation +.Ve +.SS "Description" +.IX Subsection "Description" +B::Deparse can also be used on a sub-by-sub basis from other perl +programs. +.SS "new" +.IX Subsection "new" +.Vb 1 +\& $deparse = B::Deparse\->new(OPTIONS) +.Ve +.PP +Create an object to store the state of a deparsing operation and any +options. The options are the same as those that can be given on the +command line (see \*(L"\s-1OPTIONS\*(R"\s0); options that are separated by commas +after \fB\-MO=Deparse\fR should be given as separate strings. +.SS "ambient_pragmas" +.IX Subsection "ambient_pragmas" +.Vb 1 +\& $deparse\->ambient_pragmas(strict => \*(Aqall\*(Aq, \*(Aq$[\*(Aq => $[); +.Ve +.PP +The compilation of a subroutine can be affected by a few compiler +directives, \fBpragmas\fR. These are: +.IP "\(bu" 4 +use strict; +.IP "\(bu" 4 +use warnings; +.IP "\(bu" 4 +Assigning to the special variable $[ +.IP "\(bu" 4 +use integer; +.IP "\(bu" 4 +use bytes; +.IP "\(bu" 4 +use utf8; +.IP "\(bu" 4 +use re; +.PP +Ordinarily, if you use B::Deparse on a subroutine which has +been compiled in the presence of one or more of these pragmas, +the output will include statements to turn on the appropriate +directives. So if you then compile the code returned by coderef2text, +it will behave the same way as the subroutine which you deparsed. +.PP +However, you may know that you intend to use the results in a +particular context, where some pragmas are already in scope. In +this case, you use the \fBambient_pragmas\fR method to describe the +assumptions you wish to make. +.PP +Not all of the options currently have any useful effect. See +\&\*(L"\s-1BUGS\*(R"\s0 for more details. +.PP +The parameters it accepts are: +.IP "strict" 4 +.IX Item "strict" +Takes a string, possibly containing several values separated +by whitespace. The special values \*(L"all\*(R" and \*(L"none\*(R" mean what you'd +expect. +.Sp +.Vb 1 +\& $deparse\->ambient_pragmas(strict => \*(Aqsubs refs\*(Aq); +.Ve +.IP "$[" 4 +Takes a number, the value of the array base $[. +Obsolete: cannot be non-zero. +.IP "bytes" 4 +.IX Item "bytes" +.PD 0 +.IP "utf8" 4 +.IX Item "utf8" +.IP "integer" 4 +.IX Item "integer" +.PD +If the value is true, then the appropriate pragma is assumed to +be in the ambient scope, otherwise not. +.IP "re" 4 +.IX Item "re" +Takes a string, possibly containing a whitespace-separated list of +values. The values \*(L"all\*(R" and \*(L"none\*(R" are special. It's also permissible +to pass an array reference here. +.Sp +.Vb 1 +\& $deparser\->ambient_pragmas(re => \*(Aqeval\*(Aq); +.Ve +.IP "warnings" 4 +.IX Item "warnings" +Takes a string, possibly containing a whitespace-separated list of +values. The values \*(L"all\*(R" and \*(L"none\*(R" are special, again. It's also +permissible to pass an array reference here. +.Sp +.Vb 1 +\& $deparser\->ambient_pragmas(warnings => [qw[void io]]); +.Ve +.Sp +If one of the values is the string \*(L"\s-1FATAL\*(R",\s0 then all the warnings +in that list will be considered fatal, just as with the \fBwarnings\fR +pragma itself. Should you need to specify that some warnings are +fatal, and others are merely enabled, you can pass the \fBwarnings\fR +parameter twice: +.Sp +.Vb 4 +\& $deparser\->ambient_pragmas( +\& warnings => \*(Aqall\*(Aq, +\& warnings => [FATAL => qw/void io/], +\& ); +.Ve +.Sp +See warnings for more information about lexical warnings. +.IP "hint_bits" 4 +.IX Item "hint_bits" +.PD 0 +.IP "warning_bits" 4 +.IX Item "warning_bits" +.PD +These two parameters are used to specify the ambient pragmas in +the format used by the special variables $^H and ${^WARNING_BITS}. +.Sp +They exist principally so that you can write code like: +.Sp +.Vb 7 +\& { my ($hint_bits, $warning_bits); +\& BEGIN {($hint_bits, $warning_bits) = ($^H, ${^WARNING_BITS})} +\& $deparser\->ambient_pragmas ( +\& hint_bits => $hint_bits, +\& warning_bits => $warning_bits, +\& \*(Aq$[\*(Aq => 0 + $[ +\& ); } +.Ve +.Sp +which specifies that the ambient pragmas are exactly those which +are in scope at the point of calling. +.IP "%^H" 4 +.IX Item "%^H" +This parameter is used to specify the ambient pragmas which are +stored in the special hash %^H. +.SS "coderef2text" +.IX Subsection "coderef2text" +.Vb 2 +\& $body = $deparse\->coderef2text(\e&func) +\& $body = $deparse\->coderef2text(sub ($$) { ... }) +.Ve +.PP +Return source code for the body of a subroutine (a block, optionally +preceded by a prototype in parens), given a reference to the +sub. Because a subroutine can have no names, or more than one name, +this method doesn't return a complete subroutine definition \*(-- if you +want to eval the result, you should prepend \*(L"sub subname \*(R", or \*(L"sub \*(R" +for an anonymous function constructor. Unless the sub was defined in +the main:: package, the code will include a package declaration. +.SH "BUGS" +.IX Header "BUGS" +.IP "\(bu" 4 +The only pragmas to +be completely supported are: \f(CW\*(C`use warnings\*(C'\fR, +\&\f(CW\*(C`use strict\*(C'\fR, \f(CW\*(C`use bytes\*(C'\fR, \f(CW\*(C`use integer\*(C'\fR +and \f(CW\*(C`use feature\*(C'\fR. +.Sp +Excepting those listed above, we're currently unable to guarantee that +B::Deparse will produce a pragma at the correct point in the program. +(Specifically, pragmas at the beginning of a block often appear right +before the start of the block instead.) +Since the effects of pragmas are often lexically scoped, this can mean +that the pragma holds sway over a different portion of the program +than in the input file. +.IP "\(bu" 4 +In fact, the above is a specific instance of a more general problem: +we can't guarantee to produce \s-1BEGIN\s0 blocks or \f(CW\*(C`use\*(C'\fR declarations in +exactly the right place. So if you use a module which affects compilation +(such as by over-riding keywords, overloading constants or whatever) +then the output code might not work as intended. +.IP "\(bu" 4 +Some constants don't print correctly either with or without \fB\-d\fR. +For instance, neither B::Deparse nor Data::Dumper know how to print +dual-valued scalars correctly, as in: +.Sp +.Vb 1 +\& use constant E2BIG => ($!=7); $y = E2BIG; print $y, 0+$y; +\& +\& use constant H => { "#" => 1 }; H\->{"#"}; +.Ve +.IP "\(bu" 4 +An input file that uses source filtering probably won't be deparsed into +runnable code, because it will still include the \fBuse\fR declaration +for the source filtering module, even though the code that is +produced is already ordinary Perl which shouldn't be filtered again. +.IP "\(bu" 4 +Optimized-away statements are rendered as +\&'???'. This includes statements that +have a compile-time side-effect, such as the obscure +.Sp +.Vb 1 +\& my $x if 0; +.Ve +.Sp +which is not, consequently, deparsed correctly. +.Sp +.Vb 3 +\& foreach my $i (@_) { 0 } +\& => +\& foreach my $i (@_) { \*(Aq???\*(Aq } +.Ve +.IP "\(bu" 4 +Lexical (my) variables declared in scopes external to a subroutine +appear in coderef2text output text as package variables. This is a tricky +problem, as perl has no native facility for referring to a lexical variable +defined within a different scope, although PadWalker is a good start. +.Sp +See also Data::Dump::Streamer, which combines B::Deparse and +PadWalker to serialize closures properly. +.IP "\(bu" 4 +There are probably many more bugs on non-ASCII platforms (\s-1EBCDIC\s0). +.SH "AUTHOR" +.IX Header "AUTHOR" +Stephen McCamant , based on an earlier version +by Malcolm Beattie , with contributions from +Gisle Aas, James Duncan, Albert Dvornik, Robin Houston, Dave Mitchell, +Hugo van der Sanden, Gurusamy Sarathy, Nick Ing-Simmons, and Rafael +Garcia-Suarez. diff --git a/data/miniconda3/man/man3/B%3A%3AShowlex.3 b/data/miniconda3/man/man3/B%3A%3AShowlex.3 new file mode 100644 index 0000000000000000000000000000000000000000..862f17ee1b913a20c280dffd54fb5077093912b0 --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3AShowlex.3 @@ -0,0 +1,218 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B::Showlex 3" +.TH B::Showlex 3 "2020-12-18" "perl v5.32.1" "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" +B::Showlex \- Show lexical variables used in functions or files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-MO=Showlex[,\-OPTIONS][,SUBROUTINE] foo.pl +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When a comma-separated list of subroutine names is given as options, Showlex +prints the lexical variables used in those subroutines. Otherwise, it prints +the file-scope lexicals in the file. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Traditional form: +.PP +.Vb 10 +\& $ perl \-MO=Showlex \-e \*(Aqmy ($i,$j,$k)=(1,"foo")\*(Aq +\& Pad of lexical names for comppadlist has 4 entries +\& 0: (0x8caea4) undef +\& 1: (0x9db0fb0) $i +\& 2: (0x9db0f38) $j +\& 3: (0x9db0f50) $k +\& Pad of lexical values for comppadlist has 5 entries +\& 0: SPECIAL #1 &PL_sv_undef +\& 1: NULL (0x9da4234) +\& 2: NULL (0x9db0f2c) +\& 3: NULL (0x9db0f44) +\& 4: NULL (0x9da4264) +\& \-e syntax OK +.Ve +.PP +New-style form: +.PP +.Vb 7 +\& $ perl \-MO=Showlex,\-newlex \-e \*(Aqmy ($i,$j,$k)=(1,"foo")\*(Aq +\& main Pad has 4 entries +\& 0: (0x8caea4) undef +\& 1: (0xa0c4fb8) "$i" = NULL (0xa0b8234) +\& 2: (0xa0c4f40) "$j" = NULL (0xa0c4f34) +\& 3: (0xa0c4f58) "$k" = NULL (0xa0c4f4c) +\& \-e syntax OK +.Ve +.PP +New form, no specials, outside O framework: +.PP +.Vb 6 +\& $ perl \-MB::Showlex \-e \e +\& \*(Aqmy ($i,$j,$k)=(1,"foo"); B::Showlex::compile(\-newlex,\-nosp)\->()\*(Aq +\& main Pad has 4 entries +\& 1: (0x998ffb0) "$i" = IV (0x9983234) 1 +\& 2: (0x998ff68) "$j" = PV (0x998ff5c) "foo" +\& 3: (0x998ff80) "$k" = NULL (0x998ff74) +.Ve +.PP +Note that this example shows the values of the lexicals, whereas the other +examples did not (as they're compile-time only). +.SS "\s-1OPTIONS\s0" +.IX Subsection "OPTIONS" +The \f(CW\*(C`\-newlex\*(C'\fR option produces a more readable \f(CW\*(C`name => value\*(C'\fR format, +and is shown in the second example above. +.PP +The \f(CW\*(C`\-nosp\*(C'\fR option eliminates reporting of SPECIALs, such as \f(CW\*(C`0: SPECIAL +#1 &PL_sv_undef\*(C'\fR above. Reporting of SPECIALs can sometimes overwhelm +your declared lexicals. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +B::Showlex can also be used outside of the O framework, as in the third +example. See B::Concise for a fuller explanation of reasons. +.SH "TODO" +.IX Header "TODO" +Some of the reported info, such as hex addresses, is not particularly +valuable. Other information would be more useful for the typical +programmer, such as line-numbers, pad-slot reuses, etc.. Given this, +\&\-newlex is not a particularly good flag-name. +.SH "AUTHOR" +.IX Header "AUTHOR" +Malcolm Beattie, \f(CW\*(C`mbeattie@sable.ox.ac.uk\*(C'\fR diff --git a/data/miniconda3/man/man3/B%3A%3ATerse.3 b/data/miniconda3/man/man3/B%3A%3ATerse.3 new file mode 100644 index 0000000000000000000000000000000000000000..5aaef203a12a56ead88dc75f11fb8da8eecc021f --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3ATerse.3 @@ -0,0 +1,176 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B::Terse 3" +.TH B::Terse 3 "2020-12-18" "perl v5.32.1" "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" +B::Terse \- Walk Perl syntax tree, printing terse info about ops +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-MO=Terse[,OPTIONS] foo.pl +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module prints the contents of the parse tree, but without as much +information as \s-1CPAN\s0 module B::Debug. For comparison, \f(CW\*(C`print "Hello, world."\*(C'\fR +produced 96 lines of output from B::Debug, but only 6 from B::Terse. +.PP +This module is useful for people who are writing their own back end, +or who are learning about the Perl internals. It's not useful to the +average programmer. +.PP +This version of B::Terse is really just a wrapper that calls B::Concise +with the \fB\-terse\fR option. It is provided for compatibility with old scripts +(and habits) but using B::Concise directly is now recommended instead. +.PP +For compatibility with the old B::Terse, this module also adds a +method named \f(CW\*(C`terse\*(C'\fR to B::OP and B::SV objects. The B::SV method is +largely compatible with the old one, though authors of new software +might be advised to choose a more user-friendly output format. The +B::OP \f(CW\*(C`terse\*(C'\fR method, however, doesn't work well. Since B::Terse was +first written, much more information in OPs has migrated to the +scratchpad datastructure, but the \f(CW\*(C`terse\*(C'\fR interface doesn't have any +way of getting to the correct pad. As a kludge, the new version will +always use the pad for the main program, but for OPs in subroutines +this will give the wrong answer or crash. +.SH "AUTHOR" +.IX Header "AUTHOR" +The original version of B::Terse was written by Malcolm Beattie, +. This wrapper was written by Stephen +McCamant, . diff --git a/data/miniconda3/man/man3/B%3A%3AXref.3 b/data/miniconda3/man/man3/B%3A%3AXref.3 new file mode 100644 index 0000000000000000000000000000000000000000..5446cbfee3f5784e46fc22252e2e736a7346076e --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3AXref.3 @@ -0,0 +1,262 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B::Xref 3" +.TH B::Xref 3 "2020-12-18" "perl v5.32.1" "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" +B::Xref \- Generates cross reference reports for Perl programs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +perl \-MO=Xref[,OPTIONS] foo.pl +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The B::Xref module is used to generate a cross reference listing of all +definitions and uses of variables, subroutines and formats in a Perl program. +It is implemented as a backend for the Perl compiler. +.PP +The report generated is in the following format: +.PP +.Vb 8 +\& File filename1 +\& Subroutine subname1 +\& Package package1 +\& object1 line numbers +\& object2 line numbers +\& ... +\& Package package2 +\& ... +.Ve +.PP +Each \fBFile\fR section reports on a single file. Each \fBSubroutine\fR section +reports on a single subroutine apart from the special cases +\&\*(L"(definitions)\*(R" and \*(L"(main)\*(R". These report, respectively, on subroutine +definitions found by the initial symbol table walk and on the main part of +the program or module external to all subroutines. +.PP +The report is then grouped by the \fBPackage\fR of each variable, +subroutine or format with the special case \*(L"(lexicals)\*(R" meaning +lexical variables. Each \fBobject\fR name (implicitly qualified by its +containing \fBPackage\fR) includes its type character(s) at the beginning +where possible. Lexical variables are easier to track and even +included dereferencing information where possible. +.PP +The \f(CW\*(C`line numbers\*(C'\fR are a comma separated list of line numbers (some +preceded by code letters) where that object is used in some way. +Simple uses aren't preceded by a code letter. Introductions (such as +where a lexical is first defined with \f(CW\*(C`my\*(C'\fR) are indicated with the +letter \*(L"i\*(R". Subroutine and method calls are indicated by the character +\&\*(L"&\*(R". Subroutine definitions are indicated by \*(L"s\*(R" and format +definitions by \*(L"f\*(R". +.PP +For instance, here's part of the report from the \fIpod2man\fR program that +comes with Perl: +.PP +.Vb 12 +\& Subroutine clear_noremap +\& Package (lexical) +\& $ready_to_print i1069, 1079 +\& Package main +\& $& 1086 +\& $. 1086 +\& $0 1086 +\& $1 1087 +\& $2 1085, 1085 +\& $3 1085, 1085 +\& $ARGV 1086 +\& %HTML_Escapes 1085, 1085 +.Ve +.PP +This shows the variables used in the subroutine \f(CW\*(C`clear_noremap\*(C'\fR. The +variable \f(CW$ready_to_print\fR is a \fBmy()\fR (lexical) variable, +\&\fBi\fRntroduced (first declared with \fBmy()\fR) on line 1069, and used on +line 1079. The variable \f(CW$&\fR from the main package is used on 1086, +and so on. +.PP +A line number may be prefixed by a single letter: +.IP "i" 4 +.IX Item "i" +Lexical variable introduced (declared with \fBmy()\fR) for the first time. +.IP "&" 4 +Subroutine or method call. +.IP "s" 4 +.IX Item "s" +Subroutine defined. +.IP "r" 4 +.IX Item "r" +Format defined. +.PP +The most useful option the cross referencer has is to save the report +to a separate file. For instance, to save the report on +\&\fImyperlprogram\fR to the file \fIreport\fR: +.PP +.Vb 1 +\& $ perl \-MO=Xref,\-oreport myperlprogram +.Ve +.SH "OPTIONS" +.IX Header "OPTIONS" +Option words are separated by commas (not whitespace) and follow the +usual conventions of compiler backend options. +.ie n .IP """\-oFILENAME""" 8 +.el .IP "\f(CW\-oFILENAME\fR" 8 +.IX Item "-oFILENAME" +Directs output to \f(CW\*(C`FILENAME\*(C'\fR instead of standard output. +.ie n .IP """\-r""" 8 +.el .IP "\f(CW\-r\fR" 8 +.IX Item "-r" +Raw output. Instead of producing a human-readable report, outputs a line +in machine-readable form for each definition/use of a variable/sub/format. +.ie n .IP """\-d""" 8 +.el .IP "\f(CW\-d\fR" 8 +.IX Item "-d" +Don't output the \*(L"(definitions)\*(R" sections. +.ie n .IP """\-D[tO]""" 8 +.el .IP "\f(CW\-D[tO]\fR" 8 +.IX Item "-D[tO]" +(Internal) debug options, probably only useful if \f(CW\*(C`\-r\*(C'\fR included. +The \f(CW\*(C`t\*(C'\fR option prints the object on the top of the stack as it's +being tracked. The \f(CW\*(C`O\*(C'\fR option prints each operator as it's being +processed in the execution order of the program. +.SH "BUGS" +.IX Header "BUGS" +Non-lexical variables are quite difficult to track through a program. +Sometimes the type of a non-lexical variable's use is impossible to +determine. Introductions of non-lexical non-scalars don't seem to be +reported properly. +.SH "AUTHOR" +.IX Header "AUTHOR" +Malcolm Beattie, mbeattie@sable.ox.ac.uk. diff --git a/data/miniconda3/man/man3/B.3 b/data/miniconda3/man/man3/B.3 new file mode 100644 index 0000000000000000000000000000000000000000..3bf90b9137a10a78363fe77b8b86fddaffedc840 --- /dev/null +++ b/data/miniconda3/man/man3/B.3 @@ -0,0 +1,1062 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "B 3" +.TH B 3 "2020-12-18" "perl v5.32.1" "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" +B \- The Perl Compiler Backend +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use B; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`B\*(C'\fR module supplies classes which allow a Perl program to delve +into its own innards. It is the module used to implement the +\&\*(L"backends\*(R" of the Perl compiler. Usage of the compiler does not +require knowledge of this module: see the \fIO\fR module for the +user-visible part. The \f(CW\*(C`B\*(C'\fR module is of use to those who want to +write new compiler backends. This documentation assumes that the +reader knows a fair amount about perl's internals including such +things as SVs, OPs and the internal symbol table and syntax tree +of a program. +.SH "OVERVIEW" +.IX Header "OVERVIEW" +The \f(CW\*(C`B\*(C'\fR module contains a set of utility functions for querying the +current state of the Perl interpreter; typically these functions +return objects from the B::SV and B::OP classes, or their derived +classes. These classes in turn define methods for querying the +resulting objects about their own internal state. +.SH "Utility Functions" +.IX Header "Utility Functions" +The \f(CW\*(C`B\*(C'\fR module exports a variety of functions: some are simple +utility functions, others provide a Perl program with a way to +get an initial \*(L"handle\*(R" on an internal object. +.ie n .SS "Functions Returning ""B::SV"", ""B::AV"", ""B::HV"", and ""B::CV"" objects" +.el .SS "Functions Returning \f(CWB::SV\fP, \f(CWB::AV\fP, \f(CWB::HV\fP, and \f(CWB::CV\fP objects" +.IX Subsection "Functions Returning B::SV, B::AV, B::HV, and B::CV objects" +For descriptions of the class hierarchy of these objects and the +methods that can be called on them, see below, \*(L"\s-1OVERVIEW OF +CLASSES\*(R"\s0 and \*(L"SV-RELATED \s-1CLASSES\*(R"\s0. +.IP "sv_undef" 4 +.IX Item "sv_undef" +Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_undef\*(C'\fR. +.IP "sv_yes" 4 +.IX Item "sv_yes" +Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_yes\*(C'\fR. +.IP "sv_no" 4 +.IX Item "sv_no" +Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_no\*(C'\fR. +.IP "svref_2object(\s-1SVREF\s0)" 4 +.IX Item "svref_2object(SVREF)" +Takes a reference to any Perl value, and turns the referred-to value +into an object in the appropriate B::OP\-derived or B::SV\-derived +class. Apart from functions such as \f(CW\*(C`main_root\*(C'\fR, this is the primary +way to get an initial \*(L"handle\*(R" on an internal perl data structure +which can then be followed with the other access methods. +.Sp +The returned object will only be valid as long as the underlying OPs +and SVs continue to exist. Do not attempt to use the object after the +underlying structures are freed. +.IP "amagic_generation" 4 +.IX Item "amagic_generation" +Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`amagic_generation\*(C'\fR. +As of Perl 5.18, this is just an alias to \f(CW\*(C`PL_na\*(C'\fR, so its value is +meaningless. +.IP "init_av" 4 +.IX Item "init_av" +Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1INIT\s0 blocks. +.IP "check_av" 4 +.IX Item "check_av" +Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1CHECK\s0 blocks. +.IP "unitcheck_av" 4 +.IX Item "unitcheck_av" +Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1UNITCHECK\s0 blocks. +.IP "begin_av" 4 +.IX Item "begin_av" +Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1BEGIN\s0 blocks. +.IP "end_av" 4 +.IX Item "end_av" +Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1END\s0 blocks. +.IP "comppadlist" 4 +.IX Item "comppadlist" +Returns the \s-1PADLIST\s0 object (i.e. in class B::PADLIST) of the global +comppadlist. In Perl 5.16 and earlier it returns an \s-1AV\s0 object (class +B::AV). +.IP "regex_padav" 4 +.IX Item "regex_padav" +Only when perl was compiled with ithreads. +.IP "main_cv" 4 +.IX Item "main_cv" +Return the (faked) \s-1CV\s0 corresponding to the main part of the Perl +program. +.SS "Functions for Examining the Symbol Table" +.IX Subsection "Functions for Examining the Symbol Table" +.IP "walksymtable(\s-1SYMREF, METHOD, RECURSE, PREFIX\s0)" 4 +.IX Item "walksymtable(SYMREF, METHOD, RECURSE, PREFIX)" +Walk the symbol table starting at \s-1SYMREF\s0 and call \s-1METHOD\s0 on each +symbol (a B::GV object) visited. When the walk reaches package +symbols (such as \*(L"Foo::\*(R") it invokes \s-1RECURSE,\s0 passing in the symbol +name, and only recurses into the package if that sub returns true. +.Sp +\&\s-1PREFIX\s0 is the name of the \s-1SYMREF\s0 you're walking. +.Sp +For example: +.Sp +.Vb 4 +\& # Walk CGI\*(Aqs symbol table calling print_subs on each symbol. +\& # Recurse only into CGI::Util:: +\& walksymtable(\e%CGI::, \*(Aqprint_subs\*(Aq, +\& sub { $_[0] eq \*(AqCGI::Util::\*(Aq }, \*(AqCGI::\*(Aq); +.Ve +.Sp +\&\fBprint_subs()\fR is a B::GV method you have declared. Also see \*(L"B::GV +Methods\*(R", below. +.ie n .SS "Functions Returning ""B::OP"" objects or for walking op trees" +.el .SS "Functions Returning \f(CWB::OP\fP objects or for walking op trees" +.IX Subsection "Functions Returning B::OP objects or for walking op trees" +For descriptions of the class hierarchy of these objects and the +methods that can be called on them, see below, \*(L"\s-1OVERVIEW OF +CLASSES\*(R"\s0 and \*(L"OP-RELATED \s-1CLASSES\*(R"\s0. +.IP "main_root" 4 +.IX Item "main_root" +Returns the root op (i.e. an object in the appropriate B::OP\-derived +class) of the main part of the Perl program. +.IP "main_start" 4 +.IX Item "main_start" +Returns the starting op of the main part of the Perl program. +.IP "walkoptree(\s-1OP, METHOD\s0)" 4 +.IX Item "walkoptree(OP, METHOD)" +Does a tree-walk of the syntax tree based at \s-1OP\s0 and calls \s-1METHOD\s0 on +each op it visits. Each node is visited before its children. If +\&\f(CW\*(C`walkoptree_debug\*(C'\fR (see below) has been called to turn debugging on then +the method \f(CW\*(C`walkoptree_debug\*(C'\fR is called on each op before \s-1METHOD\s0 is +called. +.IP "walkoptree_debug(\s-1DEBUG\s0)" 4 +.IX Item "walkoptree_debug(DEBUG)" +Returns the current debugging flag for \f(CW\*(C`walkoptree\*(C'\fR. If the optional +\&\s-1DEBUG\s0 argument is non-zero, it sets the debugging flag to that. See +the description of \f(CW\*(C`walkoptree\*(C'\fR above for what the debugging flag +does. +.SS "Miscellaneous Utility Functions" +.IX Subsection "Miscellaneous Utility Functions" +.IP "ppname(\s-1OPNUM\s0)" 4 +.IX Item "ppname(OPNUM)" +Return the \s-1PP\s0 function name (e.g. \*(L"pp_add\*(R") of op number \s-1OPNUM.\s0 +.IP "hash(\s-1STR\s0)" 4 +.IX Item "hash(STR)" +Returns a string in the form \*(L"0x...\*(R" representing the value of the +internal hash function used by perl on string \s-1STR.\s0 +.IP "cast_I32(I)" 4 +.IX Item "cast_I32(I)" +Casts I to the internal I32 type used by that perl. +.IP "minus_c" 4 +.IX Item "minus_c" +Does the equivalent of the \f(CW\*(C`\-c\*(C'\fR command-line option. Obviously, this +is only useful in a \s-1BEGIN\s0 block or else the flag is set too late. +.IP "cstring(\s-1STR\s0)" 4 +.IX Item "cstring(STR)" +Returns a double-quote-surrounded escaped version of \s-1STR\s0 which can +be used as a string in C source code. +.IP "perlstring(\s-1STR\s0)" 4 +.IX Item "perlstring(STR)" +Returns a double-quote-surrounded escaped version of \s-1STR\s0 which can +be used as a string in Perl source code. +.IP "safename(\s-1STR\s0)" 4 +.IX Item "safename(STR)" +This function returns the string with the first character modified if it +is a control character. It converts it to ^X format first, so that \*(L"\ecG\*(R" +becomes \*(L"^G\*(R". This is used internally by B::GV::SAFENAME, but +you can call it directly. +.IP "class(\s-1OBJ\s0)" 4 +.IX Item "class(OBJ)" +Returns the class of an object without the part of the classname +preceding the first \f(CW"::"\fR. This is used to turn \f(CW"B::UNOP"\fR into +\&\f(CW"UNOP"\fR for example. +.IP "threadsv_names" 4 +.IX Item "threadsv_names" +This used to provide support for the old 5.005 threading module. It now +does nothing. +.SS "Exported utility variables" +.IX Subsection "Exported utility variables" +.ie n .IP "@optype" 4 +.el .IP "\f(CW@optype\fR" 4 +.IX Item "@optype" +.Vb 1 +\& my $op_type = $optype[$op_type_num]; +.Ve +.Sp +A simple mapping of the op type number to its type (like '\s-1COP\s0' or '\s-1BINOP\s0'). +.ie n .IP "@specialsv_name" 4 +.el .IP "\f(CW@specialsv_name\fR" 4 +.IX Item "@specialsv_name" +.Vb 1 +\& my $sv_name = $specialsv_name[$sv_index]; +.Ve +.Sp +Certain \s-1SV\s0 types are considered 'special'. They're represented by +B::SPECIAL and are referred to by a number from the specialsv_list. +This array maps that number back to the name of the \s-1SV\s0 (like 'Nullsv' +or '&PL_sv_undef'). +.SH "OVERVIEW OF CLASSES" +.IX Header "OVERVIEW OF CLASSES" +The C structures used by Perl's internals to hold \s-1SV\s0 and \s-1OP\s0 +information (\s-1PVIV, AV, HV, ..., OP, SVOP, UNOP, ...\s0) are modelled on a +class hierarchy and the \f(CW\*(C`B\*(C'\fR module gives access to them via a true +object hierarchy. Structure fields which point to other objects +(whether types of \s-1SV\s0 or types of \s-1OP\s0) are represented by the \f(CW\*(C`B\*(C'\fR +module as Perl objects of the appropriate class. +.PP +The bulk of the \f(CW\*(C`B\*(C'\fR module is the methods for accessing fields of +these structures. +.PP +Note that all access is read-only. You cannot modify the internals by +using this module. Also, note that the B::OP and B::SV objects created +by this module are only valid for as long as the underlying objects +exist; their creation doesn't increase the reference counts of the +underlying objects. Trying to access the fields of a freed object will +give incomprehensible results, or worse. +.SS "SV-RELATED \s-1CLASSES\s0" +.IX Subsection "SV-RELATED CLASSES" +B::IV, B::NV, B::PV, B::PVIV, B::PVNV, B::PVMG, +B::PVLV, B::AV, B::HV, B::CV, B::GV, B::FM, B::IO. These classes +correspond in the obvious way to the underlying C structures of similar names. +The inheritance hierarchy mimics the underlying C \*(L"inheritance\*(R": +.PP +.Vb 10 +\& B::SV +\& | +\& +\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+ +\& | | | +\& B::PV B::IV B::NV +\& \e / / +\& \e / / +\& B::PVIV / +\& \e / +\& \e / +\& \e / +\& B::PVNV +\& | +\& | +\& B::PVMG +\& | +\& +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-+\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+ +\& | | | | | | +\& B::AV B::GV B::HV B::CV B::IO B::REGEXP +\& | | +\& | | +\& B::PVLV B::FM +.Ve +.PP +Access methods correspond to the underlying C macros for field access, +usually with the leading \*(L"class indication\*(R" prefix removed (Sv, Av, +Hv, ...). The leading prefix is only left in cases where its removal +would cause a clash in method name. For example, \f(CW\*(C`GvREFCNT\*(C'\fR stays +as-is since its abbreviation would clash with the \*(L"superclass\*(R" method +\&\f(CW\*(C`REFCNT\*(C'\fR (corresponding to the C function \f(CW\*(C`SvREFCNT\*(C'\fR). +.SS "B::SV Methods" +.IX Subsection "B::SV Methods" +.IP "\s-1REFCNT\s0" 4 +.IX Item "REFCNT" +.PD 0 +.IP "\s-1FLAGS\s0" 4 +.IX Item "FLAGS" +.IP "object_2svref" 4 +.IX Item "object_2svref" +.PD +Returns a reference to the regular scalar corresponding to this +B::SV object. In other words, this method is the inverse operation +to the \fBsvref_2object()\fR subroutine. This scalar and other data it points +at should be considered read-only: modifying them is neither safe nor +guaranteed to have a sensible effect. +.SS "B::IV Methods" +.IX Subsection "B::IV Methods" +.IP "\s-1IV\s0" 4 +.IX Item "IV" +Returns the value of the \s-1IV,\s0 \fIinterpreted as +a signed integer\fR. This will be misleading +if \f(CW\*(C`FLAGS & SVf_IVisUV\*(C'\fR. Perhaps you want the +\&\f(CW\*(C`int_value\*(C'\fR method instead? +.IP "\s-1IVX\s0" 4 +.IX Item "IVX" +.PD 0 +.IP "\s-1UVX\s0" 4 +.IX Item "UVX" +.IP "int_value" 4 +.IX Item "int_value" +.PD +This method returns the value of the \s-1IV\s0 as an integer. +It differs from \f(CW\*(C`IV\*(C'\fR in that it returns the correct +value regardless of whether it's stored signed or +unsigned. +.IP "needs64bits" 4 +.IX Item "needs64bits" +.PD 0 +.IP "packiv" 4 +.IX Item "packiv" +.PD +.SS "B::NV Methods" +.IX Subsection "B::NV Methods" +.IP "\s-1NV\s0" 4 +.IX Item "NV" +.PD 0 +.IP "\s-1NVX\s0" 4 +.IX Item "NVX" +.IP "\s-1COP_SEQ_RANGE_LOW\s0" 4 +.IX Item "COP_SEQ_RANGE_LOW" +.IP "\s-1COP_SEQ_RANGE_HIGH\s0" 4 +.IX Item "COP_SEQ_RANGE_HIGH" +.PD +These last two are only valid for pad name SVs. They only existed in the +B::NV class before Perl 5.22. In 5.22 they were moved to the B::PADNAME +class. +.SS "B::RV Methods" +.IX Subsection "B::RV Methods" +.IP "\s-1RV\s0" 4 +.IX Item "RV" +.SS "B::PV Methods" +.IX Subsection "B::PV Methods" +.PD 0 +.IP "\s-1PV\s0" 4 +.IX Item "PV" +.PD +This method is the one you usually want. It constructs a +string using the length and offset information in the struct: +for ordinary scalars it will return the string that you'd see +from Perl, even if it contains null characters. +.IP "\s-1RV\s0" 4 +.IX Item "RV" +Same as B::RV::RV, except that it will \fBdie()\fR if the \s-1PV\s0 isn't +a reference. +.IP "\s-1PVX\s0" 4 +.IX Item "PVX" +This method is less often useful. It assumes that the string +stored in the struct is null-terminated, and disregards the +length information. +.Sp +It is the appropriate method to use if you need to get the name +of a lexical variable from a padname array. Lexical variable names +are always stored with a null terminator, and the length field +(\s-1CUR\s0) is overloaded for other purposes and can't be relied on here. +.IP "\s-1CUR\s0" 4 +.IX Item "CUR" +This method returns the internal length field, which consists of the number +of internal bytes, not necessarily the number of logical characters. +.IP "\s-1LEN\s0" 4 +.IX Item "LEN" +This method returns the number of bytes allocated (via malloc) for storing +the string. This is 0 if the scalar does not \*(L"own\*(R" the string. +.SS "B::PVMG Methods" +.IX Subsection "B::PVMG Methods" +.IP "\s-1MAGIC\s0" 4 +.IX Item "MAGIC" +.PD 0 +.IP "SvSTASH" 4 +.IX Item "SvSTASH" +.PD +.SS "B::MAGIC Methods" +.IX Subsection "B::MAGIC Methods" +.IP "\s-1MOREMAGIC\s0" 4 +.IX Item "MOREMAGIC" +.PD 0 +.IP "precomp" 4 +.IX Item "precomp" +.PD +Only valid on r\-magic, returns the string that generated the regexp. +.IP "\s-1PRIVATE\s0" 4 +.IX Item "PRIVATE" +.PD 0 +.IP "\s-1TYPE\s0" 4 +.IX Item "TYPE" +.IP "\s-1FLAGS\s0" 4 +.IX Item "FLAGS" +.IP "\s-1OBJ\s0" 4 +.IX Item "OBJ" +.PD +Will \fBdie()\fR if called on r\-magic. +.IP "\s-1PTR\s0" 4 +.IX Item "PTR" +.PD 0 +.IP "\s-1REGEX\s0" 4 +.IX Item "REGEX" +.PD +Only valid on r\-magic, returns the integer value of the \s-1REGEX\s0 stored +in the \s-1MAGIC.\s0 +.SS "B::PVLV Methods" +.IX Subsection "B::PVLV Methods" +.IP "\s-1TARGOFF\s0" 4 +.IX Item "TARGOFF" +.PD 0 +.IP "\s-1TARGLEN\s0" 4 +.IX Item "TARGLEN" +.IP "\s-1TYPE\s0" 4 +.IX Item "TYPE" +.IP "\s-1TARG\s0" 4 +.IX Item "TARG" +.PD +.SS "B::BM Methods" +.IX Subsection "B::BM Methods" +.IP "\s-1USEFUL\s0" 4 +.IX Item "USEFUL" +.PD 0 +.IP "\s-1PREVIOUS\s0" 4 +.IX Item "PREVIOUS" +.IP "\s-1RARE\s0" 4 +.IX Item "RARE" +.IP "\s-1TABLE\s0" 4 +.IX Item "TABLE" +.PD +.SS "B::REGEXP Methods" +.IX Subsection "B::REGEXP Methods" +.IP "\s-1REGEX\s0" 4 +.IX Item "REGEX" +.PD 0 +.IP "precomp" 4 +.IX Item "precomp" +.IP "qr_anoncv" 4 +.IX Item "qr_anoncv" +.IP "compflags" 4 +.IX Item "compflags" +.PD +The last two were added in Perl 5.22. +.SS "B::GV Methods" +.IX Subsection "B::GV Methods" +.IP "is_empty" 4 +.IX Item "is_empty" +This method returns \s-1TRUE\s0 if the \s-1GP\s0 field of the \s-1GV\s0 is \s-1NULL.\s0 +.IP "\s-1NAME\s0" 4 +.IX Item "NAME" +.PD 0 +.IP "\s-1SAFENAME\s0" 4 +.IX Item "SAFENAME" +.PD +This method returns the name of the glob, but if the first +character of the name is a control character, then it converts +it to ^X first, so that *^G would return \*(L"^G\*(R" rather than \*(L"\ecG\*(R". +.Sp +It's useful if you want to print out the name of a variable. +If you restrict yourself to globs which exist at compile-time +then the result ought to be unambiguous, because code like +\&\f(CW\*(C`${"^G"} = 1\*(C'\fR is compiled as two ops \- a constant string and +a dereference (rv2gv) \- so that the glob is created at runtime. +.Sp +If you're working with globs at runtime, and need to disambiguate +*^G from *{\*(L"^G\*(R"}, then you should use the raw \s-1NAME\s0 method. +.IP "\s-1STASH\s0" 4 +.IX Item "STASH" +.PD 0 +.IP "\s-1SV\s0" 4 +.IX Item "SV" +.IP "\s-1IO\s0" 4 +.IX Item "IO" +.IP "\s-1FORM\s0" 4 +.IX Item "FORM" +.IP "\s-1AV\s0" 4 +.IX Item "AV" +.IP "\s-1HV\s0" 4 +.IX Item "HV" +.IP "\s-1EGV\s0" 4 +.IX Item "EGV" +.IP "\s-1CV\s0" 4 +.IX Item "CV" +.IP "\s-1CVGEN\s0" 4 +.IX Item "CVGEN" +.IP "\s-1LINE\s0" 4 +.IX Item "LINE" +.IP "\s-1FILE\s0" 4 +.IX Item "FILE" +.IP "\s-1FILEGV\s0" 4 +.IX Item "FILEGV" +.IP "GvREFCNT" 4 +.IX Item "GvREFCNT" +.IP "\s-1FLAGS\s0" 4 +.IX Item "FLAGS" +.IP "\s-1GPFLAGS\s0" 4 +.IX Item "GPFLAGS" +.PD +This last one is present only in perl 5.22.0 and higher. +.SS "B::IO Methods" +.IX Subsection "B::IO Methods" +B::IO objects derive from \s-1IO\s0 objects and you will get more information from +the \s-1IO\s0 object itself. +.PP +For example: +.PP +.Vb 3 +\& $gvio = B::svref_2object(\e*main::stdin)\->IO; +\& $IO = $gvio\->object_2svref(); +\& $fd = $IO\->fileno(); +.Ve +.IP "\s-1LINES\s0" 4 +.IX Item "LINES" +.PD 0 +.IP "\s-1PAGE\s0" 4 +.IX Item "PAGE" +.IP "\s-1PAGE_LEN\s0" 4 +.IX Item "PAGE_LEN" +.IP "\s-1LINES_LEFT\s0" 4 +.IX Item "LINES_LEFT" +.IP "\s-1TOP_NAME\s0" 4 +.IX Item "TOP_NAME" +.IP "\s-1TOP_GV\s0" 4 +.IX Item "TOP_GV" +.IP "\s-1FMT_NAME\s0" 4 +.IX Item "FMT_NAME" +.IP "\s-1FMT_GV\s0" 4 +.IX Item "FMT_GV" +.IP "\s-1BOTTOM_NAME\s0" 4 +.IX Item "BOTTOM_NAME" +.IP "\s-1BOTTOM_GV\s0" 4 +.IX Item "BOTTOM_GV" +.IP "\s-1SUBPROCESS\s0" 4 +.IX Item "SUBPROCESS" +.IP "IoTYPE" 4 +.IX Item "IoTYPE" +.PD +A character symbolizing the type of \s-1IO\s0 Handle. +.Sp +.Vb 12 +\& \- STDIN/OUT +\& I STDIN/OUT/ERR +\& < read\-only +\& > write\-only +\& a append +\& + read and write +\& s socket +\& | pipe +\& I IMPLICIT +\& # NUMERIC +\& space closed handle +\& \e0 closed internal handle +.Ve +.IP "IoFLAGS" 4 +.IX Item "IoFLAGS" +.PD 0 +.IP "IsSTD" 4 +.IX Item "IsSTD" +.PD +Takes one argument ( 'stdin' | 'stdout' | 'stderr' ) and returns true +if the IoIFP of the object is equal to the handle whose name was +passed as argument; i.e., \f(CW$io\fR\->IsSTD('stderr') is true if +IoIFP($io) == \fBPerlIO_stderr()\fR. +.SS "B::AV Methods" +.IX Subsection "B::AV Methods" +.IP "\s-1FILL\s0" 4 +.IX Item "FILL" +.PD 0 +.IP "\s-1MAX\s0" 4 +.IX Item "MAX" +.IP "\s-1ARRAY\s0" 4 +.IX Item "ARRAY" +.IP "ARRAYelt" 4 +.IX Item "ARRAYelt" +.PD +Like \f(CW\*(C`ARRAY\*(C'\fR, but takes an index as an argument to get only one element, +rather than a list of all of them. +.SS "B::CV Methods" +.IX Subsection "B::CV Methods" +.IP "\s-1STASH\s0" 4 +.IX Item "STASH" +.PD 0 +.IP "\s-1START\s0" 4 +.IX Item "START" +.IP "\s-1ROOT\s0" 4 +.IX Item "ROOT" +.IP "\s-1GV\s0" 4 +.IX Item "GV" +.IP "\s-1FILE\s0" 4 +.IX Item "FILE" +.IP "\s-1DEPTH\s0" 4 +.IX Item "DEPTH" +.IP "\s-1PADLIST\s0" 4 +.IX Item "PADLIST" +.PD +Returns a B::PADLIST object. +.IP "\s-1OUTSIDE\s0" 4 +.IX Item "OUTSIDE" +.PD 0 +.IP "\s-1OUTSIDE_SEQ\s0" 4 +.IX Item "OUTSIDE_SEQ" +.IP "\s-1XSUB\s0" 4 +.IX Item "XSUB" +.IP "\s-1XSUBANY\s0" 4 +.IX Item "XSUBANY" +.PD +For constant subroutines, returns the constant \s-1SV\s0 returned by the subroutine. +.IP "CvFLAGS" 4 +.IX Item "CvFLAGS" +.PD 0 +.IP "const_sv" 4 +.IX Item "const_sv" +.IP "\s-1NAME_HEK\s0" 4 +.IX Item "NAME_HEK" +.PD +Returns the name of a lexical sub, otherwise \f(CW\*(C`undef\*(C'\fR. +.SS "B::HV Methods" +.IX Subsection "B::HV Methods" +.IP "\s-1FILL\s0" 4 +.IX Item "FILL" +.PD 0 +.IP "\s-1MAX\s0" 4 +.IX Item "MAX" +.IP "\s-1KEYS\s0" 4 +.IX Item "KEYS" +.IP "\s-1RITER\s0" 4 +.IX Item "RITER" +.IP "\s-1NAME\s0" 4 +.IX Item "NAME" +.IP "\s-1ARRAY\s0" 4 +.IX Item "ARRAY" +.PD +.SS "OP-RELATED \s-1CLASSES\s0" +.IX Subsection "OP-RELATED CLASSES" +\&\f(CW\*(C`B::OP\*(C'\fR, \f(CW\*(C`B::UNOP\*(C'\fR, \f(CW\*(C`B::UNOP_AUX\*(C'\fR, \f(CW\*(C`B::BINOP\*(C'\fR, \f(CW\*(C`B::LOGOP\*(C'\fR, +\&\f(CW\*(C`B::LISTOP\*(C'\fR, \f(CW\*(C`B::PMOP\*(C'\fR, \f(CW\*(C`B::SVOP\*(C'\fR, \f(CW\*(C`B::PADOP\*(C'\fR, \f(CW\*(C`B::PVOP\*(C'\fR, \f(CW\*(C`B::LOOP\*(C'\fR, +\&\f(CW\*(C`B::COP\*(C'\fR, \f(CW\*(C`B::METHOP\*(C'\fR. +.PP +These classes correspond in the obvious way to the underlying C +structures of similar names. The inheritance hierarchy mimics the +underlying C \*(L"inheritance\*(R": +.PP +.Vb 10 +\& B::OP +\& | +\& +\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-+ +\& | | | | | | +\& B::UNOP B::SVOP B::PADOP B::COP B::PVOP B::METHOP +\& | +\& +\-\-\-+\-\-\-+\-\-\-\-\-\-\-\-\-+ +\& | | | +\& B::BINOP B::LOGOP B::UNOP_AUX +\& | +\& | +\& B::LISTOP +\& | +\& +\-\-\-+\-\-\-+ +\& | | +\& B::LOOP B::PMOP +.Ve +.PP +Access methods correspond to the underlying C structure field names, +with the leading \*(L"class indication\*(R" prefix (\f(CW"op_"\fR) removed. +.SS "B::OP Methods" +.IX Subsection "B::OP Methods" +These methods get the values of similarly named fields within the \s-1OP\s0 +data structure. See top of \f(CW\*(C`op.h\*(C'\fR for more info. +.IP "next" 4 +.IX Item "next" +.PD 0 +.IP "sibling" 4 +.IX Item "sibling" +.IP "parent" 4 +.IX Item "parent" +.PD +Returns the \s-1OP\s0's parent. If it has no parent, or if your perl wasn't built +with \f(CW\*(C`\-DPERL_OP_PARENT\*(C'\fR, returns \s-1NULL.\s0 +.Sp +Note that the global variable \f(CW$B::OP::does_parent\fR is undefined on older +perls that don't support the \f(CW\*(C`parent\*(C'\fR method, is defined but false on +perls that support the method but were built without \f(CW\*(C`\-DPERL_OP_PARENT\*(C'\fR, +and is true otherwise. +.IP "name" 4 +.IX Item "name" +This returns the op name as a string (e.g. \*(L"add\*(R", \*(L"rv2av\*(R"). +.IP "ppaddr" 4 +.IX Item "ppaddr" +This returns the function name as a string (e.g. \*(L"PL_ppaddr[\s-1OP_ADD\s0]\*(R", +\&\*(L"PL_ppaddr[\s-1OP_RV2AV\s0]\*(R"). +.IP "desc" 4 +.IX Item "desc" +This returns the op description from the global C PL_op_desc array +(e.g. \*(L"addition\*(R" \*(L"array deref\*(R"). +.IP "targ" 4 +.IX Item "targ" +.PD 0 +.IP "type" 4 +.IX Item "type" +.IP "opt" 4 +.IX Item "opt" +.IP "flags" 4 +.IX Item "flags" +.IP "private" 4 +.IX Item "private" +.IP "spare" 4 +.IX Item "spare" +.PD +.SS "B::UNOP Method" +.IX Subsection "B::UNOP Method" +.IP "first" 4 +.IX Item "first" +.SS "B::UNOP_AUX Methods (since 5.22)" +.IX Subsection "B::UNOP_AUX Methods (since 5.22)" +.PD 0 +.IP "aux_list(cv)" 4 +.IX Item "aux_list(cv)" +.PD +This returns a list of the elements of the op's aux data structure, +or a null list if there is no aux. What will be returned depends on the +object's type, but will typically be a collection of \f(CW\*(C`B::IV\*(C'\fR, \f(CW\*(C`B::GV\*(C'\fR, +etc. objects. \f(CW\*(C`cv\*(C'\fR is the \f(CW\*(C`B::CV\*(C'\fR object representing the sub that the +op is contained within. +.IP "string(cv)" 4 +.IX Item "string(cv)" +This returns a textual representation of the object (likely to b useful +for deparsing and debugging), or an empty string if the op type doesn't +support this. \f(CW\*(C`cv\*(C'\fR is the \f(CW\*(C`B::CV\*(C'\fR object representing the sub that the +op is contained within. +.SS "B::BINOP Method" +.IX Subsection "B::BINOP Method" +.IP "last" 4 +.IX Item "last" +.SS "B::LOGOP Method" +.IX Subsection "B::LOGOP Method" +.PD 0 +.IP "other" 4 +.IX Item "other" +.PD +.SS "B::LISTOP Method" +.IX Subsection "B::LISTOP Method" +.IP "children" 4 +.IX Item "children" +.SS "B::PMOP Methods" +.IX Subsection "B::PMOP Methods" +.PD 0 +.IP "pmreplroot" 4 +.IX Item "pmreplroot" +.IP "pmreplstart" 4 +.IX Item "pmreplstart" +.IP "pmflags" 4 +.IX Item "pmflags" +.IP "precomp" 4 +.IX Item "precomp" +.IP "pmoffset" 4 +.IX Item "pmoffset" +.PD +Only when perl was compiled with ithreads. +.IP "code_list" 4 +.IX Item "code_list" +Since perl 5.17.1 +.IP "pmregexp" 4 +.IX Item "pmregexp" +Added in perl 5.22, this method returns the B::REGEXP associated with the +op. While PMOPs do not actually have \f(CW\*(C`pmregexp\*(C'\fR fields under threaded +builds, this method returns the regexp under threads nonetheless, for +convenience. +.SS "B::SVOP Methods" +.IX Subsection "B::SVOP Methods" +.IP "sv" 4 +.IX Item "sv" +.PD 0 +.IP "gv" 4 +.IX Item "gv" +.PD +.SS "B::PADOP Method" +.IX Subsection "B::PADOP Method" +.IP "padix" 4 +.IX Item "padix" +.SS "B::PVOP Method" +.IX Subsection "B::PVOP Method" +.PD 0 +.IP "pv" 4 +.IX Item "pv" +.PD +.SS "B::LOOP Methods" +.IX Subsection "B::LOOP Methods" +.IP "redoop" 4 +.IX Item "redoop" +.PD 0 +.IP "nextop" 4 +.IX Item "nextop" +.IP "lastop" 4 +.IX Item "lastop" +.PD +.SS "B::COP Methods" +.IX Subsection "B::COP Methods" +The \f(CW\*(C`B::COP\*(C'\fR class is used for \*(L"nextstate\*(R" and \*(L"dbstate\*(R" ops. As of Perl +5.22, it is also used for \*(L"null\*(R" ops that started out as COPs. +.IP "label" 4 +.IX Item "label" +.PD 0 +.IP "stash" 4 +.IX Item "stash" +.IP "stashpv" 4 +.IX Item "stashpv" +.IP "stashoff (threaded only)" 4 +.IX Item "stashoff (threaded only)" +.IP "file" 4 +.IX Item "file" +.IP "cop_seq" 4 +.IX Item "cop_seq" +.IP "line" 4 +.IX Item "line" +.IP "warnings" 4 +.IX Item "warnings" +.IP "io" 4 +.IX Item "io" +.IP "hints" 4 +.IX Item "hints" +.IP "hints_hash" 4 +.IX Item "hints_hash" +.PD +.SS "B::METHOP Methods (Since Perl 5.22)" +.IX Subsection "B::METHOP Methods (Since Perl 5.22)" +.IP "first" 4 +.IX Item "first" +.PD 0 +.IP "meth_sv" 4 +.IX Item "meth_sv" +.PD +.SS "PAD-RELATED \s-1CLASSES\s0" +.IX Subsection "PAD-RELATED CLASSES" +Perl 5.18 introduced a new class, B::PADLIST, returned by B::CV's +\&\f(CW\*(C`PADLIST\*(C'\fR method. +.PP +Perl 5.22 introduced the B::PADNAMELIST and B::PADNAME classes. +.SS "B::PADLIST Methods" +.IX Subsection "B::PADLIST Methods" +.IP "\s-1MAX\s0" 4 +.IX Item "MAX" +.PD 0 +.IP "\s-1ARRAY\s0" 4 +.IX Item "ARRAY" +.PD +A list of pads. The first one is a B::PADNAMELIST containing the names. +The rest are currently B::AV objects, but that could +change in future versions. +.IP "ARRAYelt" 4 +.IX Item "ARRAYelt" +Like \f(CW\*(C`ARRAY\*(C'\fR, but takes an index as an argument to get only one element, +rather than a list of all of them. +.IP "\s-1NAMES\s0" 4 +.IX Item "NAMES" +This method, introduced in 5.22, returns the B::PADNAMELIST. It is +equivalent to \f(CW\*(C`ARRAYelt\*(C'\fR with a 0 argument. +.IP "\s-1REFCNT\s0" 4 +.IX Item "REFCNT" +.PD 0 +.IP "id" 4 +.IX Item "id" +.PD +This method, introduced in 5.22, returns an \s-1ID\s0 shared by clones of the same +padlist. +.IP "outid" 4 +.IX Item "outid" +This method, also added in 5.22, returns the \s-1ID\s0 of the outer padlist. +.SS "B::PADNAMELIST Methods" +.IX Subsection "B::PADNAMELIST Methods" +.IP "\s-1MAX\s0" 4 +.IX Item "MAX" +.PD 0 +.IP "\s-1ARRAY\s0" 4 +.IX Item "ARRAY" +.IP "ARRAYelt" 4 +.IX Item "ARRAYelt" +.PD +These two methods return the pad names, using B::SPECIAL objects for null +pointers and B::PADNAME objects otherwise. +.IP "\s-1REFCNT\s0" 4 +.IX Item "REFCNT" +.SS "B::PADNAME Methods" +.IX Subsection "B::PADNAME Methods" +.PD 0 +.IP "\s-1PV\s0" 4 +.IX Item "PV" +.IP "\s-1PVX\s0" 4 +.IX Item "PVX" +.IP "\s-1LEN\s0" 4 +.IX Item "LEN" +.IP "\s-1REFCNT\s0" 4 +.IX Item "REFCNT" +.IP "\s-1FLAGS\s0" 4 +.IX Item "FLAGS" +.PD +For backward-compatibility, if the PADNAMEt_OUTER flag is set, the \s-1FLAGS\s0 +method adds the SVf_FAKE flag, too. +.IP "\s-1TYPE\s0" 4 +.IX Item "TYPE" +A B::HV object representing the stash for a typed lexical. +.IP "SvSTASH" 4 +.IX Item "SvSTASH" +A backward-compatibility alias for \s-1TYPE.\s0 +.IP "\s-1OURSTASH\s0" 4 +.IX Item "OURSTASH" +A B::HV object representing the stash for 'our' variables. +.IP "\s-1PROTOCV\s0" 4 +.IX Item "PROTOCV" +The prototype \s-1CV\s0 for a 'my' sub. +.IP "\s-1COP_SEQ_RANGE_LOW\s0" 4 +.IX Item "COP_SEQ_RANGE_LOW" +.PD 0 +.IP "\s-1COP_SEQ_RANGE_HIGH\s0" 4 +.IX Item "COP_SEQ_RANGE_HIGH" +.PD +Sequence numbers representing the scope within which a lexical is visible. +Meaningless if PADNAMEt_OUTER is set. +.IP "\s-1PARENT_PAD_INDEX\s0" 4 +.IX Item "PARENT_PAD_INDEX" +Only meaningful if PADNAMEt_OUTER is set. +.IP "\s-1PARENT_FAKELEX_FLAGS\s0" 4 +.IX Item "PARENT_FAKELEX_FLAGS" +Only meaningful if PADNAMEt_OUTER is set. +.ie n .SS "$B::overlay" +.el .SS "\f(CW$B::overlay\fP" +.IX Subsection "$B::overlay" +Although the optree is read-only, there is an overlay facility that allows +you to override what values the various B::*OP methods return for a +particular op. \f(CW$B::overlay\fR should be set to reference a two-deep hash: +indexed by \s-1OP\s0 address, then method name. Whenever a an op method is +called, the value in the hash is returned if it exists. This facility is +used by B::Deparse to \*(L"undo\*(R" some optimisations. For example: +.PP +.Vb 11 +\& local $B::overlay = {}; +\& ... +\& if ($op\->name eq "foo") { +\& $B::overlay\->{$$op} = { +\& name => \*(Aqbar\*(Aq, +\& next => $op\->next\->next, +\& }; +\& } +\& ... +\& $op\->name # returns "bar" +\& $op\->next # returns the next op but one +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Malcolm Beattie, \f(CW\*(C`mbeattie@sable.ox.ac.uk\*(C'\fR diff --git a/data/miniconda3/man/man3/CPAN%3A%3AAPI%3A%3AHOWTO.3 b/data/miniconda3/man/man3/CPAN%3A%3AAPI%3A%3AHOWTO.3 new file mode 100644 index 0000000000000000000000000000000000000000..107e5e60668d5d76adc7345a7ba67d9cb9aa5c4f --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AAPI%3A%3AHOWTO.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::API::HOWTO 3" +.TH CPAN::API::HOWTO 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::API::HOWTO \- a recipe book for programming with CPAN.pm +.SH "RECIPES" +.IX Header "RECIPES" +All of these recipes assume that you have put \*(L"use \s-1CPAN\*(R"\s0 at the top of +your program. +.SS "What distribution contains a particular module?" +.IX Subsection "What distribution contains a particular module?" +.Vb 3 +\& my $distribution = CPAN::Shell\->expand( +\& "Module", "Data::UUID" +\& )\->distribution()\->pretty_id(); +.Ve +.PP +This returns a string of the form \*(L"\s-1AUTHORID/TARBALL\*(R".\s0 If you want the +full path and filename to this distribution on a \s-1CPAN\s0 mirror, then it is +\&\f(CW\*(C`.../authors/id/A/AU/AUTHORID/TARBALL\*(C'\fR. +.SS "What modules does a particular distribution contain?" +.IX Subsection "What modules does a particular distribution contain?" +.Vb 4 +\& CPAN::Index\->reload(); +\& my @modules = CPAN::Shell\->expand( +\& "Distribution", "JHI/Graph\-0.83.tar.gz" +\& )\->containsmods(); +.Ve +.PP +You may also refer to a distribution in the form A/AU/AUTHORID/TARBALL. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +the main \s-1CPAN\s0.pm documentation +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See +.SH "AUTHOR" +.IX Header "AUTHOR" +David Cantrell diff --git a/data/miniconda3/man/man3/CPAN%3A%3ADebug.3 b/data/miniconda3/man/man3/CPAN%3A%3ADebug.3 new file mode 100644 index 0000000000000000000000000000000000000000..30e908e46c27421917e536ba2a5e8727e80fb9d2 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3ADebug.3 @@ -0,0 +1,146 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Debug 3" +.TH CPAN::Debug 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Debug \- internal debugging for CPAN.pm +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3ADistroprefs.3 b/data/miniconda3/man/man3/CPAN%3A%3ADistroprefs.3 new file mode 100644 index 0000000000000000000000000000000000000000..f9b7576f1040e2acaf4f6c9f07f26aedddc40556 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3ADistroprefs.3 @@ -0,0 +1,284 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Distroprefs 3" +.TH CPAN::Distroprefs 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Distroprefs \-\- read and match distroprefs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use CPAN::Distroprefs; +\& +\& my %info = (... distribution/environment info ...); +\& +\& my $finder = CPAN::Distroprefs\->find($prefs_dir, \e%ext_map); +\& +\& while (my $result = $finder\->next) { +\& +\& die $result\->as_string if $result\->is_fatal; +\& +\& warn($result\->as_string), next if $result\->is_warning; +\& +\& for my $pref (@{ $result\->prefs }) { +\& if ($pref\->matches(\e%info)) { +\& return $pref; +\& } +\& } +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module encapsulates reading Distroprefs and matching them against \s-1CPAN\s0 distributions. +.SH "INTERFACE" +.IX Header "INTERFACE" +.Vb 1 +\& my $finder = CPAN::Distroprefs\->find($dir, \e%ext_map); +\& +\& while (my $result = $finder\->next) { ... } +.Ve +.PP +Build an iterator which finds distroprefs files in the tree below the +given directory. Within the tree directories matching \f(CW\*(C`m/^[._]/\*(C'\fR are +pruned. +.PP +\&\f(CW%ext_map\fR is a hashref whose keys are file extensions and whose values are +modules used to load matching files: +.PP +.Vb 5 +\& { +\& \*(Aqyml\*(Aq => \*(AqYAML::Syck\*(Aq, +\& \*(Aqdd\*(Aq => \*(AqData::Dumper\*(Aq, +\& ... +\& } +.Ve +.PP +Each time \f(CW\*(C`$finder\->next\*(C'\fR is called, the iterator returns one of two +possible values: +.IP "\(bu" 4 +a CPAN::Distroprefs::Result object +.IP "\(bu" 4 +\&\f(CW\*(C`undef\*(C'\fR, indicating that no prefs files remain to be found +.SH "RESULTS" +.IX Header "RESULTS" +\&\f(CW\*(C`find()\*(C'\fR returns CPAN::Distroprefs::Result objects to +indicate success or failure when reading a prefs file. +.SS "Common" +.IX Subsection "Common" +All results share some common attributes: +.PP +\fItype\fR +.IX Subsection "type" +.PP +\&\f(CW\*(C`success\*(C'\fR, \f(CW\*(C`warning\*(C'\fR, or \f(CW\*(C`fatal\*(C'\fR +.PP +\fIfile\fR +.IX Subsection "file" +.PP +the file from which these prefs were read, or to which this error refers (relative filename) +.PP +\fIext\fR +.IX Subsection "ext" +.PP +the file's extension, which determines how to load it +.PP +\fIdir\fR +.IX Subsection "dir" +.PP +the directory the file was read from +.PP +\fIabs\fR +.IX Subsection "abs" +.PP +the absolute path to the file +.SS "Errors" +.IX Subsection "Errors" +Error results (warning and fatal) contain: +.PP +\fImsg\fR +.IX Subsection "msg" +.PP +the error message (usually either \f(CW$!\fR or a \s-1YAML\s0 error) +.SS "Successes" +.IX Subsection "Successes" +Success results contain: +.PP +\fIprefs\fR +.IX Subsection "prefs" +.PP +an arrayref of CPAN::Distroprefs::Pref objects +.SH "PREFS" +.IX Header "PREFS" +CPAN::Distroprefs::Pref objects represent individual distroprefs documents. +They are constructed automatically as part of \f(CW\*(C`success\*(C'\fR results from \f(CW\*(C`find()\*(C'\fR. +.PP +\fIdata\fR +.IX Subsection "data" +.PP +the pref information as a hashref, suitable for e.g. passing to Kwalify +.PP +\fImatch_attributes\fR +.IX Subsection "match_attributes" +.PP +returns a list of the valid match attributes (see the Distroprefs section in \s-1CPAN\s0) +.PP +currently: \f(CW\*(C`env perl perlconfig distribution module\*(C'\fR +.PP +\fIhas_any_match\fR +.IX Subsection "has_any_match" +.PP +true if this pref has a 'match' attribute at all +.PP +\fIhas_valid_subkeys\fR +.IX Subsection "has_valid_subkeys" +.PP +true if this pref has a 'match' attribute and at least one valid match attribute +.PP +\fImatches\fR +.IX Subsection "matches" +.PP +.Vb 1 +\& if ($pref\->matches(\e%arg)) { ... } +.Ve +.PP +true if this pref matches the passed-in hashref, which must have a value for +each of the \f(CW\*(C`match_attributes\*(C'\fR (above) +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AFirstTime.3 b/data/miniconda3/man/man3/CPAN%3A%3AFirstTime.3 new file mode 100644 index 0000000000000000000000000000000000000000..b2a3f4370e22f9f51b4534044d426c07cb8afcc1 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AFirstTime.3 @@ -0,0 +1,737 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::FirstTime 3" +.TH CPAN::FirstTime 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::FirstTime \- Utility for CPAN::Config file Initialization +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBCPAN::FirstTime::init()\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The init routine asks a few questions and writes a CPAN/Config.pm or +CPAN/MyConfig.pm file (depending on what it is currently using). +.PP +In the following all questions and explanations regarding config +variables are collected. +.IP "allow_installing_module_downgrades" 2 +.IX Item "allow_installing_module_downgrades" +The \s-1CPAN\s0 shell can watch the \f(CW\*(C`blib/\*(C'\fR directories that are built up +before running \f(CW\*(C`make test\*(C'\fR to determine whether the current +distribution will end up with modules being overwritten with decreasing module version numbers. It +can then let the build of this distro fail when it discovers a +downgrade. +.Sp +Do you want to allow installing distros with decreasing module +versions compared to what you have installed (yes, no, ask/yes, +ask/no)? +.IP "allow_installing_outdated_dists" 2 +.IX Item "allow_installing_outdated_dists" +The \s-1CPAN\s0 shell can watch the \f(CW\*(C`blib/\*(C'\fR directories that are built up +before running \f(CW\*(C`make test\*(C'\fR to determine whether the current +distribution contains modules that are indexed with a distro with a +higher distro-version number than the current one. It can +then let the build of this distro fail when it would not represent the +most up-to-date version of the distro. +.Sp +Note: choosing anyhing but 'yes' for this option will need +Devel::DistnameInfo being installed for taking effect. +.Sp +Do you want to allow installing distros that are not indexed as the +highest distro-version for all contained modules (yes, no, ask/yes, +ask/no)? +.IP "auto_commit" 2 +.IX Item "auto_commit" +Normally \s-1CPAN\s0.pm keeps config variables in memory and changes need to +be saved in a separate 'o conf commit' command to make them permanent +between sessions. If you set the 'auto_commit' option to true, changes +to a config variable are always automatically committed to disk. +.Sp +Always commit changes to config variables to disk? +.IP "build_cache" 2 +.IX Item "build_cache" +\&\s-1CPAN\s0.pm can limit the size of the disk area for keeping the build +directories with all the intermediate files. +.Sp +Cache size for build directory (in \s-1MB\s0)? +.IP "build_dir" 2 +.IX Item "build_dir" +Directory where the build process takes place? +.IP "build_dir_reuse" 2 +.IX Item "build_dir_reuse" +Until version 1.88 \s-1CPAN\s0.pm never trusted the contents of the build_dir +directory between sessions. Since 1.88_58 \s-1CPAN\s0.pm has a YAML-based +mechanism that makes it possible to share the contents of the +build_dir/ directory between different sessions with the same version +of perl. People who prefer to test things several days before +installing will like this feature because it saves a lot of time. +.Sp +If you say yes to the following question, \s-1CPAN\s0 will try to store +enough information about the build process so that it can pick up in +future sessions at the same state of affairs as it left a previous +session. +.Sp +Store and re-use state information about distributions between +\&\s-1CPAN\s0.pm sessions? +.IP "build_requires_install_policy" 2 +.IX Item "build_requires_install_policy" +When a module declares another one as a 'build_requires' prerequisite +this means that the other module is only needed for building or +testing the module but need not be installed permanently. In this case +you may wish to install that other module nonetheless or just keep it +in the 'build_dir' directory to have it available only temporarily. +Installing saves time on future installations but makes the perl +installation bigger. +.Sp +You can choose if you want to always install (yes), never install (no) +or be always asked. In the latter case you can set the default answer +for the question to yes (ask/yes) or no (ask/no). +.Sp +Policy on installing 'build_requires' modules (yes, no, ask/yes, +ask/no)? +.IP "cache_metadata" 2 +.IX Item "cache_metadata" +To considerably speed up the initial \s-1CPAN\s0 shell startup, it is +possible to use Storable to create a cache of metadata. If Storable is +not available, the normal index mechanism will be used. +.Sp +Note: this mechanism is not used when use_sqlite is on and SQLLite is +running. +.Sp +Cache metadata (yes/no)? +.IP "check_sigs" 2 +.IX Item "check_sigs" +\&\s-1CPAN\s0 packages can be digitally signed by authors and thus verified +with the security provided by strong cryptography. The exact mechanism +is defined in the Module::Signature module. While this is generally +considered a good thing, it is not always convenient to the end user +to install modules that are signed incorrectly or where the key of the +author is not available or where some prerequisite for +Module::Signature has a bug and so on. +.Sp +With the check_sigs parameter you can turn signature checking on and +off. The default is off for now because the whole tool chain for the +functionality is not yet considered mature by some. The author of +\&\s-1CPAN\s0.pm would recommend setting it to true most of the time and +turning it off only if it turns out to be annoying. +.Sp +Note that if you do not have Module::Signature installed, no signature +checks will be performed at all. +.Sp +Always try to check and verify signatures if a \s-1SIGNATURE\s0 file is in +the package and Module::Signature is installed (yes/no)? +.IP "cleanup_after_install" 2 +.IX Item "cleanup_after_install" +Users who install modules and do not intend to look back, can free +occupied disk space quickly by letting \s-1CPAN\s0.pm cleanup each build +directory immediately after a successful install. +.Sp +Remove build directory after a successful install? (yes/no)? +.IP "colorize_output" 2 +.IX Item "colorize_output" +When you have Term::ANSIColor installed, you can turn on colorized +output to have some visual differences between normal \s-1CPAN\s0.pm output, +warnings, debugging output, and the output of the modules being +installed. Set your favorite colors after some experimenting with the +Term::ANSIColor module. +.Sp +Please note that on Windows platforms colorized output also requires +the Win32::Console::ANSI module. +.Sp +Do you want to turn on colored output? +.IP "colorize_print" 2 +.IX Item "colorize_print" +Color for normal output? +.IP "colorize_warn" 2 +.IX Item "colorize_warn" +Color for warnings? +.IP "colorize_debug" 2 +.IX Item "colorize_debug" +Color for debugging messages? +.IP "commandnumber_in_prompt" 2 +.IX Item "commandnumber_in_prompt" +The prompt of the cpan shell can contain the current command number +for easier tracking of the session or be a plain string. +.Sp +Do you want the command number in the prompt (yes/no)? +.IP "connect_to_internet_ok" 2 +.IX Item "connect_to_internet_ok" +If you have never defined your own \f(CW\*(C`urllist\*(C'\fR in your configuration +then \f(CW\*(C`CPAN.pm\*(C'\fR will be hesitant to use the built in default sites for +downloading. It will ask you once per session if a connection to the +internet is \s-1OK\s0 and only if you say yes, it will try to connect. But to +avoid this question, you can choose your favorite download sites once +and get away with it. Or, if you have no favorite download sites +answer yes to the following question. +.Sp +If no urllist has been chosen yet, would you prefer \s-1CPAN\s0.pm to connect +to the built-in default sites without asking? (yes/no)? +.IP "ftp_passive" 2 +.IX Item "ftp_passive" +Shall we always set the \s-1FTP_PASSIVE\s0 environment variable when dealing +with ftp download (yes/no)? +.IP "ftpstats_period" 2 +.IX Item "ftpstats_period" +Statistics about downloads are truncated by size and period +simultaneously. +.Sp +How many days shall we keep statistics about downloads? +.IP "ftpstats_size" 2 +.IX Item "ftpstats_size" +Statistics about downloads are truncated by size and period +simultaneously. Setting this to zero or negative disables download +statistics. +.Sp +How many items shall we keep in the statistics about downloads? +.IP "getcwd" 2 +.IX Item "getcwd" +\&\s-1CPAN\s0.pm changes the current working directory often and needs to +determine its own current working directory. Per default it uses +Cwd::cwd but if this doesn't work on your system for some reason, +alternatives can be configured according to the following table: +.Sp +.Vb 5 +\& cwd Cwd::cwd +\& getcwd Cwd::getcwd +\& fastcwd Cwd::fastcwd +\& getdcwd Cwd::getdcwd +\& backtickcwd external command cwd +.Ve +.Sp +Preferred method for determining the current working directory? +.IP "halt_on_failure" 2 +.IX Item "halt_on_failure" +Normally, \s-1CPAN\s0.pm continues processing the full list of targets and +dependencies, even if one of them fails. However, you can specify +that \s-1CPAN\s0 should halt after the first failure. (Note that optional +recommended or suggested modules that fail will not cause a halt.) +.Sp +Do you want to halt on failure (yes/no)? +.IP "histfile" 2 +.IX Item "histfile" +If you have one of the readline packages (Term::ReadLine::Perl, +Term::ReadLine::Gnu, possibly others) installed, the interactive \s-1CPAN\s0 +shell will have history support. The next two questions deal with the +filename of the history file and with its size. If you do not want to +set this variable, please hit \s-1SPACE ENTER\s0 to the following question. +.Sp +File to save your history? +.IP "histsize" 2 +.IX Item "histsize" +Number of lines to save? +.IP "inactivity_timeout" 2 +.IX Item "inactivity_timeout" +Sometimes you may wish to leave the processes run by \s-1CPAN\s0 alone +without caring about them. Because the Makefile.PL or the Build.PL +sometimes contains question you're expected to answer, you can set a +timer that will kill a 'perl Makefile.PL' process after the specified +time in seconds. +.Sp +If you set this value to 0, these processes will wait forever. This is +the default and recommended setting. +.Sp +Timeout for inactivity during {Makefile,Build}.PL? +.IP "index_expire" 2 +.IX Item "index_expire" +The \s-1CPAN\s0 indexes are usually rebuilt once or twice per hour, but the +typical \s-1CPAN\s0 mirror mirrors only once or twice per day. Depending on +the quality of your mirror and your desire to be on the bleeding edge, +you may want to set the following value to more or less than one day +(which is the default). It determines after how many days \s-1CPAN\s0.pm +downloads new indexes. +.Sp +Let the index expire after how many days? +.IP "inhibit_startup_message" 2 +.IX Item "inhibit_startup_message" +When the \s-1CPAN\s0 shell is started it normally displays a greeting message +that contains the running version and the status of readline support. +.Sp +Do you want to turn this message off? +.IP "keep_source_where" 2 +.IX Item "keep_source_where" +Unless you are accessing the \s-1CPAN\s0 on your filesystem via a file: \s-1URL, +CPAN\s0.pm needs to keep the source files it downloads somewhere. Please +supply a directory where the downloaded files are to be kept. +.Sp +Download target directory? +.IP "load_module_verbosity" 2 +.IX Item "load_module_verbosity" +When \s-1CPAN\s0.pm loads a module it needs for some optional feature, it +usually reports about module name and version. Choose 'v' to get this +message, 'none' to suppress it. +.Sp +Verbosity level for loading modules (none or v)? +.IP "makepl_arg" 2 +.IX Item "makepl_arg" +Every Makefile.PL is run by perl in a separate process. Likewise we +run 'make' and 'make install' in separate processes. If you have +any parameters (e.g. \s-1PREFIX, UNINST\s0 or the like) you want to +pass to the calls, please specify them here. +.Sp +If you don't understand this question, just press \s-1ENTER.\s0 +.Sp +Typical frequently used settings: +.Sp +.Vb 1 +\& PREFIX=~/perl # non\-root users (please see manual for more hints) +.Ve +.Sp +Parameters for the 'perl Makefile.PL' command? +.IP "make_arg" 2 +.IX Item "make_arg" +Parameters for the 'make' command? Typical frequently used setting: +.Sp +.Vb 1 +\& \-j3 # dual processor system (on GNU make) +.Ve +.Sp +Your choice: +.IP "make_install_arg" 2 +.IX Item "make_install_arg" +Parameters for the 'make install' command? +Typical frequently used setting: +.Sp +.Vb 2 +\& UNINST=1 # to always uninstall potentially conflicting files +\& # (but do NOT use with local::lib or INSTALL_BASE) +.Ve +.Sp +Your choice: +.IP "make_install_make_command" 2 +.IX Item "make_install_make_command" +Do you want to use a different make command for 'make install'? +Cautious people will probably prefer: +.Sp +.Vb 5 +\& su root \-c make +\& or +\& sudo make +\& or +\& /path1/to/sudo \-u admin_account /path2/to/make +.Ve +.Sp +or some such. Your choice: +.IP "mbuildpl_arg" 2 +.IX Item "mbuildpl_arg" +A Build.PL is run by perl in a separate process. Likewise we run +\&'./Build' and './Build install' in separate processes. If you have any +parameters you want to pass to the calls, please specify them here. +.Sp +Typical frequently used settings: +.Sp +.Vb 1 +\& \-\-install_base /home/xxx # different installation directory +.Ve +.Sp +Parameters for the 'perl Build.PL' command? +.IP "mbuild_arg" 2 +.IX Item "mbuild_arg" +Parameters for the './Build' command? Setting might be: +.Sp +.Vb 1 +\& \-\-extra_linker_flags \-L/usr/foo/lib # non\-standard library location +.Ve +.Sp +Your choice: +.IP "mbuild_install_arg" 2 +.IX Item "mbuild_install_arg" +Parameters for the './Build install' command? Typical frequently used +setting: +.Sp +.Vb 2 +\& \-\-uninst 1 # uninstall conflicting files +\& # (but do NOT use with local::lib or INSTALL_BASE) +.Ve +.Sp +Your choice: +.IP "mbuild_install_build_command" 2 +.IX Item "mbuild_install_build_command" +Do you want to use a different command for './Build install'? Sudo +users will probably prefer: +.Sp +.Vb 5 +\& su root \-c ./Build +\& or +\& sudo ./Build +\& or +\& /path1/to/sudo \-u admin_account ./Build +.Ve +.Sp +or some such. Your choice: +.IP "pager" 2 +.IX Item "pager" +What is your favorite pager program? +.IP "prefer_installer" 2 +.IX Item "prefer_installer" +When you have Module::Build installed and a module comes with both a +Makefile.PL and a Build.PL, which shall have precedence? +.Sp +The main two standard installer modules are the old and well +established ExtUtils::MakeMaker (for short: \s-1EUMM\s0) which uses the +Makefile.PL. And the next generation installer Module::Build (\s-1MB\s0) +which works with the Build.PL (and often comes with a Makefile.PL +too). If a module comes only with one of the two we will use that one +but if both are supplied then a decision must be made between \s-1EUMM\s0 and +\&\s-1MB.\s0 See also http://rt.cpan.org/Ticket/Display.html?id=29235 for a +discussion about the right default. +.Sp +Or, as a third option you can choose \s-1RAND\s0 which will make a random +decision (something regular \s-1CPAN\s0 testers will enjoy). +.Sp +In case you can choose between running a Makefile.PL or a Build.PL, +which installer would you prefer (\s-1EUMM\s0 or \s-1MB\s0 or \s-1RAND\s0)? +.IP "prefs_dir" 2 +.IX Item "prefs_dir" +\&\s-1CPAN\s0.pm can store customized build environments based on regular +expressions for distribution names. These are \s-1YAML\s0 files where the +default options for \s-1CPAN\s0.pm and the environment can be overridden and +dialog sequences can be stored that can later be executed by an +Expect.pm object. The \s-1CPAN\s0.pm distribution comes with some prefab \s-1YAML\s0 +files that cover sample distributions that can be used as blueprints +to store your own prefs. Please check out the distroprefs/ directory of +the \s-1CPAN\s0.pm distribution to get a quick start into the prefs system. +.Sp +Directory where to store default options/environment/dialogs for +building modules that need some customization? +.IP "prerequisites_policy" 2 +.IX Item "prerequisites_policy" +The \s-1CPAN\s0 module can detect when a module which you are trying to build +depends on prerequisites. If this happens, it can build the +prerequisites for you automatically ('follow'), ask you for +confirmation ('ask'), or just ignore them ('ignore'). Choosing +\&'follow' also sets \s-1PERL_AUTOINSTALL\s0 and \s-1PERL_EXTUTILS_AUTOINSTALL\s0 for +\&\*(L"\-\-defaultdeps\*(R" if not already set. +.Sp +Please set your policy to one of the three values. +.Sp +Policy on building prerequisites (follow, ask or ignore)? +.IP "randomize_urllist" 2 +.IX Item "randomize_urllist" +\&\s-1CPAN\s0.pm can introduce some randomness when using hosts for download +that are configured in the urllist parameter. Enter a numeric value +between 0 and 1 to indicate how often you want to let \s-1CPAN\s0.pm try a +random host from the urllist. A value of one specifies to always use a +random host as the first try. A value of zero means no randomness at +all. Anything in between specifies how often, on average, a random +host should be tried first. +.Sp +Randomize parameter +.IP "recommends_policy" 2 +.IX Item "recommends_policy" +(Experimental feature!) Some \s-1CPAN\s0 modules recommend additional, optional dependencies. These should +generally be installed except in resource constrained environments. When this +policy is true, recommended modules will be included with required modules. +.Sp +Include recommended modules? +.IP "scan_cache" 2 +.IX Item "scan_cache" +By default, each time the \s-1CPAN\s0 module is started, cache scanning is +performed to keep the cache size in sync ('atstart'). Alternatively, +scanning and cleanup can happen when \s-1CPAN\s0 exits ('atexit'). To prevent +any cache cleanup, answer 'never'. +.Sp +Perform cache scanning ('atstart', 'atexit' or 'never')? +.IP "shell" 2 +.IX Item "shell" +What is your favorite shell? +.IP "show_unparsable_versions" 2 +.IX Item "show_unparsable_versions" +During the 'r' command \s-1CPAN\s0.pm finds modules without version number. +When the command finishes, it prints a report about this. If you +want this report to be very verbose, say yes to the following +variable. +.Sp +Show all individual modules that have no \f(CW$VERSION\fR? +.IP "show_upload_date" 2 +.IX Item "show_upload_date" +The 'd' and the 'm' command normally only show you information they +have in their in-memory database and thus will never connect to the +internet. If you set the 'show_upload_date' variable to true, 'm' and +\&'d' will additionally show you the upload date of the module or +distribution. Per default this feature is off because it may require a +net connection to get at the upload date. +.Sp +Always try to show upload date with 'd' and 'm' command (yes/no)? +.IP "show_zero_versions" 2 +.IX Item "show_zero_versions" +During the 'r' command \s-1CPAN\s0.pm finds modules with a version number of +zero. When the command finishes, it prints a report about this. If you +want this report to be very verbose, say yes to the following +variable. +.Sp +Show all individual modules that have a \f(CW$VERSION\fR of zero? +.IP "suggests_policy" 2 +.IX Item "suggests_policy" +(Experimental feature!) Some \s-1CPAN\s0 modules suggest additional, optional dependencies. These 'suggest' +dependencies provide enhanced operation. When this policy is true, suggested +modules will be included with required modules. +.Sp +Include suggested modules? +.IP "tar_verbosity" 2 +.IX Item "tar_verbosity" +When \s-1CPAN\s0.pm uses the tar command, which switch for the verbosity +shall be used? Choose 'none' for quiet operation, 'v' for file +name listing, 'vv' for full listing. +.Sp +Tar command verbosity level (none or v or vv)? +.IP "term_is_latin" 2 +.IX Item "term_is_latin" +The next option deals with the charset (a.k.a. character set) your +terminal supports. In general, \s-1CPAN\s0 is English speaking territory, so +the charset does not matter much but some \s-1CPAN\s0 have names that are +outside the \s-1ASCII\s0 range. If your terminal supports \s-1UTF\-8,\s0 you should +say no to the next question. If it expects \s-1ISO\-8859\-1\s0 (also known as +\&\s-1LATIN1\s0) then you should say yes. If it supports neither, your answer +does not matter because you will not be able to read the names of some +authors anyway. If you answer no, names will be output in \s-1UTF\-8.\s0 +.Sp +Your terminal expects \s-1ISO\-8859\-1\s0 (yes/no)? +.IP "term_ornaments" 2 +.IX Item "term_ornaments" +When using Term::ReadLine, you can turn ornaments on so that your +input stands out against the output from \s-1CPAN\s0.pm. +.Sp +Do you want to turn ornaments on? +.IP "test_report" 2 +.IX Item "test_report" +The goal of the \s-1CPAN\s0 Testers project (http://testers.cpan.org/) is to +test as many \s-1CPAN\s0 packages as possible on as many platforms as +possible. This provides valuable feedback to module authors and +potential users to identify bugs or platform compatibility issues and +improves the overall quality and value of \s-1CPAN.\s0 +.Sp +One way you can contribute is to send test results for each module +that you install. If you install the CPAN::Reporter module, you have +the option to automatically generate and deliver test reports to \s-1CPAN\s0 +Testers whenever you run tests on a \s-1CPAN\s0 package. +.Sp +See the CPAN::Reporter documentation for additional details and +configuration settings. If your firewall blocks outgoing traffic, +you may need to configure CPAN::Reporter before sending reports. +.Sp +Generate test reports if CPAN::Reporter is installed (yes/no)? +.IP "perl5lib_verbosity" 2 +.IX Item "perl5lib_verbosity" +When \s-1CPAN\s0.pm extends \f(CW@INC\fR via \s-1PERL5LIB,\s0 it prints a list of +directories added (or a summary of how many directories are +added). Choose 'v' to get this message, 'none' to suppress it. +.Sp +Verbosity level for \s-1PERL5LIB\s0 changes (none or v)? +.IP "prefer_external_tar" 2 +.IX Item "prefer_external_tar" +Per default all untar operations are done with the perl module +Archive::Tar; by setting this variable to true the external tar +command is used if available; on Unix this is usually preferred +because they have a reliable and fast gnutar implementation. +.Sp +Use the external tar program instead of Archive::Tar? +.IP "trust_test_report_history" 2 +.IX Item "trust_test_report_history" +When a distribution has already been tested by CPAN::Reporter on +this machine, \s-1CPAN\s0 can skip the test phase and just rely on the +test report history instead. +.Sp +Note that this will not apply to distributions that failed tests +because of missing dependencies. Also, tests can be run +regardless of the history using \*(L"force\*(R". +.Sp +Do you want to rely on the test report history (yes/no)? +.IP "urllist_ping_external" 2 +.IX Item "urllist_ping_external" +When automatic selection of the nearest cpan mirrors is performed, +turn on the use of the external ping via Net::Ping::External. This is +recommended in the case the local network has a transparent proxy. +.Sp +Do you want to use the external ping command when autoselecting +mirrors? +.IP "urllist_ping_verbose" 2 +.IX Item "urllist_ping_verbose" +When automatic selection of the nearest cpan mirrors is performed, +this option can be used to turn on verbosity during the selection +process. +.Sp +Do you want to see verbosity turned on when autoselecting mirrors? +.IP "use_prompt_default" 2 +.IX Item "use_prompt_default" +When this is true, \s-1CPAN\s0 will set \s-1PERL_MM_USE_DEFAULT\s0 to a true +value. This causes ExtUtils::MakeMaker (and compatible) prompts +to use default values instead of stopping to prompt you to answer +questions. It also sets \s-1NONINTERACTIVE_TESTING\s0 to a true value to +signal more generally that distributions should not try to +interact with you. +.Sp +Do you want to use prompt defaults (yes/no)? +.IP "use_sqlite" 2 +.IX Item "use_sqlite" +CPAN::SQLite is a layer between the index files that are downloaded +from the \s-1CPAN\s0 and \s-1CPAN\s0.pm that speeds up metadata queries and reduces +memory consumption of \s-1CPAN\s0.pm considerably. +.Sp +Use CPAN::SQLite if available? (yes/no)? +.IP "version_timeout" 2 +.IX Item "version_timeout" +This timeout prevents \s-1CPAN\s0 from hanging when trying to parse a +pathologically coded \f(CW$VERSION\fR from a module. +.Sp +The default is 15 seconds. If you set this value to 0, no timeout +will occur, but this is not recommended. +.Sp +Timeout for parsing module versions? +.IP "yaml_load_code" 2 +.IX Item "yaml_load_code" +Both \s-1YAML\s0.pm and YAML::Syck are capable of deserialising code. As this +requires a string eval, which might be a security risk, you can use +this option to enable or disable the deserialisation of code via +CPAN::DeferredCode. (Note: This does not work under perl 5.6) +.Sp +Do you want to enable code deserialisation (yes/no)? +.IP "yaml_module" 2 +.IX Item "yaml_module" +At the time of this writing (2009\-03) there are three \s-1YAML\s0 +implementations working: \s-1YAML,\s0 YAML::Syck, and \s-1YAML::XS.\s0 The latter +two are faster but need a C compiler installed on your system. There +may be more alternative \s-1YAML\s0 conforming modules. When I tried two +other players, YAML::Tiny and YAML::Perl, they seemed not powerful +enough to work with \s-1CPAN\s0.pm. This may have changed in the meantime. +.Sp +Which \s-1YAML\s0 implementation would you prefer? +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AHandleConfig.3 b/data/miniconda3/man/man3/CPAN%3A%3AHandleConfig.3 new file mode 100644 index 0000000000000000000000000000000000000000..8cdc848c56aa63e3bd1afca7da390a4c01f65c31 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AHandleConfig.3 @@ -0,0 +1,175 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::HandleConfig 3" +.TH CPAN::HandleConfig 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::HandleConfig \- internal configuration handling for CPAN.pm +.ie n .SS """CLASS\->safe_quote ITEM""" +.el .SS "\f(CWCLASS\->safe_quote ITEM\fP" +.IX Subsection "CLASS->safe_quote ITEM" +Quotes an item to become safe against spaces +in shell interpolation. An item is enclosed +in double quotes if: +.PP +.Vb 2 +\& \- the item contains spaces in the middle +\& \- the item does not start with a quote +.Ve +.PP +This happens to avoid shell interpolation +problems when whitespace is present in +directory names. +.PP +This method uses \f(CW\*(C`commands_quote\*(C'\fR to determine +the correct quote. If \f(CW\*(C`commands_quote\*(C'\fR is +a space, no quoting will take place. +.PP +if it starts and ends with the same quote character: leave it as it is +.PP +if it contains no whitespace: leave it as it is +.PP +if it contains whitespace, then +.PP +if it contains quotes: better leave it as it is +.PP +else: quote it with the correct quote type for the box we're on +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AKwalify.3 b/data/miniconda3/man/man3/CPAN%3A%3AKwalify.3 new file mode 100644 index 0000000000000000000000000000000000000000..fd15715453711b00b67255d5961d15993a3aaf99 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AKwalify.3 @@ -0,0 +1,174 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Kwalify 3" +.TH CPAN::Kwalify 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Kwalify \- Interface between CPAN.pm and Kwalify.pm +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use CPAN::Kwalify; +\& validate($schema_name, $data, $file, $doc); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.ie n .IP "_validate($schema_name, $data, $file, $doc)" 4 +.el .IP "_validate($schema_name, \f(CW$data\fR, \f(CW$file\fR, \f(CW$doc\fR)" 4 +.IX Item "_validate($schema_name, $data, $file, $doc)" +\&\f(CW$schema_name\fR is the name of a supported schema. Currently only +\&\f(CW\*(C`distroprefs\*(C'\fR is supported. \f(CW$data\fR is the data to be validated. \f(CW$file\fR +is the absolute path to the file the data are coming from. \f(CW$doc\fR is the +index of the document within \f(CW$doc\fR that is to be validated. The last +two arguments are only there for better error reporting. +.Sp +Relies on being called from within \s-1CPAN\s0.pm. +.Sp +Dies if something fails. Does not return anything useful. +.IP "yaml($schema_name)" 4 +.IX Item "yaml($schema_name)" +Returns the \s-1YAML\s0 text of that schema. Dies if something fails. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andreas Koenig \f(CW\*(C`\*(C'\fR +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AConverter.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AConverter.3 new file mode 100644 index 0000000000000000000000000000000000000000..732eaad8d717e9008975ebc3f955e32066996be6 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AConverter.3 @@ -0,0 +1,258 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Converter 3" +.TH CPAN::Meta::Converter 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Converter \- Convert CPAN distribution metadata structures +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& my $struct = decode_json_file(\*(AqMETA.json\*(Aq); +\& +\& my $cmc = CPAN::Meta::Converter\->new( $struct ); +\& +\& my $new_struct = $cmc\->convert( version => "2" ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module converts \s-1CPAN\s0 Meta structures from one form to another. The +primary use is to convert older structures to the most modern version of +the specification, but other transformations may be implemented in the +future as needed. (E.g. stripping all custom fields or stripping all +optional fields.) +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $cmc = CPAN::Meta::Converter\->new( $struct ); +.Ve +.PP +The constructor should be passed a valid metadata structure but invalid +structures are accepted. If no meta-spec version is provided, version 1.0 will +be assumed. +.PP +Optionally, you can provide a \f(CW\*(C`default_version\*(C'\fR argument after \f(CW$struct\fR: +.PP +.Vb 1 +\& my $cmc = CPAN::Meta::Converter\->new( $struct, default_version => "1.4" ); +.Ve +.PP +This is only needed when converting a metadata fragment that does not include a +\&\f(CW\*(C`meta\-spec\*(C'\fR field. +.SS "convert" +.IX Subsection "convert" +.Vb 1 +\& my $new_struct = $cmc\->convert( version => "2" ); +.Ve +.PP +Returns a new hash reference with the metadata converted to a different form. +\&\f(CW\*(C`convert\*(C'\fR will die if any conversion/standardization still results in an +invalid structure. +.PP +Valid parameters include: +.IP "\(bu" 4 +\&\f(CW\*(C`version\*(C'\fR \*(-- Indicates the desired specification version (e.g. \*(L"1.0\*(R", \*(L"1.1\*(R" ... \*(L"1.4\*(R", \*(L"2\*(R"). +Defaults to the latest version of the \s-1CPAN\s0 Meta Spec. +.PP +Conversion proceeds through each version in turn. For example, a version 1.2 +structure might be converted to 1.3 then 1.4 then finally to version 2. The +conversion process attempts to clean-up simple errors and standardize data. +For example, if \f(CW\*(C`author\*(C'\fR is given as a scalar, it will converted to an array +reference containing the item. (Converting a structure to its own version will +also clean-up and standardize.) +.PP +When data are cleaned and standardized, missing or invalid fields will be +replaced with sensible defaults when possible. This may be lossy or imprecise. +For example, some badly structured \s-1META\s0.yml files on \s-1CPAN\s0 have prerequisite +modules listed as both keys and values: +.PP +.Vb 1 +\& requires => { \*(AqFoo::Bar\*(Aq => \*(AqBam::Baz\*(Aq } +.Ve +.PP +These would be split and each converted to a prerequisite with a minimum +version of zero. +.PP +When some mandatory fields are missing or invalid, the conversion will attempt +to provide a sensible default or will fill them with a value of 'unknown'. For +example a missing or unrecognized \f(CW\*(C`license\*(C'\fR field will result in a \f(CW\*(C`license\*(C'\fR +field of 'unknown'. Fields that may get an 'unknown' include: +.IP "\(bu" 4 +abstract +.IP "\(bu" 4 +author +.IP "\(bu" 4 +license +.SS "upgrade_fragment" +.IX Subsection "upgrade_fragment" +.Vb 1 +\& my $new_struct = $cmc\->upgrade_fragment; +.Ve +.PP +Returns a new hash reference with the metadata converted to the latest version +of the \s-1CPAN\s0 Meta Spec. No validation is done on the result \*(-- you must +validate after merging fragments into a complete metadata document. +.PP +Available since version 2.141170. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker. +Bugs can be submitted through the web interface at + +.PP +When submitting a bug or request, please include a test-file or a patch to an +existing test-file that illustrates the bug or desired feature. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AFeature.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AFeature.3 new file mode 100644 index 0000000000000000000000000000000000000000..b18140f8f0d82b5447071a54a403087851ed978c --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AFeature.3 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Feature 3" +.TH CPAN::Meta::Feature 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Feature \- an optional feature provided by a CPAN distribution +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A CPAN::Meta::Feature object describes an optional feature offered by a \s-1CPAN\s0 +distribution and specified in the distribution's \fI\s-1META\s0.json\fR (or \fI\s-1META\s0.yml\fR) +file. +.PP +For the most part, this class will only be used when operating on the result of +the \f(CW\*(C`feature\*(C'\fR or \f(CW\*(C`features\*(C'\fR methods on a CPAN::Meta object. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $feature = CPAN::Meta::Feature\->new( $identifier => \e%spec ); +.Ve +.PP +This returns a new Feature object. The \f(CW%spec\fR argument to the constructor +should be the same as the value of the \f(CW\*(C`optional_feature\*(C'\fR entry in the +distmeta. It must contain entries for \f(CW\*(C`description\*(C'\fR and \f(CW\*(C`prereqs\*(C'\fR. +.SS "identifier" +.IX Subsection "identifier" +This method returns the feature's identifier. +.SS "description" +.IX Subsection "description" +This method returns the feature's long description. +.SS "prereqs" +.IX Subsection "prereqs" +This method returns the feature's prerequisites as a CPAN::Meta::Prereqs +object. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker. +Bugs can be submitted through the web interface at + +.PP +When submitting a bug or request, please include a test-file or a patch to an +existing test-file that illustrates the bug or desired feature. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_0.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_0.3 new file mode 100644 index 0000000000000000000000000000000000000000..61d1e4375da6ef3303d03f0b8b78a2188499e9fe --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_0.3 @@ -0,0 +1,343 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History::Meta_1_0 3" +.TH CPAN::Meta::History::Meta_1_0 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History::Meta_1_0 \- Version 1.0 metadata specification for META.yml +.SH "PREFACE" +.IX Header "PREFACE" +This is a historical copy of the version 1.0 specification for \fI\s-1META\s0.yml\fR +files, copyright by Ken Williams and licensed under the same terms as Perl +itself. +.PP +Modifications from the original: +.IP "\(bu" 4 +Conversion from the original \s-1HTML\s0 to \s-1POD\s0 format +.IP "\(bu" 4 +Include list of valid licenses from Module::Build 0.17 rather than +linking to the module, with minor updates to text and links to reflect +versions at the time of publication. +.IP "\(bu" 4 +Fixed some dead links to point to active resources. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 1.0 of the \fI\s-1META\s0.yml\fR specification. +.PP +The \s-1META\s0.yml file describes important properties of contributed Perl +distributions such as the ones found on \s-1CPAN\s0 . It is +typically created by tools like Module::Build and ExtUtils::MakeMaker. +.PP +The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful to people +maintaining module collections (like \s-1CPAN\s0), for people writing +installation tools (like \s-1CPAN\s0 or \s-1CPANPLUS\s0), or just people who want to +know some stuff about a distribution before downloading it and starting to +install it. +.SH "Format" +.IX Header "Format" +\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format. The +reasons we chose \s-1YAML\s0 instead of, say, \s-1XML\s0 or Data::Dumper are discussed in +this thread +on the MakeMaker mailing list. +.PP +The first line of a \fI\s-1META\s0.yml\fR file should be a valid +\&\s-1YAML\s0 document header +like \f(CW"\-\-\- #YAML:1.0"\fR +.SH "Fields" +.IX Header "Fields" +The rest of the \s-1META\s0.yml file is one big \s-1YAML\s0 +mapping , +whose keys are described here. +.IP "name" 4 +.IX Item "name" +Example: \f(CW\*(C`Module\-Build\*(C'\fR +.Sp +The name of the distribution. Often created by taking the \*(L"main +module\*(R" in the distribution and changing \*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's +completely different, however, as in the case of the +libwww-perl distribution. +.IP "version" 4 +.IX Item "version" +Example: \f(CW0.16\fR +.Sp +The version of the distribution to which the \s-1META\s0.yml file refers. +.IP "license" 4 +.IX Item "license" +Example: \f(CW\*(C`perl\*(C'\fR +.Sp +The license under which this distribution may be used and +redistributed. +.Sp +Must be one of the following licenses: +.RS 4 +.IP "perl" 4 +.IX Item "perl" +The distribution may be copied and redistributed under the same terms as perl +itself (this is by far the most common licensing option for modules on \s-1CPAN\s0). +This is a dual license, in which the user may choose between either the \s-1GPL\s0 +version 1 or the Artistic version 1 license. +.IP "gpl" 4 +.IX Item "gpl" +The distribution is distributed under the terms of the \s-1GNU\s0 General Public +License version 2 (). +.IP "lgpl" 4 +.IX Item "lgpl" +The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General +Public License version 2 (). +.IP "artistic" 4 +.IX Item "artistic" +The distribution is licensed under the Artistic License version 1, as specified +by the Artistic file in the standard perl distribution +(). +.IP "bsd" 4 +.IX Item "bsd" +The distribution is licensed under the \s-1BSD\s0 3\-Clause License +(). +.IP "open_source" 4 +.IX Item "open_source" +The distribution is licensed under some other Open Source Initiative-approved +license listed at . +.IP "unrestricted" 4 +.IX Item "unrestricted" +The distribution is licensed under a license that is \fBnot\fR approved by +www.opensource.org but that allows distribution +without restrictions. +.IP "restrictive" 4 +.IX Item "restrictive" +The distribution may not be redistributed without special permission from the +author and/or copyright holder. +.RE +.RS 4 +.RE +.IP "distribution_type" 4 +.IX Item "distribution_type" +Example: \f(CW\*(C`module\*(C'\fR +.Sp +What kind of stuff is contained in this distribution. Most things on +\&\s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean a collection of +modules), but some things are \f(CW\*(C`script\*(C'\fRs. +.IP "requires" 4 +.IX Item "requires" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules this distribution requires for proper +operation. The keys are the module names, and the values are version +specifications as described in the +documentation for Module::Build's \*(L"requires\*(R" parameter. +.Sp +\&\fINote: the exact nature of the fancy specifications like +\&\f(CI">= 1.2, != 1.5, < 2.0"\fI is subject to +change. Advance notice will be given here. The simple specifications +like \f(CI"1.2"\fI will not change in format.\fR +.IP "recommends" 4 +.IX Item "recommends" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules this distribution recommends for enhanced +operation. +.IP "build_requires" 4 +.IX Item "build_requires" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules required for building and/or testing of +this distribution. These dependencies are not required after the +module is installed. +.IP "conflicts" 4 +.IX Item "conflicts" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules that cannot be installed while this +distribution is installed. This is a pretty uncommon situation. +.IP "dynamic_config" 4 +.IX Item "dynamic_config" +Example: \f(CW0\fR +.Sp +A boolean flag indicating whether a \fIBuild.PL\fR or +\&\fIMakefile.PL\fR (or similar) must be executed, or whether this +module can be built, tested and installed solely from consulting its +metadata file. The main reason to set this to a true value if that +your module performs some dynamic configuration (asking questions, +sensing the environment, etc.) as part of its build/install process. +.Sp +Currently Module::Build doesn't actually do anything with +this flag \- it's probably going to be up to higher-level tools like +\&\s-1CPAN\s0.pm to do something useful with it. It can potentially +bring lots of security, packaging, and convenience improvements. +.IP "generated_by" 4 +.IX Item "generated_by" +Example: \f(CW\*(C`Module::Build version 0.16\*(C'\fR +.Sp +Indicates the tool that was used to create this \fI\s-1META\s0.yml\fR file. It's +good form to include both the name of the tool and its version, but +this field is essentially opaque, at least for the moment. +.SH "Related Projects" +.IX Header "Related Projects" +.IP "\s-1DOAP\s0" 4 +.IX Item "DOAP" +An \s-1RDF\s0 vocabulary to describe software projects. . +.SH "History" +.IX Header "History" +.IP "\(bu" 4 +\&\fBMarch 14, 2003\fR (Pi day) \- created version 1.0 of this document. +.IP "\(bu" 4 +\&\fBMay 8, 2003\fR \- added the \*(L"dynamic_config\*(R" field, which was missing from the +initial version. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_1.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_1.3 new file mode 100644 index 0000000000000000000000000000000000000000..356dfa8b941a05631a73b431e13375fc42e9ad65 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_1.3 @@ -0,0 +1,401 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History::Meta_1_1 3" +.TH CPAN::Meta::History::Meta_1_1 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History::Meta_1_1 \- Version 1.1 metadata specification for META.yml +.SH "PREFACE" +.IX Header "PREFACE" +This is a historical copy of the version 1.1 specification for \fI\s-1META\s0.yml\fR +files, copyright by Ken Williams and licensed under the same terms as Perl +itself. +.PP +Modifications from the original: +.IP "\(bu" 4 +Conversion from the original \s-1HTML\s0 to \s-1POD\s0 format +.IP "\(bu" 4 +Include list of valid licenses from Module::Build 0.18 rather than +linking to the module, with minor updates to text and links to reflect +versions at the time of publication. +.IP "\(bu" 4 +Fixed some dead links to point to active resources. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 1.1 of the \fI\s-1META\s0.yml\fR specification. +.PP +The \fI\s-1META\s0.yml\fR file describes important properties of contributed Perl +distributions such as the ones found on \s-1CPAN\s0 . It is +typically created by tools like Module::Build and ExtUtils::MakeMaker. +.PP +The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful to people +maintaining module collections (like \s-1CPAN\s0), for people writing +installation tools (like \s-1CPAN\s0 or \s-1CPANPLUS\s0), or just people who want to +know some stuff about a distribution before downloading it and starting to +install it. +.SH "Format" +.IX Header "Format" +\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format. The +reasons we chose \s-1YAML\s0 instead of, say, \s-1XML\s0 or Data::Dumper are discussed in +this thread +on the MakeMaker mailing list. +.PP +The first line of a \fI\s-1META\s0.yml\fR file should be a valid +\&\s-1YAML\s0 document header +like \f(CW"\-\-\- #YAML:1.0"\fR +.SH "Fields" +.IX Header "Fields" +The rest of the \s-1META\s0.yml file is one big \s-1YAML\s0 +mapping , +whose keys are described here. +.IP "name" 4 +.IX Item "name" +Example: \f(CW\*(C`Module\-Build\*(C'\fR +.Sp +The name of the distribution. Often created by taking the \*(L"main +module\*(R" in the distribution and changing \*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's +completely different, however, as in the case of the +libwww-perl distribution. +.IP "version" 4 +.IX Item "version" +Example: \f(CW0.16\fR +.Sp +The version of the distribution to which the \s-1META\s0.yml file refers. +This is a mandatory field. +.Sp +The version is essentially an arbitrary string, but \fImust\fR be +only \s-1ASCII\s0 characters, and \fIstrongly should\fR be of the format +integer-dot-digit-digit, i.e. \f(CW25.57\fR, optionally followed by +underscore-digit-digit, i.e. \f(CW\*(C`25.57_04\*(C'\fR. +.Sp +The standard tools that deal with module distribution (\s-1PAUSE, CPAN,\s0 +etc.) form an identifier for each distribution by joining the 'name' +and 'version' attributes with a dash (\f(CW\*(C`\-\*(C'\fR) character. Tools +who are prepared to deal with distributions that have no version +numbers generally omit the dash as well. +.IP "license" 4 +.IX Item "license" +Example: \f(CW\*(C`perl\*(C'\fR +.Sp +a descriptive term for the licenses ... not authoritative, but must +be consistent with licensure statements in the READMEs, documentation, etc. +.Sp +The license under which this distribution may be used and +redistributed. +.Sp +Must be one of the following licenses: +.RS 4 +.IP "perl" 4 +.IX Item "perl" +The distribution may be copied and redistributed under the same terms as perl +itself (this is by far the most common licensing option for modules on \s-1CPAN\s0). +This is a dual license, in which the user may choose between either the \s-1GPL\s0 +version 1 or the Artistic version 1 license. +.IP "gpl" 4 +.IX Item "gpl" +The distribution is distributed under the terms of the \s-1GNU\s0 General Public +License version 2 (). +.IP "lgpl" 4 +.IX Item "lgpl" +The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General +Public License version 2 (). +.IP "artistic" 4 +.IX Item "artistic" +The distribution is licensed under the Artistic License version 1, as specified +by the Artistic file in the standard perl distribution +(). +.IP "bsd" 4 +.IX Item "bsd" +The distribution is licensed under the \s-1BSD\s0 3\-Clause License +(). +.IP "open_source" 4 +.IX Item "open_source" +The distribution is licensed under some other Open Source Initiative-approved +license listed at . +.IP "unrestricted" 4 +.IX Item "unrestricted" +The distribution is licensed under a license that is \fBnot\fR approved by +www.opensource.org but that allows distribution +without restrictions. +.IP "restrictive" 4 +.IX Item "restrictive" +The distribution may not be redistributed without special permission from the +author and/or copyright holder. +.RE +.RS 4 +.RE +.IP "license_uri" 4 +.IX Item "license_uri" +This should contain a \s-1URI\s0 where the exact terms of the license may be found. +.Sp +(change \*(L"unrestricted\*(R" to \*(L"redistributable\*(R"?) +.IP "distribution_type" 4 +.IX Item "distribution_type" +Example: \f(CW\*(C`module\*(C'\fR +.Sp +What kind of stuff is contained in this distribution. Most things on +\&\s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean a collection of +modules), but some things are \f(CW\*(C`script\*(C'\fRs. +.Sp +This field is basically meaningless, and tools (like Module::Build or +MakeMaker) will likely stop generating it in the future. +.IP "private" 4 +.IX Item "private" +\&\s-1WTF\s0 is going on here? +.Sp +index_ignore: any application that indexes the contents of +distributions (\s-1PAUSE,\s0 search.cpan.org) ought to ignore the items +(packages, files, directories, namespace hierarchies). +.IP "requires" 4 +.IX Item "requires" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules this distribution requires for proper +operation. The keys are the module names, and the values are version +specifications as described in the +documentation for Module::Build's \*(L"requires\*(R" parameter. +.Sp +\&\fINote: the exact nature of the fancy specifications like +\&\f(CI">= 1.2, != 1.5, < 2.0"\fI is subject to +change. Advance notice will be given here. The simple specifications +like \f(CI"1.2"\fI will not change in format.\fR +.IP "recommends" 4 +.IX Item "recommends" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules this distribution recommends for enhanced +operation. +.IP "build_requires" 4 +.IX Item "build_requires" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules required for building and/or testing of +this distribution. These dependencies are not required after the +module is installed. +.IP "conflicts" 4 +.IX Item "conflicts" +Example: +.Sp +.Vb 2 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.Sp +A \s-1YAML\s0 mapping +indicating the Perl modules that cannot be installed while this +distribution is installed. This is a pretty uncommon situation. +.Sp +\&\- possibly separate out test-time prereqs, complications include: can +tests be meaningfully preserved for later running? are test-time +prereqs in addition to build-time, or exclusive? +.Sp +\&\- make official location for installed *distributions*, which can +contain tests, etc. +.IP "dynamic_config" 4 +.IX Item "dynamic_config" +Example: \f(CW0\fR +.Sp +A boolean flag indicating whether a \fIBuild.PL\fR or +\&\fIMakefile.PL\fR (or similar) must be executed, or whether this +module can be built, tested and installed solely from consulting its +metadata file. The main reason to set this to a true value if that +your module performs some dynamic configuration (asking questions, +sensing the environment, etc.) as part of its build/install process. +.Sp +Currently Module::Build doesn't actually do anything with +this flag \- it's probably going to be up to higher-level tools like +\&\s-1CPAN\s0.pm to do something useful with it. It can potentially +bring lots of security, packaging, and convenience improvements. +.IP "generated_by" 4 +.IX Item "generated_by" +Example: \f(CW\*(C`Module::Build version 0.16\*(C'\fR +.Sp +Indicates the tool that was used to create this \fI\s-1META\s0.yml\fR file. It's +good form to include both the name of the tool and its version, but +this field is essentially opaque, at least for the moment. +.SS "Ingy's suggestions" +.IX Subsection "Ingy's suggestions" +.IP "short_description" 4 +.IX Item "short_description" +add as field, containing abstract, maximum 80 characters, suggested minimum 40 characters +.IP "description" 4 +.IX Item "description" +long version of abstract, should add? +.IP "maturity" 4 +.IX Item "maturity" +alpha, beta, gamma, mature, stable +.IP "author_id, owner_id" 4 +.IX Item "author_id, owner_id" +.PD 0 +.IP "categorization, keyword, chapter_id" 4 +.IX Item "categorization, keyword, chapter_id" +.IP "\s-1URL\s0 for further information" 4 +.IX Item "URL for further information" +.PD +could default to search.cpan.org on \s-1PAUSE\s0 +.IP "namespaces" 4 +.IX Item "namespaces" +can be specified for single elements by prepending +dotted-form, i.e. \*(L"com.example.my_application.my_property\*(R". Default +namespace for \s-1META\s0.yml is probably \*(L"org.cpan.meta_author\*(R" or +something. Precedent for this is Apple's Carbon namespaces, I think. +.SH "History" +.IX Header "History" +.IP "\(bu" 4 +\&\fBMarch 14, 2003\fR (Pi day) \- created version 1.0 of this document. +.IP "\(bu" 4 +\&\fBMay 8, 2003\fR \- added the \*(L"dynamic_config\*(R" field, which was missing from the +initial version. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_2.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_2.3 new file mode 100644 index 0000000000000000000000000000000000000000..613769edbafa4f8a992fa0e836c2ac932a14e11c --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_2.3 @@ -0,0 +1,787 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History::Meta_1_2 3" +.TH CPAN::Meta::History::Meta_1_2 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History::Meta_1_2 \- Version 1.2 metadata specification for META.yml +.SH "PREFACE" +.IX Header "PREFACE" +This is a historical copy of the version 1.2 specification for \fI\s-1META\s0.yml\fR +files, copyright by Ken Williams and licensed under the same terms as Perl +itself. +.PP +Modifications from the original: +.IP "\(bu" 4 +Various spelling corrections +.IP "\(bu" 4 +Include list of valid licenses from Module::Build 0.2611 rather than +linking to the module, with minor updates to text and links to reflect +versions at the time of publication. +.IP "\(bu" 4 +Fixed some dead links to point to active resources. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& \-\-\- #YAML:1.0 +\& name: Module\-Build +\& abstract: Build and install Perl modules +\& version: 0.20 +\& author: +\& \- Ken Williams +\& license: perl +\& distribution_type: module +\& requires: +\& Config: 0 +\& Cwd: 0 +\& Data::Dumper: 0 +\& ExtUtils::Install: 0 +\& File::Basename: 0 +\& File::Compare: 0 +\& File::Copy: 0 +\& File::Find: 0 +\& File::Path: 0 +\& File::Spec: 0 +\& IO::File: 0 +\& perl: 5.005_03 +\& recommends: +\& Archive::Tar: 1.00 +\& ExtUtils::Install: 0.3 +\& ExtUtils::ParseXS: 2.02 +\& Pod::Text: 0 +\& YAML: 0.35 +\& build_requires: +\& Test: 0 +\& urls: +\& license: http://dev.perl.org/licenses/ +\& meta\-spec: +\& version: 1.2 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.2.html +\& generated_by: Module::Build version 0.20 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 1.2 of the \fI\s-1META\s0.yml\fR specification. +.PP +The \fI\s-1META\s0.yml\fR file describes important properties of contributed +Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically +created by tools like Module::Build, Module::Install, and +ExtUtils::MakeMaker. +.PP +The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people +maintaining module collections (like \s-1CPAN\s0), for people writing +installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who +want to know some stuff about a distribution before downloading it and +starting to install it. +.PP +\&\fINote: The latest stable version of this specification can always be +found at , +and the latest development version (which may include things that +won't make it into the stable version can always be found at +.\fR +.SH "FORMAT" +.IX Header "FORMAT" +\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see +). +.PP +See the following links to learn why we chose \s-1YAML\s0 instead of, say, +\&\s-1XML\s0 or Data::Dumper: +.IP "\(bu" 4 +Module::Build design plans +.IP "\(bu" 4 +Not keen on \s-1YAML\s0 +.IP "\(bu" 4 +\&\s-1META\s0 Concerns +.SH "TERMINOLOGY" +.IX Header "TERMINOLOGY" +.IP "distribution" 4 +.IX Item "distribution" +This is the primary object described by the \fI\s-1META\s0.yml\fR +specification. In the context of this document it usually refers to a +collection of modules, scripts, and/or documents that are distributed +for other developers to use. +.IP "module" 4 +.IX Item "module" +This refers to a reusable library of code typically contained in a +single file. Currently, we primarily talk of perl modules, but this +specification should be open enough to apply to other languages as +well (ex. python, ruby). +.SH "VERSION SPECIFICATIONS" +.IX Header "VERSION SPECIFICATIONS" +Some fields require a version specification (ex. \*(L"requires\*(R", +\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.). This section details the +version specifications that are currently supported. +.PP +If a single version is listed, then that version is considered to be +the minimum version supported. +.PP +If 0 is given as the version number, then any version is supported. +.PP +Additionally, for more complicated requirements, the specification +supports a list of versions, each of which may be optionally preceded +by a relational operator. +.PP +Supported operators include < (less than), <= (less than or +equal), > (greater than), >= (greater than or equal), == (equal), and != +(not equal). +.PP +If a list is given then it is evaluated from left to right so that any +specifications in the list that conflict with a previous specification +are overridden by the later. +.PP +Examples: +.PP +.Vb 1 +\& >= 1.2, != 1.5, < 2.0 +.Ve +.PP +Any version from version 1.2 onward, except version 1.5, that also +precedes version 2.0. +.SH "HEADER" +.IX Header "HEADER" +The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document +header like \f(CW"\-\-\- #YAML:1.0"\fR. +.SH "FIELDS" +.IX Header "FIELDS" +The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys +are described here. +.SS "meta-spec" +.IX Subsection "meta-spec" +Example: +.PP +.Vb 3 +\& meta\-spec: +\& version: 1.2 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.2.html +.Ve +.PP +(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the +version of the \s-1META\s0.yml specification used. +.SS "name" +.IX Subsection "name" +Example: +.PP +.Vb 1 +\& name: Module\-Build +.Ve +.PP +(Spec 1.0) [required] {string} The name of the distribution which is often +created by taking the \*(L"main module\*(R" in the distribution and changing +\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the +case of the libwww-perl distribution (see +). +.SS "version" +.IX Subsection "version" +Example: +.PP +.Vb 1 +\& version: 0.20 +.Ve +.PP +(Spec 1.0) [required] {version} The version of the distribution to which the +\&\fI\s-1META\s0.yml\fR file refers. +.SS "abstract" +.IX Subsection "abstract" +Example: +.PP +.Vb 1 +\& abstract: Build and install Perl modules. +.Ve +.PP +(Spec 1.1) [required] {string} A short description of the purpose of the +distribution. +.SS "author" +.IX Subsection "author" +Example: +.PP +.Vb 2 +\& author: +\& \- Ken Williams +.Ve +.PP +(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the +distribution. The preferred form is author-name . +.SS "license" +.IX Subsection "license" +Example: +.PP +.Vb 1 +\& license: perl +.Ve +.PP +(Spec 1.0) [required] {string} The license under which this distribution may be +used and redistributed. +.PP +Must be one of the following licenses: +.IP "perl" 4 +.IX Item "perl" +The distribution may be copied and redistributed under the same terms as perl +itself (this is by far the most common licensing option for modules on \s-1CPAN\s0). +This is a dual license, in which the user may choose between either the \s-1GPL\s0 +version 1 or the Artistic version 1 license. +.IP "gpl" 4 +.IX Item "gpl" +The distribution is distributed under the terms of the \s-1GNU\s0 General Public +License version 2 (). +.IP "lgpl" 4 +.IX Item "lgpl" +The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General +Public License version 2 (). +.IP "artistic" 4 +.IX Item "artistic" +The distribution is licensed under the Artistic License version 1, as specified +by the Artistic file in the standard perl distribution +(). +.IP "bsd" 4 +.IX Item "bsd" +The distribution is licensed under the \s-1BSD\s0 3\-Clause License +(). +.IP "open_source" 4 +.IX Item "open_source" +The distribution is licensed under some other Open Source Initiative-approved +license listed at . +.IP "unrestricted" 4 +.IX Item "unrestricted" +The distribution is licensed under a license that is \fBnot\fR approved by +www.opensource.org but that allows distribution +without restrictions. +.IP "restrictive" 4 +.IX Item "restrictive" +The distribution may not be redistributed without special permission from the +author and/or copyright holder. +.SS "distribution_type" +.IX Subsection "distribution_type" +Example: +.PP +.Vb 1 +\& distribution_type: module +.Ve +.PP +(Spec 1.0) [optional] {string} What kind of stuff is contained in this +distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean +a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs. +.PP +Unfortunately this field is basically meaningless, since many +distributions are hybrids of several kinds of things, or some new +thing, or subjectively different in focus depending on who's using +them. Tools like Module::Build and MakeMaker will likely stop +generating this field. +.SS "requires" +.IX Subsection "requires" +Example: +.PP +.Vb 3 +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this +distribution requires for proper operation. The keys are the module +names, and the values are version specifications as described in +Module::Build for the \*(L"requires\*(R" parameter. +.SS "recommends" +.IX Subsection "recommends" +Example: +.PP +.Vb 3 +\& recommends: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this +distribution recommends for enhanced operation. +.PP +\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which +features depend on which modules so they can make an informed +decision about which recommended modules to install.\fR +.PP +Example: +.PP +.Vb 9 +\& optional_features: +\& \- foo: +\& description: Provides the ability to blah. +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +\& \- bar: +\& description: This feature is not available on this platform. +\& excludes_os: MSWin32 +.Ve +.PP +\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 sequence of names for optional features +which are made available when its requirements are met. For each +feature a description is provided along with any of \*(L"requires\*(R", +\&\*(L"build_requires\*(R", \*(L"conflicts\*(R", \f(CI\*(C`requires_packages\*(C'\fI, +\&\f(CI\*(C`requires_os\*(C'\fI, and \f(CI\*(C`excludes_os\*(C'\fI which have the same meaning in +this subcontext as described elsewhere in this document.\fR +.SS "build_requires" +.IX Subsection "build_requires" +Example: +.PP +.Vb 3 +\& build_requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules +required for building and/or testing of this distribution. These +dependencies are not required after the module is installed. +.SS "conflicts" +.IX Subsection "conflicts" +Example: +.PP +.Vb 3 +\& conflicts: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules that +cannot be installed while this distribution is installed. This is a +pretty uncommon situation. +.SS "dynamic_config" +.IX Subsection "dynamic_config" +Example: +.PP +.Vb 1 +\& dynamic_config: 0 +.Ve +.PP +(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR +or \fIMakefile.PL\fR (or similar) must be executed when building this +distribution, or whether it can be built, tested and installed solely +from consulting its +metadata file. The main reason to set this to a true value if that +your module performs some dynamic configuration (asking questions, +sensing the environment, etc.) as part of its build/install process. +.PP +Currently Module::Build doesn't actually do anything with this flag +\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0 +to do something useful with it. It can potentially bring lots of +security, packaging, and convenience improvements. +.PP +If this field is omitted, it defaults to 1 (true). +.SS "private" +.IX Subsection "private" +\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to +\&\*(L"no_index\*(R". See below. +.SS "provides" +.IX Subsection "provides" +Example: +.PP +.Vb 9 +\& provides: +\& Foo::Bar: +\& file: lib/Foo/Bar.pm +\& version: 0.27_02 +\& Foo::Bar::Blah: +\& file: lib/Foo/Bar/Blah.pm +\& Foo::Bar::Baz: +\& file: lib/Foo/Bar/Baz.pm +\& version: 0.3 +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages +provided by this distribution. This information can be (and, in some +cases, is) used by distribution and automation mechanisms like \s-1PAUSE, +CPAN,\s0 and search.cpan.org to build indexes saying in which +distribution various packages can be found. +.PP +When using tools like Module::Build that can generate the +\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you +examine what it generates to make sure it makes sense \- indexers will +usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than +scanning through the distribution files themselves to figure out +packages and versions. This is a good thing, because it means you can +use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want +indexed about your distribution, rather than relying on them to +essentially guess what you want indexed. +.SS "no_index" +.IX Subsection "no_index" +Example: +.PP +.Vb 9 +\& no_index: +\& file: +\& \- My/Module.pm +\& dir: +\& \- My/Private +\& package: +\& \- My::Module::Stuff +\& namespace: +\& \- My::Module::Stuff +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files, +directories, packages, and namespaces that are private +(i.e. implementation artifacts) that are not of interest to searching +and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is +present. +.PP +\&\fI(Note: I'm not actually sure who looks at this field, or exactly +what they do with it. This spec could be off in some way from actual +usage.)\fR +.PP +\fIfile\fR +.IX Subsection "file" +.PP +(Spec 1.1) [optional] Exclude any listed file(s). +.PP +\fIdir\fR +.IX Subsection "dir" +.PP +(Spec 1.1) [optional] Exclude anything below the listed +directory(ies). +.PP +\fIpackage\fR +.IX Subsection "package" +.PP +(Spec 1.1) [optional] Exclude the listed package(s). +.PP +\fInamespace\fR +.IX Subsection "namespace" +.PP +(Spec 1.1) [optional] Excludes anything below the listed namespace(s), +but \fInot\fR the listed namespace(s) its self. +.SS "keywords" +.IX Subsection "keywords" +Example: +.PP +.Vb 4 +\& keywords: +\& \- make +\& \- build +\& \- install +.Ve +.PP +(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe +this distribution. +.SS "resources" +.IX Subsection "resources" +Example: +.PP +.Vb 5 +\& resources: +\& license: http://dev.perl.org/licenses/ +\& homepage: http://sourceforge.net/projects/module\-build +\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build +\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general +.Ve +.PP +(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to +this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR, +\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as +they have \*(L"official\*(R" meanings defined here in this specification. If +you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R" +entry above), use at least one upper-case letter. +.PP +The current set of official keys is: +.IP "homepage" 2 +.IX Item "homepage" +The official home of this project on the web. +.IP "license" 2 +.IX Item "license" +An \s-1URL\s0 for an official statement of this distribution's license. +.IP "bugtracker" 2 +.IX Item "bugtracker" +An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project. +.SS "generated_by" +.IX Subsection "generated_by" +Example: +.PP +.Vb 1 +\& generated_by: Module::Build version 0.20 +.Ve +.PP +(Spec 1.0) [required] {string} Indicates the tool that was used to create this +\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool +and its version, but this field is essentially opaque, at least for +the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that +the author be specified here. +.PP +[Note: My \fImeta_stats.pl\fR script which I use to gather statistics +regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it +splits on /\es+version\es+/ taking the first field as the name of the +tool that generated the file and the second field as version of that +tool. \s-1RWS\s0] +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\s-1CPAN\s0 +.PP +\&\s-1CPAN\s0.pm +.PP +\&\s-1CPANPLUS\s0 +.PP +Data::Dumper +.PP +ExtUtils::MakeMaker +.PP +Module::Build +.PP +Module::Install +.PP +\&\s-1XML\s0 +.PP +\&\s-1YAML\s0 +.SH "HISTORY" +.IX Header "HISTORY" +.IP "March 14, 2003 (Pi day)" 4 +.IX Item "March 14, 2003 (Pi day)" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Created version 1.0 of this document. +.RE +.RS 4 +.RE +.IP "May 8, 2003" 4 +.IX Item "May 8, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added the \*(L"dynamic_config\*(R" field, which was missing from the initial +version. +.RE +.RS 4 +.RE +.IP "November 13, 2003" 4 +.IX Item "November 13, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added more \s-1YAML\s0 rationale articles. +.IP "\(bu" 2 +Fixed existing link to \s-1YAML\s0 discussion thread to point to new + site. +.IP "\(bu" 2 +Added and deprecated the \*(L"private\*(R" field. +.IP "\(bu" 2 +Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR, +\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields. +.IP "\(bu" 2 +Bumped version. +.RE +.RS 4 +.RE +.IP "November 16, 2003" 4 +.IX Item "November 16, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields. +.IP "\(bu" 2 +Add alternative proposal to the \*(L"recommends\*(R" field. +.IP "\(bu" 2 +Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 9, 2003" 4 +.IX Item "December 9, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added link to latest version of this specification on \s-1CPAN.\s0 +.IP "\(bu" 2 +Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.IP "\(bu" 2 +Chang name from Module::Build::META\-spec to CPAN::META::Specification. +.IP "\(bu" 2 +Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 15, 2003" 4 +.IX Item "December 15, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R" +.IP "\(bu" 2 +Add \*(L"keywords\*(R" field as a means to aid searching distributions. +.IP "\(bu" 2 +Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be +ambiguous. +.RE +.RS 4 +.RE +.IP "July 26, 2005" 4 +.IX Item "July 26, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed a bunch of items (generation, requires_build_tools, +requires_packages, configure, requires_os, excludes_os, +auto_regenerate) that have never actually been supported, but were +more like records of brainstorming. +.IP "\(bu" 2 +Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what +it's actually called in actual \fI\s-1META\s0.yml\fR files. +.IP "\(bu" 2 +Added the \*(L"==\*(R" operator to the list of supported version-checking +operators. +.IP "\(bu" 2 +Noted that the \*(L"distribution_type\*(R" field is basically meaningless, +and shouldn't really be used. +.IP "\(bu" 2 +Clarified \*(L"dynamic_config\*(R" a bit. +.RE +.RS 4 +.RE +.IP "August 23, 2005" 4 +.IX Item "August 23, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a +module that doesn't actually exist. +.RE +.RS 4 +.RE diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_3.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_3.3 new file mode 100644 index 0000000000000000000000000000000000000000..1402dc949ab70bb13cc109e3ceee916b5e9f83c8 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_3.3 @@ -0,0 +1,808 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History::Meta_1_3 3" +.TH CPAN::Meta::History::Meta_1_3 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History::Meta_1_3 \- Version 1.3 metadata specification for META.yml +.SH "PREFACE" +.IX Header "PREFACE" +This is a historical copy of the version 1.3 specification for \fI\s-1META\s0.yml\fR +files, copyright by Ken Williams and licensed under the same terms as Perl +itself. +.PP +Modifications from the original: +.IP "\(bu" 4 +Various spelling corrections +.IP "\(bu" 4 +Include list of valid licenses from Module::Build 0.2805 rather than +linking to the module, with minor updates to text and links to reflect +versions at the time of publication. +.IP "\(bu" 4 +Fixed some dead links to point to active resources. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& \-\-\- #YAML:1.0 +\& name: Module\-Build +\& abstract: Build and install Perl modules +\& version: 0.20 +\& author: +\& \- Ken Williams +\& license: perl +\& distribution_type: module +\& requires: +\& Config: 0 +\& Cwd: 0 +\& Data::Dumper: 0 +\& ExtUtils::Install: 0 +\& File::Basename: 0 +\& File::Compare: 0 +\& File::Copy: 0 +\& File::Find: 0 +\& File::Path: 0 +\& File::Spec: 0 +\& IO::File: 0 +\& perl: 5.005_03 +\& recommends: +\& Archive::Tar: 1.00 +\& ExtUtils::Install: 0.3 +\& ExtUtils::ParseXS: 2.02 +\& Pod::Text: 0 +\& YAML: 0.35 +\& build_requires: +\& Test: 0 +\& urls: +\& license: http://dev.perl.org/licenses/ +\& meta\-spec: +\& version: 1.3 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html +\& generated_by: Module::Build version 0.20 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 1.3 of the \fI\s-1META\s0.yml\fR specification. +.PP +The \fI\s-1META\s0.yml\fR file describes important properties of contributed +Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically +created by tools like Module::Build, Module::Install, and +ExtUtils::MakeMaker. +.PP +The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people +maintaining module collections (like \s-1CPAN\s0), for people writing +installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who +want to know some stuff about a distribution before downloading it and +starting to install it. +.PP +\&\fINote: The latest stable version of this specification can always be +found at , +and the latest development version (which may include things that +won't make it into the stable version) can always be found at +.\fR +.SH "FORMAT" +.IX Header "FORMAT" +\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see +). +.PP +See the following links to learn why we chose \s-1YAML\s0 instead of, say, +\&\s-1XML\s0 or Data::Dumper: +.IP "\(bu" 4 +Module::Build design plans +.IP "\(bu" 4 +Not keen on \s-1YAML\s0 +.IP "\(bu" 4 +\&\s-1META\s0 Concerns +.SH "TERMINOLOGY" +.IX Header "TERMINOLOGY" +.IP "distribution" 4 +.IX Item "distribution" +This is the primary object described by the \fI\s-1META\s0.yml\fR +specification. In the context of this document it usually refers to a +collection of modules, scripts, and/or documents that are distributed +together for other developers to use. Examples of distributions are +\&\f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR, or \f(CW\*(C`DBI\*(C'\fR. +.IP "module" 4 +.IX Item "module" +This refers to a reusable library of code typically contained in a +single file. Currently, we primarily talk of perl modules, but this +specification should be open enough to apply to other languages as +well (ex. python, ruby). Examples of modules are \f(CW\*(C`Class::Container\*(C'\fR, +\&\f(CW\*(C`LWP::Simple\*(C'\fR, or \f(CW\*(C`DBD::File\*(C'\fR. +.SH "HEADER" +.IX Header "HEADER" +The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document +header like \f(CW"\-\-\- #YAML:1.0"\fR. +.SH "FIELDS" +.IX Header "FIELDS" +The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys +are described here. +.SS "meta-spec" +.IX Subsection "meta-spec" +Example: +.PP +.Vb 3 +\& meta\-spec: +\& version: 1.3 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html +.Ve +.PP +(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the +version of the \s-1META\s0.yml specification used. +.SS "name" +.IX Subsection "name" +Example: +.PP +.Vb 1 +\& name: Module\-Build +.Ve +.PP +(Spec 1.0) [required] {string} The name of the distribution which is often +created by taking the \*(L"main module\*(R" in the distribution and changing +\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the +case of the libwww-perl distribution (see +). +.SS "version" +.IX Subsection "version" +Example: +.PP +.Vb 1 +\& version: 0.20 +.Ve +.PP +(Spec 1.0) [required] {version} The version of the distribution to which the +\&\fI\s-1META\s0.yml\fR file refers. +.SS "abstract" +.IX Subsection "abstract" +Example: +.PP +.Vb 1 +\& abstract: Build and install Perl modules. +.Ve +.PP +(Spec 1.1) [required] {string} A short description of the purpose of the +distribution. +.SS "author" +.IX Subsection "author" +Example: +.PP +.Vb 2 +\& author: +\& \- Ken Williams +.Ve +.PP +(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the +distribution. The preferred form is author-name . +.SS "license" +.IX Subsection "license" +Example: +.PP +.Vb 1 +\& license: perl +.Ve +.PP +(Spec 1.0) [required] {string} The license under which this distribution may be +used and redistributed. +.PP +Must be one of the following licenses: +.IP "apache" 4 +.IX Item "apache" +The distribution is licensed under the Apache Software License version 1.1 +(). +.IP "artistic" 4 +.IX Item "artistic" +The distribution is licensed under the Artistic License version 1, as specified +by the Artistic file in the standard perl distribution +(). +.IP "bsd" 4 +.IX Item "bsd" +The distribution is licensed under the \s-1BSD\s0 3\-Clause License +(). +.IP "gpl" 4 +.IX Item "gpl" +The distribution is distributed under the terms of the \s-1GNU\s0 General Public +License version 2 (). +.IP "lgpl" 4 +.IX Item "lgpl" +The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General +Public License version 2 (). +.IP "mit" 4 +.IX Item "mit" +The distribution is licensed under the \s-1MIT\s0 License +(). +.IP "mozilla" 4 +.IX Item "mozilla" +The distribution is licensed under the Mozilla Public License. +( or +) +.IP "open_source" 4 +.IX Item "open_source" +The distribution is licensed under some other Open Source Initiative-approved +license listed at . +.IP "perl" 4 +.IX Item "perl" +The distribution may be copied and redistributed under the same terms as perl +itself (this is by far the most common licensing option for modules on \s-1CPAN\s0). +This is a dual license, in which the user may choose between either the \s-1GPL\s0 +version 1 or the Artistic version 1 license. +.IP "restrictive" 4 +.IX Item "restrictive" +The distribution may not be redistributed without special permission from the +author and/or copyright holder. +.IP "unrestricted" 4 +.IX Item "unrestricted" +The distribution is licensed under a license that is not approved by +www.opensource.org but that allows distribution +without restrictions. +.SS "distribution_type" +.IX Subsection "distribution_type" +Example: +.PP +.Vb 1 +\& distribution_type: module +.Ve +.PP +(Spec 1.0) [optional] {string} What kind of stuff is contained in this +distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean +a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs. +.PP +Unfortunately this field is basically meaningless, since many +distributions are hybrids of several kinds of things, or some new +thing, or subjectively different in focus depending on who's using +them. Tools like Module::Build and MakeMaker will likely stop +generating this field. +.SS "requires" +.IX Subsection "requires" +Example: +.PP +.Vb 3 +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this +distribution requires for proper operation. The keys are the module +names, and the values are version specifications as described in +\&\*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.SS "recommends" +.IX Subsection "recommends" +Example: +.PP +.Vb 3 +\& recommends: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules +this distribution recommends for enhanced operation. The keys are the +module names, and the values are version specifications as described +in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.PP +\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which +features depend on which modules so they can make an informed decision +about which recommended modules to install.\fR +.PP +Example: +.PP +.Vb 9 +\& optional_features: +\& \- foo: +\& description: Provides the ability to blah. +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +\& \- bar: +\& description: This feature is not available on this platform. +\& excludes_os: MSWin32 +.Ve +.PP +\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 sequence of names for optional features +which are made available when its requirements are met. For each +feature a description is provided along with any of \*(L"requires\*(R", +\&\*(L"build_requires\*(R", \*(L"conflicts\*(R", \f(CI\*(C`requires_packages\*(C'\fI, +\&\f(CI\*(C`requires_os\*(C'\fI, and \f(CI\*(C`excludes_os\*(C'\fI which have the same meaning in +this subcontext as described elsewhere in this document.\fR +.SS "build_requires" +.IX Subsection "build_requires" +Example: +.PP +.Vb 3 +\& build_requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules +required for building and/or testing of this distribution. The keys +are the module names, and the values are version specifications as +described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These dependencies are not +required after the module is installed. +.SS "conflicts" +.IX Subsection "conflicts" +Example: +.PP +.Vb 3 +\& conflicts: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules that +cannot be installed while this distribution is installed. This is a +pretty uncommon situation. The keys for \f(CW\*(C`conflicts\*(C'\fR are the module +names, and the values are version specifications as described in +\&\*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.SS "dynamic_config" +.IX Subsection "dynamic_config" +Example: +.PP +.Vb 1 +\& dynamic_config: 0 +.Ve +.PP +(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR +or \fIMakefile.PL\fR (or similar) must be executed when building this +distribution, or whether it can be built, tested and installed solely +from consulting its +metadata file. The main reason to set this to a true value is that +your module performs some dynamic configuration (asking questions, +sensing the environment, etc.) as part of its build/install process. +.PP +Currently Module::Build doesn't actually do anything with this flag +\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0 +to do something useful with it. It can potentially bring lots of +security, packaging, and convenience improvements. +.PP +If this field is omitted, it defaults to 1 (true). +.SS "private" +.IX Subsection "private" +\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to +\&\*(L"no_index\*(R". See below. +.SS "provides" +.IX Subsection "provides" +Example: +.PP +.Vb 9 +\& provides: +\& Foo::Bar: +\& file: lib/Foo/Bar.pm +\& version: 0.27_02 +\& Foo::Bar::Blah: +\& file: lib/Foo/Bar/Blah.pm +\& Foo::Bar::Baz: +\& file: lib/Foo/Bar/Baz.pm +\& version: 0.3 +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages +provided by this distribution. This information can be (and, in some +cases, is) used by distribution and automation mechanisms like \s-1PAUSE, +CPAN,\s0 and search.cpan.org to build indexes saying in which +distribution various packages can be found. +.PP +When using tools like Module::Build that can generate the +\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you +examine what it generates to make sure it makes sense \- indexers will +usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than +scanning through the distribution files themselves to figure out +packages and versions. This is a good thing, because it means you can +use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want +indexed about your distribution, rather than relying on them to +essentially guess what you want indexed. +.SS "no_index" +.IX Subsection "no_index" +Example: +.PP +.Vb 9 +\& no_index: +\& file: +\& \- My/Module.pm +\& directory: +\& \- My/Private +\& package: +\& \- My::Module::Stuff +\& namespace: +\& \- My::Module::Stuff +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files, +directories, packages, and namespaces that are private +(i.e. implementation artifacts) that are not of interest to searching +and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is +present. +.PP +For example, excludes items listed in \f(CW\*(C`no_index\*(C'\fR +when searching for \s-1POD,\s0 meaning files in these directories will not +converted to \s-1HTML\s0 and made public \- which is useful if you have +example or test PODs that you don't want the search engine to go +through. +.PP +\fIfile\fR +.IX Subsection "file" +.PP +(Spec 1.1) [optional] Exclude any listed file(s). +.PP +\fIdirectory\fR +.IX Subsection "directory" +.PP +(Spec 1.1) [optional] Exclude anything below the listed +directory(ies). +.PP +[Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of +\&\f(CW\*(C`directory\*(C'\fR, but I think MakeMaker and various users started using +\&\f(CW\*(C`directory\*(C'\fR, so in deference we switched to that.] +.PP +\fIpackage\fR +.IX Subsection "package" +.PP +(Spec 1.1) [optional] Exclude the listed package(s). +.PP +\fInamespace\fR +.IX Subsection "namespace" +.PP +(Spec 1.1) [optional] Excludes anything below the listed namespace(s), +but \fInot\fR the listed namespace(s) its self. +.SS "keywords" +.IX Subsection "keywords" +Example: +.PP +.Vb 4 +\& keywords: +\& \- make +\& \- build +\& \- install +.Ve +.PP +(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe +this distribution. +.SS "resources" +.IX Subsection "resources" +Example: +.PP +.Vb 6 +\& resources: +\& license: http://dev.perl.org/licenses/ +\& homepage: http://sourceforge.net/projects/module\-build +\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build +\& repository: http://sourceforge.net/cvs/?group_id=45731 +\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general +.Ve +.PP +(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to +this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR, +\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as +they have \*(L"official\*(R" meanings defined here in this specification. If +you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R" +entry above), use at least one upper-case letter. +.PP +The current set of official keys is: +.IP "homepage" 2 +.IX Item "homepage" +The official home of this project on the web. +.IP "license" 2 +.IX Item "license" +An \s-1URL\s0 for an official statement of this distribution's license. +.IP "bugtracker" 2 +.IX Item "bugtracker" +An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project. +.SS "generated_by" +.IX Subsection "generated_by" +Example: +.PP +.Vb 1 +\& generated_by: Module::Build version 0.20 +.Ve +.PP +(Spec 1.0) [required] {string} Indicates the tool that was used to create this +\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool +and its version, but this field is essentially opaque, at least for +the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that +the author be specified here. +.PP +[Note: My \fImeta_stats.pl\fR script which I use to gather statistics +regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it +splits on /\es+version\es+/ taking the first field as the name of the +tool that generated the file and the second field as version of that +tool. \s-1RWS\s0] +.SH "VERSION SPECIFICATIONS" +.IX Header "VERSION SPECIFICATIONS" +Some fields require a version specification (ex. \*(L"requires\*(R", +\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.) to indicate the particular +version(s) of some other module that may be required as a +prerequisite. This section details the version specification formats +that are currently supported. +.PP +The simplest format for a version specification is just the version +number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4 +must be present. To indicate that \fBany\fR version of a prerequisite is +okay, even if the prerequisite doesn't define a version at all, use +the version \f(CW0\fR. +.PP +You may also use the operators < (less than), <= (less than or +equal), > (greater than), >= (greater than or equal), == +(equal), and != (not equal). For example, the specification \f(CW\*(C`< +2.0\*(C'\fR means that any version of the prerequisite less than 2.0 is +suitable. +.PP +For more complicated situations, version specifications may be AND-ed +together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, < +2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR +2.0, and \fBnot equal to\fR 1.5. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\s-1CPAN\s0 +.PP +\&\s-1CPAN\s0.pm +.PP +\&\s-1CPANPLUS\s0 +.PP +Data::Dumper +.PP +ExtUtils::MakeMaker +.PP +Module::Build +.PP +Module::Install +.PP +\&\s-1XML\s0 +.PP +\&\s-1YAML\s0 +.SH "HISTORY" +.IX Header "HISTORY" +.IP "March 14, 2003 (Pi day)" 4 +.IX Item "March 14, 2003 (Pi day)" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Created version 1.0 of this document. +.RE +.RS 4 +.RE +.IP "May 8, 2003" 4 +.IX Item "May 8, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added the \*(L"dynamic_config\*(R" field, which was missing from the initial +version. +.RE +.RS 4 +.RE +.IP "November 13, 2003" 4 +.IX Item "November 13, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added more \s-1YAML\s0 rationale articles. +.IP "\(bu" 2 +Fixed existing link to \s-1YAML\s0 discussion thread to point to new + site. +.IP "\(bu" 2 +Added and deprecated the \*(L"private\*(R" field. +.IP "\(bu" 2 +Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR, +\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields. +.IP "\(bu" 2 +Bumped version. +.RE +.RS 4 +.RE +.IP "November 16, 2003" 4 +.IX Item "November 16, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields. +.IP "\(bu" 2 +Add alternative proposal to the \*(L"recommends\*(R" field. +.IP "\(bu" 2 +Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 9, 2003" 4 +.IX Item "December 9, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added link to latest version of this specification on \s-1CPAN.\s0 +.IP "\(bu" 2 +Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.IP "\(bu" 2 +Chang name from Module::Build::META\-spec to CPAN::META::Specification. +.IP "\(bu" 2 +Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 15, 2003" 4 +.IX Item "December 15, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R" +.IP "\(bu" 2 +Add \*(L"keywords\*(R" field as a means to aid searching distributions. +.IP "\(bu" 2 +Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be +ambiguous. +.RE +.RS 4 +.RE +.IP "July 26, 2005" 4 +.IX Item "July 26, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed a bunch of items (generation, requires_build_tools, +requires_packages, configure, requires_os, excludes_os, +auto_regenerate) that have never actually been supported, but were +more like records of brainstorming. +.IP "\(bu" 2 +Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what +it's actually called in actual \fI\s-1META\s0.yml\fR files. +.IP "\(bu" 2 +Added the \*(L"==\*(R" operator to the list of supported version-checking +operators. +.IP "\(bu" 2 +Noted that the \*(L"distribution_type\*(R" field is basically meaningless, +and shouldn't really be used. +.IP "\(bu" 2 +Clarified \*(L"dynamic_config\*(R" a bit. +.RE +.RS 4 +.RE +.IP "August 23, 2005" 4 +.IX Item "August 23, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a +module that doesn't actually exist. +.RE +.RS 4 +.RE diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_4.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_4.3 new file mode 100644 index 0000000000000000000000000000000000000000..8c0239ed934b3b415cc2b40070b0ea0a82d10955 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_4.3 @@ -0,0 +1,833 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History::Meta_1_4 3" +.TH CPAN::Meta::History::Meta_1_4 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History::Meta_1_4 \- Version 1.4 metadata specification for META.yml +.SH "PREFACE" +.IX Header "PREFACE" +This is a historical copy of the version 1.4 specification for \fI\s-1META\s0.yml\fR +files, copyright by Ken Williams and licensed under the same terms as Perl +itself. +.PP +Modifications from the original: +.IP "\(bu" 4 +Various spelling corrections +.IP "\(bu" 4 +Include list of valid licenses from Module::Build 0.2807 rather than +linking to the module, with minor updates to text and links to reflect +versions at the time of publication. +.IP "\(bu" 4 +Fixed some dead links to point to active resources. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& \-\-\- #YAML:1.0 +\& name: Module\-Build +\& abstract: Build and install Perl modules +\& version: 0.20 +\& author: +\& \- Ken Williams +\& license: perl +\& distribution_type: module +\& requires: +\& Config: 0 +\& Cwd: 0 +\& Data::Dumper: 0 +\& ExtUtils::Install: 0 +\& File::Basename: 0 +\& File::Compare: 0 +\& File::Copy: 0 +\& File::Find: 0 +\& File::Path: 0 +\& File::Spec: 0 +\& IO::File: 0 +\& perl: 5.005_03 +\& recommends: +\& Archive::Tar: 1.00 +\& ExtUtils::Install: 0.3 +\& ExtUtils::ParseXS: 2.02 +\& Pod::Text: 0 +\& YAML: 0.35 +\& build_requires: +\& Test: 0 +\& resources: +\& license: http://dev.perl.org/licenses/ +\& meta\-spec: +\& version: 1.4 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html +\& generated_by: Module::Build version 0.20 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 1.4 of the \fI\s-1META\s0.yml\fR specification. +.PP +The \fI\s-1META\s0.yml\fR file describes important properties of contributed +Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically +created by tools like Module::Build, Module::Install, and +ExtUtils::MakeMaker. +.PP +The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people +maintaining module collections (like \s-1CPAN\s0), for people writing +installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who +want to know some stuff about a distribution before downloading it and +starting to install it. +.PP +\&\fINote: The latest stable version of this specification can always be +found at , +and the latest development version (which may include things that +won't make it into the stable version) can always be found at +.\fR +.SH "FORMAT" +.IX Header "FORMAT" +\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see +). +.PP +See the following links to learn why we chose \s-1YAML\s0 instead of, say, +\&\s-1XML\s0 or Data::Dumper: +.IP "\(bu" 4 +Module::Build design plans +.IP "\(bu" 4 +Not keen on \s-1YAML\s0 +.IP "\(bu" 4 +\&\s-1META\s0 Concerns +.SH "TERMINOLOGY" +.IX Header "TERMINOLOGY" +.IP "distribution" 4 +.IX Item "distribution" +This is the primary object described by the \fI\s-1META\s0.yml\fR +specification. In the context of this document it usually refers to a +collection of modules, scripts, and/or documents that are distributed +together for other developers to use. Examples of distributions are +\&\f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR, or \f(CW\*(C`DBI\*(C'\fR. +.IP "module" 4 +.IX Item "module" +This refers to a reusable library of code typically contained in a +single file. Currently, we primarily talk of perl modules, but this +specification should be open enough to apply to other languages as +well (ex. python, ruby). Examples of modules are \f(CW\*(C`Class::Container\*(C'\fR, +\&\f(CW\*(C`LWP::Simple\*(C'\fR, or \f(CW\*(C`DBD::File\*(C'\fR. +.SH "HEADER" +.IX Header "HEADER" +The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document +header like \f(CW"\-\-\- #YAML:1.0"\fR. +.SH "FIELDS" +.IX Header "FIELDS" +The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys +are described here. +.SS "meta-spec" +.IX Subsection "meta-spec" +Example: +.PP +.Vb 3 +\& meta\-spec: +\& version: 1.4 +\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html +.Ve +.PP +(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the +version of the \s-1META\s0.yml specification used. +.SS "name" +.IX Subsection "name" +Example: +.PP +.Vb 1 +\& name: Module\-Build +.Ve +.PP +(Spec 1.0) [required] {string} The name of the distribution which is often +created by taking the \*(L"main module\*(R" in the distribution and changing +\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the +case of the libwww-perl distribution (see +). +.SS "version" +.IX Subsection "version" +Example: +.PP +.Vb 1 +\& version: 0.20 +.Ve +.PP +(Spec 1.0) [required] {version} The version of the distribution to which the +\&\fI\s-1META\s0.yml\fR file refers. +.SS "abstract" +.IX Subsection "abstract" +Example: +.PP +.Vb 1 +\& abstract: Build and install Perl modules. +.Ve +.PP +(Spec 1.1) [required] {string} A short description of the purpose of the +distribution. +.SS "author" +.IX Subsection "author" +Example: +.PP +.Vb 2 +\& author: +\& \- Ken Williams +.Ve +.PP +(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the +distribution. The preferred form is author-name . +.SS "license" +.IX Subsection "license" +Example: +.PP +.Vb 1 +\& license: perl +.Ve +.PP +(Spec 1.0) [required] {string} The license under which this +distribution may be used and redistributed. +.PP +Must be one of the following licenses: +.IP "apache" 4 +.IX Item "apache" +The distribution is licensed under the Apache Software License version 1.1 +(). +.IP "artistic" 4 +.IX Item "artistic" +The distribution is licensed under the Artistic License version 1, as specified +by the Artistic file in the standard perl distribution +(). +.IP "bsd" 4 +.IX Item "bsd" +The distribution is licensed under the \s-1BSD\s0 3\-Clause License +(). +.IP "gpl" 4 +.IX Item "gpl" +The distribution is distributed under the terms of the \s-1GNU\s0 General Public +License version 2 (). +.IP "lgpl" 4 +.IX Item "lgpl" +The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General +Public License version 2 (). +.IP "mit" 4 +.IX Item "mit" +The distribution is licensed under the \s-1MIT\s0 License +(). +.IP "mozilla" 4 +.IX Item "mozilla" +The distribution is licensed under the Mozilla Public License. +( or +) +.IP "open_source" 4 +.IX Item "open_source" +The distribution is licensed under some other Open Source Initiative-approved +license listed at . +.IP "perl" 4 +.IX Item "perl" +The distribution may be copied and redistributed under the same terms as perl +itself (this is by far the most common licensing option for modules on \s-1CPAN\s0). +This is a dual license, in which the user may choose between either the \s-1GPL\s0 or +the Artistic license. +.IP "restrictive" 4 +.IX Item "restrictive" +The distribution may not be redistributed without special permission from the +author and/or copyright holder. +.IP "unrestricted" 4 +.IX Item "unrestricted" +The distribution is licensed under a license that is not approved by +www.opensource.org but that allows distribution +without restrictions. +.SS "distribution_type" +.IX Subsection "distribution_type" +Example: +.PP +.Vb 1 +\& distribution_type: module +.Ve +.PP +(Spec 1.0) [optional] {string} What kind of stuff is contained in this +distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean +a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs. +.PP +Unfortunately this field is basically meaningless, since many +distributions are hybrids of several kinds of things, or some new +thing, or subjectively different in focus depending on who's using +them. Tools like Module::Build and MakeMaker will likely stop +generating this field. +.SS "requires" +.IX Subsection "requires" +Example: +.PP +.Vb 3 +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl +prerequisites this distribution requires for proper operation. The +keys are the names of the prerequisites (module names or 'perl'), and +the values are version specifications as described in \s-1VERSION +SPECIFICATIONS\s0. +.SS "recommends" +.IX Subsection "recommends" +Example: +.PP +.Vb 3 +\& recommends: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl +prerequisites this distribution recommends for enhanced operation. +The keys are the names of the prerequisites (module names or 'perl'), +and the values are version specifications as described in \s-1VERSION +SPECIFICATIONS\s0. +.PP +\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which +features depend on which modules so they can make an informed decision +about which recommended modules to install.\fR +.PP +Example: +.PP +.Vb 6 +\& optional_features: +\& foo: +\& description: Provides the ability to blah. +\& requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping of names for optional features +which are made available when its requirements are met. For each +feature a description is provided along with any of \*(L"requires\*(R", +\&\*(L"build_requires\*(R", and \*(L"conflicts\*(R", which have the same meaning in +this subcontext as described elsewhere in this document.\fR +.SS "build_requires" +.IX Subsection "build_requires" +Example: +.PP +.Vb 3 +\& build_requires: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl +prerequisites required for building and/or testing of this +distribution. The keys are the names of the prerequisites (module +names or 'perl'), and the values are version specifications as +described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These dependencies are not +required after the distribution is installed. +.SS "configure_requires" +.IX Subsection "configure_requires" +Example: +.PP +.Vb 4 +\& configure_requires: +\& Module::Build: 0.2809 +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.4) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl prerequisites +required before configuring this distribution. The keys are the +names of the prerequisites (module names or 'perl'), and the values are version +specifications as described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These +dependencies are not required after the distribution is installed. +.SS "conflicts" +.IX Subsection "conflicts" +Example: +.PP +.Vb 3 +\& conflicts: +\& Data::Dumper: 0 +\& File::Find: 1.03 +.Ve +.PP +(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating any items that +cannot be installed while this distribution is installed. This is a +pretty uncommon situation. The keys for \f(CW\*(C`conflicts\*(C'\fR are the item +names (module names or 'perl'), and the values are version +specifications as described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.SS "dynamic_config" +.IX Subsection "dynamic_config" +Example: +.PP +.Vb 1 +\& dynamic_config: 0 +.Ve +.PP +(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR +or \fIMakefile.PL\fR (or similar) must be executed when building this +distribution, or whether it can be built, tested and installed solely +from consulting its +metadata file. The main reason to set this to a true value is that +your module performs some dynamic configuration (asking questions, +sensing the environment, etc.) as part of its build/install process. +.PP +Currently Module::Build doesn't actually do anything with this flag +\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0 +to do something useful with it. It can potentially bring lots of +security, packaging, and convenience improvements. +.PP +If this field is omitted, it defaults to 1 (true). +.SS "private" +.IX Subsection "private" +\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to +\&\*(L"no_index\*(R". See below. +.SS "provides" +.IX Subsection "provides" +Example: +.PP +.Vb 9 +\& provides: +\& Foo::Bar: +\& file: lib/Foo/Bar.pm +\& version: 0.27_02 +\& Foo::Bar::Blah: +\& file: lib/Foo/Bar/Blah.pm +\& Foo::Bar::Baz: +\& file: lib/Foo/Bar/Baz.pm +\& version: 0.3 +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages +provided by this distribution. This information can be (and, in some +cases, is) used by distribution and automation mechanisms like \s-1PAUSE, +CPAN,\s0 and search.cpan.org to build indexes saying in which +distribution various packages can be found. +.PP +When using tools like Module::Build that can generate the +\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you +examine what it generates to make sure it makes sense \- indexers will +usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than +scanning through the distribution files themselves to figure out +packages and versions. This is a good thing, because it means you can +use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want +indexed about your distribution, rather than relying on them to +essentially guess what you want indexed. +.SS "no_index" +.IX Subsection "no_index" +Example: +.PP +.Vb 9 +\& no_index: +\& file: +\& \- My/Module.pm +\& directory: +\& \- My/Private +\& package: +\& \- My::Module::Stuff +\& namespace: +\& \- My::Module::Stuff +.Ve +.PP +(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files, +directories, packages, and namespaces that are private +(i.e. implementation artifacts) that are not of interest to searching +and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is +present. +.PP +For example, excludes items listed in \f(CW\*(C`no_index\*(C'\fR +when searching for \s-1POD,\s0 meaning files in these directories will not +converted to \s-1HTML\s0 and made public \- which is useful if you have +example or test PODs that you don't want the search engine to go +through. +.PP +\fIfile\fR +.IX Subsection "file" +.PP +(Spec 1.1) [optional] Exclude any listed file(s). +.PP +\fIdirectory\fR +.IX Subsection "directory" +.PP +(Spec 1.1) [optional] Exclude anything below the listed +directory(ies). +.PP +[Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of +\&\f(CW\*(C`directory\*(C'\fR, but I think MakeMaker and various users started using +\&\f(CW\*(C`directory\*(C'\fR, so in deference we switched to that.] +.PP +\fIpackage\fR +.IX Subsection "package" +.PP +(Spec 1.1) [optional] Exclude the listed package(s). +.PP +\fInamespace\fR +.IX Subsection "namespace" +.PP +(Spec 1.1) [optional] Excludes anything below the listed namespace(s), +but \fInot\fR the listed namespace(s) its self. +.SS "keywords" +.IX Subsection "keywords" +Example: +.PP +.Vb 4 +\& keywords: +\& \- make +\& \- build +\& \- install +.Ve +.PP +(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe +this distribution. +.SS "resources" +.IX Subsection "resources" +Example: +.PP +.Vb 6 +\& resources: +\& license: http://dev.perl.org/licenses/ +\& homepage: http://sourceforge.net/projects/module\-build +\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build +\& repository: http://sourceforge.net/cvs/?group_id=45731 +\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general +.Ve +.PP +(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to +this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR, +\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as +they have \*(L"official\*(R" meanings defined here in this specification. If +you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R" +entry above), use at least one upper-case letter. +.PP +The current set of official keys is: +.IP "homepage" 2 +.IX Item "homepage" +The official home of this project on the web. +.IP "license" 2 +.IX Item "license" +An \s-1URL\s0 for an official statement of this distribution's license. +.IP "bugtracker" 2 +.IX Item "bugtracker" +An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project. +.SS "generated_by" +.IX Subsection "generated_by" +Example: +.PP +.Vb 1 +\& generated_by: Module::Build version 0.20 +.Ve +.PP +(Spec 1.0) [required] {string} Indicates the tool that was used to create this +\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool +and its version, but this field is essentially opaque, at least for +the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that +the author be specified here. +.PP +[Note: My \fImeta_stats.pl\fR script which I use to gather statistics +regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it +splits on /\es+version\es+/ taking the first field as the name of the +tool that generated the file and the second field as version of that +tool. \s-1RWS\s0] +.SH "VERSION SPECIFICATIONS" +.IX Header "VERSION SPECIFICATIONS" +Some fields require a version specification (ex. \*(L"requires\*(R", +\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.) to indicate the particular +version(s) of some other module that may be required as a +prerequisite. This section details the version specification formats +that are currently supported. +.PP +The simplest format for a version specification is just the version +number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4 +must be present. To indicate that \fBany\fR version of a prerequisite is +okay, even if the prerequisite doesn't define a version at all, use +the version \f(CW0\fR. +.PP +You may also use the operators < (less than), <= (less than or +equal), > (greater than), >= (greater than or equal), == +(equal), and != (not equal). For example, the specification \f(CW\*(C`< +2.0\*(C'\fR means that any version of the prerequisite less than 2.0 is +suitable. +.PP +For more complicated situations, version specifications may be AND-ed +together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, < +2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR +2.0, and \fBnot equal to\fR 1.5. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\s-1CPAN\s0 +.PP +\&\s-1CPAN\s0.pm +.PP +\&\s-1CPANPLUS\s0 +.PP +Data::Dumper +.PP +ExtUtils::MakeMaker +.PP +Module::Build +.PP +Module::Install +.PP +\&\s-1XML\s0 +.PP +\&\s-1YAML\s0 +.SH "HISTORY" +.IX Header "HISTORY" +.IP "March 14, 2003 (Pi day)" 4 +.IX Item "March 14, 2003 (Pi day)" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Created version 1.0 of this document. +.RE +.RS 4 +.RE +.IP "May 8, 2003" 4 +.IX Item "May 8, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added the \*(L"dynamic_config\*(R" field, which was missing from the initial +version. +.RE +.RS 4 +.RE +.IP "November 13, 2003" 4 +.IX Item "November 13, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added more \s-1YAML\s0 rationale articles. +.IP "\(bu" 2 +Fixed existing link to \s-1YAML\s0 discussion thread to point to new + site. +.IP "\(bu" 2 +Added and deprecated the \*(L"private\*(R" field. +.IP "\(bu" 2 +Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR, +\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields. +.IP "\(bu" 2 +Bumped version. +.RE +.RS 4 +.RE +.IP "November 16, 2003" 4 +.IX Item "November 16, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields. +.IP "\(bu" 2 +Add alternative proposal to the \*(L"recommends\*(R" field. +.IP "\(bu" 2 +Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 9, 2003" 4 +.IX Item "December 9, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added link to latest version of this specification on \s-1CPAN.\s0 +.IP "\(bu" 2 +Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. +.IP "\(bu" 2 +Chang name from Module::Build::META\-spec to CPAN::META::Specification. +.IP "\(bu" 2 +Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field. +.RE +.RS 4 +.RE +.IP "December 15, 2003" 4 +.IX Item "December 15, 2003" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R" +.IP "\(bu" 2 +Add \*(L"keywords\*(R" field as a means to aid searching distributions. +.IP "\(bu" 2 +Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be +ambiguous. +.RE +.RS 4 +.RE +.IP "July 26, 2005" 4 +.IX Item "July 26, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed a bunch of items (generation, requires_build_tools, +requires_packages, configure, requires_os, excludes_os, +auto_regenerate) that have never actually been supported, but were +more like records of brainstorming. +.IP "\(bu" 2 +Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what +it's actually called in actual \fI\s-1META\s0.yml\fR files. +.IP "\(bu" 2 +Added the \*(L"==\*(R" operator to the list of supported version-checking +operators. +.IP "\(bu" 2 +Noted that the \*(L"distribution_type\*(R" field is basically meaningless, +and shouldn't really be used. +.IP "\(bu" 2 +Clarified \*(L"dynamic_config\*(R" a bit. +.RE +.RS 4 +.RE +.IP "August 23, 2005" 4 +.IX Item "August 23, 2005" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a +module that doesn't actually exist. +.RE +.RS 4 +.RE +.IP "June 12, 2007" 4 +.IX Item "June 12, 2007" +.RS 4 +.PD 0 +.IP "\(bu" 2 +.PD +Added \*(L"configure_requires\*(R". +.RE +.RS 4 +.RE diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory.3 new file mode 100644 index 0000000000000000000000000000000000000000..a15be67e4b920dd4581bb18518b570f46469d5ff --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory.3 @@ -0,0 +1,312 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::History 3" +.TH CPAN::Meta::History 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::History \- history of CPAN Meta Spec changes +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \s-1CPAN\s0 Meta Spec has gone through several iterations. It was +originally written in \s-1HTML\s0 and later revised into \s-1POD\s0 (though published +in \s-1HTML\s0 generated from the \s-1POD\s0). Fields were added, removed or changed, +sometimes by design and sometimes to reflect real-world usage after the +fact. +.PP +This document reconstructs the history of the \s-1CPAN\s0 Meta Spec based on +change logs, repository commit messages and the published \s-1HTML\s0 files. +In some cases, particularly prior to version 1.2, the exact version +when certain fields were introduced or changed is inconsistent between +sources. When in doubt, the published \s-1HTML\s0 files for versions 1.0 to +1.4 as they existed when version 2 was developed are used as the +definitive source. +.PP +Starting with version 2, the specification document is part of the +CPAN-Meta distribution and will be published on \s-1CPAN\s0 as +CPAN::Meta::Spec. +.PP +Going forward, specification version numbers will be integers and +decimal portions will correspond to a release date for the CPAN::Meta +library. +.SH "HISTORY" +.IX Header "HISTORY" +.SS "Version 2" +.IX Subsection "Version 2" +April 2010 +.IP "\(bu" 4 +Revised spec examples as perl data structures rather than \s-1YAML\s0 +.IP "\(bu" 4 +Switched to \s-1JSON\s0 serialization from \s-1YAML\s0 +.IP "\(bu" 4 +Specified allowed version number formats +.IP "\(bu" 4 +Replaced 'requires', 'build_requires', 'configure_requires', +\&'recommends' and 'conflicts' with new 'prereqs' data structure divided +by \fIphase\fR (configure, build, test, runtime, etc.) and \fIrelationship\fR +(requires, recommends, suggests, conflicts) +.IP "\(bu" 4 +Added support for 'develop' phase for requirements for maintaining +a list of authoring tools +.IP "\(bu" 4 +Changed 'license' to a list and revised the set of valid licenses +.IP "\(bu" 4 +Made 'dynamic_config' mandatory to reduce confusion +.IP "\(bu" 4 +Changed 'resources' subkey 'repository' to a hash that clarifies +repository type, url for browsing and url for checkout +.IP "\(bu" 4 +Changed 'resources' subkey 'bugtracker' to a hash for either web +or mailto resource +.IP "\(bu" 4 +Changed specification of 'optional_features': +.RS 4 +.IP "\(bu" 4 +Added formal specification and usage guide instead of just example +.IP "\(bu" 4 +Changed to use new prereqs data structure instead of individual keys +.RE +.RS 4 +.RE +.IP "\(bu" 4 +Clarified intended use of 'author' as generalized contact list +.IP "\(bu" 4 +Added 'release_status' field to indicate stable, testing or unstable +status to provide hints to indexers +.IP "\(bu" 4 +Added 'description' field for a longer description of the distribution +.IP "\(bu" 4 +Formalized use of \*(L"x_\*(R" or \*(L"X_\*(R" for all custom keys not listed in the +official spec +.SS "Version 1.4" +.IX Subsection "Version 1.4" +June 2008 +.IP "\(bu" 4 +Noted explicit support for 'perl' in prerequisites +.IP "\(bu" 4 +Added 'configure_requires' prerequisite type +.IP "\(bu" 4 +Changed 'optional_features' +.RS 4 +.IP "\(bu" 4 +Example corrected to show map of maps instead of list of maps +(though descriptive text said 'map' even in v1.3) +.IP "\(bu" 4 +Removed 'requires_packages', 'requires_os' and 'excluded_os' +as valid subkeys +.RE +.RS 4 +.RE +.SS "Version 1.3" +.IX Subsection "Version 1.3" +November 2006 +.IP "\(bu" 4 +Added 'no_index' subkey 'directory' and removed 'dir' to match actual +usage in the wild +.IP "\(bu" 4 +Added a 'repository' subkey to 'resources' +.SS "Version 1.2" +.IX Subsection "Version 1.2" +August 2005 +.IP "\(bu" 4 +Re-wrote and restructured spec in \s-1POD\s0 syntax +.IP "\(bu" 4 +Changed 'name' to be mandatory +.IP "\(bu" 4 +Changed 'generated_by' to be mandatory +.IP "\(bu" 4 +Changed 'license' to be mandatory +.IP "\(bu" 4 +Added version range specifications for prerequisites +.IP "\(bu" 4 +Added required 'abstract' field +.IP "\(bu" 4 +Added required 'author' field +.IP "\(bu" 4 +Added required 'meta\-spec' field to define 'version' (and 'url') of the +\&\s-1CPAN\s0 Meta Spec used for metadata +.IP "\(bu" 4 +Added 'provides' field +.IP "\(bu" 4 +Added 'no_index' field and deprecated 'private' field. 'no_index' +subkeys include 'file', 'dir', 'package' and 'namespace' +.IP "\(bu" 4 +Added 'keywords' field +.IP "\(bu" 4 +Added 'resources' field with subkeys 'homepage', 'license', and +\&'bugtracker' +.IP "\(bu" 4 +Added 'optional_features' field as an alternate under 'recommends'. +Includes 'description', 'requires', 'build_requires', 'conflicts', +\&'requires_packages', 'requires_os' and 'excluded_os' as valid subkeys +.IP "\(bu" 4 +Removed 'license_uri' field +.SS "Version 1.1" +.IX Subsection "Version 1.1" +May 2003 +.IP "\(bu" 4 +Changed 'version' to be mandatory +.IP "\(bu" 4 +Added 'private' field +.IP "\(bu" 4 +Added 'license_uri' field +.SS "Version 1.0" +.IX Subsection "Version 1.0" +March 2003 +.IP "\(bu" 4 +Original release (in \s-1HTML\s0 format only) +.IP "\(bu" 4 +Included 'name', 'version', 'license', 'distribution_type', 'requires', +\&'recommends', 'build_requires', 'conflicts', 'dynamic_config', +\&'generated_by' +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AMerge.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AMerge.3 new file mode 100644 index 0000000000000000000000000000000000000000..09b80fc93c046f43ca6f21922f4a394aba68eda0 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AMerge.3 @@ -0,0 +1,223 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Merge 3" +.TH CPAN::Meta::Merge 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Merge \- Merging CPAN Meta fragments +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& my $merger = CPAN::Meta::Merge\->new(default_version => "2"); +\& my $meta = $merger\->merge($base, @additional); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +This creates a CPAN::Meta::Merge object. It takes one mandatory named +argument, \f(CW\*(C`version\*(C'\fR, declaring the version of the meta-spec that must be +used for the merge. It can optionally take an \f(CW\*(C`extra_mappings\*(C'\fR argument +that allows one to add additional merging functions for specific elements. +.PP +The \f(CW\*(C`extra_mappings\*(C'\fR arguments takes a hash ref with the same type of +structure as described in CPAN::Meta::Spec, except with its values as +one of the defined merge strategies or a code ref +to a merging function. +.PP +.Vb 11 +\& my $merger = CPAN::Meta::Merge\->new( +\& default_version => \*(Aq2\*(Aq, +\& extra_mappings => { +\& \*(Aqoptional_features\*(Aq => \e&custom_merge_function, +\& \*(Aqx_custom\*(Aq => \*(Aqset_addition\*(Aq, +\& \*(Aqx_meta_meta\*(Aq => { +\& name => \*(Aqidentical\*(Aq, +\& tags => \*(Aqset_addition\*(Aq, +\& } +\& } +\& ); +.Ve +.SS "merge(@fragments)" +.IX Subsection "merge(@fragments)" +Merge all \f(CW@fragments\fR together. It will accept both CPAN::Meta objects and +(possibly incomplete) hashrefs of metadata. +.SH "MERGE STRATEGIES" +.IX Header "MERGE STRATEGIES" +\&\f(CW\*(C`merge\*(C'\fR uses various strategies to combine different elements of the CPAN::Meta objects. The following strategies can be used with the extra_mappings argument of \f(CW\*(C`new\*(C'\fR: +.IP "identical" 4 +.IX Item "identical" +The elements must be identical +.IP "set_addition" 4 +.IX Item "set_addition" +The union of two array refs +.Sp +.Vb 1 +\& [ a, b ] U [ a, c] = [ a, b, c ] +.Ve +.IP "uniq_map" 4 +.IX Item "uniq_map" +Key value pairs from the right hash are merged to the left hash. Key +collisions are only allowed if their values are the same. This merge +function will recurse into nested hash refs following the same merge +rules. +.IP "improvise" 4 +.IX Item "improvise" +This merge strategy will try to pick the appropriate predefined strategy +based on what element type. Array refs will try to use the +\&\f(CW\*(C`set_addition\*(C'\fR strategy, Hash refs will try to use the \f(CW\*(C`uniq_map\*(C'\fR +strategy, and everything else will try the \f(CW\*(C`identical\*(C'\fR strategy. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3APrereqs.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3APrereqs.3 new file mode 100644 index 0000000000000000000000000000000000000000..032f188df6082b6a2c178e8c6d7b3e7d591f1be2 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3APrereqs.3 @@ -0,0 +1,285 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Prereqs 3" +.TH CPAN::Meta::Prereqs 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Prereqs \- a set of distribution prerequisites by phase and type +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A CPAN::Meta::Prereqs object represents the prerequisites for a \s-1CPAN\s0 +distribution or one of its optional features. Each set of prereqs is +organized by phase and type, as described in CPAN::Meta::Prereqs. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $prereq = CPAN::Meta::Prereqs\->new( \e%prereq_spec ); +.Ve +.PP +This method returns a new set of Prereqs. The input should look like the +contents of the \f(CW\*(C`prereqs\*(C'\fR field described in CPAN::Meta::Spec, meaning +something more or less like this: +.PP +.Vb 10 +\& my $prereq = CPAN::Meta::Prereqs\->new({ +\& runtime => { +\& requires => { +\& \*(AqSome::Module\*(Aq => \*(Aq1.234\*(Aq, +\& ..., +\& }, +\& ..., +\& }, +\& ..., +\& }); +.Ve +.PP +You can also construct an empty set of prereqs with: +.PP +.Vb 1 +\& my $prereqs = CPAN::Meta::Prereqs\->new; +.Ve +.PP +This empty set of prereqs is useful for accumulating new prereqs before finally +dumping the whole set into a structure or string. +.SS "requirements_for" +.IX Subsection "requirements_for" +.Vb 1 +\& my $requirements = $prereqs\->requirements_for( $phase, $type ); +.Ve +.PP +This method returns a CPAN::Meta::Requirements object for the given +phase/type combination. If no prerequisites are registered for that +combination, a new CPAN::Meta::Requirements object will be returned, and it may +be added to as needed. +.PP +If \f(CW$phase\fR or \f(CW$type\fR are undefined or otherwise invalid, an exception will +be raised. +.SS "phases" +.IX Subsection "phases" +.Vb 1 +\& my @phases = $prereqs\->phases; +.Ve +.PP +This method returns the list of all phases currently populated in the prereqs +object, suitable for iterating. +.SS "types_in" +.IX Subsection "types_in" +.Vb 1 +\& my @runtime_types = $prereqs\->types_in(\*(Aqruntime\*(Aq); +.Ve +.PP +This method returns the list of all types currently populated in the prereqs +object for the provided phase, suitable for iterating. +.SS "with_merged_prereqs" +.IX Subsection "with_merged_prereqs" +.Vb 1 +\& my $new_prereqs = $prereqs\->with_merged_prereqs( $other_prereqs ); +\& +\& my $new_prereqs = $prereqs\->with_merged_prereqs( \e@other_prereqs ); +.Ve +.PP +This method returns a new CPAN::Meta::Prereqs objects in which all the +other prerequisites given are merged into the current set. This is primarily +provided for combining a distribution's core prereqs with the prereqs of one of +its optional features. +.PP +The new prereqs object has no ties to the originals, and altering it further +will not alter them. +.SS "merged_requirements" +.IX Subsection "merged_requirements" +.Vb 3 +\& my $new_reqs = $prereqs\->merged_requirements( \e@phases, \e@types ); +\& my $new_reqs = $prereqs\->merged_requirements( \e@phases ); +\& my $new_reqs = $prereqs\->merged_requirements(); +.Ve +.PP +This method joins together all requirements across a number of phases +and types into a new CPAN::Meta::Requirements object. If arguments +are omitted, it defaults to \*(L"runtime\*(R", \*(L"build\*(R" and \*(L"test\*(R" for phases +and \*(L"requires\*(R" and \*(L"recommends\*(R" for types. +.SS "as_string_hash" +.IX Subsection "as_string_hash" +This method returns a hashref containing structures suitable for dumping into a +distmeta data structure. It is made up of hashes and strings, only; there will +be no Prereqs, CPAN::Meta::Requirements, or \f(CW\*(C`version\*(C'\fR objects inside it. +.SS "is_finalized" +.IX Subsection "is_finalized" +This method returns true if the set of prereqs has been marked \*(L"finalized,\*(R" and +cannot be altered. +.SS "finalize" +.IX Subsection "finalize" +Calling \f(CW\*(C`finalize\*(C'\fR on a Prereqs object will close it for further modification. +Attempting to make any changes that would actually alter the prereqs will +result in an exception being thrown. +.SS "clone" +.IX Subsection "clone" +.Vb 1 +\& my $cloned_prereqs = $prereqs\->clone; +.Ve +.PP +This method returns a Prereqs object that is identical to the original object, +but can be altered without affecting the original object. Finalization does +not survive cloning, meaning that you may clone a finalized set of prereqs and +then modify the clone. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker. +Bugs can be submitted through the web interface at + +.PP +When submitting a bug or request, please include a test-file or a patch to an +existing test-file that illustrates the bug or desired feature. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ARequirements.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ARequirements.3 new file mode 100644 index 0000000000000000000000000000000000000000..4da84f466a7e32fcf835b719e74eb9983e0c076b --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ARequirements.3 @@ -0,0 +1,446 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Requirements 3" +.TH CPAN::Meta::Requirements 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Requirements \- a set of version requirements for a CPAN dist +.SH "VERSION" +.IX Header "VERSION" +version 2.140 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use CPAN::Meta::Requirements; +\& +\& my $build_requires = CPAN::Meta::Requirements\->new; +\& +\& $build_requires\->add_minimum(\*(AqLibrary::Foo\*(Aq => 1.208); +\& +\& $build_requires\->add_minimum(\*(AqLibrary::Foo\*(Aq => 2.602); +\& +\& $build_requires\->add_minimum(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.3\*(Aq); +\& +\& $METAyml\->{build_requires} = $build_requires\->as_string_hash; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A CPAN::Meta::Requirements object models a set of version constraints like +those specified in the \fI\s-1META\s0.yml\fR or \fI\s-1META\s0.json\fR files in \s-1CPAN\s0 distributions, +and as defined by CPAN::Meta::Spec; +It can be built up by adding more and more constraints, and it will reduce them +to the simplest representation. +.PP +Logically impossible constraints will be identified immediately by thrown +exceptions. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $req = CPAN::Meta::Requirements\->new; +.Ve +.PP +This returns a new CPAN::Meta::Requirements object. It takes an optional +hash reference argument. Currently, only one key is supported: +.IP "\(bu" 4 +\&\f(CW\*(C`bad_version_hook\*(C'\fR \*(-- if provided, when a version cannot be parsed into a version object, this code reference will be called with the invalid version string as first argument, and the module name as second argument. It must return a valid version object. +.PP +All other keys are ignored. +.SS "add_minimum" +.IX Subsection "add_minimum" +.Vb 1 +\& $req\->add_minimum( $module => $version ); +.Ve +.PP +This adds a new minimum version requirement. If the new requirement is +redundant to the existing specification, this has no effect. +.PP +Minimum requirements are inclusive. \f(CW$version\fR is required, along with any +greater version number. +.PP +This method returns the requirements object. +.SS "add_maximum" +.IX Subsection "add_maximum" +.Vb 1 +\& $req\->add_maximum( $module => $version ); +.Ve +.PP +This adds a new maximum version requirement. If the new requirement is +redundant to the existing specification, this has no effect. +.PP +Maximum requirements are inclusive. No version strictly greater than the given +version is allowed. +.PP +This method returns the requirements object. +.SS "add_exclusion" +.IX Subsection "add_exclusion" +.Vb 1 +\& $req\->add_exclusion( $module => $version ); +.Ve +.PP +This adds a new excluded version. For example, you might use these three +method calls: +.PP +.Vb 2 +\& $req\->add_minimum( $module => \*(Aq1.00\*(Aq ); +\& $req\->add_maximum( $module => \*(Aq1.82\*(Aq ); +\& +\& $req\->add_exclusion( $module => \*(Aq1.75\*(Aq ); +.Ve +.PP +Any version between 1.00 and 1.82 inclusive would be acceptable, except for +1.75. +.PP +This method returns the requirements object. +.SS "exact_version" +.IX Subsection "exact_version" +.Vb 1 +\& $req\->exact_version( $module => $version ); +.Ve +.PP +This sets the version required for the given module to \fIexactly\fR the given +version. No other version would be considered acceptable. +.PP +This method returns the requirements object. +.SS "add_requirements" +.IX Subsection "add_requirements" +.Vb 1 +\& $req\->add_requirements( $another_req_object ); +.Ve +.PP +This method adds all the requirements in the given CPAN::Meta::Requirements +object to the requirements object on which it was called. If there are any +conflicts, an exception is thrown. +.PP +This method returns the requirements object. +.SS "accepts_module" +.IX Subsection "accepts_module" +.Vb 1 +\& my $bool = $req\->accepts_module($module => $version); +.Ve +.PP +Given an module and version, this method returns true if the version +specification for the module accepts the provided version. In other words, +given: +.PP +.Vb 1 +\& Module => \*(Aq>= 1.00, < 2.00\*(Aq +.Ve +.PP +We will accept 1.00 and 1.75 but not 0.50 or 2.00. +.PP +For modules that do not appear in the requirements, this method will return +true. +.SS "clear_requirement" +.IX Subsection "clear_requirement" +.Vb 1 +\& $req\->clear_requirement( $module ); +.Ve +.PP +This removes the requirement for a given module from the object. +.PP +This method returns the requirements object. +.SS "requirements_for_module" +.IX Subsection "requirements_for_module" +.Vb 1 +\& $req\->requirements_for_module( $module ); +.Ve +.PP +This returns a string containing the version requirements for a given module in +the format described in CPAN::Meta::Spec or undef if the given module has no +requirements. This should only be used for informational purposes such as error +messages and should not be interpreted or used for comparison (see +\&\*(L"accepts_module\*(R" instead). +.SS "structured_requirements_for_module" +.IX Subsection "structured_requirements_for_module" +.Vb 1 +\& $req\->structured_requirements_for_module( $module ); +.Ve +.PP +This returns a data structure containing the version requirements for a given +module or undef if the given module has no requirements. This should +not be used for version checks (see \*(L"accepts_module\*(R" instead). +.PP +Added in version 2.134. +.SS "required_modules" +.IX Subsection "required_modules" +This method returns a list of all the modules for which requirements have been +specified. +.SS "clone" +.IX Subsection "clone" +.Vb 1 +\& $req\->clone; +.Ve +.PP +This method returns a clone of the invocant. The clone and the original object +can then be changed independent of one another. +.SS "is_simple" +.IX Subsection "is_simple" +This method returns true if and only if all requirements are inclusive minimums +\&\*(-- that is, if their string expression is just the version number. +.SS "is_finalized" +.IX Subsection "is_finalized" +This method returns true if the requirements have been finalized by having the +\&\f(CW\*(C`finalize\*(C'\fR method called on them. +.SS "finalize" +.IX Subsection "finalize" +This method marks the requirements finalized. Subsequent attempts to change +the requirements will be fatal, \fIif\fR they would result in a change. If they +would not alter the requirements, they have no effect. +.PP +If a finalized set of requirements is cloned, the cloned requirements are not +also finalized. +.SS "as_string_hash" +.IX Subsection "as_string_hash" +This returns a reference to a hash describing the requirements using the +strings in the CPAN::Meta::Spec specification. +.PP +For example after the following program: +.PP +.Vb 1 +\& my $req = CPAN::Meta::Requirements\->new; +\& +\& $req\->add_minimum(\*(AqCPAN::Meta::Requirements\*(Aq => 0.102); +\& +\& $req\->add_minimum(\*(AqLibrary::Foo\*(Aq => 1.208); +\& +\& $req\->add_maximum(\*(AqLibrary::Foo\*(Aq => 2.602); +\& +\& $req\->add_minimum(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.3\*(Aq); +\& +\& $req\->add_exclusion(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.8\*(Aq); +\& +\& $req\->exact_version(\*(AqXyzzy\*(Aq => \*(Aq6.01\*(Aq); +\& +\& my $hashref = $req\->as_string_hash; +.Ve +.PP +\&\f(CW$hashref\fR would contain: +.PP +.Vb 6 +\& { +\& \*(AqCPAN::Meta::Requirements\*(Aq => \*(Aq0.102\*(Aq, +\& \*(AqLibrary::Foo\*(Aq => \*(Aq>= 1.208, <= 2.206\*(Aq, +\& \*(AqModule::Bar\*(Aq => \*(Aq>= v1.2.3, != v1.2.8\*(Aq, +\& \*(AqXyzzy\*(Aq => \*(Aq== 6.01\*(Aq, +\& } +.Ve +.SS "add_string_requirement" +.IX Subsection "add_string_requirement" +.Vb 2 +\& $req\->add_string_requirement(\*(AqLibrary::Foo\*(Aq => \*(Aq>= 1.208, <= 2.206\*(Aq); +\& $req\->add_string_requirement(\*(AqLibrary::Foo\*(Aq => v1.208); +.Ve +.PP +This method parses the passed in string and adds the appropriate requirement +for the given module. A version can be a Perl \*(L"v\-string\*(R". It understands +version ranges as described in the \*(L"Version Ranges\*(R" in CPAN::Meta::Spec. For +example: +.IP "1.3" 4 +.IX Item "1.3" +.PD 0 +.IP ">= 1.3" 4 +.IX Item ">= 1.3" +.IP "<= 1.3" 4 +.IX Item "<= 1.3" +.IP "== 1.3" 4 +.IX Item "== 1.3" +.IP "!= 1.3" 4 +.IX Item "!= 1.3" +.IP "> 1.3" 4 +.IX Item "> 1.3" +.IP "< 1.3" 4 +.IX Item "< 1.3" +.IP ">= 1.3, != 1.5, <= 2.0" 4 +.IX Item ">= 1.3, != 1.5, <= 2.0" +.PD +A version number without an operator is equivalent to specifying a minimum +(\f(CW\*(C`>=\*(C'\fR). Extra whitespace is allowed. +.SS "from_string_hash" +.IX Subsection "from_string_hash" +.Vb 2 +\& my $req = CPAN::Meta::Requirements\->from_string_hash( \e%hash ); +\& my $req = CPAN::Meta::Requirements\->from_string_hash( \e%hash, \e%opts ); +.Ve +.PP +This is an alternate constructor for a CPAN::Meta::Requirements +object. It takes a hash of module names and version requirement +strings and returns a new CPAN::Meta::Requirements object. As with +add_string_requirement, a version can be a Perl \*(L"v\-string\*(R". Optionally, +you can supply a hash-reference of options, exactly as with the \*(L"new\*(R" +method. +.SH "SUPPORT" +.IX Header "SUPPORT" +.SS "Bugs / Feature Requests" +.IX Subsection "Bugs / Feature Requests" +Please report any bugs or feature requests through the issue tracker +at . +You will be notified automatically of any progress on your issue. +.SS "Source Code" +.IX Subsection "Source Code" +This is open source software. The code repository is available for +public review and contribution under the terms of the license. +.PP + +.PP +.Vb 1 +\& git clone https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta\-Requirements.git +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Ed J +.IP "\(bu" 4 +Karen Etheridge +.IP "\(bu" 4 +Leon Timmermans +.IP "\(bu" 4 +robario +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden and Ricardo Signes. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ASpec.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ASpec.3 new file mode 100644 index 0000000000000000000000000000000000000000..3cd7c1d70834572fbdab81cd665d43d866b3dd2e --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ASpec.3 @@ -0,0 +1,1303 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Spec 3" +.TH CPAN::Meta::Spec 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Spec \- specification for CPAN distribution metadata +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& my $distmeta = { +\& name => \*(AqModule\-Build\*(Aq, +\& abstract => \*(AqBuild and install Perl modules\*(Aq, +\& description => "Module::Build is a system for " +\& . "building, testing, and installing Perl modules. " +\& . "It is meant to ... blah blah blah ...", +\& version => \*(Aq0.36\*(Aq, +\& release_status => \*(Aqstable\*(Aq, +\& author => [ +\& \*(AqKen Williams \*(Aq, +\& \*(AqModule\-Build List \*(Aq, # additional contact +\& ], +\& license => [ \*(Aqperl_5\*(Aq ], +\& prereqs => { +\& runtime => { +\& requires => { +\& \*(Aqperl\*(Aq => \*(Aq5.006\*(Aq, +\& \*(AqExtUtils::Install\*(Aq => \*(Aq0\*(Aq, +\& \*(AqFile::Basename\*(Aq => \*(Aq0\*(Aq, +\& \*(AqFile::Compare\*(Aq => \*(Aq0\*(Aq, +\& \*(AqIO::File\*(Aq => \*(Aq0\*(Aq, +\& }, +\& recommends => { +\& \*(AqArchive::Tar\*(Aq => \*(Aq1.00\*(Aq, +\& \*(AqExtUtils::Install\*(Aq => \*(Aq0.3\*(Aq, +\& \*(AqExtUtils::ParseXS\*(Aq => \*(Aq2.02\*(Aq, +\& }, +\& }, +\& build => { +\& requires => { +\& \*(AqTest::More\*(Aq => \*(Aq0\*(Aq, +\& }, +\& } +\& }, +\& resources => { +\& license => [\*(Aqhttp://dev.perl.org/licenses/\*(Aq], +\& }, +\& optional_features => { +\& domination => { +\& description => \*(AqTake over the world\*(Aq, +\& prereqs => { +\& develop => { requires => { \*(AqGenius::Evil\*(Aq => \*(Aq1.234\*(Aq } }, +\& runtime => { requires => { \*(AqMachine::Weather\*(Aq => \*(Aq2.0\*(Aq } }, +\& }, +\& }, +\& }, +\& dynamic_config => 1, +\& keywords => [ qw/ toolchain cpan dual\-life / ], +\& \*(Aqmeta\-spec\*(Aq => { +\& version => \*(Aq2\*(Aq, +\& url => \*(Aqhttps://metacpan.org/pod/CPAN::Meta::Spec\*(Aq, +\& }, +\& generated_by => \*(AqModule::Build version 0.36\*(Aq, +\& }; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document describes version 2 of the \s-1CPAN\s0 distribution metadata +specification, also known as the \*(L"\s-1CPAN\s0 Meta Spec\*(R". +.PP +Revisions of this specification for typo corrections and prose +clarifications may be issued as CPAN::Meta::Spec 2.\fIx\fR. These +revisions will never change semantics or add or remove specified +behavior. +.PP +Distribution metadata describe important properties of Perl +distributions. Distribution building tools like Module::Build, +Module::Install, ExtUtils::MakeMaker or Dist::Zilla should create a +metadata file in accordance with this specification and include it with +the distribution for use by automated tools that index, examine, package +or install Perl distributions. +.SH "TERMINOLOGY" +.IX Header "TERMINOLOGY" +.IP "distribution" 4 +.IX Item "distribution" +This is the primary object described by the metadata. In the context of +this document it usually refers to a collection of modules, scripts, +and/or documents that are distributed together for other developers to +use. Examples of distributions are \f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR, +or \f(CW\*(C`DBI\*(C'\fR. +.IP "module" 4 +.IX Item "module" +This refers to a reusable library of code contained in a single file. +Modules usually contain one or more packages and are often referred +to by the name of a primary package that can be mapped to the file +name. For example, one might refer to \f(CW\*(C`File::Spec\*(C'\fR instead of +\&\fIFile/Spec.pm\fR +.IP "package" 4 +.IX Item "package" +This refers to a namespace declared with the Perl \f(CW\*(C`package\*(C'\fR statement. +In Perl, packages often have a version number property given by the +\&\f(CW$VERSION\fR variable in the namespace. +.IP "consumer" 4 +.IX Item "consumer" +This refers to code that reads a metadata file, deserializes it into a +data structure in memory, or interprets a data structure of metadata +elements. +.IP "producer" 4 +.IX Item "producer" +This refers to code that constructs a metadata data structure, +serializes into a bytestream and/or writes it to disk. +.IP "must, should, may, etc." 4 +.IX Item "must, should, may, etc." +These terms are interpreted as described in \s-1IETF RFC 2119.\s0 +.SH "DATA TYPES" +.IX Header "DATA TYPES" +Fields in the \*(L"\s-1STRUCTURE\*(R"\s0 section describe data elements, each of +which has an associated data type as described herein. There are four +primitive types: Boolean, String, List and Map. Other types are +subtypes of primitives and define compound data structures or define +constraints on the values of a data element. +.SS "Boolean" +.IX Subsection "Boolean" +A \fIBoolean\fR is used to provide a true or false value. It \fBmust\fR be +represented as a defined value that is either \*(L"1\*(R" or \*(L"0\*(R" or stringifies +to those values. +.SS "String" +.IX Subsection "String" +A \fIString\fR is data element containing a non-zero length sequence of +Unicode characters, such as an ordinary Perl scalar that is not a +reference. +.SS "List" +.IX Subsection "List" +A \fIList\fR is an ordered collection of zero or more data elements. +Elements of a List may be of mixed types. +.PP +Producers \fBmust\fR represent List elements using a data structure which +unambiguously indicates that multiple values are possible, such as a +reference to a Perl array (an \*(L"arrayref\*(R"). +.PP +Consumers expecting a List \fBmust\fR consider a String as equivalent to a +List of length 1. +.SS "Map" +.IX Subsection "Map" +A \fIMap\fR is an unordered collection of zero or more data elements +(\*(L"values\*(R"), indexed by associated String elements (\*(L"keys\*(R"). The Map's +value elements may be of mixed types. +.SS "License String" +.IX Subsection "License String" +A \fILicense String\fR is a subtype of String with a restricted set of +values. Valid values are described in detail in the description of +the \*(L"license\*(R" field. +.SS "\s-1URL\s0" +.IX Subsection "URL" +\&\fI\s-1URL\s0\fR is a subtype of String containing a Uniform Resource Locator or +Identifier. [ This type is called \s-1URL\s0 and not \s-1URI\s0 for historical reasons. ] +.SS "Version" +.IX Subsection "Version" +A \fIVersion\fR is a subtype of String containing a value that describes +the version number of packages or distributions. Restrictions on format +are described in detail in the \*(L"Version Formats\*(R" section. +.SS "Version Range" +.IX Subsection "Version Range" +The \fIVersion Range\fR type is a subtype of String. It describes a range +of Versions that may be present or installed to fulfill prerequisites. +It is specified in detail in the \*(L"Version Ranges\*(R" section. +.SH "STRUCTURE" +.IX Header "STRUCTURE" +The metadata structure is a data element of type Map. This section +describes valid keys within the Map. +.PP +Any keys not described in this specification document (whether top-level +or within compound data structures described herein) are considered +\&\fIcustom keys\fR and \fBmust\fR begin with an \*(L"x\*(R" or \*(L"X\*(R" and be followed by an +underscore; i.e. they must match the pattern: \f(CW\*(C`qr{\eAx_}i\*(C'\fR. If a +custom key refers to a compound data structure, subkeys within it do not +need an \*(L"x_\*(R" or \*(L"X_\*(R" prefix. +.PP +Consumers of metadata may ignore any or all custom keys. All other keys +not described herein are invalid and should be ignored by consumers. +Producers must not generate or output invalid keys. +.PP +For each key, an example is provided followed by a description. The +description begins with the version of spec in which the key was added +or in which the definition was modified, whether the key is \fIrequired\fR +or \fIoptional\fR and the data type of the corresponding data element. +These items are in parentheses, brackets and braces, respectively. +.PP +If a data type is a Map or Map subtype, valid subkeys will be described +as well. +.PP +Some fields are marked \fIDeprecated\fR. These are shown for historical +context and must not be produced in or consumed from any metadata structure +of version 2 or higher. +.SS "\s-1REQUIRED FIELDS\s0" +.IX Subsection "REQUIRED FIELDS" +\fIabstract\fR +.IX Subsection "abstract" +.PP +Example: +.PP +.Vb 1 +\& abstract => \*(AqBuild and install Perl modules\*(Aq +.Ve +.PP +(Spec 1.2) [required] {String} +.PP +This is a short description of the purpose of the distribution. +.PP +\fIauthor\fR +.IX Subsection "author" +.PP +Example: +.PP +.Vb 1 +\& author => [ \*(AqKen Williams \*(Aq ] +.Ve +.PP +(Spec 1.2) [required] {List of one or more Strings} +.PP +This List indicates the person(s) to contact concerning the +distribution. The preferred form of the contact string is: +.PP +.Vb 1 +\& contact\-name +.Ve +.PP +This field provides a general contact list independent of other +structured fields provided within the \*(L"resources\*(R" field, such as +\&\f(CW\*(C`bugtracker\*(C'\fR. The addressee(s) can be contacted for any purpose +including but not limited to (security) problems with the distribution, +questions about the distribution or bugs in the distribution. +.PP +A distribution's original author is usually the contact listed within +this field. Co-maintainers, successor maintainers or mailing lists +devoted to the distribution may also be listed in addition to or instead +of the original author. +.PP +\fIdynamic_config\fR +.IX Subsection "dynamic_config" +.PP +Example: +.PP +.Vb 1 +\& dynamic_config => 1 +.Ve +.PP +(Spec 2) [required] {Boolean} +.PP +A boolean flag indicating whether a \fIBuild.PL\fR or \fIMakefile.PL\fR (or +similar) must be executed to determine prerequisites. +.PP +This field should be set to a true value if the distribution performs +some dynamic configuration (asking questions, sensing the environment, +etc.) as part of its configuration. This field should be set to a false +value to indicate that prerequisites included in metadata may be +considered final and valid for static analysis. +.PP +Note: when this field is true, post-configuration prerequisites are not +guaranteed to bear any relation whatsoever to those stated in the metadata, +and relying on them doing so is an error. See also +\&\*(L"Prerequisites for dynamically configured distributions\*(R" in the implementors' +notes. +.PP +This field explicitly \fBdoes not\fR indicate whether installation may be +safely performed without using a Makefile or Build file, as there may be +special files to install or custom installation targets (e.g. for +dual-life modules that exist on \s-1CPAN\s0 as well as in the Perl core). This +field only defines whether or not prerequisites are exactly as given in the +metadata. +.PP +\fIgenerated_by\fR +.IX Subsection "generated_by" +.PP +Example: +.PP +.Vb 1 +\& generated_by => \*(AqModule::Build version 0.36\*(Aq +.Ve +.PP +(Spec 1.0) [required] {String} +.PP +This field indicates the tool that was used to create this metadata. +There are no defined semantics for this field, but it is traditional to +use a string in the form \*(L"Generating::Package version 1.23\*(R" or the +author's name, if the file was generated by hand. +.PP +\fIlicense\fR +.IX Subsection "license" +.PP +Example: +.PP +.Vb 1 +\& license => [ \*(Aqperl_5\*(Aq ] +\& +\& license => [ \*(Aqapache_2_0\*(Aq, \*(Aqmozilla_1_0\*(Aq ] +.Ve +.PP +(Spec 2) [required] {List of one or more License Strings} +.PP +One or more licenses that apply to some or all of the files in the +distribution. If multiple licenses are listed, the distribution +documentation should be consulted to clarify the interpretation of +multiple licenses. +.PP +The following list of license strings are valid: +.PP +.Vb 10 +\& string description +\& \-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& agpl_3 GNU Affero General Public License, Version 3 +\& apache_1_1 Apache Software License, Version 1.1 +\& apache_2_0 Apache License, Version 2.0 +\& artistic_1 Artistic License, (Version 1) +\& artistic_2 Artistic License, Version 2.0 +\& bsd BSD License (three\-clause) +\& freebsd FreeBSD License (two\-clause) +\& gfdl_1_2 GNU Free Documentation License, Version 1.2 +\& gfdl_1_3 GNU Free Documentation License, Version 1.3 +\& gpl_1 GNU General Public License, Version 1 +\& gpl_2 GNU General Public License, Version 2 +\& gpl_3 GNU General Public License, Version 3 +\& lgpl_2_1 GNU Lesser General Public License, Version 2.1 +\& lgpl_3_0 GNU Lesser General Public License, Version 3.0 +\& mit MIT (aka X11) License +\& mozilla_1_0 Mozilla Public License, Version 1.0 +\& mozilla_1_1 Mozilla Public License, Version 1.1 +\& openssl OpenSSL License +\& perl_5 The Perl 5 License (Artistic 1 & GPL 1 or later) +\& qpl_1_0 Q Public License, Version 1.0 +\& ssleay Original SSLeay License +\& sun Sun Internet Standards Source License (SISSL) +\& zlib zlib License +.Ve +.PP +The following license strings are also valid and indicate other +licensing not described above: +.PP +.Vb 6 +\& string description +\& \-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& open_source Other Open Source Initiative (OSI) approved license +\& restricted Requires special permission from copyright holder +\& unrestricted Not an OSI approved license, but not restricted +\& unknown License not provided in metadata +.Ve +.PP +All other strings are invalid in the license field. +.PP +\fImeta-spec\fR +.IX Subsection "meta-spec" +.PP +Example: +.PP +.Vb 4 +\& \*(Aqmeta\-spec\*(Aq => { +\& version => \*(Aq2\*(Aq, +\& url => \*(Aqhttp://search.cpan.org/perldoc?CPAN::Meta::Spec\*(Aq, +\& } +.Ve +.PP +(Spec 1.2) [required] {Map} +.PP +This field indicates the version of the \s-1CPAN\s0 Meta Spec that should be +used to interpret the metadata. Consumers must check this key as soon +as possible and abort further metadata processing if the meta-spec +version is not supported by the consumer. +.PP +The following keys are valid, but only \f(CW\*(C`version\*(C'\fR is required. +.IP "version" 4 +.IX Item "version" +This subkey gives the integer \fIVersion\fR of the \s-1CPAN\s0 Meta Spec against +which the document was generated. +.IP "url" 4 +.IX Item "url" +This is a \fI\s-1URL\s0\fR of the metadata specification document corresponding to +the given version. This is strictly for human-consumption and should +not impact the interpretation of the document. +.Sp +For the version 2 spec, either of these are recommended: +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`https://metacpan.org/pod/CPAN::Meta::Spec\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`http://search.cpan.org/perldoc?CPAN::Meta::Spec\*(C'\fR +.RE +.RS 4 +.RE +.PP +\fIname\fR +.IX Subsection "name" +.PP +Example: +.PP +.Vb 1 +\& name => \*(AqModule\-Build\*(Aq +.Ve +.PP +(Spec 1.0) [required] {String} +.PP +This field is the name of the distribution. This is often created by +taking the \*(L"main package\*(R" in the distribution and changing \f(CW\*(C`::\*(C'\fR to +\&\f(CW\*(C`\-\*(C'\fR, but the name may be completely unrelated to the packages within +the distribution. For example, LWP::UserAgent is distributed as part +of the distribution name \*(L"libwww-perl\*(R". +.PP +\fIrelease_status\fR +.IX Subsection "release_status" +.PP +Example: +.PP +.Vb 1 +\& release_status => \*(Aqstable\*(Aq +.Ve +.PP +(Spec 2) [required] {String} +.PP +This field provides the release status of this distribution. If the +\&\f(CW\*(C`version\*(C'\fR field contains an underscore character, then +\&\f(CW\*(C`release_status\*(C'\fR \fBmust not\fR be \*(L"stable.\*(R" +.PP +The \f(CW\*(C`release_status\*(C'\fR field \fBmust\fR have one of the following values: +.IP "stable" 4 +.IX Item "stable" +This indicates an ordinary, \*(L"final\*(R" release that should be indexed by \s-1PAUSE\s0 +or other indexers. +.IP "testing" 4 +.IX Item "testing" +This indicates a \*(L"beta\*(R" release that is substantially complete, but has an +elevated risk of bugs and requires additional testing. The distribution +should not be installed over a stable release without an explicit request +or other confirmation from a user. This release status may also be used +for \*(L"release candidate\*(R" versions of a distribution. +.IP "unstable" 4 +.IX Item "unstable" +This indicates an \*(L"alpha\*(R" release that is under active development, but has +been released for early feedback or testing and may be missing features or +may have serious bugs. The distribution should not be installed over a +stable release without an explicit request or other confirmation from a +user. +.PP +Consumers \fBmay\fR use this field to determine how to index the +distribution for \s-1CPAN\s0 or other repositories in addition to or in +replacement of heuristics based on version number or file name. +.PP +\fIversion\fR +.IX Subsection "version" +.PP +Example: +.PP +.Vb 1 +\& version => \*(Aq0.36\*(Aq +.Ve +.PP +(Spec 1.0) [required] {Version} +.PP +This field gives the version of the distribution to which the metadata +structure refers. +.SS "\s-1OPTIONAL FIELDS\s0" +.IX Subsection "OPTIONAL FIELDS" +\fIdescription\fR +.IX Subsection "description" +.PP +Example: +.PP +.Vb 3 +\& description => "Module::Build is a system for " +\& . "building, testing, and installing Perl modules. " +\& . "It is meant to ... blah blah blah ...", +.Ve +.PP +(Spec 2) [optional] {String} +.PP +A longer, more complete description of the purpose or intended use of +the distribution than the one provided by the \f(CW\*(C`abstract\*(C'\fR key. +.PP +\fIkeywords\fR +.IX Subsection "keywords" +.PP +Example: +.PP +.Vb 1 +\& keywords => [ qw/ toolchain cpan dual\-life / ] +.Ve +.PP +(Spec 1.1) [optional] {List of zero or more Strings} +.PP +A List of keywords that describe this distribution. Keywords +\&\fBmust not\fR include whitespace. +.PP +\fIno_index\fR +.IX Subsection "no_index" +.PP +Example: +.PP +.Vb 6 +\& no_index => { +\& file => [ \*(AqMy/Module.pm\*(Aq ], +\& directory => [ \*(AqMy/Private\*(Aq ], +\& package => [ \*(AqMy::Module::Secret\*(Aq ], +\& namespace => [ \*(AqMy::Module::Sample\*(Aq ], +\& } +.Ve +.PP +(Spec 1.2) [optional] {Map} +.PP +This Map describes any files, directories, packages, and namespaces that +are private to the packaging or implementation of the distribution and +should be ignored by indexing or search tools. Note that this is a list of +exclusions, and the spec does not define what to \fIinclude\fR \- see +\&\*(L"Indexing distributions a la \s-1PAUSE\*(R"\s0 in the implementors notes for more +information. +.PP +Valid subkeys are as follows: +.IP "file" 4 +.IX Item "file" +A \fIList\fR of relative paths to files. Paths \fBmust be\fR specified with +unix conventions. +.IP "directory" 4 +.IX Item "directory" +A \fIList\fR of relative paths to directories. Paths \fBmust be\fR specified +with unix conventions. +.Sp +[ Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of \f(CW\*(C`directory\*(C'\fR ] +.IP "package" 4 +.IX Item "package" +A \fIList\fR of package names. +.IP "namespace" 4 +.IX Item "namespace" +A \fIList\fR of package namespaces, where anything below the namespace +must be ignored, but \fInot\fR the namespace itself. +.Sp +In the example above for \f(CW\*(C`no_index\*(C'\fR, \f(CW\*(C`My::Module::Sample::Foo\*(C'\fR would +be ignored, but \f(CW\*(C`My::Module::Sample\*(C'\fR would not. +.PP +\fIoptional_features\fR +.IX Subsection "optional_features" +.PP +Example: +.PP +.Vb 12 +\& optional_features => { +\& sqlite => { +\& description => \*(AqProvides SQLite support\*(Aq, +\& prereqs => { +\& runtime => { +\& requires => { +\& \*(AqDBD::SQLite\*(Aq => \*(Aq1.25\*(Aq +\& } +\& } +\& } +\& } +\& } +.Ve +.PP +(Spec 2) [optional] {Map} +.PP +This Map describes optional features with incremental prerequisites. +Each key of the \f(CW\*(C`optional_features\*(C'\fR Map is a String used to identify +the feature and each value is a Map with additional information about +the feature. Valid subkeys include: +.IP "description" 4 +.IX Item "description" +This is a String describing the feature. Every optional feature +should provide a description +.IP "prereqs" 4 +.IX Item "prereqs" +This entry is required and has the same structure as that of the +\&\f(CW"prereqs"\fR key. It provides a list of package requirements +that must be satisfied for the feature to be supported or enabled. +.Sp +There is one crucial restriction: the prereqs of an optional feature +\&\fBmust not\fR include \f(CW\*(C`configure\*(C'\fR phase prereqs. +.PP +Consumers \fBmust not\fR include optional features as prerequisites without +explicit instruction from users (whether via interactive prompting, +a function parameter or a configuration value, etc. ). +.PP +If an optional feature is used by a consumer to add additional +prerequisites, the consumer should merge the optional feature +prerequisites into those given by the \f(CW\*(C`prereqs\*(C'\fR key using the same +semantics. See \*(L"Merging and Resolving Prerequisites\*(R" for details on +merging prerequisites. +.PP +\&\fISuggestion for disuse:\fR Because there is currently no way for a +distribution to specify a dependency on an optional feature of another +dependency, the use of \f(CW\*(C`optional_feature\*(C'\fR is discouraged. Instead, +create a separate, installable distribution that ensures the desired +feature is available. For example, if \f(CW\*(C`Foo::Bar\*(C'\fR has a \f(CW\*(C`Baz\*(C'\fR feature, +release a separate \f(CW\*(C`Foo\-Bar\-Baz\*(C'\fR distribution that satisfies +requirements for the feature. +.PP +\fIprereqs\fR +.IX Subsection "prereqs" +.PP +Example: +.PP +.Vb 10 +\& prereqs => { +\& runtime => { +\& requires => { +\& \*(Aqperl\*(Aq => \*(Aq5.006\*(Aq, +\& \*(AqFile::Spec\*(Aq => \*(Aq0.86\*(Aq, +\& \*(AqJSON\*(Aq => \*(Aq2.16\*(Aq, +\& }, +\& recommends => { +\& \*(AqJSON::XS\*(Aq => \*(Aq2.26\*(Aq, +\& }, +\& suggests => { +\& \*(AqArchive::Tar\*(Aq => \*(Aq0\*(Aq, +\& }, +\& }, +\& build => { +\& requires => { +\& \*(AqAlien::SDL\*(Aq => \*(Aq1.00\*(Aq, +\& }, +\& }, +\& test => { +\& recommends => { +\& \*(AqTest::Deep\*(Aq => \*(Aq0.10\*(Aq, +\& }, +\& } +\& } +.Ve +.PP +(Spec 2) [optional] {Map} +.PP +This is a Map that describes all the prerequisites of the distribution. +The keys are phases of activity, such as \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`build\*(C'\fR, \f(CW\*(C`test\*(C'\fR +or \f(CW\*(C`runtime\*(C'\fR. Values are Maps in which the keys name the type of +prerequisite relationship such as \f(CW\*(C`requires\*(C'\fR, \f(CW\*(C`recommends\*(C'\fR, or +\&\f(CW\*(C`suggests\*(C'\fR and the value provides a set of prerequisite relations. The +set of relations \fBmust\fR be specified as a Map of package names to +version ranges. +.PP +The full definition for this field is given in the \*(L"Prereq Spec\*(R" +section. +.PP +\fIprovides\fR +.IX Subsection "provides" +.PP +Example: +.PP +.Vb 10 +\& provides => { +\& \*(AqFoo::Bar\*(Aq => { +\& file => \*(Aqlib/Foo/Bar.pm\*(Aq, +\& version => \*(Aq0.27_02\*(Aq, +\& }, +\& \*(AqFoo::Bar::Blah\*(Aq => { +\& file => \*(Aqlib/Foo/Bar/Blah.pm\*(Aq, +\& }, +\& \*(AqFoo::Bar::Baz\*(Aq => { +\& file => \*(Aqlib/Foo/Bar/Baz.pm\*(Aq, +\& version => \*(Aq0.3\*(Aq, +\& }, +\& } +.Ve +.PP +(Spec 1.2) [optional] {Map} +.PP +This describes all packages provided by this distribution. This +information is used by distribution and automation mechanisms like +\&\s-1PAUSE, CPAN,\s0 metacpan.org and search.cpan.org to build indexes saying in +which distribution various packages can be found. +.PP +The keys of \f(CW\*(C`provides\*(C'\fR are package names that can be found within +the distribution. If a package name key is provided, it must +have a Map with the following valid subkeys: +.IP "file" 4 +.IX Item "file" +This field is required. It must contain a Unix-style relative file path +from the root of the distribution directory to a file that contains or +generates the package. It may be given as \f(CW\*(C`META.yml\*(C'\fR or \f(CW\*(C`META.json\*(C'\fR +to claim a package for indexing without needing a \f(CW\*(C`*.pm\*(C'\fR. +.IP "version" 4 +.IX Item "version" +If it exists, this field must contains a \fIVersion\fR String for the +package. If the package does not have a \f(CW$VERSION\fR, this field must +be omitted. +.PP +\fIresources\fR +.IX Subsection "resources" +.PP +Example: +.PP +.Vb 10 +\& resources => { +\& license => [ \*(Aqhttp://dev.perl.org/licenses/\*(Aq ], +\& homepage => \*(Aqhttp://sourceforge.net/projects/module\-build\*(Aq, +\& bugtracker => { +\& web => \*(Aqhttp://rt.cpan.org/Public/Dist/Display.html?Name=CPAN\-Meta\*(Aq, +\& mailto => \*(Aqmeta\-bugs@example.com\*(Aq, +\& }, +\& repository => { +\& url => \*(Aqgit://github.com/dagolden/cpan\-meta.git\*(Aq, +\& web => \*(Aqhttp://github.com/dagolden/cpan\-meta\*(Aq, +\& type => \*(Aqgit\*(Aq, +\& }, +\& x_twitter => \*(Aqhttp://twitter.com/cpan_linked/\*(Aq, +\& } +.Ve +.PP +(Spec 2) [optional] {Map} +.PP +This field describes resources related to this distribution. +.PP +Valid subkeys include: +.IP "homepage" 4 +.IX Item "homepage" +The official home of this project on the web. +.IP "license" 4 +.IX Item "license" +A List of \fI\s-1URL\s0\fR's that relate to this distribution's license. As with the +top-level \f(CW\*(C`license\*(C'\fR field, distribution documentation should be consulted +to clarify the interpretation of multiple licenses provided here. +.IP "bugtracker" 4 +.IX Item "bugtracker" +This entry describes the bug tracking system for this distribution. It +is a Map with the following valid keys: +.Sp +.Vb 2 +\& web \- a URL pointing to a web front\-end for the bug tracker +\& mailto \- an email address to which bugs can be sent +.Ve +.IP "repository" 4 +.IX Item "repository" +This entry describes the source control repository for this distribution. It +is a Map with the following valid keys: +.Sp +.Vb 3 +\& url \- a URL pointing to the repository itself +\& web \- a URL pointing to a web front\-end for the repository +\& type \- a lowercase string indicating the VCS used +.Ve +.Sp +Because a url like \f(CW\*(C`http://myrepo.example.com/\*(C'\fR is ambiguous as to +type, producers should provide a \f(CW\*(C`type\*(C'\fR whenever a \f(CW\*(C`url\*(C'\fR key is given. +The \f(CW\*(C`type\*(C'\fR field should be the name of the most common program used +to work with the repository, e.g. \f(CW\*(C`git\*(C'\fR, \f(CW\*(C`svn\*(C'\fR, \f(CW\*(C`cvs\*(C'\fR, \f(CW\*(C`darcs\*(C'\fR, +\&\f(CW\*(C`bzr\*(C'\fR or \f(CW\*(C`hg\*(C'\fR. +.SS "\s-1DEPRECATED FIELDS\s0" +.IX Subsection "DEPRECATED FIELDS" +\fIbuild_requires\fR +.IX Subsection "build_requires" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +Replaced by \f(CW\*(C`prereqs\*(C'\fR +.PP +\fIconfigure_requires\fR +.IX Subsection "configure_requires" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +Replaced by \f(CW\*(C`prereqs\*(C'\fR +.PP +\fIconflicts\fR +.IX Subsection "conflicts" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +Replaced by \f(CW\*(C`prereqs\*(C'\fR +.PP +\fIdistribution_type\fR +.IX Subsection "distribution_type" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +This field indicated 'module' or 'script' but was considered +meaningless, since many distributions are hybrids of several kinds of +things. +.PP +\fIlicense_uri\fR +.IX Subsection "license_uri" +.PP +\&\fI(Deprecated in Spec 1.2)\fR [optional] {\s-1URL\s0} +.PP +Replaced by \f(CW\*(C`license\*(C'\fR in \f(CW\*(C`resources\*(C'\fR +.PP +\fIprivate\fR +.IX Subsection "private" +.PP +\&\fI(Deprecated in Spec 1.2)\fR [optional] {Map} +.PP +This field has been renamed to \*(L"no_index\*(R". +.PP +\fIrecommends\fR +.IX Subsection "recommends" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +Replaced by \f(CW\*(C`prereqs\*(C'\fR +.PP +\fIrequires\fR +.IX Subsection "requires" +.PP +\&\fI(Deprecated in Spec 2)\fR [optional] {String} +.PP +Replaced by \f(CW\*(C`prereqs\*(C'\fR +.SH "VERSION NUMBERS" +.IX Header "VERSION NUMBERS" +.SS "Version Formats" +.IX Subsection "Version Formats" +This section defines the Version type, used by several fields in the +\&\s-1CPAN\s0 Meta Spec. +.PP +Version numbers must be treated as strings, not numbers. For +example, \f(CW1.200\fR \fBmust not\fR be serialized as \f(CW1.2\fR. Version +comparison should be delegated to the Perl version module, version +0.80 or newer. +.PP +Unless otherwise specified, version numbers \fBmust\fR appear in one of two +formats: +.IP "Decimal versions" 4 +.IX Item "Decimal versions" +Decimal versions are regular \*(L"decimal numbers\*(R", with some limitations. +They \fBmust\fR be non-negative and \fBmust\fR begin and end with a digit. A +single underscore \fBmay\fR be included, but \fBmust\fR be between two digits. +They \fBmust not\fR use exponential notation (\*(L"1.23e\-2\*(R"). +.Sp +.Vb 2 +\& version => \*(Aq1.234\*(Aq # OK +\& version => \*(Aq1.23_04\*(Aq # OK +\& +\& version => \*(Aq1.23_04_05\*(Aq # Illegal +\& version => \*(Aq1.\*(Aq # Illegal +\& version => \*(Aq.1\*(Aq # Illegal +.Ve +.IP "Dotted-integer versions" 4 +.IX Item "Dotted-integer versions" +Dotted-integer (also known as dotted-decimal) versions consist of +positive integers separated by full stop characters (i.e. \*(L"dots\*(R", +\&\*(L"periods\*(R" or \*(L"decimal points\*(R"). This are equivalent in format to Perl +\&\*(L"v\-strings\*(R", with some additional restrictions on form. They must be +given in \*(L"normal\*(R" form, which has a leading \*(L"v\*(R" character and at least +three integer components. To retain a one-to-one mapping with decimal +versions, all components after the first \fBshould\fR be restricted to the +range 0 to 999. The final component \fBmay\fR be separated by an +underscore character instead of a period. +.Sp +.Vb 5 +\& version => \*(Aqv1.2.3\*(Aq # OK +\& version => \*(Aqv1.2_3\*(Aq # OK +\& version => \*(Aqv1.2.3.4\*(Aq # OK +\& version => \*(Aqv1.2.3_4\*(Aq # OK +\& version => \*(Aqv2009.10.31\*(Aq # OK +\& +\& version => \*(Aqv1.2\*(Aq # Illegal +\& version => \*(Aq1.2.3\*(Aq # Illegal +\& version => \*(Aqv1.2_3_4\*(Aq # Illegal +\& version => \*(Aqv1.2009.10.31\*(Aq # Not recommended +.Ve +.SS "Version Ranges" +.IX Subsection "Version Ranges" +Some fields (prereq, optional_features) indicate the particular +version(s) of some other module that may be required as a prerequisite. +This section details the Version Range type used to provide this +information. +.PP +The simplest format for a Version Range is just the version +number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4 +must be present. To indicate that \fBany\fR version of a prerequisite is +okay, even if the prerequisite doesn't define a version at all, use +the version \f(CW0\fR. +.PP +Alternatively, a version range \fBmay\fR use the operators < (less than), +<= (less than or equal), > (greater than), >= (greater than +or equal), == (equal), and != (not equal). For example, the +specification \f(CW\*(C`< 2.0\*(C'\fR means that any version of the prerequisite +less than 2.0 is suitable. +.PP +For more complicated situations, version specifications \fBmay\fR be AND-ed +together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, < +2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR 2.0, +and \fBnot equal to\fR 1.5. +.SH "PREREQUISITES" +.IX Header "PREREQUISITES" +.SS "Prereq Spec" +.IX Subsection "Prereq Spec" +The \f(CW\*(C`prereqs\*(C'\fR key in the top-level metadata and within +\&\f(CW\*(C`optional_features\*(C'\fR define the relationship between a distribution and +other packages. The prereq spec structure is a hierarchical data +structure which divides prerequisites into \fIPhases\fR of activity in the +installation process and \fIRelationships\fR that indicate how +prerequisites should be resolved. +.PP +For example, to specify that \f(CW\*(C`Data::Dumper\*(C'\fR is \f(CW\*(C`required\*(C'\fR during the +\&\f(CW\*(C`test\*(C'\fR phase, this entry would appear in the distribution metadata: +.PP +.Vb 7 +\& prereqs => { +\& test => { +\& requires => { +\& \*(AqData::Dumper\*(Aq => \*(Aq2.00\*(Aq +\& } +\& } +\& } +.Ve +.PP +\fIPhases\fR +.IX Subsection "Phases" +.PP +Requirements for regular use must be listed in the \f(CW\*(C`runtime\*(C'\fR phase. +Other requirements should be listed in the earliest stage in which they +are required and consumers must accumulate and satisfy requirements +across phases before executing the activity. For example, \f(CW\*(C`build\*(C'\fR +requirements must also be available during the \f(CW\*(C`test\*(C'\fR phase. +.PP +.Vb 4 +\& before action requirements that must be met +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& perl Build.PL configure +\& perl Makefile.PL +\& +\& make configure, runtime, build +\& Build +\& +\& make test configure, runtime, build, test +\& Build test +.Ve +.PP +Consumers that install the distribution must ensure that +\&\fIruntime\fR requirements are also installed and may install +dependencies from other phases. +.PP +.Vb 4 +\& after action requirements that must be met +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& make install runtime +\& Build install +.Ve +.IP "configure" 4 +.IX Item "configure" +The configure phase occurs before any dynamic configuration has been +attempted. Libraries required by the configure phase \fBmust\fR be +available for use before the distribution building tool has been +executed. +.IP "build" 4 +.IX Item "build" +The build phase is when the distribution's source code is compiled (if +necessary) and otherwise made ready for installation. +.IP "test" 4 +.IX Item "test" +The test phase is when the distribution's automated test suite is run. +Any library that is needed only for testing and not for subsequent use +should be listed here. +.IP "runtime" 4 +.IX Item "runtime" +The runtime phase refers not only to when the distribution's contents +are installed, but also to its continued use. Any library that is a +prerequisite for regular use of this distribution should be indicated +here. +.IP "develop" 4 +.IX Item "develop" +The develop phase's prereqs are libraries needed to work on the +distribution's source code as its author does. These tools might be +needed to build a release tarball, to run author-only tests, or to +perform other tasks related to developing new versions of the +distribution. +.PP +\fIRelationships\fR +.IX Subsection "Relationships" +.IP "requires" 4 +.IX Item "requires" +These dependencies \fBmust\fR be installed for proper completion of the +phase. +.IP "recommends" 4 +.IX Item "recommends" +Recommended dependencies are \fIstrongly\fR encouraged and should be +satisfied except in resource constrained environments. +.IP "suggests" 4 +.IX Item "suggests" +These dependencies are optional, but are suggested for enhanced operation +of the described distribution. +.IP "conflicts" 4 +.IX Item "conflicts" +These libraries cannot be installed when the phase is in operation. +This is a very rare situation, and the \f(CW\*(C`conflicts\*(C'\fR relationship should +be used with great caution, or not at all. +.SS "Merging and Resolving Prerequisites" +.IX Subsection "Merging and Resolving Prerequisites" +Whenever metadata consumers merge prerequisites, either from different +phases or from \f(CW\*(C`optional_features\*(C'\fR, they should merged in a way which +preserves the intended semantics of the prerequisite structure. Generally, +this means concatenating the version specifications using commas, as +described in the \*(L"Version Ranges\*(R" section. +.PP +Another subtle error that can occur in resolving prerequisites comes from +the way that modules in prerequisites are indexed to distribution files on +\&\s-1CPAN.\s0 When a module is deleted from a distribution, prerequisites calling +for that module could indicate an older distribution should be installed, +potentially overwriting files from a newer distribution. +.PP +For example, as of Oct 31, 2009, the \s-1CPAN\s0 index file contained these +module-distribution mappings: +.PP +.Vb 3 +\& Class::MOP 0.94 D/DR/DROLSKY/Class\-MOP\-0.94.tar.gz +\& Class::MOP::Class 0.94 D/DR/DROLSKY/Class\-MOP\-0.94.tar.gz +\& Class::MOP::Class::Immutable 0.04 S/ST/STEVAN/Class\-MOP\-0.36.tar.gz +.Ve +.PP +Consider the case where \*(L"Class::MOP\*(R" 0.94 is installed. If a +distribution specified \*(L"Class::MOP::Class::Immutable\*(R" as a prerequisite, +it could result in Class\-MOP\-0.36.tar.gz being installed, overwriting +any files from Class\-MOP\-0.94.tar.gz. +.PP +Consumers of metadata \fBshould\fR test whether prerequisites would result +in installed module files being \*(L"downgraded\*(R" to an older version and +\&\fBmay\fR warn users or ignore the prerequisite that would cause such a +result. +.SH "SERIALIZATION" +.IX Header "SERIALIZATION" +Distribution metadata should be serialized (as a hashref) as +JSON-encoded data and packaged with distributions as the file +\&\fI\s-1META\s0.json\fR. +.PP +In the past, the distribution metadata structure had been packed with +distributions as \fI\s-1META\s0.yml\fR, a file in the \s-1YAML\s0 Tiny format (for which, +see YAML::Tiny). Tools that consume distribution metadata from disk +should be capable of loading \fI\s-1META\s0.yml\fR, but should prefer \fI\s-1META\s0.json\fR +if both are found. +.SH "NOTES FOR IMPLEMENTORS" +.IX Header "NOTES FOR IMPLEMENTORS" +.SS "Extracting Version Numbers from Perl Modules" +.IX Subsection "Extracting Version Numbers from Perl Modules" +To get the version number from a Perl module, consumers should use the +\&\f(CW\*(C`MM\->parse_version($file)\*(C'\fR method provided by +ExtUtils::MakeMaker or Module::Metadata. For example, for the +module given by \f(CW$mod\fR, the version may be retrieved in one of the +following ways: +.PP +.Vb 3 +\& # via ExtUtils::MakeMaker +\& my $file = MM\->_installed_file_for_module($mod); +\& my $version = MM\->parse_version($file) +.Ve +.PP +The private \f(CW\*(C`_installed_file_for_module\*(C'\fR method may be replaced with +other methods for locating a module in \f(CW@INC\fR. +.PP +.Vb 3 +\& # via Module::Metadata +\& my $info = Module::Metadata\->new_from_module($mod); +\& my $version = $info\->version; +.Ve +.PP +If only a filename is available, the following approach may be used: +.PP +.Vb 3 +\& # via Module::Build +\& my $info = Module::Metadata\->new_from_file($file); +\& my $version = $info\->version; +.Ve +.SS "Comparing Version Numbers" +.IX Subsection "Comparing Version Numbers" +The version module provides the most reliable way to compare version +numbers in all the various ways they might be provided or might exist +within modules. Given two strings containing version numbers, \f(CW$v1\fR and +\&\f(CW$v2\fR, they should be converted to \f(CW\*(C`version\*(C'\fR objects before using +ordinary comparison operators. For example: +.PP +.Vb 4 +\& use version; +\& if ( version\->new($v1) <=> version\->new($v2) ) { +\& print "Versions are not equal\en"; +\& } +.Ve +.PP +If the only comparison needed is whether an installed module is of a +sufficiently high version, a direct test may be done using the string +form of \f(CW\*(C`eval\*(C'\fR and the \f(CW\*(C`use\*(C'\fR function. For example, for module \f(CW$mod\fR +and version prerequisite \f(CW$prereq\fR: +.PP +.Vb 3 +\& if ( eval "use $mod $prereq (); 1" ) { +\& print "Module $mod version is OK.\en"; +\& } +.Ve +.PP +If the values of \f(CW$mod\fR and \f(CW$prereq\fR have not been scrubbed, however, +this presents security implications. +.SS "Prerequisites for dynamically configured distributions" +.IX Subsection "Prerequisites for dynamically configured distributions" +When \f(CW\*(C`dynamic_config\*(C'\fR is true, it is an error to presume that the +prerequisites given in distribution metadata will have any relationship +whatsoever to the actual prerequisites of the distribution. +.PP +In practice, however, one can generally expect such prerequisites to be +one of two things: +.IP "\(bu" 4 +The minimum prerequisites for the distribution, to which dynamic configuration will only add items +.IP "\(bu" 4 +Whatever the distribution configured with on the releaser's machine at release time +.PP +The second case often turns out to have identical results to the first case, +albeit only by accident. +.PP +As such, consumers may use this data for informational analysis, but +presenting it to the user as canonical or relying on it as such is +invariably the height of folly. +.SS "Indexing distributions a la \s-1PAUSE\s0" +.IX Subsection "Indexing distributions a la PAUSE" +While no_index tells you what must be ignored when indexing, this spec holds +no opinion on how you should get your initial candidate list of things to +possibly index. For \*(L"normal\*(R" distributions you might consider simply indexing +the contents of lib/, but there are many fascinating oddities on \s-1CPAN\s0 and +many dists from the days when it was normal to put the main .pm file in the +root of the distribution archive \- so \s-1PAUSE\s0 currently indexes all .pm and .PL +files that are not either (a) specifically excluded by no_index (b) in +\&\f(CW\*(C`inc\*(C'\fR, \f(CW\*(C`xt\*(C'\fR, or \f(CW\*(C`t\*(C'\fR directories, or common 'mistake' directories such as +\&\f(CW\*(C`perl5\*(C'\fR. +.PP +Or: If you're trying to be PAUSE-like, make sure you skip \f(CW\*(C`inc\*(C'\fR, \f(CW\*(C`xt\*(C'\fR and +\&\f(CW\*(C`t\*(C'\fR as well as anything marked as no_index. +.PP +Also remember: If the \s-1META\s0 file contains a provides field, you shouldn't be +indexing anything in the first place \- just use that. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\(bu" 4 +\&\s-1CPAN,\s0 +.IP "\(bu" 4 +\&\s-1JSON,\s0 +.IP "\(bu" 4 +\&\s-1YAML,\s0 +.IP "\(bu" 4 +\&\s-1CPAN\s0 +.IP "\(bu" 4 +\&\s-1CPANPLUS\s0 +.IP "\(bu" 4 +ExtUtils::MakeMaker +.IP "\(bu" 4 +Module::Build +.IP "\(bu" 4 +Module::Install +.IP "\(bu" 4 +CPAN::Meta::History::Meta_1_4 +.SH "HISTORY" +.IX Header "HISTORY" +Ken Williams wrote the original \s-1CPAN\s0 Meta Spec (also known as the +\&\*(L"\s-1META\s0.yml spec\*(R") in 2003 and maintained it through several revisions +with input from various members of the community. In 2005, Randy +Sims redrafted it from \s-1HTML\s0 to \s-1POD\s0 for the version 1.2 release. Ken +continued to maintain the spec through version 1.4. +.PP +In late 2009, David Golden organized the version 2 proposal review +process. David and Ricardo Signes drafted the final version 2 spec +in April 2010 based on the version 1.4 spec and patches contributed +during the proposal process. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AValidator.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AValidator.3 new file mode 100644 index 0000000000000000000000000000000000000000..6ae7eb20efbe18c04d68a06eb2186e6bc14ab705 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AValidator.3 @@ -0,0 +1,210 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::Validator 3" +.TH CPAN::Meta::Validator 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::Validator \- validate CPAN distribution metadata structures +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& my $struct = decode_json_file(\*(AqMETA.json\*(Aq); +\& +\& my $cmv = CPAN::Meta::Validator\->new( $struct ); +\& +\& unless ( $cmv\->is_valid ) { +\& my $msg = "Invalid META structure. Errors found:\en"; +\& $msg .= join( "\en", $cmv\->errors ); +\& die $msg; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module validates a \s-1CPAN\s0 Meta structure against the version of the +the specification claimed in the \f(CW\*(C`meta\-spec\*(C'\fR field of the structure. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $cmv = CPAN::Meta::Validator\->new( $struct ) +.Ve +.PP +The constructor must be passed a metadata structure. +.SS "is_valid" +.IX Subsection "is_valid" +.Vb 3 +\& if ( $cmv\->is_valid ) { +\& ... +\& } +.Ve +.PP +Returns a boolean value indicating whether the metadata provided +is valid. +.SS "errors" +.IX Subsection "errors" +.Vb 1 +\& warn( join "\en", $cmv\->errors ); +.Ve +.PP +Returns a list of errors seen during validation. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker. +Bugs can be submitted through the web interface at + +.PP +When submitting a bug or request, please include a test-file or a patch to an +existing test-file that illustrates the bug or desired feature. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AYAML.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AYAML.3 new file mode 100644 index 0000000000000000000000000000000000000000..73ce1676442f2d6069f48e7ef8212e7de9ba3ffa --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AYAML.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta::YAML 3" +.TH CPAN::Meta::YAML 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta::YAML \- Read and write a subset of YAML for CPAN Meta files +.SH "VERSION" +.IX Header "VERSION" +version 0.018 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use CPAN::Meta::YAML; +\& +\& # reading a META file +\& open $fh, "<:utf8", "META.yml"; +\& $yaml_text = do { local $/; <$fh> }; +\& $yaml = CPAN::Meta::YAML\->read_string($yaml_text) +\& or die CPAN::Meta::YAML\->errstr; +\& +\& # finding the metadata +\& $meta = $yaml\->[0]; +\& +\& # writing a META file +\& $yaml_text = $yaml\->write_string +\& or die CPAN::Meta::YAML\->errstr; +\& open $fh, ">:utf8", "META.yml"; +\& print $fh $yaml_text; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements a subset of the \s-1YAML\s0 specification for use in reading +and writing \s-1CPAN\s0 metadata files like \fI\s-1META\s0.yml\fR and \fI\s-1MYMETA\s0.yml\fR. It should +not be used for any other general \s-1YAML\s0 parsing or generation task. +.PP +\&\s-1NOTE:\s0 \fI\s-1META\s0.yml\fR (and \fI\s-1MYMETA\s0.yml\fR) files should be \s-1UTF\-8\s0 encoded. Users are +responsible for proper encoding and decoding. In particular, the \f(CW\*(C`read\*(C'\fR and +\&\f(CW\*(C`write\*(C'\fR methods do \fBnot\fR support \s-1UTF\-8\s0 and should not be used. +.SH "SUPPORT" +.IX Header "SUPPORT" +This module is currently derived from YAML::Tiny by Adam Kennedy. If +there are bugs in how it parses a particular \s-1META\s0.yml file, please file +a bug report in the YAML::Tiny bugtracker: + +.SH "SEE ALSO" +.IX Header "SEE ALSO" +YAML::Tiny, \s-1YAML\s0, \s-1YAML::XS\s0 +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +Adam Kennedy +.IP "\(bu" 4 +David Golden +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by Adam Kennedy. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMeta.3 b/data/miniconda3/man/man3/CPAN%3A%3AMeta.3 new file mode 100644 index 0000000000000000000000000000000000000000..0a7b2005a45c3e2406ee3db7ef7e03c653fb42f1 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMeta.3 @@ -0,0 +1,538 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Meta 3" +.TH CPAN::Meta 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Meta \- the distribution metadata for a CPAN dist +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use v5.10; +\& use strict; +\& use warnings; +\& use CPAN::Meta; +\& use Module::Load; +\& +\& my $meta = CPAN::Meta\->load_file(\*(AqMETA.json\*(Aq); +\& +\& printf "testing requirements for %s version %s\en", +\& $meta\->name, +\& $meta\->version; +\& +\& my $prereqs = $meta\->effective_prereqs; +\& +\& for my $phase ( qw/configure runtime build test/ ) { +\& say "Requirements for $phase:"; +\& my $reqs = $prereqs\->requirements_for($phase, "requires"); +\& for my $module ( sort $reqs\->required_modules ) { +\& my $status; +\& if ( eval { load $module unless $module eq \*(Aqperl\*(Aq; 1 } ) { +\& my $version = $module eq \*(Aqperl\*(Aq ? $] : $module\->VERSION; +\& $status = $reqs\->accepts_module($module, $version) +\& ? "$version ok" : "$version not ok"; +\& } else { +\& $status = "missing" +\& }; +\& say " $module ($status)"; +\& } +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Software distributions released to the \s-1CPAN\s0 include a \fI\s-1META\s0.json\fR or, for +older distributions, \fI\s-1META\s0.yml\fR, which describes the distribution, its +contents, and the requirements for building and installing the distribution. +The data structure stored in the \fI\s-1META\s0.json\fR file is described in +CPAN::Meta::Spec. +.PP +CPAN::Meta provides a simple class to represent this distribution metadata (or +\&\fIdistmeta\fR), along with some helpful methods for interrogating that data. +.PP +The documentation below is only for the methods of the CPAN::Meta object. For +information on the meaning of individual fields, consult the spec. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $meta = CPAN::Meta\->new($distmeta_struct, \e%options); +.Ve +.PP +Returns a valid CPAN::Meta object or dies if the supplied metadata hash +reference fails to validate. Older-format metadata will be up-converted to +version 2 if they validate against the original stated specification. +.PP +It takes an optional hashref of options. Valid options include: +.IP "\(bu" 4 +lazy_validation \*(-- if true, new will attempt to convert the given metadata +to version 2 before attempting to validate it. This means than any +fixable errors will be handled by CPAN::Meta::Converter before validation. +(Note that this might result in invalid optional data being silently +dropped.) The default is false. +.SS "create" +.IX Subsection "create" +.Vb 1 +\& my $meta = CPAN::Meta\->create($distmeta_struct, \e%options); +.Ve +.PP +This is same as \f(CW\*(C`new()\*(C'\fR, except that \f(CW\*(C`generated_by\*(C'\fR and \f(CW\*(C`meta\-spec\*(C'\fR fields +will be generated if not provided. This means the metadata structure is +assumed to otherwise follow the latest CPAN::Meta::Spec. +.SS "load_file" +.IX Subsection "load_file" +.Vb 1 +\& my $meta = CPAN::Meta\->load_file($distmeta_file, \e%options); +.Ve +.PP +Given a pathname to a file containing metadata, this deserializes the file +according to its file suffix and constructs a new \f(CW\*(C`CPAN::Meta\*(C'\fR object, just +like \f(CW\*(C`new()\*(C'\fR. It will die if the deserialized version fails to validate +against its stated specification version. +.PP +It takes the same options as \f(CW\*(C`new()\*(C'\fR but \f(CW\*(C`lazy_validation\*(C'\fR defaults to +true. +.SS "load_yaml_string" +.IX Subsection "load_yaml_string" +.Vb 1 +\& my $meta = CPAN::Meta\->load_yaml_string($yaml, \e%options); +.Ve +.PP +This method returns a new CPAN::Meta object using the first document in the +given \s-1YAML\s0 string. In other respects it is identical to \f(CW\*(C`load_file()\*(C'\fR. +.SS "load_json_string" +.IX Subsection "load_json_string" +.Vb 1 +\& my $meta = CPAN::Meta\->load_json_string($json, \e%options); +.Ve +.PP +This method returns a new CPAN::Meta object using the structure represented by +the given \s-1JSON\s0 string. In other respects it is identical to \f(CW\*(C`load_file()\*(C'\fR. +.SS "load_string" +.IX Subsection "load_string" +.Vb 1 +\& my $meta = CPAN::Meta\->load_string($string, \e%options); +.Ve +.PP +If you don't know if a string contains \s-1YAML\s0 or \s-1JSON,\s0 this method will use +Parse::CPAN::Meta to guess. In other respects it is identical to +\&\f(CW\*(C`load_file()\*(C'\fR. +.SS "save" +.IX Subsection "save" +.Vb 1 +\& $meta\->save($distmeta_file, \e%options); +.Ve +.PP +Serializes the object as \s-1JSON\s0 and writes it to the given file. The only valid +option is \f(CW\*(C`version\*(C'\fR, which defaults to '2'. On Perl 5.8.1 or later, the file +is saved with \s-1UTF\-8\s0 encoding. +.PP +For \f(CW\*(C`version\*(C'\fR 2 (or higher), the filename should end in '.json'. \s-1JSON::PP\s0 +is the default \s-1JSON\s0 backend. Using another \s-1JSON\s0 backend requires \s-1JSON\s0 2.5 or +later and you must set the \f(CW$ENV{PERL_JSON_BACKEND}\fR to a supported alternate +backend like \s-1JSON::XS\s0. +.PP +For \f(CW\*(C`version\*(C'\fR less than 2, the filename should end in '.yml'. +CPAN::Meta::Converter is used to generate an older metadata structure, which +is serialized to \s-1YAML.\s0 CPAN::Meta::YAML is the default \s-1YAML\s0 backend. You may +set the \f(CW$ENV{PERL_YAML_BACKEND}\fR to a supported alternative backend, though +this is not recommended due to subtle incompatibilities between \s-1YAML\s0 parsers on +\&\s-1CPAN.\s0 +.SS "meta_spec_version" +.IX Subsection "meta_spec_version" +This method returns the version part of the \f(CW\*(C`meta_spec\*(C'\fR entry in the distmeta +structure. It is equivalent to: +.PP +.Vb 1 +\& $meta\->meta_spec\->{version}; +.Ve +.SS "effective_prereqs" +.IX Subsection "effective_prereqs" +.Vb 1 +\& my $prereqs = $meta\->effective_prereqs; +\& +\& my $prereqs = $meta\->effective_prereqs( \e@feature_identifiers ); +.Ve +.PP +This method returns a CPAN::Meta::Prereqs object describing all the +prereqs for the distribution. If an arrayref of feature identifiers is given, +the prereqs for the identified features are merged together with the +distribution's core prereqs before the CPAN::Meta::Prereqs object is returned. +.SS "should_index_file" +.IX Subsection "should_index_file" +.Vb 1 +\& ... if $meta\->should_index_file( $filename ); +.Ve +.PP +This method returns true if the given file should be indexed. It decides this +by checking the \f(CW\*(C`file\*(C'\fR and \f(CW\*(C`directory\*(C'\fR keys in the \f(CW\*(C`no_index\*(C'\fR property of +the distmeta structure. Note that neither the version format nor +\&\f(CW\*(C`release_status\*(C'\fR are considered. +.PP +\&\f(CW$filename\fR should be given in unix format. +.SS "should_index_package" +.IX Subsection "should_index_package" +.Vb 1 +\& ... if $meta\->should_index_package( $package ); +.Ve +.PP +This method returns true if the given package should be indexed. It decides +this by checking the \f(CW\*(C`package\*(C'\fR and \f(CW\*(C`namespace\*(C'\fR keys in the \f(CW\*(C`no_index\*(C'\fR +property of the distmeta structure. Note that neither the version format nor +\&\f(CW\*(C`release_status\*(C'\fR are considered. +.SS "features" +.IX Subsection "features" +.Vb 1 +\& my @feature_objects = $meta\->features; +.Ve +.PP +This method returns a list of CPAN::Meta::Feature objects, one for each +optional feature described by the distribution's metadata. +.SS "feature" +.IX Subsection "feature" +.Vb 1 +\& my $feature_object = $meta\->feature( $identifier ); +.Ve +.PP +This method returns a CPAN::Meta::Feature object for the optional feature +with the given identifier. If no feature with that identifier exists, an +exception will be raised. +.SS "as_struct" +.IX Subsection "as_struct" +.Vb 1 +\& my $copy = $meta\->as_struct( \e%options ); +.Ve +.PP +This method returns a deep copy of the object's metadata as an unblessed hash +reference. It takes an optional hashref of options. If the hashref contains +a \f(CW\*(C`version\*(C'\fR argument, the copied metadata will be converted to the version +of the specification and returned. For example: +.PP +.Vb 1 +\& my $old_spec = $meta\->as_struct( {version => "1.4"} ); +.Ve +.SS "as_string" +.IX Subsection "as_string" +.Vb 1 +\& my $string = $meta\->as_string( \e%options ); +.Ve +.PP +This method returns a serialized copy of the object's metadata as a character +string. (The strings are \fBnot\fR \s-1UTF\-8\s0 encoded.) It takes an optional hashref +of options. If the hashref contains a \f(CW\*(C`version\*(C'\fR argument, the copied metadata +will be converted to the version of the specification and returned. For +example: +.PP +.Vb 1 +\& my $string = $meta\->as_string( {version => "1.4"} ); +.Ve +.PP +For \f(CW\*(C`version\*(C'\fR greater than or equal to 2, the string will be serialized as +\&\s-1JSON.\s0 For \f(CW\*(C`version\*(C'\fR less than 2, the string will be serialized as \s-1YAML.\s0 In +both cases, the same rules are followed as in the \f(CW\*(C`save()\*(C'\fR method for choosing +a serialization backend. +.PP +The serialized structure will include a \f(CW\*(C`x_serialization_backend\*(C'\fR entry giving +the package and version used to serialize. Any existing key in the given +\&\f(CW$meta\fR object will be clobbered. +.SH "STRING DATA" +.IX Header "STRING DATA" +The following methods return a single value, which is the value for the +corresponding entry in the distmeta structure. Values should be either undef +or strings. +.IP "\(bu" 4 +abstract +.IP "\(bu" 4 +description +.IP "\(bu" 4 +dynamic_config +.IP "\(bu" 4 +generated_by +.IP "\(bu" 4 +name +.IP "\(bu" 4 +release_status +.IP "\(bu" 4 +version +.SH "LIST DATA" +.IX Header "LIST DATA" +These methods return lists of string values, which might be represented in the +distmeta structure as arrayrefs or scalars: +.IP "\(bu" 4 +authors +.IP "\(bu" 4 +keywords +.IP "\(bu" 4 +licenses +.PP +The \f(CW\*(C`authors\*(C'\fR and \f(CW\*(C`licenses\*(C'\fR methods may also be called as \f(CW\*(C`author\*(C'\fR and +\&\f(CW\*(C`license\*(C'\fR, respectively, to match the field name in the distmeta structure. +.SH "MAP DATA" +.IX Header "MAP DATA" +These readers return hashrefs of arbitrary unblessed data structures, each +described more fully in the specification: +.IP "\(bu" 4 +meta_spec +.IP "\(bu" 4 +resources +.IP "\(bu" 4 +provides +.IP "\(bu" 4 +no_index +.IP "\(bu" 4 +prereqs +.IP "\(bu" 4 +optional_features +.SH "CUSTOM DATA" +.IX Header "CUSTOM DATA" +A list of custom keys are available from the \f(CW\*(C`custom_keys\*(C'\fR method and +particular keys may be retrieved with the \f(CW\*(C`custom\*(C'\fR method. +.PP +.Vb 1 +\& say $meta\->custom($_) for $meta\->custom_keys; +.Ve +.PP +If a custom key refers to a data structure, a deep clone is returned. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker. +Bugs can be submitted through the web interface at + +.PP +When submitting a bug or request, please include a test-file or a patch to an +existing test-file that illustrates the bug or desired feature. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\(bu" 4 +CPAN::Meta::Converter +.IP "\(bu" 4 +CPAN::Meta::Validator +.SH "SUPPORT" +.IX Header "SUPPORT" +.SS "Bugs / Feature Requests" +.IX Subsection "Bugs / Feature Requests" +Please report any bugs or feature requests through the issue tracker +at . +You will be notified automatically of any progress on your issue. +.SS "Source Code" +.IX Subsection "Source Code" +This is open source software. The code repository is available for +public review and contribution under the terms of the license. +.PP + +.PP +.Vb 1 +\& git clone https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta.git +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Ansgar Burchardt +.IP "\(bu" 4 +Avar Arnfjord Bjarmason +.IP "\(bu" 4 +Benjamin Noggle +.IP "\(bu" 4 +Christopher J. Madsen +.IP "\(bu" 4 +Chuck Adams +.IP "\(bu" 4 +Cory G Watson +.IP "\(bu" 4 +Damyan Ivanov +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Eric Wilhelm +.IP "\(bu" 4 +Graham Knop +.IP "\(bu" 4 +Gregor Hermann +.IP "\(bu" 4 +Karen Etheridge +.IP "\(bu" 4 +Kenichi Ishigaki +.IP "\(bu" 4 +Kent Fredric +.IP "\(bu" 4 +Ken Williams +.IP "\(bu" 4 +Lars Dieckow +.IP "\(bu" 4 +Leon Timmermans +.IP "\(bu" 4 +majensen +.IP "\(bu" 4 +Mark Fowler +.IP "\(bu" 4 +Matt S Trout +.IP "\(bu" 4 +Michael G. Schwern +.IP "\(bu" 4 +Mohammad S Anwar +.IP "\(bu" 4 +mohawk2 +.IP "\(bu" 4 +moznion +.IP "\(bu" 4 +Niko Tyni +.IP "\(bu" 4 +Olaf Alders +.IP "\(bu" 4 +Olivier Mengue\*' +.IP "\(bu" 4 +Randy Sims +.IP "\(bu" 4 +Tomohiro Hosaka +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.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. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AMirrors.3 b/data/miniconda3/man/man3/CPAN%3A%3AMirrors.3 new file mode 100644 index 0000000000000000000000000000000000000000..6ad44c9fc7080bd97318e47911c49301c5d3e6dd --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AMirrors.3 @@ -0,0 +1,287 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Mirrors 3" +.TH CPAN::Mirrors 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Mirrors \- Get CPAN mirror information and select a fast one +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use CPAN::Mirrors; +\& +\& my $mirrors = CPAN::Mirrors\->new( $mirrored_by_file ); +\& +\& my $seen = {}; +\& +\& my $best_continent = $mirrors\->find_best_continents( { seen => $seen } ); +\& my @mirrors = $mirrors\->get_mirrors_by_continents( $best_continent ); +\& +\& my $callback = sub { +\& my( $m ) = @_; +\& printf "%s = %s\en", $m\->hostname, $m\->rtt +\& }; +\& $mirrors\->get_mirrors_timings( \e@mirrors, $seen, $callback, %args ); +\& +\& @mirrors = sort { $a\->rtt <=> $b\->rtt } @mirrors; +\& +\& print "Best mirrors are ", map( { $_\->rtt } @mirrors[0..3] ), "\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.IP "new( \s-1LOCAL_FILE_NAME\s0 )" 4 +.IX Item "new( LOCAL_FILE_NAME )" +Create a new CPAN::Mirrors object from \s-1LOCAL_FILE_NAME.\s0 This file +should look like that in http://www.cpan.org/MIRRORED.BY . +.IP "\fBcontinents()\fR" 4 +.IX Item "continents()" +Return a list of continents based on those defined in \fI\s-1MIRRORED.BY\s0\fR. +.IP "countries( [\s-1CONTINENTS\s0] )" 4 +.IX Item "countries( [CONTINENTS] )" +Return a list of countries based on those defined in \fI\s-1MIRRORED.BY\s0\fR. +It only returns countries for the continents you specify (as defined +in \f(CW\*(C`continents\*(C'\fR). If you don't specify any continents, it returns all +of the countries listed in \fI\s-1MIRRORED.BY\s0\fR. +.IP "mirrors( [\s-1COUNTRIES\s0] )" 4 +.IX Item "mirrors( [COUNTRIES] )" +Return a list of mirrors based on those defined in \fI\s-1MIRRORED.BY\s0\fR. +It only returns mirrors for the countries you specify (as defined +in \f(CW\*(C`countries\*(C'\fR). If you don't specify any countries, it returns all +of the mirrors listed in \fI\s-1MIRRORED.BY\s0\fR. +.IP "get_mirrors_by_countries( [\s-1COUNTRIES\s0] )" 4 +.IX Item "get_mirrors_by_countries( [COUNTRIES] )" +A more sensible synonym for mirrors. +.IP "get_mirrors_by_continents( [\s-1CONTINENTS\s0] )" 4 +.IX Item "get_mirrors_by_continents( [CONTINENTS] )" +Return a list of mirrors for all of continents you specify. If you don't +specify any continents, it returns all of the mirrors. +.Sp +You can specify a single continent or an array reference of continents. +.IP "get_countries_by_continents( [\s-1CONTINENTS\s0] )" 4 +.IX Item "get_countries_by_continents( [CONTINENTS] )" +A more sensible synonym for countries. +.IP "default_mirror" 4 +.IX Item "default_mirror" +Returns the default mirror, http://www.cpan.org/ . This mirror uses +dynamic \s-1DNS\s0 to give a close mirror. +.IP "best_mirrors" 4 +.IX Item "best_mirrors" +\&\f(CW\*(C`best_mirrors\*(C'\fR checks for the best mirrors based on the list of +continents you pass, or, without that, all continents, as defined +by \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR. It pings each mirror, up to the value of +\&\f(CW\*(C`how_many\*(C'\fR. In list context, it returns up to \f(CW\*(C`how_many\*(C'\fR mirrors. +In scalar context, it returns the single best mirror. +.Sp +Arguments +.Sp +.Vb 5 +\& how_many \- the number of mirrors to return. Default: 1 +\& callback \- a callback for find_best_continents +\& verbose \- true or false on all the whining and moaning. Default: false +\& continents \- an array ref of the continents to check +\& external_ping \- if true, use external ping via Net::Ping::External. Default: false +.Ve +.Sp +If you don't specify the continents, \f(CW\*(C`best_mirrors\*(C'\fR calls +\&\f(CW\*(C`find_best_continents\*(C'\fR to get the list of continents to check. +.Sp +If you don't have Net::Ping v2.13 or later, needed for timings, +this returns the default mirror. +.Sp +\&\f(CW\*(C`external_ping\*(C'\fR should be set and then \f(CW\*(C`Net::Ping::External\*(C'\fR needs +to be installed, if the local network has a transparent proxy. +.IP "get_n_random_mirrors_by_continents( N, [\s-1CONTINENTS\s0] )" 4 +.IX Item "get_n_random_mirrors_by_continents( N, [CONTINENTS] )" +Returns up to N random mirrors for the specified continents. Specify the +continents as an array reference. +.ie n .IP "get_mirrors_timings( \s-1MIRROR_LIST, SEEN, CALLBACK,\s0 %ARGS );" 4 +.el .IP "get_mirrors_timings( \s-1MIRROR_LIST, SEEN, CALLBACK,\s0 \f(CW%ARGS\fR );" 4 +.IX Item "get_mirrors_timings( MIRROR_LIST, SEEN, CALLBACK, %ARGS );" +Pings the listed mirrors and returns a list of mirrors sorted in +ascending ping times. +.Sp +\&\f(CW\*(C`MIRROR_LIST\*(C'\fR is an anonymous array of \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR objects to +ping. +.Sp +The optional argument \f(CW\*(C`SEEN\*(C'\fR is a hash reference used to track the +mirrors you've already pinged. +.Sp +The optional argument \f(CW\*(C`CALLBACK\*(C'\fR is a subroutine reference to call +after each ping. It gets the \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object after each +ping. +.IP "find_best_continents( \s-1HASH_REF\s0 );" 4 +.IX Item "find_best_continents( HASH_REF );" +\&\f(CW\*(C`find_best_continents\*(C'\fR goes through each continent and pings \f(CW\*(C`N\*(C'\fR +random mirrors on that continent. It then orders the continents by +ascending median ping time. In list context, it returns the ordered list +of continent. In scalar context, it returns the same list as an +anonymous array. +.Sp +Arguments: +.Sp +.Vb 6 +\& n \- the number of hosts to ping for each continent. Default: 3 +\& seen \- a hashref of cached hostname ping times +\& verbose \- true or false for noisy or quiet. Default: false +\& callback \- a subroutine to run after each ping. +\& ping_cache_limit \- how long, in seconds, to reuse previous ping times. +\& Default: 1 day +.Ve +.Sp +The \f(CW\*(C`seen\*(C'\fR hash has hostnames as keys and anonymous arrays as values. +The anonymous array is a triplet of a \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object, a +ping time, and the epoch time for the measurement. +.Sp +The callback subroutine gets the \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object, the ping +time, and measurement time (the same things in the \f(CW\*(C`seen\*(C'\fR hashref) as +arguments. \f(CW\*(C`find_best_continents\*(C'\fR doesn't care what the callback does +and ignores the return value. +.Sp +With a low value for \f(CW\*(C`N\*(C'\fR, a single mirror might skew the results enough +to choose a worse continent. If you have that problem, try a larger +value. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andreas Koenig \f(CW\*(C`\*(C'\fR, David Golden \f(CW\*(C`\*(C'\fR, +brian d foy \f(CW\*(C`\*(C'\fR +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See diff --git a/data/miniconda3/man/man3/CPAN%3A%3ANox.3 b/data/miniconda3/man/man3/CPAN%3A%3ANox.3 new file mode 100644 index 0000000000000000000000000000000000000000..016e9255a0f2f3544491a217dbfdb3d2d0aa30b0 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3ANox.3 @@ -0,0 +1,162 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Nox 3" +.TH CPAN::Nox 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Nox \- Wrapper around CPAN.pm without using any XS module +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Interactive mode: +.PP +.Vb 1 +\& perl \-MCPAN::Nox \-e shell; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package has the same functionality as \s-1CPAN\s0.pm, but tries to +prevent the usage of compiled extensions during its own +execution. Its primary purpose is a rescue in case you upgraded perl +and broke binary compatibility somehow. +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\s-1CPAN\s0 diff --git a/data/miniconda3/man/man3/CPAN%3A%3APlugin.3 b/data/miniconda3/man/man3/CPAN%3A%3APlugin.3 new file mode 100644 index 0000000000000000000000000000000000000000..bf1093a5ccdfd9b466c8b493bff0d45ac8ba674c --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3APlugin.3 @@ -0,0 +1,185 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Plugin 3" +.TH CPAN::Plugin 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Plugin \- Base class for CPAN shell extensions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package CPAN::Plugin::Flurb; +\& use parent \*(AqCPAN::Plugin\*(Aq; +\& +\& sub post_test { +\& my ($self, $distribution_object) = @_; +\& $self = $self\->new (distribution_object => $distribution_object); +\& ...; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Alpha Status" +.IX Subsection "Alpha Status" +The plugin system in the \s-1CPAN\s0 shell was introduced in version 2.07 and +is still considered experimental. +.SS "How Plugins work?" +.IX Subsection "How Plugins work?" +See \*(L"Plugin support\*(R" in \s-1CPAN\s0. +.SH "METHODS" +.IX Header "METHODS" +.SS "plugin_requires" +.IX Subsection "plugin_requires" +returns list of packages given plugin requires for functionality. +This list is evaluated using \f(CW\*(C`CPAN\->use_inst\*(C'\fR method. +.SS "distribution_object" +.IX Subsection "distribution_object" +Get current distribution object. +.SS "distribution" +.IX Subsection "distribution" +.SS "distribution_info" +.IX Subsection "distribution_info" +.SS "build_dir" +.IX Subsection "build_dir" +Simple delegatees for misc parameters derived from distribution +.SS "is_xs" +.IX Subsection "is_xs" +Predicate to detect whether package contains \s-1XS.\s0 +.SH "AUTHOR" +.IX Header "AUTHOR" +Branislav Zahradnik diff --git a/data/miniconda3/man/man3/CPAN%3A%3AQueue.3 b/data/miniconda3/man/man3/CPAN%3A%3AQueue.3 new file mode 100644 index 0000000000000000000000000000000000000000..5bd35672e9a74a4395cf40eb9f82a1f717f8df69 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AQueue.3 @@ -0,0 +1,146 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Queue 3" +.TH CPAN::Queue 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Queue \- internal queue support for CPAN.pm +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3ATarzip.3 b/data/miniconda3/man/man3/CPAN%3A%3ATarzip.3 new file mode 100644 index 0000000000000000000000000000000000000000..4e9587c0855cba157cc8af1c83285acf50067274 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3ATarzip.3 @@ -0,0 +1,146 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Tarzip 3" +.TH CPAN::Tarzip 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Tarzip \- internal handling of tar archives for CPAN.pm +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN%3A%3AVersion.3 b/data/miniconda3/man/man3/CPAN%3A%3AVersion.3 new file mode 100644 index 0000000000000000000000000000000000000000..b3625196a67216d3201e179c924d9e478cd4d198 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3AVersion.3 @@ -0,0 +1,174 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN::Version 3" +.TH CPAN::Version 3 "2020-12-18" "perl v5.32.1" "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" +CPAN::Version \- utility functions to compare CPAN versions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use CPAN::Version; +\& +\& CPAN::Version\->vgt("1.1","1.1.1"); # 1 bc. 1.1 > 1.001001 +\& +\& CPAN::Version\->vlt("1.1","1.1"); # 0 bc. 1.1 not < 1.1 +\& +\& CPAN::Version\->vcmp("1.1","1.1.1"); # 1 bc. first is larger +\& +\& CPAN::Version\->vcmp("1.1.1","1.1"); # \-1 bc. first is smaller +\& +\& CPAN::Version\->readable(v1.2.3); # "v1.2.3" +\& +\& CPAN::Version\->vstring("v1.2.3"); # v1.2.3 +\& +\& CPAN::Version\->float2vv(1.002003); # "v1.2.3" +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module mediates between some version that perl sees in a package +and the version that is published by the \s-1CPAN\s0 indexer. +.PP +It's only written as a helper module for both \s-1CPAN\s0.pm and \s-1CPANPLUS\s0.pm. +.PP +As it stands it predates version.pm but has the same goal: make +version strings visible and comparable. +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/CPAN.3 b/data/miniconda3/man/man3/CPAN.3 new file mode 100644 index 0000000000000000000000000000000000000000..73a5725ed36aa119616a42b9fb51e8044c048afe --- /dev/null +++ b/data/miniconda3/man/man3/CPAN.3 @@ -0,0 +1,2618 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "CPAN 3" +.TH CPAN 3 "2020-12-18" "perl v5.32.1" "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" +CPAN \- query, download and build perl modules from CPAN sites +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Interactive mode: +.PP +.Vb 1 +\& perl \-MCPAN \-e shell +.Ve +.PP +\&\-\-or\*(-- +.PP +.Vb 1 +\& cpan +.Ve +.PP +Basic commands: +.PP +.Vb 1 +\& # Modules: +\& +\& cpan> install Acme::Meta # in the shell +\& +\& CPAN::Shell\->install("Acme::Meta"); # in perl +\& +\& # Distributions: +\& +\& cpan> install NWCLARK/Acme\-Meta\-0.02.tar.gz # in the shell +\& +\& CPAN::Shell\-> +\& install("NWCLARK/Acme\-Meta\-0.02.tar.gz"); # in perl +\& +\& # module objects: +\& +\& $mo = CPAN::Shell\->expandany($mod); +\& $mo = CPAN::Shell\->expand("Module",$mod); # same thing +\& +\& # distribution objects: +\& +\& $do = CPAN::Shell\->expand("Module",$mod)\->distribution; +\& $do = CPAN::Shell\->expandany($distro); # same thing +\& $do = CPAN::Shell\->expand("Distribution", +\& $distro); # same thing +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \s-1CPAN\s0 module automates or at least simplifies the make and install +of perl modules and extensions. It includes some primitive searching +capabilities and knows how to use \s-1LWP,\s0 HTTP::Tiny, Net::FTP and certain +external download clients to fetch distributions from the net. +.PP +These are fetched from one or more mirrored \s-1CPAN\s0 (Comprehensive +Perl Archive Network) sites and unpacked in a dedicated directory. +.PP +The \s-1CPAN\s0 module also supports named and versioned +\&\fIbundles\fR of modules. Bundles simplify handling of sets of +related modules. See Bundles below. +.PP +The package contains a session manager and a cache manager. The +session manager keeps track of what has been fetched, built, and +installed in the current session. The cache manager keeps track of the +disk space occupied by the make processes and deletes excess space +using a simple \s-1FIFO\s0 mechanism. +.PP +All methods provided are accessible in a programmer style and in an +interactive shell style. +.ie n .SS "CPAN::shell([$prompt, $command]) Starting Interactive Mode" +.el .SS "CPAN::shell([$prompt, \f(CW$command\fP]) Starting Interactive Mode" +.IX Subsection "CPAN::shell([$prompt, $command]) Starting Interactive Mode" +Enter interactive mode by running +.PP +.Vb 1 +\& perl \-MCPAN \-e shell +.Ve +.PP +or +.PP +.Vb 1 +\& cpan +.Ve +.PP +which puts you into a readline interface. If \f(CW\*(C`Term::ReadKey\*(C'\fR and +either of \f(CW\*(C`Term::ReadLine::Perl\*(C'\fR or \f(CW\*(C`Term::ReadLine::Gnu\*(C'\fR are installed, +history and command completion are supported. +.PP +Once at the command line, type \f(CW\*(C`h\*(C'\fR for one-page help +screen; the rest should be self-explanatory. +.PP +The function call \f(CW\*(C`shell\*(C'\fR takes two optional arguments: one the +prompt, the second the default initial command line (the latter +only works if a real ReadLine interface module is installed). +.PP +The most common uses of the interactive modes are +.IP "Searching for authors, bundles, distribution files and modules" 2 +.IX Item "Searching for authors, bundles, distribution files and modules" +There are corresponding one-letter commands \f(CW\*(C`a\*(C'\fR, \f(CW\*(C`b\*(C'\fR, \f(CW\*(C`d\*(C'\fR, and \f(CW\*(C`m\*(C'\fR +for each of the four categories and another, \f(CW\*(C`i\*(C'\fR for any of the +mentioned four. Each of the four entities is implemented as a class +with slightly differing methods for displaying an object. +.Sp +Arguments to these commands are either strings exactly matching +the identification string of an object, or regular expressions +matched case-insensitively against various attributes of the +objects. The parser only recognizes a regular expression when you +enclose it with slashes. +.Sp +The principle is that the number of objects found influences how an +item is displayed. If the search finds one item, the result is +displayed with the rather verbose method \f(CW\*(C`as_string\*(C'\fR, but if +more than one is found, each object is displayed with the terse method +\&\f(CW\*(C`as_glimpse\*(C'\fR. +.Sp +Examples: +.Sp +.Vb 10 +\& cpan> m Acme::MetaSyntactic +\& Module id = Acme::MetaSyntactic +\& CPAN_USERID BOOK (Philippe Bruhat (BooK) <[...]>) +\& CPAN_VERSION 0.99 +\& CPAN_FILE B/BO/BOOK/Acme\-MetaSyntactic\-0.99.tar.gz +\& UPLOAD_DATE 2006\-11\-06 +\& MANPAGE Acme::MetaSyntactic \- Themed metasyntactic variables names +\& INST_FILE /usr/local/lib/perl/5.10.0/Acme/MetaSyntactic.pm +\& INST_VERSION 0.99 +\& cpan> a BOOK +\& Author id = BOOK +\& EMAIL [...] +\& FULLNAME Philippe Bruhat (BooK) +\& cpan> d BOOK/Acme\-MetaSyntactic\-0.99.tar.gz +\& Distribution id = B/BO/BOOK/Acme\-MetaSyntactic\-0.99.tar.gz +\& CPAN_USERID BOOK (Philippe Bruhat (BooK) <[...]>) +\& CONTAINSMODS Acme::MetaSyntactic Acme::MetaSyntactic::Alias [...] +\& UPLOAD_DATE 2006\-11\-06 +\& cpan> m /lorem/ +\& Module = Acme::MetaSyntactic::loremipsum (BOOK/Acme\-MetaSyntactic\-0.99.tar.gz) +\& Module Text::Lorem (ADEOLA/Text\-Lorem\-0.3.tar.gz) +\& Module Text::Lorem::More (RKRIMEN/Text\-Lorem\-More\-0.12.tar.gz) +\& Module Text::Lorem::More::Source (RKRIMEN/Text\-Lorem\-More\-0.12.tar.gz) +\& cpan> i /berlin/ +\& Distribution BEATNIK/Filter\-NumberLines\-0.02.tar.gz +\& Module = DateTime::TimeZone::Europe::Berlin (DROLSKY/DateTime\-TimeZone\-0.7904.tar.gz) +\& Module Filter::NumberLines (BEATNIK/Filter\-NumberLines\-0.02.tar.gz) +\& Author [...] +.Ve +.Sp +The examples illustrate several aspects: the first three queries +target modules, authors, or distros directly and yield exactly one +result. The last two use regular expressions and yield several +results. The last one targets all of bundles, modules, authors, and +distros simultaneously. When more than one result is available, they +are printed in one-line format. +.ie n .IP """get"", ""make"", ""test"", ""install"", ""clean"" modules or distributions" 2 +.el .IP "\f(CWget\fR, \f(CWmake\fR, \f(CWtest\fR, \f(CWinstall\fR, \f(CWclean\fR modules or distributions" 2 +.IX Item "get, make, test, install, clean modules or distributions" +These commands take any number of arguments and investigate what is +necessary to perform the action. Argument processing is as follows: +.Sp +.Vb 5 +\& known module name in format Foo/Bar.pm module +\& other embedded slash distribution +\& \- with trailing slash dot directory +\& enclosing slashes regexp +\& known module name in format Foo::Bar module +.Ve +.Sp +If the argument is a distribution file name (recognized by embedded +slashes), it is processed. If it is a module, \s-1CPAN\s0 determines the +distribution file in which this module is included and processes that, +following any dependencies named in the module's \s-1META\s0.yml or +Makefile.PL (this behavior is controlled by the configuration +parameter \f(CW\*(C`prerequisites_policy\*(C'\fR). If an argument is enclosed in +slashes it is treated as a regular expression: it is expanded and if +the result is a single object (distribution, bundle or module), this +object is processed. +.Sp +Example: +.Sp +.Vb 3 +\& install Dummy::Perl # installs the module +\& install AUXXX/Dummy\-Perl\-3.14.tar.gz # installs that distribution +\& install /Dummy\-Perl\-3.14/ # same if the regexp is unambiguous +.Ve +.Sp +\&\f(CW\*(C`get\*(C'\fR downloads a distribution file and untars or unzips it, \f(CW\*(C`make\*(C'\fR +builds it, \f(CW\*(C`test\*(C'\fR runs the test suite, and \f(CW\*(C`install\*(C'\fR installs it. +.Sp +Any \f(CW\*(C`make\*(C'\fR or \f(CW\*(C`test\*(C'\fR is run unconditionally. An +.Sp +.Vb 1 +\& install +.Ve +.Sp +is also run unconditionally. But for +.Sp +.Vb 1 +\& install +.Ve +.Sp +\&\s-1CPAN\s0 checks whether an install is needed and prints +\&\fImodule up to date\fR if the distribution file containing +the module doesn't need updating. +.Sp +\&\s-1CPAN\s0 also keeps track of what it has done within the current session +and doesn't try to build a package a second time regardless of whether it +succeeded or not. It does not repeat a test run if the test +has been run successfully before. Same for install runs. +.Sp +The \f(CW\*(C`force\*(C'\fR pragma may precede another command (currently: \f(CW\*(C`get\*(C'\fR, +\&\f(CW\*(C`make\*(C'\fR, \f(CW\*(C`test\*(C'\fR, or \f(CW\*(C`install\*(C'\fR) to execute the command from scratch +and attempt to continue past certain errors. See the section below on +the \f(CW\*(C`force\*(C'\fR and the \f(CW\*(C`fforce\*(C'\fR pragma. +.Sp +The \f(CW\*(C`notest\*(C'\fR pragma skips the test part in the build +process. +.Sp +Example: +.Sp +.Vb 1 +\& cpan> notest install Tk +.Ve +.Sp +A \f(CW\*(C`clean\*(C'\fR command results in a +.Sp +.Vb 1 +\& make clean +.Ve +.Sp +being executed within the distribution file's working directory. +.ie n .IP """readme"", ""perldoc"", ""look"" module or distribution" 2 +.el .IP "\f(CWreadme\fR, \f(CWperldoc\fR, \f(CWlook\fR module or distribution" 2 +.IX Item "readme, perldoc, look module or distribution" +\&\f(CW\*(C`readme\*(C'\fR displays the \s-1README\s0 file of the associated distribution. +\&\f(CW\*(C`Look\*(C'\fR gets and untars (if not yet done) the distribution file, +changes to the appropriate directory and opens a subshell process in +that directory. \f(CW\*(C`perldoc\*(C'\fR displays the module's pod documentation +in html or plain text format. +.ie n .IP """ls"" author" 2 +.el .IP "\f(CWls\fR author" 2 +.IX Item "ls author" +.PD 0 +.ie n .IP """ls"" globbing_expression" 2 +.el .IP "\f(CWls\fR globbing_expression" 2 +.IX Item "ls globbing_expression" +.PD +The first form lists all distribution files in and below an author's +\&\s-1CPAN\s0 directory as stored in the \s-1CHECKSUMS\s0 files distributed on +\&\s-1CPAN.\s0 The listing recurses into subdirectories. +.Sp +The second form limits or expands the output with shell +globbing as in the following examples: +.Sp +.Vb 3 +\& ls JV/make* +\& ls GSAR/*make* +\& ls */*make* +.Ve +.Sp +The last example is very slow and outputs extra progress indicators +that break the alignment of the result. +.Sp +Note that globbing only lists directories explicitly asked for, for +example FOO/* will not list FOO/bar/Acme\-Sthg\-n.nn.tar.gz. This may be +regarded as a bug that may be changed in some future version. +.ie n .IP """failed""" 2 +.el .IP "\f(CWfailed\fR" 2 +.IX Item "failed" +The \f(CW\*(C`failed\*(C'\fR command reports all distributions that failed on one of +\&\f(CW\*(C`make\*(C'\fR, \f(CW\*(C`test\*(C'\fR or \f(CW\*(C`install\*(C'\fR for some reason in the currently +running shell session. +.IP "Persistence between sessions" 2 +.IX Item "Persistence between sessions" +If the \f(CW\*(C`YAML\*(C'\fR or the \f(CW\*(C`YAML::Syck\*(C'\fR module is installed a record of +the internal state of all modules is written to disk after each step. +The files contain a signature of the currently running perl version +for later perusal. +.Sp +If the configurations variable \f(CW\*(C`build_dir_reuse\*(C'\fR is set to a true +value, then \s-1CPAN\s0.pm reads the collected \s-1YAML\s0 files. If the stored +signature matches the currently running perl, the stored state is +loaded into memory such that persistence between sessions +is effectively established. +.ie n .IP "The ""force"" and the ""fforce"" pragma" 2 +.el .IP "The \f(CWforce\fR and the \f(CWfforce\fR pragma" 2 +.IX Item "The force and the fforce pragma" +To speed things up in complex installation scenarios, \s-1CPAN\s0.pm keeps +track of what it has already done and refuses to do some things a +second time. A \f(CW\*(C`get\*(C'\fR, a \f(CW\*(C`make\*(C'\fR, and an \f(CW\*(C`install\*(C'\fR are not repeated. +A \f(CW\*(C`test\*(C'\fR is repeated only if the previous test was unsuccessful. The +diagnostic message when \s-1CPAN\s0.pm refuses to do something a second time +is one of \fIHas already been \fR\f(CW\*(C`unwrapped|made|tested successfully\*(C'\fR or +something similar. Another situation where \s-1CPAN\s0 refuses to act is an +\&\f(CW\*(C`install\*(C'\fR if the corresponding \f(CW\*(C`test\*(C'\fR was not successful. +.Sp +In all these cases, the user can override this stubborn behaviour by +prepending the command with the word force, for example: +.Sp +.Vb 4 +\& cpan> force get Foo +\& cpan> force make AUTHOR/Bar\-3.14.tar.gz +\& cpan> force test Baz +\& cpan> force install Acme::Meta +.Ve +.Sp +Each \fIforced\fR command is executed with the corresponding part of its +memory erased. +.Sp +The \f(CW\*(C`fforce\*(C'\fR pragma is a variant that emulates a \f(CW\*(C`force get\*(C'\fR which +erases the entire memory followed by the action specified, effectively +restarting the whole get/make/test/install procedure from scratch. +.IP "Lockfile" 2 +.IX Item "Lockfile" +Interactive sessions maintain a lockfile, by default \f(CW\*(C`~/.cpan/.lock\*(C'\fR. +Batch jobs can run without a lockfile and not disturb each other. +.Sp +The shell offers to run in \fIdowngraded mode\fR when another process is +holding the lockfile. This is an experimental feature that is not yet +tested very well. This second shell then does not write the history +file, does not use the metadata file, and has a different prompt. +.IP "Signals" 2 +.IX Item "Signals" +\&\s-1CPAN\s0.pm installs signal handlers for \s-1SIGINT\s0 and \s-1SIGTERM.\s0 While you are +in the cpan-shell, it is intended that you can press \f(CW\*(C`^C\*(C'\fR anytime and +return to the cpan-shell prompt. A \s-1SIGTERM\s0 will cause the cpan-shell +to clean up and leave the shell loop. You can emulate the effect of a +\&\s-1SIGTERM\s0 by sending two consecutive SIGINTs, which usually means by +pressing \f(CW\*(C`^C\*(C'\fR twice. +.Sp +\&\s-1CPAN\s0.pm ignores \s-1SIGPIPE.\s0 If the user sets \f(CW\*(C`inactivity_timeout\*(C'\fR, a +\&\s-1SIGALRM\s0 is used during the run of the \f(CW\*(C`perl Makefile.PL\*(C'\fR or \f(CW\*(C`perl +Build.PL\*(C'\fR subprocess. A \s-1SIGALRM\s0 is also used during module version +parsing, and is controlled by \f(CW\*(C`version_timeout\*(C'\fR. +.SS "CPAN::Shell" +.IX Subsection "CPAN::Shell" +The commands available in the shell interface are methods in +the package CPAN::Shell. If you enter the shell command, your +input is split by the \fBText::ParseWords::shellwords()\fR routine, which +acts like most shells do. The first word is interpreted as the +method to be invoked, and the rest of the words are treated as the method's arguments. +Continuation lines are supported by ending a line with a +literal backslash. +.SS "autobundle" +.IX Subsection "autobundle" +\&\f(CW\*(C`autobundle\*(C'\fR writes a bundle file into the +\&\f(CW\*(C`$CPAN::Config\->{cpan_home}/Bundle\*(C'\fR directory. The file contains +a list of all modules that are both available from \s-1CPAN\s0 and currently +installed within \f(CW@INC\fR. Duplicates of each distribution are suppressed. +The name of the bundle file is based on the current date and a +counter, e.g. \fIBundle/Snapshot_2012_05_21_00.pm\fR. This is installed +again by running \f(CW\*(C`cpan Bundle::Snapshot_2012_05_21_00\*(C'\fR, or installing +\&\f(CW\*(C`Bundle::Snapshot_2012_05_21_00\*(C'\fR from the \s-1CPAN\s0 shell. +.PP +Return value: path to the written file. +.SS "hosts" +.IX Subsection "hosts" +Note: this feature is still in alpha state and may change in future +versions of \s-1CPAN\s0.pm +.PP +This commands provides a statistical overview over recent download +activities. The data for this is collected in the \s-1YAML\s0 file +\&\f(CW\*(C`FTPstats.yml\*(C'\fR in your \f(CW\*(C`cpan_home\*(C'\fR directory. If no \s-1YAML\s0 module is +configured or \s-1YAML\s0 not installed, no stats are provided. +.IP "install_tested" 4 +.IX Item "install_tested" +Install all distributions that have been tested successfully but have +not yet been installed. See also \f(CW\*(C`is_tested\*(C'\fR. +.IP "is_tested" 4 +.IX Item "is_tested" +List all build directories of distributions that have been tested +successfully but have not yet been installed. See also +\&\f(CW\*(C`install_tested\*(C'\fR. +.SS "mkmyconfig" +.IX Subsection "mkmyconfig" +\&\fBmkmyconfig()\fR writes your own CPAN::MyConfig file into your \f(CW\*(C`~/.cpan/\*(C'\fR +directory so that you can save your own preferences instead of the +system-wide ones. +.SS "r [Module|/Regexp/]..." +.IX Subsection "r [Module|/Regexp/]..." +scans current perl installation for modules that have a newer version +available on \s-1CPAN\s0 and provides a list of them. If called without +argument, all potential upgrades are listed; if called with arguments +the list is filtered to the modules and regexps given as arguments. +.PP +The listing looks something like this: +.PP +.Vb 10 +\& Package namespace installed latest in CPAN file +\& CPAN 1.94_64 1.9600 ANDK/CPAN\-1.9600.tar.gz +\& CPAN::Reporter 1.1801 1.1902 DAGOLDEN/CPAN\-Reporter\-1.1902.tar.gz +\& YAML 0.70 0.73 INGY/YAML\-0.73.tar.gz +\& YAML::Syck 1.14 1.17 AVAR/YAML\-Syck\-1.17.tar.gz +\& YAML::Tiny 1.44 1.50 ADAMK/YAML\-Tiny\-1.50.tar.gz +\& CGI 3.43 3.55 MARKSTOS/CGI.pm\-3.55.tar.gz +\& Module::Build::YAML 1.40 1.41 DAGOLDEN/Module\-Build\-0.3800.tar.gz +\& TAP::Parser::Result::YAML 3.22 3.23 ANDYA/Test\-Harness\-3.23.tar.gz +\& YAML::XS 0.34 0.35 INGY/YAML\-LibYAML\-0.35.tar.gz +.Ve +.PP +It suppresses duplicates in the column \f(CW\*(C`in CPAN file\*(C'\fR such that +distributions with many upgradeable modules are listed only once. +.PP +Note that the list is not sorted. +.SS "recent ***EXPERIMENTAL COMMAND***" +.IX Subsection "recent ***EXPERIMENTAL COMMAND***" +The \f(CW\*(C`recent\*(C'\fR command downloads a list of recent uploads to \s-1CPAN\s0 and +displays them \fIslowly\fR. While the command is running, a \f(CW$SIG\fR{\s-1INT\s0} +exits the loop after displaying the current item. +.PP +\&\fBNote\fR: This command requires XML::LibXML installed. +.PP +\&\fBNote\fR: This whole command currently is just a hack and will +probably change in future versions of \s-1CPAN\s0.pm, but the general +approach will likely remain. +.PP +\&\fBNote\fR: See also smoke +.SS "recompile" +.IX Subsection "recompile" +\&\fBrecompile()\fR is a special command that takes no argument and +runs the make/test/install cycle with brute force over all installed +dynamically loadable extensions (a.k.a. \s-1XS\s0 modules) with 'force' in +effect. The primary purpose of this command is to finish a network +installation. Imagine you have a common source tree for two different +architectures. You decide to do a completely independent fresh +installation. You start on one architecture with the help of a Bundle +file produced earlier. \s-1CPAN\s0 installs the whole Bundle for you, but +when you try to repeat the job on the second architecture, \s-1CPAN\s0 +responds with a \f(CW"Foo up to date"\fR message for all modules. So you +invoke \s-1CPAN\s0's recompile on the second architecture and you're done. +.PP +Another popular use for \f(CW\*(C`recompile\*(C'\fR is to act as a rescue in case your +perl breaks binary compatibility. If one of the modules that \s-1CPAN\s0 uses +is in turn depending on binary compatibility (so you cannot run \s-1CPAN\s0 +commands), then you should try the CPAN::Nox module for recovery. +.SS "report Bundle|Distribution|Module" +.IX Subsection "report Bundle|Distribution|Module" +The \f(CW\*(C`report\*(C'\fR command temporarily turns on the \f(CW\*(C`test_report\*(C'\fR config +variable, then runs the \f(CW\*(C`force test\*(C'\fR command with the given +arguments. The \f(CW\*(C`force\*(C'\fR pragma reruns the tests and repeats +every step that might have failed before. +.SS "smoke ***EXPERIMENTAL COMMAND***" +.IX Subsection "smoke ***EXPERIMENTAL COMMAND***" +\&\fB*** \s-1WARNING:\s0 this command downloads and executes software from \s-1CPAN\s0 to +your computer of completely unknown status. You should never do +this with your normal account and better have a dedicated well +separated and secured machine to do this. ***\fR +.PP +The \f(CW\*(C`smoke\*(C'\fR command takes the list of recent uploads to \s-1CPAN\s0 as +provided by the \f(CW\*(C`recent\*(C'\fR command and tests them all. While the +command is running \f(CW$SIG\fR{\s-1INT\s0} is defined to mean that the current item +shall be skipped. +.PP +\&\fBNote\fR: This whole command currently is just a hack and will +probably change in future versions of \s-1CPAN\s0.pm, but the general +approach will likely remain. +.PP +\&\fBNote\fR: See also recent +.SS "upgrade [Module|/Regexp/]..." +.IX Subsection "upgrade [Module|/Regexp/]..." +The \f(CW\*(C`upgrade\*(C'\fR command first runs an \f(CW\*(C`r\*(C'\fR command with the given +arguments and then installs the newest versions of all modules that +were listed by that. +.ie n .SS "The four ""CPAN::*"" Classes: Author, Bundle, Module, Distribution" +.el .SS "The four \f(CWCPAN::*\fP Classes: Author, Bundle, Module, Distribution" +.IX Subsection "The four CPAN::* Classes: Author, Bundle, Module, Distribution" +Although it may be considered internal, the class hierarchy does matter +for both users and programmer. \s-1CPAN\s0.pm deals with the four +classes mentioned above, and those classes all share a set of methods. Classical +single polymorphism is in effect. A metaclass object registers all +objects of all kinds and indexes them with a string. The strings +referencing objects have a separated namespace (well, not completely +separated): +.PP +.Vb 1 +\& Namespace Class +\& +\& words containing a "/" (slash) Distribution +\& words starting with Bundle:: Bundle +\& everything else Module or Author +.Ve +.PP +Modules know their associated Distribution objects. They always refer +to the most recent official release. Developers may mark their releases +as unstable development versions (by inserting an underscore into the +module version number which will also be reflected in the distribution +name when you run 'make dist'), so the really hottest and newest +distribution is not always the default. If a module Foo circulates +on \s-1CPAN\s0 in both version 1.23 and 1.23_90, \s-1CPAN\s0.pm offers a convenient +way to install version 1.23 by saying +.PP +.Vb 1 +\& install Foo +.Ve +.PP +This would install the complete distribution file (say +BAR/Foo\-1.23.tar.gz) with all accompanying material. But if you would +like to install version 1.23_90, you need to know where the +distribution file resides on \s-1CPAN\s0 relative to the authors/id/ +directory. If the author is \s-1BAR,\s0 this might be BAR/Foo\-1.23_90.tar.gz; +so you would have to say +.PP +.Vb 1 +\& install BAR/Foo\-1.23_90.tar.gz +.Ve +.PP +The first example will be driven by an object of the class +CPAN::Module, the second by an object of class CPAN::Distribution. +.SS "Integrating local directories" +.IX Subsection "Integrating local directories" +Note: this feature is still in alpha state and may change in future +versions of \s-1CPAN\s0.pm +.PP +Distribution objects are normally distributions from the \s-1CPAN,\s0 but +there is a slightly degenerate case for Distribution objects, too, of +projects held on the local disk. These distribution objects have the +same name as the local directory and end with a dot. A dot by itself +is also allowed for the current directory at the time \s-1CPAN\s0.pm was +used. All actions such as \f(CW\*(C`make\*(C'\fR, \f(CW\*(C`test\*(C'\fR, and \f(CW\*(C`install\*(C'\fR are applied +directly to that directory. This gives the command \f(CW\*(C`cpan .\*(C'\fR an +interesting touch: while the normal mantra of installing a \s-1CPAN\s0 module +without \s-1CPAN\s0.pm is one of +.PP +.Vb 5 +\& perl Makefile.PL perl Build.PL +\& ( go and get prerequisites ) +\& make ./Build +\& make test ./Build test +\& make install ./Build install +.Ve +.PP +the command \f(CW\*(C`cpan .\*(C'\fR does all of this at once. It figures out which +of the two mantras is appropriate, fetches and installs all +prerequisites, takes care of them recursively, and finally finishes the +installation of the module in the current directory, be it a \s-1CPAN\s0 +module or not. +.PP +The typical usage case is for private modules or working copies of +projects from remote repositories on the local disk. +.SS "Redirection" +.IX Subsection "Redirection" +The usual shell redirection symbols \f(CW\*(C` | \*(C'\fR and \f(CW\*(C`>\*(C'\fR are recognized +by the cpan shell \fBonly when surrounded by whitespace\fR. So piping to +pager or redirecting output into a file works somewhat as in a normal +shell, with the stipulation that you must type extra spaces. +.SS "Plugin support ***EXPERIMENTAL***" +.IX Subsection "Plugin support ***EXPERIMENTAL***" +Plugins are objects that implement any of currently eight methods: +.PP +.Vb 8 +\& pre_get +\& post_get +\& pre_make +\& post_make +\& pre_test +\& post_test +\& pre_install +\& post_install +.Ve +.PP +The \f(CW\*(C`plugin_list\*(C'\fR configuration parameter holds a list of strings of +the form +.PP +.Vb 1 +\& Modulename=arg0,arg1,arg2,arg3,... +.Ve +.PP +eg: +.PP +.Vb 1 +\& CPAN::Plugin::Flurb=dir,/opt/pkgs/flurb/raw,verbose,1 +.Ve +.PP +At run time, each listed plugin is instantiated as a singleton object +by running the equivalent of this pseudo code: +.PP +.Vb 3 +\& my $plugin = ; +\& ; +\& my $p = $instance{$plugin} ||= Modulename\->new($arg0,$arg1,...); +.Ve +.PP +The generated singletons are kept around from instantiation until the +end of the shell session. can be reconfigured at any +time at run time. While the cpan shell is running, it checks all +activated plugins at each of the 8 reference points listed above and +runs the respective method if it is implemented for that object. The +method is called with the active CPAN::Distribution object passed in +as an argument. +.SH "CONFIGURATION" +.IX Header "CONFIGURATION" +When the \s-1CPAN\s0 module is used for the first time, a configuration +dialogue tries to determine a couple of site specific options. The +result of the dialog is stored in a hash reference \f(CW $CPAN::Config \fR +in a file CPAN/Config.pm. +.PP +Default values defined in the CPAN/Config.pm file can be +overridden in a user specific file: CPAN/MyConfig.pm. Such a file is +best placed in \f(CW\*(C`$HOME/.cpan/CPAN/MyConfig.pm\*(C'\fR, because \f(CW\*(C`$HOME/.cpan\*(C'\fR is +added to the search path of the \s-1CPAN\s0 module before the \fBuse()\fR or +\&\fBrequire()\fR statements. The mkmyconfig command writes this file for you. +.PP +The \f(CW\*(C`o conf\*(C'\fR command has various bells and whistles: +.IP "completion support" 4 +.IX Item "completion support" +If you have a ReadLine module installed, you can hit \s-1TAB\s0 at any point +of the commandline and \f(CW\*(C`o conf\*(C'\fR will offer you completion for the +built-in subcommands and/or config variable names. +.IP "displaying some help: o conf help" 4 +.IX Item "displaying some help: o conf help" +Displays a short help +.IP "displaying current values: o conf [\s-1KEY\s0]" 4 +.IX Item "displaying current values: o conf [KEY]" +Displays the current value(s) for this config variable. Without \s-1KEY,\s0 +displays all subcommands and config variables. +.Sp +Example: +.Sp +.Vb 1 +\& o conf shell +.Ve +.Sp +If \s-1KEY\s0 starts and ends with a slash, the string in between is +treated as a regular expression and only keys matching this regexp +are displayed +.Sp +Example: +.Sp +.Vb 1 +\& o conf /color/ +.Ve +.IP "changing of scalar values: o conf \s-1KEY VALUE\s0" 4 +.IX Item "changing of scalar values: o conf KEY VALUE" +Sets the config variable \s-1KEY\s0 to \s-1VALUE.\s0 The empty string can be +specified as usual in shells, with \f(CW\*(Aq\*(Aq\fR or \f(CW""\fR +.Sp +Example: +.Sp +.Vb 1 +\& o conf wget /usr/bin/wget +.Ve +.IP "changing of list values: o conf \s-1KEY\s0 SHIFT|UNSHIFT|PUSH|POP|SPLICE|LIST" 4 +.IX Item "changing of list values: o conf KEY SHIFT|UNSHIFT|PUSH|POP|SPLICE|LIST" +If a config variable name ends with \f(CW\*(C`list\*(C'\fR, it is a list. \f(CW\*(C`o conf +KEY shift\*(C'\fR removes the first element of the list, \f(CW\*(C`o conf KEY pop\*(C'\fR +removes the last element of the list. \f(CW\*(C`o conf KEYS unshift LIST\*(C'\fR +prepends a list of values to the list, \f(CW\*(C`o conf KEYS push LIST\*(C'\fR +appends a list of valued to the list. +.Sp +Likewise, \f(CW\*(C`o conf KEY splice LIST\*(C'\fR passes the \s-1LIST\s0 to the corresponding +splice command. +.Sp +Finally, any other list of arguments is taken as a new list value for +the \s-1KEY\s0 variable discarding the previous value. +.Sp +Examples: +.Sp +.Vb 3 +\& o conf urllist unshift http://cpan.dev.local/CPAN +\& o conf urllist splice 3 1 +\& o conf urllist http://cpan1.local http://cpan2.local ftp://ftp.perl.org +.Ve +.IP "reverting to saved: o conf defaults" 4 +.IX Item "reverting to saved: o conf defaults" +Reverts all config variables to the state in the saved config file. +.IP "saving the config: o conf commit" 4 +.IX Item "saving the config: o conf commit" +Saves all config variables to the current config file (CPAN/Config.pm +or CPAN/MyConfig.pm that was loaded at start). +.PP +The configuration dialog can be started any time later again by +issuing the command \f(CW\*(C` o conf init \*(C'\fR in the \s-1CPAN\s0 shell. A subset of +the configuration dialog can be run by issuing \f(CW\*(C`o conf init WORD\*(C'\fR +where \s-1WORD\s0 is any valid config variable or a regular expression. +.SS "Config Variables" +.IX Subsection "Config Variables" +The following keys in the hash reference \f(CW$CPAN::Config\fR are +currently defined: +.PP +.Vb 10 +\& allow_installing_module_downgrades +\& allow or disallow installing module downgrades +\& allow_installing_outdated_dists +\& allow or disallow installing modules that are +\& indexed in the cpan index pointing to a distro +\& with a higher distro\-version number +\& applypatch path to external prg +\& auto_commit commit all changes to config variables to disk +\& build_cache size of cache for directories to build modules +\& build_dir locally accessible directory to build modules +\& build_dir_reuse boolean if distros in build_dir are persistent +\& build_requires_install_policy +\& to install or not to install when a module is +\& only needed for building. yes|no|ask/yes|ask/no +\& bzip2 path to external prg +\& cache_metadata use serializer to cache metadata +\& check_sigs if signatures should be verified +\& cleanup_after_install +\& remove build directory immediately after a +\& successful install and remember that for the +\& duration of the session +\& colorize_debug Term::ANSIColor attributes for debugging output +\& colorize_output boolean if Term::ANSIColor should colorize output +\& colorize_print Term::ANSIColor attributes for normal output +\& colorize_warn Term::ANSIColor attributes for warnings +\& commandnumber_in_prompt +\& boolean if you want to see current command number +\& commands_quote preferred character to use for quoting external +\& commands when running them. Defaults to double +\& quote on Windows, single tick everywhere else; +\& can be set to space to disable quoting +\& connect_to_internet_ok +\& whether to ask if opening a connection is ok before +\& urllist is specified +\& cpan_home local directory reserved for this package +\& curl path to external prg +\& dontload_hash DEPRECATED +\& dontload_list arrayref: modules in the list will not be +\& loaded by the CPAN::has_inst() routine +\& ftp path to external prg +\& ftp_passive if set, the environment variable FTP_PASSIVE is set +\& for downloads +\& ftp_proxy proxy host for ftp requests +\& ftpstats_period max number of days to keep download statistics +\& ftpstats_size max number of items to keep in the download statistics +\& getcwd see below +\& gpg path to external prg +\& gzip location of external program gzip +\& halt_on_failure stop processing after the first failure of queued +\& items or dependencies +\& histfile file to maintain history between sessions +\& histsize maximum number of lines to keep in histfile +\& http_proxy proxy host for http requests +\& inactivity_timeout breaks interactive Makefile.PLs or Build.PLs +\& after this many seconds inactivity. Set to 0 to +\& disable timeouts. +\& index_expire refetch index files after this many days +\& inhibit_startup_message +\& if true, suppress the startup message +\& keep_source_where directory in which to keep the source (if we do) +\& load_module_verbosity +\& report loading of optional modules used by CPAN.pm +\& lynx path to external prg +\& make location of external make program +\& make_arg arguments that should always be passed to \*(Aqmake\*(Aq +\& make_install_make_command +\& the make command for running \*(Aqmake install\*(Aq, for +\& example \*(Aqsudo make\*(Aq +\& make_install_arg same as make_arg for \*(Aqmake install\*(Aq +\& makepl_arg arguments passed to \*(Aqperl Makefile.PL\*(Aq +\& mbuild_arg arguments passed to \*(Aq./Build\*(Aq +\& mbuild_install_arg arguments passed to \*(Aq./Build install\*(Aq +\& mbuild_install_build_command +\& command to use instead of \*(Aq./Build\*(Aq when we are +\& in the install stage, for example \*(Aqsudo ./Build\*(Aq +\& mbuildpl_arg arguments passed to \*(Aqperl Build.PL\*(Aq +\& ncftp path to external prg +\& ncftpget path to external prg +\& no_proxy don\*(Aqt proxy to these hosts/domains (comma separated list) +\& pager location of external program more (or any pager) +\& password your password if you CPAN server wants one +\& patch path to external prg +\& patches_dir local directory containing patch files +\& perl5lib_verbosity verbosity level for PERL5LIB additions +\& plugin_list list of active hooks (see Plugin support above +\& and the CPAN::Plugin module) +\& prefer_external_tar +\& per default all untar operations are done with +\& Archive::Tar; by setting this variable to true +\& the external tar command is used if available +\& prefer_installer legal values are MB and EUMM: if a module comes +\& with both a Makefile.PL and a Build.PL, use the +\& former (EUMM) or the latter (MB); if the module +\& comes with only one of the two, that one will be +\& used no matter the setting +\& prerequisites_policy +\& what to do if you are missing module prerequisites +\& (\*(Aqfollow\*(Aq automatically, \*(Aqask\*(Aq me, or \*(Aqignore\*(Aq) +\& For \*(Aqfollow\*(Aq, also sets PERL_AUTOINSTALL and +\& PERL_EXTUTILS_AUTOINSTALL for "\-\-defaultdeps" if +\& not already set +\& prefs_dir local directory to store per\-distro build options +\& proxy_user username for accessing an authenticating proxy +\& proxy_pass password for accessing an authenticating proxy +\& randomize_urllist add some randomness to the sequence of the urllist +\& recommends_policy whether recommended prerequisites should be included +\& scan_cache controls scanning of cache (\*(Aqatstart\*(Aq, \*(Aqatexit\*(Aq or \*(Aqnever\*(Aq) +\& shell your favorite shell +\& show_unparsable_versions +\& boolean if r command tells which modules are versionless +\& show_upload_date boolean if commands should try to determine upload date +\& show_zero_versions boolean if r command tells for which modules $version==0 +\& suggests_policy whether suggested prerequisites should be included +\& tar location of external program tar +\& tar_verbosity verbosity level for the tar command +\& term_is_latin deprecated: if true Unicode is translated to ISO\-8859\-1 +\& (and nonsense for characters outside latin range) +\& term_ornaments boolean to turn ReadLine ornamenting on/off +\& test_report email test reports (if CPAN::Reporter is installed) +\& trust_test_report_history +\& skip testing when previously tested ok (according to +\& CPAN::Reporter history) +\& unzip location of external program unzip +\& urllist arrayref to nearby CPAN sites (or equivalent locations) +\& urllist_ping_external +\& use external ping command when autoselecting mirrors +\& urllist_ping_verbose +\& increase verbosity when autoselecting mirrors +\& use_prompt_default set PERL_MM_USE_DEFAULT for configure/make/test/install +\& use_sqlite use CPAN::SQLite for metadata storage (fast and lean) +\& username your username if you CPAN server wants one +\& version_timeout stops version parsing after this many seconds. +\& Default is 15 secs. Set to 0 to disable. +\& wait_list arrayref to a wait server to try (See CPAN::WAIT) +\& wget path to external prg +\& yaml_load_code enable YAML code deserialisation via CPAN::DeferredCode +\& yaml_module which module to use to read/write YAML files +.Ve +.PP +You can set and query each of these options interactively in the cpan +shell with the \f(CW\*(C`o conf\*(C'\fR or the \f(CW\*(C`o conf init\*(C'\fR command as specified below. +.ie n .IP """o conf """ 2 +.el .IP "\f(CWo conf \fR" 2 +.IX Item "o conf " +prints the current value of the \fIscalar option\fR +.ie n .IP """o conf """ 2 +.el .IP "\f(CWo conf \fR" 2 +.IX Item "o conf " +Sets the value of the \fIscalar option\fR to \fIvalue\fR +.ie n .IP """o conf """ 2 +.el .IP "\f(CWo conf \fR" 2 +.IX Item "o conf " +prints the current value of the \fIlist option\fR in MakeMaker's +neatvalue format. +.ie n .IP """o conf [shift|pop]""" 2 +.el .IP "\f(CWo conf [shift|pop]\fR" 2 +.IX Item "o conf [shift|pop]" +shifts or pops the array in the \fIlist option\fR variable +.ie n .IP """o conf [unshift|push|splice] """ 2 +.el .IP "\f(CWo conf [unshift|push|splice] \fR" 2 +.IX Item "o conf [unshift|push|splice] " +works like the corresponding perl commands. +.IP "interactive editing: o conf init [MATCH|LIST]" 2 +.IX Item "interactive editing: o conf init [MATCH|LIST]" +Runs an interactive configuration dialog for matching variables. +Without argument runs the dialog over all supported config variables. +To specify a \s-1MATCH\s0 the argument must be enclosed by slashes. +.Sp +Examples: +.Sp +.Vb 2 +\& o conf init ftp_passive ftp_proxy +\& o conf init /color/ +.Ve +.Sp +Note: this method of setting config variables often provides more +explanation about the functioning of a variable than the manpage. +.SS "CPAN::anycwd($path): Note on config variable getcwd" +.IX Subsection "CPAN::anycwd($path): Note on config variable getcwd" +\&\s-1CPAN\s0.pm changes the current working directory often and needs to +determine its own current working directory. By default it uses +Cwd::cwd, but if for some reason this doesn't work on your system, +configure alternatives according to the following table: +.IP "cwd" 4 +.IX Item "cwd" +Calls Cwd::cwd +.IP "getcwd" 4 +.IX Item "getcwd" +Calls Cwd::getcwd +.IP "fastcwd" 4 +.IX Item "fastcwd" +Calls Cwd::fastcwd +.IP "getdcwd" 4 +.IX Item "getdcwd" +Calls Cwd::getdcwd +.IP "backtickcwd" 4 +.IX Item "backtickcwd" +Calls the external command cwd. +.SS "Note on the format of the urllist parameter" +.IX Subsection "Note on the format of the urllist parameter" +urllist parameters are URLs according to \s-1RFC 1738.\s0 We do a little +guessing if your \s-1URL\s0 is not compliant, but if you have problems with +\&\f(CW\*(C`file\*(C'\fR URLs, please try the correct format. Either: +.PP +.Vb 1 +\& file://localhost/whatever/ftp/pub/CPAN/ +.Ve +.PP +or +.PP +.Vb 1 +\& file:///home/ftp/pub/CPAN/ +.Ve +.SS "The urllist parameter has CD-ROM support" +.IX Subsection "The urllist parameter has CD-ROM support" +The \f(CW\*(C`urllist\*(C'\fR parameter of the configuration table contains a list of +URLs used for downloading. If the list contains any +\&\f(CW\*(C`file\*(C'\fR URLs, \s-1CPAN\s0 always tries there first. This +feature is disabled for index files. So the recommendation for the +owner of a CD-ROM with \s-1CPAN\s0 contents is: include your local, possibly +outdated CD-ROM as a \f(CW\*(C`file\*(C'\fR \s-1URL\s0 at the end of urllist, e.g. +.PP +.Vb 1 +\& o conf urllist push file://localhost/CDROM/CPAN +.Ve +.PP +\&\s-1CPAN\s0.pm will then fetch the index files from one of the \s-1CPAN\s0 sites +that come at the beginning of urllist. It will later check for each +module to see whether there is a local copy of the most recent version. +.PP +Another peculiarity of urllist is that the site that we could +successfully fetch the last file from automatically gets a preference +token and is tried as the first site for the next request. So if you +add a new site at runtime it may happen that the previously preferred +site will be tried another time. This means that if you want to disallow +a site for the next transfer, it must be explicitly removed from +urllist. +.SS "Maintaining the urllist parameter" +.IX Subsection "Maintaining the urllist parameter" +If you have \s-1YAML\s0.pm (or some other \s-1YAML\s0 module configured in +\&\f(CW\*(C`yaml_module\*(C'\fR) installed, \s-1CPAN\s0.pm collects a few statistical data +about recent downloads. You can view the statistics with the \f(CW\*(C`hosts\*(C'\fR +command or inspect them directly by looking into the \f(CW\*(C`FTPstats.yml\*(C'\fR +file in your \f(CW\*(C`cpan_home\*(C'\fR directory. +.PP +To get some interesting statistics, it is recommended that +\&\f(CW\*(C`randomize_urllist\*(C'\fR be set; this introduces some amount of +randomness into the \s-1URL\s0 selection. +.ie n .SS "The ""requires"" and ""build_requires"" dependency declarations" +.el .SS "The \f(CWrequires\fP and \f(CWbuild_requires\fP dependency declarations" +.IX Subsection "The requires and build_requires dependency declarations" +Since \s-1CPAN\s0.pm version 1.88_51 modules declared as \f(CW\*(C`build_requires\*(C'\fR by +a distribution are treated differently depending on the config +variable \f(CW\*(C`build_requires_install_policy\*(C'\fR. By setting +\&\f(CW\*(C`build_requires_install_policy\*(C'\fR to \f(CW\*(C`no\*(C'\fR, such a module is not +installed. It is only built and tested, and then kept in the list of +tested but uninstalled modules. As such, it is available during the +build of the dependent module by integrating the path to the +\&\f(CW\*(C`blib/arch\*(C'\fR and \f(CW\*(C`blib/lib\*(C'\fR directories in the environment variable +\&\s-1PERL5LIB.\s0 If \f(CW\*(C`build_requires_install_policy\*(C'\fR is set to \f(CW\*(C`yes\*(C'\fR, then +both modules declared as \f(CW\*(C`requires\*(C'\fR and those declared as +\&\f(CW\*(C`build_requires\*(C'\fR are treated alike. By setting to \f(CW\*(C`ask/yes\*(C'\fR or +\&\f(CW\*(C`ask/no\*(C'\fR, \s-1CPAN\s0.pm asks the user and sets the default accordingly. +.SS "Configuration of the allow_installing_* parameters" +.IX Subsection "Configuration of the allow_installing_* parameters" +The \f(CW\*(C`allow_installing_*\*(C'\fR parameters are evaluated during +the \f(CW\*(C`make\*(C'\fR phase. If set to \f(CW\*(C`yes\*(C'\fR, they allow the testing and the installation of +the current distro and otherwise have no effect. If set to \f(CW\*(C`no\*(C'\fR, they +may abort the build (preventing testing and installing), depending on the contents of the +\&\f(CW\*(C`blib/\*(C'\fR directory. The \f(CW\*(C`blib/\*(C'\fR directory is the directory that holds +all the files that would usually be installed in the \f(CW\*(C`install\*(C'\fR phase. +.PP +\&\f(CW\*(C`allow_installing_outdated_dists\*(C'\fR compares the \f(CW\*(C`blib/\*(C'\fR directory with the \s-1CPAN\s0 index. +If it finds something there that belongs, according to the index, to a different +dist, it aborts the current build. +.PP +\&\f(CW\*(C`allow_installing_module_downgrades\*(C'\fR compares the \f(CW\*(C`blib/\*(C'\fR directory +with already installed modules, actually their version numbers, as +determined by ExtUtils::MakeMaker or equivalent. If a to-be-installed +module would downgrade an already installed module, the current build +is aborted. +.PP +An interesting twist occurs when a distroprefs document demands the +installation of an outdated dist via goto while +\&\f(CW\*(C`allow_installing_outdated_dists\*(C'\fR forbids it. Without additional +provisions, this would let the \f(CW\*(C`allow_installing_outdated_dists\*(C'\fR +win and the distroprefs lose. So the proper arrangement in such a case +is to write a second distroprefs document for the distro that \f(CW\*(C`goto\*(C'\fR +points to and overrule the \f(CW\*(C`cpanconfig\*(C'\fR there. E.g.: +.PP +.Vb 9 +\& \-\-\- +\& match: +\& distribution: "^MAUKE/Keyword\-Simple\-0.04.tar.gz" +\& goto: "MAUKE/Keyword\-Simple\-0.03.tar.gz" +\& \-\-\- +\& match: +\& distribution: "^MAUKE/Keyword\-Simple\-0.03.tar.gz" +\& cpanconfig: +\& allow_installing_outdated_dists: yes +.Ve +.SS "Configuration for individual distributions (\fIDistroprefs\fP)" +.IX Subsection "Configuration for individual distributions (Distroprefs)" +(\fBNote:\fR This feature has been introduced in \s-1CPAN\s0.pm 1.8854) +.PP +Distributions on \s-1CPAN\s0 usually behave according to what we call the +\&\s-1CPAN\s0 mantra. Or since the advent of Module::Build we should talk about +two mantras: +.PP +.Vb 4 +\& perl Makefile.PL perl Build.PL +\& make ./Build +\& make test ./Build test +\& make install ./Build install +.Ve +.PP +But some modules cannot be built with this mantra. They try to get +some extra data from the user via the environment, extra arguments, or +interactively\*(--thus disturbing the installation of large bundles like +Phalanx100 or modules with many dependencies like Plagger. +.PP +The distroprefs system of \f(CW\*(C`CPAN.pm\*(C'\fR addresses this problem by +allowing the user to specify extra informations and recipes in \s-1YAML\s0 +files to either +.IP "\(bu" 4 +pass additional arguments to one of the four commands, +.IP "\(bu" 4 +set environment variables +.IP "\(bu" 4 +instantiate an Expect object that reads from the console, waits for +some regular expressions and enters some answers +.IP "\(bu" 4 +temporarily override assorted \f(CW\*(C`CPAN.pm\*(C'\fR configuration variables +.IP "\(bu" 4 +specify dependencies the original maintainer forgot +.IP "\(bu" 4 +disable the installation of an object altogether +.PP +See the \s-1YAML\s0 and Data::Dumper files that come with the \f(CW\*(C`CPAN.pm\*(C'\fR +distribution in the \f(CW\*(C`distroprefs/\*(C'\fR directory for examples. +.SS "Filenames" +.IX Subsection "Filenames" +The \s-1YAML\s0 files themselves must have the \f(CW\*(C`.yml\*(C'\fR extension; all other +files are ignored (for two exceptions see \fIFallback Data::Dumper and +Storable\fR below). The containing directory can be specified in +\&\f(CW\*(C`CPAN.pm\*(C'\fR in the \f(CW\*(C`prefs_dir\*(C'\fR config variable. Try \f(CW\*(C`o conf init +prefs_dir\*(C'\fR in the \s-1CPAN\s0 shell to set and activate the distroprefs +system. +.PP +Every \s-1YAML\s0 file may contain arbitrary documents according to the \s-1YAML\s0 +specification, and every document is treated as an entity that +can specify the treatment of a single distribution. +.PP +Filenames can be picked arbitrarily; \f(CW\*(C`CPAN.pm\*(C'\fR always reads +all files (in alphabetical order) and takes the key \f(CW\*(C`match\*(C'\fR (see +below in \fILanguage Specs\fR) as a hashref containing match criteria +that determine if the current distribution matches the \s-1YAML\s0 document +or not. +.SS "Fallback Data::Dumper and Storable" +.IX Subsection "Fallback Data::Dumper and Storable" +If neither your configured \f(CW\*(C`yaml_module\*(C'\fR nor \s-1YAML\s0.pm is installed, +\&\s-1CPAN\s0.pm falls back to using Data::Dumper and Storable and looks for +files with the extensions \f(CW\*(C`.dd\*(C'\fR or \f(CW\*(C`.st\*(C'\fR in the \f(CW\*(C`prefs_dir\*(C'\fR +directory. These files are expected to contain one or more hashrefs. +For Data::Dumper generated files, this is expected to be done with by +defining \f(CW$VAR1\fR, \f(CW$VAR2\fR, etc. The \s-1YAML\s0 shell would produce these +with the command +.PP +.Vb 1 +\& ysh < somefile.yml > somefile.dd +.Ve +.PP +For Storable files the rule is that they must be constructed such that +\&\f(CW\*(C`Storable::retrieve(file)\*(C'\fR returns an array reference and the array +elements represent one distropref object each. The conversion from +\&\s-1YAML\s0 would look like so: +.PP +.Vb 3 +\& perl \-MYAML=LoadFile \-MStorable=nstore \-e \*(Aq +\& @y=LoadFile(shift); +\& nstore(\e@y, shift)\*(Aq somefile.yml somefile.st +.Ve +.PP +In bootstrapping situations it is usually sufficient to translate only +a few \s-1YAML\s0 files to Data::Dumper for crucial modules like +\&\f(CW\*(C`YAML::Syck\*(C'\fR, \f(CW\*(C`YAML.pm\*(C'\fR and \f(CW\*(C`Expect.pm\*(C'\fR. If you prefer Storable +over Data::Dumper, remember to pull out a Storable version that writes +an older format than all the other Storable versions that will need to +read them. +.SS "Blueprint" +.IX Subsection "Blueprint" +The following example contains all supported keywords and structures +with the exception of \f(CW\*(C`eexpect\*(C'\fR which can be used instead of +\&\f(CW\*(C`expect\*(C'\fR. +.PP +.Vb 10 +\& \-\-\- +\& comment: "Demo" +\& match: +\& module: "Dancing::Queen" +\& distribution: "^CHACHACHA/Dancing\-" +\& not_distribution: "\e.zip$" +\& perl: "/usr/local/cariba\-perl/bin/perl" +\& perlconfig: +\& archname: "freebsd" +\& not_cc: "gcc" +\& env: +\& DANCING_FLOOR: "Shubiduh" +\& disabled: 1 +\& cpanconfig: +\& make: gmake +\& pl: +\& args: +\& \- "\-\-somearg=specialcase" +\& +\& env: {} +\& +\& expect: +\& \- "Which is your favorite fruit" +\& \- "apple\en" +\& +\& make: +\& args: +\& \- all +\& \- extra\-all +\& +\& env: {} +\& +\& expect: [] +\& +\& commandline: "echo SKIPPING make" +\& +\& test: +\& args: [] +\& +\& env: {} +\& +\& expect: [] +\& +\& install: +\& args: [] +\& +\& env: +\& WANT_TO_INSTALL: YES +\& +\& expect: +\& \- "Do you really want to install" +\& \- "y\en" +\& +\& patches: +\& \- "ABCDE/Fedcba\-3.14\-ABCDE\-01.patch" +\& +\& depends: +\& configure_requires: +\& LWP: 5.8 +\& build_requires: +\& Test::Exception: 0.25 +\& requires: +\& Spiffy: 0.30 +.Ve +.SS "Language Specs" +.IX Subsection "Language Specs" +Every \s-1YAML\s0 document represents a single hash reference. The valid keys +in this hash are as follows: +.IP "comment [scalar]" 4 +.IX Item "comment [scalar]" +A comment +.IP "cpanconfig [hash]" 4 +.IX Item "cpanconfig [hash]" +Temporarily override assorted \f(CW\*(C`CPAN.pm\*(C'\fR configuration variables. +.Sp +Supported are: \f(CW\*(C`build_requires_install_policy\*(C'\fR, \f(CW\*(C`check_sigs\*(C'\fR, +\&\f(CW\*(C`make\*(C'\fR, \f(CW\*(C`make_install_make_command\*(C'\fR, \f(CW\*(C`prefer_installer\*(C'\fR, +\&\f(CW\*(C`test_report\*(C'\fR. Please report as a bug when you need another one +supported. +.IP "depends [hash] *** \s-1EXPERIMENTAL FEATURE\s0 ***" 4 +.IX Item "depends [hash] *** EXPERIMENTAL FEATURE ***" +All three types, namely \f(CW\*(C`configure_requires\*(C'\fR, \f(CW\*(C`build_requires\*(C'\fR, and +\&\f(CW\*(C`requires\*(C'\fR are supported in the way specified in the \s-1META\s0.yml +specification. The current implementation \fImerges\fR the specified +dependencies with those declared by the package maintainer. In a +future implementation this may be changed to override the original +declaration. +.IP "disabled [boolean]" 4 +.IX Item "disabled [boolean]" +Specifies that this distribution shall not be processed at all. +.IP "features [array] *** \s-1EXPERIMENTAL FEATURE\s0 ***" 4 +.IX Item "features [array] *** EXPERIMENTAL FEATURE ***" +Experimental implementation to deal with optional_features from +\&\s-1META\s0.yml. Still needs coordination with installer software and +currently works only for \s-1META\s0.yml declaring \f(CW\*(C`dynamic_config=0\*(C'\fR. Use +with caution. +.IP "goto [string]" 4 +.IX Item "goto [string]" +The canonical name of a delegate distribution to install +instead. Useful when a new version, although it tests \s-1OK\s0 itself, +breaks something else or a developer release or a fork is already +uploaded that is better than the last released version. +.IP "install [hash]" 4 +.IX Item "install [hash]" +Processing instructions for the \f(CW\*(C`make install\*(C'\fR or \f(CW\*(C`./Build install\*(C'\fR +phase of the \s-1CPAN\s0 mantra. See below under \fIProcessing Instructions\fR. +.IP "make [hash]" 4 +.IX Item "make [hash]" +Processing instructions for the \f(CW\*(C`make\*(C'\fR or \f(CW\*(C`./Build\*(C'\fR phase of the +\&\s-1CPAN\s0 mantra. See below under \fIProcessing Instructions\fR. +.IP "match [hash]" 4 +.IX Item "match [hash]" +A hashref with one or more of the keys \f(CW\*(C`distribution\*(C'\fR, \f(CW\*(C`module\*(C'\fR, +\&\f(CW\*(C`perl\*(C'\fR, \f(CW\*(C`perlconfig\*(C'\fR, and \f(CW\*(C`env\*(C'\fR that specify whether a document is +targeted at a specific \s-1CPAN\s0 distribution or installation. +Keys prefixed with \f(CW\*(C`not_\*(C'\fR negates the corresponding match. +.Sp +The corresponding values are interpreted as regular expressions. The +\&\f(CW\*(C`distribution\*(C'\fR related one will be matched against the canonical +distribution name, e.g. \*(L"AUTHOR/Foo\-Bar\-3.14.tar.gz\*(R". +.Sp +The \f(CW\*(C`module\*(C'\fR related one will be matched against \fIall\fR modules +contained in the distribution until one module matches. +.Sp +The \f(CW\*(C`perl\*(C'\fR related one will be matched against \f(CW$^X\fR (but with the +absolute path). +.Sp +The value associated with \f(CW\*(C`perlconfig\*(C'\fR is itself a hashref that is +matched against corresponding values in the \f(CW%Config::Config\fR hash +living in the \f(CW\*(C`Config.pm\*(C'\fR module. +Keys prefixed with \f(CW\*(C`not_\*(C'\fR negates the corresponding match. +.Sp +The value associated with \f(CW\*(C`env\*(C'\fR is itself a hashref that is +matched against corresponding values in the \f(CW%ENV\fR hash. +Keys prefixed with \f(CW\*(C`not_\*(C'\fR negates the corresponding match. +.Sp +If more than one restriction of \f(CW\*(C`module\*(C'\fR, \f(CW\*(C`distribution\*(C'\fR, etc. is +specified, the results of the separately computed match values must +all match. If so, the hashref represented by the +\&\s-1YAML\s0 document is returned as the preference structure for the current +distribution. +.IP "patches [array]" 4 +.IX Item "patches [array]" +An array of patches on \s-1CPAN\s0 or on the local disk to be applied in +order via an external patch program. If the value for the \f(CW\*(C`\-p\*(C'\fR +parameter is \f(CW0\fR or \f(CW1\fR is determined by reading the patch +beforehand. The path to each patch is either an absolute path on the +local filesystem or relative to a patch directory specified in the +\&\f(CW\*(C`patches_dir\*(C'\fR configuration variable or in the format of a canonical +distro name. For examples please consult the distroprefs/ directory in +the \s-1CPAN\s0.pm distribution (these examples are not installed by +default). +.Sp +Note: if the \f(CW\*(C`applypatch\*(C'\fR program is installed and \f(CW\*(C`CPAN::Config\*(C'\fR +knows about it \fBand\fR a patch is written by the \f(CW\*(C`makepatch\*(C'\fR program, +then \f(CW\*(C`CPAN.pm\*(C'\fR lets \f(CW\*(C`applypatch\*(C'\fR apply the patch. Both \f(CW\*(C`makepatch\*(C'\fR +and \f(CW\*(C`applypatch\*(C'\fR are available from \s-1CPAN\s0 in the \f(CW\*(C`JV/makepatch\-*\*(C'\fR +distribution. +.IP "pl [hash]" 4 +.IX Item "pl [hash]" +Processing instructions for the \f(CW\*(C`perl Makefile.PL\*(C'\fR or \f(CW\*(C`perl +Build.PL\*(C'\fR phase of the \s-1CPAN\s0 mantra. See below under \fIProcessing +Instructions\fR. +.IP "test [hash]" 4 +.IX Item "test [hash]" +Processing instructions for the \f(CW\*(C`make test\*(C'\fR or \f(CW\*(C`./Build test\*(C'\fR phase +of the \s-1CPAN\s0 mantra. See below under \fIProcessing Instructions\fR. +.SS "Processing Instructions" +.IX Subsection "Processing Instructions" +.IP "args [array]" 4 +.IX Item "args [array]" +Arguments to be added to the command line +.IP "commandline" 4 +.IX Item "commandline" +A full commandline to run via \f(CW\*(C`system()\*(C'\fR. +During execution, the environment variable \s-1PERL\s0 is set +to $^X (but with an absolute path). If \f(CW\*(C`commandline\*(C'\fR is specified, +\&\f(CW\*(C`args\*(C'\fR is not used. +.IP "eexpect [hash]" 4 +.IX Item "eexpect [hash]" +Extended \f(CW\*(C`expect\*(C'\fR. This is a hash reference with four allowed keys, +\&\f(CW\*(C`mode\*(C'\fR, \f(CW\*(C`timeout\*(C'\fR, \f(CW\*(C`reuse\*(C'\fR, and \f(CW\*(C`talk\*(C'\fR. +.Sp +You must install the \f(CW\*(C`Expect\*(C'\fR module to use \f(CW\*(C`eexpect\*(C'\fR. \s-1CPAN\s0.pm +does not install it for you. +.Sp +\&\f(CW\*(C`mode\*(C'\fR may have the values \f(CW\*(C`deterministic\*(C'\fR for the case where all +questions come in the order written down and \f(CW\*(C`anyorder\*(C'\fR for the case +where the questions may come in any order. The default mode is +\&\f(CW\*(C`deterministic\*(C'\fR. +.Sp +\&\f(CW\*(C`timeout\*(C'\fR denotes a timeout in seconds. Floating-point timeouts are +\&\s-1OK.\s0 With \f(CW\*(C`mode=deterministic\*(C'\fR, the timeout denotes the +timeout per question; with \f(CW\*(C`mode=anyorder\*(C'\fR it denotes the +timeout per byte received from the stream or questions. +.Sp +\&\f(CW\*(C`talk\*(C'\fR is a reference to an array that contains alternating questions +and answers. Questions are regular expressions and answers are literal +strings. The Expect module watches the stream from the +execution of the external program (\f(CW\*(C`perl Makefile.PL\*(C'\fR, \f(CW\*(C`perl +Build.PL\*(C'\fR, \f(CW\*(C`make\*(C'\fR, etc.). +.Sp +For \f(CW\*(C`mode=deterministic\*(C'\fR, the \s-1CPAN\s0.pm injects the +corresponding answer as soon as the stream matches the regular expression. +.Sp +For \f(CW\*(C`mode=anyorder\*(C'\fR \s-1CPAN\s0.pm answers a question as soon +as the timeout is reached for the next byte in the input stream. In +this mode you can use the \f(CW\*(C`reuse\*(C'\fR parameter to decide what will +happen with a question-answer pair after it has been used. In the +default case (reuse=0) it is removed from the array, avoiding being +used again accidentally. If you want to answer the +question \f(CW\*(C`Do you really want to do that\*(C'\fR several times, then it must +be included in the array at least as often as you want this answer to +be given. Setting the parameter \f(CW\*(C`reuse\*(C'\fR to 1 makes this repetition +unnecessary. +.IP "env [hash]" 4 +.IX Item "env [hash]" +Environment variables to be set during the command +.IP "expect [array]" 4 +.IX Item "expect [array]" +You must install the \f(CW\*(C`Expect\*(C'\fR module to use \f(CW\*(C`expect\*(C'\fR. \s-1CPAN\s0.pm +does not install it for you. +.Sp +\&\f(CW\*(C`expect: \*(C'\fR is a short notation for this \f(CW\*(C`eexpect\*(C'\fR: +.Sp +.Vb 4 +\& eexpect: +\& mode: deterministic +\& timeout: 15 +\& talk: +.Ve +.ie n .SS "Schema verification with ""Kwalify""" +.el .SS "Schema verification with \f(CWKwalify\fP" +.IX Subsection "Schema verification with Kwalify" +If you have the \f(CW\*(C`Kwalify\*(C'\fR module installed (which is part of the +Bundle::CPANxxl), then all your distroprefs files are checked for +syntactic correctness. +.SS "Example Distroprefs Files" +.IX Subsection "Example Distroprefs Files" +\&\f(CW\*(C`CPAN.pm\*(C'\fR comes with a collection of example \s-1YAML\s0 files. Note that these +are really just examples and should not be used without care because +they cannot fit everybody's purpose. After all, the authors of the +packages that ask questions had a need to ask, so you should watch +their questions and adjust the examples to your environment and your +needs. You have been warned:\-) +.SH "PROGRAMMER'S INTERFACE" +.IX Header "PROGRAMMER'S INTERFACE" +If you do not enter the shell, shell commands are +available both as methods (\f(CW\*(C`CPAN::Shell\->install(...)\*(C'\fR) and as +functions in the calling package (\f(CW\*(C`install(...)\*(C'\fR). Before calling low-level +commands, it makes sense to initialize components of \s-1CPAN\s0 you need, e.g.: +.PP +.Vb 3 +\& CPAN::HandleConfig\->load; +\& CPAN::Shell::setup_output; +\& CPAN::Index\->reload; +.Ve +.PP +High-level commands do such initializations automatically. +.PP +There's currently only one class that has a stable interface \- +CPAN::Shell. All commands that are available in the \s-1CPAN\s0 shell are +methods of the class CPAN::Shell. The arguments on the commandline are +passed as arguments to the method. +.PP +So if you take for example the shell command +.PP +.Vb 1 +\& notest install A B C +.Ve +.PP +the actually executed command is +.PP +.Vb 1 +\& CPAN::Shell\->notest("install","A","B","C"); +.Ve +.PP +Each of the commands that produce listings of modules (\f(CW\*(C`r\*(C'\fR, +\&\f(CW\*(C`autobundle\*(C'\fR, \f(CW\*(C`u\*(C'\fR) also return a list of the IDs of all modules +within the list. +.IP "expand($type,@things)" 2 +.IX Item "expand($type,@things)" +The IDs of all objects available within a program are strings that can +be expanded to the corresponding real objects with the +\&\f(CW\*(C`CPAN::Shell\->expand("Module",@things)\*(C'\fR method. Expand returns a +list of CPAN::Module objects according to the \f(CW@things\fR arguments +given. In scalar context, it returns only the first element of the +list. +.IP "expandany(@things)" 2 +.IX Item "expandany(@things)" +Like expand, but returns objects of the appropriate type, i.e. +CPAN::Bundle objects for bundles, CPAN::Module objects for modules, and +CPAN::Distribution objects for distributions. Note: it does not expand +to CPAN::Author objects. +.IP "Programming Examples" 2 +.IX Item "Programming Examples" +This enables the programmer to do operations that combine +functionalities that are available in the shell. +.Sp +.Vb 2 +\& # install everything that is outdated on my disk: +\& perl \-MCPAN \-e \*(AqCPAN::Shell\->install(CPAN::Shell\->r)\*(Aq +\& +\& # install my favorite programs if necessary: +\& for $mod (qw(Net::FTP Digest::SHA Data::Dumper)) { +\& CPAN::Shell\->install($mod); +\& } +\& +\& # list all modules on my disk that have no VERSION number +\& for $mod (CPAN::Shell\->expand("Module","/./")) { +\& next unless $mod\->inst_file; +\& # MakeMaker convention for undefined $VERSION: +\& next unless $mod\->inst_version eq "undef"; +\& print "No VERSION in ", $mod\->id, "\en"; +\& } +\& +\& # find out which distribution on CPAN contains a module: +\& print CPAN::Shell\->expand("Module","Apache::Constants")\->cpan_file +.Ve +.Sp +Or if you want to schedule a \fIcron\fR job to watch \s-1CPAN,\s0 you could list +all modules that need updating. First a quick and dirty way: +.Sp +.Vb 1 +\& perl \-e \*(Aquse CPAN; CPAN::Shell\->r;\*(Aq +.Ve +.Sp +If you don't want any output should all modules be +up to date, parse the output of above command for the regular +expression \f(CW\*(C`/modules are up to date/\*(C'\fR and decide to mail the output +only if it doesn't match. +.Sp +If you prefer to do it more in a programmerish style in one single +process, something like this may better suit you: +.Sp +.Vb 7 +\& # list all modules on my disk that have newer versions on CPAN +\& for $mod (CPAN::Shell\->expand("Module","/./")) { +\& next unless $mod\->inst_file; +\& next if $mod\->uptodate; +\& printf "Module %s is installed as %s, could be updated to %s from CPAN\en", +\& $mod\->id, $mod\->inst_version, $mod\->cpan_version; +\& } +.Ve +.Sp +If that gives too much output every day, you may want to +watch only for three modules. You can write +.Sp +.Vb 1 +\& for $mod (CPAN::Shell\->expand("Module","/Apache|LWP|CGI/")) { +.Ve +.Sp +as the first line instead. Or you can combine some of the above +tricks: +.Sp +.Vb 5 +\& # watch only for a new mod_perl module +\& $mod = CPAN::Shell\->expand("Module","mod_perl"); +\& exit if $mod\->uptodate; +\& # new mod_perl arrived, let me know all update recommendations +\& CPAN::Shell\->r; +.Ve +.SS "Methods in the other Classes" +.IX Subsection "Methods in the other Classes" +.IP "\fBCPAN::Author::as_glimpse()\fR" 4 +.IX Item "CPAN::Author::as_glimpse()" +Returns a one-line description of the author +.IP "\fBCPAN::Author::as_string()\fR" 4 +.IX Item "CPAN::Author::as_string()" +Returns a multi-line description of the author +.IP "\fBCPAN::Author::email()\fR" 4 +.IX Item "CPAN::Author::email()" +Returns the author's email address +.IP "\fBCPAN::Author::fullname()\fR" 4 +.IX Item "CPAN::Author::fullname()" +Returns the author's name +.IP "\fBCPAN::Author::name()\fR" 4 +.IX Item "CPAN::Author::name()" +An alias for fullname +.IP "\fBCPAN::Bundle::as_glimpse()\fR" 4 +.IX Item "CPAN::Bundle::as_glimpse()" +Returns a one-line description of the bundle +.IP "\fBCPAN::Bundle::as_string()\fR" 4 +.IX Item "CPAN::Bundle::as_string()" +Returns a multi-line description of the bundle +.IP "\fBCPAN::Bundle::clean()\fR" 4 +.IX Item "CPAN::Bundle::clean()" +Recursively runs the \f(CW\*(C`clean\*(C'\fR method on all items contained in the bundle. +.IP "\fBCPAN::Bundle::contains()\fR" 4 +.IX Item "CPAN::Bundle::contains()" +Returns a list of objects' IDs contained in a bundle. The associated +objects may be bundles, modules or distributions. +.IP "CPAN::Bundle::force($method,@args)" 4 +.IX Item "CPAN::Bundle::force($method,@args)" +Forces \s-1CPAN\s0 to perform a task that it normally would have refused to +do. Force takes as arguments a method name to be called and any number +of additional arguments that should be passed to the called method. +The internals of the object get the needed changes so that \s-1CPAN\s0.pm +does not refuse to take the action. The \f(CW\*(C`force\*(C'\fR is passed recursively +to all contained objects. See also the section above on the \f(CW\*(C`force\*(C'\fR +and the \f(CW\*(C`fforce\*(C'\fR pragma. +.IP "\fBCPAN::Bundle::get()\fR" 4 +.IX Item "CPAN::Bundle::get()" +Recursively runs the \f(CW\*(C`get\*(C'\fR method on all items contained in the bundle +.IP "\fBCPAN::Bundle::inst_file()\fR" 4 +.IX Item "CPAN::Bundle::inst_file()" +Returns the highest installed version of the bundle in either \f(CW@INC\fR or +\&\f(CW\*(C`$CPAN::Config\->{cpan_home}\*(C'\fR. Note that this is different from +CPAN::Module::inst_file. +.IP "\fBCPAN::Bundle::inst_version()\fR" 4 +.IX Item "CPAN::Bundle::inst_version()" +Like CPAN::Bundle::inst_file, but returns the \f(CW$VERSION\fR +.IP "\fBCPAN::Bundle::uptodate()\fR" 4 +.IX Item "CPAN::Bundle::uptodate()" +Returns 1 if the bundle itself and all its members are up-to-date. +.IP "\fBCPAN::Bundle::install()\fR" 4 +.IX Item "CPAN::Bundle::install()" +Recursively runs the \f(CW\*(C`install\*(C'\fR method on all items contained in the bundle +.IP "\fBCPAN::Bundle::make()\fR" 4 +.IX Item "CPAN::Bundle::make()" +Recursively runs the \f(CW\*(C`make\*(C'\fR method on all items contained in the bundle +.IP "\fBCPAN::Bundle::readme()\fR" 4 +.IX Item "CPAN::Bundle::readme()" +Recursively runs the \f(CW\*(C`readme\*(C'\fR method on all items contained in the bundle +.IP "\fBCPAN::Bundle::test()\fR" 4 +.IX Item "CPAN::Bundle::test()" +Recursively runs the \f(CW\*(C`test\*(C'\fR method on all items contained in the bundle +.IP "\fBCPAN::Distribution::as_glimpse()\fR" 4 +.IX Item "CPAN::Distribution::as_glimpse()" +Returns a one-line description of the distribution +.IP "\fBCPAN::Distribution::as_string()\fR" 4 +.IX Item "CPAN::Distribution::as_string()" +Returns a multi-line description of the distribution +.IP "CPAN::Distribution::author" 4 +.IX Item "CPAN::Distribution::author" +Returns the CPAN::Author object of the maintainer who uploaded this +distribution +.IP "\fBCPAN::Distribution::pretty_id()\fR" 4 +.IX Item "CPAN::Distribution::pretty_id()" +Returns a string of the form \*(L"\s-1AUTHORID/TARBALL\*(R",\s0 where \s-1AUTHORID\s0 is the +author's \s-1PAUSE ID\s0 and \s-1TARBALL\s0 is the distribution filename. +.IP "\fBCPAN::Distribution::base_id()\fR" 4 +.IX Item "CPAN::Distribution::base_id()" +Returns the distribution filename without any archive suffix. E.g +\&\*(L"Foo\-Bar\-0.01\*(R" +.IP "\fBCPAN::Distribution::clean()\fR" 4 +.IX Item "CPAN::Distribution::clean()" +Changes to the directory where the distribution has been unpacked and +runs \f(CW\*(C`make clean\*(C'\fR there. +.IP "\fBCPAN::Distribution::containsmods()\fR" 4 +.IX Item "CPAN::Distribution::containsmods()" +Returns a list of IDs of modules contained in a distribution file. +Works only for distributions listed in the 02packages.details.txt.gz +file. This typically means that just most recent version of a +distribution is covered. +.IP "\fBCPAN::Distribution::cvs_import()\fR" 4 +.IX Item "CPAN::Distribution::cvs_import()" +Changes to the directory where the distribution has been unpacked and +runs something like +.Sp +.Vb 1 +\& cvs \-d $cvs_root import \-m $cvs_log $cvs_dir $userid v$version +.Ve +.Sp +there. +.IP "\fBCPAN::Distribution::dir()\fR" 4 +.IX Item "CPAN::Distribution::dir()" +Returns the directory into which this distribution has been unpacked. +.IP "CPAN::Distribution::force($method,@args)" 4 +.IX Item "CPAN::Distribution::force($method,@args)" +Forces \s-1CPAN\s0 to perform a task that it normally would have refused to +do. Force takes as arguments a method name to be called and any number +of additional arguments that should be passed to the called method. +The internals of the object get the needed changes so that \s-1CPAN\s0.pm +does not refuse to take the action. See also the section above on the +\&\f(CW\*(C`force\*(C'\fR and the \f(CW\*(C`fforce\*(C'\fR pragma. +.IP "\fBCPAN::Distribution::get()\fR" 4 +.IX Item "CPAN::Distribution::get()" +Downloads the distribution from \s-1CPAN\s0 and unpacks it. Does nothing if +the distribution has already been downloaded and unpacked within the +current session. +.IP "\fBCPAN::Distribution::install()\fR" 4 +.IX Item "CPAN::Distribution::install()" +Changes to the directory where the distribution has been unpacked and +runs the external command \f(CW\*(C`make install\*(C'\fR there. If \f(CW\*(C`make\*(C'\fR has not +yet been run, it will be run first. A \f(CW\*(C`make test\*(C'\fR is issued in +any case and if this fails, the install is cancelled. The +cancellation can be avoided by letting \f(CW\*(C`force\*(C'\fR run the \f(CW\*(C`install\*(C'\fR for +you. +.Sp +This install method only has the power to install the distribution if +there are no dependencies in the way. To install an object along with all +its dependencies, use CPAN::Shell\->install. +.Sp +Note that \fBinstall()\fR gives no meaningful return value. See \fBuptodate()\fR. +.IP "\fBCPAN::Distribution::isa_perl()\fR" 4 +.IX Item "CPAN::Distribution::isa_perl()" +Returns 1 if this distribution file seems to be a perl distribution. +Normally this is derived from the file name only, but the index from +\&\s-1CPAN\s0 can contain a hint to achieve a return value of true for other +filenames too. +.IP "\fBCPAN::Distribution::look()\fR" 4 +.IX Item "CPAN::Distribution::look()" +Changes to the directory where the distribution has been unpacked and +opens a subshell there. Exiting the subshell returns. +.IP "\fBCPAN::Distribution::make()\fR" 4 +.IX Item "CPAN::Distribution::make()" +First runs the \f(CW\*(C`get\*(C'\fR method to make sure the distribution is +downloaded and unpacked. Changes to the directory where the +distribution has been unpacked and runs the external commands \f(CW\*(C`perl +Makefile.PL\*(C'\fR or \f(CW\*(C`perl Build.PL\*(C'\fR and \f(CW\*(C`make\*(C'\fR there. +.IP "\fBCPAN::Distribution::perldoc()\fR" 4 +.IX Item "CPAN::Distribution::perldoc()" +Downloads the pod documentation of the file associated with a +distribution (in \s-1HTML\s0 format) and runs it through the external +command \fIlynx\fR specified in \f(CW\*(C`$CPAN::Config\->{lynx}\*(C'\fR. If \fIlynx\fR +isn't available, it converts it to plain text with the external +command \fIhtml2text\fR and runs it through the pager specified +in \f(CW\*(C`$CPAN::Config\->{pager}\*(C'\fR. +.IP "\fBCPAN::Distribution::prefs()\fR" 4 +.IX Item "CPAN::Distribution::prefs()" +Returns the hash reference from the first matching \s-1YAML\s0 file that the +user has deposited in the \f(CW\*(C`prefs_dir/\*(C'\fR directory. The first +succeeding match wins. The files in the \f(CW\*(C`prefs_dir/\*(C'\fR are processed +alphabetically, and the canonical distro name (e.g. +AUTHOR/Foo\-Bar\-3.14.tar.gz) is matched against the regular expressions +stored in the \f(CW$root\fR\->{match}{distribution} attribute value. +Additionally all module names contained in a distribution are matched +against the regular expressions in the \f(CW$root\fR\->{match}{module} attribute +value. The two match values are ANDed together. Each of the two +attributes are optional. +.IP "\fBCPAN::Distribution::prereq_pm()\fR" 4 +.IX Item "CPAN::Distribution::prereq_pm()" +Returns the hash reference that has been announced by a distribution +as the \f(CW\*(C`requires\*(C'\fR and \f(CW\*(C`build_requires\*(C'\fR elements. These can be +declared either by the \f(CW\*(C`META.yml\*(C'\fR (if authoritative) or can be +deposited after the run of \f(CW\*(C`Build.PL\*(C'\fR in the file \f(CW\*(C`./_build/prereqs\*(C'\fR +or after the run of \f(CW\*(C`Makfile.PL\*(C'\fR written as the \f(CW\*(C`PREREQ_PM\*(C'\fR hash in +a comment in the produced \f(CW\*(C`Makefile\*(C'\fR. \fINote\fR: this method only works +after an attempt has been made to \f(CW\*(C`make\*(C'\fR the distribution. Returns +undef otherwise. +.IP "\fBCPAN::Distribution::readme()\fR" 4 +.IX Item "CPAN::Distribution::readme()" +Downloads the \s-1README\s0 file associated with a distribution and runs it +through the pager specified in \f(CW\*(C`$CPAN::Config\->{pager}\*(C'\fR. +.IP "\fBCPAN::Distribution::reports()\fR" 4 +.IX Item "CPAN::Distribution::reports()" +Downloads report data for this distribution from www.cpantesters.org +and displays a subset of them. +.IP "\fBCPAN::Distribution::read_yaml()\fR" 4 +.IX Item "CPAN::Distribution::read_yaml()" +Returns the content of the \s-1META\s0.yml of this distro as a hashref. Note: +works only after an attempt has been made to \f(CW\*(C`make\*(C'\fR the distribution. +Returns undef otherwise. Also returns undef if the content of \s-1META\s0.yml +is not authoritative. (The rules about what exactly makes the content +authoritative are still in flux.) +.IP "\fBCPAN::Distribution::test()\fR" 4 +.IX Item "CPAN::Distribution::test()" +Changes to the directory where the distribution has been unpacked and +runs \f(CW\*(C`make test\*(C'\fR there. +.IP "\fBCPAN::Distribution::uptodate()\fR" 4 +.IX Item "CPAN::Distribution::uptodate()" +Returns 1 if all the modules contained in the distribution are +up-to-date. Relies on containsmods. +.IP "\fBCPAN::Index::force_reload()\fR" 4 +.IX Item "CPAN::Index::force_reload()" +Forces a reload of all indices. +.IP "\fBCPAN::Index::reload()\fR" 4 +.IX Item "CPAN::Index::reload()" +Reloads all indices if they have not been read for more than +\&\f(CW\*(C`$CPAN::Config\->{index_expire}\*(C'\fR days. +.IP "\fBCPAN::InfoObj::dump()\fR" 4 +.IX Item "CPAN::InfoObj::dump()" +CPAN::Author, CPAN::Bundle, CPAN::Module, and CPAN::Distribution +inherit this method. It prints the data structure associated with an +object. Useful for debugging. Note: the data structure is considered +internal and thus subject to change without notice. +.IP "\fBCPAN::Module::as_glimpse()\fR" 4 +.IX Item "CPAN::Module::as_glimpse()" +Returns a one-line description of the module in four columns: The +first column contains the word \f(CW\*(C`Module\*(C'\fR, the second column consists +of one character: an equals sign if this module is already installed +and up-to-date, a less-than sign if this module is installed but can be +upgraded, and a space if the module is not installed. The third column +is the name of the module and the fourth column gives maintainer or +distribution information. +.IP "\fBCPAN::Module::as_string()\fR" 4 +.IX Item "CPAN::Module::as_string()" +Returns a multi-line description of the module +.IP "\fBCPAN::Module::clean()\fR" 4 +.IX Item "CPAN::Module::clean()" +Runs a clean on the distribution associated with this module. +.IP "\fBCPAN::Module::cpan_file()\fR" 4 +.IX Item "CPAN::Module::cpan_file()" +Returns the filename on \s-1CPAN\s0 that is associated with the module. +.IP "\fBCPAN::Module::cpan_version()\fR" 4 +.IX Item "CPAN::Module::cpan_version()" +Returns the latest version of this module available on \s-1CPAN.\s0 +.IP "\fBCPAN::Module::cvs_import()\fR" 4 +.IX Item "CPAN::Module::cvs_import()" +Runs a cvs_import on the distribution associated with this module. +.IP "\fBCPAN::Module::description()\fR" 4 +.IX Item "CPAN::Module::description()" +Returns a 44 character description of this module. Only available for +modules listed in The Module List (CPAN/modules/00modlist.long.html +or 00modlist.long.txt.gz) +.IP "\fBCPAN::Module::distribution()\fR" 4 +.IX Item "CPAN::Module::distribution()" +Returns the CPAN::Distribution object that contains the current +version of this module. +.IP "\fBCPAN::Module::dslip_status()\fR" 4 +.IX Item "CPAN::Module::dslip_status()" +Returns a hash reference. The keys of the hash are the letters \f(CW\*(C`D\*(C'\fR, +\&\f(CW\*(C`S\*(C'\fR, \f(CW\*(C`L\*(C'\fR, \f(CW\*(C`I\*(C'\fR, and

, for development status, support level, +language, interface and public licence respectively. The data for the +\&\s-1DSLIP\s0 status are collected by pause.perl.org when authors register +their namespaces. The values of the 5 hash elements are one-character +words whose meaning is described in the table below. There are also 5 +hash elements \f(CW\*(C`DV\*(C'\fR, \f(CW\*(C`SV\*(C'\fR, \f(CW\*(C`LV\*(C'\fR, \f(CW\*(C`IV\*(C'\fR, and <\s-1PV\s0> that carry a more +verbose value of the 5 status variables. +.Sp +Where the '\s-1DSLIP\s0' characters have the following meanings: +.Sp +.Vb 7 +\& D \- Development Stage (Note: *NO IMPLIED TIMESCALES*): +\& i \- Idea, listed to gain consensus or as a placeholder +\& c \- under construction but pre\-alpha (not yet released) +\& a/b \- Alpha/Beta testing +\& R \- Released +\& M \- Mature (no rigorous definition) +\& S \- Standard, supplied with Perl 5 +\& +\& S \- Support Level: +\& m \- Mailing\-list +\& d \- Developer +\& u \- Usenet newsgroup comp.lang.perl.modules +\& n \- None known, try comp.lang.perl.modules +\& a \- abandoned; volunteers welcome to take over maintenance +\& +\& L \- Language Used: +\& p \- Perl\-only, no compiler needed, should be platform independent +\& c \- C and perl, a C compiler will be needed +\& h \- Hybrid, written in perl with optional C code, no compiler needed +\& + \- C++ and perl, a C++ compiler will be needed +\& o \- perl and another language other than C or C++ +\& +\& I \- Interface Style +\& f \- plain Functions, no references used +\& h \- hybrid, object and function interfaces available +\& n \- no interface at all (huh?) +\& r \- some use of unblessed References or ties +\& O \- Object oriented using blessed references and/or inheritance +\& +\& P \- Public License +\& p \- Standard\-Perl: user may choose between GPL and Artistic +\& g \- GPL: GNU General Public License +\& l \- LGPL: "GNU Lesser General Public License" (previously known as +\& "GNU Library General Public License") +\& b \- BSD: The BSD License +\& a \- Artistic license alone +\& 2 \- Artistic license 2.0 or later +\& o \- open source: approved by www.opensource.org +\& d \- allows distribution without restrictions +\& r \- restricted distribution +\& n \- no license at all +.Ve +.IP "CPAN::Module::force($method,@args)" 4 +.IX Item "CPAN::Module::force($method,@args)" +Forces \s-1CPAN\s0 to perform a task it would normally refuse to +do. Force takes as arguments a method name to be invoked and any number +of additional arguments to pass that method. +The internals of the object get the needed changes so that \s-1CPAN\s0.pm +does not refuse to take the action. See also the section above on the +\&\f(CW\*(C`force\*(C'\fR and the \f(CW\*(C`fforce\*(C'\fR pragma. +.IP "\fBCPAN::Module::get()\fR" 4 +.IX Item "CPAN::Module::get()" +Runs a get on the distribution associated with this module. +.IP "\fBCPAN::Module::inst_file()\fR" 4 +.IX Item "CPAN::Module::inst_file()" +Returns the filename of the module found in \f(CW@INC\fR. The first file found +is reported, just as perl itself stops searching \f(CW@INC\fR once it finds a +module. +.IP "\fBCPAN::Module::available_file()\fR" 4 +.IX Item "CPAN::Module::available_file()" +Returns the filename of the module found in \s-1PERL5LIB\s0 or \f(CW@INC\fR. The +first file found is reported. The advantage of this method over +\&\f(CW\*(C`inst_file\*(C'\fR is that modules that have been tested but not yet +installed are included because \s-1PERL5LIB\s0 keeps track of tested modules. +.IP "\fBCPAN::Module::inst_version()\fR" 4 +.IX Item "CPAN::Module::inst_version()" +Returns the version number of the installed module in readable format. +.IP "\fBCPAN::Module::available_version()\fR" 4 +.IX Item "CPAN::Module::available_version()" +Returns the version number of the available module in readable format. +.IP "\fBCPAN::Module::install()\fR" 4 +.IX Item "CPAN::Module::install()" +Runs an \f(CW\*(C`install\*(C'\fR on the distribution associated with this module. +.IP "\fBCPAN::Module::look()\fR" 4 +.IX Item "CPAN::Module::look()" +Changes to the directory where the distribution associated with this +module has been unpacked and opens a subshell there. Exiting the +subshell returns. +.IP "\fBCPAN::Module::make()\fR" 4 +.IX Item "CPAN::Module::make()" +Runs a \f(CW\*(C`make\*(C'\fR on the distribution associated with this module. +.IP "\fBCPAN::Module::manpage_headline()\fR" 4 +.IX Item "CPAN::Module::manpage_headline()" +If module is installed, peeks into the module's manpage, reads the +headline, and returns it. Moreover, if the module has been downloaded +within this session, does the equivalent on the downloaded module even +if it hasn't been installed yet. +.IP "\fBCPAN::Module::perldoc()\fR" 4 +.IX Item "CPAN::Module::perldoc()" +Runs a \f(CW\*(C`perldoc\*(C'\fR on this module. +.IP "\fBCPAN::Module::readme()\fR" 4 +.IX Item "CPAN::Module::readme()" +Runs a \f(CW\*(C`readme\*(C'\fR on the distribution associated with this module. +.IP "\fBCPAN::Module::reports()\fR" 4 +.IX Item "CPAN::Module::reports()" +Calls the \fBreports()\fR method on the associated distribution object. +.IP "\fBCPAN::Module::test()\fR" 4 +.IX Item "CPAN::Module::test()" +Runs a \f(CW\*(C`test\*(C'\fR on the distribution associated with this module. +.IP "\fBCPAN::Module::uptodate()\fR" 4 +.IX Item "CPAN::Module::uptodate()" +Returns 1 if the module is installed and up-to-date. +.IP "\fBCPAN::Module::userid()\fR" 4 +.IX Item "CPAN::Module::userid()" +Returns the author's \s-1ID\s0 of the module. +.SS "Cache Manager" +.IX Subsection "Cache Manager" +Currently the cache manager only keeps track of the build directory +($CPAN::Config\->{build_dir}). It is a simple \s-1FIFO\s0 mechanism that +deletes complete directories below \f(CW\*(C`build_dir\*(C'\fR as soon as the size of +all directories there gets bigger than \f(CW$CPAN::Config\fR\->{build_cache} +(in \s-1MB\s0). The contents of this cache may be used for later +re-installations that you intend to do manually, but will never be +trusted by \s-1CPAN\s0 itself. This is due to the fact that the user might +use these directories for building modules on different architectures. +.PP +There is another directory ($CPAN::Config\->{keep_source_where}) where +the original distribution files are kept. This directory is not +covered by the cache manager and must be controlled by the user. If +you choose to have the same directory as build_dir and as +keep_source_where directory, then your sources will be deleted with +the same fifo mechanism. +.SS "Bundles" +.IX Subsection "Bundles" +A bundle is just a perl module in the namespace Bundle:: that does not +define any functions or methods. It usually only contains documentation. +.PP +It starts like a perl module with a package declaration and a \f(CW$VERSION\fR +variable. After that the pod section looks like any other pod with the +only difference being that \fIone special pod section\fR exists starting with +(verbatim): +.PP +.Vb 1 +\& =head1 CONTENTS +.Ve +.PP +In this pod section each line obeys the format +.PP +.Vb 1 +\& Module_Name [Version_String] [\- optional text] +.Ve +.PP +The only required part is the first field, the name of a module +(e.g. Foo::Bar, i.e. \fInot\fR the name of the distribution file). The rest +of the line is optional. The comment part is delimited by a dash just +as in the man page header. +.PP +The distribution of a bundle should follow the same convention as +other distributions. +.PP +Bundles are treated specially in the \s-1CPAN\s0 package. If you say 'install +Bundle::Tkkit' (assuming such a bundle exists), \s-1CPAN\s0 will install all +the modules in the \s-1CONTENTS\s0 section of the pod. You can install your +own Bundles locally by placing a conformant Bundle file somewhere into +your \f(CW@INC\fR path. The \fBautobundle()\fR command which is available in the +shell interface does that for you by including all currently installed +modules in a snapshot bundle file. +.SH "PREREQUISITES" +.IX Header "PREREQUISITES" +The \s-1CPAN\s0 program is trying to depend on as little as possible so the +user can use it in hostile environment. It works better the more goodies +the environment provides. For example if you try in the \s-1CPAN\s0 shell +.PP +.Vb 1 +\& install Bundle::CPAN +.Ve +.PP +or +.PP +.Vb 1 +\& install Bundle::CPANxxl +.Ve +.PP +you will find the shell more convenient than the bare shell before. +.PP +If you have a local mirror of \s-1CPAN\s0 and can access all files with +\&\*(L"file:\*(R" URLs, then you only need a perl later than perl5.003 to run +this module. Otherwise Net::FTP is strongly recommended. \s-1LWP\s0 may be +required for non-UNIX systems, or if your nearest \s-1CPAN\s0 site is +associated with a \s-1URL\s0 that is not \f(CW\*(C`ftp:\*(C'\fR. +.PP +If you have neither Net::FTP nor \s-1LWP,\s0 there is a fallback mechanism +implemented for an external ftp command or for an external lynx +command. +.SH "UTILITIES" +.IX Header "UTILITIES" +.SS "Finding packages and \s-1VERSION\s0" +.IX Subsection "Finding packages and VERSION" +This module presumes that all packages on \s-1CPAN\s0 +.IP "\(bu" 2 +declare their \f(CW$VERSION\fR variable in an easy to parse manner. This +prerequisite can hardly be relaxed because it consumes far too much +memory to load all packages into the running program just to determine +the \f(CW$VERSION\fR variable. Currently all programs that are dealing with +version use something like this +.Sp +.Vb 2 +\& perl \-MExtUtils::MakeMaker \-le \e +\& \*(Aqprint MM\->parse_version(shift)\*(Aq filename +.Ve +.Sp +If you are author of a package and wonder if your \f(CW$VERSION\fR can be +parsed, please try the above method. +.IP "\(bu" 2 +come as compressed or gzipped tarfiles or as zip files and contain a +\&\f(CW\*(C`Makefile.PL\*(C'\fR or \f(CW\*(C`Build.PL\*(C'\fR (well, we try to handle a bit more, but +with little enthusiasm). +.SS "Debugging" +.IX Subsection "Debugging" +Debugging this module is more than a bit complex due to interference from +the software producing the indices on \s-1CPAN,\s0 the mirroring process on \s-1CPAN,\s0 +packaging, configuration, synchronicity, and even (gasp!) due to bugs +within the \s-1CPAN\s0.pm module itself. +.PP +For debugging the code of \s-1CPAN\s0.pm itself in interactive mode, some +debugging aid can be turned on for most packages within +\&\s-1CPAN\s0.pm with one of +.IP "o debug package..." 2 +.IX Item "o debug package..." +sets debug mode for packages. +.IP "o debug \-package..." 2 +.IX Item "o debug -package..." +unsets debug mode for packages. +.IP "o debug all" 2 +.IX Item "o debug all" +turns debugging on for all packages. +.IP "o debug number" 2 +.IX Item "o debug number" +.PP +which sets the debugging packages directly. Note that \f(CW\*(C`o debug 0\*(C'\fR +turns debugging off. +.PP +What seems a successful strategy is the combination of \f(CW\*(C`reload +cpan\*(C'\fR and the debugging switches. Add a new debug statement while +running in the shell and then issue a \f(CW\*(C`reload cpan\*(C'\fR and see the new +debugging messages immediately without losing the current context. +.PP +\&\f(CW\*(C`o debug\*(C'\fR without an argument lists the valid package names and the +current set of packages in debugging mode. \f(CW\*(C`o debug\*(C'\fR has built-in +completion support. +.PP +For debugging of \s-1CPAN\s0 data there is the \f(CW\*(C`dump\*(C'\fR command which takes +the same arguments as make/test/install and outputs each object's +Data::Dumper dump. If an argument looks like a perl variable and +contains one of \f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR, it is \fBeval()\fRed and fed to +Data::Dumper directly. +.SS "Floppy, Zip, Offline Mode" +.IX Subsection "Floppy, Zip, Offline Mode" +\&\s-1CPAN\s0.pm works nicely without network access, too. If you maintain machines +that are not networked at all, you should consider working with \f(CW\*(C`file:\*(C'\fR +URLs. You'll have to collect your modules somewhere first. So +you might use \s-1CPAN\s0.pm to put together all you need on a networked +machine. Then copy the \f(CW$CPAN::Config\fR\->{keep_source_where} (but not +\&\f(CW$CPAN::Config\fR\->{build_dir}) directory on a floppy. This floppy is kind +of a personal \s-1CPAN. CPAN\s0.pm on the non-networked machines works nicely +with this floppy. See also below the paragraph about CD-ROM support. +.SS "Basic Utilities for Programmers" +.IX Subsection "Basic Utilities for Programmers" +.IP "has_inst($module)" 2 +.IX Item "has_inst($module)" +Returns true if the module is installed. Used to load all modules into +the running \s-1CPAN\s0.pm that are considered optional. The config variable +\&\f(CW\*(C`dontload_list\*(C'\fR intercepts the \f(CW\*(C`has_inst()\*(C'\fR call such +that an optional module is not loaded despite being available. For +example, the following command will prevent \f(CW\*(C`YAML.pm\*(C'\fR from being +loaded: +.Sp +.Vb 1 +\& cpan> o conf dontload_list push YAML +.Ve +.Sp +See the source for details. +.IP "use_inst($module)" 2 +.IX Item "use_inst($module)" +Similary to \fBhas_inst()\fR tries to load optional library but also dies if +library is not available +.IP "has_usable($module)" 2 +.IX Item "has_usable($module)" +Returns true if the module is installed and in a usable state. Only +useful for a handful of modules that are used internally. See the +source for details. +.IP "instance($module)" 2 +.IX Item "instance($module)" +The constructor for all the singletons used to represent modules, +distributions, authors, and bundles. If the object already exists, this +method returns the object; otherwise, it calls the constructor. +.IP "\fBfrontend()\fR" 2 +.IX Item "frontend()" +.PD 0 +.IP "frontend($new_frontend)" 2 +.IX Item "frontend($new_frontend)" +.PD +Getter/setter for frontend object. Method just allows to subclass \s-1CPAN\s0.pm. +.SH "SECURITY" +.IX Header "SECURITY" +There's no strong security layer in \s-1CPAN\s0.pm. \s-1CPAN\s0.pm helps you to +install foreign, unmasked, unsigned code on your machine. We compare +to a checksum that comes from the net just as the distribution file +itself. But we try to make it easy to add security on demand: +.SS "Cryptographically signed modules" +.IX Subsection "Cryptographically signed modules" +Since release 1.77, \s-1CPAN\s0.pm has been able to verify cryptographically +signed module distributions using Module::Signature. The \s-1CPAN\s0 modules +can be signed by their authors, thus giving more security. The simple +unsigned \s-1MD5\s0 checksums that were used before by \s-1CPAN\s0 protect mainly +against accidental file corruption. +.PP +You will need to have Module::Signature installed, which in turn +requires that you have at least one of Crypt::OpenPGP module or the +command-line \fIgpg\fR tool installed. +.PP +You will also need to be able to connect over the Internet to the public +key servers, like pgp.mit.edu, and their port 11731 (the \s-1HKP\s0 protocol). +.PP +The configuration parameter check_sigs is there to turn signature +checking on or off. +.SH "EXPORT" +.IX Header "EXPORT" +Most functions in package \s-1CPAN\s0 are exported by default. The reason +for this is that the primary use is intended for the cpan shell or for +one-liners. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +When the \s-1CPAN\s0 shell enters a subshell via the look command, it sets +the environment \s-1CPAN_SHELL_LEVEL\s0 to 1, or increments that variable if it is +already set. +.PP +When \s-1CPAN\s0 runs, it sets the environment variable \s-1PERL5_CPAN_IS_RUNNING\s0 +to the \s-1ID\s0 of the running process. It also sets +\&\s-1PERL5_CPANPLUS_IS_RUNNING\s0 to prevent runaway processes which could +happen with older versions of Module::Install. +.PP +When running \f(CW\*(C`perl Makefile.PL\*(C'\fR, the environment variable +\&\f(CW\*(C`PERL5_CPAN_IS_EXECUTING\*(C'\fR is set to the full path of the +\&\f(CW\*(C`Makefile.PL\*(C'\fR that is being executed. This prevents runaway processes +with newer versions of Module::Install. +.PP +When the config variable ftp_passive is set, all downloads will be run +with the environment variable \s-1FTP_PASSIVE\s0 set to this value. This is +in general a good idea as it influences both Net::FTP and \s-1LWP\s0 based +connections. The same effect can be achieved by starting the cpan +shell with this environment variable set. For Net::FTP alone, one can +also always set passive mode by running libnetcfg. +.SH "POPULATE AN INSTALLATION WITH LOTS OF MODULES" +.IX Header "POPULATE AN INSTALLATION WITH LOTS OF MODULES" +Populating a freshly installed perl with one's favorite modules is pretty +easy if you maintain a private bundle definition file. To get a useful +blueprint of a bundle definition file, the command autobundle can be used +on the \s-1CPAN\s0 shell command line. This command writes a bundle definition +file for all modules installed for the current perl +interpreter. It's recommended to run this command once only, and from then +on maintain the file manually under a private name, say +Bundle/my_bundle.pm. With a clever bundle file you can then simply say +.PP +.Vb 1 +\& cpan> install Bundle::my_bundle +.Ve +.PP +then answer a few questions and go out for coffee (possibly +even in a different city). +.PP +Maintaining a bundle definition file means keeping track of two +things: dependencies and interactivity. \s-1CPAN\s0.pm sometimes fails on +calculating dependencies because not all modules define all MakeMaker +attributes correctly, so a bundle definition file should specify +prerequisites as early as possible. On the other hand, it's +annoying that so many distributions need some interactive configuring. So +what you can try to accomplish in your private bundle file is to have the +packages that need to be configured early in the file and the gentle +ones later, so you can go out for coffee after a few minutes and leave \s-1CPAN\s0.pm +to churn away unattended. +.SH "WORKING WITH CPAN.pm BEHIND FIREWALLS" +.IX Header "WORKING WITH CPAN.pm BEHIND FIREWALLS" +Thanks to Graham Barr for contributing the following paragraphs about +the interaction between perl, and various firewall configurations. For +further information on firewalls, it is recommended to consult the +documentation that comes with the \fIncftp\fR program. If you are unable to +go through the firewall with a simple Perl setup, it is likely +that you can configure \fIncftp\fR so that it works through your firewall. +.SS "Three basic types of firewalls" +.IX Subsection "Three basic types of firewalls" +Firewalls can be categorized into three basic types. +.IP "http firewall" 4 +.IX Item "http firewall" +This is when the firewall machine runs a web server, and to access the +outside world, you must do so via that web server. If you set environment +variables like http_proxy or ftp_proxy to values beginning with http://, +or in your web browser you've proxy information set, then you know +you are running behind an http firewall. +.Sp +To access servers outside these types of firewalls with perl (even for +ftp), you need \s-1LWP\s0 or HTTP::Tiny. +.IP "ftp firewall" 4 +.IX Item "ftp firewall" +This where the firewall machine runs an ftp server. This kind of +firewall will only let you access ftp servers outside the firewall. +This is usually done by connecting to the firewall with ftp, then +entering a username like \*(L"user@outside.host.com\*(R". +.Sp +To access servers outside these type of firewalls with perl, you +need Net::FTP. +.IP "One-way visibility" 4 +.IX Item "One-way visibility" +One-way visibility means these firewalls try to make themselves +invisible to users inside the firewall. An \s-1FTP\s0 data connection is +normally created by sending your \s-1IP\s0 address to the remote server and then +listening for the return connection. But the remote server will not be able to +connect to you because of the firewall. For these types of firewall, +\&\s-1FTP\s0 connections need to be done in a passive mode. +.Sp +There are two that I can think off. +.RS 4 +.IP "\s-1SOCKS\s0" 4 +.IX Item "SOCKS" +If you are using a \s-1SOCKS\s0 firewall, you will need to compile perl and link +it with the \s-1SOCKS\s0 library. This is what is normally called a 'socksified' +perl. With this executable you will be able to connect to servers outside +the firewall as if it were not there. +.IP "\s-1IP\s0 Masquerade" 4 +.IX Item "IP Masquerade" +This is when the firewall implemented in the kernel (via \s-1NAT,\s0 or networking +address translation), it allows you to hide a complete network behind one +\&\s-1IP\s0 address. With this firewall no special compiling is needed as you can +access hosts directly. +.Sp +For accessing ftp servers behind such firewalls you usually need to +set the environment variable \f(CW\*(C`FTP_PASSIVE\*(C'\fR or the config variable +ftp_passive to a true value. +.RE +.RS 4 +.RE +.SS "Configuring lynx or ncftp for going through a firewall" +.IX Subsection "Configuring lynx or ncftp for going through a firewall" +If you can go through your firewall with e.g. lynx, presumably with a +command such as +.PP +.Vb 1 +\& /usr/local/bin/lynx \-pscott:tiger +.Ve +.PP +then you would configure \s-1CPAN\s0.pm with the command +.PP +.Vb 1 +\& o conf lynx "/usr/local/bin/lynx \-pscott:tiger" +.Ve +.PP +That's all. Similarly for ncftp or ftp, you would configure something +like +.PP +.Vb 1 +\& o conf ncftp "/usr/bin/ncftp \-f /home/scott/ncftplogin.cfg" +.Ve +.PP +Your mileage may vary... +.SH "FAQ" +.IX Header "FAQ" +.IP "1)" 4 +.IX Item "1)" +I installed a new version of module X but \s-1CPAN\s0 keeps saying, +I have the old version installed +.Sp +Probably you \fBdo\fR have the old version installed. This can +happen if a module installs itself into a different directory in the +\&\f(CW@INC\fR path than it was previously installed. This is not really a +\&\s-1CPAN\s0.pm problem, you would have the same problem when installing the +module manually. The easiest way to prevent this behaviour is to add +the argument \f(CW\*(C`UNINST=1\*(C'\fR to the \f(CW\*(C`make install\*(C'\fR call, and that is why +many people add this argument permanently by configuring +.Sp +.Vb 1 +\& o conf make_install_arg UNINST=1 +.Ve +.IP "2)" 4 +.IX Item "2)" +So why is UNINST=1 not the default? +.Sp +Because there are people who have their precise expectations about who +may install where in the \f(CW@INC\fR path and who uses which \f(CW@INC\fR array. In +fine tuned environments \f(CW\*(C`UNINST=1\*(C'\fR can cause damage. +.IP "3)" 4 +.IX Item "3)" +I want to clean up my mess, and install a new perl along with +all modules I have. How do I go about it? +.Sp +Run the autobundle command for your old perl and optionally rename the +resulting bundle file (e.g. Bundle/mybundle.pm), install the new perl +with the Configure option prefix, e.g. +.Sp +.Vb 1 +\& ./Configure \-Dprefix=/usr/local/perl\-5.6.78.9 +.Ve +.Sp +Install the bundle file you produced in the first step with something like +.Sp +.Vb 1 +\& cpan> install Bundle::mybundle +.Ve +.Sp +and you're done. +.IP "4)" 4 +.IX Item "4)" +When I install bundles or multiple modules with one command +there is too much output to keep track of. +.Sp +You may want to configure something like +.Sp +.Vb 2 +\& o conf make_arg "| tee \-ai /root/.cpan/logs/make.out" +\& o conf make_install_arg "| tee \-ai /root/.cpan/logs/make_install.out" +.Ve +.Sp +so that \s-1STDOUT\s0 is captured in a file for later inspection. +.IP "5)" 4 +.IX Item "5)" +I am not root, how can I install a module in a personal directory? +.Sp +As of \s-1CPAN 1.9463,\s0 if you do not have permission to write the default perl +library directories, \s-1CPAN\s0's configuration process will ask you whether +you want to bootstrap , which makes keeping a personal +perl library directory easy. +.Sp +Another thing you should bear in mind is that the \s-1UNINST\s0 parameter can +be dangerous when you are installing into a private area because you +might accidentally remove modules that other people depend on that are +not using the private area. +.IP "6)" 4 +.IX Item "6)" +How to get a package, unwrap it, and make a change before building it? +.Sp +Have a look at the \f(CW\*(C`look\*(C'\fR (!) command. +.IP "7)" 4 +.IX Item "7)" +I installed a Bundle and had a couple of fails. When I +retried, everything resolved nicely. Can this be fixed to work +on first try? +.Sp +The reason for this is that \s-1CPAN\s0 does not know the dependencies of all +modules when it starts out. To decide about the additional items to +install, it just uses data found in the \s-1META\s0.yml file or the generated +Makefile. An undetected missing piece breaks the process. But it may +well be that your Bundle installs some prerequisite later than some +depending item and thus your second try is able to resolve everything. +Please note, \s-1CPAN\s0.pm does not know the dependency tree in advance and +cannot sort the queue of things to install in a topologically correct +order. It resolves perfectly well \fBif\fR all modules declare the +prerequisites correctly with the \s-1PREREQ_PM\s0 attribute to MakeMaker or +the \f(CW\*(C`requires\*(C'\fR stanza of Module::Build. For bundles which fail and +you need to install often, it is recommended to sort the Bundle +definition file manually. +.IP "8)" 4 +.IX Item "8)" +In our intranet, we have many modules for internal use. How +can I integrate these modules with \s-1CPAN\s0.pm but without uploading +the modules to \s-1CPAN\s0? +.Sp +Have a look at the CPAN::Site module. +.IP "9)" 4 +.IX Item "9)" +When I run \s-1CPAN\s0's shell, I get an error message about things in my +\&\f(CW\*(C`/etc/inputrc\*(C'\fR (or \f(CW\*(C`~/.inputrc\*(C'\fR) file. +.Sp +These are readline issues and can only be fixed by studying readline +configuration on your architecture and adjusting the referenced file +accordingly. Please make a backup of the \f(CW\*(C`/etc/inputrc\*(C'\fR or \f(CW\*(C`~/.inputrc\*(C'\fR +and edit them. Quite often harmless changes like uppercasing or +lowercasing some arguments solves the problem. +.IP "10)" 4 +.IX Item "10)" +Some authors have strange characters in their names. +.Sp +Internally \s-1CPAN\s0.pm uses the \s-1UTF\-8\s0 charset. If your terminal is +expecting \s-1ISO\-8859\-1\s0 charset, a converter can be activated by setting +term_is_latin to a true value in your config file. One way of doing so +would be +.Sp +.Vb 1 +\& cpan> o conf term_is_latin 1 +.Ve +.Sp +If other charset support is needed, please file a bug report against +\&\s-1CPAN\s0.pm at rt.cpan.org and describe your needs. Maybe we can extend +the support or maybe \s-1UTF\-8\s0 terminals become widely available. +.Sp +Note: this config variable is deprecated and will be removed in a +future version of \s-1CPAN\s0.pm. It will be replaced with the conventions +around the family of \f(CW$LANG\fR and \f(CW$LC_\fR* environment variables. +.IP "11)" 4 +.IX Item "11)" +When an install fails for some reason and then I correct the error +condition and retry, \s-1CPAN\s0.pm refuses to install the module, saying +\&\f(CW\*(C`Already tried without success\*(C'\fR. +.Sp +Use the force pragma like so +.Sp +.Vb 1 +\& force install Foo::Bar +.Ve +.Sp +Or you can use +.Sp +.Vb 1 +\& look Foo::Bar +.Ve +.Sp +and then \f(CW\*(C`make install\*(C'\fR directly in the subshell. +.IP "12)" 4 +.IX Item "12)" +How do I install a \*(L"\s-1DEVELOPER RELEASE\*(R"\s0 of a module? +.Sp +By default, \s-1CPAN\s0 will install the latest non-developer release of a +module. If you want to install a dev release, you have to specify the +partial path starting with the author id to the tarball you wish to +install, like so: +.Sp +.Vb 1 +\& cpan> install KWILLIAMS/Module\-Build\-0.27_07.tar.gz +.Ve +.Sp +Note that you can use the \f(CW\*(C`ls\*(C'\fR command to get this path listed. +.IP "13)" 4 +.IX Item "13)" +How do I install a module and all its dependencies from the commandline, +without being prompted for anything, despite my \s-1CPAN\s0 configuration +(or lack thereof)? +.Sp +\&\s-1CPAN\s0 uses ExtUtils::MakeMaker's \fBprompt()\fR function to ask its questions, so +if you set the \s-1PERL_MM_USE_DEFAULT\s0 environment variable, you shouldn't be +asked any questions at all (assuming the modules you are installing are +nice about obeying that variable as well): +.Sp +.Vb 1 +\& % PERL_MM_USE_DEFAULT=1 perl \-MCPAN \-e \*(Aqinstall My::Module\*(Aq +.Ve +.IP "14)" 4 +.IX Item "14)" +How do I create a Module::Build based Build.PL derived from an +ExtUtils::MakeMaker focused Makefile.PL? +.Sp +http://search.cpan.org/dist/Module\-Build\-Convert/ +.IP "15)" 4 +.IX Item "15)" +I'm frequently irritated with the \s-1CPAN\s0 shell's inability to help me +select a good mirror. +.Sp +\&\s-1CPAN\s0 can now help you select a \*(L"good\*(R" mirror, based on which ones have the +lowest 'ping' round-trip times. From the shell, use the command 'o conf init +urllist' and allow \s-1CPAN\s0 to automatically select mirrors for you. +.Sp +Beyond that help, the urllist config parameter is yours. You can add and remove +sites at will. You should find out which sites have the best up-to-dateness, +bandwidth, reliability, etc. and are topologically close to you. Some people +prefer fast downloads, others up-to-dateness, others reliability. You decide +which to try in which order. +.Sp +Henk P. Penning maintains a site that collects data about \s-1CPAN\s0 sites: +.Sp +.Vb 1 +\& http://mirrors.cpan.org/ +.Ve +.Sp +Also, feel free to play with experimental features. Run +.Sp +.Vb 1 +\& o conf init randomize_urllist ftpstats_period ftpstats_size +.Ve +.Sp +and choose your favorite parameters. After a few downloads running the +\&\f(CW\*(C`hosts\*(C'\fR command will probably assist you in choosing the best mirror +sites. +.IP "16)" 4 +.IX Item "16)" +Why do I get asked the same questions every time I start the shell? +.Sp +You can make your configuration changes permanent by calling the +command \f(CW\*(C`o conf commit\*(C'\fR. Alternatively set the \f(CW\*(C`auto_commit\*(C'\fR +variable to true by running \f(CW\*(C`o conf init auto_commit\*(C'\fR and answering +the following question with yes. +.IP "17)" 4 +.IX Item "17)" +Older versions of \s-1CPAN\s0.pm had the original root directory of all +tarballs in the build directory. Now there are always random +characters appended to these directory names. Why was this done? +.Sp +The random characters are provided by File::Temp and ensure that each +module's individual build directory is unique. This makes running +\&\s-1CPAN\s0.pm in concurrent processes simultaneously safe. +.IP "18)" 4 +.IX Item "18)" +Speaking of the build directory. Do I have to clean it up myself? +.Sp +You have the choice to set the config variable \f(CW\*(C`scan_cache\*(C'\fR to +\&\f(CW\*(C`never\*(C'\fR. Then you must clean it up yourself. The other possible +values, \f(CW\*(C`atstart\*(C'\fR and \f(CW\*(C`atexit\*(C'\fR clean up the build directory when you +start (or more precisely, after the first extraction into the build +directory) or exit the \s-1CPAN\s0 shell, respectively. If you never start up +the \s-1CPAN\s0 shell, you probably also have to clean up the build directory +yourself. +.IP "19)" 4 +.IX Item "19)" +How can I switch to sudo instead of local::lib? +.Sp +The following 5 environment veriables need to be reset to the previous +values: \s-1PATH, PERL5LIB, PERL_LOCAL_LIB_ROOT, PERL_MB_OPT, PERL_MM_OPT\s0; +and these two \s-1CPAN\s0.pm config variables must be reconfigured: +make_install_make_command and mbuild_install_build_command. The five +env variables have probably been overwritten in your \f(CW$HOME\fR/.bashrc or +some equivalent. You either find them there and delete their traces +and logout/login or you override them temporarily, depending on your +exact desire. The two cpanpm config variables can be set with: +.Sp +.Vb 1 +\& o conf init /install_.*_command/ +.Ve +.Sp +probably followed by +.Sp +.Vb 1 +\& o conf commit +.Ve +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +.SS "\s-1OLD PERL VERSIONS\s0" +.IX Subsection "OLD PERL VERSIONS" +\&\s-1CPAN\s0.pm is regularly tested to run under 5.005 and assorted +newer versions. It is getting more and more difficult to get the +minimal prerequisites working on older perls. It is close to +impossible to get the whole Bundle::CPAN working there. If you're in +the position to have only these old versions, be advised that \s-1CPAN\s0 is +designed to work fine without the Bundle::CPAN installed. +.PP +To get things going, note that GBARR/Scalar\-List\-Utils\-1.18.tar.gz is +compatible with ancient perls and that File::Temp is listed as a +prerequisite but \s-1CPAN\s0 has reasonable workarounds if it is missing. +.SS "\s-1CPANPLUS\s0" +.IX Subsection "CPANPLUS" +This module and its competitor, the \s-1CPANPLUS\s0 module, are both much +cooler than the other. \s-1CPAN\s0.pm is older. \s-1CPANPLUS\s0 was designed to be +more modular, but it was never intended to be compatible with \s-1CPAN\s0.pm. +.SS "\s-1CPANMINUS\s0" +.IX Subsection "CPANMINUS" +In the year 2010 App::cpanminus was launched as a new approach to a +cpan shell with a considerably smaller footprint. Very cool stuff. +.SH "SECURITY ADVICE" +.IX Header "SECURITY ADVICE" +This software enables you to upgrade software on your computer and so +is inherently dangerous because the newly installed software may +contain bugs and may alter the way your computer works or even make it +unusable. Please consider backing up your data before every upgrade. +.SH "BUGS" +.IX Header "BUGS" +Please report bugs via +.PP +Before submitting a bug, please make sure that the traditional method +of building a Perl module package from a shell by following the +installation instructions of that package still works in your +environment. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andreas Koenig \f(CW\*(C`\*(C'\fR +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See +.SH "TRANSLATIONS" +.IX Header "TRANSLATIONS" +Kawai,Takanori provides a Japanese translation of a very old version +of this manpage at + +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Many people enter the \s-1CPAN\s0 shell by running the cpan utility +program which is installed in the same directory as perl itself. So if +you have this directory in your \s-1PATH\s0 variable (or some equivalent in +your operating system) then typing \f(CW\*(C`cpan\*(C'\fR in a console window will +work for you as well. Above that the utility provides several +commandline shortcuts. +.PP +melezhik (Alexey) sent me a link where he published a chef recipe to +work with \s-1CPAN\s0.pm: http://community.opscode.com/cookbooks/cpan. diff --git a/data/miniconda3/man/man3/Carp.3 b/data/miniconda3/man/man3/Carp.3 new file mode 100644 index 0000000000000000000000000000000000000000..e58c6c88076d00b76289dd1b94b1683fa92e8b9c --- /dev/null +++ b/data/miniconda3/man/man3/Carp.3 @@ -0,0 +1,427 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Carp 3" +.TH Carp 3 "2020-12-18" "perl v5.32.1" "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" +Carp \- alternative warn and die for modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Carp; +\& +\& # warn user (from perspective of caller) +\& carp "string trimmed to 80 chars"; +\& +\& # die of errors (from perspective of caller) +\& croak "We\*(Aqre outta here!"; +\& +\& # die of errors with stack backtrace +\& confess "not implemented"; +\& +\& # cluck, longmess and shortmess not exported by default +\& use Carp qw(cluck longmess shortmess); +\& cluck "This is how we got here!"; # warn with stack backtrace +\& $long_message = longmess( "message from cluck() or confess()" ); +\& $short_message = shortmess( "message from carp() or croak()" ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Carp routines are useful in your own modules because +they act like \f(CW\*(C`die()\*(C'\fR or \f(CW\*(C`warn()\*(C'\fR, but with a message which is more +likely to be useful to a user of your module. In the case of +\&\f(CW\*(C`cluck()\*(C'\fR and \f(CW\*(C`confess()\*(C'\fR, that context is a summary of every +call in the call-stack; \f(CW\*(C`longmess()\*(C'\fR returns the contents of the error +message. +.PP +For a shorter message you can use \f(CW\*(C`carp()\*(C'\fR or \f(CW\*(C`croak()\*(C'\fR which report the +error as being from where your module was called. \f(CW\*(C`shortmess()\*(C'\fR returns the +contents of this error message. There is no guarantee that that is where the +error was, but it is a good educated guess. +.PP +\&\f(CW\*(C`Carp\*(C'\fR takes care not to clobber the status variables \f(CW$!\fR and \f(CW$^E\fR +in the course of assembling its error messages. This means that a +\&\f(CW$SIG{_\|_DIE_\|_}\fR or \f(CW$SIG{_\|_WARN_\|_}\fR handler can capture the error +information held in those variables, if it is required to augment the +error message, and if the code calling \f(CW\*(C`Carp\*(C'\fR left useful values there. +Of course, \f(CW\*(C`Carp\*(C'\fR can't guarantee the latter. +.PP +You can also alter the way the output and logic of \f(CW\*(C`Carp\*(C'\fR works, by +changing some global variables in the \f(CW\*(C`Carp\*(C'\fR namespace. See the +section on \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR below. +.PP +Here is a more complete description of how \f(CW\*(C`carp\*(C'\fR and \f(CW\*(C`croak\*(C'\fR work. +What they do is search the call-stack for a function call stack where +they have not been told that there shouldn't be an error. If every +call is marked safe, they give up and give a full stack backtrace +instead. In other words they presume that the first likely looking +potential suspect is guilty. Their rules for telling whether +a call shouldn't generate errors work as follows: +.IP "1." 4 +Any call from a package to itself is safe. +.IP "2." 4 +Packages claim that there won't be errors on calls to or from +packages explicitly marked as safe by inclusion in \f(CW@CARP_NOT\fR, or +(if that array is empty) \f(CW@ISA\fR. The ability to override what +\&\f(CW@ISA\fR says is new in 5.8. +.IP "3." 4 +The trust in item 2 is transitive. If A trusts B, and B +trusts C, then A trusts C. So if you do not override \f(CW@ISA\fR +with \f(CW@CARP_NOT\fR, then this trust relationship is identical to, +\&\*(L"inherits from\*(R". +.IP "4." 4 +Any call from an internal Perl module is safe. (Nothing keeps +user modules from marking themselves as internal to Perl, but +this practice is discouraged.) +.IP "5." 4 +Any call to Perl's warning system (eg Carp itself) is safe. +(This rule is what keeps it from reporting the error at the +point where you call \f(CW\*(C`carp\*(C'\fR or \f(CW\*(C`croak\*(C'\fR.) +.IP "6." 4 +\&\f(CW$Carp::CarpLevel\fR can be set to skip a fixed number of additional +call levels. Using this is not recommended because it is very +difficult to get it to behave correctly. +.SS "Forcing a Stack Trace" +.IX Subsection "Forcing a Stack Trace" +As a debugging aid, you can force Carp to treat a croak as a confess +and a carp as a cluck across \fIall\fR modules. In other words, force a +detailed stack trace to be given. This can be very helpful when trying +to understand why, or from where, a warning or error is being generated. +.PP +This feature is enabled by 'importing' the non-existent symbol +\&'verbose'. You would typically enable it by saying +.PP +.Vb 1 +\& perl \-MCarp=verbose script.pl +.Ve +.PP +or by including the string \f(CW\*(C`\-MCarp=verbose\*(C'\fR in the \s-1PERL5OPT\s0 +environment variable. +.PP +Alternately, you can set the global variable \f(CW$Carp::Verbose\fR to true. +See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section below. +.SS "Stack Trace formatting" +.IX Subsection "Stack Trace formatting" +At each stack level, the subroutine's name is displayed along with +its parameters. For simple scalars, this is sufficient. For complex +data types, such as objects and other references, this can simply +display \f(CW\*(AqHASH(0x1ab36d8)\*(Aq\fR. +.PP +Carp gives two ways to control this. +.IP "1." 4 +For objects, a method, \f(CW\*(C`CARP_TRACE\*(C'\fR, will be called, if it exists. If +this method doesn't exist, or it recurses into \f(CW\*(C`Carp\*(C'\fR, or it otherwise +throws an exception, this is skipped, and Carp moves on to the next option, +otherwise checking stops and the string returned is used. It is recommended +that the object's type is part of the string to make debugging easier. +.IP "2." 4 +For any type of reference, \f(CW$Carp::RefArgFormatter\fR is checked (see below). +This variable is expected to be a code reference, and the current parameter +is passed in. If this function doesn't exist (the variable is undef), or +it recurses into \f(CW\*(C`Carp\*(C'\fR, or it otherwise throws an exception, this is +skipped, and Carp moves on to the next option, otherwise checking stops +and the string returned is used. +.IP "3." 4 +Otherwise, if neither \f(CW\*(C`CARP_TRACE\*(C'\fR nor \f(CW$Carp::RefArgFormatter\fR is +available, stringify the value ignoring any overloading. +.SH "GLOBAL VARIABLES" +.IX Header "GLOBAL VARIABLES" +.ie n .SS "$Carp::MaxEvalLen" +.el .SS "\f(CW$Carp::MaxEvalLen\fP" +.IX Subsection "$Carp::MaxEvalLen" +This variable determines how many characters of a string-eval are to +be shown in the output. Use a value of \f(CW0\fR to show all text. +.PP +Defaults to \f(CW0\fR. +.ie n .SS "$Carp::MaxArgLen" +.el .SS "\f(CW$Carp::MaxArgLen\fP" +.IX Subsection "$Carp::MaxArgLen" +This variable determines how many characters of each argument to a +function to print. Use a value of \f(CW0\fR to show the full length of the +argument. +.PP +Defaults to \f(CW64\fR. +.ie n .SS "$Carp::MaxArgNums" +.el .SS "\f(CW$Carp::MaxArgNums\fP" +.IX Subsection "$Carp::MaxArgNums" +This variable determines how many arguments to each function to show. +Use a false value to show all arguments to a function call. To suppress all +arguments, use \f(CW\*(C`\-1\*(C'\fR or \f(CW\*(Aq0 but true\*(Aq\fR. +.PP +Defaults to \f(CW8\fR. +.ie n .SS "$Carp::Verbose" +.el .SS "\f(CW$Carp::Verbose\fP" +.IX Subsection "$Carp::Verbose" +This variable makes \f(CW\*(C`carp()\*(C'\fR and \f(CW\*(C`croak()\*(C'\fR generate stack backtraces +just like \f(CW\*(C`cluck()\*(C'\fR and \f(CW\*(C`confess()\*(C'\fR. This is how \f(CW\*(C`use Carp \*(Aqverbose\*(Aq\*(C'\fR +is implemented internally. +.PP +Defaults to \f(CW0\fR. +.ie n .SS "$Carp::RefArgFormatter" +.el .SS "\f(CW$Carp::RefArgFormatter\fP" +.IX Subsection "$Carp::RefArgFormatter" +This variable sets a general argument formatter to display references. +Plain scalars and objects that implement \f(CW\*(C`CARP_TRACE\*(C'\fR will not go through +this formatter. Calling \f(CW\*(C`Carp\*(C'\fR from within this function is not supported. +.PP +local \f(CW$Carp::RefArgFormatter\fR = sub { + require Data::Dumper; + Data::Dumper::Dump($_[0]); # not necessarily safe +}; +.ie n .SS "@CARP_NOT" +.el .SS "\f(CW@CARP_NOT\fP" +.IX Subsection "@CARP_NOT" +This variable, \fIin your package\fR, says which packages are \fInot\fR to be +considered as the location of an error. The \f(CW\*(C`carp()\*(C'\fR and \f(CW\*(C`cluck()\*(C'\fR +functions will skip over callers when reporting where an error occurred. +.PP +\&\s-1NB:\s0 This variable must be in the package's symbol table, thus: +.PP +.Vb 4 +\& # These work +\& our @CARP_NOT; # file scope +\& use vars qw(@CARP_NOT); # package scope +\& @My::Package::CARP_NOT = ... ; # explicit package variable +\& +\& # These don\*(Aqt work +\& sub xyz { ... @CARP_NOT = ... } # w/o declarations above +\& my @CARP_NOT; # even at top\-level +.Ve +.PP +Example of use: +.PP +.Vb 9 +\& package My::Carping::Package; +\& use Carp; +\& our @CARP_NOT; +\& sub bar { .... or _error(\*(AqWrong input\*(Aq) } +\& sub _error { +\& # temporary control of where\*(Aqness, _\|_PACKAGE_\|_ is implicit +\& local @CARP_NOT = qw(My::Friendly::Caller); +\& carp(@_) +\& } +.Ve +.PP +This would make \f(CW\*(C`Carp\*(C'\fR report the error as coming from a caller not +in \f(CW\*(C`My::Carping::Package\*(C'\fR, nor from \f(CW\*(C`My::Friendly::Caller\*(C'\fR. +.PP +Also read the \*(L"\s-1DESCRIPTION\*(R"\s0 section above, about how \f(CW\*(C`Carp\*(C'\fR decides +where the error is reported from. +.PP +Use \f(CW@CARP_NOT\fR, instead of \f(CW$Carp::CarpLevel\fR. +.PP +Overrides \f(CW\*(C`Carp\*(C'\fR's use of \f(CW@ISA\fR. +.ie n .SS "%Carp::Internal" +.el .SS "\f(CW%Carp::Internal\fP" +.IX Subsection "%Carp::Internal" +This says what packages are internal to Perl. \f(CW\*(C`Carp\*(C'\fR will never +report an error as being from a line in a package that is internal to +Perl. For example: +.PP +.Vb 3 +\& $Carp::Internal{ (_\|_PACKAGE_\|_) }++; +\& # time passes... +\& sub foo { ... or confess("whatever") }; +.Ve +.PP +would give a full stack backtrace starting from the first caller +outside of _\|_PACKAGE_\|_. (Unless that package was also internal to +Perl.) +.ie n .SS "%Carp::CarpInternal" +.el .SS "\f(CW%Carp::CarpInternal\fP" +.IX Subsection "%Carp::CarpInternal" +This says which packages are internal to Perl's warning system. For +generating a full stack backtrace this is the same as being internal +to Perl, the stack backtrace will not start inside packages that are +listed in \f(CW%Carp::CarpInternal\fR. But it is slightly different for +the summary message generated by \f(CW\*(C`carp\*(C'\fR or \f(CW\*(C`croak\*(C'\fR. There errors +will not be reported on any lines that are calling packages in +\&\f(CW%Carp::CarpInternal\fR. +.PP +For example \f(CW\*(C`Carp\*(C'\fR itself is listed in \f(CW%Carp::CarpInternal\fR. +Therefore the full stack backtrace from \f(CW\*(C`confess\*(C'\fR will not start +inside of \f(CW\*(C`Carp\*(C'\fR, and the short message from calling \f(CW\*(C`croak\*(C'\fR is +not placed on the line where \f(CW\*(C`croak\*(C'\fR was called. +.ie n .SS "$Carp::CarpLevel" +.el .SS "\f(CW$Carp::CarpLevel\fP" +.IX Subsection "$Carp::CarpLevel" +This variable determines how many additional call frames are to be +skipped that would not otherwise be when reporting where an error +occurred on a call to one of \f(CW\*(C`Carp\*(C'\fR's functions. It is fairly easy +to count these call frames on calls that generate a full stack +backtrace. However it is much harder to do this accounting for calls +that generate a short message. Usually people skip too many call +frames. If they are lucky they skip enough that \f(CW\*(C`Carp\*(C'\fR goes all of +the way through the call stack, realizes that something is wrong, and +then generates a full stack backtrace. If they are unlucky then the +error is reported from somewhere misleading very high in the call +stack. +.PP +Therefore it is best to avoid \f(CW$Carp::CarpLevel\fR. Instead use +\&\f(CW@CARP_NOT\fR, \f(CW%Carp::Internal\fR and \f(CW%Carp::CarpInternal\fR. +.PP +Defaults to \f(CW0\fR. +.SH "BUGS" +.IX Header "BUGS" +The Carp routines don't handle exception objects currently. +If called with a first argument that is a reference, they simply +call \fBdie()\fR or \fBwarn()\fR, as appropriate. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Carp::Always, +Carp::Clan +.SH "CONTRIBUTING" +.IX Header "CONTRIBUTING" +Carp is maintained by the perl 5 porters as part of the core perl 5 +version control repository. Please see the perlhack perldoc for how to +submit patches and contribute to it. +.SH "AUTHOR" +.IX Header "AUTHOR" +The Carp module first appeared in Larry Wall's perl 5.000 distribution. +Since then it has been modified by several of the perl 5 porters. +Andrew Main (Zefram) divested Carp into an independent +distribution. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1994\-2013 Larry Wall +.PP +Copyright (C) 2011, 2012, 2013 Andrew Main (Zefram) +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3ABzip2.3 b/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3ABzip2.3 new file mode 100644 index 0000000000000000000000000000000000000000..756f13801e335c1ddb4fa92928d07508c1bf0344 --- /dev/null +++ b/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3ABzip2.3 @@ -0,0 +1,394 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Compress::Raw::Bzip2 3" +.TH Compress::Raw::Bzip2 3 "2020-12-18" "perl v5.32.1" "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" +Compress::Raw::Bzip2 \- Low\-Level Interface to bzip2 compression library +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Compress::Raw::Bzip2 ; +\& +\& my ($bz, $status) = new Compress::Raw::Bzip2 [OPTS] +\& or die "Cannot create bzip2 object: $bzerno\en"; +\& +\& $status = $bz\->bzdeflate($input, $output); +\& $status = $bz\->bzflush($output); +\& $status = $bz\->bzclose($output); +\& +\& my ($bz, $status) = new Compress::Raw::Bunzip2 [OPTS] +\& or die "Cannot create bunzip2 object: $bzerno\en"; +\& +\& $status = $bz\->bzinflate($input, $output); +\& +\& my $version = Compress::Raw::Bzip2::bzlibversion(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Compress::Raw::Bzip2\*(C'\fR provides an interface to the in-memory +compression/uncompression functions from the bzip2 compression library. +.PP +Although the primary purpose for the existence of \f(CW\*(C`Compress::Raw::Bzip2\*(C'\fR +is for use by the \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR and \f(CW\*(C`IO::Compress::Bunzip2\*(C'\fR +modules, it can be used on its own for simple compression/uncompression +tasks. +.SH "Compression" +.IX Header "Compression" +.ie n .SS "($z, $status) = new Compress::Raw::Bzip2 $appendOutput, $blockSize100k, $workfactor;" +.el .SS "($z, \f(CW$status\fP) = new Compress::Raw::Bzip2 \f(CW$appendOutput\fP, \f(CW$blockSize100k\fP, \f(CW$workfactor\fP;" +.IX Subsection "($z, $status) = new Compress::Raw::Bzip2 $appendOutput, $blockSize100k, $workfactor;" +Creates a new compression object. +.PP +If successful, it will return the initialised compression object, \f(CW$z\fR +and a \f(CW$status\fR of \f(CW\*(C`BZ_OK\*(C'\fR in a list context. In scalar context it +returns the deflation object, \f(CW$z\fR, only. +.PP +If not successful, the returned compression object, \f(CW$z\fR, will be +\&\fIundef\fR and \f(CW$status\fR will hold the a \fIbzip2\fR error code. +.PP +Below is a list of the valid options: +.IP "\fB\f(CB$appendOutput\fB\fR" 5 +.IX Item "$appendOutput" +Controls whether the compressed data is appended to the output buffer in +the \f(CW\*(C`bzdeflate\*(C'\fR, \f(CW\*(C`bzflush\*(C'\fR and \f(CW\*(C`bzclose\*(C'\fR methods. +.Sp +Defaults to 1. +.IP "\fB\f(CB$blockSize100k\fB\fR" 5 +.IX Item "$blockSize100k" +To quote the bzip2 documentation +.Sp +.Vb 4 +\& blockSize100k specifies the block size to be used for compression. It +\& should be a value between 1 and 9 inclusive, and the actual block size +\& used is 100000 x this figure. 9 gives the best compression but takes +\& most memory. +.Ve +.Sp +Defaults to 1. +.IP "\fB\f(CB$workfactor\fB\fR" 5 +.IX Item "$workfactor" +To quote the bzip2 documentation +.Sp +.Vb 7 +\& This parameter controls how the compression phase behaves when +\& presented with worst case, highly repetitive, input data. If +\& compression runs into difficulties caused by repetitive data, the +\& library switches from the standard sorting algorithm to a fallback +\& algorithm. The fallback is slower than the standard algorithm by +\& perhaps a factor of three, but always behaves reasonably, no matter how +\& bad the input. +\& +\& Lower values of workFactor reduce the amount of effort the standard +\& algorithm will expend before resorting to the fallback. You should set +\& this parameter carefully; too low, and many inputs will be handled by +\& the fallback algorithm and so compress rather slowly, too high, and +\& your average\-to\-worst case compression times can become very large. The +\& default value of 30 gives reasonable behaviour over a wide range of +\& circumstances. +\& +\& Allowable values range from 0 to 250 inclusive. 0 is a special case, +\& equivalent to using the default value of 30. +.Ve +.Sp +Defaults to 0. +.ie n .SS "$status = $bz\->bzdeflate($input, $output);" +.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzdeflate($input, \f(CW$output\fP);" +.IX Subsection "$status = $bz->bzdeflate($input, $output);" +Reads the contents of \f(CW$input\fR, compresses it and writes the compressed +data to \f(CW$output\fR. +.PP +Returns \f(CW\*(C`BZ_RUN_OK\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure. +.PP +If \f(CW\*(C`appendOutput\*(C'\fR is enabled in the constructor for the bzip2 object, the +compressed data will be appended to \f(CW$output\fR. If not enabled, \f(CW$output\fR +will be truncated before the compressed data is written to it. +.ie n .SS "$status = $bz\->bzflush($output);" +.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzflush($output);" +.IX Subsection "$status = $bz->bzflush($output);" +Flushes any pending compressed data to \f(CW$output\fR. +.PP +Returns \f(CW\*(C`BZ_RUN_OK\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure. +.ie n .SS "$status = $bz\->bzclose($output);" +.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzclose($output);" +.IX Subsection "$status = $bz->bzclose($output);" +Terminates the compressed data stream and flushes any pending compressed +data to \f(CW$output\fR. +.PP +Returns \f(CW\*(C`BZ_STREAM_END\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure. +.SS "Example" +.IX Subsection "Example" +.SH "Uncompression" +.IX Header "Uncompression" +.ie n .SS "($z, $status) = new Compress::Raw::Bunzip2 $appendOutput, $consumeInput, $small, $verbosity, $limitOutput;" +.el .SS "($z, \f(CW$status\fP) = new Compress::Raw::Bunzip2 \f(CW$appendOutput\fP, \f(CW$consumeInput\fP, \f(CW$small\fP, \f(CW$verbosity\fP, \f(CW$limitOutput\fP;" +.IX Subsection "($z, $status) = new Compress::Raw::Bunzip2 $appendOutput, $consumeInput, $small, $verbosity, $limitOutput;" +If successful, it will return the initialised uncompression object, \f(CW$z\fR +and a \f(CW$status\fR of \f(CW\*(C`BZ_OK\*(C'\fR in a list context. In scalar context it +returns the deflation object, \f(CW$z\fR, only. +.PP +If not successful, the returned uncompression object, \f(CW$z\fR, will be +\&\fIundef\fR and \f(CW$status\fR will hold the a \fIbzip2\fR error code. +.PP +Below is a list of the valid options: +.IP "\fB\f(CB$appendOutput\fB\fR" 5 +.IX Item "$appendOutput" +Controls whether the compressed data is appended to the output buffer in the +\&\f(CW\*(C`bzinflate\*(C'\fR, \f(CW\*(C`bzflush\*(C'\fR and \f(CW\*(C`bzclose\*(C'\fR methods. +.Sp +Defaults to 1. +.IP "\fB\f(CB$consumeInput\fB\fR" 5 +.IX Item "$consumeInput" +.PD 0 +.IP "\fB\f(CB$small\fB\fR" 5 +.IX Item "$small" +.PD +To quote the bzip2 documentation +.Sp +.Vb 4 +\& If small is nonzero, the library will use an alternative decompression +\& algorithm which uses less memory but at the cost of decompressing more +\& slowly (roughly speaking, half the speed, but the maximum memory +\& requirement drops to around 2300k). +.Ve +.Sp +Defaults to 0. +.IP "\fB\f(CB$limitOutput\fB\fR" 5 +.IX Item "$limitOutput" +The \f(CW\*(C`LimitOutput\*(C'\fR option changes the behavior of the \f(CW\*(C`$i\->bzinflate\*(C'\fR +method so that the amount of memory used by the output buffer can be +limited. +.Sp +When \f(CW\*(C`LimitOutput\*(C'\fR is used the size of the output buffer used will either +be the 16k or the amount of memory already allocated to \f(CW$output\fR, +whichever is larger. Predicting the output size available is tricky, so +don't rely on getting an exact output buffer size. +.Sp +When \f(CW\*(C`LimitOutout\*(C'\fR is not specified \f(CW\*(C`$i\->bzinflate\*(C'\fR will use as much +memory as it takes to write all the uncompressed data it creates by +uncompressing the input buffer. +.Sp +If \f(CW\*(C`LimitOutput\*(C'\fR is enabled, the \f(CW\*(C`ConsumeInput\*(C'\fR option will also be +enabled. +.Sp +This option defaults to false. +.IP "\fB\f(CB$verbosity\fB\fR" 5 +.IX Item "$verbosity" +This parameter is ignored. +.Sp +Defaults to 0. +.ie n .SS "$status = $z\->bzinflate($input, $output);" +.el .SS "\f(CW$status\fP = \f(CW$z\fP\->bzinflate($input, \f(CW$output\fP);" +.IX Subsection "$status = $z->bzinflate($input, $output);" +Uncompresses \f(CW$input\fR and writes the uncompressed data to \f(CW$output\fR. +.PP +Returns \f(CW\*(C`BZ_OK\*(C'\fR if the uncompression was successful, but the end of the +compressed data stream has not been reached. Returns \f(CW\*(C`BZ_STREAM_END\*(C'\fR on +successful uncompression and the end of the compression stream has been +reached. +.PP +If \f(CW\*(C`consumeInput\*(C'\fR is enabled in the constructor for the bunzip2 object, +\&\f(CW$input\fR will have all compressed data removed from it after +uncompression. On \f(CW\*(C`BZ_OK\*(C'\fR return this will mean that \f(CW$input\fR will be an +empty string; when \f(CW\*(C`BZ_STREAM_END\*(C'\fR \f(CW$input\fR will either be an empty +string or will contain whatever data immediately followed the compressed +data stream. +.PP +If \f(CW\*(C`appendOutput\*(C'\fR is enabled in the constructor for the bunzip2 object, +the uncompressed data will be appended to \f(CW$output\fR. If not enabled, +\&\f(CW$output\fR will be truncated before the uncompressed data is written to it. +.SH "Misc" +.IX Header "Misc" +.ie n .SS "my $version = \fBCompress::Raw::Bzip2::bzlibversion()\fP;" +.el .SS "my \f(CW$version\fP = \fBCompress::Raw::Bzip2::bzlibversion()\fP;" +.IX Subsection "my $version = Compress::Raw::Bzip2::bzlibversion();" +Returns the version of the underlying bzip2 library. +.SH "Constants" +.IX Header "Constants" +The following bzip2 constants are exported by this module +.PP +.Vb 3 +\& BZ_RUN +\& BZ_FLUSH +\& BZ_FINISH +\& +\& BZ_OK +\& BZ_RUN_OK +\& BZ_FLUSH_OK +\& BZ_FINISH_OK +\& BZ_STREAM_END +\& BZ_SEQUENCE_ERROR +\& BZ_PARAM_ERROR +\& BZ_MEM_ERROR +\& BZ_DATA_ERROR +\& BZ_DATA_ERROR_MAGIC +\& BZ_IO_ERROR +\& BZ_UNEXPECTED_EOF +\& BZ_OUTBUFF_FULL +\& BZ_CONFIG_ERROR +.Ve +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +The primary site for the bzip2 program is . +.PP +See the module Compress::Bzip2 +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3AZlib.3 b/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3AZlib.3 new file mode 100644 index 0000000000000000000000000000000000000000..6af829c041cb384187c5e5b0561389123af4537e --- /dev/null +++ b/data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3AZlib.3 @@ -0,0 +1,1062 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Compress::Raw::Zlib 3" +.TH Compress::Raw::Zlib 3 "2020-12-18" "perl v5.32.1" "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" +Compress::Raw::Zlib \- Low\-Level Interface to zlib compression library +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Compress::Raw::Zlib ; +\& +\& ($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) ; +\& $status = $d\->deflate($input, $output) ; +\& $status = $d\->flush($output [, $flush_type]) ; +\& $d\->deflateReset() ; +\& $d\->deflateParams(OPTS) ; +\& $d\->deflateTune(OPTS) ; +\& $d\->dict_adler() ; +\& $d\->crc32() ; +\& $d\->adler32() ; +\& $d\->total_in() ; +\& $d\->total_out() ; +\& $d\->msg() ; +\& $d\->get_Strategy(); +\& $d\->get_Level(); +\& $d\->get_BufSize(); +\& +\& ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) ; +\& $status = $i\->inflate($input, $output [, $eof]) ; +\& $status = $i\->inflateSync($input) ; +\& $i\->inflateReset() ; +\& $i\->dict_adler() ; +\& $d\->crc32() ; +\& $d\->adler32() ; +\& $i\->total_in() ; +\& $i\->total_out() ; +\& $i\->msg() ; +\& $d\->get_BufSize(); +\& +\& $crc = adler32($buffer [,$crc]) ; +\& $crc = crc32($buffer [,$crc]) ; +\& +\& $crc = crc32_combine($crc1, $crc2, $len2); +\& $adler = adler32_combine($adler1, $adler2, $len2); +\& +\& my $version = Compress::Raw::Zlib::zlib_version(); +\& my $flags = Compress::Raw::Zlib::zlibCompileFlags(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fICompress::Raw::Zlib\fR module provides a Perl interface to the \fIzlib\fR +compression library (see \*(L"\s-1AUTHOR\*(R"\s0 for details about where to get +\&\fIzlib\fR). +.SH "Compress::Raw::Zlib::Deflate" +.IX Header "Compress::Raw::Zlib::Deflate" +This section defines an interface that allows in-memory compression using +the \fIdeflate\fR interface provided by zlib. +.PP +Here is a definition of the interface available: +.SS "\fB($d, \fP\f(CB$status\fP\fB) = new Compress::Raw::Zlib::Deflate( [\s-1OPT\s0] ) \fP" +.IX Subsection "($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) " +Initialises a deflation object. +.PP +If you are familiar with the \fIzlib\fR library, it combines the +features of the \fIzlib\fR functions \f(CW\*(C`deflateInit\*(C'\fR, \f(CW\*(C`deflateInit2\*(C'\fR +and \f(CW\*(C`deflateSetDictionary\*(C'\fR. +.PP +If successful, it will return the initialised deflation object, \f(CW$d\fR +and a \f(CW$status\fR of \f(CW\*(C`Z_OK\*(C'\fR in a list context. In scalar context it +returns the deflation object, \f(CW$d\fR, only. +.PP +If not successful, the returned deflation object, \f(CW$d\fR, will be +\&\fIundef\fR and \f(CW$status\fR will hold the a \fIzlib\fR error code. +.PP +The function optionally takes a number of named options specified as +\&\f(CW\*(C`Name => value\*(C'\fR pairs. This allows individual options to be +tailored without having to specify them all in the parameter list. +.PP +For backward compatibility, it is also possible to pass the parameters +as a reference to a hash containing the name=>value pairs. +.PP +Below is a list of the valid options: +.IP "\fB\-Level\fR" 5 +.IX Item "-Level" +Defines the compression level. Valid values are 0 through 9, +\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and +\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.Sp +The default is \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.IP "\fB\-Method\fR" 5 +.IX Item "-Method" +Defines the compression method. The only valid value at present (and +the default) is \f(CW\*(C`Z_DEFLATED\*(C'\fR. +.IP "\fB\-WindowBits\fR" 5 +.IX Item "-WindowBits" +To compress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive +number between 8 and 15. +.Sp +To compress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR. +.Sp +To compress an \s-1RFC 1952\s0 data stream (i.e. gzip), set \f(CW\*(C`WindowBits\*(C'\fR to +\&\f(CW\*(C`WANT_GZIP\*(C'\fR. +.Sp +For a definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR +refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR. +.Sp +Defaults to \f(CW\*(C`MAX_WBITS\*(C'\fR. +.IP "\fB\-MemLevel\fR" 5 +.IX Item "-MemLevel" +For a definition of the meaning and valid values for \f(CW\*(C`MemLevel\*(C'\fR +refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR. +.Sp +Defaults to \s-1MAX_MEM_LEVEL.\s0 +.IP "\fB\-Strategy\fR" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. The valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR, \f(CW\*(C`Z_RLE\*(C'\fR, \f(CW\*(C`Z_FIXED\*(C'\fR and +\&\f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.Sp +The default is \f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR. +.IP "\fB\-Dictionary\fR" 5 +.IX Item "-Dictionary" +When a dictionary is specified \fICompress::Raw::Zlib\fR will automatically +call \f(CW\*(C`deflateSetDictionary\*(C'\fR directly after calling \f(CW\*(C`deflateInit\*(C'\fR. The +Adler32 value for the dictionary can be obtained by calling the method +\&\f(CW\*(C`$d\->dict_adler()\*(C'\fR. +.Sp +The default is no dictionary. +.IP "\fB\-Bufsize\fR" 5 +.IX Item "-Bufsize" +Sets the initial size for the output buffer used by the \f(CW\*(C`$d\->deflate\*(C'\fR +and \f(CW\*(C`$d\->flush\*(C'\fR methods. If the buffer has to be +reallocated to increase the size, it will grow in increments of +\&\f(CW\*(C`Bufsize\*(C'\fR. +.Sp +The default buffer size is 4096. +.IP "\fB\-AppendOutput\fR" 5 +.IX Item "-AppendOutput" +This option controls how data is written to the output buffer by the +\&\f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods. +.Sp +If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to false, the output buffers in the +\&\f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods will be truncated before +uncompressed data is written to them. +.Sp +If the option is set to true, uncompressed data will be appended to the +output buffer in the \f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods. +.Sp +This option defaults to false. +.IP "\fB\-CRC32\fR" 5 +.IX Item "-CRC32" +If set to true, a crc32 checksum of the uncompressed data will be +calculated. Use the \f(CW\*(C`$d\->crc32\*(C'\fR method to retrieve this value. +.Sp +This option defaults to false. +.IP "\fB\-ADLER32\fR" 5 +.IX Item "-ADLER32" +If set to true, an adler32 checksum of the uncompressed data will be +calculated. Use the \f(CW\*(C`$d\->adler32\*(C'\fR method to retrieve this value. +.Sp +This option defaults to false. +.PP +Here is an example of using the \f(CW\*(C`Compress::Raw::Zlib::Deflate\*(C'\fR optional +parameter list to override the default buffer size and compression +level. All other options will take their default values. +.PP +.Vb 2 +\& my $d = new Compress::Raw::Zlib::Deflate ( \-Bufsize => 300, +\& \-Level => Z_BEST_SPEED ) ; +.Ve +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflate($input, \fP\f(CB$output\fP\fB)\fP" +.IX Subsection "$status = $d->deflate($input, $output)" +Deflates the contents of \f(CW$input\fR and writes the compressed data to +\&\f(CW$output\fR. +.PP +The \f(CW$input\fR and \f(CW$output\fR parameters can be either scalars or scalar +references. +.PP +When finished, \f(CW$input\fR will be completely processed (assuming there +were no errors). If the deflation was successful it writes the deflated +data to \f(CW$output\fR and returns a status value of \f(CW\*(C`Z_OK\*(C'\fR. +.PP +On error, it returns a \fIzlib\fR error code. +.PP +If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for +the \f(CW$d\fR object, the compressed data will be appended to \f(CW$output\fR. If +it is false, \f(CW$output\fR will be truncated before any compressed data is +written to it. +.PP +\&\fBNote\fR: This method will not necessarily write compressed data to +\&\f(CW$output\fR every time it is called. So do not assume that there has been +an error if the contents of \f(CW$output\fR is empty on returning from +this method. As long as the return code from the method is \f(CW\*(C`Z_OK\*(C'\fR, +the deflate has succeeded. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->flush($output [, \fP\f(CB$flush_type\fP\fB]) \fP" +.IX Subsection "$status = $d->flush($output [, $flush_type]) " +Typically used to finish the deflation. Any pending output will be +written to \f(CW$output\fR. +.PP +Returns \f(CW\*(C`Z_OK\*(C'\fR if successful. +.PP +Note that flushing can seriously degrade the compression ratio, so it +should only be used to terminate a decompression (using \f(CW\*(C`Z_FINISH\*(C'\fR) or +when you want to create a \fIfull flush point\fR (using \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR). +.PP +By default the \f(CW\*(C`flush_type\*(C'\fR used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values +for \f(CW\*(C`flush_type\*(C'\fR are \f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_PARTIAL_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR +and \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR. It is strongly recommended that you only set the +\&\f(CW\*(C`flush_type\*(C'\fR parameter if you fully understand the implications of +what it does. See the \f(CW\*(C`zlib\*(C'\fR documentation for details. +.PP +If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for +the \f(CW$d\fR object, the compressed data will be appended to \f(CW$output\fR. If +it is false, \f(CW$output\fR will be truncated before any compressed data is +written to it. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateReset() \fP" +.IX Subsection "$status = $d->deflateReset() " +This method will reset the deflation object \f(CW$d\fR. It can be used when you +are compressing multiple data streams and want to use the same object to +compress each of them. It should only be used once the previous data stream +has been flushed successfully, i.e. a call to \f(CW\*(C`$d\->flush(Z_FINISH)\*(C'\fR has +returned \f(CW\*(C`Z_OK\*(C'\fR. +.PP +Returns \f(CW\*(C`Z_OK\*(C'\fR if successful. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateParams([\s-1OPT\s0])\fP" +.IX Subsection "$status = $d->deflateParams([OPT])" +Change settings for the deflate object \f(CW$d\fR. +.PP +The list of the valid options is shown below. Options not specified +will remain unchanged. +.IP "\fB\-Level\fR" 5 +.IX Item "-Level" +Defines the compression level. Valid values are 0 through 9, +\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and +\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.IP "\fB\-Strategy\fR" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. The valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.IP "\fB\-BufSize\fR" 5 +.IX Item "-BufSize" +Sets the initial size for the output buffer used by the \f(CW\*(C`$d\->deflate\*(C'\fR +and \f(CW\*(C`$d\->flush\*(C'\fR methods. If the buffer has to be +reallocated to increase the size, it will grow in increments of +\&\f(CW\*(C`Bufsize\*(C'\fR. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateTune($good_length, \fP\f(CB$max_lazy\fP\fB, \fP\f(CB$nice_length\fP\fB, \fP\f(CB$max_chain\fP\fB)\fP" +.IX Subsection "$status = $d->deflateTune($good_length, $max_lazy, $nice_length, $max_chain)" +Tune the internal settings for the deflate object \f(CW$d\fR. This option is +only available if you are running zlib 1.2.2.3 or better. +.PP +Refer to the documentation in zlib.h for instructions on how to fly +\&\f(CW\*(C`deflateTune\*(C'\fR. +.SS "\fB\fP\f(CB$d\fP\fB\->dict_adler()\fP" +.IX Subsection "$d->dict_adler()" +Returns the adler32 value for the dictionary. +.SS "\fB\fP\f(CB$d\fP\fB\->crc32()\fP" +.IX Subsection "$d->crc32()" +Returns the crc32 value for the uncompressed data to date. +.PP +If the \f(CW\*(C`CRC32\*(C'\fR option is not enabled in the constructor for this object, +this method will always return 0; +.SS "\fB\fP\f(CB$d\fP\fB\->adler32()\fP" +.IX Subsection "$d->adler32()" +Returns the adler32 value for the uncompressed data to date. +.SS "\fB\fP\f(CB$d\fP\fB\->msg()\fP" +.IX Subsection "$d->msg()" +Returns the last error message generated by zlib. +.SS "\fB\fP\f(CB$d\fP\fB\->total_in()\fP" +.IX Subsection "$d->total_in()" +Returns the total number of bytes uncompressed bytes input to deflate. +.SS "\fB\fP\f(CB$d\fP\fB\->total_out()\fP" +.IX Subsection "$d->total_out()" +Returns the total number of compressed bytes output from deflate. +.SS "\fB\fP\f(CB$d\fP\fB\->get_Strategy()\fP" +.IX Subsection "$d->get_Strategy()" +Returns the deflation strategy currently used. Valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.SS "\fB\fP\f(CB$d\fP\fB\->get_Level()\fP" +.IX Subsection "$d->get_Level()" +Returns the compression level being used. +.SS "\fB\fP\f(CB$d\fP\fB\->get_BufSize()\fP" +.IX Subsection "$d->get_BufSize()" +Returns the buffer size used to carry out the compression. +.SS "Example" +.IX Subsection "Example" +Here is a trivial example of using \f(CW\*(C`deflate\*(C'\fR. It simply reads standard +input, deflates it and writes it to standard output. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Raw::Zlib ; +\& +\& binmode STDIN; +\& binmode STDOUT; +\& my $x = new Compress::Raw::Zlib::Deflate +\& or die "Cannot create a deflation stream\en" ; +\& +\& my ($output, $status) ; +\& while (<>) +\& { +\& $status = $x\->deflate($_, $output) ; +\& +\& $status == Z_OK +\& or die "deflation failed\en" ; +\& +\& print $output ; +\& } +\& +\& $status = $x\->flush($output) ; +\& +\& $status == Z_OK +\& or die "deflation failed\en" ; +\& +\& print $output ; +.Ve +.SH "Compress::Raw::Zlib::Inflate" +.IX Header "Compress::Raw::Zlib::Inflate" +This section defines an interface that allows in-memory uncompression using +the \fIinflate\fR interface provided by zlib. +.PP +Here is a definition of the interface: +.SS "\fB ($i, \fP\f(CB$status\fP\fB) = new Compress::Raw::Zlib::Inflate( [\s-1OPT\s0] ) \fP" +.IX Subsection " ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) " +Initialises an inflation object. +.PP +In a list context it returns the inflation object, \f(CW$i\fR, and the +\&\fIzlib\fR status code (\f(CW$status\fR). In a scalar context it returns the +inflation object only. +.PP +If successful, \f(CW$i\fR will hold the inflation object and \f(CW$status\fR will +be \f(CW\*(C`Z_OK\*(C'\fR. +.PP +If not successful, \f(CW$i\fR will be \fIundef\fR and \f(CW$status\fR will hold the +\&\fIzlib\fR error code. +.PP +The function optionally takes a number of named options specified as +\&\f(CW\*(C`\-Name => value\*(C'\fR pairs. This allows individual options to be +tailored without having to specify them all in the parameter list. +.PP +For backward compatibility, it is also possible to pass the parameters +as a reference to a hash containing the \f(CW\*(C`name=>value\*(C'\fR pairs. +.PP +Here is a list of the valid options: +.IP "\fB\-WindowBits\fR" 5 +.IX Item "-WindowBits" +To uncompress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive +number between 8 and 15. +.Sp +To uncompress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR. +.Sp +To uncompress an \s-1RFC 1952\s0 data stream (i.e. gzip), set \f(CW\*(C`WindowBits\*(C'\fR to +\&\f(CW\*(C`WANT_GZIP\*(C'\fR. +.Sp +To auto-detect and uncompress an \s-1RFC 1950\s0 or \s-1RFC 1952\s0 data stream (i.e. +gzip), set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`WANT_GZIP_OR_ZLIB\*(C'\fR. +.Sp +For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR +refer to the \fIzlib\fR documentation for \fIinflateInit2\fR. +.Sp +Defaults to \f(CW\*(C`MAX_WBITS\*(C'\fR. +.IP "\fB\-Bufsize\fR" 5 +.IX Item "-Bufsize" +Sets the initial size for the output buffer used by the \f(CW\*(C`$i\->inflate\*(C'\fR +method. If the output buffer in this method has to be reallocated to +increase the size, it will grow in increments of \f(CW\*(C`Bufsize\*(C'\fR. +.Sp +Default is 4096. +.IP "\fB\-Dictionary\fR" 5 +.IX Item "-Dictionary" +The default is no dictionary. +.IP "\fB\-AppendOutput\fR" 5 +.IX Item "-AppendOutput" +This option controls how data is written to the output buffer by the +\&\f(CW\*(C`$i\->inflate\*(C'\fR method. +.Sp +If the option is set to false, the output buffer in the \f(CW\*(C`$i\->inflate\*(C'\fR +method will be truncated before uncompressed data is written to it. +.Sp +If the option is set to true, uncompressed data will be appended to the +output buffer by the \f(CW\*(C`$i\->inflate\*(C'\fR method. +.Sp +This option defaults to false. +.IP "\fB\-CRC32\fR" 5 +.IX Item "-CRC32" +If set to true, a crc32 checksum of the uncompressed data will be +calculated. Use the \f(CW\*(C`$i\->crc32\*(C'\fR method to retrieve this value. +.Sp +This option defaults to false. +.IP "\fB\-ADLER32\fR" 5 +.IX Item "-ADLER32" +If set to true, an adler32 checksum of the uncompressed data will be +calculated. Use the \f(CW\*(C`$i\->adler32\*(C'\fR method to retrieve this value. +.Sp +This option defaults to false. +.IP "\fB\-ConsumeInput\fR" 5 +.IX Item "-ConsumeInput" +If set to true, this option will remove compressed data from the input +buffer of the \f(CW\*(C`$i\->inflate\*(C'\fR method as the inflate progresses. +.Sp +This option can be useful when you are processing compressed data that is +embedded in another file/buffer. In this case the data that immediately +follows the compressed stream will be left in the input buffer. +.Sp +This option defaults to true. +.IP "\fB\-LimitOutput\fR" 5 +.IX Item "-LimitOutput" +The \f(CW\*(C`LimitOutput\*(C'\fR option changes the behavior of the \f(CW\*(C`$i\->inflate\*(C'\fR +method so that the amount of memory used by the output buffer can be +limited. +.Sp +When \f(CW\*(C`LimitOutput\*(C'\fR is used the size of the output buffer used will either +be the value of the \f(CW\*(C`Bufsize\*(C'\fR option or the amount of memory already +allocated to \f(CW$output\fR, whichever is larger. Predicting the output size +available is tricky, so don't rely on getting an exact output buffer size. +.Sp +When \f(CW\*(C`LimitOutout\*(C'\fR is not specified \f(CW\*(C`$i\->inflate\*(C'\fR will use as much +memory as it takes to write all the uncompressed data it creates by +uncompressing the input buffer. +.Sp +If \f(CW\*(C`LimitOutput\*(C'\fR is enabled, the \f(CW\*(C`ConsumeInput\*(C'\fR option will also be +enabled. +.Sp +This option defaults to false. +.Sp +See \*(L"The LimitOutput option\*(R" for a discussion on why \f(CW\*(C`LimitOutput\*(C'\fR is +needed and how to use it. +.PP +Here is an example of using an optional parameter to override the default +buffer size. +.PP +.Vb 1 +\& my ($i, $status) = new Compress::Raw::Zlib::Inflate( \-Bufsize => 300 ) ; +.Ve +.SS "\fB \fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflate($input, \fP\f(CB$output\fP\fB [,$eof]) \fP" +.IX Subsection " $status = $i->inflate($input, $output [,$eof]) " +Inflates the complete contents of \f(CW$input\fR and writes the uncompressed +data to \f(CW$output\fR. The \f(CW$input\fR and \f(CW$output\fR parameters can either be +scalars or scalar references. +.PP +Returns \f(CW\*(C`Z_OK\*(C'\fR if successful and \f(CW\*(C`Z_STREAM_END\*(C'\fR if the end of the +compressed data has been successfully reached. +.PP +If not successful \f(CW$status\fR will hold the \fIzlib\fR error code. +.PP +If the \f(CW\*(C`ConsumeInput\*(C'\fR option has been set to true when the +\&\f(CW\*(C`Compress::Raw::Zlib::Inflate\*(C'\fR object is created, the \f(CW$input\fR parameter +is modified by \f(CW\*(C`inflate\*(C'\fR. On completion it will contain what remains +of the input buffer after inflation. In practice, this means that when +the return status is \f(CW\*(C`Z_OK\*(C'\fR the \f(CW$input\fR parameter will contain an +empty string, and when the return status is \f(CW\*(C`Z_STREAM_END\*(C'\fR the \f(CW$input\fR +parameter will contains what (if anything) was stored in the input buffer +after the deflated data stream. +.PP +This feature is useful when processing a file format that encapsulates +a compressed data stream (e.g. gzip, zip) and there is useful data +immediately after the deflation stream. +.PP +If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for +this object, the uncompressed data will be appended to \f(CW$output\fR. If +it is false, \f(CW$output\fR will be truncated before any uncompressed data +is written to it. +.PP +The \f(CW$eof\fR parameter needs a bit of explanation. +.PP +Prior to version 1.2.0, zlib assumed that there was at least one trailing +byte immediately after the compressed data stream when it was carrying out +decompression. This normally isn't a problem because the majority of zlib +applications guarantee that there will be data directly after the +compressed data stream. For example, both gzip (\s-1RFC 1950\s0) and zip both +define trailing data that follows the compressed data stream. +.PP +The \f(CW$eof\fR parameter only needs to be used if \fBall\fR of the following +conditions apply +.IP "1." 5 +You are either using a copy of zlib that is older than version 1.2.0 or you +want your application code to be able to run with as many different +versions of zlib as possible. +.IP "2." 5 +You have set the \f(CW\*(C`WindowBits\*(C'\fR parameter to \f(CW\*(C`\-MAX_WBITS\*(C'\fR in the constructor +for this object, i.e. you are uncompressing a raw deflated data stream +(\s-1RFC 1951\s0). +.IP "3." 5 +There is no data immediately after the compressed data stream. +.PP +If \fBall\fR of these are the case, then you need to set the \f(CW$eof\fR parameter +to true on the final call (and only the final call) to \f(CW\*(C`$i\->inflate\*(C'\fR. +.PP +If you have built this module with zlib >= 1.2.0, the \f(CW$eof\fR parameter is +ignored. You can still set it if you want, but it won't be used behind the +scenes. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateSync($input)\fP" +.IX Subsection "$status = $i->inflateSync($input)" +This method can be used to attempt to recover good data from a compressed +data stream that is partially corrupt. +It scans \f(CW$input\fR until it reaches either a \fIfull flush point\fR or the +end of the buffer. +.PP +If a \fIfull flush point\fR is found, \f(CW\*(C`Z_OK\*(C'\fR is returned and \f(CW$input\fR +will be have all data up to the flush point removed. This data can then be +passed to the \f(CW\*(C`$i\->inflate\*(C'\fR method to be uncompressed. +.PP +Any other return code means that a flush point was not found. If more +data is available, \f(CW\*(C`inflateSync\*(C'\fR can be called repeatedly with more +compressed data until the flush point is found. +.PP +Note \fIfull flush points\fR are not present by default in compressed +data streams. They must have been added explicitly when the data stream +was created by calling \f(CW\*(C`Compress::Deflate::flush\*(C'\fR with \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateReset() \fP" +.IX Subsection "$status = $i->inflateReset() " +This method will reset the inflation object \f(CW$i\fR. It can be used when you +are uncompressing multiple data streams and want to use the same object to +uncompress each of them. +.PP +Returns \f(CW\*(C`Z_OK\*(C'\fR if successful. +.SS "\fB\fP\f(CB$i\fP\fB\->dict_adler()\fP" +.IX Subsection "$i->dict_adler()" +Returns the adler32 value for the dictionary. +.SS "\fB\fP\f(CB$i\fP\fB\->crc32()\fP" +.IX Subsection "$i->crc32()" +Returns the crc32 value for the uncompressed data to date. +.PP +If the \f(CW\*(C`CRC32\*(C'\fR option is not enabled in the constructor for this object, +this method will always return 0; +.SS "\fB\fP\f(CB$i\fP\fB\->adler32()\fP" +.IX Subsection "$i->adler32()" +Returns the adler32 value for the uncompressed data to date. +.PP +If the \f(CW\*(C`ADLER32\*(C'\fR option is not enabled in the constructor for this object, +this method will always return 0; +.SS "\fB\fP\f(CB$i\fP\fB\->msg()\fP" +.IX Subsection "$i->msg()" +Returns the last error message generated by zlib. +.SS "\fB\fP\f(CB$i\fP\fB\->total_in()\fP" +.IX Subsection "$i->total_in()" +Returns the total number of bytes compressed bytes input to inflate. +.SS "\fB\fP\f(CB$i\fP\fB\->total_out()\fP" +.IX Subsection "$i->total_out()" +Returns the total number of uncompressed bytes output from inflate. +.SS "\fB\fP\f(CB$d\fP\fB\->get_BufSize()\fP" +.IX Subsection "$d->get_BufSize()" +Returns the buffer size used to carry out the decompression. +.SS "Examples" +.IX Subsection "Examples" +Here is an example of using \f(CW\*(C`inflate\*(C'\fR. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Raw::Zlib; +\& +\& my $x = new Compress::Raw::Zlib::Inflate() +\& or die "Cannot create a inflation stream\en" ; +\& +\& my $input = \*(Aq\*(Aq ; +\& binmode STDIN; +\& binmode STDOUT; +\& +\& my ($output, $status) ; +\& while (read(STDIN, $input, 4096)) +\& { +\& $status = $x\->inflate($input, $output) ; +\& +\& print $output ; +\& +\& last if $status != Z_OK ; +\& } +\& +\& die "inflation failed\en" +\& unless $status == Z_STREAM_END ; +.Ve +.PP +The next example show how to use the \f(CW\*(C`LimitOutput\*(C'\fR option. Notice the use +of two nested loops in this case. The outer loop reads the data from the +input source \- \s-1STDIN\s0 and the inner loop repeatedly calls \f(CW\*(C`inflate\*(C'\fR until +\&\f(CW$input\fR is exhausted, we get an error, or the end of the stream is +reached. One point worth remembering is by using the \f(CW\*(C`LimitOutput\*(C'\fR option +you also get \f(CW\*(C`ConsumeInput\*(C'\fR set as well \- this makes the code below much +simpler. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Raw::Zlib; +\& +\& my $x = new Compress::Raw::Zlib::Inflate(LimitOutput => 1) +\& or die "Cannot create a inflation stream\en" ; +\& +\& my $input = \*(Aq\*(Aq ; +\& binmode STDIN; +\& binmode STDOUT; +\& +\& my ($output, $status) ; +\& +\& OUTER: +\& while (read(STDIN, $input, 4096)) +\& { +\& do +\& { +\& $status = $x\->inflate($input, $output) ; +\& +\& print $output ; +\& +\& last OUTER +\& unless $status == Z_OK || $status == Z_BUF_ERROR ; +\& } +\& while ($status == Z_OK && length $input); +\& } +\& +\& die "inflation failed\en" +\& unless $status == Z_STREAM_END ; +.Ve +.SH "CHECKSUM FUNCTIONS" +.IX Header "CHECKSUM FUNCTIONS" +Two functions are provided by \fIzlib\fR to calculate checksums. For the +Perl interface, the order of the two parameters in both functions has +been reversed. This allows both running checksums and one off +calculations to be done. +.PP +.Vb 2 +\& $crc = adler32($buffer [,$crc]) ; +\& $crc = crc32($buffer [,$crc]) ; +.Ve +.PP +The buffer parameters can either be a scalar or a scalar reference. +.PP +If the \f(CW$crc\fR parameters is \f(CW\*(C`undef\*(C'\fR, the crc value will be reset. +.PP +If you have built this module with zlib 1.2.3 or better, two more +CRC-related functions are available. +.PP +.Vb 2 +\& $crc = crc32_combine($crc1, $crc2, $len2); +\& $adler = adler32_combine($adler1, $adler2, $len2); +.Ve +.PP +These functions allow checksums to be merged. +Refer to the \fIzlib\fR documentation for more details. +.SH "Misc" +.IX Header "Misc" +.ie n .SS "my $version = \fBCompress::Raw::Zlib::zlib_version()\fP;" +.el .SS "my \f(CW$version\fP = \fBCompress::Raw::Zlib::zlib_version()\fP;" +.IX Subsection "my $version = Compress::Raw::Zlib::zlib_version();" +Returns the version of the zlib library. +.ie n .SS "my $flags = \fBCompress::Raw::Zlib::zlibCompileFlags()\fP;" +.el .SS "my \f(CW$flags\fP = \fBCompress::Raw::Zlib::zlibCompileFlags()\fP;" +.IX Subsection "my $flags = Compress::Raw::Zlib::zlibCompileFlags();" +Returns the flags indicating compile-time options that were used to build +the zlib library. See the zlib documentation for a description of the flags +returned by \f(CW\*(C`zlibCompileFlags\*(C'\fR. +.PP +Note that when the zlib sources are built along with this module the +\&\f(CW\*(C`sprintf\*(C'\fR flags (bits 24, 25 and 26) should be ignored. +.PP +If you are using zlib 1.2.0 or older, \f(CW\*(C`zlibCompileFlags\*(C'\fR will return 0. +.SH "The LimitOutput option." +.IX Header "The LimitOutput option." +By default \f(CW\*(C`$i\->inflate($input, $output)\*(C'\fR will uncompress \fIall\fR data +in \f(CW$input\fR and write \fIall\fR of the uncompressed data it has generated to +\&\f(CW$output\fR. This makes the interface to \f(CW\*(C`inflate\*(C'\fR much simpler \- if the +method has uncompressed \f(CW$input\fR successfully \fIall\fR compressed data in +\&\f(CW$input\fR will have been dealt with. So if you are reading from an input +source and uncompressing as you go the code will look something like this +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Raw::Zlib; +\& +\& my $x = new Compress::Raw::Zlib::Inflate() +\& or die "Cannot create a inflation stream\en" ; +\& +\& my $input = \*(Aq\*(Aq ; +\& +\& my ($output, $status) ; +\& while (read(STDIN, $input, 4096)) +\& { +\& $status = $x\->inflate($input, $output) ; +\& +\& print $output ; +\& +\& last if $status != Z_OK ; +\& } +\& +\& die "inflation failed\en" +\& unless $status == Z_STREAM_END ; +.Ve +.PP +The points to note are +.IP "\(bu" 5 +The main processing loop in the code handles reading of compressed data +from \s-1STDIN.\s0 +.IP "\(bu" 5 +The status code returned from \f(CW\*(C`inflate\*(C'\fR will only trigger termination of +the main processing loop if it isn't \f(CW\*(C`Z_OK\*(C'\fR. When \f(CW\*(C`LimitOutput\*(C'\fR has not +been used the \f(CW\*(C`Z_OK\*(C'\fR status means that the end of the compressed +data stream has been reached or there has been an error in uncompression. +.IP "\(bu" 5 +After the call to \f(CW\*(C`inflate\*(C'\fR \fIall\fR of the uncompressed data in \f(CW$input\fR +will have been processed. This means the subsequent call to \f(CW\*(C`read\*(C'\fR can +overwrite it's contents without any problem. +.PP +For most use-cases the behavior described above is acceptable (this module +and it's predecessor, \f(CW\*(C`Compress::Zlib\*(C'\fR, have used it for over 10 years +without an issue), but in a few very specific use-cases the amount of +memory required for \f(CW$output\fR can prohibitively large. For example, if the +compressed data stream contains the same pattern repeated thousands of +times, a relatively small compressed data stream can uncompress into +hundreds of megabytes. Remember \f(CW\*(C`inflate\*(C'\fR will keep allocating memory +until \fIall\fR the uncompressed data has been written to the output buffer \- +the size of \f(CW$output\fR is unbounded. +.PP +The \f(CW\*(C`LimitOutput\*(C'\fR option is designed to help with this use-case. +.PP +The main difference in your code when using \f(CW\*(C`LimitOutput\*(C'\fR is having to +deal with cases where the \f(CW$input\fR parameter still contains some +uncompressed data that \f(CW\*(C`inflate\*(C'\fR hasn't processed yet. The status code +returned from \f(CW\*(C`inflate\*(C'\fR will be \f(CW\*(C`Z_OK\*(C'\fR if uncompression took place and +\&\f(CW\*(C`Z_BUF_ERROR\*(C'\fR if the output buffer is full. +.PP +Below is typical code that shows how to use \f(CW\*(C`LimitOutput\*(C'\fR. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Raw::Zlib; +\& +\& my $x = new Compress::Raw::Zlib::Inflate(LimitOutput => 1) +\& or die "Cannot create a inflation stream\en" ; +\& +\& my $input = \*(Aq\*(Aq ; +\& binmode STDIN; +\& binmode STDOUT; +\& +\& my ($output, $status) ; +\& +\& OUTER: +\& while (read(STDIN, $input, 4096)) +\& { +\& do +\& { +\& $status = $x\->inflate($input, $output) ; +\& +\& print $output ; +\& +\& last OUTER +\& unless $status == Z_OK || $status == Z_BUF_ERROR ; +\& } +\& while ($status == Z_OK && length $input); +\& } +\& +\& die "inflation failed\en" +\& unless $status == Z_STREAM_END ; +.Ve +.PP +Points to note this time: +.IP "\(bu" 5 +There are now two nested loops in the code: the outer loop for reading the +compressed data from \s-1STDIN,\s0 as before; and the inner loop to carry out the +uncompression. +.IP "\(bu" 5 +There are two exit points from the inner uncompression loop. +.Sp +Firstly when \f(CW\*(C`inflate\*(C'\fR has returned a status other than \f(CW\*(C`Z_OK\*(C'\fR or +\&\f(CW\*(C`Z_BUF_ERROR\*(C'\fR. This means that either the end of the compressed data +stream has been reached (\f(CW\*(C`Z_STREAM_END\*(C'\fR) or there is an error in the +compressed data. In either of these cases there is no point in continuing +with reading the compressed data, so both loops are terminated. +.Sp +The second exit point tests if there is any data left in the input buffer, +\&\f(CW$input\fR \- remember that the \f(CW\*(C`ConsumeInput\*(C'\fR option is automatically +enabled when \f(CW\*(C`LimitOutput\*(C'\fR is used. When the input buffer has been +exhausted, the outer loop can run again and overwrite a now empty +\&\f(CW$input\fR. +.SH "ACCESSING ZIP FILES" +.IX Header "ACCESSING ZIP FILES" +Although it is possible (with some effort on your part) to use this module +to access .zip files, there are other perl modules available that will do +all the hard work for you. Check out \f(CW\*(C`Archive::Zip\*(C'\fR, +\&\f(CW\*(C`Archive::Zip::SimpleZip\*(C'\fR, \f(CW\*(C`IO::Compress::Zip\*(C'\fR and +\&\f(CW\*(C`IO::Uncompress::Unzip\*(C'\fR. +.SH "FAQ" +.IX Header "FAQ" +.SS "Compatibility with Unix compress/uncompress." +.IX Subsection "Compatibility with Unix compress/uncompress." +This module is not compatible with Unix \f(CW\*(C`compress\*(C'\fR. +.PP +If you have the \f(CW\*(C`uncompress\*(C'\fR program available, you can use this to read +compressed files +.PP +.Vb 4 +\& open F, "uncompress \-c $filename |"; +\& while () +\& { +\& ... +.Ve +.PP +Alternatively, if you have the \f(CW\*(C`gunzip\*(C'\fR program available, you can use +this to read compressed files +.PP +.Vb 4 +\& open F, "gunzip \-c $filename |"; +\& while () +\& { +\& ... +.Ve +.PP +and this to write compress files, if you have the \f(CW\*(C`compress\*(C'\fR program +available +.PP +.Vb 4 +\& open F, "| compress \-c $filename "; +\& print F "data"; +\& ... +\& close F ; +.Ve +.SS "Accessing .tar.Z files" +.IX Subsection "Accessing .tar.Z files" +See previous \s-1FAQ\s0 item. +.PP +If the \f(CW\*(C`Archive::Tar\*(C'\fR module is installed and either the \f(CW\*(C`uncompress\*(C'\fR or +\&\f(CW\*(C`gunzip\*(C'\fR programs are available, you can use one of these workarounds to +read \f(CW\*(C`.tar.Z\*(C'\fR files. +.PP +Firstly with \f(CW\*(C`uncompress\*(C'\fR +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& +\& open F, "uncompress \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.PP +and this with \f(CW\*(C`gunzip\*(C'\fR +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& +\& open F, "gunzip \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.PP +Similarly, if the \f(CW\*(C`compress\*(C'\fR program is available, you can use this to +write a \f(CW\*(C`.tar.Z\*(C'\fR file +.PP +.Vb 4 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& use IO::File; +\& +\& my $fh = new IO::File "| compress \-c >$filename"; +\& my $tar = Archive::Tar\->new(); +\& ... +\& $tar\->write($fh); +\& $fh\->close ; +.Ve +.SS "Zlib Library Version Support" +.IX Subsection "Zlib Library Version Support" +By default \f(CW\*(C`Compress::Raw::Zlib\*(C'\fR will build with a private copy of version +1.2.5 of the zlib library. (See the \fI\s-1README\s0\fR file for details of +how to override this behaviour) +.PP +If you decide to use a different version of the zlib library, you need to be +aware of the following issues +.IP "\(bu" 5 +First off, you must have zlib 1.0.5 or better. +.IP "\(bu" 5 +You need to have zlib 1.2.1 or better if you want to use the \f(CW\*(C`\-Merge\*(C'\fR +option with \f(CW\*(C`IO::Compress::Gzip\*(C'\fR, \f(CW\*(C`IO::Compress::Deflate\*(C'\fR and +\&\f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR. +.SH "CONSTANTS" +.IX Header "CONSTANTS" +All the \fIzlib\fR constants are automatically imported when you make use +of \fICompress::Raw::Zlib\fR. +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Compress%3A%3AZlib.3 b/data/miniconda3/man/man3/Compress%3A%3AZlib.3 new file mode 100644 index 0000000000000000000000000000000000000000..bd107ee2fef7d28ae219f47f263ce85647263914 --- /dev/null +++ b/data/miniconda3/man/man3/Compress%3A%3AZlib.3 @@ -0,0 +1,968 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Compress::Zlib 3" +.TH Compress::Zlib 3 "2020-12-18" "perl v5.32.1" "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" +Compress::Zlib \- Interface to zlib compression library +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Compress::Zlib ; +\& +\& ($d, $status) = deflateInit( [OPT] ) ; +\& $status = $d\->deflate($input, $output) ; +\& $status = $d\->flush([$flush_type]) ; +\& $d\->deflateParams(OPTS) ; +\& $d\->deflateTune(OPTS) ; +\& $d\->dict_adler() ; +\& $d\->crc32() ; +\& $d\->adler32() ; +\& $d\->total_in() ; +\& $d\->total_out() ; +\& $d\->msg() ; +\& $d\->get_Strategy(); +\& $d\->get_Level(); +\& $d\->get_BufSize(); +\& +\& ($i, $status) = inflateInit( [OPT] ) ; +\& $status = $i\->inflate($input, $output [, $eof]) ; +\& $status = $i\->inflateSync($input) ; +\& $i\->dict_adler() ; +\& $d\->crc32() ; +\& $d\->adler32() ; +\& $i\->total_in() ; +\& $i\->total_out() ; +\& $i\->msg() ; +\& $d\->get_BufSize(); +\& +\& $dest = compress($source) ; +\& $dest = uncompress($source) ; +\& +\& $gz = gzopen($filename or filehandle, $mode) ; +\& $bytesread = $gz\->gzread($buffer [,$size]) ; +\& $bytesread = $gz\->gzreadline($line) ; +\& $byteswritten = $gz\->gzwrite($buffer) ; +\& $status = $gz\->gzflush($flush) ; +\& $offset = $gz\->gztell() ; +\& $status = $gz\->gzseek($offset, $whence) ; +\& $status = $gz\->gzclose() ; +\& $status = $gz\->gzeof() ; +\& $status = $gz\->gzsetparams($level, $strategy) ; +\& $errstring = $gz\->gzerror() ; +\& $gzerrno +\& +\& $dest = Compress::Zlib::memGzip($buffer) ; +\& $dest = Compress::Zlib::memGunzip($buffer) ; +\& +\& $crc = adler32($buffer [,$crc]) ; +\& $crc = crc32($buffer [,$crc]) ; +\& +\& $crc = crc32_combine($crc1, $crc2, $len2); +\& $adler = adler32_combine($adler1, $adler2, $len2); +\& +\& my $version = Compress::Raw::Zlib::zlib_version(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fICompress::Zlib\fR module provides a Perl interface to the \fIzlib\fR +compression library (see \*(L"\s-1AUTHOR\*(R"\s0 for details about where to get +\&\fIzlib\fR). +.PP +The \f(CW\*(C`Compress::Zlib\*(C'\fR module can be split into two general areas of +functionality, namely a simple read/write interface to \fIgzip\fR files +and a low-level in-memory compression/decompression interface. +.PP +Each of these areas will be discussed in the following sections. +.SS "Notes for users of Compress::Zlib version 1" +.IX Subsection "Notes for users of Compress::Zlib version 1" +The main change in \f(CW\*(C`Compress::Zlib\*(C'\fR version 2.x is that it does not now +interface directly to the zlib library. Instead it uses the +\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR and \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR modules for +reading/writing gzip files, and the \f(CW\*(C`Compress::Raw::Zlib\*(C'\fR module for some +low-level zlib access. +.PP +The interface provided by version 2 of this module should be 100% backward +compatible with version 1. If you find a difference in the expected +behaviour please contact the author (See \*(L"\s-1AUTHOR\*(R"\s0). See \*(L"\s-1GZIP INTERFACE\*(R"\s0 +.PP +With the creation of the \f(CW\*(C`IO::Compress\*(C'\fR and \f(CW\*(C`IO::Uncompress\*(C'\fR modules no +new features are planned for \f(CW\*(C`Compress::Zlib\*(C'\fR \- the new modules do +everything that \f(CW\*(C`Compress::Zlib\*(C'\fR does and then some. Development on +\&\f(CW\*(C`Compress::Zlib\*(C'\fR will be limited to bug fixes only. +.PP +If you are writing new code, your first port of call should be one of the +new \f(CW\*(C`IO::Compress\*(C'\fR or \f(CW\*(C`IO::Uncompress\*(C'\fR modules. +.SH "GZIP INTERFACE" +.IX Header "GZIP INTERFACE" +A number of functions are supplied in \fIzlib\fR for reading and writing +\&\fIgzip\fR files that conform to \s-1RFC 1952.\s0 This module provides an interface +to most of them. +.PP +If you have previously used \f(CW\*(C`Compress::Zlib\*(C'\fR 1.x, the following +enhancements/changes have been made to the \f(CW\*(C`gzopen\*(C'\fR interface: +.IP "1." 5 +If you want to open either \s-1STDIN\s0 or \s-1STDOUT\s0 with \f(CW\*(C`gzopen\*(C'\fR, you can now +optionally use the special filename "\f(CW\*(C`\-\*(C'\fR" as a synonym for \f(CW\*(C`\e*STDIN\*(C'\fR and +\&\f(CW\*(C`\e*STDOUT\*(C'\fR. +.IP "2." 5 +In \f(CW\*(C`Compress::Zlib\*(C'\fR version 1.x, \f(CW\*(C`gzopen\*(C'\fR used the zlib library to open +the underlying file. This made things especially tricky when a Perl +filehandle was passed to \f(CW\*(C`gzopen\*(C'\fR. Behind the scenes the numeric C file +descriptor had to be extracted from the Perl filehandle and this passed to +the zlib library. +.Sp +Apart from being non-portable to some operating systems, this made it +difficult to use \f(CW\*(C`gzopen\*(C'\fR in situations where you wanted to extract/create +a gzip data stream that is embedded in a larger file, without having to +resort to opening and closing the file multiple times. +.Sp +It also made it impossible to pass a perl filehandle that wasn't associated +with a real filesystem file, like, say, an \f(CW\*(C`IO::String\*(C'\fR. +.Sp +In \f(CW\*(C`Compress::Zlib\*(C'\fR version 2.x, the \f(CW\*(C`gzopen\*(C'\fR interface has been +completely rewritten to use the IO::Compress::Gzip +for writing gzip files and IO::Uncompress::Gunzip +for reading gzip files. None of the limitations mentioned above apply. +.IP "3." 5 +Addition of \f(CW\*(C`gzseek\*(C'\fR to provide a restricted \f(CW\*(C`seek\*(C'\fR interface. +.IP "4." 5 +Added \f(CW\*(C`gztell\*(C'\fR. +.PP +A more complete and flexible interface for reading/writing gzip +files/buffers is included with the module \f(CW\*(C`IO\-Compress\-Zlib\*(C'\fR. See +IO::Compress::Gzip and +IO::Uncompress::Gunzip for more details. +.IP "\fB\f(CB$gz\fB = gzopen($filename, \f(CB$mode\fB)\fR" 5 +.IX Item "$gz = gzopen($filename, $mode)" +.PD 0 +.IP "\fB\f(CB$gz\fB = gzopen($filehandle, \f(CB$mode\fB)\fR" 5 +.IX Item "$gz = gzopen($filehandle, $mode)" +.PD +This function opens either the \fIgzip\fR file \f(CW$filename\fR for reading or +writing or attaches to the opened filehandle, \f(CW$filehandle\fR. +It returns an object on success and \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +When writing a gzip file this interface will \fIalways\fR create the smallest +possible gzip header (exactly 10 bytes). If you want greater control over +what gets stored in the gzip header (like the original filename or a +comment) use IO::Compress::Gzip instead. Similarly if +you want to read the contents of the gzip header use +IO::Uncompress::Gunzip. +.Sp +The second parameter, \f(CW$mode\fR, is used to specify whether the file is +opened for reading or writing and to optionally specify a compression +level and compression strategy when writing. The format of the \f(CW$mode\fR +parameter is similar to the mode parameter to the 'C' function \f(CW\*(C`fopen\*(C'\fR, +so \*(L"rb\*(R" is used to open for reading, \*(L"wb\*(R" for writing and \*(L"ab\*(R" for +appending (writing at the end of the file). +.Sp +To specify a compression level when writing, append a digit between 0 +and 9 to the mode string \*(-- 0 means no compression and 9 means maximum +compression. +If no compression level is specified Z_DEFAULT_COMPRESSION is used. +.Sp +To specify the compression strategy when writing, append 'f' for filtered +data, 'h' for Huffman only compression, or 'R' for run-length encoding. +If no strategy is specified Z_DEFAULT_STRATEGY is used. +.Sp +So, for example, \*(L"wb9\*(R" means open for writing with the maximum compression +using the default strategy and \*(L"wb4R\*(R" means open for writing with compression +level 4 and run-length encoding. +.Sp +Refer to the \fIzlib\fR documentation for the exact format of the \f(CW$mode\fR +parameter. +.IP "\fB\f(CB$bytesread\fB = \f(CB$gz\fB\->gzread($buffer [, \f(CB$size\fB]) ;\fR" 5 +.IX Item "$bytesread = $gz->gzread($buffer [, $size]) ;" +Reads \f(CW$size\fR bytes from the compressed file into \f(CW$buffer\fR. If +\&\f(CW$size\fR is not specified, it will default to 4096. If the scalar +\&\f(CW$buffer\fR is not large enough, it will be extended automatically. +.Sp +Returns the number of bytes actually read. On \s-1EOF\s0 it returns 0 and in +the case of an error, \-1. +.IP "\fB\f(CB$bytesread\fB = \f(CB$gz\fB\->gzreadline($line) ;\fR" 5 +.IX Item "$bytesread = $gz->gzreadline($line) ;" +Reads the next line from the compressed file into \f(CW$line\fR. +.Sp +Returns the number of bytes actually read. On \s-1EOF\s0 it returns 0 and in +the case of an error, \-1. +.Sp +It is legal to intermix calls to \f(CW\*(C`gzread\*(C'\fR and \f(CW\*(C`gzreadline\*(C'\fR. +.Sp +To maintain backward compatibility with version 1.x of this module +\&\f(CW\*(C`gzreadline\*(C'\fR ignores the \f(CW$/\fR variable \- it \fIalways\fR uses the string +\&\f(CW"\en"\fR as the line delimiter. +.Sp +If you want to read a gzip file a line at a time and have it respect the +\&\f(CW$/\fR variable (or \f(CW$INPUT_RECORD_SEPARATOR\fR, or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is +in use) see IO::Uncompress::Gunzip. +.IP "\fB\f(CB$byteswritten\fB = \f(CB$gz\fB\->gzwrite($buffer) ;\fR" 5 +.IX Item "$byteswritten = $gz->gzwrite($buffer) ;" +Writes the contents of \f(CW$buffer\fR to the compressed file. Returns the +number of bytes actually written, or 0 on error. +.IP "\fB\f(CB$status\fB = \f(CB$gz\fB\->gzflush($flush_type) ;\fR" 5 +.IX Item "$status = $gz->gzflush($flush_type) ;" +Flushes all pending output into the compressed file. +.Sp +This method takes an optional parameter, \f(CW$flush_type\fR, that controls +how the flushing will be carried out. By default the \f(CW$flush_type\fR +used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are +\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is +strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if +you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR +can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR +documentation for details. +.Sp +Returns 0 on success. +.IP "\fB\f(CB$offset\fB = \f(CB$gz\fB\->\fBgztell()\fB ;\fR" 5 +.IX Item "$offset = $gz->gztell() ;" +Returns the uncompressed file offset. +.IP "\fB\f(CB$status\fB = \f(CB$gz\fB\->gzseek($offset, \f(CB$whence\fB) ;\fR" 5 +.IX Item "$status = $gz->gzseek($offset, $whence) ;" +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the compressed file. +It is a fatal error to attempt to seek backward. +.Sp +When opened for writing, empty parts of the file will have \s-1NULL\s0 (0x00) +bytes written to them. +.Sp +The \f(CW$whence\fR parameter should be one of \s-1SEEK_SET, SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.Sp +Returns 1 on success, 0 on failure. +.IP "\fB\f(CB$gz\fB\->gzclose\fR" 5 +.IX Item "$gz->gzclose" +Closes the compressed file. Any pending data is flushed to the file +before it is closed. +.Sp +Returns 0 on success. +.IP "\fB\f(CB$gz\fB\->gzsetparams($level, \f(CB$strategy\fB\fR" 5 +.IX Item "$gz->gzsetparams($level, $strategy" +Change settings for the deflate stream \f(CW$gz\fR. +.Sp +The list of the valid options is shown below. Options not specified +will remain unchanged. +.Sp +Note: This method is only available if you are running zlib 1.0.6 or better. +.RS 5 +.IP "\fB\f(CB$level\fB\fR" 5 +.IX Item "$level" +Defines the compression level. Valid values are 0 through 9, +\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and +\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.IP "\fB\f(CB$strategy\fB\fR" 5 +.IX Item "$strategy" +Defines the strategy used to tune the compression. The valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.RE +.RS 5 +.RE +.IP "\fB\f(CB$gz\fB\->gzerror\fR" 5 +.IX Item "$gz->gzerror" +Returns the \fIzlib\fR error message or number for the last operation +associated with \f(CW$gz\fR. The return value will be the \fIzlib\fR error +number when used in a numeric context and the \fIzlib\fR error message +when used in a string context. The \fIzlib\fR error number constants, +shown below, are available for use. +.Sp +.Vb 7 +\& Z_OK +\& Z_STREAM_END +\& Z_ERRNO +\& Z_STREAM_ERROR +\& Z_DATA_ERROR +\& Z_MEM_ERROR +\& Z_BUF_ERROR +.Ve +.IP "\fB\f(CB$gzerrno\fB\fR" 5 +.IX Item "$gzerrno" +The \f(CW$gzerrno\fR scalar holds the error code associated with the most +recent \fIgzip\fR routine. Note that unlike \f(CW\*(C`gzerror()\*(C'\fR, the error is +\&\fInot\fR associated with a particular file. +.Sp +As with \f(CW\*(C`gzerror()\*(C'\fR it returns an error number in numeric context and +an error message in string context. Unlike \f(CW\*(C`gzerror()\*(C'\fR though, the +error message will correspond to the \fIzlib\fR message when the error is +associated with \fIzlib\fR itself, or the \s-1UNIX\s0 error message when it is +not (i.e. \fIzlib\fR returned \f(CW\*(C`Z_ERRORNO\*(C'\fR). +.Sp +As there is an overlap between the error numbers used by \fIzlib\fR and +\&\s-1UNIX,\s0 \f(CW$gzerrno\fR should only be used to check for the presence of +\&\fIan\fR error in numeric context. Use \f(CW\*(C`gzerror()\*(C'\fR to check for specific +\&\fIzlib\fR errors. The \fIgzcat\fR example below shows how the variable can +be used safely. +.SS "Examples" +.IX Subsection "Examples" +Here is an example script which uses the interface. It implements a +\&\fIgzcat\fR function. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Zlib ; +\& +\& # use stdin if no files supplied +\& @ARGV = \*(Aq\-\*(Aq unless @ARGV ; +\& +\& foreach my $file (@ARGV) { +\& my $buffer ; +\& +\& my $gz = gzopen($file, "rb") +\& or die "Cannot open $file: $gzerrno\en" ; +\& +\& print $buffer while $gz\->gzread($buffer) > 0 ; +\& +\& die "Error reading from $file: $gzerrno" . ($gzerrno+0) . "\en" +\& if $gzerrno != Z_STREAM_END ; +\& +\& $gz\->gzclose() ; +\& } +.Ve +.PP +Below is a script which makes use of \f(CW\*(C`gzreadline\*(C'\fR. It implements a +very simple \fIgrep\fR like script. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Zlib ; +\& +\& die "Usage: gzgrep pattern [file...]\en" +\& unless @ARGV >= 1; +\& +\& my $pattern = shift ; +\& +\& # use stdin if no files supplied +\& @ARGV = \*(Aq\-\*(Aq unless @ARGV ; +\& +\& foreach my $file (@ARGV) { +\& my $gz = gzopen($file, "rb") +\& or die "Cannot open $file: $gzerrno\en" ; +\& +\& while ($gz\->gzreadline($_) > 0) { +\& print if /$pattern/ ; +\& } +\& +\& die "Error reading from $file: $gzerrno\en" +\& if $gzerrno != Z_STREAM_END ; +\& +\& $gz\->gzclose() ; +\& } +.Ve +.PP +This script, \fIgzstream\fR, does the opposite of the \fIgzcat\fR script +above. It reads from standard input and writes a gzip data stream to +standard output. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Zlib ; +\& +\& binmode STDOUT; # gzopen only sets it on the fd +\& +\& my $gz = gzopen(\e*STDOUT, "wb") +\& or die "Cannot open stdout: $gzerrno\en" ; +\& +\& while (<>) { +\& $gz\->gzwrite($_) +\& or die "error writing: $gzerrno\en" ; +\& } +\& +\& $gz\->gzclose ; +.Ve +.SS "Compress::Zlib::memGzip" +.IX Subsection "Compress::Zlib::memGzip" +This function is used to create an in-memory gzip file with the minimum +possible gzip header (exactly 10 bytes). +.PP +.Vb 2 +\& $dest = Compress::Zlib::memGzip($buffer) +\& or die "Cannot compress: $gzerrno\en"; +.Ve +.PP +If successful, it returns the in-memory gzip file. Otherwise it returns +\&\f(CW\*(C`undef\*(C'\fR and the \f(CW$gzerrno\fR variable will store the zlib error code. +.PP +The \f(CW$buffer\fR parameter can either be a scalar or a scalar reference. +.PP +See IO::Compress::Gzip for an alternative way to +carry out in-memory gzip compression. +.SS "Compress::Zlib::memGunzip" +.IX Subsection "Compress::Zlib::memGunzip" +This function is used to uncompress an in-memory gzip file. +.PP +.Vb 2 +\& $dest = Compress::Zlib::memGunzip($buffer) +\& or die "Cannot uncompress: $gzerrno\en"; +.Ve +.PP +If successful, it returns the uncompressed gzip file. Otherwise it +returns \f(CW\*(C`undef\*(C'\fR and the \f(CW$gzerrno\fR variable will store the zlib error +code. +.PP +The \f(CW$buffer\fR parameter can either be a scalar or a scalar reference. The +contents of the \f(CW$buffer\fR parameter are destroyed after calling this function. +.PP +If \f(CW$buffer\fR consists of multiple concatenated gzip data streams only the +first will be uncompressed. Use \f(CW\*(C`gunzip\*(C'\fR with the \f(CW\*(C`MultiStream\*(C'\fR option in +the \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR module if you need to deal with concatenated +data streams. +.PP +See IO::Uncompress::Gunzip for an alternative way +to carry out in-memory gzip uncompression. +.SH "COMPRESS/UNCOMPRESS" +.IX Header "COMPRESS/UNCOMPRESS" +Two functions are provided to perform in-memory compression/uncompression of +\&\s-1RFC 1950\s0 data streams. They are called \f(CW\*(C`compress\*(C'\fR and \f(CW\*(C`uncompress\*(C'\fR. +.IP "\fB\f(CB$dest\fB = compress($source [, \f(CB$level\fB] ) ;\fR" 5 +.IX Item "$dest = compress($source [, $level] ) ;" +Compresses \f(CW$source\fR. If successful it returns the compressed +data. Otherwise it returns \fIundef\fR. +.Sp +The source buffer, \f(CW$source\fR, can either be a scalar or a scalar +reference. +.Sp +The \f(CW$level\fR parameter defines the compression level. Valid values are +0 through 9, \f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, +\&\f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +If \f(CW$level\fR is not specified \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR will be used. +.IP "\fB\f(CB$dest\fB = uncompress($source) ;\fR" 5 +.IX Item "$dest = uncompress($source) ;" +Uncompresses \f(CW$source\fR. If successful it returns the uncompressed +data. Otherwise it returns \fIundef\fR. +.Sp +The source buffer can either be a scalar or a scalar reference. +.PP +Please note: the two functions defined above are \fInot\fR compatible with +the Unix commands of the same name. +.PP +See IO::Deflate and IO::Inflate included with +this distribution for an alternative interface for reading/writing \s-1RFC 1950\s0 +files/buffers. +.SH "Deflate Interface" +.IX Header "Deflate Interface" +This section defines an interface that allows in-memory compression using +the \fIdeflate\fR interface provided by zlib. +.PP +Here is a definition of the interface available: +.SS "\fB($d, \fP\f(CB$status\fP\fB) = deflateInit( [\s-1OPT\s0] )\fP" +.IX Subsection "($d, $status) = deflateInit( [OPT] )" +Initialises a deflation stream. +.PP +It combines the features of the \fIzlib\fR functions \f(CW\*(C`deflateInit\*(C'\fR, +\&\f(CW\*(C`deflateInit2\*(C'\fR and \f(CW\*(C`deflateSetDictionary\*(C'\fR. +.PP +If successful, it will return the initialised deflation stream, \f(CW$d\fR +and \f(CW$status\fR of \f(CW\*(C`Z_OK\*(C'\fR in a list context. In scalar context it +returns the deflation stream, \f(CW$d\fR, only. +.PP +If not successful, the returned deflation stream (\f(CW$d\fR) will be +\&\fIundef\fR and \f(CW$status\fR will hold the exact \fIzlib\fR error code. +.PP +The function optionally takes a number of named options specified as +\&\f(CW\*(C`\-Name=>value\*(C'\fR pairs. This allows individual options to be +tailored without having to specify them all in the parameter list. +.PP +For backward compatibility, it is also possible to pass the parameters +as a reference to a hash containing the name=>value pairs. +.PP +The function takes one optional parameter, a reference to a hash. The +contents of the hash allow the deflation interface to be tailored. +.PP +Here is a list of the valid options: +.IP "\fB\-Level\fR" 5 +.IX Item "-Level" +Defines the compression level. Valid values are 0 through 9, +\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and +\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.Sp +The default is Z_DEFAULT_COMPRESSION. +.IP "\fB\-Method\fR" 5 +.IX Item "-Method" +Defines the compression method. The only valid value at present (and +the default) is Z_DEFLATED. +.IP "\fB\-WindowBits\fR" 5 +.IX Item "-WindowBits" +To create an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive number. +.Sp +To create an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR. +.Sp +For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR refer +to the \fIzlib\fR documentation for \fIdeflateInit2\fR. +.Sp +Defaults to \s-1MAX_WBITS.\s0 +.IP "\fB\-MemLevel\fR" 5 +.IX Item "-MemLevel" +For a definition of the meaning and valid values for \f(CW\*(C`MemLevel\*(C'\fR +refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR. +.Sp +Defaults to \s-1MAX_MEM_LEVEL.\s0 +.IP "\fB\-Strategy\fR" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. The valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.Sp +The default is Z_DEFAULT_STRATEGY. +.IP "\fB\-Dictionary\fR" 5 +.IX Item "-Dictionary" +When a dictionary is specified \fICompress::Zlib\fR will automatically +call \f(CW\*(C`deflateSetDictionary\*(C'\fR directly after calling \f(CW\*(C`deflateInit\*(C'\fR. The +Adler32 value for the dictionary can be obtained by calling the method +\&\f(CW\*(C`$d\->dict_adler()\*(C'\fR. +.Sp +The default is no dictionary. +.IP "\fB\-Bufsize\fR" 5 +.IX Item "-Bufsize" +Sets the initial size for the deflation buffer. If the buffer has to be +reallocated to increase the size, it will grow in increments of +\&\f(CW\*(C`Bufsize\*(C'\fR. +.Sp +The default is 4096. +.PP +Here is an example of using the \f(CW\*(C`deflateInit\*(C'\fR optional parameter list +to override the default buffer size and compression level. All other +options will take their default values. +.PP +.Vb 2 +\& deflateInit( \-Bufsize => 300, +\& \-Level => Z_BEST_SPEED ) ; +.Ve +.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->deflate($buffer)\fP" +.IX Subsection "($out, $status) = $d->deflate($buffer)" +Deflates the contents of \f(CW$buffer\fR. The buffer can either be a scalar +or a scalar reference. When finished, \f(CW$buffer\fR will be +completely processed (assuming there were no errors). If the deflation +was successful it returns the deflated output, \f(CW$out\fR, and a status +value, \f(CW$status\fR, of \f(CW\*(C`Z_OK\*(C'\fR. +.PP +On error, \f(CW$out\fR will be \fIundef\fR and \f(CW$status\fR will contain the +\&\fIzlib\fR error code. +.PP +In a scalar context \f(CW\*(C`deflate\*(C'\fR will return \f(CW$out\fR only. +.PP +As with the \fIdeflate\fR function in \fIzlib\fR, it is not necessarily the +case that any output will be produced by this method. So don't rely on +the fact that \f(CW$out\fR is empty for an error test. +.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->flush()\fP =head2 \fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->flush($flush_type)\fP" +.IX Subsection "($out, $status) = $d->flush() =head2 ($out, $status) = $d->flush($flush_type)" +Typically used to finish the deflation. Any pending output will be +returned via \f(CW$out\fR. +\&\f(CW$status\fR will have a value \f(CW\*(C`Z_OK\*(C'\fR if successful. +.PP +In a scalar context \f(CW\*(C`flush\*(C'\fR will return \f(CW$out\fR only. +.PP +Note that flushing can seriously degrade the compression ratio, so it +should only be used to terminate a decompression (using \f(CW\*(C`Z_FINISH\*(C'\fR) or +when you want to create a \fIfull flush point\fR (using \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR). +.PP +By default the \f(CW\*(C`flush_type\*(C'\fR used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values +for \f(CW\*(C`flush_type\*(C'\fR are \f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_PARTIAL_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR +and \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR. It is strongly recommended that you only set the +\&\f(CW\*(C`flush_type\*(C'\fR parameter if you fully understand the implications of +what it does. See the \f(CW\*(C`zlib\*(C'\fR documentation for details. +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateParams([\s-1OPT\s0])\fP" +.IX Subsection "$status = $d->deflateParams([OPT])" +Change settings for the deflate stream \f(CW$d\fR. +.PP +The list of the valid options is shown below. Options not specified +will remain unchanged. +.IP "\fB\-Level\fR" 5 +.IX Item "-Level" +Defines the compression level. Valid values are 0 through 9, +\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and +\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR. +.IP "\fB\-Strategy\fR" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. The valid values are +\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR. +.SS "\fB\fP\f(CB$d\fP\fB\->dict_adler()\fP" +.IX Subsection "$d->dict_adler()" +Returns the adler32 value for the dictionary. +.SS "\fB\fP\f(CB$d\fP\fB\->msg()\fP" +.IX Subsection "$d->msg()" +Returns the last error message generated by zlib. +.SS "\fB\fP\f(CB$d\fP\fB\->total_in()\fP" +.IX Subsection "$d->total_in()" +Returns the total number of bytes uncompressed bytes input to deflate. +.SS "\fB\fP\f(CB$d\fP\fB\->total_out()\fP" +.IX Subsection "$d->total_out()" +Returns the total number of compressed bytes output from deflate. +.SS "Example" +.IX Subsection "Example" +Here is a trivial example of using \f(CW\*(C`deflate\*(C'\fR. It simply reads standard +input, deflates it and writes it to standard output. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Zlib ; +\& +\& binmode STDIN; +\& binmode STDOUT; +\& my $x = deflateInit() +\& or die "Cannot create a deflation stream\en" ; +\& +\& my ($output, $status) ; +\& while (<>) +\& { +\& ($output, $status) = $x\->deflate($_) ; +\& +\& $status == Z_OK +\& or die "deflation failed\en" ; +\& +\& print $output ; +\& } +\& +\& ($output, $status) = $x\->flush() ; +\& +\& $status == Z_OK +\& or die "deflation failed\en" ; +\& +\& print $output ; +.Ve +.SH "Inflate Interface" +.IX Header "Inflate Interface" +This section defines the interface available that allows in-memory +uncompression using the \fIdeflate\fR interface provided by zlib. +.PP +Here is a definition of the interface: +.SS "\fB($i, \fP\f(CB$status\fP\fB) = inflateInit()\fP" +.IX Subsection "($i, $status) = inflateInit()" +Initialises an inflation stream. +.PP +In a list context it returns the inflation stream, \f(CW$i\fR, and the +\&\fIzlib\fR status code in \f(CW$status\fR. In a scalar context it returns the +inflation stream only. +.PP +If successful, \f(CW$i\fR will hold the inflation stream and \f(CW$status\fR will +be \f(CW\*(C`Z_OK\*(C'\fR. +.PP +If not successful, \f(CW$i\fR will be \fIundef\fR and \f(CW$status\fR will hold the +\&\fIzlib\fR error code. +.PP +The function optionally takes a number of named options specified as +\&\f(CW\*(C`\-Name=>value\*(C'\fR pairs. This allows individual options to be +tailored without having to specify them all in the parameter list. +.PP +For backward compatibility, it is also possible to pass the parameters +as a reference to a hash containing the name=>value pairs. +.PP +The function takes one optional parameter, a reference to a hash. The +contents of the hash allow the deflation interface to be tailored. +.PP +Here is a list of the valid options: +.IP "\fB\-WindowBits\fR" 5 +.IX Item "-WindowBits" +To uncompress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive number. +.Sp +To uncompress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR. +.Sp +For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR refer +to the \fIzlib\fR documentation for \fIinflateInit2\fR. +.Sp +Defaults to \s-1MAX_WBITS.\s0 +.IP "\fB\-Bufsize\fR" 5 +.IX Item "-Bufsize" +Sets the initial size for the inflation buffer. If the buffer has to be +reallocated to increase the size, it will grow in increments of +\&\f(CW\*(C`Bufsize\*(C'\fR. +.Sp +Default is 4096. +.IP "\fB\-Dictionary\fR" 5 +.IX Item "-Dictionary" +The default is no dictionary. +.PP +Here is an example of using the \f(CW\*(C`inflateInit\*(C'\fR optional parameter to +override the default buffer size. +.PP +.Vb 1 +\& inflateInit( \-Bufsize => 300 ) ; +.Ve +.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$i\fP\fB\->inflate($buffer)\fP" +.IX Subsection "($out, $status) = $i->inflate($buffer)" +Inflates the complete contents of \f(CW$buffer\fR. The buffer can either be +a scalar or a scalar reference. +.PP +Returns \f(CW\*(C`Z_OK\*(C'\fR if successful and \f(CW\*(C`Z_STREAM_END\*(C'\fR if the end of the +compressed data has been successfully reached. +If not successful, \f(CW$out\fR will be \fIundef\fR and \f(CW$status\fR will hold +the \fIzlib\fR error code. +.PP +The \f(CW$buffer\fR parameter is modified by \f(CW\*(C`inflate\*(C'\fR. On completion it +will contain what remains of the input buffer after inflation. This +means that \f(CW$buffer\fR will be an empty string when the return status is +\&\f(CW\*(C`Z_OK\*(C'\fR. When the return status is \f(CW\*(C`Z_STREAM_END\*(C'\fR the \f(CW$buffer\fR +parameter will contains what (if anything) was stored in the input +buffer after the deflated data stream. +.PP +This feature is useful when processing a file format that encapsulates +a compressed data stream (e.g. gzip, zip). +.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateSync($buffer)\fP" +.IX Subsection "$status = $i->inflateSync($buffer)" +Scans \f(CW$buffer\fR until it reaches either a \fIfull flush point\fR or the +end of the buffer. +.PP +If a \fIfull flush point\fR is found, \f(CW\*(C`Z_OK\*(C'\fR is returned and \f(CW$buffer\fR +will be have all data up to the flush point removed. This can then be +passed to the \f(CW\*(C`deflate\*(C'\fR method. +.PP +Any other return code means that a flush point was not found. If more +data is available, \f(CW\*(C`inflateSync\*(C'\fR can be called repeatedly with more +compressed data until the flush point is found. +.SS "\fB\fP\f(CB$i\fP\fB\->dict_adler()\fP" +.IX Subsection "$i->dict_adler()" +Returns the adler32 value for the dictionary. +.SS "\fB\fP\f(CB$i\fP\fB\->msg()\fP" +.IX Subsection "$i->msg()" +Returns the last error message generated by zlib. +.SS "\fB\fP\f(CB$i\fP\fB\->total_in()\fP" +.IX Subsection "$i->total_in()" +Returns the total number of bytes compressed bytes input to inflate. +.SS "\fB\fP\f(CB$i\fP\fB\->total_out()\fP" +.IX Subsection "$i->total_out()" +Returns the total number of uncompressed bytes output from inflate. +.SS "Example" +.IX Subsection "Example" +Here is an example of using \f(CW\*(C`inflate\*(C'\fR. +.PP +.Vb 2 +\& use strict ; +\& use warnings ; +\& +\& use Compress::Zlib ; +\& +\& my $x = inflateInit() +\& or die "Cannot create a inflation stream\en" ; +\& +\& my $input = \*(Aq\*(Aq ; +\& binmode STDIN; +\& binmode STDOUT; +\& +\& my ($output, $status) ; +\& while (read(STDIN, $input, 4096)) +\& { +\& ($output, $status) = $x\->inflate(\e$input) ; +\& +\& print $output +\& if $status == Z_OK or $status == Z_STREAM_END ; +\& +\& last if $status != Z_OK ; +\& } +\& +\& die "inflation failed\en" +\& unless $status == Z_STREAM_END ; +.Ve +.SH "CHECKSUM FUNCTIONS" +.IX Header "CHECKSUM FUNCTIONS" +Two functions are provided by \fIzlib\fR to calculate checksums. For the +Perl interface, the order of the two parameters in both functions has +been reversed. This allows both running checksums and one off +calculations to be done. +.PP +.Vb 2 +\& $crc = adler32($buffer [,$crc]) ; +\& $crc = crc32($buffer [,$crc]) ; +.Ve +.PP +The buffer parameters can either be a scalar or a scalar reference. +.PP +If the \f(CW$crc\fR parameters is \f(CW\*(C`undef\*(C'\fR, the crc value will be reset. +.PP +If you have built this module with zlib 1.2.3 or better, two more +CRC-related functions are available. +.PP +.Vb 2 +\& $crc = crc32_combine($crc1, $crc2, $len2); +\& $adler = adler32_combine($adler1, $adler2, $len2); +.Ve +.PP +These functions allow checksums to be merged. +Refer to the \fIzlib\fR documentation for more details. +.SH "Misc" +.IX Header "Misc" +.ie n .SS "my $version = \fBCompress::Zlib::zlib_version()\fP;" +.el .SS "my \f(CW$version\fP = \fBCompress::Zlib::zlib_version()\fP;" +.IX Subsection "my $version = Compress::Zlib::zlib_version();" +Returns the version of the zlib library. +.SH "CONSTANTS" +.IX Header "CONSTANTS" +All the \fIzlib\fR constants are automatically imported when you make use +of \fICompress::Zlib\fR. +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 1995\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Config%3A%3AExtensions.3 b/data/miniconda3/man/man3/Config%3A%3AExtensions.3 new file mode 100644 index 0000000000000000000000000000000000000000..a8310629bd3b488dadf8fa33760c8e776c877310 --- /dev/null +++ b/data/miniconda3/man/man3/Config%3A%3AExtensions.3 @@ -0,0 +1,173 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Config::Extensions 3" +.TH Config::Extensions 3 "2020-12-18" "perl v5.32.1" "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" +Config::Extensions \- hash lookup of which core extensions were built. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Config::Extensions \*(Aq%Extensions\*(Aq; +\& if ($Extensions{PerlIO::via}) { +\& # This perl has PerlIO::via built +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Config::Extensions module provides a hash \f(CW%Extensions\fR containing all +the core extensions that were enabled for this perl. The hash is keyed by +extension name, with each entry having one of 3 possible values: +.IP "dynamic" 4 +.IX Item "dynamic" +The extension is dynamically linked +.IP "nonxs" 4 +.IX Item "nonxs" +The extension is pure perl, so doesn't need linking to the perl executable +.IP "static" 4 +.IX Item "static" +The extension is statically linked to the perl binary +.PP +As all values evaluate to true, a simple \f(CW\*(C`if\*(C'\fR test is good enough to determine +whether an extension is present. +.PP +All the data uses to generate the \f(CW%Extensions\fR hash is already present in +the \f(CW\*(C`Config\*(C'\fR module, but not in such a convenient format to quickly reference. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nicholas Clark diff --git a/data/miniconda3/man/man3/Config%3A%3APerl%3A%3AV.3 b/data/miniconda3/man/man3/Config%3A%3APerl%3A%3AV.3 new file mode 100644 index 0000000000000000000000000000000000000000..3622b0a5036f420024bf4f16b39ec713e46d4557 --- /dev/null +++ b/data/miniconda3/man/man3/Config%3A%3APerl%3A%3AV.3 @@ -0,0 +1,296 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Config::Perl::V 3" +.TH Config::Perl::V 3 "2020-12-18" "perl v5.32.1" "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" +Config::Perl::V \- Structured data retrieval of perl \-V output +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Config::Perl::V; +\& +\& my $local_config = Config::Perl::V::myconfig (); +\& print $local_config\->{config}{osname}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.ie n .SS "$conf = myconfig ()" +.el .SS "\f(CW$conf\fP = myconfig ()" +.IX Subsection "$conf = myconfig ()" +This function will collect the data described in \*(L"The hash structure\*(R" below, +and return that as a hash reference. It optionally accepts an option to +include more entries from \f(CW%ENV\fR. See \*(L"environment\*(R" below. +.PP +Note that this will not work on uninstalled perls when called with +\&\f(CW\*(C`\-I/path/to/uninstalled/perl/lib\*(C'\fR, but it works when that path is in +\&\f(CW$PERL5LIB\fR or in \f(CW$PERL5OPT\fR, as paths passed using \f(CW\*(C`\-I\*(C'\fR are not +known when the \f(CW\*(C`\-V\*(C'\fR information is collected. +.ie n .SS "$conf = plv2hash ($text [, ...])" +.el .SS "\f(CW$conf\fP = plv2hash ($text [, ...])" +.IX Subsection "$conf = plv2hash ($text [, ...])" +Convert a sole 'perl \-V' text block, or list of lines, to a complete +myconfig hash. All unknown entries are defaulted. +.ie n .SS "$info = summary ([$conf])" +.el .SS "\f(CW$info\fP = summary ([$conf])" +.IX Subsection "$info = summary ([$conf])" +Return an arbitrary selection of the information. If no \f(CW$conf\fR is +given, \f(CW\*(C`myconfig ()\*(C'\fR is used instead. +.ie n .SS "$md5 = signature ([$conf])" +.el .SS "\f(CW$md5\fP = signature ([$conf])" +.IX Subsection "$md5 = signature ([$conf])" +Return the \s-1MD5\s0 of the info returned by \f(CW\*(C`summary ()\*(C'\fR without the +\&\f(CW\*(C`config_args\*(C'\fR entry. +.PP +If \f(CW\*(C`Digest::MD5\*(C'\fR is not available, it return a string with only \f(CW0\fR's. +.SS "The hash structure" +.IX Subsection "The hash structure" +The returned hash consists of 4 parts: +.IP "build" 4 +.IX Item "build" +This information is extracted from the second block that is emitted by +\&\f(CW\*(C`perl \-V\*(C'\fR, and usually looks something like +.Sp +.Vb 10 +\& Characteristics of this binary (from libperl): +\& Compile\-time options: DEBUGGING USE_64_BIT_INT USE_LARGE_FILES +\& Locally applied patches: +\& defined\-or +\& MAINT24637 +\& Built under linux +\& Compiled at Jun 13 2005 10:44:20 +\& @INC: +\& /usr/lib/perl5/5.8.7/i686\-linux\-64int +\& /usr/lib/perl5/5.8.7 +\& /usr/lib/perl5/site_perl/5.8.7/i686\-linux\-64int +\& /usr/lib/perl5/site_perl/5.8.7 +\& /usr/lib/perl5/site_perl +\& . +.Ve +.Sp +or +.Sp +.Vb 9 +\& Characteristics of this binary (from libperl): +\& Compile\-time options: DEBUGGING MULTIPLICITY +\& PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT +\& PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL +\& PERL_USE_SAFE_PUTENV USE_ITHREADS +\& USE_LARGE_FILES USE_PERLIO +\& USE_REENTRANT_API +\& Built under linux +\& Compiled at Jan 28 2009 15:26:59 +.Ve +.Sp +This information is not available anywhere else, including \f(CW%Config\fR, +but it is the information that is only known to the perl binary. +.Sp +The extracted information is stored in 5 entries in the \f(CW\*(C`build\*(C'\fR hash: +.RS 4 +.IP "osname" 4 +.IX Item "osname" +This is most likely the same as \f(CW$Config{osname}\fR, and was the name +known when perl was built. It might be different if perl was cross-compiled. +.Sp +The default for this field, if it cannot be extracted, is to copy +\&\f(CW$Config{osname}\fR. The two may be differing in casing (OpenBSD vs openbsd). +.IP "stamp" 4 +.IX Item "stamp" +This is the time string for which the perl binary was compiled. The default +value is 0. +.IP "options" 4 +.IX Item "options" +This is a hash with all the known defines as keys. The value is either 0, +which means unknown or unset, or 1, which means defined. +.IP "derived" 4 +.IX Item "derived" +As some variables are reported by a different name in the output of \f(CW\*(C`perl \-V\*(C'\fR +than their actual name in \f(CW%Config\fR, I decided to leave the \f(CW\*(C`config\*(C'\fR entry +as close to reality as possible, and put in the entries that might have been +guessed by the printed output in a separate block. +.IP "patches" 4 +.IX Item "patches" +This is a list of optionally locally applied patches. Default is an empty list. +.RE +.RS 4 +.RE +.IP "environment" 4 +.IX Item "environment" +By default this hash is only filled with the environment variables +out of \f(CW%ENV\fR that start with \f(CW\*(C`PERL\*(C'\fR, but you can pass the \f(CW\*(C`env\*(C'\fR option +to myconfig to get more +.Sp +.Vb 2 +\& my $conf = Config::Perl::V::myconfig ({ env => qr/^ORACLE/ }); +\& my $conf = Config::Perl::V::myconfig ([ env => qr/^ORACLE/ ]); +.Ve +.IP "config" 4 +.IX Item "config" +This hash is filled with the variables that \f(CW\*(C`perl \-V\*(C'\fR fills its report +with, and it has the same variables that \f(CW\*(C`Config::myconfig\*(C'\fR returns +from \f(CW%Config\fR. +.IP "inc" 4 +.IX Item "inc" +This is the list of default \f(CW@INC\fR. +.SH "REASONING" +.IX Header "REASONING" +This module was written to be able to return the configuration for the +currently used perl as deeply as needed for the \s-1CPANTESTERS\s0 framework. +Up until now they used the output of myconfig as a single text blob, +and so it was missing the vital binary characteristics of the running +perl and the optional applied patches. +.SH "BUGS" +.IX Header "BUGS" +Please feedback what is wrong +.SH "TODO" +.IX Header "TODO" +.Vb 4 +\& * Implement retrieval functions/methods +\& * Documentation +\& * Error checking +\& * Tests +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +H.Merijn Brand +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (C) 2009\-2018 H.Merijn Brand +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Config.3 b/data/miniconda3/man/man3/Config.3 new file mode 100644 index 0000000000000000000000000000000000000000..02834741413cc45bf3c2b9fb089efc3c047f8645 --- /dev/null +++ b/data/miniconda3/man/man3/Config.3 @@ -0,0 +1,9780 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Config 3" +.TH Config 3 "2023-12-23" "perl v5.32.1" "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" +Config \- access Perl configuration information +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Config; +\& if ($Config{usethreads}) { +\& print "has thread support\en" +\& } +\& +\& use Config qw(myconfig config_sh config_vars config_re); +\& +\& print myconfig(); +\& +\& print config_sh(); +\& +\& print config_re(); +\& +\& config_vars(qw(osname archname)); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Config module contains all the information that was available to +the \f(CW\*(C`Configure\*(C'\fR program at Perl build time (over 900 values). +.PP +Shell variables from the \fIconfig.sh\fR file (written by Configure) are +stored in the readonly-variable \f(CW%Config\fR, indexed by their names. +.PP +Values stored in config.sh as 'undef' are returned as undefined +values. The perl \f(CW\*(C`exists\*(C'\fR function can be used to check if a +named variable exists. +.PP +For a description of the variables, please have a look at the +Glossary file, as written in the Porting folder, or use the url: +https://github.com/Perl/perl5/blob/blead/Porting/Glossary +.IP "\fBmyconfig()\fR" 4 +.IX Item "myconfig()" +Returns a textual summary of the major perl configuration values. +See also \f(CW\*(C`\-V\*(C'\fR in \*(L"Command Switches\*(R" in perlrun. +.IP "\fBconfig_sh()\fR" 4 +.IX Item "config_sh()" +Returns the entire perl configuration information in the form of the +original config.sh shell variable assignment script. +.IP "config_re($regex)" 4 +.IX Item "config_re($regex)" +Like \fBconfig_sh()\fR but returns, as a list, only the config entries who's +names match the \f(CW$regex\fR. +.IP "config_vars(@names)" 4 +.IX Item "config_vars(@names)" +Prints to \s-1STDOUT\s0 the values of the named configuration variable. Each is +printed on a separate line in the form: +.Sp +.Vb 1 +\& name=\*(Aqvalue\*(Aq; +.Ve +.Sp +Names which are unknown are output as \f(CW\*(C`name=\*(AqUNKNOWN\*(Aq;\*(C'\fR. +See also \f(CW\*(C`\-V:name\*(C'\fR in \*(L"Command Switches\*(R" in perlrun. +.IP "\fBbincompat_options()\fR" 4 +.IX Item "bincompat_options()" +Returns a list of C pre-processor options used when compiling this \fIperl\fR +binary, which affect its binary compatibility with extensions. +\&\f(CW\*(C`bincompat_options()\*(C'\fR and \f(CW\*(C`non_bincompat_options()\*(C'\fR are shown together in +the output of \f(CW\*(C`perl \-V\*(C'\fR as \fICompile-time options\fR. +.IP "\fBnon_bincompat_options()\fR" 4 +.IX Item "non_bincompat_options()" +Returns a list of C pre-processor options used when compiling this \fIperl\fR +binary, which do not affect binary compatibility with extensions. +.IP "\fBcompile_date()\fR" 4 +.IX Item "compile_date()" +Returns the compile date (as a string), equivalent to what is shown by +\&\f(CW\*(C`perl \-V\*(C'\fR +.IP "\fBlocal_patches()\fR" 4 +.IX Item "local_patches()" +Returns a list of the names of locally applied patches, equivalent to what +is shown by \f(CW\*(C`perl \-V\*(C'\fR. +.IP "\fBheader_files()\fR" 4 +.IX Item "header_files()" +Returns a list of the header files that should be used as dependencies for +\&\s-1XS\s0 code, for this version of Perl on this platform. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Here's a more sophisticated example of using \f(CW%Config:\fR +.PP +.Vb 2 +\& use Config; +\& use strict; +\& +\& my %sig_num; +\& my @sig_name; +\& unless($Config{sig_name} && $Config{sig_num}) { +\& die "No sigs?"; +\& } else { +\& my @names = split \*(Aq \*(Aq, $Config{sig_name}; +\& @sig_num{@names} = split \*(Aq \*(Aq, $Config{sig_num}; +\& foreach (@names) { +\& $sig_name[$sig_num{$_}] ||= $_; +\& } +\& } +\& +\& print "signal #17 = $sig_name[17]\en"; +\& if ($sig_num{ALRM}) { +\& print "SIGALRM is $sig_num{ALRM}\en"; +\& } +.Ve +.SH "WARNING" +.IX Header "WARNING" +Because this information is not stored within the perl executable +itself it is possible (but unlikely) that the information does not +relate to the actual perl binary which is being used to access it. +.PP +The Config module is installed into the architecture and version +specific library directory ($Config{installarchlib}) and it checks the +perl version number when loaded. +.PP +The values stored in config.sh may be either single-quoted or +double-quoted. Double-quoted strings are handy for those cases where you +need to include escape sequences in the strings. To avoid runtime variable +interpolation, any \f(CW\*(C`$\*(C'\fR and \f(CW\*(C`@\*(C'\fR characters are replaced by \f(CW\*(C`\e$\*(C'\fR and +\&\f(CW\*(C`\e@\*(C'\fR, respectively. This isn't foolproof, of course, so don't embed \f(CW\*(C`\e$\*(C'\fR +or \f(CW\*(C`\e@\*(C'\fR in double-quoted strings unless you're willing to deal with the +consequences. (The slashes will end up escaped and the \f(CW\*(C`$\*(C'\fR or \f(CW\*(C`@\*(C'\fR will +trigger variable interpolation) +.SH "GLOSSARY" +.IX Header "GLOSSARY" +Most \f(CW\*(C`Config\*(C'\fR variables are determined by the \f(CW\*(C`Configure\*(C'\fR script +on platforms supported by it (which is most \s-1UNIX\s0 platforms). Some +platforms have custom-made \f(CW\*(C`Config\*(C'\fR variables, and may thus not have +some of the variables described below, or may have extraneous variables +specific to that particular port. See the port specific documentation +in such cases. +.SS "_" +.IX Subsection "_" +.ie n .IP """_a""" 4 +.el .IP "\f(CW_a\fR" 4 +.IX Item "_a" +From \fIUnix.U\fR: +.Sp +This variable defines the extension used for ordinary library files. +For unix, it is \fI.a\fR. The \fI.\fR is included. Other possible +values include \fI.lib\fR. +.ie n .IP """_exe""" 4 +.el .IP "\f(CW_exe\fR" 4 +.IX Item "_exe" +From \fIUnix.U\fR: +.Sp +This variable defines the extension used for executable files. +\&\f(CW\*(C`DJGPP\*(C'\fR, Cygwin and \fI\s-1OS/2\s0\fR use \fI.exe\fR. Stratus \f(CW\*(C`VOS\*(C'\fR uses \fI.pm\fR. +On operating systems which do not require a specific extension +for executable files, this variable is empty. +.ie n .IP """_o""" 4 +.el .IP "\f(CW_o\fR" 4 +.IX Item "_o" +From \fIUnix.U\fR: +.Sp +This variable defines the extension used for object files. +For unix, it is \fI.o\fR. The \fI.\fR is included. Other possible +values include \fI.obj\fR. +.SS "a" +.IX Subsection "a" +.ie n .IP """afs""" 4 +.el .IP "\f(CWafs\fR" 4 +.IX Item "afs" +From \fIafs.U\fR: +.Sp +This variable is set to \f(CW\*(C`true\*(C'\fR if \f(CW\*(C`AFS\*(C'\fR (Andrew File System) is used +on the system, \f(CW\*(C`false\*(C'\fR otherwise. It is possible to override this +with a hint value or command line option, but you'd better know +what you are doing. +.ie n .IP """afsroot""" 4 +.el .IP "\f(CWafsroot\fR" 4 +.IX Item "afsroot" +From \fIafs.U\fR: +.Sp +This variable is by default set to \fI/afs\fR. In the unlikely case +this is not the correct root, it is possible to override this with +a hint value or command line option. This will be used in subsequent +tests for AFSness in the configure and test process. +.ie n .IP """alignbytes""" 4 +.el .IP "\f(CWalignbytes\fR" 4 +.IX Item "alignbytes" +From \fIalignbytes.U\fR: +.Sp +This variable holds the number of bytes required to align a +double\*(-- or a long double when applicable. Usual values are +2, 4 and 8. The default is eight, for safety. +.ie n .IP """aphostname""" 4 +.el .IP "\f(CWaphostname\fR" 4 +.IX Item "aphostname" +From \fId_gethname.U\fR: +.Sp +This variable contains the command which can be used to compute the +host name. The command is fully qualified by its absolute path, to make +it safe when used by a process with super-user privileges. +.ie n .IP """api_revision""" 4 +.el .IP "\f(CWapi_revision\fR" 4 +.IX Item "api_revision" +From \fIpatchlevel.U\fR: +.Sp +The three variables, api_revision, api_version, and +api_subversion, specify the version of the oldest perl binary +compatible with the present perl. In a full version string +such as \fI5.6.1\fR, api_revision is the \f(CW5\fR. +Prior to 5.5.640, the format was a floating point number, +like 5.00563. +.Sp +\&\fIperl.c\fR:\fBincpush()\fR and \fIlib/lib.pm\fR will automatically search in +\&\fI\f(CI$sitelib\fI/.\fR. for older directories back to the limit specified +by these api_ variables. This is only useful if you have a +perl library directory tree structured like the default one. +See \f(CW\*(C`INSTALL\*(C'\fR for how this works. The versioned site_perl +directory was introduced in 5.005, so that is the lowest +possible value. The version list appropriate for the current +system is determined in \fIinc_version_list.U\fR. +.Sp +\&\f(CW\*(C`XXX\*(C'\fR To do: Since compatibility can depend on compile time +options (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 \fIpatchlevel.h\fR. +Perhaps what we ought to do is take the hard-wired value from +\&\fIpatchlevel.h\fR but then modify it if the current Configure +options warrant. \fIpatchlevel.h\fR then would use an #ifdef guard. +.ie n .IP """api_subversion""" 4 +.el .IP "\f(CWapi_subversion\fR" 4 +.IX Item "api_subversion" +From \fIpatchlevel.U\fR: +.Sp +The three variables, api_revision, api_version, and +api_subversion, specify the version of the oldest perl binary +compatible with the present perl. In a full version string +such as \fI5.6.1\fR, api_subversion is the \f(CW1\fR. See api_revision for +full details. +.ie n .IP """api_version""" 4 +.el .IP "\f(CWapi_version\fR" 4 +.IX Item "api_version" +From \fIpatchlevel.U\fR: +.Sp +The three variables, api_revision, api_version, and +api_subversion, specify the version of the oldest perl binary +compatible with the present perl. In a full version string +such as \fI5.6.1\fR, api_version is the \f(CW6\fR. See api_revision for +full details. As a special case, 5.5.0 is rendered in the +old-style as 5.005. (In the 5.005_0x maintenance series, +this was the only versioned directory in \f(CW$sitelib\fR.) +.ie n .IP """api_versionstring""" 4 +.el .IP "\f(CWapi_versionstring\fR" 4 +.IX Item "api_versionstring" +From \fIpatchlevel.U\fR: +.Sp +This variable combines api_revision, api_version, and +api_subversion in a format such as 5.6.1 (or 5_6_1) suitable +for use as a directory name. This is filesystem dependent. +.ie n .IP """ar""" 4 +.el .IP "\f(CWar\fR" 4 +.IX Item "ar" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the ar program. After Configure runs, +the value is reset to a plain \f(CW\*(C`ar\*(C'\fR and is not useful. +.ie n .IP """archlib""" 4 +.el .IP "\f(CWarchlib\fR" 4 +.IX Item "archlib" +From \fIarchlib.U\fR: +.Sp +This variable holds the name of the directory in which the user wants +to put architecture-dependent public library files for \f(CW$package\fR. +It is most often a local directory such as \fI/usr/local/lib\fR. +Programs using this variable must be prepared to deal +with filename expansion. +.ie n .IP """archlibexp""" 4 +.el .IP "\f(CWarchlibexp\fR" 4 +.IX Item "archlibexp" +From \fIarchlib.U\fR: +.Sp +This variable is the same as the archlib variable, but is +filename expanded at configuration time, for convenient use. +.ie n .IP """archname""" 4 +.el .IP "\f(CWarchname\fR" 4 +.IX Item "archname" +From \fIarchname.U\fR: +.Sp +This variable is a short name to characterize the current +architecture. It is used mainly to construct the default archlib. +.ie n .IP """archname64""" 4 +.el .IP "\f(CWarchname64\fR" 4 +.IX Item "archname64" +From \fIuse64bits.U\fR: +.Sp +This variable is used for the 64\-bitness part of \f(CW$archname\fR. +.ie n .IP """archobjs""" 4 +.el .IP "\f(CWarchobjs\fR" 4 +.IX Item "archobjs" +From \fIUnix.U\fR: +.Sp +This variable defines any additional objects that must be linked +in with the program on this architecture. On unix, it is usually +empty. It is typically used to include emulations of unix calls +or other facilities. For perl on \fI\s-1OS/2\s0\fR, for example, this would +include \fIos2/os2.obj\fR. +.ie n .IP """asctime_r_proto""" 4 +.el .IP "\f(CWasctime_r_proto\fR" 4 +.IX Item "asctime_r_proto" +From \fId_asctime_r.U\fR: +.Sp +This variable encodes the prototype of asctime_r. +It is zero if d_asctime_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_asctime_r +is defined. +.ie n .IP """awk""" 4 +.el .IP "\f(CWawk\fR" 4 +.IX Item "awk" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the awk program. After Configure runs, +the value is reset to a plain \f(CW\*(C`awk\*(C'\fR and is not useful. +.SS "b" +.IX Subsection "b" +.ie n .IP """baserev""" 4 +.el .IP "\f(CWbaserev\fR" 4 +.IX Item "baserev" +From \fIbaserev.U\fR: +.Sp +The base revision level of this package, from the \fI.package\fR file. +.ie n .IP """bash""" 4 +.el .IP "\f(CWbash\fR" 4 +.IX Item "bash" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """bin""" 4 +.el .IP "\f(CWbin\fR" 4 +.IX Item "bin" +From \fIbin.U\fR: +.Sp +This variable holds the name of the directory in which the user wants +to put publicly executable images for the package in question. It +is most often a local directory such as \fI/usr/local/bin\fR. Programs using +this variable must be prepared to deal with \fI~name\fR substitution. +.ie n .IP """bin_ELF""" 4 +.el .IP "\f(CWbin_ELF\fR" 4 +.IX Item "bin_ELF" +From \fIdlsrc.U\fR: +.Sp +This variable saves the result from configure if generated binaries +are in \f(CW\*(C`ELF\*(C'\fR format. Only set to defined when the test has actually +been performed, and the result was positive. +.ie n .IP """binexp""" 4 +.el .IP "\f(CWbinexp\fR" 4 +.IX Item "binexp" +From \fIbin.U\fR: +.Sp +This is the same as the bin variable, but is filename expanded at +configuration time, for use in your makefiles. +.ie n .IP """bison""" 4 +.el .IP "\f(CWbison\fR" 4 +.IX Item "bison" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the bison program. After Configure runs, +the value is reset to a plain \f(CW\*(C`bison\*(C'\fR and is not useful. +.ie n .IP """byacc""" 4 +.el .IP "\f(CWbyacc\fR" 4 +.IX Item "byacc" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the byacc program. After Configure runs, +the value is reset to a plain \f(CW\*(C`byacc\*(C'\fR and is not useful. +.ie n .IP """byteorder""" 4 +.el .IP "\f(CWbyteorder\fR" 4 +.IX Item "byteorder" +From \fIbyteorder.U\fR: +.Sp +This variable holds the byte order in a \f(CW\*(C`UV\*(C'\fR. In the following, +larger digits indicate more significance. The variable byteorder +is either 4321 on a big-endian machine, or 1234 on a little-endian, +or 87654321 on a Cray ... or 3412 with weird order ! +.SS "c" +.IX Subsection "c" +.ie n .IP """c""" 4 +.el .IP "\f(CWc\fR" 4 +.IX Item "c" +From \fIn.U\fR: +.Sp +This variable contains the \ec string if that is what causes the echo +command to suppress newline. Otherwise it is null. Correct usage is +\&\f(CW$echo\fR \f(CW$n\fR \*(L"prompt for a question: \f(CW$c\fR\*(R". +.ie n .IP """castflags""" 4 +.el .IP "\f(CWcastflags\fR" 4 +.IX Item "castflags" +From \fId_castneg.U\fR: +.Sp +This variable contains a flag that precise difficulties the +compiler has casting odd floating values to unsigned long: +0 = ok +1 = couldn't cast < 0 +2 = couldn't cast >= 0x80000000 +4 = couldn't cast in argument expression list +.ie n .IP """cat""" 4 +.el .IP "\f(CWcat\fR" 4 +.IX Item "cat" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the cat program. After Configure runs, +the value is reset to a plain \f(CW\*(C`cat\*(C'\fR and is not useful. +.ie n .IP """cc""" 4 +.el .IP "\f(CWcc\fR" 4 +.IX Item "cc" +From \fIcc.U\fR: +.Sp +This variable holds the name of a command to execute a C compiler which +can resolve multiple global references that happen to have the same +name. Usual values are \f(CW\*(C`cc\*(C'\fR and \f(CW\*(C`gcc\*(C'\fR. +Fervent \f(CW\*(C`ANSI\*(C'\fR compilers may be called \f(CW\*(C`c89\*(C'\fR. \f(CW\*(C`AIX\*(C'\fR has xlc. +.ie n .IP """cccdlflags""" 4 +.el .IP "\f(CWcccdlflags\fR" 4 +.IX Item "cccdlflags" +From \fIdlsrc.U\fR: +.Sp +This variable contains any special flags that might need to be +passed with \f(CW\*(C`cc \-c\*(C'\fR to compile modules to be used to create a shared +library that will be used for dynamic loading. For hpux, this +should be +z. It is up to the makefile to use it. +.ie n .IP """ccdlflags""" 4 +.el .IP "\f(CWccdlflags\fR" 4 +.IX Item "ccdlflags" +From \fIdlsrc.U\fR: +.Sp +This variable contains any special flags that might need to be +passed 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 should +be empty. +.ie n .IP """ccflags""" 4 +.el .IP "\f(CWccflags\fR" 4 +.IX Item "ccflags" +From \fIccflags.U\fR: +.Sp +This variable contains any additional C compiler flags desired by +the user. It is up to the Makefile to use this. +.ie n .IP """ccflags_uselargefiles""" 4 +.el .IP "\f(CWccflags_uselargefiles\fR" 4 +.IX Item "ccflags_uselargefiles" +From \fIuselfs.U\fR: +.Sp +This variable contains the compiler flags needed by large file builds +and added to ccflags by hints files. +.ie n .IP """ccname""" 4 +.el .IP "\f(CWccname\fR" 4 +.IX Item "ccname" +From \fICheckcc.U\fR: +.Sp +This can set either by hints files or by Configure. If using +gcc, this is gcc, and if not, usually equal to cc, unimpressive, no? +Some platforms, however, make good use of this by storing the +flavor of the C compiler being used here. For example if using +the Sun WorkShop suite, ccname will be \f(CW\*(C`workshop\*(C'\fR. +.ie n .IP """ccsymbols""" 4 +.el .IP "\f(CWccsymbols\fR" 4 +.IX Item "ccsymbols" +From \fICppsym.U\fR: +.Sp +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 in +this list, see cppsymbols and cppccsymbols. +The list is a space-separated list of symbol=value tokens. +.ie n .IP """ccversion""" 4 +.el .IP "\f(CWccversion\fR" 4 +.IX Item "ccversion" +From \fICheckcc.U\fR: +.Sp +This can set either by hints files or by Configure. If using +a (non-gcc) vendor cc, this variable may contain a version for +the compiler. +.ie n .IP """cf_by""" 4 +.el .IP "\f(CWcf_by\fR" 4 +.IX Item "cf_by" +From \fIcf_who.U\fR: +.Sp +Login name of the person who ran the Configure script and answered the +questions. This is used to tag both \fIconfig.sh\fR and \fIconfig_h.SH\fR. +.ie n .IP """cf_email""" 4 +.el .IP "\f(CWcf_email\fR" 4 +.IX Item "cf_email" +From \fIcf_email.U\fR: +.Sp +Electronic mail address of the person who ran Configure. This can be +used by units that require the user's e\-mail, like \fIMailList.U\fR. +.ie n .IP """cf_time""" 4 +.el .IP "\f(CWcf_time\fR" 4 +.IX Item "cf_time" +From \fIcf_who.U\fR: +.Sp +Holds the output of the \f(CW\*(C`date\*(C'\fR command when the configuration file was +produced. This is used to tag both \fIconfig.sh\fR and \fIconfig_h.SH\fR. +.ie n .IP """charbits""" 4 +.el .IP "\f(CWcharbits\fR" 4 +.IX Item "charbits" +From \fIcharsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`CHARBITS\*(C'\fR symbol, which +indicates to the C program how many bits there are in a character. +.ie n .IP """charsize""" 4 +.el .IP "\f(CWcharsize\fR" 4 +.IX Item "charsize" +From \fIcharsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`CHARSIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a character. +.ie n .IP """chgrp""" 4 +.el .IP "\f(CWchgrp\fR" 4 +.IX Item "chgrp" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """chmod""" 4 +.el .IP "\f(CWchmod\fR" 4 +.IX Item "chmod" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the chmod program. After Configure runs, +the value is reset to a plain \f(CW\*(C`chmod\*(C'\fR and is not useful. +.ie n .IP """chown""" 4 +.el .IP "\f(CWchown\fR" 4 +.IX Item "chown" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """clocktype""" 4 +.el .IP "\f(CWclocktype\fR" 4 +.IX Item "clocktype" +From \fId_times.U\fR: +.Sp +This variable holds the type returned by \fBtimes()\fR. It can be long, +or clock_t on \f(CW\*(C`BSD\*(C'\fR sites (in which case should be +included). +.ie n .IP """comm""" 4 +.el .IP "\f(CWcomm\fR" 4 +.IX Item "comm" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the comm program. After Configure runs, +the value is reset to a plain \f(CW\*(C`comm\*(C'\fR and is not useful. +.ie n .IP """compress""" 4 +.el .IP "\f(CWcompress\fR" 4 +.IX Item "compress" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """config_arg0""" 4 +.el .IP "\f(CWconfig_arg0\fR" 4 +.IX Item "config_arg0" +From \fIOptions.U\fR: +.Sp +This variable contains the string used to invoke the Configure +command, as reported by the shell in the \f(CW$0\fR variable. +.ie n .IP """config_argc""" 4 +.el .IP "\f(CWconfig_argc\fR" 4 +.IX Item "config_argc" +From \fIOptions.U\fR: +.Sp +This variable contains the number of command-line arguments +passed to Configure, as reported by the shell in the $# variable. +The individual arguments are stored as variables config_arg1, +config_arg2, etc. +.ie n .IP """config_args""" 4 +.el .IP "\f(CWconfig_args\fR" 4 +.IX Item "config_args" +From \fIOptions.U\fR: +.Sp +This variable contains a single string giving the command-line +arguments passed to Configure. Spaces within arguments, +quotes, and escaped characters are not correctly preserved. +To reconstruct the command line, you must assemble the individual +command line pieces, given in config_arg[0\-9]*. +.ie n .IP """contains""" 4 +.el .IP "\f(CWcontains\fR" 4 +.IX Item "contains" +From \fIcontains.U\fR: +.Sp +This variable holds the command to do a grep with a proper return +status. On most sane systems it is simply \f(CW\*(C`grep\*(C'\fR. On insane systems +it is a grep followed by a cat followed by a test. This variable +is primarily for the use of other Configure units. +.ie n .IP """cp""" 4 +.el .IP "\f(CWcp\fR" 4 +.IX Item "cp" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the cp program. After Configure runs, +the value is reset to a plain \f(CW\*(C`cp\*(C'\fR and is not useful. +.ie n .IP """cpio""" 4 +.el .IP "\f(CWcpio\fR" 4 +.IX Item "cpio" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """cpp""" 4 +.el .IP "\f(CWcpp\fR" 4 +.IX Item "cpp" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the cpp program. After Configure runs, +the value is reset to a plain \f(CW\*(C`cpp\*(C'\fR and is not useful. +.ie n .IP """cpp_stuff""" 4 +.el .IP "\f(CWcpp_stuff\fR" 4 +.IX Item "cpp_stuff" +From \fIcpp_stuff.U\fR: +.Sp +This variable contains an identification of the concatenation mechanism +used by the C preprocessor. +.ie n .IP """cppccsymbols""" 4 +.el .IP "\f(CWcppccsymbols\fR" 4 +.IX Item "cppccsymbols" +From \fICppsym.U\fR: +.Sp +The variable contains the symbols defined by the C compiler +when it calls cpp. The symbols defined by the cc alone or cpp +alone are not in this list, see ccsymbols and cppsymbols. +The list is a space-separated list of symbol=value tokens. +.ie n .IP """cppflags""" 4 +.el .IP "\f(CWcppflags\fR" 4 +.IX Item "cppflags" +From \fIccflags.U\fR: +.Sp +This variable holds the flags that will be passed to the C pre\- +processor. It is up to the Makefile to use it. +.ie n .IP """cpplast""" 4 +.el .IP "\f(CWcpplast\fR" 4 +.IX Item "cpplast" +From \fIcppstdin.U\fR: +.Sp +This variable has the same functionality as cppminus, only it applies +to cpprun and not cppstdin. +.ie n .IP """cppminus""" 4 +.el .IP "\f(CWcppminus\fR" 4 +.IX Item "cppminus" +From \fIcppstdin.U\fR: +.Sp +This variable contains the second part of the string which will invoke +the C preprocessor on the standard input and produce to standard +output. This variable will have the value \f(CW\*(C`\-\*(C'\fR if cppstdin needs +a minus to specify standard input, otherwise the value is "". +.ie n .IP """cpprun""" 4 +.el .IP "\f(CWcpprun\fR" 4 +.IX Item "cpprun" +From \fIcppstdin.U\fR: +.Sp +This variable contains the command which will invoke a C preprocessor +on standard input and put the output to stdout. It is guaranteed not +to be a wrapper and may be a null string if no preprocessor can be +made directly available. This preprocessor might be different from the +one used by the C compiler. Don't forget to append cpplast after the +preprocessor options. +.ie n .IP """cppstdin""" 4 +.el .IP "\f(CWcppstdin\fR" 4 +.IX Item "cppstdin" +From \fIcppstdin.U\fR: +.Sp +This variable contains the command which will invoke the C +preprocessor on standard input and put the output to stdout. +It is primarily used by other Configure units that ask about +preprocessor symbols. +.ie n .IP """cppsymbols""" 4 +.el .IP "\f(CWcppsymbols\fR" 4 +.IX Item "cppsymbols" +From \fICppsym.U\fR: +.Sp +The variable contains the symbols defined by the C preprocessor +alone. The symbols defined by cc or by cc when it calls cpp are +not in this list, see ccsymbols and cppccsymbols. +The list is a space-separated list of symbol=value tokens. +.ie n .IP """crypt_r_proto""" 4 +.el .IP "\f(CWcrypt_r_proto\fR" 4 +.IX Item "crypt_r_proto" +From \fId_crypt_r.U\fR: +.Sp +This variable encodes the prototype of crypt_r. +It is zero if d_crypt_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_crypt_r +is defined. +.ie n .IP """cryptlib""" 4 +.el .IP "\f(CWcryptlib\fR" 4 +.IX Item "cryptlib" +From \fId_crypt.U\fR: +.Sp +This variable holds \-lcrypt or the path to a \fIlibcrypt.a\fR archive if +the \fBcrypt()\fR function is not defined in the standard C library. It is +up to the Makefile to use this. +.ie n .IP """csh""" 4 +.el .IP "\f(CWcsh\fR" 4 +.IX Item "csh" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the csh program. After Configure runs, +the value is reset to a plain \f(CW\*(C`csh\*(C'\fR and is not useful. +.ie n .IP """ctermid_r_proto""" 4 +.el .IP "\f(CWctermid_r_proto\fR" 4 +.IX Item "ctermid_r_proto" +From \fId_ctermid_r.U\fR: +.Sp +This variable encodes the prototype of ctermid_r. +It is zero if d_ctermid_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_ctermid_r +is defined. +.ie n .IP """ctime_r_proto""" 4 +.el .IP "\f(CWctime_r_proto\fR" 4 +.IX Item "ctime_r_proto" +From \fId_ctime_r.U\fR: +.Sp +This variable encodes the prototype of ctime_r. +It is zero if d_ctime_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_ctime_r +is defined. +.SS "d" +.IX Subsection "d" +.ie n .IP """d_\|_fwalk""" 4 +.el .IP "\f(CWd_\|_fwalk\fR" 4 +.IX Item "d__fwalk" +From \fId_\|_fwalk.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_\|_FWALK\*(C'\fR if \fB_fwalk()\fR is +available to apply a function to all the file handles. +.ie n .IP """d_accept4""" 4 +.el .IP "\f(CWd_accept4\fR" 4 +.IX Item "d_accept4" +From \fId_accept4.U\fR: +.Sp +This variable conditionally defines \s-1HAS_ACCEPT4\s0 if \fBaccept4()\fR is +available to accept socket connections. +.ie n .IP """d_access""" 4 +.el .IP "\f(CWd_access\fR" 4 +.IX Item "d_access" +From \fId_access.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_ACCESS\*(C'\fR if the \fBaccess()\fR system +call is available to check for access permissions using real IDs. +.ie n .IP """d_accessx""" 4 +.el .IP "\f(CWd_accessx\fR" 4 +.IX Item "d_accessx" +From \fId_accessx.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ACCESSX\*(C'\fR symbol, which +indicates to the C program that the \fBaccessx()\fR routine is available. +.ie n .IP """d_acosh""" 4 +.el .IP "\f(CWd_acosh\fR" 4 +.IX Item "d_acosh" +From \fId_acosh.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ACOSH\*(C'\fR symbol, which +indicates to the C program that the \fBacosh()\fR routine is available. +.ie n .IP """d_aintl""" 4 +.el .IP "\f(CWd_aintl\fR" 4 +.IX Item "d_aintl" +From \fId_aintl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_AINTL\*(C'\fR symbol, which +indicates to the C program that the \fBaintl()\fR routine is available. +If copysignl is also present we can emulate modfl. +.ie n .IP """d_alarm""" 4 +.el .IP "\f(CWd_alarm\fR" 4 +.IX Item "d_alarm" +From \fId_alarm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ALARM\*(C'\fR symbol, which +indicates to the C program that the \fBalarm()\fR routine is available. +.ie n .IP """d_archlib""" 4 +.el .IP "\f(CWd_archlib\fR" 4 +.IX Item "d_archlib" +From \fIarchlib.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`ARCHLIB\*(C'\fR to hold the pathname +of architecture-dependent library files for \f(CW$package\fR. If +\&\f(CW$archlib\fR is the same as \f(CW$privlib\fR, then this is set to undef. +.ie n .IP """d_asctime64""" 4 +.el .IP "\f(CWd_asctime64\fR" 4 +.IX Item "d_asctime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_ASCTIME64\s0 symbol, which +indicates to the C program that the asctime64 () routine is available. +.ie n .IP """d_asctime_r""" 4 +.el .IP "\f(CWd_asctime_r\fR" 4 +.IX Item "d_asctime_r" +From \fId_asctime_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ASCTIME_R\*(C'\fR symbol, +which indicates to the C program that the \fBasctime_r()\fR +routine is available. +.ie n .IP """d_asinh""" 4 +.el .IP "\f(CWd_asinh\fR" 4 +.IX Item "d_asinh" +From \fId_asinh.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ASINH\*(C'\fR symbol, which +indicates to the C program that the \fBasinh()\fR routine is available. +.ie n .IP """d_atanh""" 4 +.el .IP "\f(CWd_atanh\fR" 4 +.IX Item "d_atanh" +From \fId_atanh.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ATANH\*(C'\fR symbol, which +indicates to the C program that the \fBatanh()\fR routine is available. +.ie n .IP """d_atolf""" 4 +.el .IP "\f(CWd_atolf\fR" 4 +.IX Item "d_atolf" +From \fIatolf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ATOLF\*(C'\fR symbol, which +indicates to the C program that the \fBatolf()\fR routine is available. +.ie n .IP """d_atoll""" 4 +.el .IP "\f(CWd_atoll\fR" 4 +.IX Item "d_atoll" +From \fIatoll.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ATOLL\*(C'\fR symbol, which +indicates to the C program that the \fBatoll()\fR routine is available. +.ie n .IP """d_attribute_deprecated""" 4 +.el .IP "\f(CWd_attribute_deprecated\fR" 4 +.IX Item "d_attribute_deprecated" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_DEPRECATED\*(C'\fR, which +indicates that \f(CW\*(C`GCC\*(C'\fR can handle the attribute for marking deprecated +APIs +.ie n .IP """d_attribute_format""" 4 +.el .IP "\f(CWd_attribute_format\fR" 4 +.IX Item "d_attribute_format" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_FORMAT\*(C'\fR, which +indicates the C compiler can check for printf-like formats. +.ie n .IP """d_attribute_malloc""" 4 +.el .IP "\f(CWd_attribute_malloc\fR" 4 +.IX Item "d_attribute_malloc" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_MALLOC\*(C'\fR, which +indicates the C compiler can understand functions as having +malloc-like semantics. +.ie n .IP """d_attribute_nonnull""" 4 +.el .IP "\f(CWd_attribute_nonnull\fR" 4 +.IX Item "d_attribute_nonnull" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_NONNULL\*(C'\fR, which +indicates that the C compiler can know that certain arguments +must not be \f(CW\*(C`NULL\*(C'\fR, and will check accordingly at compile time. +.ie n .IP """d_attribute_noreturn""" 4 +.el .IP "\f(CWd_attribute_noreturn\fR" 4 +.IX Item "d_attribute_noreturn" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_NORETURN\*(C'\fR, which +indicates that the C compiler can know that certain functions +are guaranteed never to return. +.ie n .IP """d_attribute_pure""" 4 +.el .IP "\f(CWd_attribute_pure\fR" 4 +.IX Item "d_attribute_pure" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_PURE\*(C'\fR, which +indicates that the C compiler can know that certain functions +are \f(CW\*(C`pure\*(C'\fR functions, meaning that they have no side effects, and +only rely on function input \fIand/or\fR global data for their results. +.ie n .IP """d_attribute_unused""" 4 +.el .IP "\f(CWd_attribute_unused\fR" 4 +.IX Item "d_attribute_unused" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HASATTRIBUTE_UNUSED\*(C'\fR, which +indicates that the C compiler can know that certain variables +and arguments may not always be used, and to not throw warnings +if they don't get used. +.ie n .IP """d_attribute_warn_unused_result""" 4 +.el .IP "\f(CWd_attribute_warn_unused_result\fR" 4 +.IX Item "d_attribute_warn_unused_result" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines +\&\f(CW\*(C`HASATTRIBUTE_WARN_UNUSED_RESULT\*(C'\fR, which indicates that the C +compiler can know that certain functions have a return values +that must not be ignored, such as \fBmalloc()\fR or \fBopen()\fR. +.ie n .IP """d_backtrace""" 4 +.el .IP "\f(CWd_backtrace\fR" 4 +.IX Item "d_backtrace" +From \fId_backtrace.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_BACKTRACE\*(C'\fR symbol, which +indicates to the C program that the \fBbacktrace()\fR routine is available +to get a stack trace. +.ie n .IP """d_bsd""" 4 +.el .IP "\f(CWd_bsd\fR" 4 +.IX Item "d_bsd" +From \fIGuess.U\fR: +.Sp +This symbol conditionally defines the symbol \f(CW\*(C`BSD\*(C'\fR when running on a +\&\f(CW\*(C`BSD\*(C'\fR system. +.ie n .IP """d_bsdgetpgrp""" 4 +.el .IP "\f(CWd_bsdgetpgrp\fR" 4 +.IX Item "d_bsdgetpgrp" +From \fId_getpgrp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_BSD_GETPGRP\*(C'\fR if +getpgrp needs one arguments whereas \f(CW\*(C`USG\*(C'\fR one needs none. +.ie n .IP """d_bsdsetpgrp""" 4 +.el .IP "\f(CWd_bsdsetpgrp\fR" 4 +.IX Item "d_bsdsetpgrp" +From \fId_setpgrp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_BSD_SETPGRP\*(C'\fR if +setpgrp needs two arguments whereas \f(CW\*(C`USG\*(C'\fR one needs none. +See also d_setpgid for a \f(CW\*(C`POSIX\*(C'\fR interface. +.ie n .IP """d_builtin_add_overflow""" 4 +.el .IP "\f(CWd_builtin_add_overflow\fR" 4 +.IX Item "d_builtin_add_overflow" +From \fId_builtin_overflow.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_BUILTIN_ADD_OVERFLOW\*(C'\fR, which +indicates that the compiler supports _\|_builtin_add_overflow(x,y,&z) +for safely adding x and y into z while checking for overflow. +.ie n .IP """d_builtin_choose_expr""" 4 +.el .IP "\f(CWd_builtin_choose_expr\fR" 4 +.IX Item "d_builtin_choose_expr" +From \fId_builtin.U\fR: +.Sp +This conditionally defines \f(CW\*(C`HAS_BUILTIN_CHOOSE_EXPR\*(C'\fR, which +indicates that the compiler supports _\|_builtin_choose_expr(x,y,z). +This built-in function is analogous to the \f(CW\*(C`x?y:z\*(C'\fR operator in C, +except that the expression returned has its type unaltered by +promotion rules. Also, the built-in function does not evaluate +the expression that was not chosen. +.ie n .IP """d_builtin_expect""" 4 +.el .IP "\f(CWd_builtin_expect\fR" 4 +.IX Item "d_builtin_expect" +From \fId_builtin.U\fR: +.Sp +This conditionally defines \f(CW\*(C`HAS_BUILTIN_EXPECT\*(C'\fR, which indicates +that the compiler supports _\|_builtin_expect(exp,c). You may use +_\|_builtin_expect to provide the compiler with branch prediction +information. +.ie n .IP """d_builtin_mul_overflow""" 4 +.el .IP "\f(CWd_builtin_mul_overflow\fR" 4 +.IX Item "d_builtin_mul_overflow" +From \fId_builtin_overflow.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_BUILTIN_MUL_OVERFLOW\*(C'\fR, which +indicates that the compiler supports _\|_builtin_mul_overflow(x,y,&z) +for safely multiplying x and y into z while checking for overflow. +.ie n .IP """d_builtin_sub_overflow""" 4 +.el .IP "\f(CWd_builtin_sub_overflow\fR" 4 +.IX Item "d_builtin_sub_overflow" +From \fId_builtin_overflow.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_BUILTIN_SUB_OVERFLOW\*(C'\fR, which +indicates that the compiler supports _\|_builtin_sub_overflow(x,y,&z) +for safely subtracting y from x into z while checking for overflow. +.ie n .IP """d_c99_variadic_macros""" 4 +.el .IP "\f(CWd_c99_variadic_macros\fR" 4 +.IX Item "d_c99_variadic_macros" +From \fId_c99_variadic.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_C99_VARIADIC_MACROS\s0 +symbol, which indicates to the C program that C99 variadic macros +are available. +.ie n .IP """d_casti32""" 4 +.el .IP "\f(CWd_casti32\fR" 4 +.IX Item "d_casti32" +From \fId_casti32.U\fR: +.Sp +This variable conditionally defines \s-1CASTI32,\s0 which indicates +whether the C compiler can cast large floats to 32\-bit ints. +.ie n .IP """d_castneg""" 4 +.el .IP "\f(CWd_castneg\fR" 4 +.IX Item "d_castneg" +From \fId_castneg.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`CASTNEG\*(C'\fR, which indicates +whether the C compiler can cast negative float to unsigned. +.ie n .IP """d_cbrt""" 4 +.el .IP "\f(CWd_cbrt\fR" 4 +.IX Item "d_cbrt" +From \fId_cbrt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CBRT\*(C'\fR symbol, which +indicates to the C program that the \fBcbrt()\fR (cube root) function +is available. +.ie n .IP """d_chown""" 4 +.el .IP "\f(CWd_chown\fR" 4 +.IX Item "d_chown" +From \fId_chown.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CHOWN\*(C'\fR symbol, which +indicates to the C program that the \fBchown()\fR routine is available. +.ie n .IP """d_chroot""" 4 +.el .IP "\f(CWd_chroot\fR" 4 +.IX Item "d_chroot" +From \fId_chroot.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CHROOT\*(C'\fR symbol, which +indicates to the C program that the \fBchroot()\fR routine is available. +.ie n .IP """d_chsize""" 4 +.el .IP "\f(CWd_chsize\fR" 4 +.IX Item "d_chsize" +From \fId_chsize.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`CHSIZE\*(C'\fR symbol, which +indicates to the C program that the \fBchsize()\fR routine is available +to truncate files. You might need a \-lx to get this routine. +.ie n .IP """d_class""" 4 +.el .IP "\f(CWd_class\fR" 4 +.IX Item "d_class" +From \fId_class.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CLASS\*(C'\fR symbol, which +indicates to the C program that the \fBclass()\fR routine is available. +.ie n .IP """d_clearenv""" 4 +.el .IP "\f(CWd_clearenv\fR" 4 +.IX Item "d_clearenv" +From \fId_clearenv.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CLEARENV\*(C'\fR symbol, which +indicates to the C program that the clearenv () routine is available. +.ie n .IP """d_closedir""" 4 +.el .IP "\f(CWd_closedir\fR" 4 +.IX Item "d_closedir" +From \fId_closedir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_CLOSEDIR\*(C'\fR if \fBclosedir()\fR is +available. +.ie n .IP """d_cmsghdr_s""" 4 +.el .IP "\f(CWd_cmsghdr_s\fR" 4 +.IX Item "d_cmsghdr_s" +From \fId_cmsghdr_s.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRUCT_CMSGHDR\*(C'\fR symbol, +which indicates that the struct cmsghdr is supported. +.ie n .IP """d_copysign""" 4 +.el .IP "\f(CWd_copysign\fR" 4 +.IX Item "d_copysign" +From \fId_copysign.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_COPYSIGN\*(C'\fR symbol, which +indicates to the C program that the \fBcopysign()\fR routine is available. +.ie n .IP """d_copysignl""" 4 +.el .IP "\f(CWd_copysignl\fR" 4 +.IX Item "d_copysignl" +From \fId_copysignl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_COPYSIGNL\*(C'\fR symbol, which +indicates to the C program that the \fBcopysignl()\fR routine is available. +If aintl is also present we can emulate modfl. +.ie n .IP """d_cplusplus""" 4 +.el .IP "\f(CWd_cplusplus\fR" 4 +.IX Item "d_cplusplus" +From \fId_cplusplus.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_CPLUSPLUS\*(C'\fR symbol, which +indicates that a \*(C+ compiler was used to compiled Perl and will be +used to compile extensions. +.ie n .IP """d_crypt""" 4 +.el .IP "\f(CWd_crypt\fR" 4 +.IX Item "d_crypt" +From \fId_crypt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`CRYPT\*(C'\fR symbol, which +indicates to the C program that the \fBcrypt()\fR routine is available +to encrypt passwords and the like. +.ie n .IP """d_crypt_r""" 4 +.el .IP "\f(CWd_crypt_r\fR" 4 +.IX Item "d_crypt_r" +From \fId_crypt_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CRYPT_R\*(C'\fR symbol, +which indicates to the C program that the \fBcrypt_r()\fR +routine is available. +.ie n .IP """d_csh""" 4 +.el .IP "\f(CWd_csh\fR" 4 +.IX Item "d_csh" +From \fId_csh.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`CSH\*(C'\fR symbol, which +indicates to the C program that the C\-shell exists. +.ie n .IP """d_ctermid""" 4 +.el .IP "\f(CWd_ctermid\fR" 4 +.IX Item "d_ctermid" +From \fId_ctermid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`CTERMID\*(C'\fR if \fBctermid()\fR is +available to generate filename for terminal. +.ie n .IP """d_ctermid_r""" 4 +.el .IP "\f(CWd_ctermid_r\fR" 4 +.IX Item "d_ctermid_r" +From \fId_ctermid_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CTERMID_R\*(C'\fR symbol, +which indicates to the C program that the \fBctermid_r()\fR +routine is available. +.ie n .IP """d_ctime64""" 4 +.el .IP "\f(CWd_ctime64\fR" 4 +.IX Item "d_ctime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_CTIME64\s0 symbol, which +indicates to the C program that the ctime64 () routine is available. +.ie n .IP """d_ctime_r""" 4 +.el .IP "\f(CWd_ctime_r\fR" 4 +.IX Item "d_ctime_r" +From \fId_ctime_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CTIME_R\*(C'\fR symbol, +which indicates to the C program that the \fBctime_r()\fR +routine is available. +.ie n .IP """d_cuserid""" 4 +.el .IP "\f(CWd_cuserid\fR" 4 +.IX Item "d_cuserid" +From \fId_cuserid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_CUSERID\*(C'\fR symbol, which +indicates to the C program that the \fBcuserid()\fR routine is available +to get character login names. +.ie n .IP """d_dbminitproto""" 4 +.el .IP "\f(CWd_dbminitproto\fR" 4 +.IX Item "d_dbminitproto" +From \fId_dbminitproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DBMINIT_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBdbminit()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_difftime""" 4 +.el .IP "\f(CWd_difftime\fR" 4 +.IX Item "d_difftime" +From \fId_difftime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DIFFTIME\*(C'\fR symbol, which +indicates to the C program that the \fBdifftime()\fR routine is available. +.ie n .IP """d_difftime64""" 4 +.el .IP "\f(CWd_difftime64\fR" 4 +.IX Item "d_difftime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_DIFFTIME64\s0 symbol, which +indicates to the C program that the difftime64 () routine is available. +.ie n .IP """d_dir_dd_fd""" 4 +.el .IP "\f(CWd_dir_dd_fd\fR" 4 +.IX Item "d_dir_dd_fd" +From \fId_dir_dd_fd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DIR_DD_FD\*(C'\fR symbol, which +indicates that the \f(CW\*(C`DIR\*(C'\fR directory stream type contains a member +variable called dd_fd. +.ie n .IP """d_dirfd""" 4 +.el .IP "\f(CWd_dirfd\fR" 4 +.IX Item "d_dirfd" +From \fId_dirfd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DIRFD\*(C'\fR constant, +which indicates to the C program that \fBdirfd()\fR is available +to return the file descriptor of a directory stream. +.ie n .IP """d_dirnamlen""" 4 +.el .IP "\f(CWd_dirnamlen\fR" 4 +.IX Item "d_dirnamlen" +From \fIi_dirent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`DIRNAMLEN\*(C'\fR, which indicates +to the C program that the length of directory entry names is +provided by a d_namelen field. +.ie n .IP """d_dladdr""" 4 +.el .IP "\f(CWd_dladdr\fR" 4 +.IX Item "d_dladdr" +From \fId_dladdr.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DLADDR\*(C'\fR symbol, which +indicates to the C program that the \fBdladdr()\fR routine is available +to get a stack trace. +.ie n .IP """d_dlerror""" 4 +.el .IP "\f(CWd_dlerror\fR" 4 +.IX Item "d_dlerror" +From \fId_dlerror.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DLERROR\*(C'\fR symbol, which +indicates to the C program that the \fBdlerror()\fR routine is available. +.ie n .IP """d_dlopen""" 4 +.el .IP "\f(CWd_dlopen\fR" 4 +.IX Item "d_dlopen" +From \fId_dlopen.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DLOPEN\*(C'\fR symbol, which +indicates to the C program that the \fBdlopen()\fR routine is available. +.ie n .IP """d_dlsymun""" 4 +.el .IP "\f(CWd_dlsymun\fR" 4 +.IX Item "d_dlsymun" +From \fId_dlsymun.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`DLSYM_NEEDS_UNDERSCORE\*(C'\fR, which +indicates that we need to prepend an underscore to the symbol +name before calling \fBdlsym()\fR. +.ie n .IP """d_dosuid""" 4 +.el .IP "\f(CWd_dosuid\fR" 4 +.IX Item "d_dosuid" +From \fId_dosuid.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOSUID\*(C'\fR, which +tells the C program that it should insert setuid emulation code +on hosts which have setuid #! scripts disabled. +.ie n .IP """d_double_has_inf""" 4 +.el .IP "\f(CWd_double_has_inf\fR" 4 +.IX Item "d_double_has_inf" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_HAS_INF\*(C'\fR +which indicates that the double type has an infinity. +.ie n .IP """d_double_has_nan""" 4 +.el .IP "\f(CWd_double_has_nan\fR" 4 +.IX Item "d_double_has_nan" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_HAS_NAN\*(C'\fR +which indicates that the double type has a not-a-number. +.ie n .IP """d_double_has_negative_zero""" 4 +.el .IP "\f(CWd_double_has_negative_zero\fR" 4 +.IX Item "d_double_has_negative_zero" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_HAS_NEGATIVE_ZERO\*(C'\fR +which indicates that the double type has a negative zero. +.ie n .IP """d_double_has_subnormals""" 4 +.el .IP "\f(CWd_double_has_subnormals\fR" 4 +.IX Item "d_double_has_subnormals" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_HAS_SUBNORMALS\*(C'\fR +which indicates that the double type has subnormals (denormals). +.ie n .IP """d_double_style_cray""" 4 +.el .IP "\f(CWd_double_style_cray\fR" 4 +.IX Item "d_double_style_cray" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_STYLE_CRAY\*(C'\fR +which indicates that the double is the 64\-bit \f(CW\*(C`CRAY\*(C'\fR mainframe format. +.ie n .IP """d_double_style_ibm""" 4 +.el .IP "\f(CWd_double_style_ibm\fR" 4 +.IX Item "d_double_style_ibm" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_STYLE_IBM\*(C'\fR, +which indicates that the double is the 64\-bit \f(CW\*(C`IBM\*(C'\fR mainframe format. +.ie n .IP """d_double_style_ieee""" 4 +.el .IP "\f(CWd_double_style_ieee\fR" 4 +.IX Item "d_double_style_ieee" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_STYLE_IEEE\*(C'\fR, +which indicates that the double is the 64\-bit \f(CW\*(C`IEEE\*(C'\fR 754. +.ie n .IP """d_double_style_vax""" 4 +.el .IP "\f(CWd_double_style_vax\fR" 4 +.IX Item "d_double_style_vax" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`DOUBLE_STYLE_VAX\*(C'\fR, +which indicates that the double is the 64\-bit \f(CW\*(C`VAX\*(C'\fR format D or G. +.ie n .IP """d_drand48_r""" 4 +.el .IP "\f(CWd_drand48_r\fR" 4 +.IX Item "d_drand48_r" +From \fId_drand48_r.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_DRAND48_R\s0 symbol, +which indicates to the C program that the \fBdrand48_r()\fR +routine is available. +.ie n .IP """d_drand48proto""" 4 +.el .IP "\f(CWd_drand48proto\fR" 4 +.IX Item "d_drand48proto" +From \fId_drand48proto.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_DRAND48_PROTO\s0 symbol, +which indicates to the C program that the system provides +a prototype for the \fBdrand48()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_dup2""" 4 +.el .IP "\f(CWd_dup2\fR" 4 +.IX Item "d_dup2" +From \fId_dup2.U\fR: +.Sp +This variable conditionally defines \s-1HAS_DUP2\s0 if \fBdup2()\fR is +available to duplicate file descriptors. +.ie n .IP """d_dup3""" 4 +.el .IP "\f(CWd_dup3\fR" 4 +.IX Item "d_dup3" +From \fId_dup3.U\fR: +.Sp +This variable conditionally defines \s-1HAS_DUP3\s0 if \fBdup3()\fR is +available to duplicate file descriptors. +.ie n .IP """d_duplocale""" 4 +.el .IP "\f(CWd_duplocale\fR" 4 +.IX Item "d_duplocale" +From \fId_newlocale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_DUPLOCALE\*(C'\fR symbol, which +indicates to the C program that the \fBduplocale()\fR routine is available +to duplicate a locale object. +.ie n .IP """d_eaccess""" 4 +.el .IP "\f(CWd_eaccess\fR" 4 +.IX Item "d_eaccess" +From \fId_eaccess.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_EACCESS\*(C'\fR symbol, which +indicates to the C program that the \fBeaccess()\fR routine is available. +.ie n .IP """d_endgrent""" 4 +.el .IP "\f(CWd_endgrent\fR" 4 +.IX Item "d_endgrent" +From \fId_endgrent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDGRENT\*(C'\fR symbol, which +indicates to the C program that the \fBendgrent()\fR routine is available +for sequential access of the group database. +.ie n .IP """d_endgrent_r""" 4 +.el .IP "\f(CWd_endgrent_r\fR" 4 +.IX Item "d_endgrent_r" +From \fId_endgrent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDGRENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendgrent_r()\fR +routine is available. +.ie n .IP """d_endhent""" 4 +.el .IP "\f(CWd_endhent\fR" 4 +.IX Item "d_endhent" +From \fId_endhent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_ENDHOSTENT\*(C'\fR if \fBendhostent()\fR is +available to close whatever was being used for host queries. +.ie n .IP """d_endhostent_r""" 4 +.el .IP "\f(CWd_endhostent_r\fR" 4 +.IX Item "d_endhostent_r" +From \fId_endhostent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDHOSTENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendhostent_r()\fR +routine is available. +.ie n .IP """d_endnent""" 4 +.el .IP "\f(CWd_endnent\fR" 4 +.IX Item "d_endnent" +From \fId_endnent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_ENDNETENT\*(C'\fR if \fBendnetent()\fR is +available to close whatever was being used for network queries. +.ie n .IP """d_endnetent_r""" 4 +.el .IP "\f(CWd_endnetent_r\fR" 4 +.IX Item "d_endnetent_r" +From \fId_endnetent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDNETENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendnetent_r()\fR +routine is available. +.ie n .IP """d_endpent""" 4 +.el .IP "\f(CWd_endpent\fR" 4 +.IX Item "d_endpent" +From \fId_endpent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_ENDPROTOENT\*(C'\fR if \fBendprotoent()\fR is +available to close whatever was being used for protocol queries. +.ie n .IP """d_endprotoent_r""" 4 +.el .IP "\f(CWd_endprotoent_r\fR" 4 +.IX Item "d_endprotoent_r" +From \fId_endprotoent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDPROTOENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendprotoent_r()\fR +routine is available. +.ie n .IP """d_endpwent""" 4 +.el .IP "\f(CWd_endpwent\fR" 4 +.IX Item "d_endpwent" +From \fId_endpwent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDPWENT\*(C'\fR symbol, which +indicates to the C program that the \fBendpwent()\fR routine is available +for sequential access of the passwd database. +.ie n .IP """d_endpwent_r""" 4 +.el .IP "\f(CWd_endpwent_r\fR" 4 +.IX Item "d_endpwent_r" +From \fId_endpwent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDPWENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendpwent_r()\fR +routine is available. +.ie n .IP """d_endsent""" 4 +.el .IP "\f(CWd_endsent\fR" 4 +.IX Item "d_endsent" +From \fId_endsent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_ENDSERVENT\*(C'\fR if \fBendservent()\fR is +available to close whatever was being used for service queries. +.ie n .IP """d_endservent_r""" 4 +.el .IP "\f(CWd_endservent_r\fR" 4 +.IX Item "d_endservent_r" +From \fId_endservent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ENDSERVENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBendservent_r()\fR +routine is available. +.ie n .IP """d_eofnblk""" 4 +.el .IP "\f(CWd_eofnblk\fR" 4 +.IX Item "d_eofnblk" +From \fInblock_io.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`EOF_NONBLOCK\*(C'\fR if \f(CW\*(C`EOF\*(C'\fR can be seen +when reading from a non-blocking I/O source. +.ie n .IP """d_erf""" 4 +.el .IP "\f(CWd_erf\fR" 4 +.IX Item "d_erf" +From \fId_erf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ERF\*(C'\fR symbol, which +indicates to the C program that the \fBerf()\fR routine is available. +.ie n .IP """d_erfc""" 4 +.el .IP "\f(CWd_erfc\fR" 4 +.IX Item "d_erfc" +From \fId_erfc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ERFC\*(C'\fR symbol, which +indicates to the C program that the \fBerfc()\fR routine is available. +.ie n .IP """d_eunice""" 4 +.el .IP "\f(CWd_eunice\fR" 4 +.IX Item "d_eunice" +From \fIGuess.U\fR: +.Sp +This variable conditionally defines the symbols \f(CW\*(C`EUNICE\*(C'\fR and \f(CW\*(C`VAX\*(C'\fR, which +alerts the C program that it must deal with idiosyncrasies of \f(CW\*(C`VMS\*(C'\fR. +.ie n .IP """d_exp2""" 4 +.el .IP "\f(CWd_exp2\fR" 4 +.IX Item "d_exp2" +From \fId_exp2.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_EXP2\s0 symbol, which +indicates to the C program that the \fBexp2()\fR routine is available. +.ie n .IP """d_expm1""" 4 +.el .IP "\f(CWd_expm1\fR" 4 +.IX Item "d_expm1" +From \fId_expm1.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_EXPM1\s0 symbol, which +indicates to the C program that the \fBexpm1()\fR routine is available. +.ie n .IP """d_faststdio""" 4 +.el .IP "\f(CWd_faststdio\fR" 4 +.IX Item "d_faststdio" +From \fId_faststdio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FAST_STDIO\*(C'\fR symbol, +which indicates to the C program that the \*(L"fast stdio\*(R" is available +to manipulate the stdio buffers directly. +.ie n .IP """d_fchdir""" 4 +.el .IP "\f(CWd_fchdir\fR" 4 +.IX Item "d_fchdir" +From \fId_fchdir.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FCHDIR\*(C'\fR symbol, which +indicates to the C program that the \fBfchdir()\fR routine is available. +.ie n .IP """d_fchmod""" 4 +.el .IP "\f(CWd_fchmod\fR" 4 +.IX Item "d_fchmod" +From \fId_fchmod.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FCHMOD\*(C'\fR symbol, which +indicates to the C program that the \fBfchmod()\fR routine is available +to change mode of opened files. +.ie n .IP """d_fchmodat""" 4 +.el .IP "\f(CWd_fchmodat\fR" 4 +.IX Item "d_fchmodat" +From \fId_fsat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FCHMODAT\*(C'\fR symbol, which +indicates the \f(CW\*(C`POSIX\*(C'\fR \fBfchmodat()\fR function is available. +.ie n .IP """d_fchown""" 4 +.el .IP "\f(CWd_fchown\fR" 4 +.IX Item "d_fchown" +From \fId_fchown.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FCHOWN\*(C'\fR symbol, which +indicates to the C program that the \fBfchown()\fR routine is available +to change ownership of opened files. +.ie n .IP """d_fcntl""" 4 +.el .IP "\f(CWd_fcntl\fR" 4 +.IX Item "d_fcntl" +From \fId_fcntl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FCNTL\*(C'\fR symbol, and indicates +whether the \fBfcntl()\fR function exists +.ie n .IP """d_fcntl_can_lock""" 4 +.el .IP "\f(CWd_fcntl_can_lock\fR" 4 +.IX Item "d_fcntl_can_lock" +From \fId_fcntl_can_lock.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`FCNTL_CAN_LOCK\*(C'\fR symbol +and indicates whether file locking with \fBfcntl()\fR works. +.ie n .IP """d_fd_macros""" 4 +.el .IP "\f(CWd_fd_macros\fR" 4 +.IX Item "d_fd_macros" +From \fId_fd_set.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`HAS_FD_MACROS\*(C'\fR symbol, +which indicates if your C compiler knows about the macros which +manipulate an fd_set. +.ie n .IP """d_fd_set""" 4 +.el .IP "\f(CWd_fd_set\fR" 4 +.IX Item "d_fd_set" +From \fId_fd_set.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`HAS_FD_SET\*(C'\fR symbol, +which indicates if your C compiler knows about the fd_set typedef. +.ie n .IP """d_fdclose""" 4 +.el .IP "\f(CWd_fdclose\fR" 4 +.IX Item "d_fdclose" +From \fId_fdclose.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FDCLOSE\*(C'\fR symbol, which +indicates to the C program that the \fBfdclose()\fR routine is available. +.ie n .IP """d_fdim""" 4 +.el .IP "\f(CWd_fdim\fR" 4 +.IX Item "d_fdim" +From \fId_fdim.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FDIM\*(C'\fR symbol, which +indicates to the C program that the \fBfdim()\fR routine is available. +.ie n .IP """d_fds_bits""" 4 +.el .IP "\f(CWd_fds_bits\fR" 4 +.IX Item "d_fds_bits" +From \fId_fd_set.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`HAS_FDS_BITS\*(C'\fR symbol, +which indicates if your fd_set typedef contains the fds_bits member. +If you have an fd_set typedef, but the dweebs who installed it did +a half-fast job and neglected to provide the macros to manipulate +an fd_set, \f(CW\*(C`HAS_FDS_BITS\*(C'\fR will let us know how to fix the gaffe. +.ie n .IP """d_fegetround""" 4 +.el .IP "\f(CWd_fegetround\fR" 4 +.IX Item "d_fegetround" +From \fId_fegetround.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_FEGETROUND\*(C'\fR if \fBfegetround()\fR is +available to get the floating point rounding mode. +.ie n .IP """d_fgetpos""" 4 +.el .IP "\f(CWd_fgetpos\fR" 4 +.IX Item "d_fgetpos" +From \fId_fgetpos.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_FGETPOS\*(C'\fR if \fBfgetpos()\fR is +available to get the file position indicator. +.ie n .IP """d_finite""" 4 +.el .IP "\f(CWd_finite\fR" 4 +.IX Item "d_finite" +From \fId_finite.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FINITE\*(C'\fR symbol, which +indicates to the C program that the \fBfinite()\fR routine is available. +.ie n .IP """d_finitel""" 4 +.el .IP "\f(CWd_finitel\fR" 4 +.IX Item "d_finitel" +From \fId_finitel.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FINITEL\*(C'\fR symbol, which +indicates to the C program that the \fBfinitel()\fR routine is available. +.ie n .IP """d_flexfnam""" 4 +.el .IP "\f(CWd_flexfnam\fR" 4 +.IX Item "d_flexfnam" +From \fId_flexfnam.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`FLEXFILENAMES\*(C'\fR symbol, which +indicates that the system supports filenames longer than 14 characters. +.ie n .IP """d_flock""" 4 +.el .IP "\f(CWd_flock\fR" 4 +.IX Item "d_flock" +From \fId_flock.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_FLOCK\*(C'\fR if \fBflock()\fR is +available to do file locking. +.ie n .IP """d_flockproto""" 4 +.el .IP "\f(CWd_flockproto\fR" 4 +.IX Item "d_flockproto" +From \fId_flockproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FLOCK_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBflock()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_fma""" 4 +.el .IP "\f(CWd_fma\fR" 4 +.IX Item "d_fma" +From \fId_fma.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FMA\*(C'\fR symbol, which +indicates to the C program that the \fBfma()\fR routine is available. +.ie n .IP """d_fmax""" 4 +.el .IP "\f(CWd_fmax\fR" 4 +.IX Item "d_fmax" +From \fId_fmax.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FMAX\*(C'\fR symbol, which +indicates to the C program that the \fBfmax()\fR routine is available. +.ie n .IP """d_fmin""" 4 +.el .IP "\f(CWd_fmin\fR" 4 +.IX Item "d_fmin" +From \fId_fmin.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FMIN\*(C'\fR symbol, which +indicates to the C program that the \fBfmin()\fR routine is available. +.ie n .IP """d_fork""" 4 +.el .IP "\f(CWd_fork\fR" 4 +.IX Item "d_fork" +From \fId_fork.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FORK\*(C'\fR symbol, which +indicates to the C program that the \fBfork()\fR routine is available. +.ie n .IP """d_fp_class""" 4 +.el .IP "\f(CWd_fp_class\fR" 4 +.IX Item "d_fp_class" +From \fId_fp_class.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FP_CLASS\*(C'\fR symbol, which +indicates to the C program that the \fBfp_class()\fR routine is available. +.ie n .IP """d_fp_classify""" 4 +.el .IP "\f(CWd_fp_classify\fR" 4 +.IX Item "d_fp_classify" +From \fId_fpclassify.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FP_CLASSIFY\*(C'\fR symbol, which +indicates to the C program that the \fBfp_classify()\fR routine is available. +.ie n .IP """d_fp_classl""" 4 +.el .IP "\f(CWd_fp_classl\fR" 4 +.IX Item "d_fp_classl" +From \fId_fp_classl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FP_CLASSL\*(C'\fR symbol, which +indicates to the C program that the \fBfp_classl()\fR routine is available. +.ie n .IP """d_fpathconf""" 4 +.el .IP "\f(CWd_fpathconf\fR" 4 +.IX Item "d_fpathconf" +From \fId_pathconf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FPATHCONF\*(C'\fR symbol, which +indicates to the C program that the \fBpathconf()\fR routine is available +to determine file-system related limits and options associated +with a given open file descriptor. +.ie n .IP """d_fpclass""" 4 +.el .IP "\f(CWd_fpclass\fR" 4 +.IX Item "d_fpclass" +From \fId_fpclass.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FPCLASS\*(C'\fR symbol, which +indicates to the C program that the \fBfpclass()\fR routine is available. +.ie n .IP """d_fpclassify""" 4 +.el .IP "\f(CWd_fpclassify\fR" 4 +.IX Item "d_fpclassify" +From \fId_fpclassify.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FPCLASSIFY\*(C'\fR symbol, which +indicates to the C program that the \fBfpclassify()\fR routine is available. +.ie n .IP """d_fpclassl""" 4 +.el .IP "\f(CWd_fpclassl\fR" 4 +.IX Item "d_fpclassl" +From \fId_fpclassl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FPCLASSL\*(C'\fR symbol, which +indicates to the C program that the \fBfpclassl()\fR routine is available. +.ie n .IP """d_fpgetround""" 4 +.el .IP "\f(CWd_fpgetround\fR" 4 +.IX Item "d_fpgetround" +From \fId_fpgetround.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_FPGETROUND\*(C'\fR if \fBfpgetround()\fR +is available to get the floating point rounding mode. +.ie n .IP """d_fpos64_t""" 4 +.el .IP "\f(CWd_fpos64_t\fR" 4 +.IX Item "d_fpos64_t" +From \fId_fpos64_t.U\fR: +.Sp +This symbol will be defined if the C compiler supports fpos64_t. +.ie n .IP """d_freelocale""" 4 +.el .IP "\f(CWd_freelocale\fR" 4 +.IX Item "d_freelocale" +From \fId_newlocale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FREELOCALE\*(C'\fR symbol, which +indicates to the C program that the \fBfreelocale()\fR routine is available +to deallocates the resources associated with a locale object. +.ie n .IP """d_frexpl""" 4 +.el .IP "\f(CWd_frexpl\fR" 4 +.IX Item "d_frexpl" +From \fId_frexpl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FREXPL\*(C'\fR symbol, which +indicates to the C program that the \fBfrexpl()\fR routine is available. +.ie n .IP """d_fs_data_s""" 4 +.el .IP "\f(CWd_fs_data_s\fR" 4 +.IX Item "d_fs_data_s" +From \fId_fs_data_s.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRUCT_FS_DATA\*(C'\fR symbol, +which indicates that the struct fs_data is supported. +.ie n .IP """d_fseeko""" 4 +.el .IP "\f(CWd_fseeko\fR" 4 +.IX Item "d_fseeko" +From \fId_fseeko.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FSEEKO\*(C'\fR symbol, which +indicates to the C program that the \fBfseeko()\fR routine is available. +.ie n .IP """d_fsetpos""" 4 +.el .IP "\f(CWd_fsetpos\fR" 4 +.IX Item "d_fsetpos" +From \fId_fsetpos.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_FSETPOS\*(C'\fR if \fBfsetpos()\fR is +available to set the file position indicator. +.ie n .IP """d_fstatfs""" 4 +.el .IP "\f(CWd_fstatfs\fR" 4 +.IX Item "d_fstatfs" +From \fId_fstatfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FSTATFS\*(C'\fR symbol, which +indicates to the C program that the \fBfstatfs()\fR routine is available. +.ie n .IP """d_fstatvfs""" 4 +.el .IP "\f(CWd_fstatvfs\fR" 4 +.IX Item "d_fstatvfs" +From \fId_statvfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FSTATVFS\*(C'\fR symbol, which +indicates to the C program that the \fBfstatvfs()\fR routine is available. +.ie n .IP """d_fsync""" 4 +.el .IP "\f(CWd_fsync\fR" 4 +.IX Item "d_fsync" +From \fId_fsync.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FSYNC\*(C'\fR symbol, which +indicates to the C program that the \fBfsync()\fR routine is available. +.ie n .IP """d_ftello""" 4 +.el .IP "\f(CWd_ftello\fR" 4 +.IX Item "d_ftello" +From \fId_ftello.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FTELLO\*(C'\fR symbol, which +indicates to the C program that the \fBftello()\fR routine is available. +.ie n .IP """d_ftime""" 4 +.el .IP "\f(CWd_ftime\fR" 4 +.IX Item "d_ftime" +From \fId_ftime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FTIME\*(C'\fR symbol, which indicates +that the \fBftime()\fR routine exists. The \fBftime()\fR routine is basically +a sub-second accuracy clock. +.ie n .IP """d_futimes""" 4 +.el .IP "\f(CWd_futimes\fR" 4 +.IX Item "d_futimes" +From \fId_futimes.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_FUTIMES\*(C'\fR symbol, which +indicates to the C program that the \fBfutimes()\fR routine is available. +.ie n .IP """d_gai_strerror""" 4 +.el .IP "\f(CWd_gai_strerror\fR" 4 +.IX Item "d_gai_strerror" +From \fId_gai_strerror.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GAI_STRERROR\*(C'\fR symbol +if the \fBgai_strerror()\fR routine is available and can be used to +translate error codes returned by \fBgetaddrinfo()\fR into human +readable strings. +.ie n .IP """d_Gconvert""" 4 +.el .IP "\f(CWd_Gconvert\fR" 4 +.IX Item "d_Gconvert" +From \fId_gconvert.U\fR: +.Sp +This variable holds what Gconvert is defined as to convert +floating point numbers into strings. By default, Configure +sets \f(CW\*(C`this\*(C'\fR macro to use the first of gconvert, gcvt, or sprintf +that pass sprintf\-%g\-like behavior tests. If perl is using +long doubles, the macro uses the first of the following +functions that pass Configure's tests: qgcvt, sprintf (if +Configure knows how to make sprintf format long doubles\*(--see +sPRIgldbl), gconvert, gcvt, and sprintf (casting to double). +The gconvert_preference and gconvert_ld_preference variables +can be used to alter Configure's preferences, for doubles and +long doubles, respectively. If present, they contain a +space-separated list of one or more of the above function +names in the order they should be tried. +.Sp +d_Gconvert may be set to override Configure with a platform\- +specific function. If this function expects a double, a +different value may need to be set by the \fIuselongdouble.cbu\fR +call-back unit so that long doubles can be formatted without +loss of precision. +.ie n .IP """d_gdbm_ndbm_h_uses_prototypes""" 4 +.el .IP "\f(CWd_gdbm_ndbm_h_uses_prototypes\fR" 4 +.IX Item "d_gdbm_ndbm_h_uses_prototypes" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`NDBM_H_USES_PROTOTYPES\*(C'\fR symbol, +which indicates that the gdbm\-\fIndbm.h\fR include file uses real \f(CW\*(C`ANSI\*(C'\fR C +prototypes instead of K&R style function declarations. K&R style +declarations are unsupported in \*(C+, so the include file requires +special handling when using a \*(C+ compiler and this variable is +undefined. Consult the different d_*ndbm_h_uses_prototypes variables +to get the same information for alternative \fIndbm.h\fR include files. +.ie n .IP """d_gdbmndbm_h_uses_prototypes""" 4 +.el .IP "\f(CWd_gdbmndbm_h_uses_prototypes\fR" 4 +.IX Item "d_gdbmndbm_h_uses_prototypes" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`NDBM_H_USES_PROTOTYPES\*(C'\fR symbol, +which indicates that the \fIgdbm/ndbm.h\fR include file uses real \f(CW\*(C`ANSI\*(C'\fR C +prototypes instead of K&R style function declarations. K&R style +declarations are unsupported in \*(C+, so the include file requires +special handling when using a \*(C+ compiler and this variable is +undefined. Consult the different d_*ndbm_h_uses_prototypes variables +to get the same information for alternative \fIndbm.h\fR include files. +.ie n .IP """d_getaddrinfo""" 4 +.el .IP "\f(CWd_getaddrinfo\fR" 4 +.IX Item "d_getaddrinfo" +From \fId_getaddrinfo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETADDRINFO\*(C'\fR symbol, +which indicates to the C program that the \fBgetaddrinfo()\fR function +is available. +.ie n .IP """d_getcwd""" 4 +.el .IP "\f(CWd_getcwd\fR" 4 +.IX Item "d_getcwd" +From \fId_getcwd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETCWD\*(C'\fR symbol, which +indicates to the C program that the \fBgetcwd()\fR routine is available +to get the current working directory. +.ie n .IP """d_getespwnam""" 4 +.el .IP "\f(CWd_getespwnam\fR" 4 +.IX Item "d_getespwnam" +From \fId_getespwnam.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETESPWNAM\*(C'\fR if \fBgetespwnam()\fR is +available to retrieve enhanced (shadow) password entries by name. +.ie n .IP """d_getfsstat""" 4 +.el .IP "\f(CWd_getfsstat\fR" 4 +.IX Item "d_getfsstat" +From \fId_getfsstat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETFSSTAT\*(C'\fR symbol, which +indicates to the C program that the \fBgetfsstat()\fR routine is available. +.ie n .IP """d_getgrent""" 4 +.el .IP "\f(CWd_getgrent\fR" 4 +.IX Item "d_getgrent" +From \fId_getgrent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETGRENT\*(C'\fR symbol, which +indicates to the C program that the \fBgetgrent()\fR routine is available +for sequential access of the group database. +.ie n .IP """d_getgrent_r""" 4 +.el .IP "\f(CWd_getgrent_r\fR" 4 +.IX Item "d_getgrent_r" +From \fId_getgrent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETGRENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetgrent_r()\fR +routine is available. +.ie n .IP """d_getgrgid_r""" 4 +.el .IP "\f(CWd_getgrgid_r\fR" 4 +.IX Item "d_getgrgid_r" +From \fId_getgrgid_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETGRGID_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetgrgid_r()\fR +routine is available. +.ie n .IP """d_getgrnam_r""" 4 +.el .IP "\f(CWd_getgrnam_r\fR" 4 +.IX Item "d_getgrnam_r" +From \fId_getgrnam_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETGRNAM_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetgrnam_r()\fR +routine is available. +.ie n .IP """d_getgrps""" 4 +.el .IP "\f(CWd_getgrps\fR" 4 +.IX Item "d_getgrps" +From \fId_getgrps.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETGROUPS\*(C'\fR symbol, which +indicates to the C program that the \fBgetgroups()\fR routine is available +to get the list of process groups. +.ie n .IP """d_gethbyaddr""" 4 +.el .IP "\f(CWd_gethbyaddr\fR" 4 +.IX Item "d_gethbyaddr" +From \fId_gethbyad.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTBYADDR\*(C'\fR symbol, which +indicates to the C program that the \fBgethostbyaddr()\fR routine is available +to look up hosts by their \f(CW\*(C`IP\*(C'\fR addresses. +.ie n .IP """d_gethbyname""" 4 +.el .IP "\f(CWd_gethbyname\fR" 4 +.IX Item "d_gethbyname" +From \fId_gethbynm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTBYNAME\*(C'\fR symbol, which +indicates to the C program that the \fBgethostbyname()\fR routine is available +to look up host names in some data base or other. +.ie n .IP """d_gethent""" 4 +.el .IP "\f(CWd_gethent\fR" 4 +.IX Item "d_gethent" +From \fId_gethent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETHOSTENT\*(C'\fR if \fBgethostent()\fR is +available to look up host names in some data base or another. +.ie n .IP """d_gethname""" 4 +.el .IP "\f(CWd_gethname\fR" 4 +.IX Item "d_gethname" +From \fId_gethname.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTNAME\*(C'\fR symbol, which +indicates to the C program that the \fBgethostname()\fR routine may be +used to derive the host name. +.ie n .IP """d_gethostbyaddr_r""" 4 +.el .IP "\f(CWd_gethostbyaddr_r\fR" 4 +.IX Item "d_gethostbyaddr_r" +From \fId_gethostbyaddr_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTBYADDR_R\*(C'\fR symbol, +which indicates to the C program that the \fBgethostbyaddr_r()\fR +routine is available. +.ie n .IP """d_gethostbyname_r""" 4 +.el .IP "\f(CWd_gethostbyname_r\fR" 4 +.IX Item "d_gethostbyname_r" +From \fId_gethostbyname_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTBYNAME_R\*(C'\fR symbol, +which indicates to the C program that the \fBgethostbyname_r()\fR +routine is available. +.ie n .IP """d_gethostent_r""" 4 +.el .IP "\f(CWd_gethostent_r\fR" 4 +.IX Item "d_gethostent_r" +From \fId_gethostent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOSTENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgethostent_r()\fR +routine is available. +.ie n .IP """d_gethostprotos""" 4 +.el .IP "\f(CWd_gethostprotos\fR" 4 +.IX Item "d_gethostprotos" +From \fId_gethostprotos.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETHOST_PROTOS\*(C'\fR symbol, +which indicates to the C program that supplies +prototypes for the various gethost*() functions. +See also \fInetdbtype.U\fR for probing for various netdb types. +.ie n .IP """d_getitimer""" 4 +.el .IP "\f(CWd_getitimer\fR" 4 +.IX Item "d_getitimer" +From \fId_getitimer.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETITIMER\*(C'\fR symbol, which +indicates to the C program that the \fBgetitimer()\fR routine is available. +.ie n .IP """d_getlogin""" 4 +.el .IP "\f(CWd_getlogin\fR" 4 +.IX Item "d_getlogin" +From \fId_getlogin.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETLOGIN\*(C'\fR symbol, which +indicates to the C program that the \fBgetlogin()\fR routine is available +to get the login name. +.ie n .IP """d_getlogin_r""" 4 +.el .IP "\f(CWd_getlogin_r\fR" 4 +.IX Item "d_getlogin_r" +From \fId_getlogin_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETLOGIN_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetlogin_r()\fR +routine is available. +.ie n .IP """d_getmnt""" 4 +.el .IP "\f(CWd_getmnt\fR" 4 +.IX Item "d_getmnt" +From \fId_getmnt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETMNT\*(C'\fR symbol, which +indicates to the C program that the \fBgetmnt()\fR routine is available +to retrieve one or more mount info blocks by filename. +.ie n .IP """d_getmntent""" 4 +.el .IP "\f(CWd_getmntent\fR" 4 +.IX Item "d_getmntent" +From \fId_getmntent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETMNTENT\*(C'\fR symbol, which +indicates to the C program that the \fBgetmntent()\fR routine is available +to iterate through mounted files to get their mount info. +.ie n .IP """d_getnameinfo""" 4 +.el .IP "\f(CWd_getnameinfo\fR" 4 +.IX Item "d_getnameinfo" +From \fId_getnameinfo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNAMEINFO\*(C'\fR symbol, +which indicates to the C program that the \fBgetnameinfo()\fR function +is available. +.ie n .IP """d_getnbyaddr""" 4 +.el .IP "\f(CWd_getnbyaddr\fR" 4 +.IX Item "d_getnbyaddr" +From \fId_getnbyad.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNETBYADDR\*(C'\fR symbol, which +indicates to the C program that the \fBgetnetbyaddr()\fR routine is available +to look up networks by their \f(CW\*(C`IP\*(C'\fR addresses. +.ie n .IP """d_getnbyname""" 4 +.el .IP "\f(CWd_getnbyname\fR" 4 +.IX Item "d_getnbyname" +From \fId_getnbynm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNETBYNAME\*(C'\fR symbol, which +indicates to the C program that the \fBgetnetbyname()\fR routine is available +to look up networks by their names. +.ie n .IP """d_getnent""" 4 +.el .IP "\f(CWd_getnent\fR" 4 +.IX Item "d_getnent" +From \fId_getnent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETNETENT\*(C'\fR if \fBgetnetent()\fR is +available to look up network names in some data base or another. +.ie n .IP """d_getnetbyaddr_r""" 4 +.el .IP "\f(CWd_getnetbyaddr_r\fR" 4 +.IX Item "d_getnetbyaddr_r" +From \fId_getnetbyaddr_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNETBYADDR_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetnetbyaddr_r()\fR +routine is available. +.ie n .IP """d_getnetbyname_r""" 4 +.el .IP "\f(CWd_getnetbyname_r\fR" 4 +.IX Item "d_getnetbyname_r" +From \fId_getnetbyname_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNETBYNAME_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetnetbyname_r()\fR +routine is available. +.ie n .IP """d_getnetent_r""" 4 +.el .IP "\f(CWd_getnetent_r\fR" 4 +.IX Item "d_getnetent_r" +From \fId_getnetent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNETENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetnetent_r()\fR +routine is available. +.ie n .IP """d_getnetprotos""" 4 +.el .IP "\f(CWd_getnetprotos\fR" 4 +.IX Item "d_getnetprotos" +From \fId_getnetprotos.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETNET_PROTOS\*(C'\fR symbol, +which indicates to the C program that supplies +prototypes for the various getnet*() functions. +See also \fInetdbtype.U\fR for probing for various netdb types. +.ie n .IP """d_getpagsz""" 4 +.el .IP "\f(CWd_getpagsz\fR" 4 +.IX Item "d_getpagsz" +From \fId_getpagsz.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETPAGESIZE\*(C'\fR if \fBgetpagesize()\fR +is available to get the system page size. +.ie n .IP """d_getpbyname""" 4 +.el .IP "\f(CWd_getpbyname\fR" 4 +.IX Item "d_getpbyname" +From \fId_getprotby.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTOBYNAME\*(C'\fR +symbol, which indicates to the C program that the +\&\fBgetprotobyname()\fR routine is available to look up protocols +by their name. +.ie n .IP """d_getpbynumber""" 4 +.el .IP "\f(CWd_getpbynumber\fR" 4 +.IX Item "d_getpbynumber" +From \fId_getprotby.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTOBYNUMBER\*(C'\fR +symbol, which indicates to the C program that the +\&\fBgetprotobynumber()\fR routine is available to look up protocols +by their number. +.ie n .IP """d_getpent""" 4 +.el .IP "\f(CWd_getpent\fR" 4 +.IX Item "d_getpent" +From \fId_getpent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETPROTOENT\*(C'\fR if \fBgetprotoent()\fR is +available to look up protocols in some data base or another. +.ie n .IP """d_getpgid""" 4 +.el .IP "\f(CWd_getpgid\fR" 4 +.IX Item "d_getpgid" +From \fId_getpgid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPGID\*(C'\fR symbol, which +indicates to the C program that the getpgid(pid) function +is available to get the process group id. +.ie n .IP """d_getpgrp""" 4 +.el .IP "\f(CWd_getpgrp\fR" 4 +.IX Item "d_getpgrp" +From \fId_getpgrp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETPGRP\*(C'\fR if \fBgetpgrp()\fR is +available to get the current process group. +.ie n .IP """d_getpgrp2""" 4 +.el .IP "\f(CWd_getpgrp2\fR" 4 +.IX Item "d_getpgrp2" +From \fId_getpgrp2.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_GETPGRP2\s0 symbol, which +indicates to the C program that the \fBgetpgrp2()\fR (as in \fI\s-1DG/\s0\f(CI\*(C`UX\*(C'\fI\fR) routine +is available to get the current process group. +.ie n .IP """d_getppid""" 4 +.el .IP "\f(CWd_getppid\fR" 4 +.IX Item "d_getppid" +From \fId_getppid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPPID\*(C'\fR symbol, which +indicates to the C program that the \fBgetppid()\fR routine is available +to get the parent process \f(CW\*(C`ID\*(C'\fR. +.ie n .IP """d_getprior""" 4 +.el .IP "\f(CWd_getprior\fR" 4 +.IX Item "d_getprior" +From \fId_getprior.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETPRIORITY\*(C'\fR if \fBgetpriority()\fR +is available to get a process's priority. +.ie n .IP """d_getprotobyname_r""" 4 +.el .IP "\f(CWd_getprotobyname_r\fR" 4 +.IX Item "d_getprotobyname_r" +From \fId_getprotobyname_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTOBYNAME_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetprotobyname_r()\fR +routine is available. +.ie n .IP """d_getprotobynumber_r""" 4 +.el .IP "\f(CWd_getprotobynumber_r\fR" 4 +.IX Item "d_getprotobynumber_r" +From \fId_getprotobynumber_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTOBYNUMBER_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetprotobynumber_r()\fR +routine is available. +.ie n .IP """d_getprotoent_r""" 4 +.el .IP "\f(CWd_getprotoent_r\fR" 4 +.IX Item "d_getprotoent_r" +From \fId_getprotoent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTOENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetprotoent_r()\fR +routine is available. +.ie n .IP """d_getprotoprotos""" 4 +.el .IP "\f(CWd_getprotoprotos\fR" 4 +.IX Item "d_getprotoprotos" +From \fId_getprotoprotos.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPROTO_PROTOS\*(C'\fR symbol, +which indicates to the C program that supplies +prototypes for the various getproto*() functions. +See also \fInetdbtype.U\fR for probing for various netdb types. +.ie n .IP """d_getprpwnam""" 4 +.el .IP "\f(CWd_getprpwnam\fR" 4 +.IX Item "d_getprpwnam" +From \fId_getprpwnam.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETPRPWNAM\*(C'\fR if \fBgetprpwnam()\fR is +available to retrieve protected (shadow) password entries by name. +.ie n .IP """d_getpwent""" 4 +.el .IP "\f(CWd_getpwent\fR" 4 +.IX Item "d_getpwent" +From \fId_getpwent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPWENT\*(C'\fR symbol, which +indicates to the C program that the \fBgetpwent()\fR routine is available +for sequential access of the passwd database. +.ie n .IP """d_getpwent_r""" 4 +.el .IP "\f(CWd_getpwent_r\fR" 4 +.IX Item "d_getpwent_r" +From \fId_getpwent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPWENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetpwent_r()\fR +routine is available. +.ie n .IP """d_getpwnam_r""" 4 +.el .IP "\f(CWd_getpwnam_r\fR" 4 +.IX Item "d_getpwnam_r" +From \fId_getpwnam_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPWNAM_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetpwnam_r()\fR +routine is available. +.ie n .IP """d_getpwuid_r""" 4 +.el .IP "\f(CWd_getpwuid_r\fR" 4 +.IX Item "d_getpwuid_r" +From \fId_getpwuid_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETPWUID_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetpwuid_r()\fR +routine is available. +.ie n .IP """d_getsbyname""" 4 +.el .IP "\f(CWd_getsbyname\fR" 4 +.IX Item "d_getsbyname" +From \fId_getsrvby.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERVBYNAME\*(C'\fR +symbol, which indicates to the C program that the +\&\fBgetservbyname()\fR routine is available to look up services +by their name. +.ie n .IP """d_getsbyport""" 4 +.el .IP "\f(CWd_getsbyport\fR" 4 +.IX Item "d_getsbyport" +From \fId_getsrvby.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERVBYPORT\*(C'\fR +symbol, which indicates to the C program that the +\&\fBgetservbyport()\fR routine is available to look up services +by their port. +.ie n .IP """d_getsent""" 4 +.el .IP "\f(CWd_getsent\fR" 4 +.IX Item "d_getsent" +From \fId_getsent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETSERVENT\*(C'\fR if \fBgetservent()\fR is +available to look up network services in some data base or another. +.ie n .IP """d_getservbyname_r""" 4 +.el .IP "\f(CWd_getservbyname_r\fR" 4 +.IX Item "d_getservbyname_r" +From \fId_getservbyname_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERVBYNAME_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetservbyname_r()\fR +routine is available. +.ie n .IP """d_getservbyport_r""" 4 +.el .IP "\f(CWd_getservbyport_r\fR" 4 +.IX Item "d_getservbyport_r" +From \fId_getservbyport_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERVBYPORT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetservbyport_r()\fR +routine is available. +.ie n .IP """d_getservent_r""" 4 +.el .IP "\f(CWd_getservent_r\fR" 4 +.IX Item "d_getservent_r" +From \fId_getservent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERVENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetservent_r()\fR +routine is available. +.ie n .IP """d_getservprotos""" 4 +.el .IP "\f(CWd_getservprotos\fR" 4 +.IX Item "d_getservprotos" +From \fId_getservprotos.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSERV_PROTOS\*(C'\fR symbol, +which indicates to the C program that supplies +prototypes for the various getserv*() functions. +See also \fInetdbtype.U\fR for probing for various netdb types. +.ie n .IP """d_getspnam""" 4 +.el .IP "\f(CWd_getspnam\fR" 4 +.IX Item "d_getspnam" +From \fId_getspnam.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_GETSPNAM\*(C'\fR if \fBgetspnam()\fR is +available to retrieve SysV shadow password entries by name. +.ie n .IP """d_getspnam_r""" 4 +.el .IP "\f(CWd_getspnam_r\fR" 4 +.IX Item "d_getspnam_r" +From \fId_getspnam_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETSPNAM_R\*(C'\fR symbol, +which indicates to the C program that the \fBgetspnam_r()\fR +routine is available. +.ie n .IP """d_gettimeod""" 4 +.el .IP "\f(CWd_gettimeod\fR" 4 +.IX Item "d_gettimeod" +From \fId_ftime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GETTIMEOFDAY\*(C'\fR symbol, which +indicates that the \fBgettimeofday()\fR system call exists (to obtain a +sub-second accuracy clock). You should probably include . +.ie n .IP """d_gmtime64""" 4 +.el .IP "\f(CWd_gmtime64\fR" 4 +.IX Item "d_gmtime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_GMTIME64\s0 symbol, which +indicates to the C program that the gmtime64 () routine is available. +.ie n .IP """d_gmtime_r""" 4 +.el .IP "\f(CWd_gmtime_r\fR" 4 +.IX Item "d_gmtime_r" +From \fId_gmtime_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_GMTIME_R\*(C'\fR symbol, +which indicates to the C program that the \fBgmtime_r()\fR +routine is available. +.ie n .IP """d_gnulibc""" 4 +.el .IP "\f(CWd_gnulibc\fR" 4 +.IX Item "d_gnulibc" +From \fId_gnulibc.U\fR: +.Sp +Defined if we're dealing with the \f(CW\*(C`GNU\*(C'\fR C Library. +.ie n .IP """d_grpasswd""" 4 +.el .IP "\f(CWd_grpasswd\fR" 4 +.IX Item "d_grpasswd" +From \fIi_grp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`GRPASSWD\*(C'\fR, which indicates +that struct group in contains gr_passwd. +.ie n .IP """d_has_C_UTF8""" 4 +.el .IP "\f(CWd_has_C_UTF8\fR" 4 +.IX Item "d_has_C_UTF8" +From \fId_setlocale.U\fR: +.Sp +This variable is set to either \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR depending on +whether the compilation system supports the \fIC.UTF\fR\-8 locale. +.ie n .IP """d_hasmntopt""" 4 +.el .IP "\f(CWd_hasmntopt\fR" 4 +.IX Item "d_hasmntopt" +From \fId_hasmntopt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_HASMNTOPT\*(C'\fR symbol, which +indicates to the C program that the \fBhasmntopt()\fR routine is available +to query the mount options of file systems. +.ie n .IP """d_htonl""" 4 +.el .IP "\f(CWd_htonl\fR" 4 +.IX Item "d_htonl" +From \fId_htonl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_HTONL\*(C'\fR if \fBhtonl()\fR and its +friends are available to do network order byte swapping. +.ie n .IP """d_hypot""" 4 +.el .IP "\f(CWd_hypot\fR" 4 +.IX Item "d_hypot" +From \fId_hypot.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_HYPOT\*(C'\fR if hypot is available +for numerically stable hypotenuse function. +.ie n .IP """d_ilogb""" 4 +.el .IP "\f(CWd_ilogb\fR" 4 +.IX Item "d_ilogb" +From \fId_ilogb.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ILOGB\*(C'\fR symbol, which +indicates to the C program that the \fBilogb()\fR routine is available +for extracting the exponent of double x as a signed integer. +.ie n .IP """d_ilogbl""" 4 +.el .IP "\f(CWd_ilogbl\fR" 4 +.IX Item "d_ilogbl" +From \fId_ilogbl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ILOGBL\*(C'\fR symbol, which +indicates to the C program that the \fBilogbl()\fR routine is available +for extracting the exponent of long double x as a signed integer. +If scalbnl is also present we can emulate frexpl. +.ie n .IP """d_inc_version_list""" 4 +.el .IP "\f(CWd_inc_version_list\fR" 4 +.IX Item "d_inc_version_list" +From \fIinc_version_list.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PERL_INC_VERSION_LIST\*(C'\fR. +It is set to undef when \f(CW\*(C`PERL_INC_VERSION_LIST\*(C'\fR is empty. +.ie n .IP """d_inetaton""" 4 +.el .IP "\f(CWd_inetaton\fR" 4 +.IX Item "d_inetaton" +From \fId_inetaton.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_INET_ATON\*(C'\fR symbol, which +indicates to the C program that the \fBinet_aton()\fR function is available +to parse \f(CW\*(C`IP\*(C'\fR address \f(CW\*(C`dotted\-quad\*(C'\fR strings. +.ie n .IP """d_inetntop""" 4 +.el .IP "\f(CWd_inetntop\fR" 4 +.IX Item "d_inetntop" +From \fId_inetntop.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_INETNTOP\*(C'\fR symbol, +which indicates to the C program that the \fBinet_ntop()\fR function +is available. +.ie n .IP """d_inetpton""" 4 +.el .IP "\f(CWd_inetpton\fR" 4 +.IX Item "d_inetpton" +From \fId_inetpton.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_INETPTON\*(C'\fR symbol, +which indicates to the C program that the \fBinet_pton()\fR function +is available. +.ie n .IP """d_int64_t""" 4 +.el .IP "\f(CWd_int64_t\fR" 4 +.IX Item "d_int64_t" +From \fId_int64_t.U\fR: +.Sp +This symbol will be defined if the C compiler supports int64_t. +.ie n .IP """d_ip_mreq""" 4 +.el .IP "\f(CWd_ip_mreq\fR" 4 +.IX Item "d_ip_mreq" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_IP_MREQ\*(C'\fR symbol, which +indicates the availability of a struct ip_mreq. +.ie n .IP """d_ip_mreq_source""" 4 +.el .IP "\f(CWd_ip_mreq_source\fR" 4 +.IX Item "d_ip_mreq_source" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_IP_MREQ_SOURCE\*(C'\fR symbol, +which indicates the availability of a struct ip_mreq_source. +.ie n .IP """d_ipv6_mreq""" 4 +.el .IP "\f(CWd_ipv6_mreq\fR" 4 +.IX Item "d_ipv6_mreq" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_IPV6_MREQ\s0 symbol, which +indicates the availability of a struct ipv6_mreq. +.ie n .IP """d_ipv6_mreq_source""" 4 +.el .IP "\f(CWd_ipv6_mreq_source\fR" 4 +.IX Item "d_ipv6_mreq_source" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_IPV6_MREQ_SOURCE\s0 symbol, +which indicates the availability of a struct ipv6_mreq_source. +.ie n .IP """d_isascii""" 4 +.el .IP "\f(CWd_isascii\fR" 4 +.IX Item "d_isascii" +From \fId_isascii.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISASCII\*(C'\fR constant, +which indicates to the C program that \fBisascii()\fR is available. +.ie n .IP """d_isblank""" 4 +.el .IP "\f(CWd_isblank\fR" 4 +.IX Item "d_isblank" +From \fId_isblank.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISBLANK\*(C'\fR constant, +which indicates to the C program that \fBisblank()\fR is available. +.ie n .IP """d_isfinite""" 4 +.el .IP "\f(CWd_isfinite\fR" 4 +.IX Item "d_isfinite" +From \fId_isfinite.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISFINITE\*(C'\fR symbol, which +indicates to the C program that the \fBisfinite()\fR routine is available. +.ie n .IP """d_isfinitel""" 4 +.el .IP "\f(CWd_isfinitel\fR" 4 +.IX Item "d_isfinitel" +From \fId_isfinitel.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISFINITEL\*(C'\fR symbol, which +indicates to the C program that the \fBisfinitel()\fR routine is available. +.ie n .IP """d_isinf""" 4 +.el .IP "\f(CWd_isinf\fR" 4 +.IX Item "d_isinf" +From \fId_isinf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISINF\*(C'\fR symbol, which +indicates to the C program that the \fBisinf()\fR routine is available. +.ie n .IP """d_isinfl""" 4 +.el .IP "\f(CWd_isinfl\fR" 4 +.IX Item "d_isinfl" +From \fId_isinfl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISINFL\*(C'\fR symbol, which +indicates to the C program that the \fBisinfl()\fR routine is available. +.ie n .IP """d_isless""" 4 +.el .IP "\f(CWd_isless\fR" 4 +.IX Item "d_isless" +From \fId_isless.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISLESS\*(C'\fR symbol, which +indicates to the C program that the \fBisless()\fR routine is available. +.ie n .IP """d_isnan""" 4 +.el .IP "\f(CWd_isnan\fR" 4 +.IX Item "d_isnan" +From \fId_isnan.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISNAN\*(C'\fR symbol, which +indicates to the C program that the \fBisnan()\fR routine is available. +.ie n .IP """d_isnanl""" 4 +.el .IP "\f(CWd_isnanl\fR" 4 +.IX Item "d_isnanl" +From \fId_isnanl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISNANL\*(C'\fR symbol, which +indicates to the C program that the \fBisnanl()\fR routine is available. +.ie n .IP """d_isnormal""" 4 +.el .IP "\f(CWd_isnormal\fR" 4 +.IX Item "d_isnormal" +From \fId_isnormal.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ISNORMAL\*(C'\fR symbol, which +indicates to the C program that the \fBisnormal()\fR routine is available. +.ie n .IP """d_j0""" 4 +.el .IP "\f(CWd_j0\fR" 4 +.IX Item "d_j0" +From \fId_j0.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_J0\s0 symbol, which +indicates to the C program that the \fBj0()\fR routine is available. +.ie n .IP """d_j0l""" 4 +.el .IP "\f(CWd_j0l\fR" 4 +.IX Item "d_j0l" +From \fId_j0.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_J0L\s0 symbol, which +indicates to the C program that the \fBj0l()\fR routine is available. +.ie n .IP """d_killpg""" 4 +.el .IP "\f(CWd_killpg\fR" 4 +.IX Item "d_killpg" +From \fId_killpg.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_KILLPG\*(C'\fR symbol, which +indicates to the C program that the \fBkillpg()\fR routine is available +to kill process groups. +.ie n .IP """d_lc_monetary_2008""" 4 +.el .IP "\f(CWd_lc_monetary_2008\fR" 4 +.IX Item "d_lc_monetary_2008" +From \fId_lc_monetary_2008.U\fR: +.Sp +This variable conditionally defines \s-1HAS_LC_MONETARY_2008\s0 if libc +has the international currency locale rules from \f(CW\*(C`POSIX\*(C'\fR +1003.1\-2008. +.ie n .IP """d_lchown""" 4 +.el .IP "\f(CWd_lchown\fR" 4 +.IX Item "d_lchown" +From \fId_lchown.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LCHOWN\*(C'\fR symbol, which +indicates to the C program that the \fBlchown()\fR routine is available +to operate on a symbolic link (instead of following the link). +.ie n .IP """d_ldbl_dig""" 4 +.el .IP "\f(CWd_ldbl_dig\fR" 4 +.IX Item "d_ldbl_dig" +From \fId_ldbl_dig.U\fR: +.Sp +This variable conditionally defines d_ldbl_dig if this system's +header files provide \f(CW\*(C`LDBL_DIG\*(C'\fR, which is the number of significant +digits in a long double precision number. +.ie n .IP """d_ldexpl""" 4 +.el .IP "\f(CWd_ldexpl\fR" 4 +.IX Item "d_ldexpl" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LDEXPL\*(C'\fR symbol, which +indicates to the C program that the \fBldexpl()\fR routine is available. +.ie n .IP """d_lgamma""" 4 +.el .IP "\f(CWd_lgamma\fR" 4 +.IX Item "d_lgamma" +From \fId_lgamma.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LGAMMA\*(C'\fR symbol, which +indicates to the C program that the \fBlgamma()\fR routine is available +for the log gamma function. See also d_tgamma and d_lgamma_r. +.ie n .IP """d_lgamma_r""" 4 +.el .IP "\f(CWd_lgamma_r\fR" 4 +.IX Item "d_lgamma_r" +From \fId_lgamma_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LGAMMA_R\*(C'\fR symbol, which +indicates to the C program that the \fBlgamma_r()\fR routine is available +for the log gamma function, without using the global signgam variable. +.ie n .IP """d_libm_lib_version""" 4 +.el .IP "\f(CWd_libm_lib_version\fR" 4 +.IX Item "d_libm_lib_version" +From \fId_libm_lib_version.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`LIBM_LIB_VERSION\*(C'\fR symbol, +which indicates to the C program that \fImath.h\fR defines \f(CW\*(C`_LIB_VERSION\*(C'\fR +being available in libm +.ie n .IP """d_libname_unique""" 4 +.el .IP "\f(CWd_libname_unique\fR" 4 +.IX Item "d_libname_unique" +From \fIso.U\fR: +.Sp +This variable is defined if the target system insists on unique +basenames for shared library files. This is currently true on Android, +false everywhere else we know of. +Defaults to \f(CW\*(C`undef\*(C'\fR. +.ie n .IP """d_link""" 4 +.el .IP "\f(CWd_link\fR" 4 +.IX Item "d_link" +From \fId_link.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LINK\*(C'\fR if \fBlink()\fR is +available to create hard links. +.ie n .IP """d_linkat""" 4 +.el .IP "\f(CWd_linkat\fR" 4 +.IX Item "d_linkat" +From \fId_fsat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LINKAT\*(C'\fR symbol, which +indicates the \f(CW\*(C`POSIX\*(C'\fR \fBlinkat()\fR function is available. +.ie n .IP """d_llrint""" 4 +.el .IP "\f(CWd_llrint\fR" 4 +.IX Item "d_llrint" +From \fId_llrint.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LLRINT\*(C'\fR symbol, which +indicates to the C program that the \fBllrint()\fR routine is available +to return the long long value closest to a double (according +to the current rounding mode). +.ie n .IP """d_llrintl""" 4 +.el .IP "\f(CWd_llrintl\fR" 4 +.IX Item "d_llrintl" +From \fId_llrintl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LLRINTL\*(C'\fR symbol, which +indicates to the C program that the \fBllrintl()\fR routine is available +to return the long long value closest to a long double (according +to the current rounding mode). +.ie n .IP """d_llround""" 4 +.el .IP "\f(CWd_llround\fR" 4 +.IX Item "d_llround" +From \fId_llround.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LLROUND\*(C'\fR symbol, which +indicates to the C program that the \fBllround()\fR routine is available +to return the long long value nearest to x. +.ie n .IP """d_llroundl""" 4 +.el .IP "\f(CWd_llroundl\fR" 4 +.IX Item "d_llroundl" +From \fId_llroundl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LLROUNDL\*(C'\fR symbol, which +indicates to the C program that the \fBllroundl()\fR routine is available +to return the long long value nearest to x away from zero. +.ie n .IP """d_localeconv_l""" 4 +.el .IP "\f(CWd_localeconv_l\fR" 4 +.IX Item "d_localeconv_l" +From \fId_localeconv_l.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LOCALECONV_L\*(C'\fR symbol, which +indicates to the C program that the \fBlocaleconv_l()\fR routine is available. +.ie n .IP """d_localtime64""" 4 +.el .IP "\f(CWd_localtime64\fR" 4 +.IX Item "d_localtime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_LOCALTIME64\s0 symbol, which +indicates to the C program that the localtime64 () routine is available. +.ie n .IP """d_localtime_r""" 4 +.el .IP "\f(CWd_localtime_r\fR" 4 +.IX Item "d_localtime_r" +From \fId_localtime_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LOCALTIME_R\*(C'\fR symbol, +which indicates to the C program that the \fBlocaltime_r()\fR +routine is available. +.ie n .IP """d_localtime_r_needs_tzset""" 4 +.el .IP "\f(CWd_localtime_r_needs_tzset\fR" 4 +.IX Item "d_localtime_r_needs_tzset" +From \fId_localtime_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`LOCALTIME_R_NEEDS_TZSET\*(C'\fR +symbol, which makes us call tzset before \fBlocaltime_r()\fR +.ie n .IP """d_locconv""" 4 +.el .IP "\f(CWd_locconv\fR" 4 +.IX Item "d_locconv" +From \fId_locconv.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LOCALECONV\*(C'\fR if \fBlocaleconv()\fR is +available for numeric and monetary formatting conventions. +.ie n .IP """d_lockf""" 4 +.el .IP "\f(CWd_lockf\fR" 4 +.IX Item "d_lockf" +From \fId_lockf.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LOCKF\*(C'\fR if \fBlockf()\fR is +available to do file locking. +.ie n .IP """d_log1p""" 4 +.el .IP "\f(CWd_log1p\fR" 4 +.IX Item "d_log1p" +From \fId_log1p.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_LOG1P\s0 symbol, which +indicates to the C program that the \fBlogp1()\fR routine is available +to compute log(1 + x) for values of x close to zero. +.ie n .IP """d_log2""" 4 +.el .IP "\f(CWd_log2\fR" 4 +.IX Item "d_log2" +From \fId_log2.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_LOG2\s0 symbol, which +indicates to the C program that the \fBlog2()\fR routine is available +to compute log base two. +.ie n .IP """d_logb""" 4 +.el .IP "\f(CWd_logb\fR" 4 +.IX Item "d_logb" +From \fId_logb.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LOGB\*(C'\fR symbol, which +indicates to the C program that the \fBlogb()\fR routine is available +to extract the exponent of x. +.ie n .IP """d_long_double_style_ieee""" 4 +.el .IP "\f(CWd_long_double_style_ieee\fR" 4 +.IX Item "d_long_double_style_ieee" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`LONG_DOUBLE_STYLE_IEEE\*(C'\fR +if the long double is any of the \f(CW\*(C`IEEE\*(C'\fR 754 style long doubles: +\&\f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_STD\*(C'\fR, \f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_EXTENDED\*(C'\fR, +\&\f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_DOUBLEDOUBLE\*(C'\fR. +.ie n .IP """d_long_double_style_ieee_doubledouble""" 4 +.el .IP "\f(CWd_long_double_style_ieee_doubledouble\fR" 4 +.IX Item "d_long_double_style_ieee_doubledouble" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_DOUBLEDOUBLE\*(C'\fR +if the long double is the 128\-bit \f(CW\*(C`IEEE\*(C'\fR 754 double-double. +.ie n .IP """d_long_double_style_ieee_extended""" 4 +.el .IP "\f(CWd_long_double_style_ieee_extended\fR" 4 +.IX Item "d_long_double_style_ieee_extended" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_EXTENDED\*(C'\fR +if the long double is the 80\-bit \f(CW\*(C`IEEE\*(C'\fR 754 extended precision. +Note that despite the \f(CW\*(C`extended\*(C'\fR this is less than the \f(CW\*(C`std\*(C'\fR, +since thisis an extension of the double precision. +.ie n .IP """d_long_double_style_ieee_std""" 4 +.el .IP "\f(CWd_long_double_style_ieee_std\fR" 4 +.IX Item "d_long_double_style_ieee_std" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`LONG_DOUBLE_STYLE_IEEE_STD\*(C'\fR +if the long double is the 128\-bit \f(CW\*(C`IEEE\*(C'\fR 754. +.ie n .IP """d_long_double_style_vax""" 4 +.el .IP "\f(CWd_long_double_style_vax\fR" 4 +.IX Item "d_long_double_style_vax" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`LONG_DOUBLE_STYLE_VAX\*(C'\fR +if the long double is the 128\-bit \f(CW\*(C`VAX\*(C'\fR format H. +.ie n .IP """d_longdbl""" 4 +.el .IP "\f(CWd_longdbl\fR" 4 +.IX Item "d_longdbl" +From \fId_longdbl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LONG_DOUBLE\*(C'\fR if +the long double type is supported. +.ie n .IP """d_longlong""" 4 +.el .IP "\f(CWd_longlong\fR" 4 +.IX Item "d_longlong" +From \fId_longlong.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LONG_LONG\*(C'\fR if +the long long type is supported. +.ie n .IP """d_lrint""" 4 +.el .IP "\f(CWd_lrint\fR" 4 +.IX Item "d_lrint" +From \fId_lrint.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LRINT\*(C'\fR symbol, which +indicates to the C program that the \fBlrint()\fR routine is available +to return the integral value closest to a double (according +to the current rounding mode). +.ie n .IP """d_lrintl""" 4 +.el .IP "\f(CWd_lrintl\fR" 4 +.IX Item "d_lrintl" +From \fId_lrintl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LRINTL\*(C'\fR symbol, which +indicates to the C program that the \fBlrintl()\fR routine is available +to return the integral value closest to a long double (according +to the current rounding mode). +.ie n .IP """d_lround""" 4 +.el .IP "\f(CWd_lround\fR" 4 +.IX Item "d_lround" +From \fId_lround.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LROUND\*(C'\fR symbol, which +indicates to the C program that the \fBlround()\fR routine is available +to return the integral value nearest to x. +.ie n .IP """d_lroundl""" 4 +.el .IP "\f(CWd_lroundl\fR" 4 +.IX Item "d_lroundl" +From \fId_lroundl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LROUNDL\*(C'\fR symbol, which +indicates to the C program that the \fBlroundl()\fR routine is available +to return the integral value nearest to x away from zero. +.ie n .IP """d_lseekproto""" 4 +.el .IP "\f(CWd_lseekproto\fR" 4 +.IX Item "d_lseekproto" +From \fId_lseekproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_LSEEK_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBlseek()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_lstat""" 4 +.el .IP "\f(CWd_lstat\fR" 4 +.IX Item "d_lstat" +From \fId_lstat.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_LSTAT\*(C'\fR if \fBlstat()\fR is +available to do file stats on symbolic links. +.ie n .IP """d_madvise""" 4 +.el .IP "\f(CWd_madvise\fR" 4 +.IX Item "d_madvise" +From \fId_madvise.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MADVISE\*(C'\fR if \fBmadvise()\fR is +available to map a file into memory. +.ie n .IP """d_malloc_good_size""" 4 +.el .IP "\f(CWd_malloc_good_size\fR" 4 +.IX Item "d_malloc_good_size" +From \fId_malloc_size.U\fR: +.Sp +This symbol, if defined, indicates that the malloc_good_size +routine is available for use. +.ie n .IP """d_malloc_size""" 4 +.el .IP "\f(CWd_malloc_size\fR" 4 +.IX Item "d_malloc_size" +From \fId_malloc_size.U\fR: +.Sp +This symbol, if defined, indicates that the malloc_size +routine is available for use. +.ie n .IP """d_mblen""" 4 +.el .IP "\f(CWd_mblen\fR" 4 +.IX Item "d_mblen" +From \fId_mblen.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MBLEN\*(C'\fR symbol, which +indicates to the C program that the \fBmblen()\fR routine is available +to find the number of bytes in a multibye character. +.ie n .IP """d_mbrlen""" 4 +.el .IP "\f(CWd_mbrlen\fR" 4 +.IX Item "d_mbrlen" +From \fId_mbrlen.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MBRLEN\*(C'\fR symbol if the +\&\fBmbrlen()\fR routine is available to be used to get the length of +multi-byte character strings. +.ie n .IP """d_mbrtowc""" 4 +.el .IP "\f(CWd_mbrtowc\fR" 4 +.IX Item "d_mbrtowc" +From \fId_mbrtowc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MBRTOWC\*(C'\fR symbol if the +\&\fBmbrtowc()\fR routine is available to be used to convert a multi-byte +character into a wide character. +.ie n .IP """d_mbstowcs""" 4 +.el .IP "\f(CWd_mbstowcs\fR" 4 +.IX Item "d_mbstowcs" +From \fId_mbstowcs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MBSTOWCS\*(C'\fR symbol, which +indicates to the C program that the \fBmbstowcs()\fR routine is available +to convert a multibyte string into a wide character string. +.ie n .IP """d_mbtowc""" 4 +.el .IP "\f(CWd_mbtowc\fR" 4 +.IX Item "d_mbtowc" +From \fId_mbtowc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MBTOWC\*(C'\fR symbol, which +indicates to the C program that the \fBmbtowc()\fR routine is available +to convert multibyte to a wide character. +.ie n .IP """d_memmem""" 4 +.el .IP "\f(CWd_memmem\fR" 4 +.IX Item "d_memmem" +From \fId_memmem.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MEMMEM\*(C'\fR symbol, which +indicates to the C program that the \fBmemmem()\fR routine is available +to return a pointer to the start of the first occurance of a +substring in a memory area (or \f(CW\*(C`NULL\*(C'\fR if not found). +.ie n .IP """d_memrchr""" 4 +.el .IP "\f(CWd_memrchr\fR" 4 +.IX Item "d_memrchr" +From \fId_memrchr.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MEMRCHR\*(C'\fR symbol, which +indicates to the C program that the \fBmemrchr()\fR routine is available +to return a pointer to the last occurrence of a byte in a memory +area (or \f(CW\*(C`NULL\*(C'\fR if not found). +.ie n .IP """d_mkdir""" 4 +.el .IP "\f(CWd_mkdir\fR" 4 +.IX Item "d_mkdir" +From \fId_mkdir.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKDIR\*(C'\fR symbol, which +indicates to the C program that the \fBmkdir()\fR routine is available +to create \fIdirectories.\fR. +.ie n .IP """d_mkdtemp""" 4 +.el .IP "\f(CWd_mkdtemp\fR" 4 +.IX Item "d_mkdtemp" +From \fId_mkdtemp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKDTEMP\*(C'\fR symbol, which +indicates to the C program that the \fBmkdtemp()\fR routine is available +to exclusively create a uniquely named temporary directory. +.ie n .IP """d_mkfifo""" 4 +.el .IP "\f(CWd_mkfifo\fR" 4 +.IX Item "d_mkfifo" +From \fId_mkfifo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKFIFO\*(C'\fR symbol, which +indicates to the C program that the \fBmkfifo()\fR routine is available. +.ie n .IP """d_mkostemp""" 4 +.el .IP "\f(CWd_mkostemp\fR" 4 +.IX Item "d_mkostemp" +From \fId_mkostemp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MKOSTEMP\*(C'\fR if \fBmkostemp()\fR is +available to exclusively create and open a uniquely named (with a +suffix) temporary file. +.ie n .IP """d_mkstemp""" 4 +.el .IP "\f(CWd_mkstemp\fR" 4 +.IX Item "d_mkstemp" +From \fId_mkstemp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKSTEMP\*(C'\fR symbol, which +indicates to the C program that the \fBmkstemp()\fR routine is available +to exclusively create and open a uniquely named temporary file. +.ie n .IP """d_mkstemps""" 4 +.el .IP "\f(CWd_mkstemps\fR" 4 +.IX Item "d_mkstemps" +From \fId_mkstemps.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKSTEMPS\*(C'\fR symbol, which +indicates to the C program that the \fBmkstemps()\fR routine is available +to exclusively create and open a uniquely named (with a suffix) +temporary file. +.ie n .IP """d_mktime""" 4 +.el .IP "\f(CWd_mktime\fR" 4 +.IX Item "d_mktime" +From \fId_mktime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MKTIME\*(C'\fR symbol, which +indicates to the C program that the \fBmktime()\fR routine is available. +.ie n .IP """d_mktime64""" 4 +.el .IP "\f(CWd_mktime64\fR" 4 +.IX Item "d_mktime64" +From \fId_timefuncs64.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_MKTIME64\s0 symbol, which +indicates to the C program that the mktime64 () routine is available. +.ie n .IP """d_mmap""" 4 +.el .IP "\f(CWd_mmap\fR" 4 +.IX Item "d_mmap" +From \fId_mmap.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MMAP\*(C'\fR if \fBmmap()\fR is +available to map a file into memory. +.ie n .IP """d_modfl""" 4 +.el .IP "\f(CWd_modfl\fR" 4 +.IX Item "d_modfl" +From \fId_modfl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MODFL\*(C'\fR symbol, which +indicates to the C program that the \fBmodfl()\fR routine is available. +.ie n .IP """d_modflproto""" 4 +.el .IP "\f(CWd_modflproto\fR" 4 +.IX Item "d_modflproto" +From \fId_modfl.U\fR: +.Sp +This symbol, if defined, indicates that the system provides +a prototype for the \fBmodfl()\fR function. Otherwise, it is up +to the program to supply one. C99 says it should be +long double modfl(long double, long double *); +.ie n .IP """d_mprotect""" 4 +.el .IP "\f(CWd_mprotect\fR" 4 +.IX Item "d_mprotect" +From \fId_mprotect.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MPROTECT\*(C'\fR if \fBmprotect()\fR is +available to modify the access protection of a memory mapped file. +.ie n .IP """d_msg""" 4 +.el .IP "\f(CWd_msg\fR" 4 +.IX Item "d_msg" +From \fId_msg.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG\*(C'\fR symbol, which +indicates that the entire msg*(2) library is present. +.ie n .IP """d_msg_ctrunc""" 4 +.el .IP "\f(CWd_msg_ctrunc\fR" 4 +.IX Item "d_msg_ctrunc" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG_CTRUNC\*(C'\fR symbol, +which indicates that the \f(CW\*(C`MSG_CTRUNC\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_msg_dontroute""" 4 +.el .IP "\f(CWd_msg_dontroute\fR" 4 +.IX Item "d_msg_dontroute" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG_DONTROUTE\*(C'\fR symbol, +which indicates that the \f(CW\*(C`MSG_DONTROUTE\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_msg_oob""" 4 +.el .IP "\f(CWd_msg_oob\fR" 4 +.IX Item "d_msg_oob" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG_OOB\*(C'\fR symbol, +which indicates that the \f(CW\*(C`MSG_OOB\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_msg_peek""" 4 +.el .IP "\f(CWd_msg_peek\fR" 4 +.IX Item "d_msg_peek" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG_PEEK\*(C'\fR symbol, +which indicates that the \f(CW\*(C`MSG_PEEK\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_msg_proxy""" 4 +.el .IP "\f(CWd_msg_proxy\fR" 4 +.IX Item "d_msg_proxy" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSG_PROXY\*(C'\fR symbol, +which indicates that the \f(CW\*(C`MSG_PROXY\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_msgctl""" 4 +.el .IP "\f(CWd_msgctl\fR" 4 +.IX Item "d_msgctl" +From \fId_msgctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSGCTL\*(C'\fR symbol, which +indicates to the C program that the \fBmsgctl()\fR routine is available. +.ie n .IP """d_msgget""" 4 +.el .IP "\f(CWd_msgget\fR" 4 +.IX Item "d_msgget" +From \fId_msgget.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSGGET\*(C'\fR symbol, which +indicates to the C program that the \fBmsgget()\fR routine is available. +.ie n .IP """d_msghdr_s""" 4 +.el .IP "\f(CWd_msghdr_s\fR" 4 +.IX Item "d_msghdr_s" +From \fId_msghdr_s.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRUCT_MSGHDR\*(C'\fR symbol, +which indicates that the struct msghdr is supported. +.ie n .IP """d_msgrcv""" 4 +.el .IP "\f(CWd_msgrcv\fR" 4 +.IX Item "d_msgrcv" +From \fId_msgrcv.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSGRCV\*(C'\fR symbol, which +indicates to the C program that the \fBmsgrcv()\fR routine is available. +.ie n .IP """d_msgsnd""" 4 +.el .IP "\f(CWd_msgsnd\fR" 4 +.IX Item "d_msgsnd" +From \fId_msgsnd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_MSGSND\*(C'\fR symbol, which +indicates to the C program that the \fBmsgsnd()\fR routine is available. +.ie n .IP """d_msync""" 4 +.el .IP "\f(CWd_msync\fR" 4 +.IX Item "d_msync" +From \fId_msync.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MSYNC\*(C'\fR if \fBmsync()\fR is +available to synchronize a mapped file. +.ie n .IP """d_munmap""" 4 +.el .IP "\f(CWd_munmap\fR" 4 +.IX Item "d_munmap" +From \fId_munmap.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_MUNMAP\*(C'\fR if \fBmunmap()\fR is +available to unmap a region mapped by \fBmmap()\fR. +.ie n .IP """d_mymalloc""" 4 +.el .IP "\f(CWd_mymalloc\fR" 4 +.IX Item "d_mymalloc" +From \fImallocsrc.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`MYMALLOC\*(C'\fR in case other parts +of the source want to take special action if \f(CW\*(C`MYMALLOC\*(C'\fR is used. +This may include different sorts of profiling or error detection. +.ie n .IP """d_nan""" 4 +.el .IP "\f(CWd_nan\fR" 4 +.IX Item "d_nan" +From \fId_nan.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_NAN\*(C'\fR if \fBnan()\fR is +available to generate NaN. +.ie n .IP """d_nanosleep""" 4 +.el .IP "\f(CWd_nanosleep\fR" 4 +.IX Item "d_nanosleep" +From \fId_nanosleep.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_NANOSLEEP\*(C'\fR +if \fBnanosleep()\fR is available to sleep with 1E\-9 sec accuracy. +.ie n .IP """d_ndbm""" 4 +.el .IP "\f(CWd_ndbm\fR" 4 +.IX Item "d_ndbm" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_NDBM\*(C'\fR symbol, which +indicates that both the \fIndbm.h\fR include file and an appropriate ndbm +library exist. Consult the different i_*ndbm variables +to find out the actual include location. Sometimes, a system has the +header file but not the library. This variable will only be set if +the system has both. +.ie n .IP """d_ndbm_h_uses_prototypes""" 4 +.el .IP "\f(CWd_ndbm_h_uses_prototypes\fR" 4 +.IX Item "d_ndbm_h_uses_prototypes" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`NDBM_H_USES_PROTOTYPES\*(C'\fR symbol, +which indicates that the \fIndbm.h\fR include file uses real \f(CW\*(C`ANSI\*(C'\fR C +prototypes instead of K&R style function declarations. K&R style +declarations are unsupported in \*(C+, so the include file requires +special handling when using a \*(C+ compiler and this variable is +undefined. Consult the different d_*ndbm_h_uses_prototypes variables +to get the same information for alternative \fIndbm.h\fR include files. +.ie n .IP """d_nearbyint""" 4 +.el .IP "\f(CWd_nearbyint\fR" 4 +.IX Item "d_nearbyint" +From \fId_nearbyint.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_NEARBYINT\*(C'\fR if \fBnearbyint()\fR +is available to return the integral value closest to (according to +the current rounding mode) to x. +.ie n .IP """d_newlocale""" 4 +.el .IP "\f(CWd_newlocale\fR" 4 +.IX Item "d_newlocale" +From \fId_newlocale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_NEWLOCALE\*(C'\fR symbol, which +indicates to the C program that the \fBnewlocale()\fR routine is available +to return a new locale object or modify an existing locale object. +.ie n .IP """d_nextafter""" 4 +.el .IP "\f(CWd_nextafter\fR" 4 +.IX Item "d_nextafter" +From \fId_nextafter.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_NEXTAFTER\*(C'\fR if \fBnextafter()\fR +is available to return the next machine representable double from +x in direction y. +.ie n .IP """d_nexttoward""" 4 +.el .IP "\f(CWd_nexttoward\fR" 4 +.IX Item "d_nexttoward" +From \fId_nexttoward.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_NEXTTOWARD\*(C'\fR if \fBnexttoward()\fR +is available to return the next machine representable long double from +x in direction y. +.ie n .IP """d_nice""" 4 +.el .IP "\f(CWd_nice\fR" 4 +.IX Item "d_nice" +From \fId_nice.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_NICE\*(C'\fR symbol, which +indicates to the C program that the \fBnice()\fR routine is available. +.ie n .IP """d_nl_langinfo""" 4 +.el .IP "\f(CWd_nl_langinfo\fR" 4 +.IX Item "d_nl_langinfo" +From \fId_nl_langinfo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_NL_LANGINFO\*(C'\fR symbol, which +indicates to the C program that the \fBnl_langinfo()\fR routine is available. +.ie n .IP """d_nv_preserves_uv""" 4 +.el .IP "\f(CWd_nv_preserves_uv\fR" 4 +.IX Item "d_nv_preserves_uv" +From \fIperlxv.U\fR: +.Sp +This variable indicates whether a variable of type nvtype +can preserve all the bits a variable of type uvtype. +.ie n .IP """d_nv_zero_is_allbits_zero""" 4 +.el .IP "\f(CWd_nv_zero_is_allbits_zero\fR" 4 +.IX Item "d_nv_zero_is_allbits_zero" +From \fIperlxv.U\fR: +.Sp +This variable indicates whether a variable of type nvtype +stores 0.0 in memory as all bits zero. +.ie n .IP """d_off64_t""" 4 +.el .IP "\f(CWd_off64_t\fR" 4 +.IX Item "d_off64_t" +From \fId_off64_t.U\fR: +.Sp +This symbol will be defined if the C compiler supports off64_t. +.ie n .IP """d_old_pthread_create_joinable""" 4 +.el .IP "\f(CWd_old_pthread_create_joinable\fR" 4 +.IX Item "d_old_pthread_create_joinable" +From \fId_pthrattrj.U\fR: +.Sp +This variable conditionally defines pthread_create_joinable. +undef if \fIpthread.h\fR defines \f(CW\*(C`PTHREAD_CREATE_JOINABLE\*(C'\fR. +.ie n .IP """d_oldpthreads""" 4 +.el .IP "\f(CWd_oldpthreads\fR" 4 +.IX Item "d_oldpthreads" +From \fIusethreads.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`OLD_PTHREADS_API\*(C'\fR symbol, +and indicates that Perl should be built to use the old +draft \f(CW\*(C`POSIX\*(C'\fR threads \f(CW\*(C`API\*(C'\fR. This is only potentially meaningful if +usethreads is set. +.ie n .IP """d_oldsock""" 4 +.el .IP "\f(CWd_oldsock\fR" 4 +.IX Item "d_oldsock" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`OLDSOCKET\*(C'\fR symbol, which +indicates that the \f(CW\*(C`BSD\*(C'\fR socket interface is based on 4.1c and not 4.2. +.ie n .IP """d_open3""" 4 +.el .IP "\f(CWd_open3\fR" 4 +.IX Item "d_open3" +From \fId_open3.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_OPEN3\s0 manifest constant, +which indicates to the C program that the 3 argument version of +the \fBopen\fR\|(2) function is available. +.ie n .IP """d_openat""" 4 +.el .IP "\f(CWd_openat\fR" 4 +.IX Item "d_openat" +From \fId_fsat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_OPENAT\*(C'\fR symbol, which +indicates the \f(CW\*(C`POSIX\*(C'\fR \fBopenat()\fR function is available. +.ie n .IP """d_pathconf""" 4 +.el .IP "\f(CWd_pathconf\fR" 4 +.IX Item "d_pathconf" +From \fId_pathconf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PATHCONF\*(C'\fR symbol, which +indicates to the C program that the \fBpathconf()\fR routine is available +to determine file-system related limits and options associated +with a given filename. +.ie n .IP """d_pause""" 4 +.el .IP "\f(CWd_pause\fR" 4 +.IX Item "d_pause" +From \fId_pause.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PAUSE\*(C'\fR symbol, which +indicates to the C program that the \fBpause()\fR routine is available +to suspend a process until a signal is received. +.ie n .IP """d_perl_otherlibdirs""" 4 +.el .IP "\f(CWd_perl_otherlibdirs\fR" 4 +.IX Item "d_perl_otherlibdirs" +From \fIotherlibdirs.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PERL_OTHERLIBDIRS\*(C'\fR, which +contains a colon-separated set of paths for the perl binary to +include in @\f(CW\*(C`INC\*(C'\fR. See also otherlibdirs. +.ie n .IP """d_phostname""" 4 +.el .IP "\f(CWd_phostname\fR" 4 +.IX Item "d_phostname" +From \fId_gethname.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PHOSTNAME\*(C'\fR symbol, which +contains the shell command which, when fed to \fBpopen()\fR, may be +used to derive the host name. +.ie n .IP """d_pipe""" 4 +.el .IP "\f(CWd_pipe\fR" 4 +.IX Item "d_pipe" +From \fId_pipe.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PIPE\*(C'\fR symbol, which +indicates to the C program that the \fBpipe()\fR routine is available +to create an inter-process channel. +.ie n .IP """d_pipe2""" 4 +.el .IP "\f(CWd_pipe2\fR" 4 +.IX Item "d_pipe2" +From \fId_pipe2.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_PIPE2\s0 symbol, which +indicates to the C program that the \fBpipe2()\fR routine is available +to create an inter-process channel. +.ie n .IP """d_poll""" 4 +.el .IP "\f(CWd_poll\fR" 4 +.IX Item "d_poll" +From \fId_poll.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_POLL\*(C'\fR symbol, which +indicates to the C program that the \fBpoll()\fR routine is available +to poll active file descriptors. +.ie n .IP """d_portable""" 4 +.el .IP "\f(CWd_portable\fR" 4 +.IX Item "d_portable" +From \fId_portable.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`PORTABLE\*(C'\fR symbol, which +indicates to the C program that it should not assume that it is +running on the machine it was compiled on. +.ie n .IP """d_prctl""" 4 +.el .IP "\f(CWd_prctl\fR" 4 +.IX Item "d_prctl" +From \fId_prctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PRCTL\*(C'\fR symbol, which +indicates to the C program that the \fBprctl()\fR routine is available. +Note that there are at least two prctl variants: Linux and Irix. +While they are somewhat similar, they are incompatible. +.ie n .IP """d_prctl_set_name""" 4 +.el .IP "\f(CWd_prctl_set_name\fR" 4 +.IX Item "d_prctl_set_name" +From \fId_prctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PRCTL_SET_NAME\*(C'\fR symbol, +which indicates to the C program that the \fBprctl()\fR routine supports +the \f(CW\*(C`PR_SET_NAME\*(C'\fR option. +.ie n .IP """d_PRId64""" 4 +.el .IP "\f(CWd_PRId64\fR" 4 +.IX Item "d_PRId64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRId64 symbol, which +indicates that stdio has a symbol to print 64\-bit decimal numbers. +.ie n .IP """d_PRIeldbl""" 4 +.el .IP "\f(CWd_PRIeldbl\fR" 4 +.IX Item "d_PRIeldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +.ie n .IP """d_PRIEUldbl""" 4 +.el .IP "\f(CWd_PRIEUldbl\fR" 4 +.IX Item "d_PRIEUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from d_PRIeldbl so that even +case-blind systems can see the difference. +.ie n .IP """d_PRIfldbl""" 4 +.el .IP "\f(CWd_PRIfldbl\fR" 4 +.IX Item "d_PRIfldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +.ie n .IP """d_PRIFUldbl""" 4 +.el .IP "\f(CWd_PRIFUldbl\fR" 4 +.IX Item "d_PRIFUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from d_PRIfldbl so that even +case-blind systems can see the difference. +.ie n .IP """d_PRIgldbl""" 4 +.el .IP "\f(CWd_PRIgldbl\fR" 4 +.IX Item "d_PRIgldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +.ie n .IP """d_PRIGUldbl""" 4 +.el .IP "\f(CWd_PRIGUldbl\fR" 4 +.IX Item "d_PRIGUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to print long doubles. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from d_PRIgldbl so that even +case-blind systems can see the difference. +.ie n .IP """d_PRIi64""" 4 +.el .IP "\f(CWd_PRIi64\fR" 4 +.IX Item "d_PRIi64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIi64 symbol, which +indicates that stdio has a symbol to print 64\-bit decimal numbers. +.ie n .IP """d_printf_format_null""" 4 +.el .IP "\f(CWd_printf_format_null\fR" 4 +.IX Item "d_printf_format_null" +From \fId_attribut.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PRINTF_FORMAT_NULL_OK\*(C'\fR, which +indicates the C compiler allows printf-like formats to be null. +.ie n .IP """d_PRIo64""" 4 +.el .IP "\f(CWd_PRIo64\fR" 4 +.IX Item "d_PRIo64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIo64 symbol, which +indicates that stdio has a symbol to print 64\-bit octal numbers. +.ie n .IP """d_PRIu64""" 4 +.el .IP "\f(CWd_PRIu64\fR" 4 +.IX Item "d_PRIu64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIu64 symbol, which +indicates that stdio has a symbol to print 64\-bit unsigned decimal +numbers. +.ie n .IP """d_PRIx64""" 4 +.el .IP "\f(CWd_PRIx64\fR" 4 +.IX Item "d_PRIx64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIx64 symbol, which +indicates that stdio has a symbol to print 64\-bit hexadecimal numbers. +.ie n .IP """d_PRIXU64""" 4 +.el .IP "\f(CWd_PRIXU64\fR" 4 +.IX Item "d_PRIXU64" +From \fIquadfio.U\fR: +.Sp +This variable conditionally defines the \s-1PERL_PRIXU64\s0 symbol, which +indicates that stdio has a symbol to print 64\-bit hExADECimAl numbers. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from d_PRIx64 so that even +case-blind systems can see the difference. +.ie n .IP """d_procselfexe""" 4 +.el .IP "\f(CWd_procselfexe\fR" 4 +.IX Item "d_procselfexe" +From \fId_procselfexe.U\fR: +.Sp +Defined if \f(CW$procselfexe\fR is symlink to the absolute +pathname of the executing program. +.ie n .IP """d_pseudofork""" 4 +.el .IP "\f(CWd_pseudofork\fR" 4 +.IX Item "d_pseudofork" +From \fId_vfork.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PSEUDOFORK\*(C'\fR symbol, +which indicates that an emulation of the fork routine is available. +.ie n .IP """d_pthread_atfork""" 4 +.el .IP "\f(CWd_pthread_atfork\fR" 4 +.IX Item "d_pthread_atfork" +From \fId_pthread_atfork.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PTHREAD_ATFORK\*(C'\fR symbol, +which indicates to the C program that the \fBpthread_atfork()\fR +routine is available. +.ie n .IP """d_pthread_attr_setscope""" 4 +.el .IP "\f(CWd_pthread_attr_setscope\fR" 4 +.IX Item "d_pthread_attr_setscope" +From \fId_pthread_attr_ss.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_PTHREAD_ATTR_SETSCOPE\*(C'\fR if +\&\fBpthread_attr_setscope()\fR is available to set the contention scope +attribute of a thread attribute object. +.ie n .IP """d_pthread_yield""" 4 +.el .IP "\f(CWd_pthread_yield\fR" 4 +.IX Item "d_pthread_yield" +From \fId_pthread_y.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_PTHREAD_YIELD\*(C'\fR +symbol if the pthread_yield routine is available to yield +the execution of the current thread. +.ie n .IP """d_ptrdiff_t""" 4 +.el .IP "\f(CWd_ptrdiff_t\fR" 4 +.IX Item "d_ptrdiff_t" +From \fId_ptrdiff_t.U\fR: +.Sp +This symbol will be defined if the C compiler supports ptrdiff_t. +.ie n .IP """d_pwage""" 4 +.el .IP "\f(CWd_pwage\fR" 4 +.IX Item "d_pwage" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWAGE\*(C'\fR, which indicates +that struct passwd contains pw_age. +.ie n .IP """d_pwchange""" 4 +.el .IP "\f(CWd_pwchange\fR" 4 +.IX Item "d_pwchange" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWCHANGE\*(C'\fR, which indicates +that struct passwd contains pw_change. +.ie n .IP """d_pwclass""" 4 +.el .IP "\f(CWd_pwclass\fR" 4 +.IX Item "d_pwclass" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWCLASS\*(C'\fR, which indicates +that struct passwd contains pw_class. +.ie n .IP """d_pwcomment""" 4 +.el .IP "\f(CWd_pwcomment\fR" 4 +.IX Item "d_pwcomment" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWCOMMENT\*(C'\fR, which indicates +that struct passwd contains pw_comment. +.ie n .IP """d_pwexpire""" 4 +.el .IP "\f(CWd_pwexpire\fR" 4 +.IX Item "d_pwexpire" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWEXPIRE\*(C'\fR, which indicates +that struct passwd contains pw_expire. +.ie n .IP """d_pwgecos""" 4 +.el .IP "\f(CWd_pwgecos\fR" 4 +.IX Item "d_pwgecos" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWGECOS\*(C'\fR, which indicates +that struct passwd contains pw_gecos. +.ie n .IP """d_pwpasswd""" 4 +.el .IP "\f(CWd_pwpasswd\fR" 4 +.IX Item "d_pwpasswd" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWPASSWD\*(C'\fR, which indicates +that struct passwd contains pw_passwd. +.ie n .IP """d_pwquota""" 4 +.el .IP "\f(CWd_pwquota\fR" 4 +.IX Item "d_pwquota" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PWQUOTA\*(C'\fR, which indicates +that struct passwd contains pw_quota. +.ie n .IP """d_qgcvt""" 4 +.el .IP "\f(CWd_qgcvt\fR" 4 +.IX Item "d_qgcvt" +From \fId_qgcvt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_QGCVT\*(C'\fR symbol, which +indicates to the C program that the \fBqgcvt()\fR routine is available. +.ie n .IP """d_quad""" 4 +.el .IP "\f(CWd_quad\fR" 4 +.IX Item "d_quad" +From \fIquadtype.U\fR: +.Sp +This variable, if defined, tells that there's a 64\-bit integer type, +quadtype. +.ie n .IP """d_querylocale""" 4 +.el .IP "\f(CWd_querylocale\fR" 4 +.IX Item "d_querylocale" +From \fId_newlocale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_QUERYLOCALE\*(C'\fR symbol, which +indicates to the C program that the \fBquerylocale()\fR routine is available +to return the name of the locale for a category mask. +.ie n .IP """d_random_r""" 4 +.el .IP "\f(CWd_random_r\fR" 4 +.IX Item "d_random_r" +From \fId_random_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RANDOM_R\*(C'\fR symbol, +which indicates to the C program that the \fBrandom_r()\fR +routine is available. +.ie n .IP """d_re_comp""" 4 +.el .IP "\f(CWd_re_comp\fR" 4 +.IX Item "d_re_comp" +From \fId_regcmp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RECOMP\*(C'\fR symbol, which +indicates to the C program that the \fBre_comp()\fR routine is available +for regular pattern matching (usually on \f(CW\*(C`BSD\*(C'\fR). If so, it is likely that +\&\fBre_exec()\fR exists. +.ie n .IP """d_readdir""" 4 +.el .IP "\f(CWd_readdir\fR" 4 +.IX Item "d_readdir" +From \fId_readdir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_READDIR\*(C'\fR if \fBreaddir()\fR is +available to read directory entries. +.ie n .IP """d_readdir64_r""" 4 +.el .IP "\f(CWd_readdir64_r\fR" 4 +.IX Item "d_readdir64_r" +From \fId_readdir64_r.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_READDIR64_R\s0 symbol, +which indicates to the C program that the \fBreaddir64_r()\fR +routine is available. +.ie n .IP """d_readdir_r""" 4 +.el .IP "\f(CWd_readdir_r\fR" 4 +.IX Item "d_readdir_r" +From \fId_readdir_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_READDIR_R\*(C'\fR symbol, +which indicates to the C program that the \fBreaddir_r()\fR +routine is available. +.ie n .IP """d_readlink""" 4 +.el .IP "\f(CWd_readlink\fR" 4 +.IX Item "d_readlink" +From \fId_readlink.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_READLINK\*(C'\fR symbol, which +indicates to the C program that the \fBreadlink()\fR routine is available +to read the value of a symbolic link. +.ie n .IP """d_readv""" 4 +.el .IP "\f(CWd_readv\fR" 4 +.IX Item "d_readv" +From \fId_readv.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_READV\*(C'\fR symbol, which +indicates to the C program that the \fBreadv()\fR routine is available. +.ie n .IP """d_recvmsg""" 4 +.el .IP "\f(CWd_recvmsg\fR" 4 +.IX Item "d_recvmsg" +From \fId_recvmsg.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RECVMSG\*(C'\fR symbol, which +indicates to the C program that the \fBrecvmsg()\fR routine is available. +.ie n .IP """d_regcmp""" 4 +.el .IP "\f(CWd_regcmp\fR" 4 +.IX Item "d_regcmp" +From \fId_regcmp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_REGCMP\*(C'\fR symbol, which +indicates to the C program that the \fBregcmp()\fR routine is available +for regular pattern matching (usually on System V). +.ie n .IP """d_regcomp""" 4 +.el .IP "\f(CWd_regcomp\fR" 4 +.IX Item "d_regcomp" +From \fId_regcmp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_REGCOMP\*(C'\fR symbol, which +indicates to the C program that the \fBregcomp()\fR routine is available +for regular pattern matching (usually on \fI\s-1POSIX.2\s0\fR conforming systems). +.ie n .IP """d_remainder""" 4 +.el .IP "\f(CWd_remainder\fR" 4 +.IX Item "d_remainder" +From \fId_remainder.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_REMAINDER\*(C'\fR symbol, which +indicates to the C program that the \fBremainder()\fR routine is available. +.ie n .IP """d_remquo""" 4 +.el .IP "\f(CWd_remquo\fR" 4 +.IX Item "d_remquo" +From \fId_remquo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_REMQUO\*(C'\fR symbol, which +indicates to the C program that the \fBremquo()\fR routine is available. +.ie n .IP """d_rename""" 4 +.el .IP "\f(CWd_rename\fR" 4 +.IX Item "d_rename" +From \fId_rename.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RENAME\*(C'\fR symbol, which +indicates to the C program that the \fBrename()\fR routine is available +to rename files. +.ie n .IP """d_renameat""" 4 +.el .IP "\f(CWd_renameat\fR" 4 +.IX Item "d_renameat" +From \fId_fsat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RENAMEAT\*(C'\fR symbol, which +indicates the \f(CW\*(C`POSIX\*(C'\fR \fBrenameat()\fR function is available. +.ie n .IP """d_rewinddir""" 4 +.el .IP "\f(CWd_rewinddir\fR" 4 +.IX Item "d_rewinddir" +From \fId_readdir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_REWINDDIR\*(C'\fR if \fBrewinddir()\fR is +available. +.ie n .IP """d_rint""" 4 +.el .IP "\f(CWd_rint\fR" 4 +.IX Item "d_rint" +From \fId_rint.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_RINT\*(C'\fR symbol, which +indicates to the C program that the \fBrint()\fR routine is available. +.ie n .IP """d_rmdir""" 4 +.el .IP "\f(CWd_rmdir\fR" 4 +.IX Item "d_rmdir" +From \fId_rmdir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_RMDIR\*(C'\fR if \fBrmdir()\fR is +available to remove directories. +.ie n .IP """d_round""" 4 +.el .IP "\f(CWd_round\fR" 4 +.IX Item "d_round" +From \fId_round.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_ROUND\*(C'\fR symbol, which +indicates to the C program that the \fBround()\fR routine is available. +.ie n .IP """d_sbrkproto""" 4 +.el .IP "\f(CWd_sbrkproto\fR" 4 +.IX Item "d_sbrkproto" +From \fId_sbrkproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SBRK_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBsbrk()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_scalbn""" 4 +.el .IP "\f(CWd_scalbn\fR" 4 +.IX Item "d_scalbn" +From \fId_scalbn.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SCALBN\*(C'\fR symbol, which +indicates to the C program that the \fBscalbn()\fR routine is available. +.ie n .IP """d_scalbnl""" 4 +.el .IP "\f(CWd_scalbnl\fR" 4 +.IX Item "d_scalbnl" +From \fId_scalbnl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SCALBNL\*(C'\fR symbol, which +indicates to the C program that the \fBscalbnl()\fR routine is available. +If ilogbl is also present we can emulate frexpl. +.ie n .IP """d_sched_yield""" 4 +.el .IP "\f(CWd_sched_yield\fR" 4 +.IX Item "d_sched_yield" +From \fId_pthread_y.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SCHED_YIELD\*(C'\fR +symbol if the sched_yield routine is available to yield +the execution of the current thread. +.ie n .IP """d_scm_rights""" 4 +.el .IP "\f(CWd_scm_rights\fR" 4 +.IX Item "d_scm_rights" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SCM_RIGHTS\*(C'\fR symbol, +which indicates that the \f(CW\*(C`SCM_RIGHTS\*(C'\fR is available. #ifdef is +not enough because it may be an enum, glibc has been known to do this. +.ie n .IP """d_SCNfldbl""" 4 +.el .IP "\f(CWd_SCNfldbl\fR" 4 +.IX Item "d_SCNfldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable conditionally defines the PERL_PRIfldbl symbol, which +indicates that stdio has a symbol to scan long doubles. +.ie n .IP """d_seekdir""" 4 +.el .IP "\f(CWd_seekdir\fR" 4 +.IX Item "d_seekdir" +From \fId_readdir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SEEKDIR\*(C'\fR if \fBseekdir()\fR is +available. +.ie n .IP """d_select""" 4 +.el .IP "\f(CWd_select\fR" 4 +.IX Item "d_select" +From \fId_select.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SELECT\*(C'\fR if \fBselect()\fR is +available to select active file descriptors. A +inclusion may be necessary for the timeout field. +.ie n .IP """d_sem""" 4 +.el .IP "\f(CWd_sem\fR" 4 +.IX Item "d_sem" +From \fId_sem.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SEM\*(C'\fR symbol, which +indicates that the entire sem*(2) library is present. +.ie n .IP """d_semctl""" 4 +.el .IP "\f(CWd_semctl\fR" 4 +.IX Item "d_semctl" +From \fId_semctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SEMCTL\*(C'\fR symbol, which +indicates to the C program that the \fBsemctl()\fR routine is available. +.ie n .IP """d_semctl_semid_ds""" 4 +.el .IP "\f(CWd_semctl_semid_ds\fR" 4 +.IX Item "d_semctl_semid_ds" +From \fId_union_semun.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_SEMCTL_SEMID_DS\*(C'\fR, which +indicates that struct semid_ds * is to be used for semctl \f(CW\*(C`IPC_STAT\*(C'\fR. +.ie n .IP """d_semctl_semun""" 4 +.el .IP "\f(CWd_semctl_semun\fR" 4 +.IX Item "d_semctl_semun" +From \fId_union_semun.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_SEMCTL_SEMUN\*(C'\fR, which +indicates that union semun is to be used for semctl \f(CW\*(C`IPC_STAT\*(C'\fR. +.ie n .IP """d_semget""" 4 +.el .IP "\f(CWd_semget\fR" 4 +.IX Item "d_semget" +From \fId_semget.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SEMGET\*(C'\fR symbol, which +indicates to the C program that the \fBsemget()\fR routine is available. +.ie n .IP """d_semop""" 4 +.el .IP "\f(CWd_semop\fR" 4 +.IX Item "d_semop" +From \fId_semop.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SEMOP\*(C'\fR symbol, which +indicates to the C program that the \fBsemop()\fR routine is available. +.ie n .IP """d_sendmsg""" 4 +.el .IP "\f(CWd_sendmsg\fR" 4 +.IX Item "d_sendmsg" +From \fId_sendmsg.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SENDMSG\*(C'\fR symbol, which +indicates to the C program that the \fBsendmsg()\fR routine is available. +.ie n .IP """d_setegid""" 4 +.el .IP "\f(CWd_setegid\fR" 4 +.IX Item "d_setegid" +From \fId_setegid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETEGID\*(C'\fR symbol, which +indicates to the C program that the \fBsetegid()\fR routine is available +to change the effective gid of the current program. +.ie n .IP """d_seteuid""" 4 +.el .IP "\f(CWd_seteuid\fR" 4 +.IX Item "d_seteuid" +From \fId_seteuid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETEUID\*(C'\fR symbol, which +indicates to the C program that the \fBseteuid()\fR routine is available +to change the effective uid of the current program. +.ie n .IP """d_setgrent""" 4 +.el .IP "\f(CWd_setgrent\fR" 4 +.IX Item "d_setgrent" +From \fId_setgrent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETGRENT\*(C'\fR symbol, which +indicates to the C program that the \fBsetgrent()\fR routine is available +for initializing sequential access to the group database. +.ie n .IP """d_setgrent_r""" 4 +.el .IP "\f(CWd_setgrent_r\fR" 4 +.IX Item "d_setgrent_r" +From \fId_setgrent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETGRENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetgrent_r()\fR +routine is available. +.ie n .IP """d_setgrps""" 4 +.el .IP "\f(CWd_setgrps\fR" 4 +.IX Item "d_setgrps" +From \fId_setgrps.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETGROUPS\*(C'\fR symbol, which +indicates to the C program that the \fBsetgroups()\fR routine is available +to set the list of process groups. +.ie n .IP """d_sethent""" 4 +.el .IP "\f(CWd_sethent\fR" 4 +.IX Item "d_sethent" +From \fId_sethent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETHOSTENT\*(C'\fR if \fBsethostent()\fR is +available. +.ie n .IP """d_sethostent_r""" 4 +.el .IP "\f(CWd_sethostent_r\fR" 4 +.IX Item "d_sethostent_r" +From \fId_sethostent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETHOSTENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsethostent_r()\fR +routine is available. +.ie n .IP """d_setitimer""" 4 +.el .IP "\f(CWd_setitimer\fR" 4 +.IX Item "d_setitimer" +From \fId_setitimer.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETITIMER\*(C'\fR symbol, which +indicates to the C program that the \fBsetitimer()\fR routine is available. +.ie n .IP """d_setlinebuf""" 4 +.el .IP "\f(CWd_setlinebuf\fR" 4 +.IX Item "d_setlinebuf" +From \fId_setlnbuf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETLINEBUF\*(C'\fR symbol, which +indicates to the C program that the \fBsetlinebuf()\fR routine is available +to change stderr or stdout from block-buffered or unbuffered to a +line-buffered mode. +.ie n .IP """d_setlocale""" 4 +.el .IP "\f(CWd_setlocale\fR" 4 +.IX Item "d_setlocale" +From \fId_setlocale.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETLOCALE\*(C'\fR if \fBsetlocale()\fR is +available to handle locale-specific ctype implementations. +.ie n .IP """d_setlocale_accepts_any_locale_name""" 4 +.el .IP "\f(CWd_setlocale_accepts_any_locale_name\fR" 4 +.IX Item "d_setlocale_accepts_any_locale_name" +From \fId_setlocale.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`SETLOCALE_ACCEPTS_ANY_LOCALE_NAME\*(C'\fR +if \fBsetlocale()\fR accepts any locale name. +.ie n .IP """d_setlocale_r""" 4 +.el .IP "\f(CWd_setlocale_r\fR" 4 +.IX Item "d_setlocale_r" +From \fId_setlocale_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETLOCALE_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetlocale_r()\fR +routine is available. +.ie n .IP """d_setnent""" 4 +.el .IP "\f(CWd_setnent\fR" 4 +.IX Item "d_setnent" +From \fId_setnent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETNETENT\*(C'\fR if \fBsetnetent()\fR is +available. +.ie n .IP """d_setnetent_r""" 4 +.el .IP "\f(CWd_setnetent_r\fR" 4 +.IX Item "d_setnetent_r" +From \fId_setnetent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETNETENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetnetent_r()\fR +routine is available. +.ie n .IP """d_setpent""" 4 +.el .IP "\f(CWd_setpent\fR" 4 +.IX Item "d_setpent" +From \fId_setpent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETPROTOENT\*(C'\fR if \fBsetprotoent()\fR is +available. +.ie n .IP """d_setpgid""" 4 +.el .IP "\f(CWd_setpgid\fR" 4 +.IX Item "d_setpgid" +From \fId_setpgid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETPGID\*(C'\fR symbol if the +setpgid(pid, gpid) function is available to set process group \f(CW\*(C`ID\*(C'\fR. +.ie n .IP """d_setpgrp""" 4 +.el .IP "\f(CWd_setpgrp\fR" 4 +.IX Item "d_setpgrp" +From \fId_setpgrp.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETPGRP\*(C'\fR if \fBsetpgrp()\fR is +available to set the current process group. +.ie n .IP """d_setpgrp2""" 4 +.el .IP "\f(CWd_setpgrp2\fR" 4 +.IX Item "d_setpgrp2" +From \fId_setpgrp2.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_SETPGRP2\s0 symbol, which +indicates to the C program that the \fBsetpgrp2()\fR (as in \fI\s-1DG/\s0\f(CI\*(C`UX\*(C'\fI\fR) routine +is available to set the current process group. +.ie n .IP """d_setprior""" 4 +.el .IP "\f(CWd_setprior\fR" 4 +.IX Item "d_setprior" +From \fId_setprior.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETPRIORITY\*(C'\fR if \fBsetpriority()\fR +is available to set a process's priority. +.ie n .IP """d_setproctitle""" 4 +.el .IP "\f(CWd_setproctitle\fR" 4 +.IX Item "d_setproctitle" +From \fId_setproctitle.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETPROCTITLE\*(C'\fR symbol, +which indicates to the C program that the \fBsetproctitle()\fR routine +is available. +.ie n .IP """d_setprotoent_r""" 4 +.el .IP "\f(CWd_setprotoent_r\fR" 4 +.IX Item "d_setprotoent_r" +From \fId_setprotoent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETPROTOENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetprotoent_r()\fR +routine is available. +.ie n .IP """d_setpwent""" 4 +.el .IP "\f(CWd_setpwent\fR" 4 +.IX Item "d_setpwent" +From \fId_setpwent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETPWENT\*(C'\fR symbol, which +indicates to the C program that the \fBsetpwent()\fR routine is available +for initializing sequential access to the passwd database. +.ie n .IP """d_setpwent_r""" 4 +.el .IP "\f(CWd_setpwent_r\fR" 4 +.IX Item "d_setpwent_r" +From \fId_setpwent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETPWENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetpwent_r()\fR +routine is available. +.ie n .IP """d_setregid""" 4 +.el .IP "\f(CWd_setregid\fR" 4 +.IX Item "d_setregid" +From \fId_setregid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETREGID\*(C'\fR if \fBsetregid()\fR is +available to change the real and effective gid of the current +process. +.ie n .IP """d_setresgid""" 4 +.el .IP "\f(CWd_setresgid\fR" 4 +.IX Item "d_setresgid" +From \fId_setregid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETRESGID\*(C'\fR if \fBsetresgid()\fR is +available to change the real, effective and saved gid of the current +process. +.ie n .IP """d_setresuid""" 4 +.el .IP "\f(CWd_setresuid\fR" 4 +.IX Item "d_setresuid" +From \fId_setreuid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETREUID\*(C'\fR if \fBsetresuid()\fR is +available to change the real, effective and saved uid of the current +process. +.ie n .IP """d_setreuid""" 4 +.el .IP "\f(CWd_setreuid\fR" 4 +.IX Item "d_setreuid" +From \fId_setreuid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETREUID\*(C'\fR if \fBsetreuid()\fR is +available to change the real and effective uid of the current +process. +.ie n .IP """d_setrgid""" 4 +.el .IP "\f(CWd_setrgid\fR" 4 +.IX Item "d_setrgid" +From \fId_setrgid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETRGID\*(C'\fR symbol, which +indicates to the C program that the \fBsetrgid()\fR routine is available +to change the real gid of the current program. +.ie n .IP """d_setruid""" 4 +.el .IP "\f(CWd_setruid\fR" 4 +.IX Item "d_setruid" +From \fId_setruid.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETRUID\*(C'\fR symbol, which +indicates to the C program that the \fBsetruid()\fR routine is available +to change the real uid of the current program. +.ie n .IP """d_setsent""" 4 +.el .IP "\f(CWd_setsent\fR" 4 +.IX Item "d_setsent" +From \fId_setsent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETSERVENT\*(C'\fR if \fBsetservent()\fR is +available. +.ie n .IP """d_setservent_r""" 4 +.el .IP "\f(CWd_setservent_r\fR" 4 +.IX Item "d_setservent_r" +From \fId_setservent_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETSERVENT_R\*(C'\fR symbol, +which indicates to the C program that the \fBsetservent_r()\fR +routine is available. +.ie n .IP """d_setsid""" 4 +.el .IP "\f(CWd_setsid\fR" 4 +.IX Item "d_setsid" +From \fId_setsid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SETSID\*(C'\fR if \fBsetsid()\fR is +available to set the process group \f(CW\*(C`ID\*(C'\fR. +.ie n .IP """d_setvbuf""" 4 +.el .IP "\f(CWd_setvbuf\fR" 4 +.IX Item "d_setvbuf" +From \fId_setvbuf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETVBUF\*(C'\fR symbol, which +indicates to the C program that the \fBsetvbuf()\fR routine is available +to change buffering on an open stdio stream. +.ie n .IP """d_shm""" 4 +.el .IP "\f(CWd_shm\fR" 4 +.IX Item "d_shm" +From \fId_shm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHM\*(C'\fR symbol, which +indicates that the entire shm*(2) library is present. +.ie n .IP """d_shmat""" 4 +.el .IP "\f(CWd_shmat\fR" 4 +.IX Item "d_shmat" +From \fId_shmat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHMAT\*(C'\fR symbol, which +indicates to the C program that the \fBshmat()\fR routine is available. +.ie n .IP """d_shmatprototype""" 4 +.el .IP "\f(CWd_shmatprototype\fR" 4 +.IX Item "d_shmatprototype" +From \fId_shmat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHMAT_PROTOTYPE\*(C'\fR +symbol, which indicates that \fIsys/shm.h\fR has a prototype for +shmat. +.ie n .IP """d_shmctl""" 4 +.el .IP "\f(CWd_shmctl\fR" 4 +.IX Item "d_shmctl" +From \fId_shmctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHMCTL\*(C'\fR symbol, which +indicates to the C program that the \fBshmctl()\fR routine is available. +.ie n .IP """d_shmdt""" 4 +.el .IP "\f(CWd_shmdt\fR" 4 +.IX Item "d_shmdt" +From \fId_shmdt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHMDT\*(C'\fR symbol, which +indicates to the C program that the \fBshmdt()\fR routine is available. +.ie n .IP """d_shmget""" 4 +.el .IP "\f(CWd_shmget\fR" 4 +.IX Item "d_shmget" +From \fId_shmget.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SHMGET\*(C'\fR symbol, which +indicates to the C program that the \fBshmget()\fR routine is available. +.ie n .IP """d_sigaction""" 4 +.el .IP "\f(CWd_sigaction\fR" 4 +.IX Item "d_sigaction" +From \fId_sigaction.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGACTION\*(C'\fR symbol, which +indicates that the Vr4 \fBsigaction()\fR routine is available. +.ie n .IP """d_siginfo_si_addr""" 4 +.el .IP "\f(CWd_siginfo_si_addr\fR" 4 +.IX Item "d_siginfo_si_addr" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_ADDR\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_addr member. +.ie n .IP """d_siginfo_si_band""" 4 +.el .IP "\f(CWd_siginfo_si_band\fR" 4 +.IX Item "d_siginfo_si_band" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_BAND\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_band member. +.ie n .IP """d_siginfo_si_errno""" 4 +.el .IP "\f(CWd_siginfo_si_errno\fR" 4 +.IX Item "d_siginfo_si_errno" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_ERRNO\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_errno member. +.ie n .IP """d_siginfo_si_fd""" 4 +.el .IP "\f(CWd_siginfo_si_fd\fR" 4 +.IX Item "d_siginfo_si_fd" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_FD\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_fd member. +.ie n .IP """d_siginfo_si_pid""" 4 +.el .IP "\f(CWd_siginfo_si_pid\fR" 4 +.IX Item "d_siginfo_si_pid" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_PID\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_pid member. +.ie n .IP """d_siginfo_si_status""" 4 +.el .IP "\f(CWd_siginfo_si_status\fR" 4 +.IX Item "d_siginfo_si_status" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_STATUS\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_status member. +.ie n .IP """d_siginfo_si_uid""" 4 +.el .IP "\f(CWd_siginfo_si_uid\fR" 4 +.IX Item "d_siginfo_si_uid" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_UID\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_uid member. +.ie n .IP """d_siginfo_si_value""" 4 +.el .IP "\f(CWd_siginfo_si_value\fR" 4 +.IX Item "d_siginfo_si_value" +From \fId_siginfo_si.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGINFO_SI_VALUE\*(C'\fR symbol, +which indicates that the siginfo_t struct has the si_value member. +.ie n .IP """d_signbit""" 4 +.el .IP "\f(CWd_signbit\fR" 4 +.IX Item "d_signbit" +From \fId_signbit.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGNBIT\*(C'\fR symbol, which +indicates to the C program that the \fBsignbit()\fR routine is available +and safe to use with perl's intern \f(CW\*(C`NV\*(C'\fR type. +.ie n .IP """d_sigprocmask""" 4 +.el .IP "\f(CWd_sigprocmask\fR" 4 +.IX Item "d_sigprocmask" +From \fId_sigprocmask.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SIGPROCMASK\*(C'\fR +if \fBsigprocmask()\fR is available to examine or change the signal mask +of the calling process. +.ie n .IP """d_sigsetjmp""" 4 +.el .IP "\f(CWd_sigsetjmp\fR" 4 +.IX Item "d_sigsetjmp" +From \fId_sigsetjmp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SIGSETJMP\*(C'\fR symbol, +which indicates that the \fBsigsetjmp()\fR routine is available to +call \fBsetjmp()\fR and optionally save the process's signal mask. +.ie n .IP """d_sin6_scope_id""" 4 +.el .IP "\f(CWd_sin6_scope_id\fR" 4 +.IX Item "d_sin6_scope_id" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_SIN6_SCOPE_ID\s0 symbol, which +indicates that a struct sockaddr_in6 structure has the sin6_scope_id +member. +.ie n .IP """d_sitearch""" 4 +.el .IP "\f(CWd_sitearch\fR" 4 +.IX Item "d_sitearch" +From \fIsitearch.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`SITEARCH\*(C'\fR to hold the pathname +of architecture-dependent library files for \f(CW$package\fR. If +\&\f(CW$sitearch\fR is the same as \f(CW$archlib\fR, then this is set to undef. +.ie n .IP """d_snprintf""" 4 +.el .IP "\f(CWd_snprintf\fR" 4 +.IX Item "d_snprintf" +From \fId_snprintf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SNPRINTF\*(C'\fR symbol, which +indicates to the C program that the snprintf () library function +is available. +.ie n .IP """d_sockaddr_in6""" 4 +.el .IP "\f(CWd_sockaddr_in6\fR" 4 +.IX Item "d_sockaddr_in6" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_SOCKADDR_IN6\s0 symbol, which +indicates the availability of a struct sockaddr_in6. +.ie n .IP """d_sockaddr_sa_len""" 4 +.el .IP "\f(CWd_sockaddr_sa_len\fR" 4 +.IX Item "d_sockaddr_sa_len" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SOCKADDR_SA_LEN\*(C'\fR symbol, +which indicates that a struct sockaddr structure has the sa_len +member. +.ie n .IP """d_sockatmark""" 4 +.el .IP "\f(CWd_sockatmark\fR" 4 +.IX Item "d_sockatmark" +From \fId_sockatmark.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SOCKATMARK\*(C'\fR symbol, which +indicates to the C program that the \fBsockatmark()\fR routine is available. +.ie n .IP """d_sockatmarkproto""" 4 +.el .IP "\f(CWd_sockatmarkproto\fR" 4 +.IX Item "d_sockatmarkproto" +From \fId_sockatmarkproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SOCKATMARK_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBsockatmark()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_socket""" 4 +.el .IP "\f(CWd_socket\fR" 4 +.IX Item "d_socket" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SOCKET\*(C'\fR, which indicates +that the \f(CW\*(C`BSD\*(C'\fR socket interface is supported. +.ie n .IP """d_socklen_t""" 4 +.el .IP "\f(CWd_socklen_t\fR" 4 +.IX Item "d_socklen_t" +From \fId_socklen_t.U\fR: +.Sp +This symbol will be defined if the C compiler supports socklen_t. +.ie n .IP """d_sockpair""" 4 +.el .IP "\f(CWd_sockpair\fR" 4 +.IX Item "d_sockpair" +From \fId_socket.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SOCKETPAIR\*(C'\fR symbol, which +indicates that the \f(CW\*(C`BSD\*(C'\fR \fBsocketpair()\fR is supported. +.ie n .IP """d_socks5_init""" 4 +.el .IP "\f(CWd_socks5_init\fR" 4 +.IX Item "d_socks5_init" +From \fId_socks5_init.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_SOCKS5_INIT\s0 symbol, which +indicates to the C program that the \fBsocks5_init()\fR routine is available. +.ie n .IP """d_sqrtl""" 4 +.el .IP "\f(CWd_sqrtl\fR" 4 +.IX Item "d_sqrtl" +From \fId_sqrtl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SQRTL\*(C'\fR symbol, which +indicates to the C program that the \fBsqrtl()\fR routine is available. +.ie n .IP """d_srand48_r""" 4 +.el .IP "\f(CWd_srand48_r\fR" 4 +.IX Item "d_srand48_r" +From \fId_srand48_r.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_SRAND48_R\s0 symbol, +which indicates to the C program that the \fBsrand48_r()\fR +routine is available. +.ie n .IP """d_srandom_r""" 4 +.el .IP "\f(CWd_srandom_r\fR" 4 +.IX Item "d_srandom_r" +From \fId_srandom_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SRANDOM_R\*(C'\fR symbol, +which indicates to the C program that the \fBsrandom_r()\fR +routine is available. +.ie n .IP """d_sresgproto""" 4 +.el .IP "\f(CWd_sresgproto\fR" 4 +.IX Item "d_sresgproto" +From \fId_sresgproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETRESGID_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBsetresgid()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_sresuproto""" 4 +.el .IP "\f(CWd_sresuproto\fR" 4 +.IX Item "d_sresuproto" +From \fId_sresuproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SETRESUID_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBsetresuid()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_stat""" 4 +.el .IP "\f(CWd_stat\fR" 4 +.IX Item "d_stat" +From \fId_stat.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_STAT\*(C'\fR if \fBstat()\fR is +available to get file status. +.ie n .IP """d_statblks""" 4 +.el .IP "\f(CWd_statblks\fR" 4 +.IX Item "d_statblks" +From \fId_statblks.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_STAT_BLOCKS\*(C'\fR +if this system has a stat structure declaring +st_blksize and st_blocks. +.ie n .IP """d_statfs_f_flags""" 4 +.el .IP "\f(CWd_statfs_f_flags\fR" 4 +.IX Item "d_statfs_f_flags" +From \fId_statfs_f_flags.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRUCT_STATFS_F_FLAGS\*(C'\fR +symbol, which indicates to struct statfs from has f_flags member. +This kind of struct statfs is coming from \fIsys/mount.h\fR (\f(CW\*(C`BSD\*(C'\fR), +not from \fIsys/statfs.h\fR (\f(CW\*(C`SYSV\*(C'\fR). +.ie n .IP """d_statfs_s""" 4 +.el .IP "\f(CWd_statfs_s\fR" 4 +.IX Item "d_statfs_s" +From \fId_statfs_s.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRUCT_STATFS\*(C'\fR symbol, +which indicates that the struct statfs is supported. +.ie n .IP """d_static_inline""" 4 +.el .IP "\f(CWd_static_inline\fR" 4 +.IX Item "d_static_inline" +From \fId_static_inline.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STATIC_INLINE\*(C'\fR symbol, +which indicates that the C compiler supports C99\-style static +inline. That is, the function can't be called from another +translation unit. +.ie n .IP """d_statvfs""" 4 +.el .IP "\f(CWd_statvfs\fR" 4 +.IX Item "d_statvfs" +From \fId_statvfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STATVFS\*(C'\fR symbol, which +indicates to the C program that the \fBstatvfs()\fR routine is available. +.ie n .IP """d_stdio_cnt_lval""" 4 +.el .IP "\f(CWd_stdio_cnt_lval\fR" 4 +.IX Item "d_stdio_cnt_lval" +From \fId_stdstdio.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`STDIO_CNT_LVALUE\*(C'\fR if the +\&\f(CW\*(C`FILE_cnt\*(C'\fR macro can be used as an lvalue. +.ie n .IP """d_stdio_ptr_lval""" 4 +.el .IP "\f(CWd_stdio_ptr_lval\fR" 4 +.IX Item "d_stdio_ptr_lval" +From \fId_stdstdio.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`STDIO_PTR_LVALUE\*(C'\fR if the +\&\f(CW\*(C`FILE_ptr\*(C'\fR macro can be used as an lvalue. +.ie n .IP """d_stdio_ptr_lval_nochange_cnt""" 4 +.el .IP "\f(CWd_stdio_ptr_lval_nochange_cnt\fR" 4 +.IX Item "d_stdio_ptr_lval_nochange_cnt" +From \fId_stdstdio.U\fR: +.Sp +This symbol is defined if using the \f(CW\*(C`FILE_ptr\*(C'\fR macro as an lvalue +to increase the pointer by n leaves File_cnt(fp) unchanged. +.ie n .IP """d_stdio_ptr_lval_sets_cnt""" 4 +.el .IP "\f(CWd_stdio_ptr_lval_sets_cnt\fR" 4 +.IX Item "d_stdio_ptr_lval_sets_cnt" +From \fId_stdstdio.U\fR: +.Sp +This symbol is defined if using the \f(CW\*(C`FILE_ptr\*(C'\fR macro as an lvalue +to increase the pointer by n has the side effect of decreasing the +value of File_cnt(fp) by n. +.ie n .IP """d_stdio_stream_array""" 4 +.el .IP "\f(CWd_stdio_stream_array\fR" 4 +.IX Item "d_stdio_stream_array" +From \fIstdio_streams.U\fR: +.Sp +This variable tells whether there is an array holding +the stdio streams. +.ie n .IP """d_stdiobase""" 4 +.el .IP "\f(CWd_stdiobase\fR" 4 +.IX Item "d_stdiobase" +From \fId_stdstdio.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_STDIO_BASE\*(C'\fR if this system +has a \f(CW\*(C`FILE\*(C'\fR structure declaring a usable _base field (or equivalent) +in \fIstdio.h\fR. +.ie n .IP """d_stdstdio""" 4 +.el .IP "\f(CWd_stdstdio\fR" 4 +.IX Item "d_stdstdio" +From \fId_stdstdio.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_STDIO_PTR\*(C'\fR if this system +has a \f(CW\*(C`FILE\*(C'\fR structure declaring usable _ptr and _cnt fields (or +equivalent) in \fIstdio.h\fR. +.ie n .IP """d_strcoll""" 4 +.el .IP "\f(CWd_strcoll\fR" 4 +.IX Item "d_strcoll" +From \fId_strcoll.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_STRCOLL\*(C'\fR if \fBstrcoll()\fR is +available to compare strings using collating information. +.ie n .IP """d_strerror_l""" 4 +.el .IP "\f(CWd_strerror_l\fR" 4 +.IX Item "d_strerror_l" +From \fId_strerror_l.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRERROR_L\*(C'\fR symbol, which +indicates to the C program that the \fBstrerror_l()\fR routine is available +to return the error message for a given errno value in a particular +locale (identified by a locale_t object). +.ie n .IP """d_strerror_r""" 4 +.el .IP "\f(CWd_strerror_r\fR" 4 +.IX Item "d_strerror_r" +From \fId_strerror_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRERROR_R\*(C'\fR symbol, +which indicates to the C program that the \fBstrerror_r()\fR +routine is available. +.ie n .IP """d_strftime""" 4 +.el .IP "\f(CWd_strftime\fR" 4 +.IX Item "d_strftime" +From \fId_strftime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRFTIME\*(C'\fR symbol, which +indicates to the C program that the \fBstrftime()\fR routine is available. +.ie n .IP """d_strlcat""" 4 +.el .IP "\f(CWd_strlcat\fR" 4 +.IX Item "d_strlcat" +From \fId_strlcat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRLCAT\*(C'\fR symbol, which +indicates to the C program that the strlcat () routine is available. +.ie n .IP """d_strlcpy""" 4 +.el .IP "\f(CWd_strlcpy\fR" 4 +.IX Item "d_strlcpy" +From \fId_strlcpy.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRLCPY\*(C'\fR symbol, which +indicates to the C program that the strlcpy () routine is available. +.ie n .IP """d_strnlen""" 4 +.el .IP "\f(CWd_strnlen\fR" 4 +.IX Item "d_strnlen" +From \fId_strnlen.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRNLEN\*(C'\fR symbol, which +indicates to the C program that the strnlen () routine is available. +.ie n .IP """d_strtod""" 4 +.el .IP "\f(CWd_strtod\fR" 4 +.IX Item "d_strtod" +From \fId_strtod.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOD\*(C'\fR symbol, which +indicates to the C program that the \fBstrtod()\fR routine is available +to provide better numeric string conversion than \fBatof()\fR. +.ie n .IP """d_strtod_l""" 4 +.el .IP "\f(CWd_strtod_l\fR" 4 +.IX Item "d_strtod_l" +From \fId_strtod_l.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOD_L\*(C'\fR symbol, which +indicates to the C program that the \fBstrtod_l()\fR routine is available. +.ie n .IP """d_strtol""" 4 +.el .IP "\f(CWd_strtol\fR" 4 +.IX Item "d_strtol" +From \fId_strtol.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOL\*(C'\fR symbol, which +indicates to the C program that the \fBstrtol()\fR routine is available +to provide better numeric string conversion than \fBatoi()\fR and friends. +.ie n .IP """d_strtold""" 4 +.el .IP "\f(CWd_strtold\fR" 4 +.IX Item "d_strtold" +From \fId_strtold.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOLD\*(C'\fR symbol, which +indicates to the C program that the \fBstrtold()\fR routine is available. +.ie n .IP """d_strtold_l""" 4 +.el .IP "\f(CWd_strtold_l\fR" 4 +.IX Item "d_strtold_l" +From \fId_strtold_l.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOLD_L\*(C'\fR symbol, which +indicates to the C program that the \fBstrtold_l()\fR routine is available. +.ie n .IP """d_strtoll""" 4 +.el .IP "\f(CWd_strtoll\fR" 4 +.IX Item "d_strtoll" +From \fId_strtoll.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOLL\*(C'\fR symbol, which +indicates to the C program that the \fBstrtoll()\fR routine is available. +.ie n .IP """d_strtoq""" 4 +.el .IP "\f(CWd_strtoq\fR" 4 +.IX Item "d_strtoq" +From \fId_strtoq.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOQ\*(C'\fR symbol, which +indicates to the C program that the \fBstrtoq()\fR routine is available. +.ie n .IP """d_strtoul""" 4 +.el .IP "\f(CWd_strtoul\fR" 4 +.IX Item "d_strtoul" +From \fId_strtoul.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOUL\*(C'\fR symbol, which +indicates to the C program that the \fBstrtoul()\fR routine is available +to provide conversion of strings to unsigned long. +.ie n .IP """d_strtoull""" 4 +.el .IP "\f(CWd_strtoull\fR" 4 +.IX Item "d_strtoull" +From \fId_strtoull.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOULL\*(C'\fR symbol, which +indicates to the C program that the \fBstrtoull()\fR routine is available. +.ie n .IP """d_strtouq""" 4 +.el .IP "\f(CWd_strtouq\fR" 4 +.IX Item "d_strtouq" +From \fId_strtouq.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_STRTOUQ\*(C'\fR symbol, which +indicates to the C program that the \fBstrtouq()\fR routine is available. +.ie n .IP """d_strxfrm""" 4 +.el .IP "\f(CWd_strxfrm\fR" 4 +.IX Item "d_strxfrm" +From \fId_strxfrm.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_STRXFRM\*(C'\fR if \fBstrxfrm()\fR is +available to transform strings. +.ie n .IP """d_suidsafe""" 4 +.el .IP "\f(CWd_suidsafe\fR" 4 +.IX Item "d_suidsafe" +From \fId_dosuid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`SETUID_SCRIPTS_ARE_SECURE_NOW\*(C'\fR +if setuid scripts can be secure. This test looks in \fI/dev/fd/\fR. +.ie n .IP """d_symlink""" 4 +.el .IP "\f(CWd_symlink\fR" 4 +.IX Item "d_symlink" +From \fId_symlink.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SYMLINK\*(C'\fR symbol, which +indicates to the C program that the \fBsymlink()\fR routine is available +to create symbolic links. +.ie n .IP """d_syscall""" 4 +.el .IP "\f(CWd_syscall\fR" 4 +.IX Item "d_syscall" +From \fId_syscall.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SYSCALL\*(C'\fR if \fBsyscall()\fR is +available call arbitrary system calls. +.ie n .IP """d_syscallproto""" 4 +.el .IP "\f(CWd_syscallproto\fR" 4 +.IX Item "d_syscallproto" +From \fId_syscallproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SYSCALL_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBsyscall()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_sysconf""" 4 +.el .IP "\f(CWd_sysconf\fR" 4 +.IX Item "d_sysconf" +From \fId_sysconf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_SYSCONF\*(C'\fR symbol, which +indicates to the C program that the \fBsysconf()\fR routine is available +to determine system related limits and options. +.ie n .IP """d_sysernlst""" 4 +.el .IP "\f(CWd_sysernlst\fR" 4 +.IX Item "d_sysernlst" +From \fId_strerror.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SYS_ERRNOLIST\*(C'\fR if sys_errnolist[] +is available to translate error numbers to the symbolic name. +.ie n .IP """d_syserrlst""" 4 +.el .IP "\f(CWd_syserrlst\fR" 4 +.IX Item "d_syserrlst" +From \fId_strerror.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SYS_ERRLIST\*(C'\fR if sys_errlist[] is +available to translate error numbers to strings. +.ie n .IP """d_system""" 4 +.el .IP "\f(CWd_system\fR" 4 +.IX Item "d_system" +From \fId_system.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_SYSTEM\*(C'\fR if \fBsystem()\fR is +available to issue a shell command. +.ie n .IP """d_tcgetpgrp""" 4 +.el .IP "\f(CWd_tcgetpgrp\fR" 4 +.IX Item "d_tcgetpgrp" +From \fId_tcgtpgrp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TCGETPGRP\*(C'\fR symbol, which +indicates to the C program that the \fBtcgetpgrp()\fR routine is available. +to get foreground process group \f(CW\*(C`ID\*(C'\fR. +.ie n .IP """d_tcsetpgrp""" 4 +.el .IP "\f(CWd_tcsetpgrp\fR" 4 +.IX Item "d_tcsetpgrp" +From \fId_tcstpgrp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TCSETPGRP\*(C'\fR symbol, which +indicates to the C program that the \fBtcsetpgrp()\fR routine is available +to set foreground process group \f(CW\*(C`ID\*(C'\fR. +.ie n .IP """d_telldir""" 4 +.el .IP "\f(CWd_telldir\fR" 4 +.IX Item "d_telldir" +From \fId_readdir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_TELLDIR\*(C'\fR if \fBtelldir()\fR is +available. +.ie n .IP """d_telldirproto""" 4 +.el .IP "\f(CWd_telldirproto\fR" 4 +.IX Item "d_telldirproto" +From \fId_telldirproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TELLDIR_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBtelldir()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_tgamma""" 4 +.el .IP "\f(CWd_tgamma\fR" 4 +.IX Item "d_tgamma" +From \fId_tgamma.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TGAMMA\*(C'\fR symbol, which +indicates to the C program that the \fBtgamma()\fR routine is available +for the gamma function. See also d_lgamma. +.ie n .IP """d_thread_safe_nl_langinfo_l""" 4 +.el .IP "\f(CWd_thread_safe_nl_langinfo_l\fR" 4 +.IX Item "d_thread_safe_nl_langinfo_l" +From \fId_nl_langinfo_l.U\fR: +.Sp +This variable contains the eventual value of the +\&\f(CW\*(C`HAS_THREAD_SAFE_NL_LANGINFO_L\*(C'\fR symbol, which indicates if the +\&\fBnl_langinfo_l()\fR function exists and is thread-safe. +.ie n .IP """d_time""" 4 +.el .IP "\f(CWd_time\fR" 4 +.IX Item "d_time" +From \fId_time.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TIME\*(C'\fR symbol, which indicates +that the \fBtime()\fR routine exists. The \fBtime()\fR routine is normally +provided on \f(CW\*(C`UNIX\*(C'\fR systems. +.ie n .IP """d_timegm""" 4 +.el .IP "\f(CWd_timegm\fR" 4 +.IX Item "d_timegm" +From \fId_timegm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TIMEGM\*(C'\fR symbol, which +indicates to the C program that the timegm () routine is available. +.ie n .IP """d_times""" 4 +.el .IP "\f(CWd_times\fR" 4 +.IX Item "d_times" +From \fId_times.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TIMES\*(C'\fR symbol, which indicates +that the \fBtimes()\fR routine exists. The \fBtimes()\fR routine is normally +provided on \f(CW\*(C`UNIX\*(C'\fR systems. You may have to include . +.ie n .IP """d_tm_tm_gmtoff""" 4 +.el .IP "\f(CWd_tm_tm_gmtoff\fR" 4 +.IX Item "d_tm_tm_gmtoff" +From \fIi_time.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_TM_TM_GMTOFF\*(C'\fR, which indicates +to the C program that the struct tm has the tm_gmtoff field. +.ie n .IP """d_tm_tm_zone""" 4 +.el .IP "\f(CWd_tm_tm_zone\fR" 4 +.IX Item "d_tm_tm_zone" +From \fIi_time.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_TM_TM_ZONE\*(C'\fR, which indicates +to the C program that the struct tm has the tm_zone field. +.ie n .IP """d_tmpnam_r""" 4 +.el .IP "\f(CWd_tmpnam_r\fR" 4 +.IX Item "d_tmpnam_r" +From \fId_tmpnam_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TMPNAM_R\*(C'\fR symbol, +which indicates to the C program that the \fBtmpnam_r()\fR +routine is available. +.ie n .IP """d_towlower""" 4 +.el .IP "\f(CWd_towlower\fR" 4 +.IX Item "d_towlower" +From \fId_towlower.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TOWLOWER\*(C'\fR symbol, which +indicates to the C program that the \fBtowlower()\fR routine is available. +.ie n .IP """d_towupper""" 4 +.el .IP "\f(CWd_towupper\fR" 4 +.IX Item "d_towupper" +From \fId_towupper.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TOWUPPER\*(C'\fR symbol, which +indicates to the C program that the \fBtowupper()\fR routine is available. +.ie n .IP """d_trunc""" 4 +.el .IP "\f(CWd_trunc\fR" 4 +.IX Item "d_trunc" +From \fId_trunc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TRUNC\*(C'\fR symbol, which +indicates to the C program that the \fBtrunc()\fR routine is available +to round doubles towards zero. +.ie n .IP """d_truncate""" 4 +.el .IP "\f(CWd_truncate\fR" 4 +.IX Item "d_truncate" +From \fId_truncate.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_TRUNCATE\*(C'\fR if \fBtruncate()\fR is +available to truncate files. +.ie n .IP """d_truncl""" 4 +.el .IP "\f(CWd_truncl\fR" 4 +.IX Item "d_truncl" +From \fId_truncl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TRUNCL\*(C'\fR symbol, which +indicates to the C program that the \fBtruncl()\fR routine is available +to round long doubles towards zero. If copysignl is also present, +we can emulate modfl. +.ie n .IP """d_ttyname_r""" 4 +.el .IP "\f(CWd_ttyname_r\fR" 4 +.IX Item "d_ttyname_r" +From \fId_ttyname_r.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_TTYNAME_R\*(C'\fR symbol, +which indicates to the C program that the \fBttyname_r()\fR +routine is available. +.ie n .IP """d_tzname""" 4 +.el .IP "\f(CWd_tzname\fR" 4 +.IX Item "d_tzname" +From \fId_tzname.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_TZNAME\*(C'\fR if tzname[] is +available to access timezone names. +.ie n .IP """d_u32align""" 4 +.el .IP "\f(CWd_u32align\fR" 4 +.IX Item "d_u32align" +From \fId_u32align.U\fR: +.Sp +This variable tells whether you must access character data +through U32\-aligned pointers. +.ie n .IP """d_ualarm""" 4 +.el .IP "\f(CWd_ualarm\fR" 4 +.IX Item "d_ualarm" +From \fId_ualarm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UALARM\*(C'\fR symbol, which +indicates to the C program that the \fBualarm()\fR routine is available. +.ie n .IP """d_umask""" 4 +.el .IP "\f(CWd_umask\fR" 4 +.IX Item "d_umask" +From \fId_umask.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UMASK\*(C'\fR symbol, which +indicates to the C program that the \fBumask()\fR routine is available. +to set and get the value of the file creation mask. +.ie n .IP """d_uname""" 4 +.el .IP "\f(CWd_uname\fR" 4 +.IX Item "d_uname" +From \fId_gethname.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UNAME\*(C'\fR symbol, which +indicates to the C program that the \fBuname()\fR routine may be +used to derive the host name. +.ie n .IP """d_union_semun""" 4 +.el .IP "\f(CWd_union_semun\fR" 4 +.IX Item "d_union_semun" +From \fId_union_semun.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_UNION_SEMUN\*(C'\fR if the +union semun is defined by including . +.ie n .IP """d_unlinkat""" 4 +.el .IP "\f(CWd_unlinkat\fR" 4 +.IX Item "d_unlinkat" +From \fId_fsat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UNLINKAT\*(C'\fR symbol, which +indicates the \f(CW\*(C`POSIX\*(C'\fR \fBunlinkat()\fR function isavailable. +.ie n .IP """d_unordered""" 4 +.el .IP "\f(CWd_unordered\fR" 4 +.IX Item "d_unordered" +From \fId_unordered.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UNORDERED\*(C'\fR symbol, which +indicates to the C program that the \fBunordered()\fR routine is available. +.ie n .IP """d_unsetenv""" 4 +.el .IP "\f(CWd_unsetenv\fR" 4 +.IX Item "d_unsetenv" +From \fId_unsetenv.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_UNSETENV\*(C'\fR symbol, which +indicates to the C program that the unsetenv () routine is available. +.ie n .IP """d_uselocale""" 4 +.el .IP "\f(CWd_uselocale\fR" 4 +.IX Item "d_uselocale" +From \fId_newlocale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_USELOCALE\*(C'\fR symbol, which +indicates to the C program that the \fBuselocale()\fR routine is available +to set the current locale for the calling thread. +.ie n .IP """d_usleep""" 4 +.el .IP "\f(CWd_usleep\fR" 4 +.IX Item "d_usleep" +From \fId_usleep.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_USLEEP\*(C'\fR if \fBusleep()\fR is +available to do high granularity sleeps. +.ie n .IP """d_usleepproto""" 4 +.el .IP "\f(CWd_usleepproto\fR" 4 +.IX Item "d_usleepproto" +From \fId_usleepproto.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_USLEEP_PROTO\*(C'\fR symbol, +which indicates to the C program that the system provides +a prototype for the \fBusleep()\fR function. Otherwise, it is +up to the program to supply one. +.ie n .IP """d_ustat""" 4 +.el .IP "\f(CWd_ustat\fR" 4 +.IX Item "d_ustat" +From \fId_ustat.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_USTAT\*(C'\fR if \fBustat()\fR is +available to query file system statistics by dev_t. +.ie n .IP """d_vendorarch""" 4 +.el .IP "\f(CWd_vendorarch\fR" 4 +.IX Item "d_vendorarch" +From \fIvendorarch.U\fR: +.Sp +This variable conditionally defined \f(CW\*(C`PERL_VENDORARCH\*(C'\fR. +.ie n .IP """d_vendorbin""" 4 +.el .IP "\f(CWd_vendorbin\fR" 4 +.IX Item "d_vendorbin" +From \fIvendorbin.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PERL_VENDORBIN\*(C'\fR. +.ie n .IP """d_vendorlib""" 4 +.el .IP "\f(CWd_vendorlib\fR" 4 +.IX Item "d_vendorlib" +From \fIvendorlib.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PERL_VENDORLIB\*(C'\fR. +.ie n .IP """d_vendorscript""" 4 +.el .IP "\f(CWd_vendorscript\fR" 4 +.IX Item "d_vendorscript" +From \fIvendorscript.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`PERL_VENDORSCRIPT\*(C'\fR. +.ie n .IP """d_vfork""" 4 +.el .IP "\f(CWd_vfork\fR" 4 +.IX Item "d_vfork" +From \fId_vfork.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_VFORK\*(C'\fR symbol, which +indicates the \fBvfork()\fR routine is available. +.ie n .IP """d_void_closedir""" 4 +.el .IP "\f(CWd_void_closedir\fR" 4 +.IX Item "d_void_closedir" +From \fId_closedir.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`VOID_CLOSEDIR\*(C'\fR if \fBclosedir()\fR +does not return a value. +.ie n .IP """d_voidsig""" 4 +.el .IP "\f(CWd_voidsig\fR" 4 +.IX Item "d_voidsig" +From \fId_voidsig.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`VOIDSIG\*(C'\fR if this system +declares \*(L"void (*signal(...))()\*(R" in \fIsignal.h\fR. The old way was to +declare it as \*(L"int (*signal(...))()\*(R". +.ie n .IP """d_voidtty""" 4 +.el .IP "\f(CWd_voidtty\fR" 4 +.IX Item "d_voidtty" +From \fIi_sysioctl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`USE_IOCNOTTY\*(C'\fR to indicate that the +\&\fBioctl()\fR call with \f(CW\*(C`TIOCNOTTY\*(C'\fR should be used to void tty association. +Otherwise (on \f(CW\*(C`USG\*(C'\fR probably), it is enough to close the standard file +descriptors and do a \fBsetpgrp()\fR. +.ie n .IP """d_vsnprintf""" 4 +.el .IP "\f(CWd_vsnprintf\fR" 4 +.IX Item "d_vsnprintf" +From \fId_snprintf.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_VSNPRINTF\*(C'\fR symbol, which +indicates to the C program that the vsnprintf () library function +is available. +.ie n .IP """d_wait4""" 4 +.el .IP "\f(CWd_wait4\fR" 4 +.IX Item "d_wait4" +From \fId_wait4.U\fR: +.Sp +This variable conditionally defines the \s-1HAS_WAIT4\s0 symbol, which +indicates the \fBwait4()\fR routine is available. +.ie n .IP """d_waitpid""" 4 +.el .IP "\f(CWd_waitpid\fR" 4 +.IX Item "d_waitpid" +From \fId_waitpid.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`HAS_WAITPID\*(C'\fR if \fBwaitpid()\fR is +available to wait for child process. +.ie n .IP """d_wcscmp""" 4 +.el .IP "\f(CWd_wcscmp\fR" 4 +.IX Item "d_wcscmp" +From \fId_wcscmp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_WCSCMP\*(C'\fR symbol if the +\&\fBwcscmp()\fR routine is available and can be used to compare wide +character strings. +.ie n .IP """d_wcstombs""" 4 +.el .IP "\f(CWd_wcstombs\fR" 4 +.IX Item "d_wcstombs" +From \fId_wcstombs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_WCSTOMBS\*(C'\fR symbol, which +indicates to the C program that the \fBwcstombs()\fR routine is available +to convert wide character strings to multibyte strings. +.ie n .IP """d_wcsxfrm""" 4 +.el .IP "\f(CWd_wcsxfrm\fR" 4 +.IX Item "d_wcsxfrm" +From \fId_wcsxfrm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_WCSXFRM\*(C'\fR symbol if the +\&\fBwcsxfrm()\fR routine is available and can be used to compare wide +character strings. +.ie n .IP """d_wctomb""" 4 +.el .IP "\f(CWd_wctomb\fR" 4 +.IX Item "d_wctomb" +From \fId_wctomb.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_WCTOMB\*(C'\fR symbol, which +indicates to the C program that the \fBwctomb()\fR routine is available +to convert a wide character to a multibyte. +.ie n .IP """d_writev""" 4 +.el .IP "\f(CWd_writev\fR" 4 +.IX Item "d_writev" +From \fId_writev.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`HAS_WRITEV\*(C'\fR symbol, which +indicates to the C program that the \fBwritev()\fR routine is available. +.ie n .IP """d_xenix""" 4 +.el .IP "\f(CWd_xenix\fR" 4 +.IX Item "d_xenix" +From \fIGuess.U\fR: +.Sp +This variable conditionally defines the symbol \f(CW\*(C`XENIX\*(C'\fR, which alerts +the C program that it runs under Xenix. +.ie n .IP """date""" 4 +.el .IP "\f(CWdate\fR" 4 +.IX Item "date" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the date program. After Configure runs, +the value is reset to a plain \f(CW\*(C`date\*(C'\fR and is not useful. +.ie n .IP """db_hashtype""" 4 +.el .IP "\f(CWdb_hashtype\fR" 4 +.IX Item "db_hashtype" +From \fIi_db.U\fR: +.Sp +This variable contains the type of the hash structure element +in the header file. In older versions of \f(CW\*(C`DB\*(C'\fR, it was +int, while in newer ones it is u_int32_t. +.ie n .IP """db_prefixtype""" 4 +.el .IP "\f(CWdb_prefixtype\fR" 4 +.IX Item "db_prefixtype" +From \fIi_db.U\fR: +.Sp +This variable contains the type of the prefix structure element +in the header file. In older versions of \f(CW\*(C`DB\*(C'\fR, it was +int, while in newer ones it is size_t. +.ie n .IP """db_version_major""" 4 +.el .IP "\f(CWdb_version_major\fR" 4 +.IX Item "db_version_major" +From \fIi_db.U\fR: +.Sp +This variable contains the major version number of +Berkeley \f(CW\*(C`DB\*(C'\fR found in the header file. +.ie n .IP """db_version_minor""" 4 +.el .IP "\f(CWdb_version_minor\fR" 4 +.IX Item "db_version_minor" +From \fIi_db.U\fR: +.Sp +This variable contains the minor version number of +Berkeley \f(CW\*(C`DB\*(C'\fR found in the header file. +For \f(CW\*(C`DB\*(C'\fR version 1 this is always 0. +.ie n .IP """db_version_patch""" 4 +.el .IP "\f(CWdb_version_patch\fR" 4 +.IX Item "db_version_patch" +From \fIi_db.U\fR: +.Sp +This variable contains the patch version number of +Berkeley \f(CW\*(C`DB\*(C'\fR found in the header file. +For \f(CW\*(C`DB\*(C'\fR version 1 this is always 0. +.ie n .IP """default_inc_excludes_dot""" 4 +.el .IP "\f(CWdefault_inc_excludes_dot\fR" 4 +.IX Item "default_inc_excludes_dot" +From \fIdefaultincdot.U\fR: +.Sp +When defined, remove the legacy \fI.\fR from @\f(CW\*(C`INC\*(C'\fR +.ie n .IP """direntrytype""" 4 +.el .IP "\f(CWdirentrytype\fR" 4 +.IX Item "direntrytype" +From \fIi_dirent.U\fR: +.Sp +This symbol is set to \f(CW\*(C`struct direct\*(C'\fR or \f(CW\*(C`struct dirent\*(C'\fR depending on +whether dirent is available or not. You should use this pseudo type to +portably declare your directory entries. +.ie n .IP """dlext""" 4 +.el .IP "\f(CWdlext\fR" 4 +.IX Item "dlext" +From \fIdlext.U\fR: +.Sp +This variable contains the extension that is to be used for the +dynamically loaded modules that perl generates. +.ie n .IP """dlsrc""" 4 +.el .IP "\f(CWdlsrc\fR" 4 +.IX Item "dlsrc" +From \fIdlsrc.U\fR: +.Sp +This variable contains the name of the dynamic loading file that +will be used with the package. +.ie n .IP """doubleinfbytes""" 4 +.el .IP "\f(CWdoubleinfbytes\fR" 4 +.IX Item "doubleinfbytes" +From \fIinfnan.U\fR: +.Sp +This variable contains comma-separated list of hexadecimal bytes +for the double precision infinity. +.ie n .IP """doublekind""" 4 +.el .IP "\f(CWdoublekind\fR" 4 +.IX Item "doublekind" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, encodes the type of a double: +1 = \f(CW\*(C`IEEE\*(C'\fR 754 32\-bit little endian, +2 = \f(CW\*(C`IEEE\*(C'\fR 754 32\-bit big endian, +3 = \f(CW\*(C`IEEE\*(C'\fR 754 64\-bit little endian, +4 = \f(CW\*(C`IEEE\*(C'\fR 754 64\-bit big endian, +5 = \f(CW\*(C`IEEE\*(C'\fR 754 128\-bit little endian, +6 = \f(CW\*(C`IEEE\*(C'\fR 754 128\-bit big endian, +7 = \f(CW\*(C`IEEE\*(C'\fR 754 64\-bit mixed endian le-be, +8 = \f(CW\*(C`IEEE\*(C'\fR 754 64\-bit mixed endian be-le, +9 = \f(CW\*(C`VAX\*(C'\fR 32bit little endian F float format +10 = \f(CW\*(C`VAX\*(C'\fR 64bit little endian D float format +11 = \f(CW\*(C`VAX\*(C'\fR 64bit little endian G float format +12 = \f(CW\*(C`IBM\*(C'\fR 32bit format +13 = \f(CW\*(C`IBM\*(C'\fR 64bit format +14 = Cray 64bit format +\&\-1 = unknown format. +.ie n .IP """doublemantbits""" 4 +.el .IP "\f(CWdoublemantbits\fR" 4 +.IX Item "doublemantbits" +From \fImantbits.U\fR: +.Sp +This symbol, if defined, tells how many mantissa bits +there are in double precision floating point format. +Note that this is usually \f(CW\*(C`DBL_MANT_DIG\*(C'\fR minus one, since +with the standard \f(CW\*(C`IEEE\*(C'\fR 754 formats \f(CW\*(C`DBL_MANT_DIG\*(C'\fR includes +the implicit bit which doesn't really exist. +.ie n .IP """doublenanbytes""" 4 +.el .IP "\f(CWdoublenanbytes\fR" 4 +.IX Item "doublenanbytes" +From \fIinfnan.U\fR: +.Sp +This variable contains comma-separated list of hexadecimal bytes +for the double precision not-a-number. +.ie n .IP """doublesize""" 4 +.el .IP "\f(CWdoublesize\fR" 4 +.IX Item "doublesize" +From \fIdoublesize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`DOUBLESIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a double. +.ie n .IP """drand01""" 4 +.el .IP "\f(CWdrand01\fR" 4 +.IX Item "drand01" +From \fIrandfunc.U\fR: +.Sp +Indicates the macro to be used to generate normalized +random numbers. Uses randfunc, often divided by +(double) (((unsigned long) 1 << randbits)) in order to +normalize the result. +In C programs, the macro \f(CW\*(C`Drand01\*(C'\fR is mapped to drand01. +.ie n .IP """drand48_r_proto""" 4 +.el .IP "\f(CWdrand48_r_proto\fR" 4 +.IX Item "drand48_r_proto" +From \fId_drand48_r.U\fR: +.Sp +This variable encodes the prototype of drand48_r. +It is zero if d_drand48_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_drand48_r +is defined. +.ie n .IP """dtrace""" 4 +.el .IP "\f(CWdtrace\fR" 4 +.IX Item "dtrace" +From \fIusedtrace.U\fR: +.Sp +This variable holds the location of the dtrace executable. +.ie n .IP """dtraceobject""" 4 +.el .IP "\f(CWdtraceobject\fR" 4 +.IX Item "dtraceobject" +From \fIdtraceobject.U\fR: +.Sp +Whether we need to build an object file with the dtrace tool. +.ie n .IP """dtracexnolibs""" 4 +.el .IP "\f(CWdtracexnolibs\fR" 4 +.IX Item "dtracexnolibs" +From \fIdtraceobject.U\fR: +.Sp +Whether dtrace accepts \-xnolibs. If available we call dtrace \-h +and dtrace \-G with \-xnolibs to allow dtrace to run in a jail on +FreeBSD. +.ie n .IP """dynamic_ext""" 4 +.el .IP "\f(CWdynamic_ext\fR" 4 +.IX Item "dynamic_ext" +From \fIExtensions.U\fR: +.Sp +This variable holds a list of \f(CW\*(C`XS\*(C'\fR extension files we want to +link dynamically into the package. It is used by Makefile. +.SS "e" +.IX Subsection "e" +.ie n .IP """eagain""" 4 +.el .IP "\f(CWeagain\fR" 4 +.IX Item "eagain" +From \fInblock_io.U\fR: +.Sp +This variable bears the symbolic errno code set by \fBread()\fR when no +data is present on the file and non-blocking I/O was enabled (otherwise, +\&\fBread()\fR blocks naturally). +.ie n .IP """ebcdic""" 4 +.el .IP "\f(CWebcdic\fR" 4 +.IX Item "ebcdic" +From \fIebcdic.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`EBCDIC\*(C'\fR if this +system uses \f(CW\*(C`EBCDIC\*(C'\fR encoding. +.ie n .IP """echo""" 4 +.el .IP "\f(CWecho\fR" 4 +.IX Item "echo" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the echo program. After Configure runs, +the value is reset to a plain \f(CW\*(C`echo\*(C'\fR and is not useful. +.ie n .IP """egrep""" 4 +.el .IP "\f(CWegrep\fR" 4 +.IX Item "egrep" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the egrep program. After Configure runs, +the value is reset to a plain \f(CW\*(C`egrep\*(C'\fR and is not useful. +.ie n .IP """emacs""" 4 +.el .IP "\f(CWemacs\fR" 4 +.IX Item "emacs" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """endgrent_r_proto""" 4 +.el .IP "\f(CWendgrent_r_proto\fR" 4 +.IX Item "endgrent_r_proto" +From \fId_endgrent_r.U\fR: +.Sp +This variable encodes the prototype of endgrent_r. +It is zero if d_endgrent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endgrent_r +is defined. +.ie n .IP """endhostent_r_proto""" 4 +.el .IP "\f(CWendhostent_r_proto\fR" 4 +.IX Item "endhostent_r_proto" +From \fId_endhostent_r.U\fR: +.Sp +This variable encodes the prototype of endhostent_r. +It is zero if d_endhostent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endhostent_r +is defined. +.ie n .IP """endnetent_r_proto""" 4 +.el .IP "\f(CWendnetent_r_proto\fR" 4 +.IX Item "endnetent_r_proto" +From \fId_endnetent_r.U\fR: +.Sp +This variable encodes the prototype of endnetent_r. +It is zero if d_endnetent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endnetent_r +is defined. +.ie n .IP """endprotoent_r_proto""" 4 +.el .IP "\f(CWendprotoent_r_proto\fR" 4 +.IX Item "endprotoent_r_proto" +From \fId_endprotoent_r.U\fR: +.Sp +This variable encodes the prototype of endprotoent_r. +It is zero if d_endprotoent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endprotoent_r +is defined. +.ie n .IP """endpwent_r_proto""" 4 +.el .IP "\f(CWendpwent_r_proto\fR" 4 +.IX Item "endpwent_r_proto" +From \fId_endpwent_r.U\fR: +.Sp +This variable encodes the prototype of endpwent_r. +It is zero if d_endpwent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endpwent_r +is defined. +.ie n .IP """endservent_r_proto""" 4 +.el .IP "\f(CWendservent_r_proto\fR" 4 +.IX Item "endservent_r_proto" +From \fId_endservent_r.U\fR: +.Sp +This variable encodes the prototype of endservent_r. +It is zero if d_endservent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_endservent_r +is defined. +.ie n .IP """eunicefix""" 4 +.el .IP "\f(CWeunicefix\fR" 4 +.IX Item "eunicefix" +From \fIInit.U\fR: +.Sp +When running under Eunice this variable contains a command which will +convert a shell script to the proper form of text file for it to be +executable by the shell. On other systems it is a no-op. +.ie n .IP """exe_ext""" 4 +.el .IP "\f(CWexe_ext\fR" 4 +.IX Item "exe_ext" +From \fIUnix.U\fR: +.Sp +This is an old synonym for _exe. +.ie n .IP """expr""" 4 +.el .IP "\f(CWexpr\fR" 4 +.IX Item "expr" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the expr program. After Configure runs, +the value is reset to a plain \f(CW\*(C`expr\*(C'\fR and is not useful. +.ie n .IP """extensions""" 4 +.el .IP "\f(CWextensions\fR" 4 +.IX Item "extensions" +From \fIExtensions.U\fR: +.Sp +This variable holds a list of all extension files (both \f(CW\*(C`XS\*(C'\fR and +non-xs) installed with the package. It is propagated to \fIConfig.pm\fR +and is typically used to test whether a particular extension +is available. +.ie n .IP """extern_C""" 4 +.el .IP "\f(CWextern_C\fR" 4 +.IX Item "extern_C" +From \fICsym.U\fR: +.Sp +\&\f(CW\*(C`ANSI\*(C'\fR C requires \f(CW\*(C`extern\*(C'\fR where \*(C+ requires 'extern \f(CW\*(C`C\*(C'\fR'. This +variable can be used in Configure to do the right thing. +.ie n .IP """extras""" 4 +.el .IP "\f(CWextras\fR" 4 +.IX Item "extras" +From \fIExtras.U\fR: +.Sp +This variable holds a list of extra modules to install. +.SS "f" +.IX Subsection "f" +.ie n .IP """fflushall""" 4 +.el .IP "\f(CWfflushall\fR" 4 +.IX Item "fflushall" +From \fIfflushall.U\fR: +.Sp +This symbol, if defined, tells that to flush +all pending stdio output one must loop through all +the stdio file handles stored in an array and fflush them. +Note that if fflushNULL is defined, fflushall will not +even be probed for and will be left undefined. +.ie n .IP """fflushNULL""" 4 +.el .IP "\f(CWfflushNULL\fR" 4 +.IX Item "fflushNULL" +From \fIfflushall.U\fR: +.Sp +This symbol, if defined, tells that fflush(\f(CW\*(C`NULL\*(C'\fR) correctly +flushes all pending stdio output without side effects. In +particular, on some platforms calling fflush(\f(CW\*(C`NULL\*(C'\fR) *still* +corrupts \f(CW\*(C`STDIN\*(C'\fR if it is a pipe. +.ie n .IP """find""" 4 +.el .IP "\f(CWfind\fR" 4 +.IX Item "find" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """firstmakefile""" 4 +.el .IP "\f(CWfirstmakefile\fR" 4 +.IX Item "firstmakefile" +From \fIUnix.U\fR: +.Sp +This variable defines the first file searched by make. On unix, +it is makefile (then Makefile). On case-insensitive systems, +it might be something else. This is only used to deal with +convoluted make depend tricks. +.ie n .IP """flex""" 4 +.el .IP "\f(CWflex\fR" 4 +.IX Item "flex" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """fpossize""" 4 +.el .IP "\f(CWfpossize\fR" 4 +.IX Item "fpossize" +From \fIfpossize.U\fR: +.Sp +This variable contains the size of a fpostype in bytes. +.ie n .IP """fpostype""" 4 +.el .IP "\f(CWfpostype\fR" 4 +.IX Item "fpostype" +From \fIfpostype.U\fR: +.Sp +This variable defines Fpos_t to be something like fpos_t, long, +uint, or whatever type is used to declare file positions in libc. +.ie n .IP """freetype""" 4 +.el .IP "\f(CWfreetype\fR" 4 +.IX Item "freetype" +From \fImallocsrc.U\fR: +.Sp +This variable contains the return type of \fBfree()\fR. It is usually +void, but occasionally int. +.ie n .IP """from""" 4 +.el .IP "\f(CWfrom\fR" 4 +.IX Item "from" +From \fICross.U\fR: +.Sp +This variable contains the command used by Configure +to copy files from the target host. Useful and available +only during Perl build. +The string \f(CW\*(C`:\*(C'\fR if not cross-compiling. +.ie n .IP """full_ar""" 4 +.el .IP "\f(CWfull_ar\fR" 4 +.IX Item "full_ar" +From \fILoc_ar.U\fR: +.Sp +This variable contains the full pathname to \f(CW\*(C`ar\*(C'\fR, whether or +not the user has specified \f(CW\*(C`portability\*(C'\fR. This is only used +in the \fIMakefile.SH\fR. +.ie n .IP """full_csh""" 4 +.el .IP "\f(CWfull_csh\fR" 4 +.IX Item "full_csh" +From \fId_csh.U\fR: +.Sp +This variable contains the full pathname to \f(CW\*(C`csh\*(C'\fR, whether or +not the user has specified \f(CW\*(C`portability\*(C'\fR. This is only used +in the compiled C program, and we assume that all systems which +can share this executable will have the same full pathname to +\&\fIcsh.\fR +.ie n .IP """full_sed""" 4 +.el .IP "\f(CWfull_sed\fR" 4 +.IX Item "full_sed" +From \fILoc_sed.U\fR: +.Sp +This variable contains the full pathname to \f(CW\*(C`sed\*(C'\fR, whether or +not the user has specified \f(CW\*(C`portability\*(C'\fR. This is only used +in the compiled C program, and we assume that all systems which +can share this executable will have the same full pathname to +\&\fIsed.\fR +.SS "g" +.IX Subsection "g" +.ie n .IP """gccansipedantic""" 4 +.el .IP "\f(CWgccansipedantic\fR" 4 +.IX Item "gccansipedantic" +From \fIgccvers.U\fR: +.Sp +If \f(CW\*(C`GNU\*(C'\fR cc (gcc) is used, this variable will enable (if set) the +\&\-ansi and \-pedantic ccflags for building core files (through +cflags script). (See \fIPorting/pumpkin.pod\fR for full description). +.ie n .IP """gccosandvers""" 4 +.el .IP "\f(CWgccosandvers\fR" 4 +.IX Item "gccosandvers" +From \fIgccvers.U\fR: +.Sp +If \f(CW\*(C`GNU\*(C'\fR cc (gcc) is used, this variable holds the operating system +and version used to compile gcc. It is set to '' if not gcc, +or if nothing useful can be parsed as the os version. +.ie n .IP """gccversion""" 4 +.el .IP "\f(CWgccversion\fR" 4 +.IX Item "gccversion" +From \fIgccvers.U\fR: +.Sp +If \f(CW\*(C`GNU\*(C'\fR cc (gcc) is used, this variable holds \f(CW1\fR or \f(CW2\fR to +indicate whether the compiler is version 1 or 2. This is used in +setting some of the default cflags. It is set to '' if not gcc. +.ie n .IP """getgrent_r_proto""" 4 +.el .IP "\f(CWgetgrent_r_proto\fR" 4 +.IX Item "getgrent_r_proto" +From \fId_getgrent_r.U\fR: +.Sp +This variable encodes the prototype of getgrent_r. +It is zero if d_getgrent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getgrent_r +is defined. +.ie n .IP """getgrgid_r_proto""" 4 +.el .IP "\f(CWgetgrgid_r_proto\fR" 4 +.IX Item "getgrgid_r_proto" +From \fId_getgrgid_r.U\fR: +.Sp +This variable encodes the prototype of getgrgid_r. +It is zero if d_getgrgid_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getgrgid_r +is defined. +.ie n .IP """getgrnam_r_proto""" 4 +.el .IP "\f(CWgetgrnam_r_proto\fR" 4 +.IX Item "getgrnam_r_proto" +From \fId_getgrnam_r.U\fR: +.Sp +This variable encodes the prototype of getgrnam_r. +It is zero if d_getgrnam_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getgrnam_r +is defined. +.ie n .IP """gethostbyaddr_r_proto""" 4 +.el .IP "\f(CWgethostbyaddr_r_proto\fR" 4 +.IX Item "gethostbyaddr_r_proto" +From \fId_gethostbyaddr_r.U\fR: +.Sp +This variable encodes the prototype of gethostbyaddr_r. +It is zero if d_gethostbyaddr_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_gethostbyaddr_r +is defined. +.ie n .IP """gethostbyname_r_proto""" 4 +.el .IP "\f(CWgethostbyname_r_proto\fR" 4 +.IX Item "gethostbyname_r_proto" +From \fId_gethostbyname_r.U\fR: +.Sp +This variable encodes the prototype of gethostbyname_r. +It is zero if d_gethostbyname_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_gethostbyname_r +is defined. +.ie n .IP """gethostent_r_proto""" 4 +.el .IP "\f(CWgethostent_r_proto\fR" 4 +.IX Item "gethostent_r_proto" +From \fId_gethostent_r.U\fR: +.Sp +This variable encodes the prototype of gethostent_r. +It is zero if d_gethostent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_gethostent_r +is defined. +.ie n .IP """getlogin_r_proto""" 4 +.el .IP "\f(CWgetlogin_r_proto\fR" 4 +.IX Item "getlogin_r_proto" +From \fId_getlogin_r.U\fR: +.Sp +This variable encodes the prototype of getlogin_r. +It is zero if d_getlogin_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getlogin_r +is defined. +.ie n .IP """getnetbyaddr_r_proto""" 4 +.el .IP "\f(CWgetnetbyaddr_r_proto\fR" 4 +.IX Item "getnetbyaddr_r_proto" +From \fId_getnetbyaddr_r.U\fR: +.Sp +This variable encodes the prototype of getnetbyaddr_r. +It is zero if d_getnetbyaddr_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getnetbyaddr_r +is defined. +.ie n .IP """getnetbyname_r_proto""" 4 +.el .IP "\f(CWgetnetbyname_r_proto\fR" 4 +.IX Item "getnetbyname_r_proto" +From \fId_getnetbyname_r.U\fR: +.Sp +This variable encodes the prototype of getnetbyname_r. +It is zero if d_getnetbyname_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getnetbyname_r +is defined. +.ie n .IP """getnetent_r_proto""" 4 +.el .IP "\f(CWgetnetent_r_proto\fR" 4 +.IX Item "getnetent_r_proto" +From \fId_getnetent_r.U\fR: +.Sp +This variable encodes the prototype of getnetent_r. +It is zero if d_getnetent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getnetent_r +is defined. +.ie n .IP """getprotobyname_r_proto""" 4 +.el .IP "\f(CWgetprotobyname_r_proto\fR" 4 +.IX Item "getprotobyname_r_proto" +From \fId_getprotobyname_r.U\fR: +.Sp +This variable encodes the prototype of getprotobyname_r. +It is zero if d_getprotobyname_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getprotobyname_r +is defined. +.ie n .IP """getprotobynumber_r_proto""" 4 +.el .IP "\f(CWgetprotobynumber_r_proto\fR" 4 +.IX Item "getprotobynumber_r_proto" +From \fId_getprotobynumber_r.U\fR: +.Sp +This variable encodes the prototype of getprotobynumber_r. +It is zero if d_getprotobynumber_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getprotobynumber_r +is defined. +.ie n .IP """getprotoent_r_proto""" 4 +.el .IP "\f(CWgetprotoent_r_proto\fR" 4 +.IX Item "getprotoent_r_proto" +From \fId_getprotoent_r.U\fR: +.Sp +This variable encodes the prototype of getprotoent_r. +It is zero if d_getprotoent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getprotoent_r +is defined. +.ie n .IP """getpwent_r_proto""" 4 +.el .IP "\f(CWgetpwent_r_proto\fR" 4 +.IX Item "getpwent_r_proto" +From \fId_getpwent_r.U\fR: +.Sp +This variable encodes the prototype of getpwent_r. +It is zero if d_getpwent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getpwent_r +is defined. +.ie n .IP """getpwnam_r_proto""" 4 +.el .IP "\f(CWgetpwnam_r_proto\fR" 4 +.IX Item "getpwnam_r_proto" +From \fId_getpwnam_r.U\fR: +.Sp +This variable encodes the prototype of getpwnam_r. +It is zero if d_getpwnam_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getpwnam_r +is defined. +.ie n .IP """getpwuid_r_proto""" 4 +.el .IP "\f(CWgetpwuid_r_proto\fR" 4 +.IX Item "getpwuid_r_proto" +From \fId_getpwuid_r.U\fR: +.Sp +This variable encodes the prototype of getpwuid_r. +It is zero if d_getpwuid_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getpwuid_r +is defined. +.ie n .IP """getservbyname_r_proto""" 4 +.el .IP "\f(CWgetservbyname_r_proto\fR" 4 +.IX Item "getservbyname_r_proto" +From \fId_getservbyname_r.U\fR: +.Sp +This variable encodes the prototype of getservbyname_r. +It is zero if d_getservbyname_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getservbyname_r +is defined. +.ie n .IP """getservbyport_r_proto""" 4 +.el .IP "\f(CWgetservbyport_r_proto\fR" 4 +.IX Item "getservbyport_r_proto" +From \fId_getservbyport_r.U\fR: +.Sp +This variable encodes the prototype of getservbyport_r. +It is zero if d_getservbyport_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getservbyport_r +is defined. +.ie n .IP """getservent_r_proto""" 4 +.el .IP "\f(CWgetservent_r_proto\fR" 4 +.IX Item "getservent_r_proto" +From \fId_getservent_r.U\fR: +.Sp +This variable encodes the prototype of getservent_r. +It is zero if d_getservent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getservent_r +is defined. +.ie n .IP """getspnam_r_proto""" 4 +.el .IP "\f(CWgetspnam_r_proto\fR" 4 +.IX Item "getspnam_r_proto" +From \fId_getspnam_r.U\fR: +.Sp +This variable encodes the prototype of getspnam_r. +It is zero if d_getspnam_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_getspnam_r +is defined. +.ie n .IP """gidformat""" 4 +.el .IP "\f(CWgidformat\fR" 4 +.IX Item "gidformat" +From \fIgidf.U\fR: +.Sp +This variable contains the format string used for printing a Gid_t. +.ie n .IP """gidsign""" 4 +.el .IP "\f(CWgidsign\fR" 4 +.IX Item "gidsign" +From \fIgidsign.U\fR: +.Sp +This variable contains the signedness of a gidtype. +1 for unsigned, \-1 for signed. +.ie n .IP """gidsize""" 4 +.el .IP "\f(CWgidsize\fR" 4 +.IX Item "gidsize" +From \fIgidsize.U\fR: +.Sp +This variable contains the size of a gidtype in bytes. +.ie n .IP """gidtype""" 4 +.el .IP "\f(CWgidtype\fR" 4 +.IX Item "gidtype" +From \fIgidtype.U\fR: +.Sp +This variable defines Gid_t to be something like gid_t, int, +ushort, or whatever type is used to declare the return type +of \fBgetgid()\fR. Typically, it is the type of group ids in the kernel. +.ie n .IP """glibpth""" 4 +.el .IP "\f(CWglibpth\fR" 4 +.IX Item "glibpth" +From \fIlibpth.U\fR: +.Sp +This variable holds the general path (space-separated) used to +find libraries. It may contain directories that do not exist on +this platform, libpth is the cleaned-up version. +.ie n .IP """gmake""" 4 +.el .IP "\f(CWgmake\fR" 4 +.IX Item "gmake" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the gmake program. After Configure runs, +the value is reset to a plain \f(CW\*(C`gmake\*(C'\fR and is not useful. +.ie n .IP """gmtime_r_proto""" 4 +.el .IP "\f(CWgmtime_r_proto\fR" 4 +.IX Item "gmtime_r_proto" +From \fId_gmtime_r.U\fR: +.Sp +This variable encodes the prototype of gmtime_r. +It is zero if d_gmtime_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_gmtime_r +is defined. +.ie n .IP """gnulibc_version""" 4 +.el .IP "\f(CWgnulibc_version\fR" 4 +.IX Item "gnulibc_version" +From \fId_gnulibc.U\fR: +.Sp +This variable contains the version number of the \f(CW\*(C`GNU\*(C'\fR C library. +It is usually something like \fI2.2.5\fR. It is a plain '' if this +is not the \f(CW\*(C`GNU\*(C'\fR C library, or if the version is unknown. +.ie n .IP """grep""" 4 +.el .IP "\f(CWgrep\fR" 4 +.IX Item "grep" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the grep program. After Configure runs, +the value is reset to a plain \f(CW\*(C`grep\*(C'\fR and is not useful. +.ie n .IP """groupcat""" 4 +.el .IP "\f(CWgroupcat\fR" 4 +.IX Item "groupcat" +From \fInis.U\fR: +.Sp +This variable contains a command that produces the text of the +\&\fI/etc/group\fR file. This is normally "cat \fI/etc/group\fR\*(L", but can be +\&\*(R"ypcat group" when \f(CW\*(C`NIS\*(C'\fR is used. +On some systems, such as os390, there may be no equivalent +command, in which case this variable is unset. +.ie n .IP """groupstype""" 4 +.el .IP "\f(CWgroupstype\fR" 4 +.IX Item "groupstype" +From \fIgroupstype.U\fR: +.Sp +This variable defines Groups_t to be something like gid_t, int, +ushort, or whatever type is used for the second argument to +\&\fBgetgroups()\fR and \fBsetgroups()\fR. Usually, this is the same as +gidtype (gid_t), but sometimes it isn't. +.ie n .IP """gzip""" 4 +.el .IP "\f(CWgzip\fR" 4 +.IX Item "gzip" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the gzip program. After Configure runs, +the value is reset to a plain \f(CW\*(C`gzip\*(C'\fR and is not useful. +.SS "h" +.IX Subsection "h" +.ie n .IP """h_fcntl""" 4 +.el .IP "\f(CWh_fcntl\fR" 4 +.IX Item "h_fcntl" +From \fIh_fcntl.U\fR: +.Sp +This is variable gets set in various places to tell i_fcntl that + should be included. +.ie n .IP """h_sysfile""" 4 +.el .IP "\f(CWh_sysfile\fR" 4 +.IX Item "h_sysfile" +From \fIh_sysfile.U\fR: +.Sp +This is variable gets set in various places to tell i_sys_file that + should be included. +.ie n .IP """hint""" 4 +.el .IP "\f(CWhint\fR" 4 +.IX Item "hint" +From \fIOldconfig.U\fR: +.Sp +Gives the type of hints used for previous answers. May be one of +\&\f(CW\*(C`default\*(C'\fR, \f(CW\*(C`recommended\*(C'\fR or \f(CW\*(C`previous\*(C'\fR. +.ie n .IP """hostcat""" 4 +.el .IP "\f(CWhostcat\fR" 4 +.IX Item "hostcat" +From \fInis.U\fR: +.Sp +This variable contains a command that produces the text of the +\&\fI/etc/hosts\fR file. This is normally "cat \fI/etc/hosts\fR\*(L", but can be +\&\*(R"ypcat hosts" when \f(CW\*(C`NIS\*(C'\fR is used. +On some systems, such as os390, there may be no equivalent +command, in which case this variable is unset. +.ie n .IP """hostgenerate""" 4 +.el .IP "\f(CWhostgenerate\fR" 4 +.IX Item "hostgenerate" +From \fICross.U\fR: +.Sp +This variable contains the path to a generate_uudmap binary that +can be run on the host \f(CW\*(C`OS\*(C'\fR when cross-compiling. Useful and +available only during Perl build. +Empty string '' if not cross-compiling. +.ie n .IP """hostosname""" 4 +.el .IP "\f(CWhostosname\fR" 4 +.IX Item "hostosname" +From \fICross.U\fR: +.Sp +This variable contains the original value of \f(CW$^O\fR for hostperl +when cross-compiling. This is useful to pick the proper tools +when running build code in the host. +Empty string '' if not cross-compiling. +.ie n .IP """hostperl""" 4 +.el .IP "\f(CWhostperl\fR" 4 +.IX Item "hostperl" +From \fICross.U\fR: +.Sp +This variable contains the path to a miniperl binary that can be +run on the host \f(CW\*(C`OS\*(C'\fR when cross-compiling. Useful and available only +during Perl build. +Empty string '' if not cross-compiling. +.ie n .IP """html1dir""" 4 +.el .IP "\f(CWhtml1dir\fR" 4 +.IX Item "html1dir" +From \fIhtml1dir.U\fR: +.Sp +This variable contains the name of the directory in which html +source pages are to be put. This directory is for pages +that describe whole programs, not libraries or modules. It +is intended to correspond roughly to section 1 of the Unix +manuals. +.ie n .IP """html1direxp""" 4 +.el .IP "\f(CWhtml1direxp\fR" 4 +.IX Item "html1direxp" +From \fIhtml1dir.U\fR: +.Sp +This variable is the same as the html1dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """html3dir""" 4 +.el .IP "\f(CWhtml3dir\fR" 4 +.IX Item "html3dir" +From \fIhtml3dir.U\fR: +.Sp +This variable contains the name of the directory in which html +source pages are to be put. This directory is for pages +that describe libraries or modules. It is intended to +correspond roughly to section 3 of the Unix manuals. +.ie n .IP """html3direxp""" 4 +.el .IP "\f(CWhtml3direxp\fR" 4 +.IX Item "html3direxp" +From \fIhtml3dir.U\fR: +.Sp +This variable is the same as the html3dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.SS "i" +.IX Subsection "i" +.ie n .IP """i16size""" 4 +.el .IP "\f(CWi16size\fR" 4 +.IX Item "i16size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an I16 in bytes. +.ie n .IP """i16type""" 4 +.el .IP "\f(CWi16type\fR" 4 +.IX Item "i16type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's I16. +.ie n .IP """i32size""" 4 +.el .IP "\f(CWi32size\fR" 4 +.IX Item "i32size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an I32 in bytes. +.ie n .IP """i32type""" 4 +.el .IP "\f(CWi32type\fR" 4 +.IX Item "i32type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's I32. +.ie n .IP """i64size""" 4 +.el .IP "\f(CWi64size\fR" 4 +.IX Item "i64size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an I64 in bytes. +.ie n .IP """i64type""" 4 +.el .IP "\f(CWi64type\fR" 4 +.IX Item "i64type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's I64. +.ie n .IP """i8size""" 4 +.el .IP "\f(CWi8size\fR" 4 +.IX Item "i8size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an I8 in bytes. +.ie n .IP """i8type""" 4 +.el .IP "\f(CWi8type\fR" 4 +.IX Item "i8type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's I8. +.ie n .IP """i_arpainet""" 4 +.el .IP "\f(CWi_arpainet\fR" 4 +.IX Item "i_arpainet" +From \fIi_arpainet.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_ARPA_INET\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_bfd""" 4 +.el .IP "\f(CWi_bfd\fR" 4 +.IX Item "i_bfd" +From \fIi_bfd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_BFD\*(C'\fR symbol, and +indicates whether a C program can include . +.ie n .IP """i_bsdioctl""" 4 +.el .IP "\f(CWi_bsdioctl\fR" 4 +.IX Item "i_bsdioctl" +From \fIi_sysioctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_BSDIOCTL\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_crypt""" 4 +.el .IP "\f(CWi_crypt\fR" 4 +.IX Item "i_crypt" +From \fIi_crypt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_CRYPT\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_db""" 4 +.el .IP "\f(CWi_db\fR" 4 +.IX Item "i_db" +From \fIi_db.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_DB\*(C'\fR symbol, and indicates +whether a C program may include Berkeley's \f(CW\*(C`DB\*(C'\fR include file . +.ie n .IP """i_dbm""" 4 +.el .IP "\f(CWi_dbm\fR" 4 +.IX Item "i_dbm" +From \fIi_dbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_DBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_dirent""" 4 +.el .IP "\f(CWi_dirent\fR" 4 +.IX Item "i_dirent" +From \fIi_dirent.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_DIRENT\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_dlfcn""" 4 +.el .IP "\f(CWi_dlfcn\fR" 4 +.IX Item "i_dlfcn" +From \fIi_dlfcn.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_DLFCN\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_execinfo""" 4 +.el .IP "\f(CWi_execinfo\fR" 4 +.IX Item "i_execinfo" +From \fIi_execinfo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_EXECINFO\*(C'\fR symbol, and indicates +whether a C program may include , for \fBbacktrace()\fR support. +.ie n .IP """i_fcntl""" 4 +.el .IP "\f(CWi_fcntl\fR" 4 +.IX Item "i_fcntl" +From \fIi_fcntl.U\fR: +.Sp +This variable controls the value of \f(CW\*(C`I_FCNTL\*(C'\fR (which tells +the C program to include ). +.ie n .IP """i_fenv""" 4 +.el .IP "\f(CWi_fenv\fR" 4 +.IX Item "i_fenv" +From \fIi_fenv.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_FENV\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_fp""" 4 +.el .IP "\f(CWi_fp\fR" 4 +.IX Item "i_fp" +From \fIi_fp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_FP\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_fp_class""" 4 +.el .IP "\f(CWi_fp_class\fR" 4 +.IX Item "i_fp_class" +From \fIi_fp_class.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_FP_CLASS\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_gdbm""" 4 +.el .IP "\f(CWi_gdbm\fR" 4 +.IX Item "i_gdbm" +From \fIi_gdbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_GDBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_gdbm_ndbm""" 4 +.el .IP "\f(CWi_gdbm_ndbm\fR" 4 +.IX Item "i_gdbm_ndbm" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_GDBM_NDBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. This is the location of the \fIndbm.h\fR compatibility file +in Debian 4.0. +.ie n .IP """i_gdbmndbm""" 4 +.el .IP "\f(CWi_gdbmndbm\fR" 4 +.IX Item "i_gdbmndbm" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_GDBMNDBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. This was the location of the \fIndbm.h\fR compatibility file +in RedHat 7.1. +.ie n .IP """i_grp""" 4 +.el .IP "\f(CWi_grp\fR" 4 +.IX Item "i_grp" +From \fIi_grp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_GRP\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_ieeefp""" 4 +.el .IP "\f(CWi_ieeefp\fR" 4 +.IX Item "i_ieeefp" +From \fIi_ieeefp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_IEEEFP\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_inttypes""" 4 +.el .IP "\f(CWi_inttypes\fR" 4 +.IX Item "i_inttypes" +From \fIi_inttypes.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_INTTYPES\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_langinfo""" 4 +.el .IP "\f(CWi_langinfo\fR" 4 +.IX Item "i_langinfo" +From \fIi_langinfo.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_LANGINFO\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_libutil""" 4 +.el .IP "\f(CWi_libutil\fR" 4 +.IX Item "i_libutil" +From \fIi_libutil.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_LIBUTIL\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_locale""" 4 +.el .IP "\f(CWi_locale\fR" 4 +.IX Item "i_locale" +From \fIi_locale.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_LOCALE\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_machcthr""" 4 +.el .IP "\f(CWi_machcthr\fR" 4 +.IX Item "i_machcthr" +From \fIi_machcthr.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_MACH_CTHREADS\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_malloc""" 4 +.el .IP "\f(CWi_malloc\fR" 4 +.IX Item "i_malloc" +From \fIi_malloc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_MALLOC\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_mallocmalloc""" 4 +.el .IP "\f(CWi_mallocmalloc\fR" 4 +.IX Item "i_mallocmalloc" +From \fIi_mallocmalloc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_MALLOCMALLOC\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_mntent""" 4 +.el .IP "\f(CWi_mntent\fR" 4 +.IX Item "i_mntent" +From \fIi_mntent.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_MNTENT\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_ndbm""" 4 +.el .IP "\f(CWi_ndbm\fR" 4 +.IX Item "i_ndbm" +From \fIi_ndbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_NDBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_netdb""" 4 +.el .IP "\f(CWi_netdb\fR" 4 +.IX Item "i_netdb" +From \fIi_netdb.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_NETDB\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_neterrno""" 4 +.el .IP "\f(CWi_neterrno\fR" 4 +.IX Item "i_neterrno" +From \fIi_neterrno.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_NET_ERRNO\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_netinettcp""" 4 +.el .IP "\f(CWi_netinettcp\fR" 4 +.IX Item "i_netinettcp" +From \fIi_netinettcp.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_NETINET_TCP\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_niin""" 4 +.el .IP "\f(CWi_niin\fR" 4 +.IX Item "i_niin" +From \fIi_niin.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_NETINET_IN\*(C'\fR, which indicates +to the C program that it should include . Otherwise, +you may try . +.ie n .IP """i_poll""" 4 +.el .IP "\f(CWi_poll\fR" 4 +.IX Item "i_poll" +From \fIi_poll.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_POLL\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_prot""" 4 +.el .IP "\f(CWi_prot\fR" 4 +.IX Item "i_prot" +From \fIi_prot.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_PROT\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_pthread""" 4 +.el .IP "\f(CWi_pthread\fR" 4 +.IX Item "i_pthread" +From \fIi_pthread.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_PTHREAD\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_pwd""" 4 +.el .IP "\f(CWi_pwd\fR" 4 +.IX Item "i_pwd" +From \fIi_pwd.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_PWD\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_quadmath""" 4 +.el .IP "\f(CWi_quadmath\fR" 4 +.IX Item "i_quadmath" +From \fIi_quadmath.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_QUADMATH\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_rpcsvcdbm""" 4 +.el .IP "\f(CWi_rpcsvcdbm\fR" 4 +.IX Item "i_rpcsvcdbm" +From \fIi_dbm.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_RPCSVC_DBM\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. Some System V systems might need this instead of . +.ie n .IP """i_sgtty""" 4 +.el .IP "\f(CWi_sgtty\fR" 4 +.IX Item "i_sgtty" +From \fIi_termio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SGTTY\*(C'\fR symbol, which +indicates to the C program that it should include rather +than . +.ie n .IP """i_shadow""" 4 +.el .IP "\f(CWi_shadow\fR" 4 +.IX Item "i_shadow" +From \fIi_shadow.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SHADOW\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_socks""" 4 +.el .IP "\f(CWi_socks\fR" 4 +.IX Item "i_socks" +From \fIi_socks.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SOCKS\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_stdbool""" 4 +.el .IP "\f(CWi_stdbool\fR" 4 +.IX Item "i_stdbool" +From \fIi_stdbool.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_STDBOOL\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_stdint""" 4 +.el .IP "\f(CWi_stdint\fR" 4 +.IX Item "i_stdint" +From \fIi_stdint.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_STDINT\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_stdlib""" 4 +.el .IP "\f(CWi_stdlib\fR" 4 +.IX Item "i_stdlib" +From \fIi_stdlib.U\fR: +.Sp +This variable unconditionally defines the \f(CW\*(C`I_STDLIB\*(C'\fR symbol. +.ie n .IP """i_sunmath""" 4 +.el .IP "\f(CWi_sunmath\fR" 4 +.IX Item "i_sunmath" +From \fIi_sunmath.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SUNMATH\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_sysaccess""" 4 +.el .IP "\f(CWi_sysaccess\fR" 4 +.IX Item "i_sysaccess" +From \fIi_sysaccess.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_ACCESS\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysdir""" 4 +.el .IP "\f(CWi_sysdir\fR" 4 +.IX Item "i_sysdir" +From \fIi_sysdir.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_DIR\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_sysfile""" 4 +.el .IP "\f(CWi_sysfile\fR" 4 +.IX Item "i_sysfile" +From \fIi_sysfile.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_FILE\*(C'\fR symbol, and indicates +whether a C program should include to get \f(CW\*(C`R_OK\*(C'\fR and friends. +.ie n .IP """i_sysfilio""" 4 +.el .IP "\f(CWi_sysfilio\fR" 4 +.IX Item "i_sysfilio" +From \fIi_sysioctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_FILIO\*(C'\fR symbol, which +indicates to the C program that exists and should +be included in preference to . +.ie n .IP """i_sysin""" 4 +.el .IP "\f(CWi_sysin\fR" 4 +.IX Item "i_sysin" +From \fIi_niin.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_IN\*(C'\fR, which indicates +to the C program that it should include instead of +. +.ie n .IP """i_sysioctl""" 4 +.el .IP "\f(CWi_sysioctl\fR" 4 +.IX Item "i_sysioctl" +From \fIi_sysioctl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_IOCTL\*(C'\fR symbol, which +indicates to the C program that exists and should +be included. +.ie n .IP """i_syslog""" 4 +.el .IP "\f(CWi_syslog\fR" 4 +.IX Item "i_syslog" +From \fIi_syslog.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSLOG\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysmman""" 4 +.el .IP "\f(CWi_sysmman\fR" 4 +.IX Item "i_sysmman" +From \fIi_sysmman.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_MMAN\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysmode""" 4 +.el .IP "\f(CWi_sysmode\fR" 4 +.IX Item "i_sysmode" +From \fIi_sysmode.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSMODE\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysmount""" 4 +.el .IP "\f(CWi_sysmount\fR" 4 +.IX Item "i_sysmount" +From \fIi_sysmount.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSMOUNT\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysndir""" 4 +.el .IP "\f(CWi_sysndir\fR" 4 +.IX Item "i_sysndir" +From \fIi_sysndir.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_NDIR\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_sysparam""" 4 +.el .IP "\f(CWi_sysparam\fR" 4 +.IX Item "i_sysparam" +From \fIi_sysparam.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_PARAM\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_syspoll""" 4 +.el .IP "\f(CWi_syspoll\fR" 4 +.IX Item "i_syspoll" +From \fIi_syspoll.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_POLL\*(C'\fR symbol, which +indicates to the C program that it should include . +.ie n .IP """i_sysresrc""" 4 +.el .IP "\f(CWi_sysresrc\fR" 4 +.IX Item "i_sysresrc" +From \fIi_sysresrc.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_RESOURCE\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_syssecrt""" 4 +.el .IP "\f(CWi_syssecrt\fR" 4 +.IX Item "i_syssecrt" +From \fIi_syssecrt.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_SECURITY\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysselct""" 4 +.el .IP "\f(CWi_sysselct\fR" 4 +.IX Item "i_sysselct" +From \fIi_sysselct.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_SELECT\*(C'\fR, which indicates +to the C program that it should include in order to +get the definition of struct timeval. +.ie n .IP """i_syssockio""" 4 +.el .IP "\f(CWi_syssockio\fR" 4 +.IX Item "i_syssockio" +From \fIi_sysioctl.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_SOCKIO\*(C'\fR to indicate to the +C program that socket ioctl codes may be found in +instead of . +.ie n .IP """i_sysstat""" 4 +.el .IP "\f(CWi_sysstat\fR" 4 +.IX Item "i_sysstat" +From \fIi_sysstat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_STAT\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysstatfs""" 4 +.el .IP "\f(CWi_sysstatfs\fR" 4 +.IX Item "i_sysstatfs" +From \fIi_sysstatfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSSTATFS\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysstatvfs""" 4 +.el .IP "\f(CWi_sysstatvfs\fR" 4 +.IX Item "i_sysstatvfs" +From \fIi_sysstatvfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSSTATVFS\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_systime""" 4 +.el .IP "\f(CWi_systime\fR" 4 +.IX Item "i_systime" +From \fIi_time.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_TIME\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_systimek""" 4 +.el .IP "\f(CWi_systimek\fR" 4 +.IX Item "i_systimek" +From \fIi_time.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_TIME_KERNEL\*(C'\fR, which +indicates to the C program that it should include +with \f(CW\*(C`KERNEL\*(C'\fR defined. +.ie n .IP """i_systimes""" 4 +.el .IP "\f(CWi_systimes\fR" 4 +.IX Item "i_systimes" +From \fIi_systimes.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_TIMES\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_systypes""" 4 +.el .IP "\f(CWi_systypes\fR" 4 +.IX Item "i_systypes" +From \fIi_systypes.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYS_TYPES\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysuio""" 4 +.el .IP "\f(CWi_sysuio\fR" 4 +.IX Item "i_sysuio" +From \fIi_sysuio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSUIO\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_sysun""" 4 +.el .IP "\f(CWi_sysun\fR" 4 +.IX Item "i_sysun" +From \fIi_sysun.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_UN\*(C'\fR, which indicates +to the C program that it should include to get \f(CW\*(C`UNIX\*(C'\fR +domain socket definitions. +.ie n .IP """i_sysutsname""" 4 +.el .IP "\f(CWi_sysutsname\fR" 4 +.IX Item "i_sysutsname" +From \fIi_sysutsname.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSUTSNAME\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_sysvfs""" 4 +.el .IP "\f(CWi_sysvfs\fR" 4 +.IX Item "i_sysvfs" +From \fIi_sysvfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_SYSVFS\*(C'\fR symbol, +and indicates whether a C program should include . +.ie n .IP """i_syswait""" 4 +.el .IP "\f(CWi_syswait\fR" 4 +.IX Item "i_syswait" +From \fIi_syswait.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`I_SYS_WAIT\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_termio""" 4 +.el .IP "\f(CWi_termio\fR" 4 +.IX Item "i_termio" +From \fIi_termio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_TERMIO\*(C'\fR symbol, which +indicates to the C program that it should include rather +than . +.ie n .IP """i_termios""" 4 +.el .IP "\f(CWi_termios\fR" 4 +.IX Item "i_termios" +From \fIi_termio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_TERMIOS\*(C'\fR symbol, which +indicates to the C program that the \f(CW\*(C`POSIX\*(C'\fR file is +to be included. +.ie n .IP """i_time""" 4 +.el .IP "\f(CWi_time\fR" 4 +.IX Item "i_time" +From \fIi_time.U\fR: +.Sp +This variable unconditionally defines \f(CW\*(C`I_TIME\*(C'\fR, which indicates +to the C program that it should include . +.ie n .IP """i_unistd""" 4 +.el .IP "\f(CWi_unistd\fR" 4 +.IX Item "i_unistd" +From \fIi_unistd.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_UNISTD\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_ustat""" 4 +.el .IP "\f(CWi_ustat\fR" 4 +.IX Item "i_ustat" +From \fIi_ustat.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_USTAT\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_utime""" 4 +.el .IP "\f(CWi_utime\fR" 4 +.IX Item "i_utime" +From \fIi_utime.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_UTIME\*(C'\fR symbol, and indicates +whether a C program should include . +.ie n .IP """i_vfork""" 4 +.el .IP "\f(CWi_vfork\fR" 4 +.IX Item "i_vfork" +From \fIi_vfork.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_VFORK\*(C'\fR symbol, and indicates +whether a C program should include \fIvfork.h\fR. +.ie n .IP """i_wchar""" 4 +.el .IP "\f(CWi_wchar\fR" 4 +.IX Item "i_wchar" +From \fIi_wchar.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_WCHAR\*(C'\fR symbol, +that indicates whether a C program may include . +.ie n .IP """i_wctype""" 4 +.el .IP "\f(CWi_wctype\fR" 4 +.IX Item "i_wctype" +From \fIi_wctype.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`I_WCTYPE\*(C'\fR symbol, +that indicates whether a C program may include . +.ie n .IP """i_xlocale""" 4 +.el .IP "\f(CWi_xlocale\fR" 4 +.IX Item "i_xlocale" +From \fId_newlocale.U\fR: +.Sp +This symbol, if defined, indicates to the C program that it should +include to get \fBuselocale()\fR and its friends +.ie n .IP """ignore_versioned_solibs""" 4 +.el .IP "\f(CWignore_versioned_solibs\fR" 4 +.IX Item "ignore_versioned_solibs" +From \fIlibs.U\fR: +.Sp +This variable should be non-empty if non-versioned shared +libraries (\fIlibfoo.so.x.y\fR) are to be ignored (because they +cannot be linked against). +.ie n .IP """inc_version_list""" 4 +.el .IP "\f(CWinc_version_list\fR" 4 +.IX Item "inc_version_list" +From \fIinc_version_list.U\fR: +.Sp +This variable specifies the list of subdirectories in over +which \fIperl.c\fR:\fBincpush()\fR and \fIlib/lib.pm\fR will automatically +search when adding directories to @\f(CW\*(C`INC\*(C'\fR. The elements in +the list are separated by spaces. This is only useful +if you have a perl library directory tree structured like the +default one. See \f(CW\*(C`INSTALL\*(C'\fR for how this works. The versioned +site_perl directory was introduced in 5.005, so that is the +lowest possible value. +.Sp +This list includes architecture-dependent directories back to +version \f(CW$api_versionstring\fR (e.g. 5.5.640) and +architecture-independent directories all the way back to +5.005. +.ie n .IP """inc_version_list_init""" 4 +.el .IP "\f(CWinc_version_list_init\fR" 4 +.IX Item "inc_version_list_init" +From \fIinc_version_list.U\fR: +.Sp +This variable holds the same list as inc_version_list, but +each item is enclosed in double quotes and separated by commas, +suitable for use in the \f(CW\*(C`PERL_INC_VERSION_LIST\*(C'\fR initialization. +.ie n .IP """incpath""" 4 +.el .IP "\f(CWincpath\fR" 4 +.IX Item "incpath" +From \fIusrinc.U\fR: +.Sp +This variable must precede the normal include path to get the +right one, as in \fI\f(CI$incpath\fI/usr/include\fR or \fI\f(CI$incpath\fI/usr/lib\fR. +Value can be "" or \fI/bsd43\fR on mips. +.ie n .IP """incpth""" 4 +.el .IP "\f(CWincpth\fR" 4 +.IX Item "incpth" +From \fIlibpth.U\fR: +.Sp +This variable must precede the normal include path to get the +right one, as in \fI\f(CI$incpath\fI/usr/include\fR or \fI\f(CI$incpath\fI/usr/lib\fR. +Value can be "" or \fI/bsd43\fR on mips. +.ie n .IP """inews""" 4 +.el .IP "\f(CWinews\fR" 4 +.IX Item "inews" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """initialinstalllocation""" 4 +.el .IP "\f(CWinitialinstalllocation\fR" 4 +.IX Item "initialinstalllocation" +From \fIbin.U\fR: +.Sp +When userelocatableinc is true, this variable holds the location +that make install should copy the perl binary to, with all the +run-time relocatable paths calculated from this at install time. +When used, it is initialized to the original value of binexp, and +then binexp is set to \fI.../\fR, as the other binaries are found +relative to the perl binary. +.ie n .IP """installarchlib""" 4 +.el .IP "\f(CWinstallarchlib\fR" 4 +.IX Item "installarchlib" +From \fIarchlib.U\fR: +.Sp +This variable is really the same as archlibexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installbin""" 4 +.el .IP "\f(CWinstallbin\fR" 4 +.IX Item "installbin" +From \fIbin.U\fR: +.Sp +This variable is the same as binexp unless \f(CW\*(C`AFS\*(C'\fR is running in which case +the user is explicitly prompted for it. This variable should always +be used in your makefiles for maximum portability. +.ie n .IP """installhtml1dir""" 4 +.el .IP "\f(CWinstallhtml1dir\fR" 4 +.IX Item "installhtml1dir" +From \fIhtml1dir.U\fR: +.Sp +This variable is really the same as html1direxp, unless you are +using a different installprefix. For extra portability, you +should only use this variable within your makefiles. +.ie n .IP """installhtml3dir""" 4 +.el .IP "\f(CWinstallhtml3dir\fR" 4 +.IX Item "installhtml3dir" +From \fIhtml3dir.U\fR: +.Sp +This variable is really the same as html3direxp, unless you are +using a different installprefix. For extra portability, you +should only use this variable within your makefiles. +.ie n .IP """installman1dir""" 4 +.el .IP "\f(CWinstallman1dir\fR" 4 +.IX Item "installman1dir" +From \fIman1dir.U\fR: +.Sp +This variable is really the same as man1direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +man1direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installman3dir""" 4 +.el .IP "\f(CWinstallman3dir\fR" 4 +.IX Item "installman3dir" +From \fIman3dir.U\fR: +.Sp +This variable is really the same as man3direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +man3direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installprefix""" 4 +.el .IP "\f(CWinstallprefix\fR" 4 +.IX Item "installprefix" +From \fIinstallprefix.U\fR: +.Sp +This variable holds the name of the directory below which +\&\*(L"make install\*(R" will install the package. For most users, this +is the same as prefix. However, it is useful for +installing the software into a different (usually temporary) +location after which it can be bundled up and moved somehow +to the final location specified by prefix. +.ie n .IP """installprefixexp""" 4 +.el .IP "\f(CWinstallprefixexp\fR" 4 +.IX Item "installprefixexp" +From \fIinstallprefix.U\fR: +.Sp +This variable holds the full absolute path of installprefix +with all \fI~\fR\-expansion done. +.ie n .IP """installprivlib""" 4 +.el .IP "\f(CWinstallprivlib\fR" 4 +.IX Item "installprivlib" +From \fIprivlib.U\fR: +.Sp +This variable is really the same as privlibexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installscript""" 4 +.el .IP "\f(CWinstallscript\fR" 4 +.IX Item "installscript" +From \fIscriptdir.U\fR: +.Sp +This variable is usually the same as scriptdirexp, unless you are on +a system running \f(CW\*(C`AFS\*(C'\fR, in which case they may differ slightly. You +should always use this variable within your makefiles for portability. +.ie n .IP """installsitearch""" 4 +.el .IP "\f(CWinstallsitearch\fR" 4 +.IX Item "installsitearch" +From \fIsitearch.U\fR: +.Sp +This variable is really the same as sitearchexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installsitebin""" 4 +.el .IP "\f(CWinstallsitebin\fR" 4 +.IX Item "installsitebin" +From \fIsitebin.U\fR: +.Sp +This variable is usually the same as sitebinexp, unless you are on +a system running \f(CW\*(C`AFS\*(C'\fR, in which case they may differ slightly. You +should always use this variable within your makefiles for portability. +.ie n .IP """installsitehtml1dir""" 4 +.el .IP "\f(CWinstallsitehtml1dir\fR" 4 +.IX Item "installsitehtml1dir" +From \fIsitehtml1dir.U\fR: +.Sp +This variable is really the same as sitehtml1direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +html1direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installsitehtml3dir""" 4 +.el .IP "\f(CWinstallsitehtml3dir\fR" 4 +.IX Item "installsitehtml3dir" +From \fIsitehtml3dir.U\fR: +.Sp +This variable is really the same as sitehtml3direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +html3direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installsitelib""" 4 +.el .IP "\f(CWinstallsitelib\fR" 4 +.IX Item "installsitelib" +From \fIsitelib.U\fR: +.Sp +This variable is really the same as sitelibexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installsiteman1dir""" 4 +.el .IP "\f(CWinstallsiteman1dir\fR" 4 +.IX Item "installsiteman1dir" +From \fIsiteman1dir.U\fR: +.Sp +This variable is really the same as siteman1direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +man1direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installsiteman3dir""" 4 +.el .IP "\f(CWinstallsiteman3dir\fR" 4 +.IX Item "installsiteman3dir" +From \fIsiteman3dir.U\fR: +.Sp +This variable is really the same as siteman3direxp, unless you are using +\&\f(CW\*(C`AFS\*(C'\fR in which case it points to the read/write location whereas +man3direxp only points to the read-only access location. For extra +portability, you should only use this variable within your makefiles. +.ie n .IP """installsitescript""" 4 +.el .IP "\f(CWinstallsitescript\fR" 4 +.IX Item "installsitescript" +From \fIsitescript.U\fR: +.Sp +This variable is usually the same as sitescriptexp, unless you are on +a system running \f(CW\*(C`AFS\*(C'\fR, in which case they may differ slightly. You +should always use this variable within your makefiles for portability. +.ie n .IP """installstyle""" 4 +.el .IP "\f(CWinstallstyle\fR" 4 +.IX Item "installstyle" +From \fIinstallstyle.U\fR: +.Sp +This variable describes the \f(CW\*(C`style\*(C'\fR of the perl installation. +This is intended to be useful for tools that need to +manipulate entire perl distributions. Perl itself doesn't use +this to find its libraries \*(-- the library directories are +stored directly in \fIConfig.pm\fR. Currently, there are only two +styles: \f(CW\*(C`lib\*(C'\fR and \fIlib/perl5\fR. The default library locations +(e.g. privlib, sitelib) are either \fI\f(CI$prefix\fI/lib\fR or +\&\fI\f(CI$prefix\fI/lib/perl5\fR. The former is useful if \f(CW$prefix\fR is a +directory dedicated to perl (e.g. \fI/opt/perl\fR), while the latter +is useful if \f(CW$prefix\fR is shared by many packages, e.g. if +\&\f(CW$prefix\fR=\fI/usr/local\fR. +.Sp +Unfortunately, while this \f(CW\*(C`style\*(C'\fR variable is used to set +defaults for all three directory hierarchies (core, vendor, and +site), there is no guarantee that the same style is actually +appropriate for all those directories. For example, \f(CW$prefix\fR +might be \fI/opt/perl\fR, but \f(CW$siteprefix\fR might be \fI/usr/local\fR. +(Perhaps, in retrospect, the \f(CW\*(C`lib\*(C'\fR style should never have been +supported, but it did seem like a nice idea at the time.) +.Sp +The situation is even less clear for tools such as MakeMaker +that can be used to install additional modules into +non-standard places. For example, if a user intends to install +a module into a private directory (perhaps by setting \f(CW\*(C`PREFIX\*(C'\fR on +the \fIMakefile.PL\fR command line), then there is no reason to +assume that the Configure-time \f(CW$installstyle\fR setting will be +relevant for that \f(CW\*(C`PREFIX\*(C'\fR. +.Sp +This may later be extended to include other information, so +be careful with pattern-matching on the results. +.Sp +For compatibility with \fIperl5.005\fR and earlier, the default +setting is based on whether or not \f(CW$prefix\fR contains the string +\&\f(CW\*(C`perl\*(C'\fR. +.ie n .IP """installusrbinperl""" 4 +.el .IP "\f(CWinstallusrbinperl\fR" 4 +.IX Item "installusrbinperl" +From \fIinstubperl.U\fR: +.Sp +This variable tells whether Perl should be installed also as +\&\fI/usr/bin/perl\fR in addition to +\&\fI\f(CI$installbin\fI/perl\fR +.ie n .IP """installvendorarch""" 4 +.el .IP "\f(CWinstallvendorarch\fR" 4 +.IX Item "installvendorarch" +From \fIvendorarch.U\fR: +.Sp +This variable is really the same as vendorarchexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorbin""" 4 +.el .IP "\f(CWinstallvendorbin\fR" 4 +.IX Item "installvendorbin" +From \fIvendorbin.U\fR: +.Sp +This variable is really the same as vendorbinexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorhtml1dir""" 4 +.el .IP "\f(CWinstallvendorhtml1dir\fR" 4 +.IX Item "installvendorhtml1dir" +From \fIvendorhtml1dir.U\fR: +.Sp +This variable is really the same as vendorhtml1direxp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorhtml3dir""" 4 +.el .IP "\f(CWinstallvendorhtml3dir\fR" 4 +.IX Item "installvendorhtml3dir" +From \fIvendorhtml3dir.U\fR: +.Sp +This variable is really the same as vendorhtml3direxp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorlib""" 4 +.el .IP "\f(CWinstallvendorlib\fR" 4 +.IX Item "installvendorlib" +From \fIvendorlib.U\fR: +.Sp +This variable is really the same as vendorlibexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorman1dir""" 4 +.el .IP "\f(CWinstallvendorman1dir\fR" 4 +.IX Item "installvendorman1dir" +From \fIvendorman1dir.U\fR: +.Sp +This variable is really the same as vendorman1direxp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorman3dir""" 4 +.el .IP "\f(CWinstallvendorman3dir\fR" 4 +.IX Item "installvendorman3dir" +From \fIvendorman3dir.U\fR: +.Sp +This variable is really the same as vendorman3direxp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """installvendorscript""" 4 +.el .IP "\f(CWinstallvendorscript\fR" 4 +.IX Item "installvendorscript" +From \fIvendorscript.U\fR: +.Sp +This variable is really the same as vendorscriptexp but may differ on +those systems using \f(CW\*(C`AFS\*(C'\fR. For extra portability, only this variable +should be used in makefiles. +.ie n .IP """intsize""" 4 +.el .IP "\f(CWintsize\fR" 4 +.IX Item "intsize" +From \fIintsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`INTSIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in an int. +.ie n .IP """issymlink""" 4 +.el .IP "\f(CWissymlink\fR" 4 +.IX Item "issymlink" +From \fIissymlink.U\fR: +.Sp +This variable holds the test command to test for a symbolic link +(if they are supported). Typical values include \f(CW\*(C`test \-h\*(C'\fR and +\&\f(CW\*(C`test \-L\*(C'\fR. +.ie n .IP """ivdformat""" 4 +.el .IP "\f(CWivdformat\fR" 4 +.IX Item "ivdformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`IV\*(C'\fR as a signed decimal integer. +.ie n .IP """ivsize""" 4 +.el .IP "\f(CWivsize\fR" 4 +.IX Item "ivsize" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an \f(CW\*(C`IV\*(C'\fR in bytes. +.ie n .IP """ivtype""" 4 +.el .IP "\f(CWivtype\fR" 4 +.IX Item "ivtype" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's \f(CW\*(C`IV\*(C'\fR. +.SS "k" +.IX Subsection "k" +.ie n .IP """known_extensions""" 4 +.el .IP "\f(CWknown_extensions\fR" 4 +.IX Item "known_extensions" +From \fIExtensions.U\fR: +.Sp +This variable holds a list of all extensions (both \f(CW\*(C`XS\*(C'\fR and non-xs) +included in the package source distribution. This information is +only really of use during the Perl build, as the list makes no +distinction between extensions which were build and installed, and +those which where not. See \f(CW\*(C`extensions\*(C'\fR for the list of extensions +actually built and available. +.ie n .IP """ksh""" 4 +.el .IP "\f(CWksh\fR" 4 +.IX Item "ksh" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.SS "l" +.IX Subsection "l" +.ie n .IP """ld""" 4 +.el .IP "\f(CWld\fR" 4 +.IX Item "ld" +From \fIdlsrc.U\fR: +.Sp +This variable indicates the program to be used to link +libraries for dynamic loading. On some systems, it is \f(CW\*(C`ld\*(C'\fR. +On \f(CW\*(C`ELF\*(C'\fR systems, it should be \f(CW$cc\fR. Mostly, we'll try to respect +the hint file setting. +.ie n .IP """ld_can_script""" 4 +.el .IP "\f(CWld_can_script\fR" 4 +.IX Item "ld_can_script" +From \fIdlsrc.U\fR: +.Sp +This variable shows if the loader accepts scripts in the form of +\&\-Wl,\-\-version\-script=\fIld.script\fR. This is currently only supported +for \f(CW\*(C`GNU\*(C'\fR ld on \f(CW\*(C`ELF\*(C'\fR in dynamic loading builds. +.ie n .IP """lddlflags""" 4 +.el .IP "\f(CWlddlflags\fR" 4 +.IX Item "lddlflags" +From \fIdlsrc.U\fR: +.Sp +This variable contains any special flags that might need to be +passed to \f(CW$ld\fR to create a shared library suitable for dynamic +loading. It is up to the makefile to use it. For hpux, it +should be \f(CW\*(C`\-b\*(C'\fR. For sunos 4.1, it is empty. +.ie n .IP """ldflags""" 4 +.el .IP "\f(CWldflags\fR" 4 +.IX Item "ldflags" +From \fIccflags.U\fR: +.Sp +This variable contains any additional C loader flags desired by +the user. It is up to the Makefile to use this. +.ie n .IP """ldflags_uselargefiles""" 4 +.el .IP "\f(CWldflags_uselargefiles\fR" 4 +.IX Item "ldflags_uselargefiles" +From \fIuselfs.U\fR: +.Sp +This variable contains the loader flags needed by large file builds +and added to ldflags by hints files. +.ie n .IP """ldlibpthname""" 4 +.el .IP "\f(CWldlibpthname\fR" 4 +.IX Item "ldlibpthname" +From \fIlibperl.U\fR: +.Sp +This variable holds the name of the shared library +search path, often \f(CW\*(C`LD_LIBRARY_PATH\*(C'\fR. To get an empty +string, the hints file must set this to \f(CW\*(C`none\*(C'\fR. +.ie n .IP """less""" 4 +.el .IP "\f(CWless\fR" 4 +.IX Item "less" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the less program. After Configure runs, +the value is reset to a plain \f(CW\*(C`less\*(C'\fR and is not useful. +.ie n .IP """lib_ext""" 4 +.el .IP "\f(CWlib_ext\fR" 4 +.IX Item "lib_ext" +From \fIUnix.U\fR: +.Sp +This is an old synonym for _a. +.ie n .IP """libc""" 4 +.el .IP "\f(CWlibc\fR" 4 +.IX Item "libc" +From \fIlibc.U\fR: +.Sp +This variable contains the location of the C library. +.ie n .IP """libperl""" 4 +.el .IP "\f(CWlibperl\fR" 4 +.IX Item "libperl" +From \fIlibperl.U\fR: +.Sp +The perl executable is obtained by linking \fIperlmain.c\fR with +libperl, any static extensions (usually just DynaLoader), +and any other libraries needed on this system. libperl +is usually \fIlibperl.a\fR, but can also be \fIlibperl.so.xxx\fR if +the user wishes to build a perl executable with a shared +library. +.ie n .IP """libpth""" 4 +.el .IP "\f(CWlibpth\fR" 4 +.IX Item "libpth" +From \fIlibpth.U\fR: +.Sp +This variable holds the general path (space-separated) used to find +libraries. It is intended to be used by other units. +.ie n .IP """libs""" 4 +.el .IP "\f(CWlibs\fR" 4 +.IX Item "libs" +From \fIlibs.U\fR: +.Sp +This variable holds the additional libraries we want to use. +It is up to the Makefile to deal with it. The list can be empty. +.ie n .IP """libsdirs""" 4 +.el .IP "\f(CWlibsdirs\fR" 4 +.IX Item "libsdirs" +From \fIlibs.U\fR: +.Sp +This variable holds the directory names aka dirnames of the libraries +we found and accepted, duplicates are removed. +.ie n .IP """libsfiles""" 4 +.el .IP "\f(CWlibsfiles\fR" 4 +.IX Item "libsfiles" +From \fIlibs.U\fR: +.Sp +This variable holds the filenames aka basenames of the libraries +we found and accepted. +.ie n .IP """libsfound""" 4 +.el .IP "\f(CWlibsfound\fR" 4 +.IX Item "libsfound" +From \fIlibs.U\fR: +.Sp +This variable holds the full pathnames of the libraries +we found and accepted. +.ie n .IP """libspath""" 4 +.el .IP "\f(CWlibspath\fR" 4 +.IX Item "libspath" +From \fIlibs.U\fR: +.Sp +This variable holds the directory names probed for libraries. +.ie n .IP """libswanted""" 4 +.el .IP "\f(CWlibswanted\fR" 4 +.IX Item "libswanted" +From \fIMyinit.U\fR: +.Sp +This variable holds a list of all the libraries we want to +search. The order is chosen to pick up the c library +ahead of ucb or bsd libraries for \s-1SVR4.\s0 +.ie n .IP """libswanted_uselargefiles""" 4 +.el .IP "\f(CWlibswanted_uselargefiles\fR" 4 +.IX Item "libswanted_uselargefiles" +From \fIuselfs.U\fR: +.Sp +This variable contains the libraries needed by large file builds +and added to ldflags by hints files. It is a space separated list +of the library names without the \f(CW\*(C`lib\*(C'\fR prefix or any suffix, just +like \fIlibswanted.\fR. +.ie n .IP """line""" 4 +.el .IP "\f(CWline\fR" 4 +.IX Item "line" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """lint""" 4 +.el .IP "\f(CWlint\fR" 4 +.IX Item "lint" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """lkflags""" 4 +.el .IP "\f(CWlkflags\fR" 4 +.IX Item "lkflags" +From \fIccflags.U\fR: +.Sp +This variable contains any additional C partial linker flags desired by +the user. It is up to the Makefile to use this. +.ie n .IP """ln""" 4 +.el .IP "\f(CWln\fR" 4 +.IX Item "ln" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the ln program. After Configure runs, +the value is reset to a plain \f(CW\*(C`ln\*(C'\fR and is not useful. +.ie n .IP """lns""" 4 +.el .IP "\f(CWlns\fR" 4 +.IX Item "lns" +From \fIlns.U\fR: +.Sp +This variable holds the name of the command to make +symbolic links (if they are supported). It can be used +in the Makefile. It is either \f(CW\*(C`ln \-s\*(C'\fR or \f(CW\*(C`ln\*(C'\fR +.ie n .IP """localtime_r_proto""" 4 +.el .IP "\f(CWlocaltime_r_proto\fR" 4 +.IX Item "localtime_r_proto" +From \fId_localtime_r.U\fR: +.Sp +This variable encodes the prototype of localtime_r. +It is zero if d_localtime_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_localtime_r +is defined. +.ie n .IP """locincpth""" 4 +.el .IP "\f(CWlocincpth\fR" 4 +.IX Item "locincpth" +From \fIccflags.U\fR: +.Sp +This variable contains a list of additional directories to be +searched by the compiler. The appropriate \f(CW\*(C`\-I\*(C'\fR directives will +be added to ccflags. This is intended to simplify setting +local directories from the Configure command line. +It's not much, but it parallels the loclibpth stuff in \fIlibpth.U\fR. +.ie n .IP """loclibpth""" 4 +.el .IP "\f(CWloclibpth\fR" 4 +.IX Item "loclibpth" +From \fIlibpth.U\fR: +.Sp +This variable holds the paths (space-separated) used to find local +libraries. It is prepended to libpth, and is intended to be easily +set from the command line. +.ie n .IP """longdblinfbytes""" 4 +.el .IP "\f(CWlongdblinfbytes\fR" 4 +.IX Item "longdblinfbytes" +From \fIinfnan.U\fR: +.Sp +This variable contains comma-separated list of hexadecimal bytes +for the long double precision infinity. +.ie n .IP """longdblkind""" 4 +.el .IP "\f(CWlongdblkind\fR" 4 +.IX Item "longdblkind" +From \fId_longdbl.U\fR: +.Sp +This variable, if defined, encodes the type of a long double: +0 = double, +1 = \f(CW\*(C`IEEE\*(C'\fR 754 128\-bit little endian, +2 = \f(CW\*(C`IEEE\*(C'\fR 754 128\-bit big endian, +3 = x86 80\-bit little endian, +4 = x86 80\-bit big endian, +5 = double-double 128\-bit little endian, +6 = double-double 128\-bit big endian, +7 = 128\-bit mixed-endian double-double (64\-bit LEs in \f(CW\*(C`BE\*(C'\fR), +8 = 128\-bit mixed-endian double-double (64\-bit BEs in \f(CW\*(C`LE\*(C'\fR), +9 = 128\-bit \f(CW\*(C`PDP\*(C'\fR\-style mixed-endian long doubles, +\&\-1 = unknown format. +.ie n .IP """longdblmantbits""" 4 +.el .IP "\f(CWlongdblmantbits\fR" 4 +.IX Item "longdblmantbits" +From \fImantbits.U\fR: +.Sp +This symbol, if defined, tells how many mantissa bits +there are in long double precision floating point format. +Note that this can be \f(CW\*(C`LDBL_MANT_DIG\*(C'\fR minus one, +since \f(CW\*(C`LDBL_MANT_DIG\*(C'\fR can include the \f(CW\*(C`IEEE\*(C'\fR 754 implicit bit. +The common x86\-style 80\-bit long double does not have +an implicit bit. +.ie n .IP """longdblnanbytes""" 4 +.el .IP "\f(CWlongdblnanbytes\fR" 4 +.IX Item "longdblnanbytes" +From \fIinfnan.U\fR: +.Sp +This variable contains comma-separated list of hexadecimal bytes +for the long double precision not-a-number. +.ie n .IP """longdblsize""" 4 +.el .IP "\f(CWlongdblsize\fR" 4 +.IX Item "longdblsize" +From \fId_longdbl.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`LONG_DOUBLESIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a long double, +if this system supports long doubles. Note that this is +sizeof(long double), which may include unused bytes. +.ie n .IP """longlongsize""" 4 +.el .IP "\f(CWlonglongsize\fR" 4 +.IX Item "longlongsize" +From \fId_longlong.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`LONGLONGSIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a long long, +if this system supports long long. +.ie n .IP """longsize""" 4 +.el .IP "\f(CWlongsize\fR" 4 +.IX Item "longsize" +From \fIintsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`LONGSIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a long. +.ie n .IP """lp""" 4 +.el .IP "\f(CWlp\fR" 4 +.IX Item "lp" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """lpr""" 4 +.el .IP "\f(CWlpr\fR" 4 +.IX Item "lpr" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """ls""" 4 +.el .IP "\f(CWls\fR" 4 +.IX Item "ls" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the ls program. After Configure runs, +the value is reset to a plain \f(CW\*(C`ls\*(C'\fR and is not useful. +.ie n .IP """lseeksize""" 4 +.el .IP "\f(CWlseeksize\fR" 4 +.IX Item "lseeksize" +From \fIlseektype.U\fR: +.Sp +This variable defines lseektype to be something like off_t, long, +or whatever type is used to declare lseek offset's type in the +kernel (which also appears to be lseek's return type). +.ie n .IP """lseektype""" 4 +.el .IP "\f(CWlseektype\fR" 4 +.IX Item "lseektype" +From \fIlseektype.U\fR: +.Sp +This variable defines lseektype to be something like off_t, long, +or whatever type is used to declare lseek offset's type in the +kernel (which also appears to be lseek's return type). +.SS "m" +.IX Subsection "m" +.ie n .IP """mail""" 4 +.el .IP "\f(CWmail\fR" 4 +.IX Item "mail" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """mailx""" 4 +.el .IP "\f(CWmailx\fR" 4 +.IX Item "mailx" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """make""" 4 +.el .IP "\f(CWmake\fR" 4 +.IX Item "make" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the make program. After Configure runs, +the value is reset to a plain \f(CW\*(C`make\*(C'\fR and is not useful. +.ie n .IP """make_set_make""" 4 +.el .IP "\f(CWmake_set_make\fR" 4 +.IX Item "make_set_make" +From \fImake.U\fR: +.Sp +Some versions of \f(CW\*(C`make\*(C'\fR set the variable \f(CW\*(C`MAKE\*(C'\fR. Others do not. +This variable contains the string to be included in \fIMakefile.SH\fR +so that \f(CW\*(C`MAKE\*(C'\fR is set if needed, and not if not needed. +Possible values are: +.Sp +make_set_make=\f(CW\*(C`#\*(C'\fR # If your make program handles this for you, +.Sp +make_set_make=\f(CW\*(C`MAKE=$make\*(C'\fR # if it doesn't. +.Sp +This uses a comment character so that we can distinguish a +\&\f(CW\*(C`set\*(C'\fR value (from a previous \fIconfig.sh\fR or Configure \f(CW\*(C`\-D\*(C'\fR option) +from an uncomputed value. +.ie n .IP """mallocobj""" 4 +.el .IP "\f(CWmallocobj\fR" 4 +.IX Item "mallocobj" +From \fImallocsrc.U\fR: +.Sp +This variable contains the name of the \fImalloc.o\fR that this package +generates, if that \fImalloc.o\fR is preferred over the system malloc. +Otherwise the value is null. This variable is intended for generating +Makefiles. See mallocsrc. +.ie n .IP """mallocsrc""" 4 +.el .IP "\f(CWmallocsrc\fR" 4 +.IX Item "mallocsrc" +From \fImallocsrc.U\fR: +.Sp +This variable contains the name of the \fImalloc.c\fR that comes with +the package, if that \fImalloc.c\fR is preferred over the system malloc. +Otherwise the value is null. This variable is intended for generating +Makefiles. +.ie n .IP """malloctype""" 4 +.el .IP "\f(CWmalloctype\fR" 4 +.IX Item "malloctype" +From \fImallocsrc.U\fR: +.Sp +This variable contains the kind of ptr returned by malloc and realloc. +.ie n .IP """man1dir""" 4 +.el .IP "\f(CWman1dir\fR" 4 +.IX Item "man1dir" +From \fIman1dir.U\fR: +.Sp +This variable contains the name of the directory in which manual +source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +.ie n .IP """man1direxp""" 4 +.el .IP "\f(CWman1direxp\fR" 4 +.IX Item "man1direxp" +From \fIman1dir.U\fR: +.Sp +This variable is the same as the man1dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """man1ext""" 4 +.el .IP "\f(CWman1ext\fR" 4 +.IX Item "man1ext" +From \fIman1dir.U\fR: +.Sp +This variable contains the extension that the manual page should +have: one of \f(CW\*(C`n\*(C'\fR, \f(CW\*(C`l\*(C'\fR, or \f(CW1\fR. The Makefile must supply the \fI.\fR. +See man1dir. +.ie n .IP """man3dir""" 4 +.el .IP "\f(CWman3dir\fR" 4 +.IX Item "man3dir" +From \fIman3dir.U\fR: +.Sp +This variable contains the name of the directory in which manual +source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +.ie n .IP """man3direxp""" 4 +.el .IP "\f(CWman3direxp\fR" 4 +.IX Item "man3direxp" +From \fIman3dir.U\fR: +.Sp +This variable is the same as the man3dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """man3ext""" 4 +.el .IP "\f(CWman3ext\fR" 4 +.IX Item "man3ext" +From \fIman3dir.U\fR: +.Sp +This variable contains the extension that the manual page should +have: one of \f(CW\*(C`n\*(C'\fR, \f(CW\*(C`l\*(C'\fR, or \f(CW3\fR. The Makefile must supply the \fI.\fR. +See man3dir. +.ie n .IP """mips_type""" 4 +.el .IP "\f(CWmips_type\fR" 4 +.IX Item "mips_type" +From \fIusrinc.U\fR: +.Sp +This variable holds the environment type for the mips system. +Possible values are \*(L"\s-1BSD 4.3\*(R"\s0 and \*(L"System V\*(R". +.ie n .IP """mistrustnm""" 4 +.el .IP "\f(CWmistrustnm\fR" 4 +.IX Item "mistrustnm" +From \fICsym.U\fR: +.Sp +This variable can be used to establish a fallthrough for the cases +where nm fails to find a symbol. If usenm is false or usenm is true +and mistrustnm is false, this variable has no effect. If usenm is true +and mistrustnm is \f(CW\*(C`compile\*(C'\fR, a test program will be compiled to try to +find any symbol that can't be located via nm lookup. If mistrustnm is +\&\f(CW\*(C`run\*(C'\fR, the test program will be run as well as being compiled. +.ie n .IP """mkdir""" 4 +.el .IP "\f(CWmkdir\fR" 4 +.IX Item "mkdir" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the mkdir program. After Configure runs, +the value is reset to a plain \f(CW\*(C`mkdir\*(C'\fR and is not useful. +.ie n .IP """mmaptype""" 4 +.el .IP "\f(CWmmaptype\fR" 4 +.IX Item "mmaptype" +From \fId_mmap.U\fR: +.Sp +This symbol contains the type of pointer returned by \fBmmap()\fR +(and simultaneously the type of the first argument). +It can be \f(CW\*(C`void *\*(C'\fR or \f(CW\*(C`caddr_t\*(C'\fR. +.ie n .IP """modetype""" 4 +.el .IP "\f(CWmodetype\fR" 4 +.IX Item "modetype" +From \fImodetype.U\fR: +.Sp +This variable defines modetype to be something like mode_t, +int, unsigned short, or whatever type is used to declare file +modes for system calls. +.ie n .IP """more""" 4 +.el .IP "\f(CWmore\fR" 4 +.IX Item "more" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the more program. After Configure runs, +the value is reset to a plain \f(CW\*(C`more\*(C'\fR and is not useful. +.ie n .IP """multiarch""" 4 +.el .IP "\f(CWmultiarch\fR" 4 +.IX Item "multiarch" +From \fImultiarch.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`MULTIARCH\*(C'\fR symbol +which signifies the presence of multiplatform files. +This is normally set by hints files. +.ie n .IP """mv""" 4 +.el .IP "\f(CWmv\fR" 4 +.IX Item "mv" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """myarchname""" 4 +.el .IP "\f(CWmyarchname\fR" 4 +.IX Item "myarchname" +From \fIarchname.U\fR: +.Sp +This variable holds the architecture name computed by Configure in +a previous run. It is not intended to be perused by any user and +should never be set in a hint file. +.ie n .IP """mydomain""" 4 +.el .IP "\f(CWmydomain\fR" 4 +.IX Item "mydomain" +From \fImyhostname.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`MYDOMAIN\*(C'\fR symbol, +which is the domain of the host the program is going to run on. +The domain must be appended to myhostname to form a complete host name. +The dot comes with mydomain, and need not be supplied by the program. +.ie n .IP """myhostname""" 4 +.el .IP "\f(CWmyhostname\fR" 4 +.IX Item "myhostname" +From \fImyhostname.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`MYHOSTNAME\*(C'\fR symbol, +which is the name of the host the program is going to run on. +The domain is not kept with hostname, but must be gotten from mydomain. +The dot comes with mydomain, and need not be supplied by the program. +.ie n .IP """myuname""" 4 +.el .IP "\f(CWmyuname\fR" 4 +.IX Item "myuname" +From \fIOldconfig.U\fR: +.Sp +The output of \f(CW\*(C`uname \-a\*(C'\fR if available, otherwise the hostname. +The whole thing is then lower-cased and slashes and single quotes are +removed. +.SS "n" +.IX Subsection "n" +.ie n .IP """n""" 4 +.el .IP "\f(CWn\fR" 4 +.IX Item "n" +From \fIn.U\fR: +.Sp +This variable contains the \f(CW\*(C`\-n\*(C'\fR flag if that is what causes the echo +command to suppress newline. Otherwise it is null. Correct usage is +\&\f(CW$echo\fR \f(CW$n\fR \*(L"prompt for a question: \f(CW$c\fR\*(R". +.ie n .IP """need_va_copy""" 4 +.el .IP "\f(CWneed_va_copy\fR" 4 +.IX Item "need_va_copy" +From \fIneed_va_copy.U\fR: +.Sp +This symbol, if defined, indicates that the system stores +the variable argument list datatype, va_list, in a format +that cannot be copied by simple assignment, so that some +other means must be used when copying is required. +As such systems vary in their provision (or non-provision) +of copying mechanisms, \fIhandy.h\fR defines a platform\- +\&\f(CW\*(C`independent\*(C'\fR macro, Perl_va_copy(src, dst), to do the job. +.ie n .IP """netdb_hlen_type""" 4 +.el .IP "\f(CWnetdb_hlen_type\fR" 4 +.IX Item "netdb_hlen_type" +From \fInetdbtype.U\fR: +.Sp +This variable holds the type used for the 2nd argument to +\&\fBgethostbyaddr()\fR. Usually, this is int or size_t or unsigned. +This is only useful if you have \fBgethostbyaddr()\fR, naturally. +.ie n .IP """netdb_host_type""" 4 +.el .IP "\f(CWnetdb_host_type\fR" 4 +.IX Item "netdb_host_type" +From \fInetdbtype.U\fR: +.Sp +This variable holds the type used for the 1st argument to +\&\fBgethostbyaddr()\fR. Usually, this is char * or void *, possibly +with or without a const prefix. +This is only useful if you have \fBgethostbyaddr()\fR, naturally. +.ie n .IP """netdb_name_type""" 4 +.el .IP "\f(CWnetdb_name_type\fR" 4 +.IX Item "netdb_name_type" +From \fInetdbtype.U\fR: +.Sp +This variable holds the type used for the argument to +\&\fBgethostbyname()\fR. Usually, this is char * or const char *. +This is only useful if you have \fBgethostbyname()\fR, naturally. +.ie n .IP """netdb_net_type""" 4 +.el .IP "\f(CWnetdb_net_type\fR" 4 +.IX Item "netdb_net_type" +From \fInetdbtype.U\fR: +.Sp +This variable holds the type used for the 1st argument to +\&\fBgetnetbyaddr()\fR. Usually, this is int or long. +This is only useful if you have \fBgetnetbyaddr()\fR, naturally. +.ie n .IP """nm""" 4 +.el .IP "\f(CWnm\fR" 4 +.IX Item "nm" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the nm program. After Configure runs, +the value is reset to a plain \f(CW\*(C`nm\*(C'\fR and is not useful. +.ie n .IP """nm_opt""" 4 +.el .IP "\f(CWnm_opt\fR" 4 +.IX Item "nm_opt" +From \fIusenm.U\fR: +.Sp +This variable holds the options that may be necessary for nm. +.ie n .IP """nm_so_opt""" 4 +.el .IP "\f(CWnm_so_opt\fR" 4 +.IX Item "nm_so_opt" +From \fIusenm.U\fR: +.Sp +This variable holds the options that may be necessary for nm +to work on a shared library but that can not be used on an +archive library. Currently, this is only used by Linux, where +nm \-\-dynamic is *required* to get symbols from an \f(CW\*(C`ELF\*(C'\fR library which +has been stripped, but nm \-\-dynamic is *fatal* on an archive library. +Maybe Linux should just always set usenm=false. +.ie n .IP """nonxs_ext""" 4 +.el .IP "\f(CWnonxs_ext\fR" 4 +.IX Item "nonxs_ext" +From \fIExtensions.U\fR: +.Sp +This variable holds a list of all non-xs extensions built and +installed by the package. By default, all non-xs extensions +distributed will be built, with the exception of platform-specific +extensions (currently only one \f(CW\*(C`VMS\*(C'\fR specific extension). +.ie n .IP """nroff""" 4 +.el .IP "\f(CWnroff\fR" 4 +.IX Item "nroff" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the nroff program. After Configure runs, +the value is reset to a plain \f(CW\*(C`nroff\*(C'\fR and is not useful. +.ie n .IP """nv_overflows_integers_at""" 4 +.el .IP "\f(CWnv_overflows_integers_at\fR" 4 +.IX Item "nv_overflows_integers_at" +From \fIperlxv.U\fR: +.Sp +This variable gives the largest integer value that NVs can hold +as a constant floating point expression. +If it could not be determined, it holds the value 0. +.ie n .IP """nv_preserves_uv_bits""" 4 +.el .IP "\f(CWnv_preserves_uv_bits\fR" 4 +.IX Item "nv_preserves_uv_bits" +From \fIperlxv.U\fR: +.Sp +This variable indicates how many of bits type uvtype +a variable nvtype can preserve. +.ie n .IP """nveformat""" 4 +.el .IP "\f(CWnveformat\fR" 4 +.IX Item "nveformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%e\fR\-ish floating point format. +.ie n .IP """nvEUformat""" 4 +.el .IP "\f(CWnvEUformat\fR" 4 +.IX Item "nvEUformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%E\fR\-ish floating point format. +.ie n .IP """nvfformat""" 4 +.el .IP "\f(CWnvfformat\fR" 4 +.IX Item "nvfformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%f\fR\-ish floating point format. +.ie n .IP """nvFUformat""" 4 +.el .IP "\f(CWnvFUformat\fR" 4 +.IX Item "nvFUformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%F\fR\-ish floating point format. +.ie n .IP """nvgformat""" 4 +.el .IP "\f(CWnvgformat\fR" 4 +.IX Item "nvgformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%g\fR\-ish floating point format. +.ie n .IP """nvGUformat""" 4 +.el .IP "\f(CWnvGUformat\fR" 4 +.IX Item "nvGUformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`NV\*(C'\fR using \f(CW%G\fR\-ish floating point format. +.ie n .IP """nvmantbits""" 4 +.el .IP "\f(CWnvmantbits\fR" 4 +.IX Item "nvmantbits" +From \fImantbits.U\fR: +.Sp +This variable tells how many bits the mantissa of a Perl \f(CW\*(C`NV\*(C'\fR has, +not including the possible implicit bit. +.ie n .IP """nvsize""" 4 +.el .IP "\f(CWnvsize\fR" 4 +.IX Item "nvsize" +From \fIperlxv.U\fR: +.Sp +This variable is the size of a Perl \f(CW\*(C`NV\*(C'\fR in bytes. +Note that some floating point formats have unused bytes. +.ie n .IP """nvtype""" 4 +.el .IP "\f(CWnvtype\fR" 4 +.IX Item "nvtype" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's \f(CW\*(C`NV\*(C'\fR. +.SS "o" +.IX Subsection "o" +.ie n .IP """o_nonblock""" 4 +.el .IP "\f(CWo_nonblock\fR" 4 +.IX Item "o_nonblock" +From \fInblock_io.U\fR: +.Sp +This variable bears the symbol value to be used during \fBopen()\fR or \fBfcntl()\fR +to turn on non-blocking I/O for a file descriptor. If you wish to switch +between blocking and non-blocking, you may try ioctl(\f(CW\*(C`FIOSNBIO\*(C'\fR) instead, +but that is only supported by some devices. +.ie n .IP """obj_ext""" 4 +.el .IP "\f(CWobj_ext\fR" 4 +.IX Item "obj_ext" +From \fIUnix.U\fR: +.Sp +This is an old synonym for _o. +.ie n .IP """old_pthread_create_joinable""" 4 +.el .IP "\f(CWold_pthread_create_joinable\fR" 4 +.IX Item "old_pthread_create_joinable" +From \fId_pthrattrj.U\fR: +.Sp +This variable defines the constant to use for creating joinable +(aka undetached) pthreads. Unused if \fIpthread.h\fR defines +\&\f(CW\*(C`PTHREAD_CREATE_JOINABLE\*(C'\fR. If used, possible values are +\&\f(CW\*(C`PTHREAD_CREATE_UNDETACHED\*(C'\fR and \f(CW\*(C`_\|_UNDETACHED\*(C'\fR. +.ie n .IP """optimize""" 4 +.el .IP "\f(CWoptimize\fR" 4 +.IX Item "optimize" +From \fIccflags.U\fR: +.Sp +This variable contains any \fIoptimizer/debugger\fR flag that should be used. +It is up to the Makefile to use it. +.ie n .IP """orderlib""" 4 +.el .IP "\f(CWorderlib\fR" 4 +.IX Item "orderlib" +From \fIorderlib.U\fR: +.Sp +This variable is \f(CW\*(C`true\*(C'\fR if the components of libraries must be ordered +(with `lorder $* | tsort`) before placing them in an archive. Set to +\&\f(CW\*(C`false\*(C'\fR if ranlib or ar can generate random libraries. +.ie n .IP """osname""" 4 +.el .IP "\f(CWosname\fR" 4 +.IX Item "osname" +From \fIOldconfig.U\fR: +.Sp +This variable contains the operating system name (e.g. sunos, +solaris, hpux, etc.). It can be useful later on for setting +defaults. Any spaces are replaced with underscores. It is set +to a null string if we can't figure it out. +.ie n .IP """osvers""" 4 +.el .IP "\f(CWosvers\fR" 4 +.IX Item "osvers" +From \fIOldconfig.U\fR: +.Sp +This variable contains the operating system version (e.g. +4.1.3, 5.2, etc.). It is primarily used for helping select +an appropriate hints file, but might be useful elsewhere for +setting defaults. It is set to '' if we can't figure it out. +We try to be flexible about how much of the version number +to keep, e.g. if 4.1.1, 4.1.2, and 4.1.3 are essentially the +same for this package, hints files might just be \fIos_4.0\fR or +\&\fIos_4.1\fR, etc., not keeping separate files for each little release. +.ie n .IP """otherlibdirs""" 4 +.el .IP "\f(CWotherlibdirs\fR" 4 +.IX Item "otherlibdirs" +From \fIotherlibdirs.U\fR: +.Sp +This variable contains a colon-separated set of paths for the perl +binary to search for additional library files or modules. +These directories will be tacked to the end of @\f(CW\*(C`INC\*(C'\fR. +Perl will automatically search below each path for version\- +and architecture-specific directories. See inc_version_list +for more details. +A value of \f(CW\*(C` \*(C'\fR means \f(CW\*(C`none\*(C'\fR and is used to preserve this value +for the next run through Configure. +.SS "p" +.IX Subsection "p" +.ie n .IP """package""" 4 +.el .IP "\f(CWpackage\fR" 4 +.IX Item "package" +From \fIpackage.U\fR: +.Sp +This variable contains the name of the package being constructed. +It is primarily intended for the use of later Configure units. +.ie n .IP """pager""" 4 +.el .IP "\f(CWpager\fR" 4 +.IX Item "pager" +From \fIpager.U\fR: +.Sp +This variable contains the name of the preferred pager on the system. +Usual values are (the full pathnames of) more, less, pg, or cat. +.ie n .IP """passcat""" 4 +.el .IP "\f(CWpasscat\fR" 4 +.IX Item "passcat" +From \fInis.U\fR: +.Sp +This variable contains a command that produces the text of the +\&\fI/etc/passwd\fR file. This is normally "cat \fI/etc/passwd\fR\*(L", but can be +\&\*(R"ypcat passwd" when \f(CW\*(C`NIS\*(C'\fR is used. +On some systems, such as os390, there may be no equivalent +command, in which case this variable is unset. +.ie n .IP """patchlevel""" 4 +.el .IP "\f(CWpatchlevel\fR" 4 +.IX Item "patchlevel" +From \fIpatchlevel.U\fR: +.Sp +The patchlevel level of this package. +The value of patchlevel comes from the \fIpatchlevel.h\fR file. +In a version number such as 5.6.1, this is the \f(CW6\fR. +In \fIpatchlevel.h\fR, this is referred to as \f(CW\*(C`PERL_VERSION\*(C'\fR. +.ie n .IP """path_sep""" 4 +.el .IP "\f(CWpath_sep\fR" 4 +.IX Item "path_sep" +From \fIUnix.U\fR: +.Sp +This is an old synonym for p_ in \fIHead.U\fR, the character +used to separate elements in the command shell search \f(CW\*(C`PATH\*(C'\fR. +.ie n .IP """perl""" 4 +.el .IP "\f(CWperl\fR" 4 +.IX Item "perl" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the perl program. After Configure runs, +the value is reset to a plain \f(CW\*(C`perl\*(C'\fR and is not useful. +.ie n .IP """perl5""" 4 +.el .IP "\f(CWperl5\fR" 4 +.IX Item "perl5" +From \fIperl5.U\fR: +.Sp +This variable contains the full path (if any) to a previously +installed \fIperl5.005\fR or later suitable for running the script +to determine inc_version_list. +.SS "P" +.IX Subsection "P" +.ie n .IP """PERL_API_REVISION""" 4 +.el .IP "\f(CWPERL_API_REVISION\fR" 4 +.IX Item "PERL_API_REVISION" +From \fIpatchlevel.h\fR: +.Sp +This number describes the earliest compatible \f(CW\*(C`PERL_REVISION\*(C'\fR of +Perl (\f(CW\*(C`compatibility\*(C'\fR here being defined as sufficient \fIbinary/\f(CI\*(C`API\*(C'\fI\fR +compatibility to run \f(CW\*(C`XS\*(C'\fR code built with the older version). +Normally this does not change across maintenance releases. +Please read the comment in \fIpatchlevel.h\fR. +.ie n .IP """PERL_API_SUBVERSION""" 4 +.el .IP "\f(CWPERL_API_SUBVERSION\fR" 4 +.IX Item "PERL_API_SUBVERSION" +From \fIpatchlevel.h\fR: +.Sp +This number describes the earliest compatible \f(CW\*(C`PERL_SUBVERSION\*(C'\fR of +Perl (\f(CW\*(C`compatibility\*(C'\fR here being defined as sufficient \fIbinary/\f(CI\*(C`API\*(C'\fI\fR +compatibility to run \f(CW\*(C`XS\*(C'\fR code built with the older version). +Normally this does not change across maintenance releases. +Please read the comment in \fIpatchlevel.h\fR. +.ie n .IP """PERL_API_VERSION""" 4 +.el .IP "\f(CWPERL_API_VERSION\fR" 4 +.IX Item "PERL_API_VERSION" +From \fIpatchlevel.h\fR: +.Sp +This number describes the earliest compatible \f(CW\*(C`PERL_VERSION\*(C'\fR of +Perl (\f(CW\*(C`compatibility\*(C'\fR here being defined as sufficient \fIbinary/\f(CI\*(C`API\*(C'\fI\fR +compatibility to run \f(CW\*(C`XS\*(C'\fR code built with the older version). +Normally this does not change across maintenance releases. +Please read the comment in \fIpatchlevel.h\fR. +.ie n .IP """PERL_CONFIG_SH""" 4 +.el .IP "\f(CWPERL_CONFIG_SH\fR" 4 +.IX Item "PERL_CONFIG_SH" +From \fIOldsyms.U\fR: +.Sp +This is set to \f(CW\*(C`true\*(C'\fR in \fIconfig.sh\fR so that a shell script +sourcing \fIconfig.sh\fR can tell if it has been sourced already. +.ie n .IP """PERL_PATCHLEVEL""" 4 +.el .IP "\f(CWPERL_PATCHLEVEL\fR" 4 +.IX Item "PERL_PATCHLEVEL" +From \fIOldsyms.U\fR: +.Sp +This symbol reflects the patchlevel, if available. Will usually +come from the \fI.patch\fR file, which is available when the perl +source tree was fetched with rsync. +.ie n .IP """perl_patchlevel""" 4 +.el .IP "\f(CWperl_patchlevel\fR" 4 +.IX Item "perl_patchlevel" +From \fIpatchlevel.U\fR: +.Sp +This is the Perl patch level, a numeric change identifier, +as defined by whichever source code maintenance system +is used to maintain the patches; currently Perforce. +It does not correlate with the Perl version numbers or +the maintenance versus development dichotomy except +by also being increasing. +.ie n .IP """PERL_REVISION""" 4 +.el .IP "\f(CWPERL_REVISION\fR" 4 +.IX Item "PERL_REVISION" +From \fIOldsyms.U\fR: +.Sp +In a Perl version number such as 5.6.2, this is the 5. +This value is manually set in \fIpatchlevel.h\fR +.ie n .IP """perl_static_inline""" 4 +.el .IP "\f(CWperl_static_inline\fR" 4 +.IX Item "perl_static_inline" +From \fId_static_inline.U\fR: +.Sp +This variable defines the \f(CW\*(C`PERL_STATIC_INLINE\*(C'\fR symbol to +the best-guess incantation to use for static inline functions. +Possibilities include +static inline (c99) +static _\|_inline_\|_ (gcc \-ansi) +static _\|_inline (\f(CW\*(C`MSVC\*(C'\fR) +static _inline (older \f(CW\*(C`MSVC\*(C'\fR) +static (c89 compilers) +.ie n .IP """PERL_SUBVERSION""" 4 +.el .IP "\f(CWPERL_SUBVERSION\fR" 4 +.IX Item "PERL_SUBVERSION" +From \fIOldsyms.U\fR: +.Sp +In a Perl version number such as 5.6.2, this is the 2. +Values greater than 50 represent potentially unstable +development subversions. +This value is manually set in \fIpatchlevel.h\fR +.ie n .IP """PERL_VERSION""" 4 +.el .IP "\f(CWPERL_VERSION\fR" 4 +.IX Item "PERL_VERSION" +From \fIOldsyms.U\fR: +.Sp +In a Perl version number such as 5.6.2, this is the 6. +This value is manually set in \fIpatchlevel.h\fR +.ie n .IP """perladmin""" 4 +.el .IP "\f(CWperladmin\fR" 4 +.IX Item "perladmin" +From \fIperladmin.U\fR: +.Sp +Electronic mail address of the perl5 administrator. +.ie n .IP """perllibs""" 4 +.el .IP "\f(CWperllibs\fR" 4 +.IX Item "perllibs" +From \fIEnd.U\fR: +.Sp +The list of libraries needed by Perl only (any libraries needed +by extensions only will by dropped, if using dynamic loading). +.ie n .IP """perlpath""" 4 +.el .IP "\f(CWperlpath\fR" 4 +.IX Item "perlpath" +From \fIperlpath.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`PERLPATH\*(C'\fR symbol, +which contains the name of the perl interpreter to be used in +shell scripts and in the "eval \f(CW\*(C`exec\*(C'\fR" idiom. This variable is +not necessarily the pathname of the file containing the perl +interpreter; you must append the executable extension (_exe) if +it is not already present. Note that Perl code that runs during +the Perl build process cannot reference this variable, as Perl +may not have been installed, or even if installed, may be a +different version of Perl. +.ie n .IP """pg""" 4 +.el .IP "\f(CWpg\fR" 4 +.IX Item "pg" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the pg program. After Configure runs, +the value is reset to a plain \f(CW\*(C`pg\*(C'\fR and is not useful. +.ie n .IP """phostname""" 4 +.el .IP "\f(CWphostname\fR" 4 +.IX Item "phostname" +From \fImyhostname.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`PHOSTNAME\*(C'\fR symbol, +which is a command that can be fed to \fBpopen()\fR to get the host name. +The program should probably not presume that the domain is or isn't +there already. +.ie n .IP """pidtype""" 4 +.el .IP "\f(CWpidtype\fR" 4 +.IX Item "pidtype" +From \fIpidtype.U\fR: +.Sp +This variable defines \f(CW\*(C`PIDTYPE\*(C'\fR to be something like pid_t, int, +ushort, or whatever type is used to declare process ids in the kernel. +.ie n .IP """plibpth""" 4 +.el .IP "\f(CWplibpth\fR" 4 +.IX Item "plibpth" +From \fIlibpth.U\fR: +.Sp +Holds the private path used by Configure to find out the libraries. +Its value is prepend to libpth. This variable takes care of special +machines, like the mips. Usually, it should be empty. +.ie n .IP """pmake""" 4 +.el .IP "\f(CWpmake\fR" 4 +.IX Item "pmake" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """pr""" 4 +.el .IP "\f(CWpr\fR" 4 +.IX Item "pr" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """prefix""" 4 +.el .IP "\f(CWprefix\fR" 4 +.IX Item "prefix" +From \fIprefix.U\fR: +.Sp +This variable holds the name of the directory below which the +user will install the package. Usually, this is \fI/usr/local\fR, and +executables go in \fI/usr/local/bin\fR, library stuff in \fI/usr/local/lib\fR, +man pages in \fI/usr/local/man\fR, etc. It is only used to set defaults +for things in \fIbin.U\fR, \fImansrc.U\fR, \fIprivlib.U\fR, or \fIscriptdir.U\fR. +.ie n .IP """prefixexp""" 4 +.el .IP "\f(CWprefixexp\fR" 4 +.IX Item "prefixexp" +From \fIprefix.U\fR: +.Sp +This variable holds the full absolute path of the directory below +which the user will install the package. Derived from prefix. +.ie n .IP """privlib""" 4 +.el .IP "\f(CWprivlib\fR" 4 +.IX Item "privlib" +From \fIprivlib.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`PRIVLIB\*(C'\fR symbol, +which is the name of the private library for this package. It may +have a \fI~\fR on the front. It is up to the makefile to eventually create +this directory while performing installation (with \fI~\fR substitution). +.ie n .IP """privlibexp""" 4 +.el .IP "\f(CWprivlibexp\fR" 4 +.IX Item "privlibexp" +From \fIprivlib.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of privlib, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """procselfexe""" 4 +.el .IP "\f(CWprocselfexe\fR" 4 +.IX Item "procselfexe" +From \fId_procselfexe.U\fR: +.Sp +If d_procselfexe is defined, \f(CW$procselfexe\fR is the filename +of the symbolic link pointing to the absolute pathname of +the executing program. +.ie n .IP """ptrsize""" 4 +.el .IP "\f(CWptrsize\fR" 4 +.IX Item "ptrsize" +From \fIptrsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`PTRSIZE\*(C'\fR symbol, which +indicates to the C program how many bytes there are in a pointer. +.SS "q" +.IX Subsection "q" +.ie n .IP """quadkind""" 4 +.el .IP "\f(CWquadkind\fR" 4 +.IX Item "quadkind" +From \fIquadtype.U\fR: +.Sp +This variable, if defined, encodes the type of a quad: +1 = int, 2 = long, 3 = long long, 4 = int64_t. +.ie n .IP """quadtype""" 4 +.el .IP "\f(CWquadtype\fR" 4 +.IX Item "quadtype" +From \fIquadtype.U\fR: +.Sp +This variable defines Quad_t to be something like long, int, +long long, int64_t, or whatever type is used for 64\-bit integers. +.SS "r" +.IX Subsection "r" +.ie n .IP """randbits""" 4 +.el .IP "\f(CWrandbits\fR" 4 +.IX Item "randbits" +From \fIrandfunc.U\fR: +.Sp +Indicates how many bits are produced by the function used to +generate normalized random numbers. +.ie n .IP """randfunc""" 4 +.el .IP "\f(CWrandfunc\fR" 4 +.IX Item "randfunc" +From \fIrandfunc.U\fR: +.Sp +Indicates the name of the random number function to use. +Values include drand48, random, and rand. In C programs, +the \f(CW\*(C`Drand01\*(C'\fR macro is defined to generate uniformly distributed +random numbers over the range [0., 1.[ (see drand01 and nrand). +.ie n .IP """random_r_proto""" 4 +.el .IP "\f(CWrandom_r_proto\fR" 4 +.IX Item "random_r_proto" +From \fId_random_r.U\fR: +.Sp +This variable encodes the prototype of random_r. +It is zero if d_random_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_random_r +is defined. +.ie n .IP """randseedtype""" 4 +.el .IP "\f(CWrandseedtype\fR" 4 +.IX Item "randseedtype" +From \fIrandfunc.U\fR: +.Sp +Indicates the type of the argument of the seedfunc. +.ie n .IP """ranlib""" 4 +.el .IP "\f(CWranlib\fR" 4 +.IX Item "ranlib" +From \fIorderlib.U\fR: +.Sp +This variable is set to the pathname of the ranlib program, if it is +needed to generate random libraries. Set to \f(CW\*(C`:\*(C'\fR if ar can generate +random libraries or if random libraries are not supported +.ie n .IP """rd_nodata""" 4 +.el .IP "\f(CWrd_nodata\fR" 4 +.IX Item "rd_nodata" +From \fInblock_io.U\fR: +.Sp +This variable holds the return code from \fBread()\fR when no data is +present. It should be \-1, but some systems return 0 when \f(CW\*(C`O_NDELAY\*(C'\fR is +used, which is a shame because you cannot make the difference between +no data and an \fI\s-1EOF.\s0\fR. Sigh! +.ie n .IP """readdir64_r_proto""" 4 +.el .IP "\f(CWreaddir64_r_proto\fR" 4 +.IX Item "readdir64_r_proto" +From \fId_readdir64_r.U\fR: +.Sp +This variable encodes the prototype of readdir64_r. +It is zero if d_readdir64_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_readdir64_r +is defined. +.ie n .IP """readdir_r_proto""" 4 +.el .IP "\f(CWreaddir_r_proto\fR" 4 +.IX Item "readdir_r_proto" +From \fId_readdir_r.U\fR: +.Sp +This variable encodes the prototype of readdir_r. +It is zero if d_readdir_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_readdir_r +is defined. +.ie n .IP """revision""" 4 +.el .IP "\f(CWrevision\fR" 4 +.IX Item "revision" +From \fIpatchlevel.U\fR: +.Sp +The value of revision comes from the \fIpatchlevel.h\fR file. +In a version number such as 5.6.1, this is the \f(CW5\fR. +In \fIpatchlevel.h\fR, this is referred to as \f(CW\*(C`PERL_REVISION\*(C'\fR. +.ie n .IP """rm""" 4 +.el .IP "\f(CWrm\fR" 4 +.IX Item "rm" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the rm program. After Configure runs, +the value is reset to a plain \f(CW\*(C`rm\*(C'\fR and is not useful. +.ie n .IP """rm_try""" 4 +.el .IP "\f(CWrm_try\fR" 4 +.IX Item "rm_try" +From \fIUnix.U\fR: +.Sp +This is a cleanup variable for try test programs. +Internal Configure use only. +.ie n .IP """rmail""" 4 +.el .IP "\f(CWrmail\fR" 4 +.IX Item "rmail" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """run""" 4 +.el .IP "\f(CWrun\fR" 4 +.IX Item "run" +From \fICross.U\fR: +.Sp +This variable contains the command used by Configure +to copy and execute a cross-compiled executable in the +target host. Useful and available only during Perl build. +Empty string '' if not cross-compiling. +.ie n .IP """runnm""" 4 +.el .IP "\f(CWrunnm\fR" 4 +.IX Item "runnm" +From \fIusenm.U\fR: +.Sp +This variable contains \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR depending whether the +nm extraction should be performed or not, according to the value +of usenm and the flags on the Configure command line. +.SS "s" +.IX Subsection "s" +.ie n .IP """sched_yield""" 4 +.el .IP "\f(CWsched_yield\fR" 4 +.IX Item "sched_yield" +From \fId_pthread_y.U\fR: +.Sp +This variable defines the way to yield the execution +of the current thread. +.ie n .IP """scriptdir""" 4 +.el .IP "\f(CWscriptdir\fR" 4 +.IX Item "scriptdir" +From \fIscriptdir.U\fR: +.Sp +This variable holds the name of the directory in which the user wants +to put publicly scripts for the package in question. It is either +the same directory as for binaries, or a special one that can be +mounted across different architectures, like \fI/usr/share\fR. Programs +must be prepared to deal with \fI~name\fR expansion. +.ie n .IP """scriptdirexp""" 4 +.el .IP "\f(CWscriptdirexp\fR" 4 +.IX Item "scriptdirexp" +From \fIscriptdir.U\fR: +.Sp +This variable is the same as scriptdir, but is filename expanded +at configuration time, for programs not wanting to bother with it. +.ie n .IP """sed""" 4 +.el .IP "\f(CWsed\fR" 4 +.IX Item "sed" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the sed program. After Configure runs, +the value is reset to a plain \f(CW\*(C`sed\*(C'\fR and is not useful. +.ie n .IP """seedfunc""" 4 +.el .IP "\f(CWseedfunc\fR" 4 +.IX Item "seedfunc" +From \fIrandfunc.U\fR: +.Sp +Indicates the random number generating seed function. +Values include srand48, srandom, and srand. +.ie n .IP """selectminbits""" 4 +.el .IP "\f(CWselectminbits\fR" 4 +.IX Item "selectminbits" +From \fIselectminbits.U\fR: +.Sp +This variable holds the minimum number of bits operated by select. +That is, if you do select(n, ...), how many bits at least will be +cleared in the masks if some activity is detected. Usually this +is either n or 32*ceil(\fIn/32\fR), especially many little-endians do +the latter. This is only useful if you have \fBselect()\fR, naturally. +.ie n .IP """selecttype""" 4 +.el .IP "\f(CWselecttype\fR" 4 +.IX Item "selecttype" +From \fIselecttype.U\fR: +.Sp +This variable holds the type used for the 2nd, 3rd, and 4th +arguments to select. Usually, this is \f(CW\*(C`fd_set *\*(C'\fR, if \f(CW\*(C`HAS_FD_SET\*(C'\fR +is defined, and \f(CW\*(C`int *\*(C'\fR otherwise. This is only useful if you +have \fBselect()\fR, naturally. +.ie n .IP """sendmail""" 4 +.el .IP "\f(CWsendmail\fR" 4 +.IX Item "sendmail" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """setgrent_r_proto""" 4 +.el .IP "\f(CWsetgrent_r_proto\fR" 4 +.IX Item "setgrent_r_proto" +From \fId_setgrent_r.U\fR: +.Sp +This variable encodes the prototype of setgrent_r. +It is zero if d_setgrent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setgrent_r +is defined. +.ie n .IP """sethostent_r_proto""" 4 +.el .IP "\f(CWsethostent_r_proto\fR" 4 +.IX Item "sethostent_r_proto" +From \fId_sethostent_r.U\fR: +.Sp +This variable encodes the prototype of sethostent_r. +It is zero if d_sethostent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_sethostent_r +is defined. +.ie n .IP """setlocale_r_proto""" 4 +.el .IP "\f(CWsetlocale_r_proto\fR" 4 +.IX Item "setlocale_r_proto" +From \fId_setlocale_r.U\fR: +.Sp +This variable encodes the prototype of setlocale_r. +It is zero if d_setlocale_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setlocale_r +is defined. +.ie n .IP """setnetent_r_proto""" 4 +.el .IP "\f(CWsetnetent_r_proto\fR" 4 +.IX Item "setnetent_r_proto" +From \fId_setnetent_r.U\fR: +.Sp +This variable encodes the prototype of setnetent_r. +It is zero if d_setnetent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setnetent_r +is defined. +.ie n .IP """setprotoent_r_proto""" 4 +.el .IP "\f(CWsetprotoent_r_proto\fR" 4 +.IX Item "setprotoent_r_proto" +From \fId_setprotoent_r.U\fR: +.Sp +This variable encodes the prototype of setprotoent_r. +It is zero if d_setprotoent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setprotoent_r +is defined. +.ie n .IP """setpwent_r_proto""" 4 +.el .IP "\f(CWsetpwent_r_proto\fR" 4 +.IX Item "setpwent_r_proto" +From \fId_setpwent_r.U\fR: +.Sp +This variable encodes the prototype of setpwent_r. +It is zero if d_setpwent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setpwent_r +is defined. +.ie n .IP """setservent_r_proto""" 4 +.el .IP "\f(CWsetservent_r_proto\fR" 4 +.IX Item "setservent_r_proto" +From \fId_setservent_r.U\fR: +.Sp +This variable encodes the prototype of setservent_r. +It is zero if d_setservent_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_setservent_r +is defined. +.ie n .IP """sGMTIME_max""" 4 +.el .IP "\f(CWsGMTIME_max\fR" 4 +.IX Item "sGMTIME_max" +From \fItime_size.U\fR: +.Sp +This variable defines the maximum value of the time_t offset that +the system function gmtime () accepts +.ie n .IP """sGMTIME_min""" 4 +.el .IP "\f(CWsGMTIME_min\fR" 4 +.IX Item "sGMTIME_min" +From \fItime_size.U\fR: +.Sp +This variable defines the minimum value of the time_t offset that +the system function gmtime () accepts +.ie n .IP """sh""" 4 +.el .IP "\f(CWsh\fR" 4 +.IX Item "sh" +From \fIsh.U\fR: +.Sp +This variable contains the full pathname of the shell used +on this system to execute Bourne shell scripts. Usually, this will be +\&\fI/bin/sh\fR, though it's possible that some systems will have \fI/bin/ksh\fR, +\&\fI/bin/pdksh\fR, \fI/bin/ash\fR, \fI/bin/bash\fR, or even something such as +D:\fI/bin/sh.exe\fR. +This unit comes before \fIOptions.U\fR, so you can't set sh with a \f(CW\*(C`\-D\*(C'\fR +option, though you can override this (and startsh) +with \f(CW\*(C`\-O \-Dsh=\f(CI/bin/whatever\f(CW \-Dstartsh=whatever\*(C'\fR +.ie n .IP """shar""" 4 +.el .IP "\f(CWshar\fR" 4 +.IX Item "shar" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """sharpbang""" 4 +.el .IP "\f(CWsharpbang\fR" 4 +.IX Item "sharpbang" +From \fIspitshell.U\fR: +.Sp +This variable contains the string #! if this system supports that +construct. +.ie n .IP """shmattype""" 4 +.el .IP "\f(CWshmattype\fR" 4 +.IX Item "shmattype" +From \fId_shmat.U\fR: +.Sp +This symbol contains the type of pointer returned by \fBshmat()\fR. +It can be \f(CW\*(C`void *\*(C'\fR or \f(CW\*(C`char *\*(C'\fR. +.ie n .IP """shortsize""" 4 +.el .IP "\f(CWshortsize\fR" 4 +.IX Item "shortsize" +From \fIintsize.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`SHORTSIZE\*(C'\fR symbol which +indicates to the C program how many bytes there are in a short. +.ie n .IP """shrpenv""" 4 +.el .IP "\f(CWshrpenv\fR" 4 +.IX Item "shrpenv" +From \fIlibperl.U\fR: +.Sp +If the user builds a shared \fIlibperl.so\fR, then we need to tell the +\&\f(CW\*(C`perl\*(C'\fR executable where it will be able to find the installed \fIlibperl.so\fR. +One way to do this on some systems is to set the environment variable +\&\f(CW\*(C`LD_RUN_PATH\*(C'\fR to the directory that will be the final location of the +shared \fIlibperl.so\fR. The makefile can use this with something like +\&\f(CW$shrpenv\fR $(\f(CW\*(C`CC\*(C'\fR) \-o perl \fIperlmain.o\fR \f(CW$libperl\fR \f(CW$libs\fR +Typical values are +shrpenv="env \f(CW\*(C`LD_RUN_PATH\*(C'\fR=\fI\f(CI$archlibexp\fI/\f(CI\*(C`CORE\*(C'\fI\fR" +or +shrpenv='' +See the main perl \fIMakefile.SH\fR for actual working usage. +.Sp +Alternatively, we might be able to use a command line option such +as \-R \fI\f(CI$archlibexp\fI/\f(CI\*(C`CORE\*(C'\fI\fR (Solaris) or \-Wl,\-rpath +\&\fI\f(CI$archlibexp\fI/\f(CI\*(C`CORE\*(C'\fI\fR (Linux). +.ie n .IP """shsharp""" 4 +.el .IP "\f(CWshsharp\fR" 4 +.IX Item "shsharp" +From \fIspitshell.U\fR: +.Sp +This variable tells further Configure units whether your sh can +handle # comments. +.ie n .IP """sig_count""" 4 +.el .IP "\f(CWsig_count\fR" 4 +.IX Item "sig_count" +From \fIsig_name.U\fR: +.Sp +This variable holds a number larger than the largest valid +signal number. This is usually the same as the \f(CW\*(C`NSIG\*(C'\fR macro. +.ie n .IP """sig_name""" 4 +.el .IP "\f(CWsig_name\fR" 4 +.IX Item "sig_name" +From \fIsig_name.U\fR: +.Sp +This variable holds the signal names, space separated. The leading +\&\f(CW\*(C`SIG\*(C'\fR in signal name is removed. A \f(CW\*(C`ZERO\*(C'\fR is prepended to the list. +This is currently not used, sig_name_init is used instead. +.ie n .IP """sig_name_init""" 4 +.el .IP "\f(CWsig_name_init\fR" 4 +.IX Item "sig_name_init" +From \fIsig_name.U\fR: +.Sp +This variable holds the signal names, enclosed in double quotes and +separated by commas, suitable for use in the \f(CW\*(C`SIG_NAME\*(C'\fR definition +below. A \f(CW\*(C`ZERO\*(C'\fR is prepended to the list, and the list is +terminated with a plain 0. The leading \f(CW\*(C`SIG\*(C'\fR in signal names +is removed. See sig_num. +.ie n .IP """sig_num""" 4 +.el .IP "\f(CWsig_num\fR" 4 +.IX Item "sig_num" +From \fIsig_name.U\fR: +.Sp +This variable holds the signal numbers, space separated. A \f(CW\*(C`ZERO\*(C'\fR is +prepended to the list (corresponding to the fake \f(CW\*(C`SIGZERO\*(C'\fR). +Those numbers correspond to the value of the signal listed +in the same place within the sig_name list. +This is currently not used, sig_num_init is used instead. +.ie n .IP """sig_num_init""" 4 +.el .IP "\f(CWsig_num_init\fR" 4 +.IX Item "sig_num_init" +From \fIsig_name.U\fR: +.Sp +This variable holds the signal numbers, enclosed in double quotes and +separated by commas, suitable for use in the \f(CW\*(C`SIG_NUM\*(C'\fR definition +below. A \f(CW\*(C`ZERO\*(C'\fR is prepended to the list, and the list is +terminated with a plain 0. +.ie n .IP """sig_size""" 4 +.el .IP "\f(CWsig_size\fR" 4 +.IX Item "sig_size" +From \fIsig_name.U\fR: +.Sp +This variable contains the number of elements of the sig_name +and sig_num arrays. +.ie n .IP """signal_t""" 4 +.el .IP "\f(CWsignal_t\fR" 4 +.IX Item "signal_t" +From \fId_voidsig.U\fR: +.Sp +This variable holds the type of the signal handler (void or int). +.ie n .IP """sitearch""" 4 +.el .IP "\f(CWsitearch\fR" 4 +.IX Item "sitearch" +From \fIsitearch.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`SITEARCH\*(C'\fR symbol, +which is the name of the private library for this package. It may +have a \fI~\fR on the front. It is up to the makefile to eventually create +this directory while performing installation (with \fI~\fR substitution). +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +architecture-dependent modules in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitearchexp""" 4 +.el .IP "\f(CWsitearchexp\fR" 4 +.IX Item "sitearchexp" +From \fIsitearch.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of sitearch, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """sitebin""" 4 +.el .IP "\f(CWsitebin\fR" 4 +.IX Item "sitebin" +From \fIsitebin.U\fR: +.Sp +This variable holds the name of the directory in which the user wants +to put add-on publicly executable files for the package in question. It +is most often a local directory such as \fI/usr/local/bin\fR. Programs using +this variable must be prepared to deal with \fI~name\fR substitution. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +executables in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitebinexp""" 4 +.el .IP "\f(CWsitebinexp\fR" 4 +.IX Item "sitebinexp" +From \fIsitebin.U\fR: +.Sp +This is the same as the sitebin variable, but is filename expanded at +configuration time, for use in your makefiles. +.ie n .IP """sitehtml1dir""" 4 +.el .IP "\f(CWsitehtml1dir\fR" 4 +.IX Item "sitehtml1dir" +From \fIsitehtml1dir.U\fR: +.Sp +This variable contains the name of the directory in which site-specific +html source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +html pages in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitehtml1direxp""" 4 +.el .IP "\f(CWsitehtml1direxp\fR" 4 +.IX Item "sitehtml1direxp" +From \fIsitehtml1dir.U\fR: +.Sp +This variable is the same as the sitehtml1dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """sitehtml3dir""" 4 +.el .IP "\f(CWsitehtml3dir\fR" 4 +.IX Item "sitehtml3dir" +From \fIsitehtml3dir.U\fR: +.Sp +This variable contains the name of the directory in which site-specific +library html source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +library html pages in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitehtml3direxp""" 4 +.el .IP "\f(CWsitehtml3direxp\fR" 4 +.IX Item "sitehtml3direxp" +From \fIsitehtml3dir.U\fR: +.Sp +This variable is the same as the sitehtml3dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """sitelib""" 4 +.el .IP "\f(CWsitelib\fR" 4 +.IX Item "sitelib" +From \fIsitelib.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`SITELIB\*(C'\fR symbol, +which is the name of the private library for this package. It may +have a \fI~\fR on the front. It is up to the makefile to eventually create +this directory while performing installation (with \fI~\fR substitution). +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +architecture-independent modules in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitelib_stem""" 4 +.el .IP "\f(CWsitelib_stem\fR" 4 +.IX Item "sitelib_stem" +From \fIsitelib.U\fR: +.Sp +This variable is \f(CW$sitelibexp\fR with any trailing version-specific component +removed. The elements in inc_version_list (\fIinc_version_list.U\fR) can +be tacked onto this variable to generate a list of directories to search. +.ie n .IP """sitelibexp""" 4 +.el .IP "\f(CWsitelibexp\fR" 4 +.IX Item "sitelibexp" +From \fIsitelib.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of sitelib, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """siteman1dir""" 4 +.el .IP "\f(CWsiteman1dir\fR" 4 +.IX Item "siteman1dir" +From \fIsiteman1dir.U\fR: +.Sp +This variable contains the name of the directory in which site-specific +manual source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +man1 pages in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """siteman1direxp""" 4 +.el .IP "\f(CWsiteman1direxp\fR" 4 +.IX Item "siteman1direxp" +From \fIsiteman1dir.U\fR: +.Sp +This variable is the same as the siteman1dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """siteman3dir""" 4 +.el .IP "\f(CWsiteman3dir\fR" 4 +.IX Item "siteman3dir" +From \fIsiteman3dir.U\fR: +.Sp +This variable contains the name of the directory in which site-specific +library man source pages are to be put. It is the responsibility of the +\&\fIMakefile.SH\fR to get the value of this into the proper command. +You must be prepared to do the \fI~name\fR expansion yourself. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +man3 pages in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """siteman3direxp""" 4 +.el .IP "\f(CWsiteman3direxp\fR" 4 +.IX Item "siteman3direxp" +From \fIsiteman3dir.U\fR: +.Sp +This variable is the same as the siteman3dir variable, but is filename +expanded at configuration time, for convenient use in makefiles. +.ie n .IP """siteprefix""" 4 +.el .IP "\f(CWsiteprefix\fR" 4 +.IX Item "siteprefix" +From \fIsiteprefix.U\fR: +.Sp +This variable holds the full absolute path of the directory below +which the user will install add-on packages. +See \f(CW\*(C`INSTALL\*(C'\fR for usage and examples. +.ie n .IP """siteprefixexp""" 4 +.el .IP "\f(CWsiteprefixexp\fR" 4 +.IX Item "siteprefixexp" +From \fIsiteprefix.U\fR: +.Sp +This variable holds the full absolute path of the directory below +which the user will install add-on packages. Derived from siteprefix. +.ie n .IP """sitescript""" 4 +.el .IP "\f(CWsitescript\fR" 4 +.IX Item "sitescript" +From \fIsitescript.U\fR: +.Sp +This variable holds the name of the directory in which the user wants +to put add-on publicly executable files for the package in question. It +is most often a local directory such as \fI/usr/local/bin\fR. Programs using +this variable must be prepared to deal with \fI~name\fR substitution. +The standard distribution will put nothing in this directory. +After perl has been installed, users may install their own local +scripts in this directory with +MakeMaker \fIMakefile.PL\fR +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """sitescriptexp""" 4 +.el .IP "\f(CWsitescriptexp\fR" 4 +.IX Item "sitescriptexp" +From \fIsitescript.U\fR: +.Sp +This is the same as the sitescript variable, but is filename expanded at +configuration time, for use in your makefiles. +.ie n .IP """sizesize""" 4 +.el .IP "\f(CWsizesize\fR" 4 +.IX Item "sizesize" +From \fIsizesize.U\fR: +.Sp +This variable contains the size of a sizetype in bytes. +.ie n .IP """sizetype""" 4 +.el .IP "\f(CWsizetype\fR" 4 +.IX Item "sizetype" +From \fIsizetype.U\fR: +.Sp +This variable defines sizetype to be something like size_t, +unsigned long, or whatever type is used to declare length +parameters for string functions. +.ie n .IP """sleep""" 4 +.el .IP "\f(CWsleep\fR" 4 +.IX Item "sleep" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """sLOCALTIME_max""" 4 +.el .IP "\f(CWsLOCALTIME_max\fR" 4 +.IX Item "sLOCALTIME_max" +From \fItime_size.U\fR: +.Sp +This variable defines the maximum value of the time_t offset that +the system function localtime () accepts +.ie n .IP """sLOCALTIME_min""" 4 +.el .IP "\f(CWsLOCALTIME_min\fR" 4 +.IX Item "sLOCALTIME_min" +From \fItime_size.U\fR: +.Sp +This variable defines the minimum value of the time_t offset that +the system function localtime () accepts +.ie n .IP """smail""" 4 +.el .IP "\f(CWsmail\fR" 4 +.IX Item "smail" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """so""" 4 +.el .IP "\f(CWso\fR" 4 +.IX Item "so" +From \fIso.U\fR: +.Sp +This variable holds the extension used to identify shared libraries +(also known as shared objects) on the system. Usually set to \f(CW\*(C`so\*(C'\fR. +.ie n .IP """sockethdr""" 4 +.el .IP "\f(CWsockethdr\fR" 4 +.IX Item "sockethdr" +From \fId_socket.U\fR: +.Sp +This variable has any cpp \f(CW\*(C`\-I\*(C'\fR flags needed for socket support. +.ie n .IP """socketlib""" 4 +.el .IP "\f(CWsocketlib\fR" 4 +.IX Item "socketlib" +From \fId_socket.U\fR: +.Sp +This variable has the names of any libraries needed for socket support. +.ie n .IP """socksizetype""" 4 +.el .IP "\f(CWsocksizetype\fR" 4 +.IX Item "socksizetype" +From \fIsocksizetype.U\fR: +.Sp +This variable holds the type used for the size argument +for various socket calls like accept. Usual values include +socklen_t, size_t, and int. +.ie n .IP """sort""" 4 +.el .IP "\f(CWsort\fR" 4 +.IX Item "sort" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the sort program. After Configure runs, +the value is reset to a plain \f(CW\*(C`sort\*(C'\fR and is not useful. +.ie n .IP """spackage""" 4 +.el .IP "\f(CWspackage\fR" 4 +.IX Item "spackage" +From \fIpackage.U\fR: +.Sp +This variable contains the name of the package being constructed, +with the first letter uppercased, \fIi.e\fR. suitable for starting +sentences. +.ie n .IP """spitshell""" 4 +.el .IP "\f(CWspitshell\fR" 4 +.IX Item "spitshell" +From \fIspitshell.U\fR: +.Sp +This variable contains the command necessary to spit out a runnable +shell on this system. It is either cat or a grep \f(CW\*(C`\-v\*(C'\fR for # comments. +.ie n .IP """sPRId64""" 4 +.el .IP "\f(CWsPRId64\fR" 4 +.IX Item "sPRId64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit decimal numbers (format \f(CW\*(C`d\*(C'\fR) for output. +.ie n .IP """sPRIeldbl""" 4 +.el .IP "\f(CWsPRIeldbl\fR" 4 +.IX Item "sPRIeldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`e\*(C'\fR) for output. +.ie n .IP """sPRIEUldbl""" 4 +.el .IP "\f(CWsPRIEUldbl\fR" 4 +.IX Item "sPRIEUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`E\*(C'\fR) for output. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from sPRIeldbl so that even +case-blind systems can see the difference. +.ie n .IP """sPRIfldbl""" 4 +.el .IP "\f(CWsPRIfldbl\fR" 4 +.IX Item "sPRIfldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`f\*(C'\fR) for output. +.ie n .IP """sPRIFUldbl""" 4 +.el .IP "\f(CWsPRIFUldbl\fR" 4 +.IX Item "sPRIFUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`F\*(C'\fR) for output. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from sPRIfldbl so that even +case-blind systems can see the difference. +.ie n .IP """sPRIgldbl""" 4 +.el .IP "\f(CWsPRIgldbl\fR" 4 +.IX Item "sPRIgldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`g\*(C'\fR) for output. +.ie n .IP """sPRIGUldbl""" 4 +.el .IP "\f(CWsPRIGUldbl\fR" 4 +.IX Item "sPRIGUldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`G\*(C'\fR) for output. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from sPRIgldbl so that even +case-blind systems can see the difference. +.ie n .IP """sPRIi64""" 4 +.el .IP "\f(CWsPRIi64\fR" 4 +.IX Item "sPRIi64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit decimal numbers (format \f(CW\*(C`i\*(C'\fR) for output. +.ie n .IP """sPRIo64""" 4 +.el .IP "\f(CWsPRIo64\fR" 4 +.IX Item "sPRIo64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit octal numbers (format \f(CW\*(C`o\*(C'\fR) for output. +.ie n .IP """sPRIu64""" 4 +.el .IP "\f(CWsPRIu64\fR" 4 +.IX Item "sPRIu64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit unsigned decimal numbers (format \f(CW\*(C`u\*(C'\fR) for output. +.ie n .IP """sPRIx64""" 4 +.el .IP "\f(CWsPRIx64\fR" 4 +.IX Item "sPRIx64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit hexadecimal numbers (format \f(CW\*(C`x\*(C'\fR) for output. +.ie n .IP """sPRIXU64""" 4 +.el .IP "\f(CWsPRIXU64\fR" 4 +.IX Item "sPRIXU64" +From \fIquadfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format 64\-bit hExADECimAl numbers (format \f(CW\*(C`X\*(C'\fR) for output. +The \f(CW\*(C`U\*(C'\fR in the name is to separate this from sPRIx64 so that even +case-blind systems can see the difference. +.ie n .IP """srand48_r_proto""" 4 +.el .IP "\f(CWsrand48_r_proto\fR" 4 +.IX Item "srand48_r_proto" +From \fId_srand48_r.U\fR: +.Sp +This variable encodes the prototype of srand48_r. +It is zero if d_srand48_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_srand48_r +is defined. +.ie n .IP """srandom_r_proto""" 4 +.el .IP "\f(CWsrandom_r_proto\fR" 4 +.IX Item "srandom_r_proto" +From \fId_srandom_r.U\fR: +.Sp +This variable encodes the prototype of srandom_r. +It is zero if d_srandom_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_srandom_r +is defined. +.ie n .IP """src""" 4 +.el .IP "\f(CWsrc\fR" 4 +.IX Item "src" +From \fIsrc.U\fR: +.Sp +This variable holds the (possibly relative) path of the package source. +It is up to the Makefile to use this variable and set \f(CW\*(C`VPATH\*(C'\fR accordingly +to find the sources remotely. Use \f(CW$pkgsrc\fR to have an absolute path. +.ie n .IP """sSCNfldbl""" 4 +.el .IP "\f(CWsSCNfldbl\fR" 4 +.IX Item "sSCNfldbl" +From \fIlongdblfio.U\fR: +.Sp +This variable, if defined, contains the string used by stdio to +format long doubles (format \f(CW\*(C`f\*(C'\fR) for input. +.ie n .IP """ssizetype""" 4 +.el .IP "\f(CWssizetype\fR" 4 +.IX Item "ssizetype" +From \fIssizetype.U\fR: +.Sp +This variable defines ssizetype to be something like ssize_t, +long or int. It is used by functions that return a count +of bytes or an error condition. It must be a signed type. +We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). +.ie n .IP """st_ino_sign""" 4 +.el .IP "\f(CWst_ino_sign\fR" 4 +.IX Item "st_ino_sign" +From \fIst_ino_def.U\fR: +.Sp +This variable contains the signedness of struct stat's st_ino. +1 for unsigned, \-1 for signed. +.ie n .IP """st_ino_size""" 4 +.el .IP "\f(CWst_ino_size\fR" 4 +.IX Item "st_ino_size" +From \fIst_ino_def.U\fR: +.Sp +This variable contains the size of struct stat's st_ino in bytes. +.ie n .IP """startperl""" 4 +.el .IP "\f(CWstartperl\fR" 4 +.IX Item "startperl" +From \fIstartperl.U\fR: +.Sp +This variable contains the string to put on the front of a perl +script to make sure (hopefully) that it runs with perl and not some +shell. Of course, that leading line must be followed by the classical +perl idiom: +eval 'exec perl \-S \f(CW$0\fR ${1+\f(CW$@\fR}' +if \f(CW$running_under_some_shell\fR; +to guarantee perl startup should the shell execute the script. Note +that this magic incantation is not understood by csh. +.ie n .IP """startsh""" 4 +.el .IP "\f(CWstartsh\fR" 4 +.IX Item "startsh" +From \fIstartsh.U\fR: +.Sp +This variable contains the string to put on the front of a shell +script to make sure (hopefully) that it runs with sh and not some +other shell. +.ie n .IP """static_ext""" 4 +.el .IP "\f(CWstatic_ext\fR" 4 +.IX Item "static_ext" +From \fIExtensions.U\fR: +.Sp +This variable holds a list of \f(CW\*(C`XS\*(C'\fR extension files we want to +link statically into the package. It is used by Makefile. +.ie n .IP """stdchar""" 4 +.el .IP "\f(CWstdchar\fR" 4 +.IX Item "stdchar" +From \fIstdchar.U\fR: +.Sp +This variable conditionally defines \f(CW\*(C`STDCHAR\*(C'\fR to be the type of char +used in \fIstdio.h\fR. It has the values \*(L"unsigned char\*(R" or \f(CW\*(C`char\*(C'\fR. +.ie n .IP """stdio_base""" 4 +.el .IP "\f(CWstdio_base\fR" 4 +.IX Item "stdio_base" +From \fId_stdstdio.U\fR: +.Sp +This variable defines how, given a \f(CW\*(C`FILE\*(C'\fR pointer, fp, to access the +_base field (or equivalent) of \fIstdio.h\fR's \f(CW\*(C`FILE\*(C'\fR structure. This will +be used to define the macro FILE_base(fp). +.ie n .IP """stdio_bufsiz""" 4 +.el .IP "\f(CWstdio_bufsiz\fR" 4 +.IX Item "stdio_bufsiz" +From \fId_stdstdio.U\fR: +.Sp +This variable defines how, given a \f(CW\*(C`FILE\*(C'\fR pointer, fp, to determine +the number of bytes store in the I/O buffer pointer to by the +_base field (or equivalent) of \fIstdio.h\fR's \f(CW\*(C`FILE\*(C'\fR structure. This will +be used to define the macro FILE_bufsiz(fp). +.ie n .IP """stdio_cnt""" 4 +.el .IP "\f(CWstdio_cnt\fR" 4 +.IX Item "stdio_cnt" +From \fId_stdstdio.U\fR: +.Sp +This variable defines how, given a \f(CW\*(C`FILE\*(C'\fR pointer, fp, to access the +_cnt field (or equivalent) of \fIstdio.h\fR's \f(CW\*(C`FILE\*(C'\fR structure. This will +be used to define the macro FILE_cnt(fp). +.ie n .IP """stdio_filbuf""" 4 +.el .IP "\f(CWstdio_filbuf\fR" 4 +.IX Item "stdio_filbuf" +From \fId_stdstdio.U\fR: +.Sp +This variable defines how, given a \f(CW\*(C`FILE\*(C'\fR pointer, fp, to tell +stdio to refill its internal buffers (?). This will +be used to define the macro FILE_filbuf(fp). +.ie n .IP """stdio_ptr""" 4 +.el .IP "\f(CWstdio_ptr\fR" 4 +.IX Item "stdio_ptr" +From \fId_stdstdio.U\fR: +.Sp +This variable defines how, given a \f(CW\*(C`FILE\*(C'\fR pointer, fp, to access the +_ptr field (or equivalent) of \fIstdio.h\fR's \f(CW\*(C`FILE\*(C'\fR structure. This will +be used to define the macro FILE_ptr(fp). +.ie n .IP """stdio_stream_array""" 4 +.el .IP "\f(CWstdio_stream_array\fR" 4 +.IX Item "stdio_stream_array" +From \fIstdio_streams.U\fR: +.Sp +This variable tells the name of the array holding the stdio streams. +Usual values include _iob, _\|_iob, and _\|_sF. +.ie n .IP """strerror_r_proto""" 4 +.el .IP "\f(CWstrerror_r_proto\fR" 4 +.IX Item "strerror_r_proto" +From \fId_strerror_r.U\fR: +.Sp +This variable encodes the prototype of strerror_r. +It is zero if d_strerror_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_strerror_r +is defined. +.ie n .IP """submit""" 4 +.el .IP "\f(CWsubmit\fR" 4 +.IX Item "submit" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """subversion""" 4 +.el .IP "\f(CWsubversion\fR" 4 +.IX Item "subversion" +From \fIpatchlevel.U\fR: +.Sp +The subversion level of this package. +The value of subversion comes from the \fIpatchlevel.h\fR file. +In a version number such as 5.6.1, this is the \f(CW1\fR. +In \fIpatchlevel.h\fR, this is referred to as \f(CW\*(C`PERL_SUBVERSION\*(C'\fR. +This is unique to perl. +.ie n .IP """sysman""" 4 +.el .IP "\f(CWsysman\fR" 4 +.IX Item "sysman" +From \fIsysman.U\fR: +.Sp +This variable holds the place where the manual is located on this +system. It is not the place where the user wants to put his manual +pages. Rather it is the place where Configure may look to find manual +for unix commands (section 1 of the manual usually). See mansrc. +.ie n .IP """sysroot""" 4 +.el .IP "\f(CWsysroot\fR" 4 +.IX Item "sysroot" +From \fISysroot.U\fR: +.Sp +This variable is empty unless supplied by the Configure user. +It can contain a path to an alternative root directory, under which +headers and libraries for the compilation target can be found. This +is generally used when cross-compiling using a gcc-like compiler. +.SS "t" +.IX Subsection "t" +.ie n .IP """tail""" 4 +.el .IP "\f(CWtail\fR" 4 +.IX Item "tail" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """tar""" 4 +.el .IP "\f(CWtar\fR" 4 +.IX Item "tar" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """targetarch""" 4 +.el .IP "\f(CWtargetarch\fR" 4 +.IX Item "targetarch" +From \fICross.U\fR: +.Sp +If cross-compiling, this variable contains the target architecture. +If not, this will be empty. +.ie n .IP """targetdir""" 4 +.el .IP "\f(CWtargetdir\fR" 4 +.IX Item "targetdir" +From \fICross.U\fR: +.Sp +This variable contains a path that will be created on the target +host using targetmkdir, and then used to copy the cross-compiled +executables to. Defaults to \fI/tmp\fR if not set. +.ie n .IP """targetenv""" 4 +.el .IP "\f(CWtargetenv\fR" 4 +.IX Item "targetenv" +From \fICross.U\fR: +.Sp +If cross-compiling, this variable can be used to modify the +environment on the target system. +However, how and where it's used, and even if it's used at all, is +entirely dependent on both the transport mechanism (targetrun) and +what the target system is. Unless the relevant documentation says +otherwise, it is genereally not useful. +.ie n .IP """targethost""" 4 +.el .IP "\f(CWtargethost\fR" 4 +.IX Item "targethost" +From \fICross.U\fR: +.Sp +This variable contains the name of a separate host machine that +can be used to run compiled test programs and perl tests on. +Set to empty string if not in use. +.ie n .IP """targetmkdir""" 4 +.el .IP "\f(CWtargetmkdir\fR" 4 +.IX Item "targetmkdir" +From \fICross.U\fR: +.Sp +This variable contains the command used by Configure to create a +new directory on the target host. +.ie n .IP """targetport""" 4 +.el .IP "\f(CWtargetport\fR" 4 +.IX Item "targetport" +From \fICross.U\fR: +.Sp +This variable contains the number of a network port to be used to +connect to the host in targethost, if unset defaults to 22 for ssh. +.ie n .IP """targetsh""" 4 +.el .IP "\f(CWtargetsh\fR" 4 +.IX Item "targetsh" +From \fIsh.U\fR: +.Sp +If cross-compiling, this variable contains the location of sh on the +target system. +If not, this will be the same as \f(CW$sh\fR. +.ie n .IP """tbl""" 4 +.el .IP "\f(CWtbl\fR" 4 +.IX Item "tbl" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """tee""" 4 +.el .IP "\f(CWtee\fR" 4 +.IX Item "tee" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """test""" 4 +.el .IP "\f(CWtest\fR" 4 +.IX Item "test" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the test program. After Configure runs, +the value is reset to a plain \f(CW\*(C`test\*(C'\fR and is not useful. +.ie n .IP """timeincl""" 4 +.el .IP "\f(CWtimeincl\fR" 4 +.IX Item "timeincl" +From \fIi_time.U\fR: +.Sp +This variable holds the full path of the included time header(s). +.ie n .IP """timetype""" 4 +.el .IP "\f(CWtimetype\fR" 4 +.IX Item "timetype" +From \fId_time.U\fR: +.Sp +This variable holds the type returned by \fBtime()\fR. It can be long, +or time_t on \f(CW\*(C`BSD\*(C'\fR sites (in which case should be +included). Anyway, the type Time_t should be used. +.ie n .IP """tmpnam_r_proto""" 4 +.el .IP "\f(CWtmpnam_r_proto\fR" 4 +.IX Item "tmpnam_r_proto" +From \fId_tmpnam_r.U\fR: +.Sp +This variable encodes the prototype of tmpnam_r. +It is zero if d_tmpnam_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_tmpnam_r +is defined. +.ie n .IP """to""" 4 +.el .IP "\f(CWto\fR" 4 +.IX Item "to" +From \fICross.U\fR: +.Sp +This variable contains the command used by Configure +to copy to from the target host. Useful and available +only during Perl build. +The string \f(CW\*(C`:\*(C'\fR if not cross-compiling. +.ie n .IP """touch""" 4 +.el .IP "\f(CWtouch\fR" 4 +.IX Item "touch" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the touch program. After Configure runs, +the value is reset to a plain \f(CW\*(C`touch\*(C'\fR and is not useful. +.ie n .IP """tr""" 4 +.el .IP "\f(CWtr\fR" 4 +.IX Item "tr" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the tr program. After Configure runs, +the value is reset to a plain \f(CW\*(C`tr\*(C'\fR and is not useful. +.ie n .IP """trnl""" 4 +.el .IP "\f(CWtrnl\fR" 4 +.IX Item "trnl" +From \fItrnl.U\fR: +.Sp +This variable contains the value to be passed to the \fBtr\fR\|(1) +command to transliterate a newline. Typical values are +\&\f(CW\*(C`\e012\*(C'\fR and \f(CW\*(C`\en\*(C'\fR. This is needed for \f(CW\*(C`EBCDIC\*(C'\fR systems where +newline is not necessarily \f(CW\*(C`\e012\*(C'\fR. +.ie n .IP """troff""" 4 +.el .IP "\f(CWtroff\fR" 4 +.IX Item "troff" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """ttyname_r_proto""" 4 +.el .IP "\f(CWttyname_r_proto\fR" 4 +.IX Item "ttyname_r_proto" +From \fId_ttyname_r.U\fR: +.Sp +This variable encodes the prototype of ttyname_r. +It is zero if d_ttyname_r is undef, and one of the +\&\f(CW\*(C`REENTRANT_PROTO_T_ABC\*(C'\fR macros of \fIreentr.h\fR if d_ttyname_r +is defined. +.SS "u" +.IX Subsection "u" +.ie n .IP """u16size""" 4 +.el .IP "\f(CWu16size\fR" 4 +.IX Item "u16size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an U16 in bytes. +.ie n .IP """u16type""" 4 +.el .IP "\f(CWu16type\fR" 4 +.IX Item "u16type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's U16. +.ie n .IP """u32size""" 4 +.el .IP "\f(CWu32size\fR" 4 +.IX Item "u32size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an U32 in bytes. +.ie n .IP """u32type""" 4 +.el .IP "\f(CWu32type\fR" 4 +.IX Item "u32type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's U32. +.ie n .IP """u64size""" 4 +.el .IP "\f(CWu64size\fR" 4 +.IX Item "u64size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an U64 in bytes. +.ie n .IP """u64type""" 4 +.el .IP "\f(CWu64type\fR" 4 +.IX Item "u64type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's U64. +.ie n .IP """u8size""" 4 +.el .IP "\f(CWu8size\fR" 4 +.IX Item "u8size" +From \fIperlxv.U\fR: +.Sp +This variable is the size of an U8 in bytes. +.ie n .IP """u8type""" 4 +.el .IP "\f(CWu8type\fR" 4 +.IX Item "u8type" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's U8. +.ie n .IP """uidformat""" 4 +.el .IP "\f(CWuidformat\fR" 4 +.IX Item "uidformat" +From \fIuidf.U\fR: +.Sp +This variable contains the format string used for printing a Uid_t. +.ie n .IP """uidsign""" 4 +.el .IP "\f(CWuidsign\fR" 4 +.IX Item "uidsign" +From \fIuidsign.U\fR: +.Sp +This variable contains the signedness of a uidtype. +1 for unsigned, \-1 for signed. +.ie n .IP """uidsize""" 4 +.el .IP "\f(CWuidsize\fR" 4 +.IX Item "uidsize" +From \fIuidsize.U\fR: +.Sp +This variable contains the size of a uidtype in bytes. +.ie n .IP """uidtype""" 4 +.el .IP "\f(CWuidtype\fR" 4 +.IX Item "uidtype" +From \fIuidtype.U\fR: +.Sp +This variable defines Uid_t to be something like uid_t, int, +ushort, or whatever type is used to declare user ids in the kernel. +.ie n .IP """uname""" 4 +.el .IP "\f(CWuname\fR" 4 +.IX Item "uname" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the uname program. After Configure runs, +the value is reset to a plain \f(CW\*(C`uname\*(C'\fR and is not useful. +.ie n .IP """uniq""" 4 +.el .IP "\f(CWuniq\fR" 4 +.IX Item "uniq" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the uniq program. After Configure runs, +the value is reset to a plain \f(CW\*(C`uniq\*(C'\fR and is not useful. +.ie n .IP """uquadtype""" 4 +.el .IP "\f(CWuquadtype\fR" 4 +.IX Item "uquadtype" +From \fIquadtype.U\fR: +.Sp +This variable defines Uquad_t to be something like unsigned long, +unsigned int, unsigned long long, uint64_t, or whatever type is +used for 64\-bit integers. +.ie n .IP """use5005threads""" 4 +.el .IP "\f(CWuse5005threads\fR" 4 +.IX Item "use5005threads" +From \fIusethreads.U\fR: +.Sp +This variable conditionally defines the \s-1USE_5005THREADS\s0 symbol, +and indicates that Perl should be built to use the 5.005\-based +threading implementation. Only valid up to 5.8.x. +.ie n .IP """use64bitall""" 4 +.el .IP "\f(CWuse64bitall\fR" 4 +.IX Item "use64bitall" +From \fIuse64bits.U\fR: +.Sp +This variable conditionally defines the \s-1USE_64_BIT_ALL\s0 symbol, +and indicates that 64\-bit integer types should be used +when available. The maximal possible +64\-bitness is employed: \s-1LP64\s0 or \s-1ILP64,\s0 meaning that you will +be able to use more than 2 gigabytes of memory. This mode is +even more binary incompatible than \s-1USE_64_BIT_INT.\s0 You may not +be able to run the resulting executable in a 32\-bit \f(CW\*(C`CPU\*(C'\fR at all or +you may need at least to reboot your \f(CW\*(C`OS\*(C'\fR to 64\-bit mode. +.ie n .IP """use64bitint""" 4 +.el .IP "\f(CWuse64bitint\fR" 4 +.IX Item "use64bitint" +From \fIuse64bits.U\fR: +.Sp +This variable conditionally defines the \s-1USE_64_BIT_INT\s0 symbol, +and indicates that 64\-bit integer types should be used +when available. The minimal possible 64\-bitness +is employed, just enough to get 64\-bit integers into Perl. +This may mean using for example \*(L"long longs\*(R", while your memory +may still be limited to 2 gigabytes. +.ie n .IP """usecbacktrace""" 4 +.el .IP "\f(CWusecbacktrace\fR" 4 +.IX Item "usecbacktrace" +From \fIusebacktrace.U\fR: +.Sp +This variable indicates whether we are compiling with backtrace +support. +.ie n .IP """usecrosscompile""" 4 +.el .IP "\f(CWusecrosscompile\fR" 4 +.IX Item "usecrosscompile" +From \fICross.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_CROSS_COMPILE\*(C'\fR symbol, +and indicates that Perl has been cross-compiled. +.ie n .IP """usedevel""" 4 +.el .IP "\f(CWusedevel\fR" 4 +.IX Item "usedevel" +From \fIDevel.U\fR: +.Sp +This variable indicates that Perl was configured with development +features enabled. This should not be done for production builds. +.ie n .IP """usedl""" 4 +.el .IP "\f(CWusedl\fR" 4 +.IX Item "usedl" +From \fIdlsrc.U\fR: +.Sp +This variable indicates if the system supports dynamic +loading of some sort. See also dlsrc and dlobj. +.ie n .IP """usedtrace""" 4 +.el .IP "\f(CWusedtrace\fR" 4 +.IX Item "usedtrace" +From \fIusedtrace.U\fR: +.Sp +This variable indicates whether we are compiling with dtrace +support. See also dtrace. +.ie n .IP """usefaststdio""" 4 +.el .IP "\f(CWusefaststdio\fR" 4 +.IX Item "usefaststdio" +From \fIusefaststdio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_FAST_STDIO\*(C'\fR symbol, +and indicates that Perl should be built to use \f(CW\*(C`fast stdio\*(C'\fR. +Defaults to define in Perls 5.8 and earlier, to undef later. +.ie n .IP """useithreads""" 4 +.el .IP "\f(CWuseithreads\fR" 4 +.IX Item "useithreads" +From \fIusethreads.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_ITHREADS\*(C'\fR symbol, +and indicates that Perl should be built to use the interpreter-based +threading implementation. +.ie n .IP """usekernprocpathname""" 4 +.el .IP "\f(CWusekernprocpathname\fR" 4 +.IX Item "usekernprocpathname" +From \fIusekernprocpathname.U\fR: +.Sp +This variable, indicates that we can use sysctl with +\&\f(CW\*(C`KERN_PROC_PATHNAME\*(C'\fR to get a full path for the executable, and hence +convert $^X to an absolute path. +.ie n .IP """uselanginfo""" 4 +.el .IP "\f(CWuselanginfo\fR" 4 +.IX Item "uselanginfo" +From \fIExtensions.U\fR: +.Sp +This variable holds either \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR to indicate +whether the I18N::Langinfo extension should be used. The sole +use for this currently is to allow an easy mechanism for users to skip +this extension from the Configure command line. +.ie n .IP """uselargefiles""" 4 +.el .IP "\f(CWuselargefiles\fR" 4 +.IX Item "uselargefiles" +From \fIuselfs.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_LARGE_FILES\*(C'\fR symbol, +and indicates that large file interfaces should be used when +available. +.ie n .IP """uselongdouble""" 4 +.el .IP "\f(CWuselongdouble\fR" 4 +.IX Item "uselongdouble" +From \fIuselongdbl.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_LONG_DOUBLE\*(C'\fR symbol, +and indicates that long doubles should be used when available. +.ie n .IP """usemallocwrap""" 4 +.el .IP "\f(CWusemallocwrap\fR" 4 +.IX Item "usemallocwrap" +From \fImallocsrc.U\fR: +.Sp +This variable contains y if we are wrapping malloc to prevent +integer overflow during size calculations. +.ie n .IP """usemorebits""" 4 +.el .IP "\f(CWusemorebits\fR" 4 +.IX Item "usemorebits" +From \fIusemorebits.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_MORE_BITS\*(C'\fR symbol, +and indicates that explicit 64\-bit interfaces and long doubles +should be used when available. +.ie n .IP """usemultiplicity""" 4 +.el .IP "\f(CWusemultiplicity\fR" 4 +.IX Item "usemultiplicity" +From \fIusemultiplicity.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`MULTIPLICITY\*(C'\fR symbol, +and indicates that Perl should be built to use multiplicity. +.ie n .IP """usemymalloc""" 4 +.el .IP "\f(CWusemymalloc\fR" 4 +.IX Item "usemymalloc" +From \fImallocsrc.U\fR: +.Sp +This variable contains y if the malloc that comes with this package +is desired over the system's version of malloc. People often include +special versions of malloc for efficiency, but such versions are often +less portable. See also mallocsrc and mallocobj. +If this is \f(CW\*(C`y\*(C'\fR, then \-lmalloc is removed from \f(CW$libs\fR. +.ie n .IP """usenm""" 4 +.el .IP "\f(CWusenm\fR" 4 +.IX Item "usenm" +From \fIusenm.U\fR: +.Sp +This variable contains \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR depending whether the +nm extraction is wanted or not. +.ie n .IP """usensgetexecutablepath""" 4 +.el .IP "\f(CWusensgetexecutablepath\fR" 4 +.IX Item "usensgetexecutablepath" +From \fIusensgetexecutablepath.U\fR: +.Sp +This symbol, if defined, indicates that we can use _NSGetExecutablePath +and realpath to get a full path for the executable, and hence convert +$^X to an absolute path. +.ie n .IP """useopcode""" 4 +.el .IP "\f(CWuseopcode\fR" 4 +.IX Item "useopcode" +From \fIExtensions.U\fR: +.Sp +This variable holds either \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR to indicate +whether the Opcode extension should be used. The sole +use for this currently is to allow an easy mechanism +for users to skip the Opcode extension from the Configure +command line. +.ie n .IP """useperlio""" 4 +.el .IP "\f(CWuseperlio\fR" 4 +.IX Item "useperlio" +From \fIuseperlio.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_PERLIO\*(C'\fR symbol, +and indicates that the PerlIO abstraction should be +used throughout. +.ie n .IP """useposix""" 4 +.el .IP "\f(CWuseposix\fR" 4 +.IX Item "useposix" +From \fIExtensions.U\fR: +.Sp +This variable holds either \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR to indicate +whether the \f(CW\*(C`POSIX\*(C'\fR extension should be used. The sole +use for this currently is to allow an easy mechanism +for hints files to indicate that \f(CW\*(C`POSIX\*(C'\fR will not compile +on a particular system. +.ie n .IP """usequadmath""" 4 +.el .IP "\f(CWusequadmath\fR" 4 +.IX Item "usequadmath" +From \fIusequadmath.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_QUADMATH\*(C'\fR symbol, +and indicates that the quadmath library _\|_float128 long doubles +should be used when available. +.ie n .IP """usereentrant""" 4 +.el .IP "\f(CWusereentrant\fR" 4 +.IX Item "usereentrant" +From \fIusethreads.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_REENTRANT_API\*(C'\fR symbol, +which indicates that the thread code may try to use the various +_r versions of library functions. This is only potentially +meaningful if usethreads is set and is very experimental, it is +not even prompted for. +.ie n .IP """userelocatableinc""" 4 +.el .IP "\f(CWuserelocatableinc\fR" 4 +.IX Item "userelocatableinc" +From \fIbin.U\fR: +.Sp +This variable is set to true to indicate that perl should relocate +@\f(CW\*(C`INC\*(C'\fR entries at runtime based on the path to the perl binary. +Any @\f(CW\*(C`INC\*(C'\fR paths starting \fI.../\fR are relocated relative to the directory +containing the perl binary, and a logical cleanup of the path is then +made around the join point (removing \fIdir/../\fR pairs) +.ie n .IP """useshrplib""" 4 +.el .IP "\f(CWuseshrplib\fR" 4 +.IX Item "useshrplib" +From \fIlibperl.U\fR: +.Sp +This variable is set to \f(CW\*(C`true\*(C'\fR if the user wishes +to build a shared libperl, and \f(CW\*(C`false\*(C'\fR otherwise. +.ie n .IP """usesitecustomize""" 4 +.el .IP "\f(CWusesitecustomize\fR" 4 +.IX Item "usesitecustomize" +From \fId_sitecustomize.U\fR: +.Sp +This variable is set to true when the user requires a mechanism that +allows the sysadmin to add entries to @\f(CW\*(C`INC\*(C'\fR at runtime. This variable +being set, makes perl run \fI\f(CI$sitelib\fI/sitecustomize.pl\fR at startup. +.ie n .IP """usesocks""" 4 +.el .IP "\f(CWusesocks\fR" 4 +.IX Item "usesocks" +From \fIusesocks.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_SOCKS\*(C'\fR symbol, +and indicates that Perl should be built to use \f(CW\*(C`SOCKS\*(C'\fR. +.ie n .IP """usethreads""" 4 +.el .IP "\f(CWusethreads\fR" 4 +.IX Item "usethreads" +From \fIusethreads.U\fR: +.Sp +This variable conditionally defines the \f(CW\*(C`USE_THREADS\*(C'\fR symbol, +and indicates that Perl should be built to use threads. +.ie n .IP """usevendorprefix""" 4 +.el .IP "\f(CWusevendorprefix\fR" 4 +.IX Item "usevendorprefix" +From \fIvendorprefix.U\fR: +.Sp +This variable tells whether the vendorprefix +and consequently other vendor* paths are in use. +.ie n .IP """useversionedarchname""" 4 +.el .IP "\f(CWuseversionedarchname\fR" 4 +.IX Item "useversionedarchname" +From \fIarchname.U\fR: +.Sp +This variable indicates whether to include the \f(CW$api_versionstring\fR +as a component of the \f(CW$archname\fR. +.ie n .IP """usevfork""" 4 +.el .IP "\f(CWusevfork\fR" 4 +.IX Item "usevfork" +From \fId_vfork.U\fR: +.Sp +This variable is set to true when the user accepts to use vfork. +It is set to false when no vfork is available or when the user +explicitly requests not to use vfork. +.ie n .IP """usrinc""" 4 +.el .IP "\f(CWusrinc\fR" 4 +.IX Item "usrinc" +From \fIusrinc.U\fR: +.Sp +This variable holds the path of the include files, which is +usually \fI/usr/include\fR. It is mainly used by other Configure units. +.ie n .IP """uuname""" 4 +.el .IP "\f(CWuuname\fR" 4 +.IX Item "uuname" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """uvoformat""" 4 +.el .IP "\f(CWuvoformat\fR" 4 +.IX Item "uvoformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`UV\*(C'\fR as an unsigned octal integer. +.ie n .IP """uvsize""" 4 +.el .IP "\f(CWuvsize\fR" 4 +.IX Item "uvsize" +From \fIperlxv.U\fR: +.Sp +This variable is the size of a \f(CW\*(C`UV\*(C'\fR in bytes. +.ie n .IP """uvtype""" 4 +.el .IP "\f(CWuvtype\fR" 4 +.IX Item "uvtype" +From \fIperlxv.U\fR: +.Sp +This variable contains the C type used for Perl's \f(CW\*(C`UV\*(C'\fR. +.ie n .IP """uvuformat""" 4 +.el .IP "\f(CWuvuformat\fR" 4 +.IX Item "uvuformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`UV\*(C'\fR as an unsigned decimal integer. +.ie n .IP """uvxformat""" 4 +.el .IP "\f(CWuvxformat\fR" 4 +.IX Item "uvxformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`UV\*(C'\fR as an unsigned hexadecimal integer in lowercase abcdef. +.ie n .IP """uvXUformat""" 4 +.el .IP "\f(CWuvXUformat\fR" 4 +.IX Item "uvXUformat" +From \fIperlxvf.U\fR: +.Sp +This variable contains the format string used for printing +a Perl \f(CW\*(C`UV\*(C'\fR as an unsigned hexadecimal integer in uppercase \f(CW\*(C`ABCDEF\*(C'\fR. +.SS "v" +.IX Subsection "v" +.ie n .IP """vendorarch""" 4 +.el .IP "\f(CWvendorarch\fR" 4 +.IX Item "vendorarch" +From \fIvendorarch.U\fR: +.Sp +This variable contains the value of the \f(CW\*(C`PERL_VENDORARCH\*(C'\fR symbol. +It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +architecture-dependent modules and extensions in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorarchexp""" 4 +.el .IP "\f(CWvendorarchexp\fR" 4 +.IX Item "vendorarchexp" +From \fIvendorarch.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorarch, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorbin""" 4 +.el .IP "\f(CWvendorbin\fR" 4 +.IX Item "vendorbin" +From \fIvendorbin.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`VENDORBIN\*(C'\fR symbol. +It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place additional +binaries in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorbinexp""" 4 +.el .IP "\f(CWvendorbinexp\fR" 4 +.IX Item "vendorbinexp" +From \fIvendorbin.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorbin, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorhtml1dir""" 4 +.el .IP "\f(CWvendorhtml1dir\fR" 4 +.IX Item "vendorhtml1dir" +From \fIvendorhtml1dir.U\fR: +.Sp +This variable contains the name of the directory for html +pages. It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +html pages in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorhtml1direxp""" 4 +.el .IP "\f(CWvendorhtml1direxp\fR" 4 +.IX Item "vendorhtml1direxp" +From \fIvendorhtml1dir.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorhtml1dir, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorhtml3dir""" 4 +.el .IP "\f(CWvendorhtml3dir\fR" 4 +.IX Item "vendorhtml3dir" +From \fIvendorhtml3dir.U\fR: +.Sp +This variable contains the name of the directory for html +library pages. It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +html pages for modules and extensions in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorhtml3direxp""" 4 +.el .IP "\f(CWvendorhtml3direxp\fR" 4 +.IX Item "vendorhtml3direxp" +From \fIvendorhtml3dir.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorhtml3dir, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorlib""" 4 +.el .IP "\f(CWvendorlib\fR" 4 +.IX Item "vendorlib" +From \fIvendorlib.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`VENDORLIB\*(C'\fR symbol, +which is the name of the private library for this package. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +modules in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorlib_stem""" 4 +.el .IP "\f(CWvendorlib_stem\fR" 4 +.IX Item "vendorlib_stem" +From \fIvendorlib.U\fR: +.Sp +This variable is \f(CW$vendorlibexp\fR with any trailing version-specific component +removed. The elements in inc_version_list (\fIinc_version_list.U\fR) can +be tacked onto this variable to generate a list of directories to search. +.ie n .IP """vendorlibexp""" 4 +.el .IP "\f(CWvendorlibexp\fR" 4 +.IX Item "vendorlibexp" +From \fIvendorlib.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorlib, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorman1dir""" 4 +.el .IP "\f(CWvendorman1dir\fR" 4 +.IX Item "vendorman1dir" +From \fIvendorman1dir.U\fR: +.Sp +This variable contains the name of the directory for man1 +pages. It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +man1 pages in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorman1direxp""" 4 +.el .IP "\f(CWvendorman1direxp\fR" 4 +.IX Item "vendorman1direxp" +From \fIvendorman1dir.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorman1dir, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorman3dir""" 4 +.el .IP "\f(CWvendorman3dir\fR" 4 +.IX Item "vendorman3dir" +From \fIvendorman3dir.U\fR: +.Sp +This variable contains the name of the directory for man3 +pages. It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place their own +man3 pages in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorman3direxp""" 4 +.el .IP "\f(CWvendorman3direxp\fR" 4 +.IX Item "vendorman3direxp" +From \fIvendorman3dir.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorman3dir, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """vendorprefix""" 4 +.el .IP "\f(CWvendorprefix\fR" 4 +.IX Item "vendorprefix" +From \fIvendorprefix.U\fR: +.Sp +This variable holds the full absolute path of the directory below +which the vendor will install add-on packages. +See \f(CW\*(C`INSTALL\*(C'\fR for usage and examples. +.ie n .IP """vendorprefixexp""" 4 +.el .IP "\f(CWvendorprefixexp\fR" 4 +.IX Item "vendorprefixexp" +From \fIvendorprefix.U\fR: +.Sp +This variable holds the full absolute path of the directory below +which the vendor will install add-on packages. Derived from vendorprefix. +.ie n .IP """vendorscript""" 4 +.el .IP "\f(CWvendorscript\fR" 4 +.IX Item "vendorscript" +From \fIvendorscript.U\fR: +.Sp +This variable contains the eventual value of the \f(CW\*(C`VENDORSCRIPT\*(C'\fR symbol. +It may have a \fI~\fR on the front. +The standard distribution will put nothing in this directory. +Vendors who distribute perl may wish to place additional +executable scripts in this directory with +MakeMaker \fIMakefile.PL\fR \f(CW\*(C`INSTALLDIRS\*(C'\fR=vendor +or equivalent. See \f(CW\*(C`INSTALL\*(C'\fR for details. +.ie n .IP """vendorscriptexp""" 4 +.el .IP "\f(CWvendorscriptexp\fR" 4 +.IX Item "vendorscriptexp" +From \fIvendorscript.U\fR: +.Sp +This variable is the \fI~name\fR expanded version of vendorscript, so that you +may use it directly in Makefiles or shell scripts. +.ie n .IP """version""" 4 +.el .IP "\f(CWversion\fR" 4 +.IX Item "version" +From \fIpatchlevel.U\fR: +.Sp +The full version number of this package, such as 5.6.1 (or 5_6_1). +This combines revision, patchlevel, and subversion to get the +full version number, including any possible subversions. +This is suitable for use as a directory name, and hence is +filesystem dependent. +.ie n .IP """version_patchlevel_string""" 4 +.el .IP "\f(CWversion_patchlevel_string\fR" 4 +.IX Item "version_patchlevel_string" +From \fIpatchlevel.U\fR: +.Sp +This is a string combining version, subversion and +perl_patchlevel (if perl_patchlevel is non-zero). +It is typically something like +\&'version 7 subversion 1' or +\&'version 7 subversion 1 patchlevel 11224' +It is computed here to avoid duplication of code in \fImyconfig.SH\fR +and \fIlib/Config.pm\fR. +.ie n .IP """versiononly""" 4 +.el .IP "\f(CWversiononly\fR" 4 +.IX Item "versiononly" +From \fIversiononly.U\fR: +.Sp +If set, this symbol indicates that only the version-specific +components of a perl installation should be installed. +This may be useful for making a test installation of a new +version without disturbing the existing installation. +Setting versiononly is equivalent to setting installperl's \-v option. +In particular, the non-versioned scripts and programs such as +a2p, c2ph, h2xs, pod2*, and perldoc are not installed +(see \f(CW\*(C`INSTALL\*(C'\fR for a more complete list). Nor are the man +pages installed. +Usually, this is undef. +.ie n .IP """vi""" 4 +.el .IP "\f(CWvi\fR" 4 +.IX Item "vi" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.SS "x" +.IX Subsection "x" +.ie n .IP """xlibpth""" 4 +.el .IP "\f(CWxlibpth\fR" 4 +.IX Item "xlibpth" +From \fIlibpth.U\fR: +.Sp +This variable holds extra path (space-separated) used to find +libraries on this platform, for example \f(CW\*(C`CPU\*(C'\fR\-specific libraries +(on multi\-\f(CW\*(C`CPU\*(C'\fR platforms) may be listed here. +.SS "y" +.IX Subsection "y" +.ie n .IP """yacc""" 4 +.el .IP "\f(CWyacc\fR" 4 +.IX Item "yacc" +From \fIyacc.U\fR: +.Sp +This variable holds the name of the compiler compiler we +want to use in the Makefile. It can be yacc, byacc, or bison \-y. +.ie n .IP """yaccflags""" 4 +.el .IP "\f(CWyaccflags\fR" 4 +.IX Item "yaccflags" +From \fIyacc.U\fR: +.Sp +This variable contains any additional yacc flags desired by the +user. It is up to the Makefile to use this. +.SS "z" +.IX Subsection "z" +.ie n .IP """zcat""" 4 +.el .IP "\f(CWzcat\fR" 4 +.IX Item "zcat" +From \fILoc.U\fR: +.Sp +This variable is defined but not used by Configure. +The value is the empty string and is not useful. +.ie n .IP """zip""" 4 +.el .IP "\f(CWzip\fR" 4 +.IX Item "zip" +From \fILoc.U\fR: +.Sp +This variable is used internally by Configure to determine the +full pathname (if any) of the zip program. After Configure runs, +the value is reset to a plain \f(CW\*(C`zip\*(C'\fR and is not useful. +.SH "GIT DATA" +.IX Header "GIT DATA" +Information on the git commit from which the current perl binary was compiled +can be found in the variable \f(CW$Config::Git_Data\fR. The variable is a +structured string that looks something like this: +.PP +.Vb 6 +\& git_commit_id=\*(Aqea0c2dbd5f5ac6845ecc7ec6696415bf8e27bd52\*(Aq +\& git_describe=\*(AqGitLive\-blead\-1076\-gea0c2db\*(Aq +\& git_branch=\*(Aqsmartmatch\*(Aq +\& git_uncommitted_changes=\*(Aq\*(Aq +\& git_commit_id_title=\*(AqCommit id:\*(Aq +\& git_commit_date=\*(Aq2009\-05\-09 17:47:31 +0200\*(Aq +.Ve +.PP +Its format is not guaranteed not to change over time. +.SH "NOTE" +.IX Header "NOTE" +This module contains a good example of how to use tie to implement a +cache and an example of how to make a tied variable readonly to those +outside of it. diff --git a/data/miniconda3/man/man3/Cwd.3 b/data/miniconda3/man/man3/Cwd.3 new file mode 100644 index 0000000000000000000000000000000000000000..ae699c0208461093aa6d757a8c478ec9fe38479f --- /dev/null +++ b/data/miniconda3/man/man3/Cwd.3 @@ -0,0 +1,291 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Cwd 3" +.TH Cwd 3 "2020-12-18" "perl v5.32.1" "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" +Cwd \- get pathname of current working directory +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Cwd; +\& my $dir = getcwd; +\& +\& use Cwd \*(Aqabs_path\*(Aq; +\& my $abs_path = abs_path($file); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides functions for determining the pathname of the +current working directory. It is recommended that getcwd (or another +*\fBcwd()\fR function) be used in \fIall\fR code to ensure portability. +.PP +By default, it exports the functions \fBcwd()\fR, \fBgetcwd()\fR, \fBfastcwd()\fR, and +\&\fBfastgetcwd()\fR (and, on Win32, \fBgetdcwd()\fR) into the caller's namespace. +.SS "getcwd and friends" +.IX Subsection "getcwd and friends" +Each of these functions are called without arguments and return the +absolute path of the current working directory. +.IP "getcwd" 4 +.IX Item "getcwd" +.Vb 1 +\& my $cwd = getcwd(); +.Ve +.Sp +Returns the current working directory. On error returns \f(CW\*(C`undef\*(C'\fR, +with \f(CW$!\fR set to indicate the error. +.Sp +Exposes the \s-1POSIX\s0 function \fBgetcwd\fR\|(3) or re-implements it if it's not +available. +.IP "cwd" 4 +.IX Item "cwd" +.Vb 1 +\& my $cwd = cwd(); +.Ve +.Sp +The \fBcwd()\fR is the most natural form for the current architecture. For +most systems it is identical to `pwd` (but without the trailing line +terminator). +.IP "fastcwd" 4 +.IX Item "fastcwd" +.Vb 1 +\& my $cwd = fastcwd(); +.Ve +.Sp +A more dangerous version of \fBgetcwd()\fR, but potentially faster. +.Sp +It might conceivably \fBchdir()\fR you out of a directory that it can't +\&\fBchdir()\fR you back into. If fastcwd encounters a problem it will return +undef but will probably leave you in a different directory. For a +measure of extra security, if everything appears to have worked, the +\&\fBfastcwd()\fR function will check that it leaves you in the same directory +that it started in. If it has changed it will \f(CW\*(C`die\*(C'\fR with the message +\&\*(L"Unstable directory path, current directory changed +unexpectedly\*(R". That should never happen. +.IP "fastgetcwd" 4 +.IX Item "fastgetcwd" +.Vb 1 +\& my $cwd = fastgetcwd(); +.Ve +.Sp +The \fBfastgetcwd()\fR function is provided as a synonym for \fBcwd()\fR. +.IP "getdcwd" 4 +.IX Item "getdcwd" +.Vb 2 +\& my $cwd = getdcwd(); +\& my $cwd = getdcwd(\*(AqC:\*(Aq); +.Ve +.Sp +The \fBgetdcwd()\fR function is also provided on Win32 to get the current working +directory on the specified drive, since Windows maintains a separate current +working directory for each drive. If no drive is specified then the current +drive is assumed. +.Sp +This function simply calls the Microsoft C library \fB_getdcwd()\fR function. +.SS "abs_path and friends" +.IX Subsection "abs_path and friends" +These functions are exported only on request. They each take a single +argument and return the absolute pathname for it. If no argument is +given they'll use the current working directory. +.IP "abs_path" 4 +.IX Item "abs_path" +.Vb 1 +\& my $abs_path = abs_path($file); +.Ve +.Sp +Uses the same algorithm as \fBgetcwd()\fR. Symbolic links and relative-path +components (\*(L".\*(R" and \*(L"..\*(R") are resolved to return the canonical +pathname, just like \fBrealpath\fR\|(3). On error returns \f(CW\*(C`undef\*(C'\fR, with \f(CW$!\fR +set to indicate the error. +.IP "realpath" 4 +.IX Item "realpath" +.Vb 1 +\& my $abs_path = realpath($file); +.Ve +.Sp +A synonym for \fBabs_path()\fR. +.IP "fast_abs_path" 4 +.IX Item "fast_abs_path" +.Vb 1 +\& my $abs_path = fast_abs_path($file); +.Ve +.Sp +A more dangerous, but potentially faster version of abs_path. +.ie n .SS "$ENV{\s-1PWD\s0}" +.el .SS "\f(CW$ENV\fP{\s-1PWD\s0}" +.IX Subsection "$ENV{PWD}" +If you ask to override your \fBchdir()\fR built-in function, +.PP +.Vb 1 +\& use Cwd qw(chdir); +.Ve +.PP +then your \s-1PWD\s0 environment variable will be kept up to date. Note that +it will only be kept up to date if all packages which use chdir import +it from Cwd. +.SH "NOTES" +.IX Header "NOTES" +.IP "\(bu" 4 +Since the path separators are different on some operating systems ('/' +on Unix, ':' on MacPerl, etc...) we recommend you use the File::Spec +modules wherever portability is a concern. +.IP "\(bu" 4 +Actually, on Mac \s-1OS,\s0 the \f(CW\*(C`getcwd()\*(C'\fR, \f(CW\*(C`fastgetcwd()\*(C'\fR and \f(CW\*(C`fastcwd()\*(C'\fR +functions are all aliases for the \f(CW\*(C`cwd()\*(C'\fR function, which, on Mac \s-1OS,\s0 +calls `pwd`. Likewise, the \f(CW\*(C`abs_path()\*(C'\fR function is an alias for +\&\f(CW\*(C`fast_abs_path()\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Originally by the perl5\-porters. +.PP +Maintained by Ken Williams +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.PP +Portions of the C code in this library are copyright (c) 1994 by the +Regents of the University of California. All rights reserved. The +license on this code is compatible with the licensing of the rest of +the distribution \- please see the source code in \fICwd.xs\fR for the +details. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::chdir diff --git a/data/miniconda3/man/man3/DB.3 b/data/miniconda3/man/man3/DB.3 new file mode 100644 index 0000000000000000000000000000000000000000..102fd9314a4d0738c13e4b51ee784f3d3274125e --- /dev/null +++ b/data/miniconda3/man/man3/DB.3 @@ -0,0 +1,346 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DB 3" +.TH DB 3 "2020-12-18" "perl v5.32.1" "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" +DB \- programmatic interface to the Perl debugging API +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& package CLIENT; +\& use DB; +\& @ISA = qw(DB); +\& +\& # these (inherited) methods can be called by the client +\& +\& CLIENT\->register() # register a client package name +\& CLIENT\->done() # de\-register from the debugging API +\& CLIENT\->skippkg(\*(Aqhide::hide\*(Aq) # ask DB not to stop in this package +\& CLIENT\->cont([WHERE]) # run some more (until BREAK or +\& # another breakpointt) +\& CLIENT\->step() # single step +\& CLIENT\->next() # step over +\& CLIENT\->ret() # return from current subroutine +\& CLIENT\->backtrace() # return the call stack description +\& CLIENT\->ready() # call when client setup is done +\& CLIENT\->trace_toggle() # toggle subroutine call trace mode +\& CLIENT\->subs([SUBS]) # return subroutine information +\& CLIENT\->files() # return list of all files known to DB +\& CLIENT\->lines() # return lines in currently loaded file +\& CLIENT\->loadfile(FILE,LINE) # load a file and let other clients know +\& CLIENT\->lineevents() # return info on lines with actions +\& CLIENT\->set_break([WHERE],[COND]) +\& CLIENT\->set_tbreak([WHERE]) +\& CLIENT\->clr_breaks([LIST]) +\& CLIENT\->set_action(WHERE,ACTION) +\& CLIENT\->clr_actions([LIST]) +\& CLIENT\->evalcode(STRING) # eval STRING in executing code\*(Aqs context +\& CLIENT\->prestop([STRING]) # execute in code context before stopping +\& CLIENT\->poststop([STRING])# execute in code context before resuming +\& +\& # These methods will be called at the appropriate times. +\& # Stub versions provided do nothing. +\& # None of these can block. +\& +\& CLIENT\->init() # called when debug API inits itself +\& CLIENT\->stop(FILE,LINE) # when execution stops +\& CLIENT\->idle() # while stopped (can be a client event loop) +\& CLIENT\->cleanup() # just before exit +\& CLIENT\->output(LIST) # called to print any output that +\& # the API must show +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl debug information is frequently required not just by debuggers, +but also by modules that need some \*(L"special\*(R" information to do their +job properly, like profilers. +.PP +This module abstracts and provides all of the hooks into Perl internal +debugging functionality, so that various implementations of Perl debuggers +(or packages that want to simply get at the \*(L"privileged\*(R" debugging data) +can all benefit from the development of this common code. Currently used +by Swat, the perl/Tk \s-1GUI\s0 debugger. +.PP +Note that multiple \*(L"front-ends\*(R" can latch into this debugging \s-1API\s0 +simultaneously. This is intended to facilitate things like +debugging with a command line and \s-1GUI\s0 at the same time, debugging +debuggers etc. [Sounds nice, but this needs some serious support \*(-- \s-1GSAR\s0] +.PP +In particular, this \s-1API\s0 does \fBnot\fR provide the following functions: +.IP "\(bu" 4 +data display +.IP "\(bu" 4 +command processing +.IP "\(bu" 4 +command alias management +.IP "\(bu" 4 +user interface (tty or graphical) +.PP +These are intended to be services performed by the clients of this \s-1API.\s0 +.PP +This module attempts to be squeaky clean w.r.t \f(CW\*(C`use strict;\*(C'\fR and when +warnings are enabled. +.SS "Global Variables" +.IX Subsection "Global Variables" +The following \*(L"public\*(R" global names can be read by clients of this \s-1API.\s0 +Beware that these should be considered \*(L"readonly\*(R". +.ie n .IP "$DB::sub" 8 +.el .IP "\f(CW$DB::sub\fR" 8 +.IX Item "$DB::sub" +Name of current executing subroutine. +.ie n .IP "%DB::sub" 8 +.el .IP "\f(CW%DB::sub\fR" 8 +.IX Item "%DB::sub" +The keys of this hash are the names of all the known subroutines. Each value +is an encoded string that has the \fBsprintf\fR\|(3) format +\&\f(CW\*(C`("%s:%d\-%d", filename, fromline, toline)\*(C'\fR. +.ie n .IP "$DB::single" 8 +.el .IP "\f(CW$DB::single\fR" 8 +.IX Item "$DB::single" +Single-step flag. Will be true if the \s-1API\s0 will stop at the next statement. +.ie n .IP "$DB::signal" 8 +.el .IP "\f(CW$DB::signal\fR" 8 +.IX Item "$DB::signal" +Signal flag. Will be set to a true value if a signal was caught. Clients may +check for this flag to abort time-consuming operations. +.ie n .IP "$DB::trace" 8 +.el .IP "\f(CW$DB::trace\fR" 8 +.IX Item "$DB::trace" +This flag is set to true if the \s-1API\s0 is tracing through subroutine calls. +.ie n .IP "@DB::args" 8 +.el .IP "\f(CW@DB::args\fR" 8 +.IX Item "@DB::args" +Contains the arguments of current subroutine, or the \f(CW@ARGV\fR array if in the +toplevel context. +.ie n .IP "@DB::dbline" 8 +.el .IP "\f(CW@DB::dbline\fR" 8 +.IX Item "@DB::dbline" +List of lines in currently loaded file. +.ie n .IP "%DB::dbline" 8 +.el .IP "\f(CW%DB::dbline\fR" 8 +.IX Item "%DB::dbline" +Actions in current file (keys are line numbers). The values are strings that +have the \fBsprintf\fR\|(3) format \f(CW\*(C`("%s\e000%s", breakcondition, actioncode)\*(C'\fR. +.ie n .IP "$DB::package" 8 +.el .IP "\f(CW$DB::package\fR" 8 +.IX Item "$DB::package" +Package namespace of currently executing code. +.ie n .IP "$DB::filename" 8 +.el .IP "\f(CW$DB::filename\fR" 8 +.IX Item "$DB::filename" +Currently loaded filename. +.ie n .IP "$DB::subname" 8 +.el .IP "\f(CW$DB::subname\fR" 8 +.IX Item "$DB::subname" +Fully qualified name of currently executing subroutine. +.ie n .IP "$DB::lineno" 8 +.el .IP "\f(CW$DB::lineno\fR" 8 +.IX Item "$DB::lineno" +Line number that will be executed next. +.SS "\s-1API\s0 Methods" +.IX Subsection "API Methods" +The following are methods in the \s-1DB\s0 base class. A client must +access these methods by inheritance (*not* by calling them directly), +since the \s-1API\s0 keeps track of clients through the inheritance +mechanism. +.IP "\s-1CLIENT\-\s0>\fBregister()\fR" 8 +.IX Item "CLIENT->register()" +register a client object/package +.IP "\s-1CLIENT\-\s0>evalcode(\s-1STRING\s0)" 8 +.IX Item "CLIENT->evalcode(STRING)" +eval \s-1STRING\s0 in executing code context +.IP "\s-1CLIENT\-\s0>skippkg('D::hide')" 8 +.IX Item "CLIENT->skippkg('D::hide')" +ask \s-1DB\s0 not to stop in these packages +.IP "\s-1CLIENT\-\s0>\fBrun()\fR" 8 +.IX Item "CLIENT->run()" +run some more (until a breakpt is reached) +.IP "\s-1CLIENT\-\s0>\fBstep()\fR" 8 +.IX Item "CLIENT->step()" +single step +.IP "\s-1CLIENT\-\s0>\fBnext()\fR" 8 +.IX Item "CLIENT->next()" +step over +.IP "\s-1CLIENT\-\s0>\fBdone()\fR" 8 +.IX Item "CLIENT->done()" +de-register from the debugging \s-1API\s0 +.SS "Client Callback Methods" +.IX Subsection "Client Callback Methods" +The following \*(L"virtual\*(R" methods can be defined by the client. They will +be called by the \s-1API\s0 at appropriate points. Note that unless specified +otherwise, the debug \s-1API\s0 only defines empty, non-functional default versions +of these methods. +.IP "\s-1CLIENT\-\s0>\fBinit()\fR" 8 +.IX Item "CLIENT->init()" +Called after debug \s-1API\s0 inits itself. +.IP "\s-1CLIENT\-\s0>prestop([\s-1STRING\s0])" 8 +.IX Item "CLIENT->prestop([STRING])" +Usually inherited from \s-1DB\s0 package. If no arguments are passed, +returns the prestop action string. +.IP "\s-1CLIENT\-\s0>\fBstop()\fR" 8 +.IX Item "CLIENT->stop()" +Called when execution stops (w/ args file, line). +.IP "\s-1CLIENT\-\s0>\fBidle()\fR" 8 +.IX Item "CLIENT->idle()" +Called while stopped (can be a client event loop). +.IP "\s-1CLIENT\-\s0>poststop([\s-1STRING\s0])" 8 +.IX Item "CLIENT->poststop([STRING])" +Usually inherited from \s-1DB\s0 package. If no arguments are passed, +returns the poststop action string. +.IP "\s-1CLIENT\-\s0>evalcode(\s-1STRING\s0)" 8 +.IX Item "CLIENT->evalcode(STRING)" +Usually inherited from \s-1DB\s0 package. Ask for a \s-1STRING\s0 to be \f(CW\*(C`eval\*(C'\fR\-ed +in executing code context. +.IP "\s-1CLIENT\-\s0>\fBcleanup()\fR" 8 +.IX Item "CLIENT->cleanup()" +Called just before exit. +.IP "\s-1CLIENT\-\s0>output(\s-1LIST\s0)" 8 +.IX Item "CLIENT->output(LIST)" +Called when \s-1API\s0 must show a message (warnings, errors etc.). +.SH "BUGS" +.IX Header "BUGS" +The interface defined by this module is missing some of the later additions +to perl's debugging functionality. As such, this interface should be considered +highly experimental and subject to change. +.SH "AUTHOR" +.IX Header "AUTHOR" +Gurusamy Sarathy gsar@activestate.com +.PP +This code heavily adapted from an early version of perl5db.pl attributable +to Larry Wall and the Perl Porters. diff --git a/data/miniconda3/man/man3/DBM_Filter%3A%3Acompress.3 b/data/miniconda3/man/man3/DBM_Filter%3A%3Acompress.3 new file mode 100644 index 0000000000000000000000000000000000000000..c95dbf6b7dbb8b4ae093c5e838f07072c341e473 --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter%3A%3Acompress.3 @@ -0,0 +1,164 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter::compress 3" +.TH DBM_Filter::compress 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter::compress \- filter for DBM_Filter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, ODBM_File +\& use DBM_Filter ; +\& +\& $db = tie %hash, ... +\& $db\->Filter_Push(\*(Aqcompress\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This \s-1DBM\s0 filter will compress all data before it is written to the database +and uncompressed it on reading. +.PP +A fatal error will be thrown if the Compress::Zlib module is not +available. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DBM_Filter, perldbmfilter, Compress::Zlib +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess pmqs@cpan.org diff --git a/data/miniconda3/man/man3/DBM_Filter%3A%3Aencode.3 b/data/miniconda3/man/man3/DBM_Filter%3A%3Aencode.3 new file mode 100644 index 0000000000000000000000000000000000000000..3121ee7bb5926b8bc7d95dcfe51b72448870d231 --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter%3A%3Aencode.3 @@ -0,0 +1,174 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter::encode 3" +.TH DBM_Filter::encode 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter::encode \- filter for DBM_Filter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, ODBM_File +\& use DBM_Filter ; +\& +\& $db = tie %hash, ... +\& $db\->Filter_Push(\*(Aqencode\*(Aq => \*(Aqiso\-8859\-16\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This \s-1DBM\s0 filter allows you to choose the character encoding will be +store in the \s-1DBM\s0 file. The usage is +.PP +.Vb 1 +\& $db\->Filter_Push(\*(Aqencode\*(Aq => ENCODING); +.Ve +.PP +where \*(L"\s-1ENCODING\*(R"\s0 must be a valid encoding name that the Encode module +recognises. +.PP +A fatal error will be thrown if: +.IP "1." 5 +The Encode module is not available. +.IP "2." 5 +The encoding requested is not supported by the Encode module. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DBM_Filter, perldbmfilter, Encode +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess pmqs@cpan.org diff --git a/data/miniconda3/man/man3/DBM_Filter%3A%3Aint32.3 b/data/miniconda3/man/man3/DBM_Filter%3A%3Aint32.3 new file mode 100644 index 0000000000000000000000000000000000000000..0c6acc6e0872a7febc2a49d5d93384879b8b66fb --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter%3A%3Aint32.3 @@ -0,0 +1,161 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter::int32 3" +.TH DBM_Filter::int32 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter::int32 \- filter for DBM_Filter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File +\& use DBM_Filter ; +\& +\& $db = tie %hash, ... +\& $db\->Filter_Push(\*(Aqint32\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This \s-1DBM\s0 filter is used when interoperating with a C/\*(C+ application +that uses a C int as either the key and/or value in the \s-1DBM\s0 file. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DBM_Filter, perldbmfilter +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess pmqs@cpan.org diff --git a/data/miniconda3/man/man3/DBM_Filter%3A%3Anull.3 b/data/miniconda3/man/man3/DBM_Filter%3A%3Anull.3 new file mode 100644 index 0000000000000000000000000000000000000000..fcbd6d9e27834b3571f722fc5642fa690d24a155 --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter%3A%3Anull.3 @@ -0,0 +1,165 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter::null 3" +.TH DBM_Filter::null 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter::null \- filter for DBM_Filter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File +\& use DBM_Filter ; +\& +\& $db = tie %hash, ... +\& $db\->Filter_Push(\*(Aqnull\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This filter ensures that all data written to the \s-1DBM\s0 file is null +terminated. This is useful when you have a perl script that needs +to interoperate with a \s-1DBM\s0 file that a C program also uses. A fairly +common issue is for the C application to include the terminating null +in a string when it writes to the \s-1DBM\s0 file. This filter will ensure that +all data written to the \s-1DBM\s0 file can be read by the C application. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DBM_Filter, perldbmfilter +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess pmqs@cpan.org diff --git a/data/miniconda3/man/man3/DBM_Filter%3A%3Autf8.3 b/data/miniconda3/man/man3/DBM_Filter%3A%3Autf8.3 new file mode 100644 index 0000000000000000000000000000000000000000..96f410a84cb29f3d94d0d6fdc2c6d71f62f8d96f --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter%3A%3Autf8.3 @@ -0,0 +1,163 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter::utf8 3" +.TH DBM_Filter::utf8 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter::utf8 \- filter for DBM_Filter +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File +\& use DBM_Filter; +\& +\& $db = tie %hash, ... +\& $db\->Filter_Push(\*(Aqutf8\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This Filter will ensure that all data written to the \s-1DBM\s0 will be encoded +in \s-1UTF\-8.\s0 +.PP +This module uses the Encode module. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DBM_Filter, perldbmfilter, Encode +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess pmqs@cpan.org diff --git a/data/miniconda3/man/man3/DBM_Filter.3 b/data/miniconda3/man/man3/DBM_Filter.3 new file mode 100644 index 0000000000000000000000000000000000000000..48b685e1520d9c4dda7f2c76bf7615411656e1ec --- /dev/null +++ b/data/miniconda3/man/man3/DBM_Filter.3 @@ -0,0 +1,463 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DBM_Filter 3" +.TH DBM_Filter 3 "2020-12-18" "perl v5.32.1" "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" +DBM_Filter \-\- Filter DBM keys/values +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use DBM_Filter ; +\& use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File +\& +\& $db = tie %hash, ... +\& +\& $db\->Filter_Push(Fetch => sub {...}, +\& Store => sub {...}); +\& +\& $db\->Filter_Push(\*(Aqmy_filter1\*(Aq); +\& $db\->Filter_Push(\*(Aqmy_filter2\*(Aq, params...); +\& +\& $db\->Filter_Key_Push(...) ; +\& $db\->Filter_Value_Push(...) ; +\& +\& $db\->Filter_Pop(); +\& $db\->Filtered(); +\& +\& package DBM_Filter::my_filter1; +\& +\& sub Store { ... } +\& sub Fetch { ... } +\& +\& 1; +\& +\& package DBM_Filter::my_filter2; +\& +\& sub Filter +\& { +\& my @opts = @_; +\& ... +\& return ( +\& sub Store { ... }, +\& sub Fetch { ... } ); +\& } +\& +\& 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides an interface that allows filters to be applied +to tied Hashes associated with \s-1DBM\s0 files. It builds on the \s-1DBM\s0 Filter +hooks that are present in all the *DB*_File modules included with the +standard Perl source distribution from version 5.6.1 onwards. In addition +to the *DB*_File modules distributed with Perl, the BerkeleyDB module, +available on \s-1CPAN,\s0 supports the \s-1DBM\s0 Filter hooks. See perldbmfilter +for more details on the \s-1DBM\s0 Filter hooks. +.SH "What is a DBM Filter?" +.IX Header "What is a DBM Filter?" +A \s-1DBM\s0 Filter allows the keys and/or values in a tied hash to be modified +by some user-defined code just before it is written to the \s-1DBM\s0 file and +just after it is read back from the \s-1DBM\s0 file. For example, this snippet +of code +.PP +.Vb 1 +\& $some_hash{"abc"} = 42; +.Ve +.PP +could potentially trigger two filters, one for the writing of the key +\&\*(L"abc\*(R" and another for writing the value 42. Similarly, this snippet +.PP +.Vb 1 +\& my ($key, $value) = each %some_hash +.Ve +.PP +will trigger two filters, one for the reading of the key and one for +the reading of the value. +.PP +Like the existing \s-1DBM\s0 Filter functionality, this module arranges for the +\&\f(CW$_\fR variable to be populated with the key or value that a filter will +check. This usually means that most \s-1DBM\s0 filters tend to be very short. +.SS "So what's new?" +.IX Subsection "So what's new?" +The main enhancements over the standard \s-1DBM\s0 Filter hooks are: +.IP "\(bu" 4 +A cleaner interface. +.IP "\(bu" 4 +The ability to easily apply multiple filters to a single \s-1DBM\s0 file. +.IP "\(bu" 4 +The ability to create \*(L"canned\*(R" filters. These allow commonly used filters +to be packaged into a stand-alone module. +.SH "METHODS" +.IX Header "METHODS" +This module will arrange for the following methods to be available via +the object returned from the \f(CW\*(C`tie\*(C'\fR call. +.ie n .SS "$db\->\fBFilter_Push()\fP / $db\->\fBFilter_Key_Push()\fP / $db\->\fBFilter_Value_Push()\fP" +.el .SS "\f(CW$db\fP\->\fBFilter_Push()\fP / \f(CW$db\fP\->\fBFilter_Key_Push()\fP / \f(CW$db\fP\->\fBFilter_Value_Push()\fP" +.IX Subsection "$db->Filter_Push() / $db->Filter_Key_Push() / $db->Filter_Value_Push()" +Add a filter to filter stack for the database, \f(CW$db\fR. The three formats +vary only in whether they apply to the \s-1DBM\s0 key, the \s-1DBM\s0 value or both. +.IP "Filter_Push" 5 +.IX Item "Filter_Push" +The filter is applied to \fIboth\fR keys and values. +.IP "Filter_Key_Push" 5 +.IX Item "Filter_Key_Push" +The filter is applied to the key \fIonly\fR. +.IP "Filter_Value_Push" 5 +.IX Item "Filter_Value_Push" +The filter is applied to the value \fIonly\fR. +.ie n .SS "$db\->\fBFilter_Pop()\fP" +.el .SS "\f(CW$db\fP\->\fBFilter_Pop()\fP" +.IX Subsection "$db->Filter_Pop()" +Removes the last filter that was applied to the \s-1DBM\s0 file associated with +\&\f(CW$db\fR, if present. +.ie n .SS "$db\->\fBFiltered()\fP" +.el .SS "\f(CW$db\fP\->\fBFiltered()\fP" +.IX Subsection "$db->Filtered()" +Returns \s-1TRUE\s0 if there are any filters applied to the \s-1DBM\s0 associated +with \f(CW$db\fR. Otherwise returns \s-1FALSE.\s0 +.SH "Writing a Filter" +.IX Header "Writing a Filter" +Filters can be created in two main ways +.SS "Immediate Filters" +.IX Subsection "Immediate Filters" +An immediate filter allows you to specify the filter code to be used +at the point where the filter is applied to a dbm. In this mode the +Filter_*_Push methods expects to receive exactly two parameters. +.PP +.Vb 3 +\& my $db = tie %hash, \*(AqSDBM_File\*(Aq, ... +\& $db\->Filter_Push( Store => sub { }, +\& Fetch => sub { }); +.Ve +.PP +The code reference associated with \f(CW\*(C`Store\*(C'\fR will be called before any +key/value is written to the database and the code reference associated +with \f(CW\*(C`Fetch\*(C'\fR will be called after any key/value is read from the +database. +.PP +For example, here is a sample filter that adds a trailing \s-1NULL\s0 character +to all strings before they are written to the \s-1DBM\s0 file, and removes the +trailing \s-1NULL\s0 when they are read from the \s-1DBM\s0 file +.PP +.Vb 3 +\& my $db = tie %hash, \*(AqSDBM_File\*(Aq, ... +\& $db\->Filter_Push( Store => sub { $_ .= "\ex00" ; }, +\& Fetch => sub { s/\ex00$// ; }); +.Ve +.PP +Points to note: +.IP "1." 5 +Both the Store and Fetch filters manipulate \f(CW$_\fR. +.SS "Canned Filters" +.IX Subsection "Canned Filters" +Immediate filters are useful for one-off situations. For more generic +problems it can be useful to package the filter up in its own module. +.PP +The usage is for a canned filter is: +.PP +.Vb 1 +\& $db\->Filter_Push("name", params) +.Ve +.PP +where +.ie n .IP """name""" 5 +.el .IP "``name''" 5 +.IX Item "name" +is the name of the module to load. If the string specified does not +contain the package separator characters \*(L"::\*(R", it is assumed to refer to +the full module name \*(L"DBM_Filter::name\*(R". This means that the full names +for canned filters, \*(L"null\*(R" and \*(L"utf8\*(R", included with this module are: +.Sp +.Vb 2 +\& DBM_Filter::null +\& DBM_Filter::utf8 +.Ve +.IP "params" 5 +.IX Item "params" +any optional parameters that need to be sent to the filter. See the +encode filter for an example of a module that uses parameters. +.PP +The module that implements the canned filter can take one of two +forms. Here is a template for the first +.PP +.Vb 1 +\& package DBM_Filter::null ; +\& +\& use strict; +\& use warnings; +\& +\& sub Store +\& { +\& # store code here +\& } +\& +\& sub Fetch +\& { +\& # fetch code here +\& } +\& +\& 1; +.Ve +.PP +Notes: +.IP "1." 5 +The package name uses the \f(CW\*(C`DBM_Filter::\*(C'\fR prefix. +.IP "2." 5 +The module \fImust\fR have both a Store and a Fetch method. If only one is +present, or neither are present, a fatal error will be thrown. +.PP +The second form allows the filter to hold state information using a +closure, thus: +.PP +.Vb 1 +\& package DBM_Filter::encoding ; +\& +\& use strict; +\& use warnings; +\& +\& sub Filter +\& { +\& my @params = @_ ; +\& +\& ... +\& return { +\& Store => sub { $_ = $encoding\->encode($_) }, +\& Fetch => sub { $_ = $encoding\->decode($_) } +\& } ; +\& } +\& +\& 1; +.Ve +.PP +In this instance the \*(L"Store\*(R" and \*(L"Fetch\*(R" methods are encapsulated inside a +\&\*(L"Filter\*(R" method. +.SH "Filters Included" +.IX Header "Filters Included" +A number of canned filers are provided with this module. They cover a +number of the main areas that filters are needed when interfacing with +\&\s-1DBM\s0 files. They also act as templates for your own filters. +.PP +The filter included are: +.IP "\(bu" 5 +utf8 +.Sp +This module will ensure that all data written to the \s-1DBM\s0 will be encoded +in \s-1UTF\-8.\s0 +.Sp +This module needs the Encode module. +.IP "\(bu" 5 +encode +.Sp +Allows you to choose the character encoding will be store in the \s-1DBM\s0 file. +.IP "\(bu" 5 +compress +.Sp +This filter will compress all data before it is written to the database +and uncompressed it on reading. +.Sp +This module needs Compress::Zlib. +.IP "\(bu" 5 +int32 +.Sp +This module is used when interoperating with a C/\*(C+ application that +uses a C int as either the key and/or value in the \s-1DBM\s0 file. +.IP "\(bu" 5 +null +.Sp +This module ensures that all data written to the \s-1DBM\s0 file is null +terminated. This is useful when you have a perl script that needs +to interoperate with a \s-1DBM\s0 file that a C program also uses. A fairly +common issue is for the C application to include the terminating null +in a string when it writes to the \s-1DBM\s0 file. This filter will ensure that +all data written to the \s-1DBM\s0 file can be read by the C application. +.SH "NOTES" +.IX Header "NOTES" +.SS "Maintain Round Trip Integrity" +.IX Subsection "Maintain Round Trip Integrity" +When writing a \s-1DBM\s0 filter it is \fIvery\fR important to ensure that it is +possible to retrieve all data that you have written when the \s-1DBM\s0 filter +is in place. In practice, this means that whatever transformation is +applied to the data in the Store method, the \fIexact\fR inverse operation +should be applied in the Fetch method. +.PP +If you don't provide an exact inverse transformation, you will find that +code like this will not behave as you expect. +.PP +.Vb 4 +\& while (my ($k, $v) = each %hash) +\& { +\& ... +\& } +.Ve +.PP +Depending on the transformation, you will find that one or more of the +following will happen +.IP "1." 5 +The loop will never terminate. +.IP "2." 5 +Too few records will be retrieved. +.IP "3." 5 +Too many will be retrieved. +.IP "4." 5 +The loop will do the right thing for a while, but it will unexpectedly fail. +.SS "Don't mix filtered & non-filtered data in the same database file." +.IX Subsection "Don't mix filtered & non-filtered data in the same database file." +This is just a restatement of the previous section. Unless you are +completely certain you know what you are doing, avoid mixing filtered & +non-filtered data. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Say you need to interoperate with a legacy C application that stores +keys as C ints and the values and null terminated \s-1UTF\-8\s0 strings. Here +is how you would set that up +.PP +.Vb 1 +\& my $db = tie %hash, \*(AqSDBM_File\*(Aq, ... +\& +\& $db\->Filter_Key_Push(\*(Aqint32\*(Aq) ; +\& +\& $db\->Filter_Value_Push(\*(Aqutf8\*(Aq); +\& $db\->Filter_Value_Push(\*(Aqnull\*(Aq); +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +, GDBM_File, NDBM_File, ODBM_File, SDBM_File, perldbmfilter +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess diff --git a/data/miniconda3/man/man3/Data%3A%3ADumper.3 b/data/miniconda3/man/man3/Data%3A%3ADumper.3 new file mode 100644 index 0000000000000000000000000000000000000000..8d1df06b4204ff60eee6f0df96ecf197034dc129 --- /dev/null +++ b/data/miniconda3/man/man3/Data%3A%3ADumper.3 @@ -0,0 +1,689 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Data::Dumper 3" +.TH Data::Dumper 3 "2020-12-26" "perl v5.32.1" "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" +Data::Dumper \- stringified perl data structures, suitable for both printing and "eval" +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Data::Dumper; +\& +\& # simple procedural interface +\& print Dumper($foo, $bar); +\& +\& # extended usage with names +\& print Data::Dumper\->Dump([$foo, $bar], [qw(foo *ary)]); +\& +\& # configuration variables +\& { +\& local $Data::Dumper::Purity = 1; +\& eval Data::Dumper\->Dump([$foo, $bar], [qw(foo *ary)]); +\& } +\& +\& # OO usage +\& $d = Data::Dumper\->new([$foo, $bar], [qw(foo *ary)]); +\& ... +\& print $d\->Dump; +\& ... +\& $d\->Purity(1)\->Terse(1)\->Deepcopy(1); +\& eval $d\->Dump; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Given a list of scalars or reference variables, writes out their contents in +perl syntax. The references can also be objects. The content of each +variable is output in a single Perl statement. Handles self-referential +structures correctly. +.PP +The return value can be \f(CW\*(C`eval\*(C'\fRed to get back an identical copy of the +original reference structure. (Please do consider the security implications +of eval'ing code from untrusted sources!) +.PP +Any references that are the same as one of those passed in will be named +\&\f(CW$VAR\fR\fIn\fR (where \fIn\fR is a numeric suffix), and other duplicate references +to substructures within \f(CW$VAR\fR\fIn\fR will be appropriately labeled using arrow +notation. You can specify names for individual values to be dumped if you +use the \f(CW\*(C`Dump()\*(C'\fR method, or you can change the default \f(CW$VAR\fR prefix to +something else. See \f(CW$Data::Dumper::Varname\fR and \f(CW$Data::Dumper::Terse\fR +below. +.PP +The default output of self-referential structures can be \f(CW\*(C`eval\*(C'\fRed, but the +nested references to \f(CW$VAR\fR\fIn\fR will be undefined, since a recursive +structure cannot be constructed using one Perl statement. You should set the +\&\f(CW\*(C`Purity\*(C'\fR flag to 1 to get additional statements that will correctly fill in +these references. Moreover, if \f(CW\*(C`eval\*(C'\fRed when strictures are in effect, +you need to ensure that any variables it accesses are previously declared. +.PP +In the extended usage form, the references to be dumped can be given +user-specified names. If a name begins with a \f(CW\*(C`*\*(C'\fR, the output will +describe the dereferenced type of the supplied reference for hashes and +arrays, and coderefs. Output of names will be avoided where possible if +the \f(CW\*(C`Terse\*(C'\fR flag is set. +.PP +In many cases, methods that are used to set the internal state of the +object will return the object itself, so method calls can be conveniently +chained together. +.PP +Several styles of output are possible, all controlled by setting +the \f(CW\*(C`Indent\*(C'\fR flag. See \*(L"Configuration Variables or Methods\*(R" below +for details. +.SS "Methods" +.IX Subsection "Methods" +.IP "\fI\s-1PACKAGE\s0\fR\->new(\fI\s-1ARRAYREF\s0 [\fR, \fI\s-1ARRAYREF\s0]\fR)" 4 +.IX Item "PACKAGE->new(ARRAYREF [, ARRAYREF])" +Returns a newly created \f(CW\*(C`Data::Dumper\*(C'\fR object. The first argument is an +anonymous array of values to be dumped. The optional second argument is an +anonymous array of names for the values. The names need not have a leading +\&\f(CW\*(C`$\*(C'\fR sign, and must be comprised of alphanumeric characters. You can begin +a name with a \f(CW\*(C`*\*(C'\fR to specify that the dereferenced type must be dumped +instead of the reference itself, for \s-1ARRAY\s0 and \s-1HASH\s0 references. +.Sp +The prefix specified by \f(CW$Data::Dumper::Varname\fR will be used with a +numeric suffix if the name for a value is undefined. +.Sp +Data::Dumper will catalog all references encountered while dumping the +values. Cross-references (in the form of names of substructures in perl +syntax) will be inserted at all possible points, preserving any structural +interdependencies in the original set of values. Structure traversal is +depth-first, and proceeds in order from the first supplied value to +the last. +.IP "\fI\f(CI$OBJ\fI\fR\->Dump \fIor\fR \fI\s-1PACKAGE\s0\fR\->Dump(\fI\s-1ARRAYREF\s0 [\fR, \fI\s-1ARRAYREF\s0]\fR)" 4 +.IX Item "$OBJ->Dump or PACKAGE->Dump(ARRAYREF [, ARRAYREF])" +Returns the stringified form of the values stored in the object (preserving +the order in which they were supplied to \f(CW\*(C`new\*(C'\fR), subject to the +configuration options below. In a list context, it returns a list +of strings corresponding to the supplied values. +.Sp +The second form, for convenience, simply calls the \f(CW\*(C`new\*(C'\fR method on its +arguments before dumping the object immediately. +.IP "\fI\f(CI$OBJ\fI\fR\->Seen(\fI[\s-1HASHREF\s0]\fR)" 4 +.IX Item "$OBJ->Seen([HASHREF])" +Queries or adds to the internal table of already encountered references. +You must use \f(CW\*(C`Reset\*(C'\fR to explicitly clear the table if needed. Such +references are not dumped; instead, their names are inserted wherever they +are encountered subsequently. This is useful especially for properly +dumping subroutine references. +.Sp +Expects an anonymous hash of name => value pairs. Same rules apply for names +as in \f(CW\*(C`new\*(C'\fR. If no argument is supplied, will return the \*(L"seen\*(R" list of +name => value pairs, in a list context. Otherwise, returns the object +itself. +.IP "\fI\f(CI$OBJ\fI\fR\->Values(\fI[\s-1ARRAYREF\s0]\fR)" 4 +.IX Item "$OBJ->Values([ARRAYREF])" +Queries or replaces the internal array of values that will be dumped. When +called without arguments, returns the values as a list. When called with a +reference to an array of replacement values, returns the object itself. When +called with any other type of argument, dies. +.IP "\fI\f(CI$OBJ\fI\fR\->Names(\fI[\s-1ARRAYREF\s0]\fR)" 4 +.IX Item "$OBJ->Names([ARRAYREF])" +Queries or replaces the internal array of user supplied names for the values +that will be dumped. When called without arguments, returns the names. When +called with an array of replacement names, returns the object itself. If the +number of replacement names exceeds the number of values to be named, the +excess names will not be used. If the number of replacement names falls short +of the number of values to be named, the list of replacement names will be +exhausted and remaining values will not be renamed. When +called with any other type of argument, dies. +.IP "\fI\f(CI$OBJ\fI\fR\->Reset" 4 +.IX Item "$OBJ->Reset" +Clears the internal table of \*(L"seen\*(R" references and returns the object +itself. +.SS "Functions" +.IX Subsection "Functions" +.IP "Dumper(\fI\s-1LIST\s0\fR)" 4 +.IX Item "Dumper(LIST)" +Returns the stringified form of the values in the list, subject to the +configuration options below. The values will be named \f(CW$VAR\fR\fIn\fR in the +output, where \fIn\fR is a numeric suffix. Will return a list of strings +in a list context. +.SS "Configuration Variables or Methods" +.IX Subsection "Configuration Variables or Methods" +Several configuration variables can be used to control the kind of output +generated when using the procedural interface. These variables are usually +\&\f(CW\*(C`local\*(C'\fRized in a block so that other parts of the code are not affected by +the change. +.PP +These variables determine the default state of the object created by calling +the \f(CW\*(C`new\*(C'\fR method, but cannot be used to alter the state of the object +thereafter. The equivalent method names should be used instead to query +or set the internal state of the object. +.PP +The method forms return the object itself when called with arguments, +so that they can be chained together nicely. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Indent\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Indent(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Controls the style of indentation. It can be set to 0, 1, 2 or 3. Style 0 +spews output without any newlines, indentation, or spaces between list +items. It is the most compact format possible that can still be called +valid perl. Style 1 outputs a readable form with newlines but no fancy +indentation (each level in the structure is simply indented by a fixed +amount of whitespace). Style 2 (the default) outputs a very readable form +which takes into account the length of hash keys (so the hash value lines +up). Style 3 is like style 2, but also annotates the elements of arrays +with their index (but the comment is on its own line, so array output +consumes twice the number of lines). Style 2 is the default. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Trailingcomma\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Trailingcomma(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Controls whether a comma is added after the last element of an array or +hash. Even when true, no comma is added between the last element of an array +or hash and a closing bracket when they appear on the same line. The default +is false. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Purity\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Purity(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Controls the degree to which the output can be \f(CW\*(C`eval\*(C'\fRed to recreate the +supplied reference structures. Setting it to 1 will output additional perl +statements that will correctly recreate nested references. The default is +0. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Pad\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Pad(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Specifies the string that will be prefixed to every line of the output. +Empty string by default. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Varname\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Varname(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Contains the prefix to use for tagging variable names in the output. The +default is \*(L"\s-1VAR\*(R".\s0 +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Useqq\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Useqq(\fI[\s-1NEWVAL\s0]\fR) +.Sp +When set, enables the use of double quotes for representing string values. +Whitespace other than space will be represented as \f(CW\*(C`[\en\et\er]\*(C'\fR, \*(L"unsafe\*(R" +characters will be backslashed, and unprintable characters will be output as +quoted octal integers. The default is 0. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Terse\fR \fIor\fR \fI\f(CI$OBJ\fI\fR\->Terse(\fI[\s-1NEWVAL\s0]\fR) +.Sp +When set, Data::Dumper will emit single, non-self-referential values as +atoms/terms rather than statements. This means that the \f(CW$VAR\fR\fIn\fR names +will be avoided where possible, but be advised that such output may not +always be parseable by \f(CW\*(C`eval\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Freezer\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Freezer(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a method name, or to an empty string to disable the feature. +Data::Dumper will invoke that method via the object before attempting to +stringify it. This method can alter the contents of the object (if, for +instance, it contains data allocated from C), and even rebless it in a +different package. The client is responsible for making sure the specified +method can be called via the object, and that the object ends up containing +only perl data types after the method has been called. Defaults to an empty +string. +.Sp +If an object does not support the method specified (determined using +\&\fBUNIVERSAL::can()\fR) then the call will be skipped. If the method dies a +warning will be generated. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Toaster\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Toaster(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a method name, or to an empty string to disable the feature. +Data::Dumper will emit a method call for any objects that are to be dumped +using the syntax \f(CW\*(C`bless(DATA, CLASS)\->METHOD()\*(C'\fR. Note that this means that +the method specified will have to perform any modifications required on the +object (like creating new state within it, and/or reblessing it in a +different package) and then return it. The client is responsible for making +sure the method can be called via the object, and that it returns a valid +object. Defaults to an empty string. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Deepcopy\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Deepcopy(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a boolean value to enable deep copies of structures. +Cross-referencing will then only be done when absolutely essential +(i.e., to break reference cycles). Default is 0. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Quotekeys\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Quotekeys(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a boolean value to control whether hash keys are quoted. +A defined false value will avoid quoting hash keys when it looks like a simple +string. Default is 1, which will always enclose hash keys in quotes. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Bless\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Bless(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a string that specifies an alternative to the \f(CW\*(C`bless\*(C'\fR +builtin operator used to create objects. A function with the specified +name should exist, and should accept the same arguments as the builtin. +Default is \f(CW\*(C`bless\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Pair\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Pair(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a string that specifies the separator between hash keys +and values. To dump nested hash, array and scalar values to JavaScript, +use: \f(CW\*(C`$Data::Dumper::Pair = \*(Aq : \*(Aq;\*(C'\fR. Implementing \f(CW\*(C`bless\*(C'\fR in JavaScript +is left as an exercise for the reader. +A function with the specified name exists, and accepts the same arguments +as the builtin. +.Sp +Default is: \f(CW\*(C` => \*(C'\fR. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Maxdepth\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Maxdepth(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a positive integer that specifies the depth beyond which +we don't venture into a structure. Has no effect when +\&\f(CW\*(C`Data::Dumper::Purity\*(C'\fR is set. (Useful in debugger when we often don't +want to see more than enough). Default is 0, which means there is +no maximum depth. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Maxrecurse\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Maxrecurse(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a positive integer that specifies the depth beyond which +recursion into a structure will throw an exception. This is intended +as a security measure to prevent perl running out of stack space when +dumping an excessively deep structure. Can be set to 0 to remove the +limit. Default is 1000. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Useperl\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Useperl(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a boolean value which controls whether the pure Perl +implementation of \f(CW\*(C`Data::Dumper\*(C'\fR is used. The \f(CW\*(C`Data::Dumper\*(C'\fR module is +a dual implementation, with almost all functionality written in both +pure Perl and also in \s-1XS\s0 ('C'). Since the \s-1XS\s0 version is much faster, it +will always be used if possible. This option lets you override the +default behavior, usually for testing purposes only. Default is 0, which +means the \s-1XS\s0 implementation will be used if possible. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Sortkeys\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Sortkeys(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a boolean value to control whether hash keys are dumped in +sorted order. A true value will cause the keys of all hashes to be +dumped in Perl's default sort order. Can also be set to a subroutine +reference which will be called for each hash that is dumped. In this +case \f(CW\*(C`Data::Dumper\*(C'\fR will call the subroutine once for each hash, +passing it the reference of the hash. The purpose of the subroutine is +to return a reference to an array of the keys that will be dumped, in +the order that they should be dumped. Using this feature, you can +control both the order of the keys, and which keys are actually used. In +other words, this subroutine acts as a filter by which you can exclude +certain keys from being dumped. Default is 0, which means that hash keys +are not sorted. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Deparse\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Deparse(\fI[\s-1NEWVAL\s0]\fR) +.Sp +Can be set to a boolean value to control whether code references are +turned into perl source code. If set to a true value, \f(CW\*(C`B::Deparse\*(C'\fR +will be used to get the source of the code reference. In older versions, +using this option imposed a significant performance penalty when dumping +parts of a data structure other than code references, but that is no +longer the case. +.Sp +Caution : use this option only if you know that your coderefs will be +properly reconstructed by \f(CW\*(C`B::Deparse\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW$Data::Dumper::Sparseseen\fR \fIor\fR $\fI\s-1OBJ\s0\fR\->Sparseseen(\fI[\s-1NEWVAL\s0]\fR) +.Sp +By default, Data::Dumper builds up the \*(L"seen\*(R" hash of scalars that +it has encountered during serialization. This is very expensive. +This seen hash is necessary to support and even just detect circular +references. It is exposed to the user via the \f(CW\*(C`Seen()\*(C'\fR call both +for writing and reading. +.Sp +If you, as a user, do not need explicit access to the \*(L"seen\*(R" hash, +then you can set the \f(CW\*(C`Sparseseen\*(C'\fR option to allow Data::Dumper +to eschew building the \*(L"seen\*(R" hash for scalars that are known not +to possess more than one reference. This speeds up serialization +considerably if you use the \s-1XS\s0 implementation. +.Sp +Note: If you turn on \f(CW\*(C`Sparseseen\*(C'\fR, then you must not rely on the +content of the seen hash since its contents will be an +implementation detail! +.SS "Exports" +.IX Subsection "Exports" +.IP "Dumper" 4 +.IX Item "Dumper" +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Run these code snippets to get a quick feel for the behavior of this +module. When you are through with these examples, you may want to +add or change the various configuration variables described above, +to see their behavior. (See the testsuite in the Data::Dumper +distribution for more examples.) +.PP +.Vb 1 +\& use Data::Dumper; +\& +\& package Foo; +\& sub new {bless {\*(Aqa\*(Aq => 1, \*(Aqb\*(Aq => sub { return "foo" }}, $_[0]}; +\& +\& package Fuz; # a weird REF\-REF\-SCALAR object +\& sub new {bless \e($_ = \e \*(Aqfu\e\*(Aqz\*(Aq), $_[0]}; +\& +\& package main; +\& $foo = Foo\->new; +\& $fuz = Fuz\->new; +\& $boo = [ 1, [], "abcd", \e*foo, +\& {1 => \*(Aqa\*(Aq, 023 => \*(Aqb\*(Aq, 0x45 => \*(Aqc\*(Aq}, +\& \e\e"p\eq\e\*(Aqr", $foo, $fuz]; +\& +\& ######## +\& # simple usage +\& ######## +\& +\& $bar = eval(Dumper($boo)); +\& print($@) if $@; +\& print Dumper($boo), Dumper($bar); # pretty print (no array indices) +\& +\& $Data::Dumper::Terse = 1; # don\*(Aqt output names where feasible +\& $Data::Dumper::Indent = 0; # turn off all pretty print +\& print Dumper($boo), "\en"; +\& +\& $Data::Dumper::Indent = 1; # mild pretty print +\& print Dumper($boo); +\& +\& $Data::Dumper::Indent = 3; # pretty print with array indices +\& print Dumper($boo); +\& +\& $Data::Dumper::Useqq = 1; # print strings in double quotes +\& print Dumper($boo); +\& +\& $Data::Dumper::Pair = " : "; # specify hash key/value separator +\& print Dumper($boo); +\& +\& +\& ######## +\& # recursive structures +\& ######## +\& +\& @c = (\*(Aqc\*(Aq); +\& $c = \e@c; +\& $b = {}; +\& $a = [1, $b, $c]; +\& $b\->{a} = $a; +\& $b\->{b} = $a\->[1]; +\& $b\->{c} = $a\->[2]; +\& print Data::Dumper\->Dump([$a,$b,$c], [qw(a b c)]); +\& +\& +\& $Data::Dumper::Purity = 1; # fill in the holes for eval +\& print Data::Dumper\->Dump([$a, $b], [qw(*a b)]); # print as @a +\& print Data::Dumper\->Dump([$b, $a], [qw(*b a)]); # print as %b +\& +\& +\& $Data::Dumper::Deepcopy = 1; # avoid cross\-refs +\& print Data::Dumper\->Dump([$b, $a], [qw(*b a)]); +\& +\& +\& $Data::Dumper::Purity = 0; # avoid cross\-refs +\& print Data::Dumper\->Dump([$b, $a], [qw(*b a)]); +\& +\& ######## +\& # deep structures +\& ######## +\& +\& $a = "pearl"; +\& $b = [ $a ]; +\& $c = { \*(Aqb\*(Aq => $b }; +\& $d = [ $c ]; +\& $e = { \*(Aqd\*(Aq => $d }; +\& $f = { \*(Aqe\*(Aq => $e }; +\& print Data::Dumper\->Dump([$f], [qw(f)]); +\& +\& $Data::Dumper::Maxdepth = 3; # no deeper than 3 refs down +\& print Data::Dumper\->Dump([$f], [qw(f)]); +\& +\& +\& ######## +\& # object\-oriented usage +\& ######## +\& +\& $d = Data::Dumper\->new([$a,$b], [qw(a b)]); +\& $d\->Seen({\*(Aq*c\*(Aq => $c}); # stash a ref without printing it +\& $d\->Indent(3); +\& print $d\->Dump; +\& $d\->Reset\->Purity(0); # empty the seen cache +\& print join "\-\-\-\-\en", $d\->Dump; +\& +\& +\& ######## +\& # persistence +\& ######## +\& +\& package Foo; +\& sub new { bless { state => \*(Aqawake\*(Aq }, shift } +\& sub Freeze { +\& my $s = shift; +\& print STDERR "preparing to sleep\en"; +\& $s\->{state} = \*(Aqasleep\*(Aq; +\& return bless $s, \*(AqFoo::ZZZ\*(Aq; +\& } +\& +\& package Foo::ZZZ; +\& sub Thaw { +\& my $s = shift; +\& print STDERR "waking up\en"; +\& $s\->{state} = \*(Aqawake\*(Aq; +\& return bless $s, \*(AqFoo\*(Aq; +\& } +\& +\& package main; +\& use Data::Dumper; +\& $a = Foo\->new; +\& $b = Data::Dumper\->new([$a], [\*(Aqc\*(Aq]); +\& $b\->Freezer(\*(AqFreeze\*(Aq); +\& $b\->Toaster(\*(AqThaw\*(Aq); +\& $c = $b\->Dump; +\& print $c; +\& $d = eval $c; +\& print Data::Dumper\->Dump([$d], [\*(Aqd\*(Aq]); +\& +\& +\& ######## +\& # symbol substitution (useful for recreating CODE refs) +\& ######## +\& +\& sub foo { print "foo speaking\en" } +\& *other = \e&foo; +\& $bar = [ \e&other ]; +\& $d = Data::Dumper\->new([\e&other,$bar],[\*(Aq*other\*(Aq,\*(Aqbar\*(Aq]); +\& $d\->Seen({ \*(Aq*foo\*(Aq => \e&foo }); +\& print $d\->Dump; +\& +\& +\& ######## +\& # sorting and filtering hash keys +\& ######## +\& +\& $Data::Dumper::Sortkeys = \e&my_filter; +\& my $foo = { map { (ord, "$_$_$_") } \*(AqI\*(Aq..\*(AqQ\*(Aq }; +\& my $bar = { %$foo }; +\& my $baz = { reverse %$foo }; +\& print Dumper [ $foo, $bar, $baz ]; +\& +\& sub my_filter { +\& my ($hash) = @_; +\& # return an array ref containing the hash keys to dump +\& # in the order that you want them to be dumped +\& return [ +\& # Sort the keys of %$foo in reverse numeric order +\& $hash eq $foo ? (sort {$b <=> $a} keys %$hash) : +\& # Only dump the odd number keys of %$bar +\& $hash eq $bar ? (grep {$_ % 2} keys %$hash) : +\& # Sort keys in default order for all other hashes +\& (sort keys %$hash) +\& ]; +\& } +.Ve +.SH "BUGS" +.IX Header "BUGS" +Due to limitations of Perl subroutine call semantics, you cannot pass an +array or hash. Prepend it with a \f(CW\*(C`\e\*(C'\fR to pass its reference instead. This +will be remedied in time, now that Perl has subroutine prototypes. +For now, you need to use the extended usage form, and prepend the +name with a \f(CW\*(C`*\*(C'\fR to output it as a hash or array. +.PP +\&\f(CW\*(C`Data::Dumper\*(C'\fR cheats with \s-1CODE\s0 references. If a code reference is +encountered in the structure being processed (and if you haven't set +the \f(CW\*(C`Deparse\*(C'\fR flag), an anonymous subroutine that +contains the string '\*(L"\s-1DUMMY\*(R"\s0' will be inserted in its place, and a warning +will be printed if \f(CW\*(C`Purity\*(C'\fR is set. You can \f(CW\*(C`eval\*(C'\fR the result, but bear +in mind that the anonymous sub that gets created is just a placeholder. +Even using the \f(CW\*(C`Deparse\*(C'\fR flag will in some cases produce results that +behave differently after being passed to \f(CW\*(C`eval\*(C'\fR; see the documentation +for B::Deparse. +.PP +\&\s-1SCALAR\s0 objects have the weirdest looking \f(CW\*(C`bless\*(C'\fR workaround. +.PP +Pure Perl version of \f(CW\*(C`Data::Dumper\*(C'\fR escapes \s-1UTF\-8\s0 strings correctly +only in Perl 5.8.0 and later. +.SS "\s-1NOTE\s0" +.IX Subsection "NOTE" +Starting from Perl 5.8.1 different runs of Perl will have different +ordering of hash keys. The change was done for greater security, +see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec. This means that +different runs of Perl will have different Data::Dumper outputs if +the data contains hashes. If you need to have identical Data::Dumper +outputs from different runs of Perl, use the environment variable +\&\s-1PERL_HASH_SEED,\s0 see \*(L"\s-1PERL_HASH_SEED\*(R"\s0 in perlrun. Using this restores +the old (platform-specific) ordering: an even prettier solution might +be to use the \f(CW\*(C`Sortkeys\*(C'\fR filter of Data::Dumper. +.SH "AUTHOR" +.IX Header "AUTHOR" +Gurusamy Sarathy gsar@activestate.com +.PP +Copyright (c) 1996\-2019 Gurusamy Sarathy. All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "VERSION" +.IX Header "VERSION" +Version 2.174_01 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1) diff --git a/data/miniconda3/man/man3/Devel%3A%3APPPort.3 b/data/miniconda3/man/man3/Devel%3A%3APPPort.3 new file mode 100644 index 0000000000000000000000000000000000000000..6c88a957983763d1d8ef1bb86814b4d3705109d2 --- /dev/null +++ b/data/miniconda3/man/man3/Devel%3A%3APPPort.3 @@ -0,0 +1,3306 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Devel::PPPort 3" +.TH Devel::PPPort 3 "2023-12-23" "perl v5.32.1" "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" +Devel::PPPort \- Perl/Pollution/Portability +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Devel::PPPort::WriteFile(); # defaults to ./ppport.h +\& Devel::PPPort::WriteFile(\*(Aqsomeheader.h\*(Aq); +\& +\& # Same as above but retrieve contents rather than write file +\& my $contents = Devel::PPPort::GetFileContents(); +\& my $contents = Devel::PPPort::GetFileContents(\*(Aqsomeheader.h\*(Aq); +.Ve +.SH "Start using Devel::PPPort for XS projects" +.IX Header "Start using Devel::PPPort for XS projects" +.Vb 5 +\& $ cpan Devel::PPPort +\& $ perl \-MDevel::PPPort \-e\*(AqDevel::PPPort::WriteFile\*(Aq +\& $ perl ppport.h \-\-compat\-version=5.6.1 \-\-patch=diff.patch *.xs +\& $ patch \-p0 < diff.patch +\& $ echo ppport.h >>MANIFEST +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl's \s-1API\s0 has changed over time, gaining new features, new functions, +increasing its flexibility, and reducing the impact on the C namespace +environment (reduced pollution). The header file written by this module, +typically \fIppport.h\fR, attempts to bring some of the newer Perl \s-1API\s0 +features to older versions of Perl, so that you can worry less about +keeping track of old releases, but users can still reap the benefit. +.PP +\&\f(CW\*(C`Devel::PPPort\*(C'\fR contains two functions, \f(CW\*(C`WriteFile\*(C'\fR and \f(CW\*(C`GetFileContents\*(C'\fR. +\&\f(CW\*(C`WriteFile\*(C'\fR's only purpose is to write the \fIppport.h\fR C header file. +This file contains a series of macros and, if explicitly requested, functions +that allow \s-1XS\s0 modules to be built using older versions of Perl. Currently, +Perl versions from 5.003_07 to 5.31.6 are supported. +.PP +\&\f(CW\*(C`GetFileContents\*(C'\fR can be used to retrieve the file contents rather than +writing it out. +.PP +This module is used by \f(CW\*(C`h2xs\*(C'\fR to write the file \fIppport.h\fR. +.SS "Why use ppport.h?" +.IX Subsection "Why use ppport.h?" +You should use \fIppport.h\fR in modern code so that your code will work +with the widest range of Perl interpreters possible, without significant +additional work. +.PP +You should attempt to get older code to fully use \fIppport.h\fR, because the +reduced pollution of newer Perl versions is an important thing. It's so +important that the old polluting ways of original Perl modules will not be +supported very far into the future, and your module will almost certainly +break! By adapting to it now, you'll gain compatibility and a sense of +having done the electronic ecology some good. +.SS "How to use ppport.h" +.IX Subsection "How to use ppport.h" +Don't direct the users of your module to download \f(CW\*(C`Devel::PPPort\*(C'\fR. +They are most probably not \s-1XS\s0 writers. Also, don't make \fIppport.h\fR +optional. Rather, just take the most recent copy of \fIppport.h\fR that +you can find (e.g. by generating it with the latest \f(CW\*(C`Devel::PPPort\*(C'\fR +release from \s-1CPAN\s0), copy it into your project, adjust your project to +use it, and distribute the header along with your module. +.SS "Running ppport.h" +.IX Subsection "Running ppport.h" +But \fIppport.h\fR is more than just a C header. It's also a Perl script +that can check your source code. It will suggest hints and portability +notes, and can even make suggestions on how to change your code. You +can run it like any other Perl program: +.PP +.Vb 1 +\& perl ppport.h [options] [files] +.Ve +.PP +It also has embedded documentation, so you can use +.PP +.Vb 1 +\& perldoc ppport.h +.Ve +.PP +to find out more about how to use it. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.SS "WriteFile" +.IX Subsection "WriteFile" +\&\f(CW\*(C`WriteFile\*(C'\fR takes one optional argument. When called with one +argument, it expects to be passed a filename. When called with +no arguments, it defaults to the filename \fIppport.h\fR. +.PP +The function returns a true value if the file was written successfully. +Otherwise it returns a false value. +.SS "GetFileContents" +.IX Subsection "GetFileContents" +\&\f(CW\*(C`GetFileContents\*(C'\fR behaves like \f(CW\*(C`WriteFile\*(C'\fR above, but returns the contents +of the would-be file rather than writing it out. +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +\&\fIppport.h\fR supports Perl versions from 5.003_07 to 5.31.6 +in threaded and non-threaded configurations. +.SS "Provided Perl compatibility \s-1API\s0" +.IX Subsection "Provided Perl compatibility API" +The header file written by this module, typically \fIppport.h\fR, provides access +to the following elements of the Perl \s-1API\s0 that are not otherwise available in +Perl releases older than when the elements were first introduced. (Note that +many of these are not supported all the way back to 5.003_07, but it may +be that they are supported back as far as you need; see \*(L"Supported Perl \s-1API,\s0 +sorted by version\*(R" for that information.) +.PP +.Vb 10 +\& _aMY_CXT +\& aMY_CXT +\& aMY_CXT_ +\& _\|_ASSERT_ +\& aTHX +\& aTHX_ +\& aTHXR +\& aTHXR_ +\& AvFILLp +\& av_tindex +\& av_top_index +\& BOM_UTF8 +\& boolSV +\& call_argv +\& caller_cx +\& call_method +\& call_pv +\& call_sv +\& C_ARRAY_END +\& C_ARRAY_LENGTH +\& cBOOL +\& ckWARN +\& CopFILE +\& CopFILEAV +\& CopFILEGV +\& CopFILEGV_set +\& CopFILE_set +\& CopFILESV +\& CopSTASH +\& CopSTASH_eq +\& CopSTASHPV +\& CopSTASHPV_set +\& CopSTASH_set +\& CopyD +\& CPERLscope +\& croak_memory_wrap +\& croak_nocontext +\& croak_no_modify +\& croak_sv +\& croak_xs_usage +\& dAX +\& dAXMARK +\& DEFSV +\& DEFSV_set +\& die_sv +\& dITEMS +\& dMY_CXT +\& dMY_CXT_SV +\& dNOOP +\& dTHR +\& dTHX +\& dTHXa +\& dTHXoa +\& dTHXR +\& dUNDERBAR +\& dVAR +\& dXCPT +\& dXSTARG +\& END_EXTERN_C +\& ERRSV +\& eval_pv +\& eval_sv +\& EXTERN_C +\& foldEQ_utf8 +\& get_av +\& get_cv +\& get_cvn_flags +\& get_cvs +\& get_hv +\& get_sv +\& G_METHOD +\& G_RETHROW +\& grok_bin +\& grok_hex +\& grok_number +\& GROK_NUMERIC_RADIX +\& grok_numeric_radix +\& grok_oct +\& gv_fetchpvn_flags +\& gv_fetchpvs +\& gv_fetchsv +\& gv_init_pvn +\& GV_NOADD_MASK +\& gv_stashpvn +\& gv_stashpvs +\& GvSVn +\& HEf_SVKEY +\& HeUTF8 +\& hv_fetchs +\& HvNAME_get +\& HvNAMELEN_get +\& hv_stores +\& IN_LOCALE +\& IN_LOCALE_COMPILETIME +\& IN_LOCALE_RUNTIME +\& IN_PERL_COMPILETIME +\& INT2PTR +\& isALNUM +\& isALNUM_A +\& isALNUMC +\& isALNUMC_A +\& isALNUMC_L1 +\& isALPHA +\& isALPHA_A +\& isALPHA_L1 +\& isALPHA_LC_utf8_safe +\& isALPHANUMERIC +\& isALPHANUMERIC_A +\& isALPHANUMERIC_L1 +\& isALPHANUMERIC_LC +\& isALPHANUMERIC_LC_utf8_safe +\& isALPHANUMERIC_utf8_safe +\& isALPHANUMERIC_uvchr +\& isALPHA_utf8_safe +\& isALPHA_uvchr +\& isASCII +\& isASCII_A +\& isASCII_L1 +\& isASCII_LC +\& isASCII_utf8_safe +\& isASCII_uvchr +\& isBLANK +\& isBLANK_A +\& isBLANK_L1 +\& isBLANK_LC +\& isBLANK_LC_utf8_safe +\& isBLANK_utf8_safe +\& isBLANK_uvchr +\& isCNTRL +\& isCNTRL_A +\& isCNTRL_L1 +\& isCNTRL_LC_utf8_safe +\& isCNTRL_utf8_safe +\& isCNTRL_uvchr +\& isDIGIT +\& isDIGIT_A +\& isDIGIT_L1 +\& isDIGIT_LC_utf8_safe +\& isDIGIT_utf8_safe +\& isDIGIT_uvchr +\& isGRAPH +\& isGRAPH_A +\& isGRAPH_L1 +\& isGRAPH_LC_utf8_safe +\& isGRAPH_utf8_safe +\& isGRAPH_uvchr +\& isGV_with_GP +\& isIDCONT +\& isIDCONT_A +\& isIDCONT_L1 +\& isIDCONT_LC +\& isIDCONT_LC_utf8_safe +\& isIDCONT_utf8_safe +\& isIDCONT_uvchr +\& isIDFIRST +\& isIDFIRST_A +\& isIDFIRST_L1 +\& isIDFIRST_LC +\& isIDFIRST_LC_utf8_safe +\& isIDFIRST_utf8_safe +\& isIDFIRST_uvchr +\& is_invariant_string +\& isLOWER +\& isLOWER_A +\& isLOWER_L1 +\& isLOWER_LC_utf8_safe +\& isLOWER_utf8_safe +\& isLOWER_uvchr +\& IS_NUMBER_GREATER_THAN_UV_MAX +\& IS_NUMBER_INFINITY +\& IS_NUMBER_IN_UV +\& IS_NUMBER_NAN +\& IS_NUMBER_NEG +\& IS_NUMBER_NOT_INT +\& isOCTAL +\& isOCTAL_A +\& isOCTAL_L1 +\& isPRINT +\& isPRINT_A +\& isPRINT_L1 +\& isPRINT_LC_utf8_safe +\& isPRINT_utf8_safe +\& isPRINT_uvchr +\& isPSXSPC +\& isPSXSPC_A +\& isPSXSPC_L1 +\& isPSXSPC_LC_utf8_safe +\& isPSXSPC_utf8_safe +\& isPSXSPC_uvchr +\& isPUNCT +\& isPUNCT_A +\& isPUNCT_L1 +\& isPUNCT_LC_utf8_safe +\& isPUNCT_utf8_safe +\& isPUNCT_uvchr +\& isSPACE +\& isSPACE_A +\& isSPACE_L1 +\& isSPACE_LC_utf8_safe +\& isSPACE_utf8_safe +\& isSPACE_uvchr +\& isUPPER +\& isUPPER_A +\& isUPPER_L1 +\& isUPPER_LC_utf8_safe +\& isUPPER_utf8_safe +\& isUPPER_uvchr +\& isUTF8_CHAR +\& is_utf8_invariant_string +\& isWORDCHAR +\& isWORDCHAR_A +\& isWORDCHAR_L1 +\& isWORDCHAR_LC +\& isWORDCHAR_LC_utf8_safe +\& isWORDCHAR_utf8_safe +\& isWORDCHAR_uvchr +\& isXDIGIT +\& isXDIGIT_A +\& isXDIGIT_L1 +\& isXDIGIT_LC +\& isXDIGIT_LC_utf8_safe +\& isXDIGIT_utf8_safe +\& isXDIGIT_uvchr +\& IVdf +\& IVSIZE +\& IVTYPE +\& LATIN1_TO_NATIVE +\& LIKELY +\& load_module +\& memCHRs +\& memEQ +\& memEQs +\& memNE +\& memNEs +\& mess +\& mess_nocontext +\& mess_sv +\& mg_findext +\& MoveD +\& mPUSHi +\& mPUSHn +\& mPUSHp +\& mPUSHs +\& mPUSHu +\& MUTABLE_PTR +\& MUTABLE_SV +\& mXPUSHi +\& mXPUSHn +\& mXPUSHp +\& mXPUSHs +\& mXPUSHu +\& MY_CXT +\& MY_CXT_CLONE +\& MY_CXT_INIT +\& my_snprintf +\& my_sprintf +\& my_strlcat +\& my_strlcpy +\& my_strnlen +\& NATIVE_TO_LATIN1 +\& NATIVE_TO_UNI +\& newCONSTSUB +\& newRV_inc +\& newRV_noinc +\& newSVpvn +\& newSVpvn_flags +\& newSVpvn_share +\& newSVpvn_utf8 +\& newSVpvs +\& newSVpvs_flags +\& newSVpvs_share +\& newSVsv_flags +\& newSVsv_nomg +\& newSV_type +\& newSVuv +\& Newx +\& Newxc +\& Newxz +\& NOOP +\& NUM2PTR +\& NVef +\& NVff +\& NVgf +\& NVTYPE +\& OpHAS_SIBLING +\& OpLASTSIB_set +\& OpMAYBESIB_set +\& OpMORESIB_set +\& OpSIBLING +\& packWARN +\& PERL_ABS +\& PERL_BCDVERSION +\& Perl_croak_no_modify +\& PERL_HASH +\& PERL_INT_MAX +\& PERL_INT_MIN +\& PERLIO_FUNCS_CAST +\& PERLIO_FUNCS_DECL +\& PERL_LONG_MAX +\& PERL_LONG_MIN +\& PERL_MAGIC_arylen +\& PERL_MAGIC_backref +\& PERL_MAGIC_bm +\& PERL_MAGIC_collxfrm +\& PERL_MAGIC_dbfile +\& PERL_MAGIC_dbline +\& PERL_MAGIC_defelem +\& PERL_MAGIC_env +\& PERL_MAGIC_envelem +\& PERL_MAGIC_ext +\& PERL_MAGIC_fm +\& PERL_MAGIC_glob +\& PERL_MAGIC_isa +\& PERL_MAGIC_isaelem +\& PERL_MAGIC_mutex +\& PERL_MAGIC_nkeys +\& PERL_MAGIC_overload +\& PERL_MAGIC_overload_elem +\& PERL_MAGIC_overload_table +\& PERL_MAGIC_pos +\& PERL_MAGIC_qr +\& PERL_MAGIC_regdata +\& PERL_MAGIC_regdatum +\& PERL_MAGIC_regex_global +\& PERL_MAGIC_shared +\& PERL_MAGIC_shared_scalar +\& PERL_MAGIC_sig +\& PERL_MAGIC_sigelem +\& PERL_MAGIC_substr +\& PERL_MAGIC_sv +\& PERL_MAGIC_taint +\& PERL_MAGIC_tied +\& PERL_MAGIC_tiedelem +\& PERL_MAGIC_tiedscalar +\& PERL_MAGIC_utf8 +\& PERL_MAGIC_uvar +\& PERL_MAGIC_uvar_elem +\& PERL_MAGIC_vec +\& PERL_MAGIC_vstring +\& PERL_PV_ESCAPE_ALL +\& PERL_PV_ESCAPE_FIRSTCHAR +\& PERL_PV_ESCAPE_NOBACKSLASH +\& PERL_PV_ESCAPE_NOCLEAR +\& PERL_PV_ESCAPE_QUOTE +\& PERL_PV_ESCAPE_RE +\& PERL_PV_ESCAPE_UNI +\& PERL_PV_ESCAPE_UNI_DETECT +\& PERL_PV_PRETTY_DUMP +\& PERL_PV_PRETTY_ELLIPSES +\& PERL_PV_PRETTY_LTGT +\& PERL_PV_PRETTY_NOCLEAR +\& PERL_PV_PRETTY_QUOTE +\& PERL_PV_PRETTY_REGPROP +\& PERL_QUAD_MAX +\& PERL_QUAD_MIN +\& PERL_REVISION +\& PERL_SCAN_ALLOW_UNDERSCORES +\& PERL_SCAN_DISALLOW_PREFIX +\& PERL_SCAN_GREATER_THAN_UV_MAX +\& PERL_SCAN_SILENT_ILLDIGIT +\& PERL_SHORT_MAX +\& PERL_SHORT_MIN +\& PERL_SIGNALS_UNSAFE_FLAG +\& PERL_SUBVERSION +\& PERL_UCHAR_MAX +\& PERL_UCHAR_MIN +\& PERL_UINT_MAX +\& PERL_UINT_MIN +\& PERL_ULONG_MAX +\& PERL_ULONG_MIN +\& PERL_UNUSED_ARG +\& PERL_UNUSED_CONTEXT +\& PERL_UNUSED_DECL +\& PERL_UNUSED_RESULT +\& PERL_UNUSED_VAR +\& PERL_UQUAD_MAX +\& PERL_UQUAD_MIN +\& PERL_USE_GCC_BRACE_GROUPS +\& PERL_USHORT_MAX +\& PERL_USHORT_MIN +\& PERL_VERSION +\& Perl_warner +\& Perl_warner_nocontext +\& PL_bufend +\& PL_bufptr +\& PL_compiling +\& PL_copline +\& PL_curcop +\& PL_curstash +\& PL_DBsignal +\& PL_DBsingle +\& PL_DBsub +\& PL_DBtrace +\& PL_debstash +\& PL_defgv +\& PL_diehook +\& PL_dirty +\& PL_dowarn +\& PL_errgv +\& PL_error_count +\& PL_expect +\& PL_hexdigit +\& PL_hints +\& PL_in_my +\& PL_in_my_stash +\& PL_laststatval +\& PL_lex_state +\& PL_lex_stuff +\& PL_linestr +\& PL_mess_sv +\& PL_na +\& PL_no_modify +\& PL_parser +\& PL_perldb +\& PL_perl_destruct_level +\& PL_ppaddr +\& PL_rsfp +\& PL_rsfp_filters +\& PL_signals +\& PL_stack_base +\& PL_stack_sp +\& PL_statcache +\& PL_stdingv +\& PL_Sv +\& PL_sv_arenaroot +\& PL_sv_no +\& PL_sv_undef +\& PL_sv_yes +\& PL_tainted +\& PL_tainting +\& PL_tokenbuf +\& PL_Xpv +\& _pMY_CXT +\& pMY_CXT +\& pMY_CXT_ +\& Poison +\& PoisonFree +\& PoisonNew +\& PoisonWith +\& pTHX +\& pTHX_ +\& PTR2IV +\& PTR2nat +\& PTR2NV +\& PTR2ul +\& PTR2UV +\& PTRV +\& PUSHmortal +\& PUSHu +\& pv_display +\& pv_escape +\& pv_pretty +\& REPLACEMENT_CHARACTER_UTF8 +\& SAVE_DEFSV +\& START_EXTERN_C +\& START_MY_CXT +\& start_subparse +\& STMT_END +\& STMT_START +\& STR_WITH_LEN +\& sv_2pvbyte +\& sv_2pvbyte_nolen +\& sv_2pv_flags +\& sv_2pv_nolen +\& sv_2uv +\& sv_catpvf_mg +\& sv_catpvf_mg_nocontext +\& sv_catpv_mg +\& sv_catpvn_mg +\& sv_catpvn_nomg +\& sv_catpvs +\& sv_catsv_mg +\& sv_catsv_nomg +\& SV_CONST_RETURN +\& SV_COW_DROP_PV +\& SV_COW_SHARED_HASH_KEYS +\& SVf +\& SVfARG +\& SVf_UTF8 +\& SvGETMAGIC +\& SV_GMAGIC +\& SV_HAS_TRAILING_NUL +\& SV_IMMEDIATE_UNREF +\& SvIV_nomg +\& sv_len_utf8 +\& sv_len_utf8_nomg +\& sv_magic_portable +\& SvMAGIC_set +\& sv_mortalcopy_flags +\& SV_MUTABLE_RETURN +\& SV_NOSTEAL +\& SvNV_nomg +\& SvPVbyte +\& SvPV_const +\& SvPV_flags +\& SvPV_flags_const +\& SvPV_flags_const_nolen +\& SvPV_flags_mutable +\& SvPV_force +\& SvPV_force_flags +\& SvPV_force_flags_mutable +\& SvPV_force_flags_nolen +\& SvPV_force_mutable +\& SvPV_force_nolen +\& SvPV_force_nomg +\& SvPV_force_nomg_nolen +\& SvPV_mutable +\& sv_pvn_force_flags +\& sv_pvn_nomg +\& SvPV_nolen +\& SvPV_nolen_const +\& SvPV_nomg +\& SvPV_nomg_const +\& SvPV_nomg_const_nolen +\& SvPV_nomg_nolen +\& SvPV_renew +\& SvPVX_const +\& SvPVX_mutable +\& SvREFCNT_inc +\& SvREFCNT_inc_NN +\& SvREFCNT_inc_simple +\& SvREFCNT_inc_simple_NN +\& SvREFCNT_inc_simple_void +\& SvREFCNT_inc_simple_void_NN +\& SvREFCNT_inc_void +\& SvREFCNT_inc_void_NN +\& SvRV_set +\& SvRX +\& SvRXOK +\& sv_setiv_mg +\& sv_setnv_mg +\& sv_setpvf_mg +\& sv_setpvf_mg_nocontext +\& sv_setpv_mg +\& sv_setpvn_mg +\& sv_setpvs +\& sv_setsv_flags +\& sv_setsv_mg +\& sv_setsv_nomg +\& sv_setuv +\& sv_setuv_mg +\& SvSHARED_HASH +\& SV_SMAGIC +\& SvSTASH_set +\& SvTRUE_nomg +\& sv_unmagicext +\& SvUOK +\& sv_usepvn_mg +\& SvUTF8 +\& SV_UTF8_NO_ENCODING +\& sv_uv +\& SvUV +\& SvUV_nomg +\& SvUV_set +\& SvUVX +\& SvUVx +\& SvUVXx +\& sv_vcatpvf +\& sv_vcatpvf_mg +\& sv_vsetpvf +\& sv_vsetpvf_mg +\& SvVSTRING_mg +\& switch_to_global_locale +\& sync_locale +\& toFOLD_utf8_safe +\& toFOLD_uvchr +\& toLOWER_utf8_safe +\& toLOWER_uvchr +\& toTITLE_utf8_safe +\& toTITLE_uvchr +\& toUPPER_utf8_safe +\& toUPPER_uvchr +\& UNDERBAR +\& UNICODE_REPLACEMENT +\& UNI_TO_NATIVE +\& UNLIKELY +\& UTF8_CHK_SKIP +\& UTF8f +\& UTF8fARG +\& UTF8_IS_INVARIANT +\& UTF8_MAXBYTES +\& UTF8_MAXBYTES_CASE +\& UTF8_SAFE_SKIP +\& UTF8_SKIP +\& utf8_to_uvchr +\& utf8_to_uvchr_buf +\& UVCHR_IS_INVARIANT +\& UVCHR_SKIP +\& UVof +\& UVSIZE +\& UVTYPE +\& UVuf +\& UVXf +\& UVxf +\& vload_module +\& vmess +\& vnewSVpvf +\& WARN_ALL +\& WARN_AMBIGUOUS +\& WARN_ASSERTIONS +\& WARN_BAREWORD +\& WARN_CLOSED +\& WARN_CLOSURE +\& WARN_DEBUGGING +\& WARN_DEPRECATED +\& WARN_DIGIT +\& warner +\& WARN_EXEC +\& WARN_EXITING +\& WARN_GLOB +\& WARN_INPLACE +\& WARN_INTERNAL +\& WARN_IO +\& WARN_LAYER +\& WARN_MALLOC +\& WARN_MISC +\& WARN_NEWLINE +\& warn_nocontext +\& WARN_NUMERIC +\& WARN_ONCE +\& WARN_OVERFLOW +\& WARN_PACK +\& WARN_PARENTHESIS +\& WARN_PIPE +\& WARN_PORTABLE +\& WARN_PRECEDENCE +\& WARN_PRINTF +\& WARN_PROTOTYPE +\& WARN_QW +\& WARN_RECURSION +\& WARN_REDEFINE +\& WARN_REGEXP +\& WARN_RESERVED +\& WARN_SEMICOLON +\& WARN_SEVERE +\& WARN_SIGNAL +\& WARN_SUBSTR +\& warn_sv +\& WARN_SYNTAX +\& WARN_TAINT +\& WARN_THREADS +\& WARN_UNINITIALIZED +\& WARN_UNOPENED +\& WARN_UNPACK +\& WARN_UNTIE +\& WARN_UTF8 +\& WARN_VOID +\& WIDEST_UTYPE +\& XCPT_CATCH +\& XCPT_RETHROW +\& XCPT_TRY_END +\& XCPT_TRY_START +\& XPUSHmortal +\& XPUSHu +\& XSprePUSH +\& XSPROTO +\& XSRETURN +\& XSRETURN_UV +\& XST_mUV +\& ZeroD +.Ve +.SS "Supported Perl \s-1API,\s0 sorted by version" +.IX Subsection "Supported Perl API, sorted by version" +The table in this section lists all the Perl \s-1API\s0 elements available, sorted by +the version in which support starts. This includes all the elements that +\&\fIppport.h\fR helps out with, as well as those elements that it doesn't. +.PP +In some cases, it doesn't make practical sense for elements to be supported +earlier than they already are. For example, \s-1UTF\-8\s0 functionality isn't +provided prior to the release where it was first introduced. +.PP +But in other cases, it just is that no one has implemented support yet. +Patches welcome! Some elements are ported backward for some releases, but not +all the way to 5.003_07. +.PP +If an element, call it \s-1ELEMENT,\s0 is not on this list, try using this command to +find out why: +.PP +.Vb 1 +\& perl ppport.h \-\-api\-info=ELEMENT +.Ve +.PP +A few of the entries in the list below are marked as \s-1DEPRECATED.\s0 You should +not use these for new code, and should be converting existing uses to use +something better. +.PP +Some of the entries in the list are marked as \*(L"experimental\*(R". This means +these should not generally be used. They may be removed or changed without +notice. You can ask why they are experimental by sending email to +. +.PP +And some of the entries are marked as \*(L"undocumented\*(R". This means that they +aren't necessarily considered stable, and could be changed or removed in some +future release without warning. It is therefore a bad idea to use them +without further checking. It could be that these are considered to be for +perl core use only; or it could be, though, that \f(CW\*(C`Devel::PPPort\*(C'\fR doesn't know +where to find their documentation, or that it's just an oversight that they +haven't been documented. If you want to use one, and potentially have it +backported, first send mail to . +.IP "perl 5.31.5" 4 +.IX Item "perl 5.31.5" +.Vb 10 +\& gimme_V (marked experimental) (undocumented) +\& isALPHANUMERIC_utf8 +\& isALPHA_utf8 +\& isASCII_utf8 +\& isBLANK_utf8 +\& isCNTRL_utf8 +\& isDIGIT_utf8 +\& isGRAPH_utf8 +\& isIDCONT_utf8 +\& isIDFIRST_utf8 +\& isLOWER_utf8 +\& isPRINT_utf8 +\& isPSXSPC_utf8 +\& isPUNCT_utf8 +\& isSPACE_utf8 +\& isUPPER_utf8 +\& isWORDCHAR_utf8 +\& isXDIGIT_utf8 +\& toFOLD_utf8 +\& toLOWER_utf8 +\& toTITLE_utf8 +\& toUPPER_utf8 +.Ve +.IP "perl 5.31.4" 4 +.IX Item "perl 5.31.4" +.Vb 12 +\& sv_2pvbyte_flags (undocumented) +\& sv_2pvutf8_flags (undocumented) +\& SvAMAGIC_off (undocumented) +\& SvAMAGIC_on (undocumented) +\& SvPVbyte_nomg +\& SvPVbyte_or_null +\& SvPVbyte_or_null_nomg +\& SvPVutf8_nomg +\& SvPVutf8_or_null +\& SvPVutf8_or_null_nomg +\& sv_utf8_downgrade_flags +\& sv_utf8_downgrade_nomg +.Ve +.IP "perl 5.31.3" 4 +.IX Item "perl 5.31.3" +.Vb 5 +\& parse_subsignature (marked experimental) +\& SANE_ERRSV +\& STORE_LC_NUMERIC_SET_TO_NEEDED_IN +\& WITH_LC_NUMERIC_SET_TO_NEEDED +\& WITH_LC_NUMERIC_SET_TO_NEEDED_IN +.Ve +.IP "perl 5.29.10" 4 +.IX Item "perl 5.29.10" +.Vb 2 +\& my_strtod +\& Strtod +.Ve +.IP "perl 5.29.9" 4 +.IX Item "perl 5.29.9" +.Vb 3 +\& WARN_EXPERIMENTAL_\|_PRIVATE_USE +\& WARN_EXPERIMENTAL_\|_UNIPROP_WILDCARDS +\& WARN_EXPERIMENTAL_\|_VLB +.Ve +.IP "perl 5.27.9" 4 +.IX Item "perl 5.27.9" +.Vb 6 +\& PERL_MAGIC_nonelem +\& thread_locale_init (marked experimental) (undocumented) +\& thread_locale_term (marked experimental) (undocumented) +\& utf8n_to_uvchr_msgs (marked experimental) +\& uvchr_to_utf8_flags_msgs (marked experimental) +\& WARN_EXPERIMENTAL_\|_ALPHA_ASSERTIONS +.Ve +.IP "perl 5.27.8" 4 +.IX Item "perl 5.27.8" +.Vb 6 +\& cx_popgiven (marked experimental) (undocumented) +\& cx_popwhen (marked experimental) (undocumented) +\& cx_pushgiven (marked experimental) (undocumented) +\& cx_pushwhen (marked experimental) (undocumented) +\& newWHENOP +\& WARN_EXPERIMENTAL_\|_SCRIPT_RUN +.Ve +.IP "perl 5.27.7" 4 +.IX Item "perl 5.27.7" +.Vb 1 +\& WARN_SHADOW +.Ve +.IP "perl 5.27.6" 4 +.IX Item "perl 5.27.6" +.Vb 1 +\& wrap_keyword_plugin (marked experimental) +.Ve +.IP "perl 5.27.4" 4 +.IX Item "perl 5.27.4" +.Vb 3 +\& mg_freeext +\& Perl_langinfo +\& sv_rvunweaken +.Ve +.IP "perl 5.27.3" 4 +.IX Item "perl 5.27.3" +.Vb 3 +\& cv_get_call_checker_flags +\& PL_sv_zero +\& sv_string_from_errnum +.Ve +.IP "perl 5.27.2" 4 +.IX Item "perl 5.27.2" +.Vb 3 +\& Perl_setlocale +\& UTF8_DISALLOW_PERL_EXTENDED +\& UTF8_WARN_PERL_EXTENDED +.Ve +.IP "perl 5.27.1" 4 +.IX Item "perl 5.27.1" +.Vb 2 +\& bytes_from_utf8_loc (marked experimental) (undocumented) +\& is_utf8_invariant_string_loc +.Ve +.IP "perl 5.25.10" 4 +.IX Item "perl 5.25.10" +.Vb 1 +\& op_class +.Ve +.IP "perl 5.25.9" 4 +.IX Item "perl 5.25.9" +.Vb 1 +\& isASCII_LC_utf8_safe +.Ve +.IP "perl 5.25.8" 4 +.IX Item "perl 5.25.8" +.Vb 1 +\& sv_set_undef +.Ve +.IP "perl 5.25.7" 4 +.IX Item "perl 5.25.7" +.Vb 4 +\& CLEAR_ERRSV +\& utf8_hop_back +\& utf8_hop_forward +\& utf8_hop_safe +.Ve +.IP "perl 5.25.6" 4 +.IX Item "perl 5.25.6" +.Vb 10 +\& is_c9strict_utf8_string +\& is_c9strict_utf8_string_loc +\& is_c9strict_utf8_string_loclen +\& is_strict_utf8_string +\& is_strict_utf8_string_loc +\& is_strict_utf8_string_loclen +\& is_utf8_fixed_width_buf_flags +\& is_utf8_fixed_width_buf_loc_flags +\& is_utf8_fixed_width_buf_loclen_flags +\& is_utf8_string_flags +\& is_utf8_string_loc_flags +\& is_utf8_string_loclen_flags +\& SvPVCLEAR +\& sv_setpv_bufsize +\& utf8n_to_uvchr_error +.Ve +.IP "perl 5.25.5" 4 +.IX Item "perl 5.25.5" +.Vb 7 +\& isC9_STRICT_UTF8_CHAR +\& isSTRICT_UTF8_CHAR +\& isUTF8_CHAR_flags +\& is_utf8_valid_partial_char +\& is_utf8_valid_partial_char_flags +\& UTF8_DISALLOW_ILLEGAL_C9_INTERCHANGE +\& UTF8_WARN_ILLEGAL_C9_INTERCHANGE +.Ve +.IP "perl 5.25.3" 4 +.IX Item "perl 5.25.3" +.Vb 2 +\& hv_bucket_ratio (marked experimental) +\& WARN_EXPERIMENTAL_\|_DECLARED_REFS +.Ve +.IP "perl 5.25.1" 4 +.IX Item "perl 5.25.1" +.Vb 1 +\& op_parent +.Ve +.IP "perl 5.23.8" 4 +.IX Item "perl 5.23.8" +.Vb 10 +\& clear_defarray (undocumented) +\& cx_popblock (marked experimental) (undocumented) +\& cx_popeval (marked experimental) (undocumented) +\& cx_popformat (marked experimental) (undocumented) +\& cx_poploop (marked experimental) (undocumented) +\& cx_popsub (marked experimental) (undocumented) +\& cx_popsub_args (marked experimental) (undocumented) +\& cx_popsub_common (marked experimental) (undocumented) +\& cx_pushblock (marked experimental) (undocumented) +\& cx_pusheval (marked experimental) (undocumented) +\& cx_pushformat (marked experimental) (undocumented) +\& cx_pushloop_for (marked experimental) (undocumented) +\& cx_pushloop_plain (marked experimental) (undocumented) +\& cx_pushsub (marked experimental) (undocumented) +\& cx_topblock (marked experimental) (undocumented) +\& leave_adjust_stacks (marked experimental) (undocumented) +\& savetmps (marked experimental) (undocumented) +.Ve +.IP "perl 5.23.2" 4 +.IX Item "perl 5.23.2" +.Vb 3 +\& UTF8_IS_NONCHAR +\& UTF8_IS_SUPER +\& UTF8_IS_SURROGATE +.Ve +.IP "perl 5.23.0" 4 +.IX Item "perl 5.23.0" +.Vb 7 +\& DOUBLEINFBYTES +\& DOUBLEMANTBITS +\& DOUBLENANBYTES +\& LONGDBLINFBYTES +\& LONGDBLMANTBITS +\& LONGDBLNANBYTES +\& NVMANTBITS +.Ve +.IP "perl 5.21.10" 4 +.IX Item "perl 5.21.10" +.Vb 4 +\& DECLARATION_FOR_LC_NUMERIC_MANIPULATION +\& RESTORE_LC_NUMERIC +\& STORE_LC_NUMERIC_FORCE_TO_UNDERLYING +\& STORE_LC_NUMERIC_SET_TO_NEEDED +.Ve +.IP "perl 5.21.9" 4 +.IX Item "perl 5.21.9" +.Vb 1 +\& WARN_EXPERIMENTAL_\|_BITWISE +.Ve +.IP "perl 5.21.8" 4 +.IX Item "perl 5.21.8" +.Vb 3 +\& sv_get_backrefs (marked experimental) +\& WARN_EXPERIMENTAL_\|_CONST_ATTR +\& WARN_EXPERIMENTAL_\|_RE_STRICT +.Ve +.IP "perl 5.21.7" 4 +.IX Item "perl 5.21.7" +.Vb 11 +\& newPADNAMELIST (marked experimental) +\& newPADNAMEouter (marked experimental) +\& newPADNAMEpvn (marked experimental) +\& newUNOP_AUX +\& padnamelist_fetch (marked experimental) +\& PadnamelistREFCNT (marked experimental) +\& PadnamelistREFCNT_dec (marked experimental) +\& padnamelist_store (marked experimental) +\& PadnameREFCNT (marked experimental) +\& PadnameREFCNT_dec (marked experimental) +\& PADNAMEt_OUTER +.Ve +.IP "perl 5.21.6" 4 +.IX Item "perl 5.21.6" +.Vb 4 +\& DOUBLEKIND +\& newDEFSVOP +\& op_convert_list +\& WARN_LOCALE +.Ve +.IP "perl 5.21.5" 4 +.IX Item "perl 5.21.5" +.Vb 9 +\& cv_name +\& CV_NAME_NOTQUAL +\& newMETHOP +\& newMETHOP_named +\& PERL_MAGIC_debugvar +\& PERL_MAGIC_lvref +\& SV_CATBYTES +\& SV_CATUTF8 +\& WARN_EXPERIMENTAL_\|_REFALIASING +.Ve +.IP "perl 5.21.4" 4 +.IX Item "perl 5.21.4" +.Vb 4 +\& CALL_CHECKER_REQUIRE_GV +\& cv_set_call_checker_flags +\& grok_infnan +\& isinfnan +.Ve +.IP "perl 5.21.2" 4 +.IX Item "perl 5.21.2" +.Vb 5 +\& grok_number_flags +\& op_sibling_splice +\& PERL_SCAN_TRAILING +\& WARN_MISSING +\& WARN_REDUNDANT +.Ve +.IP "perl 5.21.1" 4 +.IX Item "perl 5.21.1" +.Vb 2 +\& markstack_grow (undocumented) +\& WARN_EXPERIMENTAL_\|_WIN32_PERLIO +.Ve +.IP "perl 5.19.10" 4 +.IX Item "perl 5.19.10" +.Vb 1 +\& OP_TYPE_IS_OR_WAS +.Ve +.IP "perl 5.19.9" 4 +.IX Item "perl 5.19.9" +.Vb 1 +\& WARN_EXPERIMENTAL_\|_SIGNATURES +.Ve +.IP "perl 5.19.7" 4 +.IX Item "perl 5.19.7" +.Vb 1 +\& OP_TYPE_IS +.Ve +.IP "perl 5.19.5" 4 +.IX Item "perl 5.19.5" +.Vb 1 +\& WARN_EXPERIMENTAL_\|_POSTDEREF +.Ve +.IP "perl 5.19.4" 4 +.IX Item "perl 5.19.4" +.Vb 3 +\& IS_SAFE_SYSCALL +\& is_safe_syscall +\& WARN_SYSCALLS +.Ve +.IP "perl 5.19.3" 4 +.IX Item "perl 5.19.3" +.Vb 3 +\& PERL_EXIT_ABORT +\& PERL_EXIT_WARN +\& sv_pos_b2u_flags +.Ve +.IP "perl 5.19.2" 4 +.IX Item "perl 5.19.2" +.Vb 1 +\& G_METHOD_NAMED +.Ve +.IP "perl 5.19.1" 4 +.IX Item "perl 5.19.1" +.Vb 3 +\& toFOLD +\& toLOWER_L1 +\& toTITLE +.Ve +.IP "perl 5.18.0" 4 +.IX Item "perl 5.18.0" +.Vb 1 +\& hv_rand_set (undocumented) +.Ve +.IP "perl 5.17.11" 4 +.IX Item "perl 5.17.11" +.Vb 1 +\& WARN_EXPERIMENTAL_\|_SMARTMATCH +.Ve +.IP "perl 5.17.8" 4 +.IX Item "perl 5.17.8" +.Vb 3 +\& isALPHANUMERIC_LC_uvchr +\& isIDCONT_LC_uvchr +\& WARN_EXPERIMENTAL_\|_REGEX_SETS +.Ve +.IP "perl 5.17.7" 4 +.IX Item "perl 5.17.7" +.Vb 7 +\& isALNUMC_LC_uvchr +\& isASCII_LC_uvchr +\& isBLANK_LC_uvchr +\& isPSXSPC_LC_uvchr +\& isWORDCHAR_LC_uvchr +\& isXDIGIT_LC_uvchr +\& SvREFCNT_dec_NN +.Ve +.IP "perl 5.17.6" 4 +.IX Item "perl 5.17.6" +.Vb 1 +\& READ_XDIGIT +.Ve +.IP "perl 5.17.5" 4 +.IX Item "perl 5.17.5" +.Vb 1 +\& WARN_EXPERIMENTAL_\|_LEXICAL_SUBS +.Ve +.IP "perl 5.17.4" 4 +.IX Item "perl 5.17.4" +.Vb 10 +\& GV_SUPER +\& newMYSUB (undocumented) +\& newSVpadname (marked experimental) +\& PadARRAY (marked experimental) +\& PadlistARRAY (marked experimental) +\& PadlistMAX (marked experimental) +\& PadlistNAMES (marked experimental) +\& PadlistNAMESARRAY (marked experimental) +\& PadlistNAMESMAX (marked experimental) +\& PadlistREFCNT (marked experimental) +\& PadMAX (marked experimental) +\& PadnameLEN (marked experimental) +\& PadnamelistARRAY (marked experimental) +\& PadnamelistMAX (marked experimental) +\& PadnamePV (marked experimental) +\& PadnameSV (marked experimental) +\& PadnameUTF8 (marked experimental) +\& PL_comppad_name (marked experimental) +\& WARN_EXPERIMENTAL +.Ve +.IP "perl 5.17.2" 4 +.IX Item "perl 5.17.2" +.Vb 3 +\& sv_copypv_flags +\& sv_copypv_nomg +\& sv_vcatpvfn_flags +.Ve +.IP "perl 5.17.1" 4 +.IX Item "perl 5.17.1" +.Vb 1 +\& alloccopstash (marked experimental) +.Ve +.IP "perl 5.16.0" 4 +.IX Item "perl 5.16.0" +.Vb 2 +\& CopLABEL_len +\& CopLABEL_len_flags +.Ve +.IP "perl 5.15.8" 4 +.IX Item "perl 5.15.8" +.Vb 2 +\& is_utf8_char_buf +\& wrap_op_checker +.Ve +.IP "perl 5.15.6" 4 +.IX Item "perl 5.15.6" +.Vb 1 +\& newCONSTSUB_flags +.Ve +.IP "perl 5.15.4" 4 +.IX Item "perl 5.15.4" +.Vb 10 +\& gv_autoload_pv (undocumented) +\& gv_autoload_pvn (undocumented) +\& gv_autoload_sv (undocumented) +\& gv_fetchmethod_pv_flags (marked experimental) (undocumented) +\& gv_fetchmethod_pvn_flags (marked experimental) (undocumented) +\& gv_fetchmethod_sv_flags (marked experimental) (undocumented) +\& gv_fetchmeth_pv +\& gv_fetchmeth_pv_autoload +\& gv_fetchmeth_pvn +\& gv_fetchmeth_pvn_autoload +\& gv_fetchmeth_sv +\& gv_fetchmeth_sv_autoload +\& gv_init_pv +\& gv_init_sv +\& HvENAMELEN +\& HvENAMEUTF8 +\& HvNAMELEN +\& HvNAMEUTF8 +\& newGVgen_flags (undocumented) +\& sv_derived_from_pv +\& sv_derived_from_pvn +\& sv_derived_from_sv +\& sv_does_pv +\& sv_does_pvn +\& sv_does_sv +\& sv_ref +\& whichsig_pv (undocumented) +\& whichsig_pvn (undocumented) +\& whichsig_sv (undocumented) +.Ve +.IP "perl 5.15.3" 4 +.IX Item "perl 5.15.3" +.Vb 1 +\& GV_ADDMG +.Ve +.IP "perl 5.15.2" 4 +.IX Item "perl 5.15.2" +.Vb 2 +\& XS_EXTERNAL +\& XS_INTERNAL +.Ve +.IP "perl 5.15.1" 4 +.IX Item "perl 5.15.1" +.Vb 10 +\& cop_fetch_label (marked experimental) +\& cop_store_label (marked experimental) +\& pad_add_name_pv +\& pad_add_name_pvn +\& pad_add_name_pvs +\& pad_add_name_sv +\& pad_findmy_pv +\& pad_findmy_pvn +\& pad_findmy_pvs +\& pad_findmy_sv +.Ve +.IP "perl 5.13.10" 4 +.IX Item "perl 5.13.10" +.Vb 3 +\& WARN_NONCHAR +\& WARN_NON_UNICODE +\& WARN_SURROGATE +.Ve +.IP "perl 5.13.9" 4 +.IX Item "perl 5.13.9" +.Vb 9 +\& PERL_PV_ESCAPE_NONASCII +\& UTF8_DISALLOW_ILLEGAL_INTERCHANGE +\& UTF8_DISALLOW_NONCHAR +\& UTF8_DISALLOW_SUPER +\& UTF8_DISALLOW_SURROGATE +\& UTF8_WARN_ILLEGAL_INTERCHANGE +\& UTF8_WARN_NONCHAR +\& UTF8_WARN_SUPER +\& UTF8_WARN_SURROGATE +.Ve +.IP "perl 5.13.8" 4 +.IX Item "perl 5.13.8" +.Vb 5 +\& foldEQ_latin1 (undocumented) +\& parse_arithexpr (marked experimental) +\& parse_fullexpr (marked experimental) +\& parse_listexpr (marked experimental) +\& parse_termexpr (marked experimental) +.Ve +.IP "perl 5.13.7" 4 +.IX Item "perl 5.13.7" +.Vb 10 +\& amagic_deref_call (undocumented) +\& bytes_cmp_utf8 +\& cophh_2hv (marked experimental) +\& cophh_copy (marked experimental) +\& cophh_delete_pv (marked experimental) +\& cophh_delete_pvn (marked experimental) +\& cophh_delete_pvs (marked experimental) +\& cophh_delete_sv (marked experimental) +\& cophh_fetch_pv (marked experimental) +\& cophh_fetch_pvn (marked experimental) +\& cophh_fetch_pvs (marked experimental) +\& cophh_fetch_sv (marked experimental) +\& cophh_free (marked experimental) +\& COPHH_KEY_UTF8 +\& cophh_new_empty (marked experimental) +\& cophh_store_pv (marked experimental) +\& cophh_store_pvn (marked experimental) +\& cophh_store_pvs (marked experimental) +\& cophh_store_sv (marked experimental) +\& cop_hints_2hv +\& cop_hints_fetch_pv +\& cop_hints_fetch_pvn +\& cop_hints_fetch_pvs +\& cop_hints_fetch_sv +\& custom_op_register +\& dirp_dup (undocumented) +\& HvENAME +\& newFOROP +\& newWHILEOP +\& OP_CLASS +\& op_lvalue (marked experimental) +\& op_scope (marked experimental) +\& parse_barestmt (marked experimental) +\& parse_block (marked experimental) +\& parse_label (marked experimental) +\& PARSE_OPTIONAL +\& PL_phase +\& XopDISABLE +\& XopENABLE +\& XopENTRY +\& XopENTRYCUSTOM +\& XopENTRY_set +\& XopFLAGS +.Ve +.IP "perl 5.13.6" 4 +.IX Item "perl 5.13.6" +.Vb 10 +\& ck_entersub_args_list +\& ck_entersub_args_proto +\& ck_entersub_args_proto_or_list +\& cv_get_call_checker +\& cv_set_call_checker +\& lex_stuff_pv (marked experimental) +\& LINKLIST +\& mg_free_type +\& newSVpv_share +\& op_append_elem +\& op_append_list +\& op_contextualize +\& op_linklist +\& op_prepend_elem +\& parse_stmtseq (marked experimental) +\& PERL_MAGIC_checkcall +\& rv2cv_op_cv +\& RV2CVOPCV_MARK_EARLY +\& RV2CVOPCV_RETURN_NAME_GV +\& savesharedpvs +\& savesharedsvpv +\& sv_2bool_flags +\& sv_catpv_flags +\& sv_catpv_nomg +\& sv_catpvs_flags +\& sv_catpvs_mg +\& sv_catpvs_nomg +\& sv_cmp_flags +\& sv_cmp_locale_flags +\& sv_collxfrm_flags +\& sv_eq_flags +\& sv_setpvs_mg +\& sv_setref_pvs +.Ve +.IP "perl 5.13.5" 4 +.IX Item "perl 5.13.5" +.Vb 3 +\& lex_stuff_pvs (marked experimental) +\& parse_fullstmt (marked experimental) +\& PL_rpeepp +.Ve +.IP "perl 5.13.4" 4 +.IX Item "perl 5.13.4" +.Vb 1 +\& XS_APIVERSION_BOOTCHECK +.Ve +.IP "perl 5.13.3" 4 +.IX Item "perl 5.13.3" +.Vb 1 +\& blockhook_register (marked experimental) +.Ve +.IP "perl 5.13.2" 4 +.IX Item "perl 5.13.2" +.Vb 9 +\& clone_params_del (undocumented) +\& clone_params_new (undocumented) +\& find_rundefsv +\& foldEQ +\& foldEQ_locale +\& hv_fill +\& sv_dec_nomg +\& sv_dup_inc (undocumented) +\& sv_inc_nomg +.Ve +.IP "perl 5.13.1" 4 +.IX Item "perl 5.13.1" +.Vb 1 +\& sv_2nv_flags +.Ve +.IP "perl 5.11.5" 4 +.IX Item "perl 5.11.5" +.Vb 1 +\& sv_pos_u2b_flags +.Ve +.IP "perl 5.11.4" 4 +.IX Item "perl 5.11.4" +.Vb 2 +\& prescan_version +\& WARN_ILLEGALPROTO +.Ve +.IP "perl 5.11.2" 4 +.IX Item "perl 5.11.2" +.Vb 10 +\& CHARBITS +\& ENTER_with_name +\& LEAVE_with_name +\& lex_bufutf8 (marked experimental) +\& lex_discard_to (marked experimental) +\& lex_grow_linestr (marked experimental) +\& LEX_KEEP_PREVIOUS +\& lex_next_chunk (marked experimental) +\& lex_peek_unichar (marked experimental) +\& lex_read_space (marked experimental) +\& lex_read_to (marked experimental) +\& lex_read_unichar (marked experimental) +\& lex_stuff_pvn (marked experimental) +\& lex_stuff_sv (marked experimental) +\& LEX_STUFF_UTF8 +\& lex_unstuff (marked experimental) +\& PL_keyword_plugin (marked experimental) +.Ve +.IP "perl 5.11.1" 4 +.IX Item "perl 5.11.1" +.Vb 2 +\& ck_warner (undocumented) +\& ck_warner_d (undocumented) +.Ve +.IP "perl 5.11.0" 4 +.IX Item "perl 5.11.0" +.Vb 10 +\& av_iter_p (undocumented) +\& gv_add_by_type (undocumented) +\& Gv_AMupdate (undocumented) +\& is_ascii_string +\& is_invariant_string +\& is_utf8_invariant_string +\& PL_opfreehook +\& pregfree2 (undocumented) +\& PUSH_MULTICALL +\& re_dup_guts (undocumented) +\& save_adelete (undocumented) +\& save_aelem_flags (undocumented) +\& save_hdelete (undocumented) +\& save_helem_flags (undocumented) +\& SvOOK_offset +\& SVt_REGEXP +\& sv_utf8_upgrade_flags_grow +\& WARN_IMPRECISION +.Ve +.IP "perl 5.10.1" 4 +.IX Item "perl 5.10.1" +.Vb 10 +\& mro_get_from_name (undocumented) +\& mro_get_private_data +\& mro_register +\& mro_set_mro (undocumented) +\& mro_set_private_data +\& save_freeop (undocumented) +\& save_hints (undocumented) +\& save_op (undocumented) +\& save_padsv_and_mortalize (undocumented) +\& save_pushi32ptr (undocumented) +\& save_pushptr (undocumented) +\& save_pushptrptr (undocumented) +\& sv_insert_flags +.Ve +.IP "perl 5.10.0" 4 +.IX Item "perl 5.10.0" +.Vb 11 +\& hv_common (undocumented) +\& hv_common_key_len (undocumented) +\& reentrant_free (undocumented) +\& reentrant_init (undocumented) +\& reentrant_retry (undocumented) +\& reentrant_size (undocumented) +\& START_MY_CXT +\& sv_destroyable +\& sys_init (undocumented) +\& sys_init3 (undocumented) +\& sys_term (undocumented) +.Ve +.IP "perl 5.9.5" 4 +.IX Item "perl 5.9.5" +.Vb 10 +\& av_create_and_push (marked experimental) +\& av_create_and_unshift_one (marked experimental) +\& CopLABEL +\& gv_fetchfile_flags (undocumented) +\& lex_start (marked experimental) +\& mro_get_linear_isa +\& mro_method_changed_in +\& my_dirfd (undocumented) +\& Perl_signbit (marked experimental) +\& pregcomp (undocumented) +\& ptr_table_clear (DEPRECATED) (undocumented) +\& ptr_table_fetch (undocumented) +\& ptr_table_free (undocumented) +\& ptr_table_new (undocumented) +\& ptr_table_split (undocumented) +\& ptr_table_store (undocumented) +\& re_compile (undocumented) +\& regfree_internal (undocumented) +\& reg_named_buff_all (undocumented) +\& reg_named_buff_exists (undocumented) +\& reg_named_buff_fetch (undocumented) +\& reg_named_buff_firstkey (undocumented) +\& reg_named_buff_nextkey (undocumented) +\& reg_named_buff_scalar (undocumented) +\& savesharedpvn +\& scan_vstring (undocumented) +\& upg_version +.Ve +.IP "perl 5.9.4" 4 +.IX Item "perl 5.9.4" +.Vb 9 +\& gv_name_set (undocumented) +\& hv_copy_hints_hv +\& my_vsnprintf +\& newXS_flags (marked experimental) (undocumented) +\& PerlIO_context_layers (undocumented) +\& PERL_MAGIC_hints +\& PERL_MAGIC_hintselem +\& sv_does +\& sv_usepvn_flags +.Ve +.IP "perl 5.9.3" 4 +.IX Item "perl 5.9.3" +.Vb 10 +\& av_arylen_p (undocumented) +\& ckwarn (undocumented) +\& ckwarn_d (undocumented) +\& dMULTICALL +\& doref (undocumented) +\& gv_const_sv +\& GV_NOADD_NOINIT +\& GV_NOEXPAND +\& hv_eiter_p (undocumented) +\& hv_eiter_set (undocumented) +\& hv_name_set (undocumented) +\& hv_placeholders_get (undocumented) +\& hv_placeholders_set (undocumented) +\& hv_riter_p (undocumented) +\& hv_riter_set (undocumented) +\& is_utf8_string_loclen +\& MULTICALL +\& newGIVENOP +\& newSVhek +\& PERL_MAGIC_arylen_p +\& PERL_MAGIC_rhash +\& PERL_MAGIC_symtab +\& POP_MULTICALL +\& savepvs +\& sortsv_flags +\& vverify +.Ve +.IP "perl 5.9.2" 4 +.IX Item "perl 5.9.2" +.Vb 6 +\& find_rundefsvoffset (DEPRECATED) +\& op_refcnt_lock (undocumented) +\& op_refcnt_unlock (undocumented) +\& savesvpv +\& SvPVbyte_force +\& vnormal +.Ve +.IP "perl 5.9.1" 4 +.IX Item "perl 5.9.1" +.Vb 5 +\& hv_clear_placeholders +\& hv_scalar +\& scan_version +\& sv_2iv_flags +\& sv_2uv_flags +.Ve +.IP "perl 5.9.0" 4 +.IX Item "perl 5.9.0" +.Vb 10 +\& _aMY_CXT +\& aMY_CXT +\& aMY_CXT_ +\& dMY_CXT +\& hek_dup (undocumented) +\& MY_CXT +\& MY_CXT_CLONE +\& MY_CXT_INIT +\& my_cxt_init (undocumented) +\& new_version +\& parser_dup (undocumented) +\& _pMY_CXT +\& pMY_CXT +\& pMY_CXT_ +\& regdupe_internal (undocumented) +\& save_set_svflags (undocumented) +\& SVs_PADSTALE +\& vcmp +\& vnumify +\& vstringify +.Ve +.IP "perl 5.8.9" 4 +.IX Item "perl 5.8.9" +.Vb 1 +\& hv_assert +.Ve +.IP "perl 5.8.8" 4 +.IX Item "perl 5.8.8" +.Vb 1 +\& _\|_ASSERT_ +.Ve +.IP "perl 5.8.3" 4 +.IX Item "perl 5.8.3" +.Vb 2 +\& SvIsCOW +\& SvIsCOW_shared_hash +.Ve +.IP "perl 5.8.1" 4 +.IX Item "perl 5.8.1" +.Vb 10 +\& CvPADLIST (marked experimental) +\& doing_taint (undocumented) +\& find_runcv +\& is_utf8_string_loc +\& packlist +\& pad_add_anon +\& pad_new +\& pad_setsv +\& pad_tidy (marked experimental) +\& PL_comppad (marked experimental) +\& save_bool (undocumented) +\& savestack_grow_cnt (undocumented) +\& seed (undocumented) +\& sv_cat_decode +\& sv_setpviv (DEPRECATED) +\& sv_setpviv_mg (DEPRECATED) +\& SvVOK +\& unpackstring +.Ve +.IP "perl 5.8.0" 4 +.IX Item "perl 5.8.0" +.Vb 5 +\& HeUTF8 +\& hv_iternext_flags (marked experimental) +\& HV_ITERNEXT_WANTPLACEHOLDERS +\& hv_store_flags (marked experimental) (undocumented) +\& nothreadhook +.Ve +.IP "perl 5.7.3" 4 +.IX Item "perl 5.7.3" +.Vb 10 +\& ckWARN3 +\& ckWARN3_d +\& ckWARN4 +\& ckWARN4_d +\& custom_op_desc (DEPRECATED) +\& custom_op_name (DEPRECATED) +\& cx_dup (undocumented) +\& deb (undocumented) +\& deb_nocontext (undocumented) +\& debstack (undocumented) +\& debstackptrs (undocumented) +\& foldEQ_utf8 +\& fp_dup (undocumented) +\& gp_dup (undocumented) +\& gv_fetchmeth_autoload +\& he_dup (undocumented) +\& ibcmp_utf8 (undocumented) +\& mg_dup (undocumented) +\& my_fork (undocumented) +\& my_socketpair (undocumented) +\& OP_DESC +\& OP_NAME +\& perl_destruct +\& PERL_EXIT_DESTRUCT_END +\& PerlIO_clearerr +\& PerlIO_close +\& PerlIO_eof +\& PerlIO_error +\& PerlIO_fileno +\& PerlIO_fill (undocumented) +\& PerlIO_flush +\& PerlIO_get_base +\& PerlIO_get_bufsiz +\& PerlIO_get_cnt +\& PerlIO_get_ptr +\& PerlIO_read +\& PerlIO_seek +\& PerlIO_set_cnt +\& PerlIO_setlinebuf +\& PerlIO_set_ptrcnt +\& PerlIO_stderr +\& PerlIO_stdin +\& PerlIO_stdout +\& PerlIO_tell +\& PerlIO_unread (undocumented) +\& PerlIO_write +\& PL_peepp +\& pv_uni_display +\& rvpv_dup (undocumented) +\& savesharedpv +\& save_shared_pvref (undocumented) +\& si_dup (undocumented) +\& sortsv +\& ss_dup (undocumented) +\& sv_copypv +\& sv_dup (undocumented) +\& SvLOCK +\& sv_magicext +\& sv_nolocking (DEPRECATED) +\& sv_nosharing +\& sv_nounlocking (DEPRECATED) +\& sv_recode_to_utf8 +\& SvSHARE +\& sv_uni_display +\& SvUNLOCK +\& unpack_str (DEPRECATED) +\& uvchr_to_utf8_flags +\& vdeb (undocumented) +.Ve +.IP "perl 5.7.2" 4 +.IX Item "perl 5.7.2" +.Vb 10 +\& atfork_lock (undocumented) +\& atfork_unlock (undocumented) +\& calloc +\& getcwd_sv +\& init_tm (undocumented) +\& malloc +\& mfree (undocumented) +\& mini_mktime (undocumented) +\& my_strftime (undocumented) +\& op_null +\& OSVERS +\& realloc +\& sv_catpvn_flags +\& sv_catsv_flags +\& sv_utf8_upgrade_flags +\& sv_utf8_upgrade_nomg +.Ve +.IP "perl 5.7.1" 4 +.IX Item "perl 5.7.1" +.Vb 10 +\& bytes_from_utf8 (marked experimental) +\& despatch_signals (undocumented) +\& do_openn (undocumented) +\& gv_handler (undocumented) +\& isALNUM_LC_uvchr +\& isALPHA_LC_uvchr +\& isCNTRL_LC_uvchr +\& isDIGIT_LC_uvchr +\& isGRAPH_LC_uvchr +\& isIDFIRST_LC_uvchr +\& isLOWER_LC_uvchr +\& is_lvalue_sub (undocumented) +\& isPRINT_LC_uvchr +\& isPUNCT_LC_uvchr +\& isSPACE_LC_uvchr +\& isUPPER_LC_uvchr +\& my_popen_list (undocumented) +\& PerlIO_apply_layers +\& PerlIO_binmode +\& PerlIO_debug +\& POPpbytex +\& printf_nocontext (DEPRECATED) (undocumented) +\& save_mortalizesv (undocumented) +\& scan_num (undocumented) +\& sv_force_normal_flags +\& sv_setref_uv +\& sv_unref_flags +\& sv_utf8_upgrade +\& UTF8_CHECK_ONLY +\& utf8_length +\& utf8n_to_uvchr +\& uvchr_to_utf8 +\& UVXf +.Ve +.IP "perl 5.6.1" 4 +.IX Item "perl 5.6.1" +.Vb 10 +\& apply_attrs_string (marked experimental) (undocumented) +\& bytes_to_utf8 (marked experimental) +\& gv_efullname4 (undocumented) +\& gv_fullname4 (undocumented) +\& isPSXSPC_LC +\& isUTF8_CHAR +\& is_utf8_string +\& NVSIZE +\& save_generic_pvref (undocumented) +\& SvGAMAGIC +\& utf8_to_bytes (marked experimental) +\& utf8_to_uvchr (DEPRECATED) +\& utf8_to_uvchr_buf +.Ve +.IP "perl 5.6.0" 4 +.IX Item "perl 5.6.0" +.Vb 10 +\& av_delete +\& av_exists +\& call_atexit (undocumented) +\& caller_cx +\& cast_i32 (undocumented) +\& cast_iv (undocumented) +\& cast_ulong (undocumented) +\& cast_uv (undocumented) +\& ckWARN2 +\& ckWARN2_d +\& ckWARN_d +\& CPPLAST +\& CPPRUN +\& do_gv_dump (undocumented) +\& do_gvgv_dump (undocumented) +\& do_hv_dump (undocumented) +\& do_magic_dump (undocumented) +\& do_op_dump (undocumented) +\& do_open9 (DEPRECATED) (undocumented) +\& do_pmop_dump (undocumented) +\& do_sv_dump (undocumented) +\& DO_UTF8 +\& dump_all +\& dump_eval (undocumented) +\& dump_form (undocumented) +\& dump_indent (undocumented) +\& dump_packsubs +\& dump_sub (undocumented) +\& dump_vindent (undocumented) +\& get_context (undocumented) +\& get_ppaddr (undocumented) +\& gv_dump (undocumented) +\& I16SIZE +\& I16TYPE +\& I32SIZE +\& I32TYPE +\& I8SIZE +\& I8TYPE +\& isALNUMC_LC +\& isALPHA_LC_utf8_safe +\& isALPHANUMERIC_LC_utf8_safe +\& isALPHANUMERIC_utf8_safe +\& isALPHANUMERIC_uvchr +\& isALPHA_utf8_safe +\& isALPHA_uvchr +\& isBLANK_LC_utf8_safe +\& isBLANK_utf8_safe +\& isBLANK_uvchr +\& isCNTRL_LC +\& isCNTRL_LC_utf8_safe +\& isCNTRL_utf8_safe +\& isCNTRL_uvchr +\& isDIGIT_LC_utf8_safe +\& isDIGIT_utf8_safe +\& isDIGIT_uvchr +\& isGRAPH_LC +\& isGRAPH_LC_utf8_safe +\& isGRAPH_utf8_safe +\& isGRAPH_uvchr +\& isIDCONT_LC_utf8_safe +\& isIDCONT_utf8_safe +\& isIDCONT_uvchr +\& isIDFIRST_LC_utf8_safe +\& isIDFIRST_utf8_safe +\& isIDFIRST_uvchr +\& isLOWER_LC_utf8_safe +\& isLOWER_utf8_safe +\& isLOWER_uvchr +\& isPRINT_LC_utf8_safe +\& isPRINT_utf8_safe +\& isPRINT_uvchr +\& isPSXSPC_LC_utf8_safe +\& isPSXSPC_utf8_safe +\& isPSXSPC_uvchr +\& isPUNCT_LC +\& isPUNCT_LC_utf8_safe +\& isPUNCT_utf8_safe +\& isPUNCT_uvchr +\& isSPACE_LC_utf8_safe +\& isSPACE_utf8_safe +\& isSPACE_uvchr +\& isUPPER_LC_utf8_safe +\& isUPPER_utf8_safe +\& isUPPER_uvchr +\& is_utf8_char (DEPRECATED) +\& isWORDCHAR_LC_utf8_safe +\& isWORDCHAR_utf8_safe +\& isWORDCHAR_uvchr +\& isXDIGIT_LC_utf8_safe +\& isXDIGIT_utf8_safe +\& isXDIGIT_uvchr +\& LSEEKSIZE +\& magic_dump (undocumented) +\& my_atof (undocumented) +\& my_fflush_all (undocumented) +\& newANONATTRSUB (undocumented) +\& newATTRSUB (undocumented) +\& newXS +\& newXSproto +\& op_dump +\& OPpEARLY_CV +\& PERL_EXIT_EXPECTED +\& perl_parse +\& PERL_SYS_INIT3 +\& PL_check +\& PL_exit_flags +\& PL_runops +\& pmop_dump (undocumented) +\& POPul +\& reginitcolors (undocumented) +\& require_pv +\& safesyscalloc (undocumented) +\& safesysfree (undocumented) +\& safesysmalloc (undocumented) +\& safesysrealloc (undocumented) +\& save_alloc (undocumented) +\& save_destructor (undocumented) +\& save_destructor_x (undocumented) +\& save_I8 (undocumented) +\& save_re_context (undocumented) +\& save_vptr (undocumented) +\& scan_bin +\& set_context (undocumented) +\& Strtol +\& Strtoul +\& str_to_version (undocumented) +\& sv_2pvutf8 +\& sv_2pvutf8_nolen +\& sv_force_normal +\& SvIOK_notUV +\& SvIOK_only_UV +\& SvIOK_UV +\& sv_len_utf8 +\& SvPOK_only_UTF8 +\& sv_pos_b2u +\& sv_pos_u2b +\& sv_pv +\& sv_pvbyte +\& sv_pvbyten (DEPRECATED) +\& sv_pvbyten_force +\& SvPVbyte_nolen +\& SvPVbytex +\& SvPVbytex_force +\& sv_pvutf8 +\& SvPVutf8 +\& SvPVutf8_force +\& sv_pvutf8n (DEPRECATED) +\& sv_pvutf8n_force +\& SvPVutf8_nolen +\& SvPVutf8x +\& SvPVutf8x_force +\& sv_rvweaken +\& SvUOK +\& sv_utf8_decode +\& sv_utf8_downgrade +\& sv_utf8_encode +\& SvUTF8_off +\& SvUTF8_on +\& toFOLD_utf8_safe +\& toFOLD_uvchr +\& toLOWER_utf8_safe +\& toLOWER_uvchr +\& toTITLE_utf8_safe +\& toTITLE_uvchr +\& toUPPER_utf8_safe +\& toUPPER_uvchr +\& U16SIZE +\& U16TYPE +\& U32SIZE +\& U32TYPE +\& U8SIZE +\& U8TYPE +\& UTF8_CHK_SKIP +\& utf8_distance +\& utf8_hop +\& UTF8_MAXBYTES +\& UTF8_SAFE_SKIP +\& UTF8_SKIP +\& UTF8SKIP +\& vcroak +\& vform (undocumented) +\& vwarn +\& vwarner (undocumented) +.Ve +.IP "perl 5.005_03" 4 +.IX Item "perl 5.005_03" +.Vb 3 +\& get_vtbl (undocumented) +\& POPpx +\& save_generic_svref (undocumented) +.Ve +.IP "perl 5.005" 4 +.IX Item "perl 5.005" +.Vb 10 +\& cx_dump (undocumented) +\& debop (undocumented) +\& debprofdump (undocumented) +\& DOUBLESIZE +\& fbm_compile +\& fbm_instr +\& get_op_descs (undocumented) +\& get_op_names (undocumented) +\& init_stacks (undocumented) +\& mg_length (DEPRECATED) +\& mg_size (undocumented) +\& newHVhv (undocumented) +\& new_stackinfo (undocumented) +\& PL_curpad (marked experimental) +\& PL_in_my_stash (undocumented) +\& PL_modglobal +\& PTRSIZE +\& regdump (undocumented) +\& regexec_flags (undocumented) +\& regnext (undocumented) +\& runops_debug (undocumented) +\& runops_standard (undocumented) +\& save_iv (undocumented) +\& sv_iv (DEPRECATED) +\& sv_nv (DEPRECATED) +\& sv_peek (undocumented) +\& sv_pvn (DEPRECATED) +\& sv_pvn_nomg (DEPRECATED) (undocumented) +\& sv_true +.Ve +.IP "perl 5.004_05" 4 +.IX Item "perl 5.004_05" +.Vb 4 +\& do_binmode (DEPRECATED) (undocumented) +\& GV_NOINIT +\& save_aelem (undocumented) +\& save_helem (undocumented) +.Ve +.IP "perl 5.004" 4 +.IX Item "perl 5.004" +.Vb 10 +\& ARCHNAME +\& block_end +\& block_gimme (undocumented) +\& block_start +\& call_list (undocumented) +\& delimcpy (undocumented) +\& form +\& GIMME_V +\& gv_autoload4 (undocumented) +\& gv_fetchmethod_autoload +\& G_VOID +\& HePV +\& HeSVKEY_set +\& hv_delayfree_ent (undocumented) +\& hv_free_ent (undocumented) +\& ibcmp_locale +\& IN_LOCALE +\& IN_LOCALE_COMPILETIME +\& IN_LOCALE_RUNTIME +\& intro_my +\& isALNUM_LC +\& isALPHA_LC +\& isALPHANUMERIC_LC +\& isDIGIT_LC +\& isIDCONT_LC +\& isIDFIRST_LC +\& isLOWER_LC +\& isPRINT_LC +\& isSPACE_LC +\& isUPPER_LC +\& isWORDCHAR_LC +\& mess +\& mess_sv +\& my_failure_exit (undocumented) +\& newSVpvf +\& PERL_USE_GCC_BRACE_GROUPS (undocumented) +\& PL_mess_sv (undocumented) +\& POPu +\& rsignal +\& rsignal_state (undocumented) +\& save_gp +\& save_I16 (undocumented) +\& share_hek (undocumented) +\& SHORTSIZE +\& sv_catpvf +\& sv_catpvf_mg +\& sv_cmp_locale +\& sv_derived_from +\& sv_magic_portable (undocumented) +\& SvSetMagicSV +\& SvSetMagicSV_nosteal +\& sv_setpvf +\& sv_setpvf_mg +\& SvSetSV_nosteal +\& sv_taint +\& sv_tainted +\& SvTAINTED +\& SvTAINTED_off +\& SvTAINTED_on +\& sv_untaint +\& sv_vcatpvf +\& sv_vcatpvf_mg +\& sv_vcatpvfn +\& sv_vsetpvf +\& sv_vsetpvf_mg +\& sv_vsetpvfn +\& toLOWER_LC +\& vmess +\& vnewSVpvf (undocumented) +\& warner (undocumented) +.Ve +.IP "perl 5.003_07 (at least)" 4 +.IX Item "perl 5.003_07 (at least)" +.Vb 10 +\& amagic_call (undocumented) +\& aTHX +\& aTHX_ +\& aTHXR (undocumented) +\& aTHXR_ (undocumented) +\& av_clear +\& av_extend +\& av_fetch +\& av_fill +\& AvFILL +\& AvFILLp +\& av_len +\& av_make +\& av_pop +\& av_push +\& av_shift +\& av_store +\& av_tindex +\& av_top_index +\& av_undef +\& av_unshift +\& ax +\& BIN +\& BOM_UTF8 +\& boolSV +\& BYTEORDER +\& call_argv +\& call_method +\& call_pv +\& call_sv +\& C_ARRAY_END +\& C_ARRAY_LENGTH +\& CASTFLAGS +\& cBOOL +\& ckWARN +\& CLASS +\& Copy +\& CopyD +\& CPPMINUS +\& CPPSTDIN +\& croak +\& croak_memory_wrap (undocumented) +\& croak_no_modify +\& croak_sv +\& croak_xs_usage +\& cv_clone +\& cv_const_sv +\& CvDEPTH (undocumented) +\& CvGV (undocumented) +\& CvSTASH +\& cv_undef +\& cxinc (undocumented) +\& dAX +\& dAXMARK +\& DEFSV (undocumented) +\& die +\& die_sv +\& dITEMS +\& dMARK +\& dNOOP (undocumented) +\& do_close (undocumented) +\& do_join (undocumented) +\& do_open (undocumented) +\& dORIGMARK +\& do_sprintf (undocumented) +\& dounwind (undocumented) +\& dowantarray (undocumented) +\& dSP +\& dTHR +\& dTHX +\& dTHXR (undocumented) +\& dUNDERBAR +\& dVAR +\& dXCPT +\& dXSARGS +\& dXSI32 +\& dXSTARG (undocumented) +\& END_EXTERN_C (undocumented) +\& ENTER +\& ERRSV +\& eval_pv +\& eval_sv +\& EXTEND +\& EXTERN_C (undocumented) +\& filter_add +\& filter_del (undocumented) +\& filter_read +\& free_tmps (undocumented) +\& FREETMPS +\& G_ARRAY +\& G_DISCARD +\& get_av +\& get_cv +\& get_cvn_flags +\& get_hv +\& get_sv +\& G_EVAL +\& GIMME +\& G_METHOD +\& G_NOARGS +\& gp_free (undocumented) +\& gp_ref (undocumented) +\& G_RETHROW +\& grok_bin +\& grok_hex +\& grok_number +\& GROK_NUMERIC_RADIX +\& grok_numeric_radix +\& grok_oct +\& G_SCALAR +\& GV_ADD +\& GV_ADDMULTI +\& GvAV +\& gv_AVadd (undocumented) +\& gv_check (undocumented) +\& GvCV +\& gv_efullname (DEPRECATED) (undocumented) +\& gv_efullname3 (undocumented) +\& gv_fetchfile (undocumented) +\& gv_fetchmeth +\& gv_fetchmethod +\& gv_fetchpv (undocumented) +\& gv_fetchpvn_flags (undocumented) +\& gv_fetchsv (undocumented) +\& gv_fullname (DEPRECATED) (undocumented) +\& gv_fullname3 (undocumented) +\& GvHV +\& gv_HVadd (undocumented) +\& gv_init +\& gv_init_pvn +\& gv_IOadd (undocumented) +\& GV_NOADD_MASK (undocumented) +\& gv_stashpv +\& gv_stashpvn +\& gv_stashpvs +\& gv_stashsv +\& GvSV +\& HEf_SVKEY +\& HeHASH +\& HeKEY +\& HeKLEN +\& HeSVKEY +\& HeSVKEY_force +\& HeVAL +\& hv_clear +\& hv_delete +\& hv_delete_ent +\& hv_exists +\& hv_exists_ent +\& hv_fetch +\& hv_fetch_ent +\& hv_fetchs +\& HvFILL +\& hv_iterinit +\& hv_iterkey +\& hv_iterkeysv +\& hv_iternext +\& hv_iternextsv +\& hv_iterval +\& hv_ksplit (undocumented) +\& hv_magic +\& HvNAME +\& hv_store +\& hv_store_ent +\& hv_stores +\& hv_undef +\& ibcmp +\& IN_PERL_COMPILETIME (undocumented) +\& instr +\& INT2PTR +\& INTSIZE +\& isALNUM +\& isALNUM_A +\& isALNUMC +\& isALNUMC_A +\& isALNUMC_L1 +\& isALPHA +\& isALPHA_A +\& isALPHA_L1 +\& isALPHANUMERIC +\& isALPHANUMERIC_A +\& isALPHANUMERIC_L1 +\& isASCII +\& isASCII_A +\& isASCII_L1 +\& isASCII_LC +\& isASCII_utf8_safe +\& isASCII_uvchr +\& isBLANK +\& isBLANK_A +\& isBLANK_L1 +\& isBLANK_LC +\& isCNTRL +\& isCNTRL_A +\& isCNTRL_L1 +\& isDIGIT +\& isDIGIT_A +\& isDIGIT_L1 +\& isGRAPH +\& isGRAPH_A +\& isGRAPH_L1 +\& isIDCONT +\& isIDCONT_A +\& isIDCONT_L1 +\& isIDFIRST +\& isIDFIRST_A +\& isIDFIRST_L1 +\& isLOWER +\& isLOWER_A +\& isLOWER_L1 +\& IS_NUMBER_GREATER_THAN_UV_MAX +\& IS_NUMBER_INFINITY +\& IS_NUMBER_IN_UV +\& IS_NUMBER_NAN +\& IS_NUMBER_NEG +\& IS_NUMBER_NOT_INT +\& isOCTAL +\& isOCTAL_A +\& isOCTAL_L1 +\& isPRINT +\& isPRINT_A +\& isPRINT_L1 +\& isPSXSPC +\& isPSXSPC_A +\& isPSXSPC_L1 +\& isPUNCT +\& isPUNCT_A +\& isPUNCT_L1 +\& isSPACE +\& isSPACE_A +\& isSPACE_L1 +\& isUPPER +\& isUPPER_A +\& isUPPER_L1 +\& isWORDCHAR +\& isWORDCHAR_A +\& isWORDCHAR_L1 +\& isXDIGIT +\& isXDIGIT_A +\& isXDIGIT_L1 +\& isXDIGIT_LC +\& items +\& IVdf +\& IVSIZE +\& IVTYPE +\& ix +\& LATIN1_TO_NATIVE +\& LEAVE +\& leave_scope (undocumented) +\& LIKELY +\& load_module +\& LONGSIZE +\& looks_like_number +\& MARK +\& memCHRs +\& memEQ +\& memEQs +\& memNE +\& memNEs +\& mg_clear +\& mg_copy +\& mg_find +\& mg_findext +\& mg_free +\& mg_get +\& mg_magical +\& mg_set +\& moreswitches (undocumented) +\& Move +\& MoveD +\& mPUSHi +\& mPUSHn +\& mPUSHp +\& mPUSHs +\& mPUSHu +\& mXPUSHi +\& mXPUSHn +\& mXPUSHp +\& mXPUSHs +\& mXPUSHu +\& my_exit +\& my_pclose (undocumented) +\& my_popen (undocumented) +\& my_setenv +\& my_snprintf +\& my_sprintf (DEPRECATED) +\& my_strlcat +\& my_strlcpy +\& my_strnlen +\& NATIVE_TO_LATIN1 +\& NATIVE_TO_UNI +\& newANONHASH (undocumented) +\& newANONLIST (undocumented) +\& newANONSUB (undocumented) +\& newASSIGNOP +\& newAV +\& newAVREF (undocumented) +\& newBINOP +\& newCONDOP +\& newCONSTSUB +\& newCVREF (undocumented) +\& newFORM (undocumented) +\& newGVgen (undocumented) +\& newGVOP +\& newGVREF (undocumented) +\& newHV +\& newHVREF (undocumented) +\& newIO (undocumented) +\& newLISTOP +\& newLOGOP +\& newLOOPEX +\& newLOOPOP +\& newNULLLIST +\& newOP +\& newPMOP +\& newPROG (undocumented) +\& newPVOP +\& newRANGE +\& newRV (undocumented) +\& newRV_inc +\& newRV_noinc +\& newSLICEOP +\& newSTATEOP +\& newSUB (undocumented) +\& newSV +\& newSViv +\& newSVnv +\& newSVOP +\& newSVpv +\& newSVpvn +\& newSVpvn_flags +\& newSVpvn_share +\& newSVpvn_utf8 +\& newSVpvs +\& newSVpvs_flags +\& newSVpvs_share +\& newSVREF (undocumented) +\& newSVrv +\& newSVsv +\& newSVsv_flags (undocumented) +\& newSVsv_nomg +\& newSV_type +\& newSVuv +\& newUNOP +\& Newx +\& Newxc +\& Newxz +\& ninstr +\& NOOP (undocumented) +\& Nullav (DEPRECATED) +\& Nullch +\& Nullcv (DEPRECATED) +\& Nullhv (DEPRECATED) +\& Nullsv +\& NVef +\& NVff +\& NVgf +\& NVTYPE +\& OPf_KIDS +\& op_free +\& OpHAS_SIBLING +\& OpLASTSIB_set +\& OpMAYBESIB_set +\& OpMORESIB_set +\& OPpENTERSUB_AMPER +\& OpSIBLING +\& ORIGMARK +\& OSNAME +\& pad_alloc (marked experimental) +\& PERL_ABS +\& perl_alloc +\& PERL_BCDVERSION (undocumented) +\& perl_construct +\& Perl_eval_pv (undocumented) +\& Perl_eval_sv (undocumented) +\& perl_free +\& PERL_HASH +\& PERL_INT_MAX +\& PERL_INT_MIN +\& PerlIO_canset_cnt +\& PerlIO_exportFILE +\& PerlIO_fast_gets +\& PerlIO_fdopen +\& PerlIO_findFILE +\& PerlIO_getc +\& PerlIO_getpos +\& PerlIO_has_base +\& PerlIO_has_cntptr +\& PerlIO_importFILE +\& PerlIO_open +\& PerlIO_printf +\& PerlIO_putc +\& PerlIO_puts +\& PerlIO_releaseFILE +\& PerlIO_reopen +\& PerlIO_rewind +\& PerlIO_setpos +\& PerlIO_stdoutf +\& PerlIO_ungetc +\& PerlIO_vprintf +\& PERL_LOADMOD_DENY +\& PERL_LOADMOD_IMPORT_OPS +\& PERL_LOADMOD_NOIMPORT +\& PERL_LONG_MAX +\& PERL_LONG_MIN +\& PERL_MAGIC_arylen +\& PERL_MAGIC_backref +\& PERL_MAGIC_bm +\& PERL_MAGIC_collxfrm +\& PERL_MAGIC_dbfile +\& PERL_MAGIC_dbline +\& PERL_MAGIC_defelem +\& PERL_MAGIC_env +\& PERL_MAGIC_envelem +\& PERL_MAGIC_ext +\& PERL_MAGIC_fm +\& PERL_MAGIC_glob (undocumented) +\& PERL_MAGIC_isa +\& PERL_MAGIC_isaelem +\& PERL_MAGIC_mutex (undocumented) +\& PERL_MAGIC_nkeys +\& PERL_MAGIC_overload (undocumented) +\& PERL_MAGIC_overload_elem (undocumented) +\& PERL_MAGIC_overload_table +\& PERL_MAGIC_pos +\& PERL_MAGIC_qr +\& PERL_MAGIC_regdata +\& PERL_MAGIC_regdatum +\& PERL_MAGIC_regex_global +\& PERL_MAGIC_shared +\& PERL_MAGIC_shared_scalar +\& PERL_MAGIC_sig +\& PERL_MAGIC_sigelem +\& PERL_MAGIC_substr +\& PERL_MAGIC_sv +\& PERL_MAGIC_taint +\& PERL_MAGIC_tied +\& PERL_MAGIC_tiedelem +\& PERL_MAGIC_tiedscalar +\& PERL_MAGIC_utf8 +\& PERL_MAGIC_uvar +\& PERL_MAGIC_uvar_elem +\& PERL_MAGIC_vec +\& PERL_MAGIC_vstring +\& PERL_PV_ESCAPE_ALL +\& PERL_PV_ESCAPE_FIRSTCHAR +\& PERL_PV_ESCAPE_NOBACKSLASH +\& PERL_PV_ESCAPE_NOCLEAR +\& PERL_PV_ESCAPE_QUOTE +\& PERL_PV_ESCAPE_RE +\& PERL_PV_ESCAPE_UNI +\& PERL_PV_ESCAPE_UNI_DETECT +\& PERL_PV_PRETTY_DUMP (undocumented) +\& PERL_PV_PRETTY_ELLIPSES +\& PERL_PV_PRETTY_LTGT +\& PERL_PV_PRETTY_NOCLEAR (undocumented) +\& PERL_PV_PRETTY_QUOTE +\& PERL_PV_PRETTY_REGPROP (undocumented) +\& PERL_QUAD_MAX +\& PERL_QUAD_MIN +\& PERL_REVISION +\& perl_run +\& PERL_SCAN_ALLOW_UNDERSCORES +\& PERL_SCAN_DISALLOW_PREFIX +\& PERL_SCAN_GREATER_THAN_UV_MAX +\& PERL_SCAN_SILENT_ILLDIGIT +\& PERL_SHORT_MAX +\& PERL_SHORT_MIN +\& PERL_SIGNALS_UNSAFE_FLAG (undocumented) +\& PERL_SUBVERSION +\& PERL_SYS_INIT +\& PERL_SYS_TERM +\& PERL_UCHAR_MAX +\& PERL_UCHAR_MIN +\& PERL_UINT_MAX +\& PERL_UINT_MIN (undocumented) +\& PERL_ULONG_MAX +\& PERL_ULONG_MIN +\& PERL_UNUSED_CONTEXT (undocumented) +\& PERL_UNUSED_DECL (undocumented) +\& PERL_UQUAD_MAX +\& PERL_UQUAD_MIN +\& PERL_USHORT_MAX +\& PERL_USHORT_MIN +\& PERL_VERSION +\& PL_bufend (undocumented) +\& PL_bufptr (undocumented) +\& PL_compiling (undocumented) +\& PL_copline (undocumented) +\& PL_curcop +\& PL_curstash +\& PL_DBsignal (undocumented) +\& PL_DBsingle +\& PL_DBsub +\& PL_DBtrace +\& PL_debstash (undocumented) +\& PL_defgv +\& PL_diehook (undocumented) +\& PL_dirty (undocumented) +\& PL_dowarn +\& PL_errgv +\& PL_error_count (undocumented) +\& PL_expect (undocumented) +\& PL_hexdigit (undocumented) +\& PL_hints (undocumented) +\& PL_in_my (undocumented) +\& PL_laststatval (undocumented) +\& PL_lex_state (undocumented) +\& PL_lex_stuff (undocumented) +\& PL_linestr (undocumented) +\& PL_na +\& PL_no_modify (undocumented) +\& PL_parser +\& PL_perldb (undocumented) +\& PL_perl_destruct_level +\& PL_ppaddr (undocumented) +\& PL_rsfp (undocumented) +\& PL_rsfp_filters (undocumented) +\& PL_stack_base (undocumented) +\& PL_stack_sp (undocumented) +\& PL_statcache (undocumented) +\& PL_stdingv (undocumented) +\& PL_Sv (undocumented) +\& PL_sv_arenaroot (undocumented) +\& PL_sv_no +\& PL_sv_undef +\& PL_sv_yes +\& PL_tainted (undocumented) +\& PL_tainting (undocumented) +\& PL_tokenbuf (undocumented) +\& PL_Xpv (undocumented) +\& Poison +\& PoisonFree +\& PoisonNew +\& PoisonWith +\& POPi +\& POPl +\& POPn +\& POPp +\& POPs +\& pop_scope (undocumented) +\& pregexec (undocumented) +\& pregfree (undocumented) +\& PRIVLIB +\& pTHX +\& pTHX_ +\& PTR2IV +\& PTR2NV +\& PTR2UV +\& PTRV (undocumented) +\& PUSHi +\& PUSHMARK +\& PUSHmortal +\& PUSHn +\& PUSHp +\& PUSHs +\& push_scope (undocumented) +\& PUSHu +\& PUTBACK +\& pv_display +\& pv_escape +\& pv_pretty +\& RANDBITS +\& Renew +\& Renewc +\& repeatcpy (undocumented) +\& REPLACEMENT_CHARACTER_UTF8 +\& RETVAL +\& rninstr +\& Safefree +\& save_aptr +\& save_ary +\& save_clearsv (undocumented) +\& SAVE_DEFSV (undocumented) +\& save_delete (undocumented) +\& save_freepv (undocumented) +\& save_freesv (undocumented) +\& save_hash +\& save_hptr +\& save_I32 (undocumented) +\& save_int (undocumented) +\& save_item +\& save_list (DEPRECATED) +\& save_long (DEPRECATED) (undocumented) +\& save_nogv (DEPRECATED) (undocumented) +\& save_pptr (undocumented) +\& savepv +\& savepvn +\& save_scalar +\& save_sptr (undocumented) +\& savestack_grow (undocumented) +\& save_svref +\& SAVETMPS +\& scan_hex +\& scan_oct +\& setdefout +\& SITELIB +\& SP +\& SPAGAIN +\& ST +\& stack_grow (undocumented) +\& START_EXTERN_C (undocumented) +\& STARTPERL +\& start_subparse (undocumented) +\& STDCHAR +\& STMT_END +\& STMT_START +\& strEQ +\& strGE +\& strGT +\& strLE +\& strLT +\& strNE +\& strnEQ +\& strnNE +\& StructCopy +\& STR_WITH_LEN +\& sv_2bool +\& sv_2cv +\& sv_2io +\& sv_2iv (undocumented) +\& sv_2mortal +\& sv_2pv (undocumented) +\& sv_2pvbyte +\& sv_2pvbyte_nolen +\& sv_2pv_flags +\& sv_2pv_nolen +\& sv_2uv (undocumented) +\& sv_backoff +\& sv_bless +\& sv_catpv +\& sv_catpv_mg +\& sv_catpvn +\& sv_catpvn_mg +\& sv_catpvn_nomg +\& sv_catpvs +\& sv_catsv +\& sv_catsv_mg +\& sv_catsv_nomg +\& sv_chop +\& sv_clear +\& sv_cmp +\& SV_CONST_RETURN (undocumented) +\& SV_COW_DROP_PV +\& SV_COW_SHARED_HASH_KEYS (undocumented) +\& SvCUR +\& SvCUR_set +\& sv_dec +\& sv_dump +\& SvEND +\& sv_eq +\& SVf +\& SVfARG +\& sv_free +\& SVf_UTF8 +\& SvGETMAGIC +\& sv_gets +\& SV_GMAGIC +\& sv_grow +\& SvGROW +\& SV_HAS_TRAILING_NUL +\& SV_IMMEDIATE_UNREF +\& sv_inc +\& sv_insert +\& SvIOK +\& SvIOK_off +\& SvIOK_on +\& SvIOK_only +\& SvIOKp +\& sv_isa +\& sv_isobject +\& SvIV +\& SvIV_nomg +\& SvIV_set +\& SvIVX +\& SvIVx +\& sv_len +\& SvLEN +\& SvLEN_set +\& sv_magic +\& SvMAGIC_set +\& sv_mortalcopy +\& sv_mortalcopy_flags +\& SV_MUTABLE_RETURN (undocumented) +\& sv_newmortal +\& sv_newref +\& SvNIOK +\& SvNIOK_off +\& SvNIOKp +\& SvNOK +\& SvNOK_off +\& SvNOK_on +\& SvNOK_only +\& SvNOKp +\& SV_NOSTEAL +\& SvNV +\& SvNV_nomg +\& SvNV_set +\& SvNVX +\& SvNVx +\& SvOK +\& SvOOK +\& SvPOK +\& SvPOK_off +\& SvPOK_on +\& SvPOK_only +\& SvPOKp +\& SvPV +\& SvPVbyte +\& SvPV_force +\& SvPV_force_nomg +\& sv_pvn_force +\& sv_pvn_force_flags +\& SvPV_nolen +\& SvPV_nomg +\& SvPV_nomg_nolen +\& SvPV_set +\& SvPVX +\& SvPVx +\& SvREADONLY +\& SvREADONLY_off +\& SvREADONLY_on +\& SvREFCNT +\& SvREFCNT_dec +\& SvREFCNT_inc +\& SvREFCNT_inc_NN +\& SvREFCNT_inc_simple +\& SvREFCNT_inc_simple_NN +\& SvREFCNT_inc_simple_void +\& SvREFCNT_inc_simple_void_NN +\& SvREFCNT_inc_void +\& SvREFCNT_inc_void_NN +\& sv_reftype +\& sv_replace +\& sv_report_used +\& sv_reset +\& SvROK +\& SvROK_off +\& SvROK_on +\& SvRV +\& SvRV_set +\& SvRX +\& SvRXOK +\& sv_setiv +\& sv_setiv_mg +\& SvSETMAGIC +\& sv_setnv +\& sv_setnv_mg +\& sv_setpv +\& sv_setpv_mg +\& sv_setpvn +\& sv_setpvn_mg +\& sv_setpvs +\& sv_setref_iv +\& sv_setref_nv +\& sv_setref_pv +\& sv_setref_pvn +\& sv_setsv +\& SvSetSV +\& sv_setsv_flags +\& sv_setsv_mg +\& sv_setsv_nomg +\& sv_setuv +\& sv_setuv_mg +\& SV_SMAGIC +\& SvSTASH +\& SvSTASH_set +\& SVs_TEMP +\& SvTAINT +\& SVt_IV +\& SVt_NULL +\& SVt_NV +\& SVt_PV +\& SVt_PVAV +\& SVt_PVCV +\& SVt_PVFM +\& SVt_PVGV +\& SVt_PVHV +\& SVt_PVIO +\& SVt_PVIV +\& SVt_PVLV +\& SVt_PVMG +\& SVt_PVNV +\& SvTRUE +\& SvTRUE_nomg +\& SvTRUEx +\& SvTYPE +\& svtype +\& sv_unmagic +\& sv_unmagicext +\& sv_unref +\& sv_upgrade +\& SvUPGRADE +\& sv_usepvn +\& sv_usepvn_mg +\& SvUTF8 +\& SV_UTF8_NO_ENCODING (undocumented) +\& sv_uv (DEPRECATED) +\& SvUV +\& SvUV_nomg +\& SvUV_set +\& SvUVX +\& SvUVx +\& SvUVXx (DEPRECATED) +\& switch_to_global_locale +\& sync_locale +\& taint_env (undocumented) +\& taint_proper (undocumented) +\& THIS +\& toLOWER +\& toUPPER +\& UNDERBAR +\& UNICODE_REPLACEMENT +\& UNI_TO_NATIVE +\& UNLIKELY +\& unsharepvn (undocumented) +\& UTF8f +\& UTF8fARG +\& UTF8_IS_INVARIANT +\& UTF8_MAXBYTES_CASE +\& UVCHR_IS_INVARIANT +\& UVCHR_SKIP +\& UVof +\& UVSIZE +\& UVTYPE +\& UVuf +\& UVxf +\& vload_module (undocumented) +\& warn +\& WARN_ALL +\& WARN_AMBIGUOUS +\& WARN_ASSERTIONS (undocumented) +\& WARN_BAREWORD +\& WARN_CLOSED +\& WARN_CLOSURE +\& WARN_DEBUGGING +\& WARN_DEPRECATED +\& WARN_DIGIT +\& WARN_EXEC +\& WARN_EXITING +\& WARN_GLOB +\& WARN_INPLACE +\& WARN_INTERNAL +\& WARN_IO +\& WARN_LAYER +\& WARN_MALLOC +\& WARN_MISC +\& WARN_NEWLINE +\& WARN_NUMERIC +\& WARN_ONCE +\& WARN_OVERFLOW +\& WARN_PACK +\& WARN_PARENTHESIS +\& WARN_PIPE +\& WARN_PORTABLE +\& WARN_PRECEDENCE +\& WARN_PRINTF +\& WARN_PROTOTYPE +\& WARN_QW +\& WARN_RECURSION +\& WARN_REDEFINE +\& WARN_REGEXP +\& WARN_RESERVED +\& WARN_SEMICOLON +\& WARN_SEVERE +\& WARN_SIGNAL +\& WARN_SUBSTR +\& warn_sv +\& WARN_SYNTAX +\& WARN_TAINT +\& WARN_THREADS +\& WARN_UNINITIALIZED +\& WARN_UNOPENED +\& WARN_UNPACK +\& WARN_UNTIE +\& WARN_UTF8 +\& WARN_VOID +\& whichsig (undocumented) +\& WIDEST_UTYPE +\& XCPT_CATCH +\& XCPT_RETHROW +\& XCPT_TRY_END +\& XCPT_TRY_START +\& XPUSHi +\& XPUSHmortal +\& XPUSHn +\& XPUSHp +\& XPUSHs +\& XPUSHu +\& XS +\& XSprePUSH (undocumented) +\& XSRETURN +\& XSRETURN_EMPTY +\& XSRETURN_IV +\& XSRETURN_NO +\& XSRETURN_NV +\& XSRETURN_PV +\& XSRETURN_UNDEF +\& XSRETURN_UV +\& XSRETURN_YES +\& XST_mIV +\& XST_mNO +\& XST_mNV +\& XST_mPV +\& XST_mUNDEF +\& XST_mUV +\& XST_mYES +\& XS_VERSION +\& XS_VERSION_BOOTCHECK +\& Zero +\& ZeroD +.Ve +.IP "Backported version unknown" 4 +.IX Item "Backported version unknown" +.Vb 10 +\& CopFILE (undocumented) +\& CopFILEAV (undocumented) +\& CopFILEGV (undocumented) +\& CopFILEGV_set (undocumented) +\& CopFILE_set (undocumented) +\& CopFILESV (undocumented) +\& CopSTASH (undocumented) +\& CopSTASH_eq (undocumented) +\& CopSTASHPV (undocumented) +\& CopSTASHPV_set (undocumented) +\& CopSTASH_set (undocumented) +\& CPERLscope (undocumented) +\& DEFSV_set (undocumented) +\& dTHXa (undocumented) +\& dTHXoa (undocumented) +\& get_cvs (undocumented) +\& gv_fetchpvs (undocumented) +\& GvSVn (undocumented) +\& HvNAME_get (undocumented) +\& HvNAMELEN_get (undocumented) +\& isGV_with_GP (undocumented) +\& MUTABLE_PTR (undocumented) +\& MUTABLE_SV (undocumented) +\& NUM2PTR (undocumented) +\& packWARN (undocumented) +\& PERLIO_FUNCS_CAST (undocumented) +\& PERLIO_FUNCS_DECL (undocumented) +\& PERL_UNUSED_ARG (undocumented) +\& PERL_UNUSED_RESULT (undocumented) +\& PERL_UNUSED_VAR (undocumented) +\& PL_signals (undocumented) +\& PTR2nat (undocumented) +\& PTR2ul (undocumented) +\& SvPV_const (undocumented) +\& SvPV_flags (undocumented) +\& SvPV_flags_const (undocumented) +\& SvPV_flags_const_nolen (undocumented) +\& SvPV_flags_mutable (undocumented) +\& SvPV_force_flags (undocumented) +\& SvPV_force_flags_mutable (undocumented) +\& SvPV_force_flags_nolen (undocumented) +\& SvPV_force_mutable (undocumented) +\& SvPV_force_nolen (undocumented) +\& SvPV_force_nomg_nolen (undocumented) +\& SvPV_mutable (undocumented) +\& SvPV_nolen_const (undocumented) +\& SvPV_nomg_const (undocumented) +\& SvPV_nomg_const_nolen (undocumented) +\& SvPV_renew (undocumented) +\& SvPVX_const (undocumented) +\& SvPVX_mutable (undocumented) +\& SvSHARED_HASH (undocumented) +\& SvVSTRING_mg (undocumented) +\& XSPROTO (undocumented) +.Ve +.SH "BUGS" +.IX Header "BUGS" +If you find any bugs, \f(CW\*(C`Devel::PPPort\*(C'\fR doesn't seem to build on your +system, or any of its tests fail, please send a bug report to +. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 2 +Version 1.x of Devel::PPPort was written by Kenneth Albanowski. +.IP "\(bu" 2 +Version 2.x was ported to the Perl core by Paul Marquess. +.IP "\(bu" 2 +Version 3.x was ported back to \s-1CPAN\s0 by Marcus Holland-Moritz. +.IP "\(bu" 2 +Versions >= 3.22 are maintained by perl5 porters +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Version 3.x, Copyright (C) 2004\-2013, Marcus Holland-Moritz. +.PP +.Vb 1 +\& Copyright (C) 2018, The perl5 porters +.Ve +.PP +Version 2.x, Copyright (C) 2001, Paul Marquess. +.PP +Version 1.x, Copyright (C) 1999, Kenneth Albanowski. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See h2xs, ppport.h. diff --git a/data/miniconda3/man/man3/Devel%3A%3APeek.3 b/data/miniconda3/man/man3/Devel%3A%3APeek.3 new file mode 100644 index 0000000000000000000000000000000000000000..69d7c76e0d0c1031f3110e5ee71b8210b553c640 --- /dev/null +++ b/data/miniconda3/man/man3/Devel%3A%3APeek.3 @@ -0,0 +1,656 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Devel::Peek 3" +.TH Devel::Peek 3 "2020-12-18" "perl v5.32.1" "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" +Devel::Peek \- A data debugging tool for the XS programmer +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& use Devel::Peek; +\& Dump( $a ); +\& Dump( $a, 5 ); +\& Dump( @a ); +\& Dump( %h ); +\& DumpArray( 5, $a, $b, ... ); +\& mstat "Point 5"; +\& +\& use Devel::Peek \*(Aq:opd=st\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Devel::Peek contains functions which allows raw Perl datatypes to be +manipulated from a Perl script. This is used by those who do \s-1XS\s0 programming +to check that the data they are sending from C to Perl looks as they think +it should look. The trick, then, is to know what the raw datatype is +supposed to look like when it gets to Perl. This document offers some tips +and hints to describe good and bad raw data. +.PP +It is very possible that this document will fall far short of being useful +to the casual reader. The reader is expected to understand the material in +the first few sections of perlguts. +.PP +Devel::Peek supplies a \f(CW\*(C`Dump()\*(C'\fR function which can dump a raw Perl +datatype, and \f(CW\*(C`mstat("marker")\*(C'\fR function to report on memory usage +(if perl is compiled with corresponding option). The function +\&\fBDeadCode()\fR provides statistics on the data \*(L"frozen\*(R" into inactive +\&\f(CW\*(C`CV\*(C'\fR. Devel::Peek also supplies \f(CW\*(C`SvREFCNT()\*(C'\fR which can query reference +counts on SVs. This document will take a passive, and safe, approach +to data debugging and for that it will describe only the \f(CW\*(C`Dump()\*(C'\fR +function. +.PP +All output is to \s-1STDERR.\s0 +.PP +The \f(CW\*(C`Dump()\*(C'\fR function takes one or two arguments: something to dump, and +an optional limit for recursion and array elements (default is 4). The +first argument is evaluted in rvalue scalar context, with exceptions for +\&\f(CW@array\fR and \f(CW%hash\fR, which dump the array or hash itself. So \f(CW\*(C`Dump @array\*(C'\fR +works, as does \f(CW\*(C`Dump $foo\*(C'\fR. And \f(CW\*(C`Dump pos\*(C'\fR will call \f(CW\*(C`pos\*(C'\fR in rvalue +context, whereas \f(CW\*(C`Dump ${\epos}\*(C'\fR will call it in lvalue context. +.PP +Function \f(CW\*(C`DumpArray()\*(C'\fR allows dumping of multiple values (useful when you +need to analyze returns of functions). +.PP +The global variable \f(CW$Devel::Peek::pv_limit\fR can be set to limit the +number of character printed in various string values. Setting it to 0 +means no limit. +.PP +If \f(CW\*(C`use Devel::Peek\*(C'\fR directive has a \f(CW\*(C`:opd=FLAGS\*(C'\fR argument, +this switches on debugging of opcode dispatch. \f(CW\*(C`FLAGS\*(C'\fR should be a +combination of \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`t\*(C'\fR, and \f(CW\*(C`P\*(C'\fR (see +\&\fB\-D\fR flags in perlrun). +.PP +\&\f(CW\*(C`:opd\*(C'\fR is a shortcut for \f(CW\*(C`:opd=st\*(C'\fR. +.SS "Runtime debugging" +.IX Subsection "Runtime debugging" +\&\f(CW\*(C`CvGV($cv)\*(C'\fR return one of the globs associated to a subroutine reference \f(CW$cv\fR. +.PP +\&\fBdebug_flags()\fR returns a string representation of \f(CW$^D\fR (similar to +what is allowed for \fB\-D\fR flag). When called with a numeric argument, +sets $^D to the corresponding value. When called with an argument of +the form \f(CW"flags\-flags"\fR, set on/off bits of \f(CW$^D\fR corresponding to +letters before/after \f(CW\*(C`\-\*(C'\fR. (The returned value is for \f(CW$^D\fR before +the modification.) +.PP +\&\fBrunops_debug()\fR returns true if the current \fIopcode dispatcher\fR is the +debugging one. When called with an argument, switches to debugging or +non-debugging dispatcher depending on the argument (active for +newly-entered subs/etc only). (The returned value is for the dispatcher before the modification.) +.SS "Memory footprint debugging" +.IX Subsection "Memory footprint debugging" +When perl is compiled with support for memory footprint debugging +(default with Perl's \fBmalloc()\fR), Devel::Peek provides an access to this \s-1API.\s0 +.PP +Use \fBmstat()\fR function to emit a memory state statistic to the terminal. +For more information on the format of output of \fBmstat()\fR see +\&\*(L"Using \f(CW$ENV\fR{\s-1PERL_DEBUG_MSTATS\s0}\*(R" in perldebguts. +.PP +Three additional functions allow access to this statistic from Perl. +First, use \f(CW\*(C`mstats_fillhash(%hash)\*(C'\fR to get the information contained +in the output of \fBmstat()\fR into \f(CW%hash\fR. The field of this hash are +.PP +.Vb 3 +\& minbucket nbuckets sbrk_good sbrk_slack sbrked_remains sbrks +\& start_slack topbucket topbucket_ev topbucket_odd total total_chain +\& total_sbrk totfree +.Ve +.PP +Two additional fields \f(CW\*(C`free\*(C'\fR, \f(CW\*(C`used\*(C'\fR contain array references which +provide per-bucket count of free and used chunks. Two other fields +\&\f(CW\*(C`mem_size\*(C'\fR, \f(CW\*(C`available_size\*(C'\fR contain array references which provide +the information about the allocated size and usable size of chunks in +each bucket. Again, see \*(L"Using \f(CW$ENV\fR{\s-1PERL_DEBUG_MSTATS\s0}\*(R" in perldebguts +for details. +.PP +Keep in mind that only the first several \*(L"odd-numbered\*(R" buckets are +used, so the information on size of the \*(L"odd-numbered\*(R" buckets which are +not used is probably meaningless. +.PP +The information in +.PP +.Vb 1 +\& mem_size available_size minbucket nbuckets +.Ve +.PP +is the property of a particular build of perl, and does not depend on +the current process. If you do not provide the optional argument to +the functions \fBmstats_fillhash()\fR, \fBfill_mstats()\fR, \fBmstats2hash()\fR, then +the information in fields \f(CW\*(C`mem_size\*(C'\fR, \f(CW\*(C`available_size\*(C'\fR is not +updated. +.PP +\&\f(CW\*(C`fill_mstats($buf)\*(C'\fR is a much cheaper call (both speedwise and +memory-wise) which collects the statistic into \f(CW$buf\fR in +machine-readable form. At a later moment you may need to call +\&\f(CW\*(C`mstats2hash($buf, %hash)\*(C'\fR to use this information to fill \f(CW%hash\fR. +.PP +All three APIs \f(CW\*(C`fill_mstats($buf)\*(C'\fR, \f(CW\*(C`mstats_fillhash(%hash)\*(C'\fR, and +\&\f(CW\*(C`mstats2hash($buf, %hash)\*(C'\fR are designed to allocate no memory if used +\&\fIthe second time\fR on the same \f(CW$buf\fR and/or \f(CW%hash\fR. +.PP +So, if you want to collect memory info in a cycle, you may call +.PP +.Vb 3 +\& $#buf = 999; +\& fill_mstats($_) for @buf; +\& mstats_fillhash(%report, 1); # Static info too +\& +\& foreach (@buf) { +\& # Do something... +\& fill_mstats $_; # Collect statistic +\& } +\& foreach (@buf) { +\& mstats2hash($_, %report); # Preserve static info +\& # Do something with %report +\& } +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The following examples don't attempt to show everything as that would be a +monumental task, and, frankly, we don't want this manpage to be an internals +document for Perl. The examples do demonstrate some basics of the raw Perl +datatypes, and should suffice to get most determined people on their way. +There are no guidewires or safety nets, nor blazed trails, so be prepared to +travel alone from this point and on and, if at all possible, don't fall into +the quicksand (it's bad for business). +.PP +Oh, one final bit of advice: take perlguts with you. When you return we +expect to see it well-thumbed. +.SS "A simple scalar string" +.IX Subsection "A simple scalar string" +Let's begin by looking a simple scalar which is holding a string. +.PP +.Vb 3 +\& use Devel::Peek; +\& $a = 42; $a = "hello"; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 7 +\& SV = PVIV(0xbc288) at 0xbe9a8 +\& REFCNT = 1 +\& FLAGS = (POK,pPOK) +\& IV = 42 +\& PV = 0xb2048 "hello"\e0 +\& CUR = 5 +\& LEN = 8 +.Ve +.PP +This says \f(CW$a\fR is an \s-1SV,\s0 a scalar. The scalar type is a \s-1PVIV,\s0 which is +capable of holding an integer (\s-1IV\s0) and/or a string (\s-1PV\s0) value. The scalar's +head is allocated at address 0xbe9a8, while the body is at 0xbc288. +Its reference count is 1. It has the \f(CW\*(C`POK\*(C'\fR flag set, meaning its +current \s-1PV\s0 field is valid. Because \s-1POK\s0 is set we look at the \s-1PV\s0 item +to see what is in the scalar. The \e0 at the end indicate that this +\&\s-1PV\s0 is properly NUL-terminated. +Note that the \s-1IV\s0 field still contains its old numeric value, but because +\&\s-1FLAGS\s0 doesn't have \s-1IOK\s0 set, we must ignore the \s-1IV\s0 item. +\&\s-1CUR\s0 indicates the number of characters in the \s-1PV.\s0 \s-1LEN\s0 indicates the +number of bytes allocated for the \s-1PV\s0 (at least one more than \s-1CUR,\s0 because +\&\s-1LEN\s0 includes an extra byte for the end-of-string marker, then usually +rounded up to some efficient allocation unit). +.SS "A simple scalar number" +.IX Subsection "A simple scalar number" +If the scalar contains a number the raw \s-1SV\s0 will be leaner. +.PP +.Vb 3 +\& use Devel::Peek; +\& $a = 42; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 4 +\& SV = IV(0xbc818) at 0xbe9a8 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +.Ve +.PP +This says \f(CW$a\fR is an \s-1SV,\s0 a scalar. The scalar is an \s-1IV,\s0 a number. Its +reference count is 1. It has the \f(CW\*(C`IOK\*(C'\fR flag set, meaning it is currently +being evaluated as a number. Because \s-1IOK\s0 is set we look at the \s-1IV\s0 item to +see what is in the scalar. +.SS "A simple scalar with an extra reference" +.IX Subsection "A simple scalar with an extra reference" +If the scalar from the previous example had an extra reference: +.PP +.Vb 4 +\& use Devel::Peek; +\& $a = 42; +\& $b = \e$a; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 4 +\& SV = IV(0xbe860) at 0xbe9a8 +\& REFCNT = 2 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +.Ve +.PP +Notice that this example differs from the previous example only in its +reference count. Compare this to the next example, where we dump \f(CW$b\fR +instead of \f(CW$a\fR. +.SS "A reference to a simple scalar" +.IX Subsection "A reference to a simple scalar" +This shows what a reference looks like when it references a simple scalar. +.PP +.Vb 4 +\& use Devel::Peek; +\& $a = 42; +\& $b = \e$a; +\& Dump $b; +.Ve +.PP +The output: +.PP +.Vb 8 +\& SV = IV(0xf041c) at 0xbe9a0 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0xbab08 +\& SV = IV(0xbe860) at 0xbe9a8 +\& REFCNT = 2 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +.Ve +.PP +Starting from the top, this says \f(CW$b\fR is an \s-1SV.\s0 The scalar is an \s-1IV,\s0 +which is capable of holding an integer or reference value. +It has the \f(CW\*(C`ROK\*(C'\fR flag set, meaning it is a reference (rather than an +integer or string). Notice that Dump +follows the reference and shows us what \f(CW$b\fR was referencing. We see the +same \f(CW$a\fR that we found in the previous example. +.PP +Note that the value of \f(CW\*(C`RV\*(C'\fR coincides with the numbers we see when we +stringify \f(CW$b\fR. The addresses inside \s-1\fBIV\s0()\fR are addresses of +\&\f(CW\*(C`X***\*(C'\fR structures which hold the current state of an \f(CW\*(C`SV\*(C'\fR. This +address may change during lifetime of an \s-1SV.\s0 +.SS "A reference to an array" +.IX Subsection "A reference to an array" +This shows what a reference to an array looks like. +.PP +.Vb 3 +\& use Devel::Peek; +\& $a = [42]; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 10 +\& SV = IV(0xc85998) at 0xc859a8 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0xc70de8 +\& SV = PVAV(0xc71e10) at 0xc70de8 +\& REFCNT = 1 +\& FLAGS = () +\& ARRAY = 0xc7e820 +\& FILL = 0 +\& MAX = 0 +\& FLAGS = (REAL) +\& Elt No. 0 +\& SV = IV(0xc70f88) at 0xc70f98 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +.Ve +.PP +This says \f(CW$a\fR is a reference (\s-1ROK\s0), which points to +another \s-1SV\s0 which is a \s-1PVAV,\s0 an array. The array has one element, +element zero, which is another \s-1SV.\s0 The field \f(CW\*(C`FILL\*(C'\fR above indicates +the last element in the array, similar to \f(CW\*(C`$#$a\*(C'\fR. +.PP +If \f(CW$a\fR pointed to an array of two elements then we would see the +following. +.PP +.Vb 3 +\& use Devel::Peek \*(AqDump\*(Aq; +\& $a = [42,24]; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 10 +\& SV = IV(0x158c998) at 0x158c9a8 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0x1577de8 +\& SV = PVAV(0x1578e10) at 0x1577de8 +\& REFCNT = 1 +\& FLAGS = () +\& ARRAY = 0x1585820 +\& FILL = 1 +\& MAX = 1 +\& FLAGS = (REAL) +\& Elt No. 0 +\& SV = IV(0x1577f88) at 0x1577f98 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +\& Elt No. 1 +\& SV = IV(0x158be88) at 0x158be98 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 24 +.Ve +.PP +Note that \f(CW\*(C`Dump\*(C'\fR will not report \fIall\fR the elements in the array, +only several first (depending on how deep it already went into the +report tree). +.SS "A reference to a hash" +.IX Subsection "A reference to a hash" +The following shows the raw form of a reference to a hash. +.PP +.Vb 3 +\& use Devel::Peek; +\& $a = {hello=>42}; +\& Dump $a; +.Ve +.PP +The output: +.PP +.Vb 10 +\& SV = IV(0x55cb50b50fb0) at 0x55cb50b50fc0 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0x55cb50b2b758 +\& SV = PVHV(0x55cb50b319c0) at 0x55cb50b2b758 +\& REFCNT = 1 +\& FLAGS = (SHAREKEYS) +\& ARRAY = 0x55cb50b941a0 (0:7, 1:1) +\& hash quality = 100.0% +\& KEYS = 1 +\& FILL = 1 +\& MAX = 7 +\& Elt "hello" HASH = 0x3128ece4 +\& SV = IV(0x55cb50b464f8) at 0x55cb50b46508 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 42 +.Ve +.PP +This shows \f(CW$a\fR is a reference pointing to an \s-1SV.\s0 That \s-1SV\s0 is a \s-1PVHV,\s0 a hash. +.PP +The \*(L"quality\*(R" of a hash is defined as the total number of comparisons needed +to access every element once, relative to the expected number needed for a +random hash. The value can go over 100%. +.PP +The total number of comparisons is equal to the sum of the squares of the +number of entries in each bucket. For a random hash of \f(CW\*(C` keys into +\&\f(CW\*(C` buckets, the expected value is: +.PP +.Vb 1 +\& n + n(n\-1)/2k +.Ve +.SS "Dumping a large array or hash" +.IX Subsection "Dumping a large array or hash" +The \f(CW\*(C`Dump()\*(C'\fR function, by default, dumps up to 4 elements from a +toplevel array or hash. This number can be increased by supplying a +second argument to the function. +.PP +.Vb 3 +\& use Devel::Peek; +\& $a = [10,11,12,13,14]; +\& Dump $a; +.Ve +.PP +Notice that \f(CW\*(C`Dump()\*(C'\fR prints only elements 10 through 13 in the above code. +The following code will print all of the elements. +.PP +.Vb 3 +\& use Devel::Peek \*(AqDump\*(Aq; +\& $a = [10,11,12,13,14]; +\& Dump $a, 5; +.Ve +.SS "A reference to an \s-1SV\s0 which holds a C pointer" +.IX Subsection "A reference to an SV which holds a C pointer" +This is what you really need to know as an \s-1XS\s0 programmer, of course. When +an \s-1XSUB\s0 returns a pointer to a C structure that pointer is stored in an \s-1SV\s0 +and a reference to that \s-1SV\s0 is placed on the \s-1XSUB\s0 stack. So the output from +an \s-1XSUB\s0 which uses something like the T_PTROBJ map might look something like +this: +.PP +.Vb 11 +\& SV = IV(0xf381c) at 0xc859a8 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0xb8ad8 +\& SV = PVMG(0xbb3c8) at 0xc859a0 +\& REFCNT = 1 +\& FLAGS = (OBJECT,IOK,pIOK) +\& IV = 729160 +\& NV = 0 +\& PV = 0 +\& STASH = 0xc1d10 "CookBookB::Opaque" +.Ve +.PP +This shows that we have an \s-1SV\s0 which is a reference, which points at another +\&\s-1SV.\s0 In this case that second \s-1SV\s0 is a \s-1PVMG,\s0 a blessed scalar. Because it is +blessed it has the \f(CW\*(C`OBJECT\*(C'\fR flag set. Note that an \s-1SV\s0 which holds a C +pointer also has the \f(CW\*(C`IOK\*(C'\fR flag set. The \f(CW\*(C`STASH\*(C'\fR is set to the package +name which this \s-1SV\s0 was blessed into. +.PP +The output from an \s-1XSUB\s0 which uses something like the T_PTRREF map, which +doesn't bless the object, might look something like this: +.PP +.Vb 10 +\& SV = IV(0xf381c) at 0xc859a8 +\& REFCNT = 1 +\& FLAGS = (ROK) +\& RV = 0xb8ad8 +\& SV = PVMG(0xbb3c8) at 0xc859a0 +\& REFCNT = 1 +\& FLAGS = (IOK,pIOK) +\& IV = 729160 +\& NV = 0 +\& PV = 0 +.Ve +.SS "A reference to a subroutine" +.IX Subsection "A reference to a subroutine" +Looks like this: +.PP +.Vb 10 +\& SV = IV(0x24d2dd8) at 0x24d2de8 +\& REFCNT = 1 +\& FLAGS = (TEMP,ROK) +\& RV = 0x24e79d8 +\& SV = PVCV(0x24e5798) at 0x24e79d8 +\& REFCNT = 2 +\& FLAGS = () +\& COMP_STASH = 0x22c9c50 "main" +\& START = 0x22eed60 ===> 0 +\& ROOT = 0x22ee490 +\& GVGV::GV = 0x22de9d8 "MY" :: "top_targets" +\& FILE = "(eval 5)" +\& DEPTH = 0 +\& FLAGS = 0x0 +\& OUTSIDE_SEQ = 93 +\& PADLIST = 0x22e9ed8 +\& PADNAME = 0x22e9ec0(0x22eed00) PAD = 0x22e9ea8(0x22eecd0) +\& OUTSIDE = 0x22c9fb0 (MAIN) +.Ve +.PP +This shows that +.IP "\(bu" 4 +the subroutine is not an \s-1XSUB\s0 (since \f(CW\*(C`START\*(C'\fR and \f(CW\*(C`ROOT\*(C'\fR are +non-zero, and \f(CW\*(C`XSUB\*(C'\fR is not listed, and is thus null); +.IP "\(bu" 4 +that it was compiled in the package \f(CW\*(C`main\*(C'\fR; +.IP "\(bu" 4 +under the name \f(CW\*(C`MY::top_targets\*(C'\fR; +.IP "\(bu" 4 +inside a 5th eval in the program; +.IP "\(bu" 4 +it is not currently executed (because \f(CW\*(C`DEPTH\*(C'\fR is 0); +.IP "\(bu" 4 +it has no prototype (\f(CW\*(C`PROTOTYPE\*(C'\fR field is missing). +.SH "EXPORTS" +.IX Header "EXPORTS" +\&\f(CW\*(C`Dump\*(C'\fR, \f(CW\*(C`mstat\*(C'\fR, \f(CW\*(C`DeadCode\*(C'\fR, \f(CW\*(C`DumpArray\*(C'\fR, \f(CW\*(C`DumpWithOP\*(C'\fR and +\&\f(CW\*(C`DumpProg\*(C'\fR, \f(CW\*(C`fill_mstats\*(C'\fR, \f(CW\*(C`mstats_fillhash\*(C'\fR, \f(CW\*(C`mstats2hash\*(C'\fR by +default. Additionally available \f(CW\*(C`SvREFCNT\*(C'\fR, \f(CW\*(C`SvREFCNT_inc\*(C'\fR and +\&\f(CW\*(C`SvREFCNT_dec\*(C'\fR. +.SH "BUGS" +.IX Header "BUGS" +Readers have been known to skip important parts of perlguts, causing much +frustration for all. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ilya Zakharevich ilya@math.ohio\-state.edu +.PP +Copyright (c) 1995\-98 Ilya Zakharevich. All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +Author of this software makes no claim whatsoever about suitability, +reliability, edability, editability or usability of this product, and +should not be kept liable for any damage resulting from the use of +it. If you can use it, you are in luck, if not, I should not be kept +responsible. Keep a handy copy of your backup tape at hand. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlguts, and perlguts, again. diff --git a/data/miniconda3/man/man3/Devel%3A%3ASelfStubber.3 b/data/miniconda3/man/man3/Devel%3A%3ASelfStubber.3 new file mode 100644 index 0000000000000000000000000000000000000000..6f1fa444b45ae502c873c66d2ee20bb4dbd7a9e3 --- /dev/null +++ b/data/miniconda3/man/man3/Devel%3A%3ASelfStubber.3 @@ -0,0 +1,216 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Devel::SelfStubber 3" +.TH Devel::SelfStubber 3 "2020-12-18" "perl v5.32.1" "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" +Devel::SelfStubber \- generate stubs for a SelfLoading module +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +To generate just the stubs: +.PP +.Vb 2 +\& use Devel::SelfStubber; +\& Devel::SelfStubber\->stub(\*(AqMODULENAME\*(Aq,\*(AqMY_LIB_DIR\*(Aq); +.Ve +.PP +or to generate the whole module with stubs inserted correctly +.PP +.Vb 3 +\& use Devel::SelfStubber; +\& $Devel::SelfStubber::JUST_STUBS=0; +\& Devel::SelfStubber\->stub(\*(AqMODULENAME\*(Aq,\*(AqMY_LIB_DIR\*(Aq); +.Ve +.PP +\&\s-1MODULENAME\s0 is the Perl module name, e.g. Devel::SelfStubber, +\&\s-1NOT\s0 'Devel/SelfStubber' or 'Devel/SelfStubber.pm'. +.PP +\&\s-1MY_LIB_DIR\s0 defaults to '.' if not present. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Devel::SelfStubber prints the stubs you need to put in the module +before the _\|_DATA_\|_ token (or you can get it to print the entire +module with stubs correctly placed). The stubs ensure that if +a method is called, it will get loaded. They are needed specifically +for inherited autoloaded methods. +.PP +This is best explained using the following example: +.PP +Assume four classes, A,B,C & D. +.PP +A is the root class, B is a subclass of A, C is a subclass of B, +and D is another subclass of A. +.PP +.Vb 5 +\& A +\& / \e +\& B D +\& / +\& C +.Ve +.PP +If D calls an autoloaded method 'foo' which is defined in class A, +then the method is loaded into class A, then executed. If C then +calls method 'foo', and that method was reimplemented in class +B, but set to be autoloaded, then the lookup mechanism never gets to +the \s-1AUTOLOAD\s0 mechanism in B because it first finds the method +already loaded in A, and so erroneously uses that. If the method +foo had been stubbed in B, then the lookup mechanism would have +found the stub, and correctly loaded and used the sub from B. +.PP +So, for classes and subclasses to have inheritance correctly +work with autoloading, you need to ensure stubs are loaded. +.PP +The SelfLoader can load stubs automatically at module initialization +with the statement 'SelfLoader\->\fBload_stubs()\fR';, but you may wish to +avoid having the stub loading overhead associated with your +initialization (though note that the SelfLoader::load_stubs method +will be called sooner or later \- at latest when the first sub +is being autoloaded). In this case, you can put the sub stubs +before the _\|_DATA_\|_ token. This can be done manually, but this +module allows automatic generation of the stubs. +.PP +By default it just prints the stubs, but you can set the +global \f(CW$Devel::SelfStubber::JUST_STUBS\fR to 0 and it will +print out the entire module with the stubs positioned correctly. +.PP +At the very least, this is useful to see what the SelfLoader +thinks are stubs \- in order to ensure future versions of the +SelfStubber remain in step with the SelfLoader, the +SelfStubber actually uses the SelfLoader to determine which +stubs are needed. diff --git a/data/miniconda3/man/man3/Digest%3A%3AMD5.3 b/data/miniconda3/man/man3/Digest%3A%3AMD5.3 new file mode 100644 index 0000000000000000000000000000000000000000..123cb47f850e53522d34134d7503b9e6e5d90b1b --- /dev/null +++ b/data/miniconda3/man/man3/Digest%3A%3AMD5.3 @@ -0,0 +1,477 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Digest::MD5 3" +.TH Digest::MD5 3 "2020-12-18" "perl v5.32.1" "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" +Digest::MD5 \- Perl interface to the MD5 Algorithm +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Functional style +\& use Digest::MD5 qw(md5 md5_hex md5_base64); +\& +\& $digest = md5($data); +\& $digest = md5_hex($data); +\& $digest = md5_base64($data); +\& +\& # OO style +\& use Digest::MD5; +\& +\& $ctx = Digest::MD5\->new; +\& +\& $ctx\->add($data); +\& $ctx\->addfile($file_handle); +\& +\& $digest = $ctx\->digest; +\& $digest = $ctx\->hexdigest; +\& $digest = $ctx\->b64digest; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Digest::MD5\*(C'\fR module allows you to use the \s-1RSA\s0 Data Security +Inc. \s-1MD5\s0 Message Digest algorithm from within Perl programs. The +algorithm takes as input a message of arbitrary length and produces as +output a 128\-bit \*(L"fingerprint\*(R" or \*(L"message digest\*(R" of the input. +.PP +Note that the \s-1MD5\s0 algorithm is not as strong as it used to be. It has +since 2005 been easy to generate different messages that produce the +same \s-1MD5\s0 digest. It still seems hard to generate messages that +produce a given digest, but it is probably wise to move to stronger +algorithms for applications that depend on the digest to uniquely identify +a message. +.PP +The \f(CW\*(C`Digest::MD5\*(C'\fR module provide a procedural interface for simple +use, as well as an object oriented interface that can handle messages +of arbitrary length and which can read files directly. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +The following functions are provided by the \f(CW\*(C`Digest::MD5\*(C'\fR module. +None of these functions are exported by default. +.IP "md5($data,...)" 4 +.IX Item "md5($data,...)" +This function will concatenate all arguments, calculate the \s-1MD5\s0 digest +of this \*(L"message\*(R", and return it in binary form. The returned string +will be 16 bytes long. +.Sp +The result of md5(\*(L"a\*(R", \*(L"b\*(R", \*(L"c\*(R") will be exactly the same as the +result of md5(\*(L"abc\*(R"). +.IP "md5_hex($data,...)" 4 +.IX Item "md5_hex($data,...)" +Same as \fBmd5()\fR, but will return the digest in hexadecimal form. The +length of the returned string will be 32 and it will only contain +characters from this set: '0'..'9' and 'a'..'f'. +.IP "md5_base64($data,...)" 4 +.IX Item "md5_base64($data,...)" +Same as \fBmd5()\fR, but will return the digest as a base64 encoded string. +The length of the returned string will be 22 and it will only contain +characters from this set: 'A'..'Z', 'a'..'z', '0'..'9', '+' and +\&'/'. +.Sp +Note that the base64 encoded string returned is not padded to be a +multiple of 4 bytes long. If you want interoperability with other +base64 encoded md5 digests you might want to append the redundant +string \*(L"==\*(R" to the result. +.SH "METHODS" +.IX Header "METHODS" +The object oriented interface to \f(CW\*(C`Digest::MD5\*(C'\fR is described in this +section. After a \f(CW\*(C`Digest::MD5\*(C'\fR object has been created, you will add +data to it and finally ask for the digest in a suitable format. A +single object can be used to calculate multiple digests. +.PP +The following methods are provided: +.ie n .IP "$md5 = Digest::MD5\->new" 4 +.el .IP "\f(CW$md5\fR = Digest::MD5\->new" 4 +.IX Item "$md5 = Digest::MD5->new" +The constructor returns a new \f(CW\*(C`Digest::MD5\*(C'\fR object which encapsulate +the state of the \s-1MD5\s0 message-digest algorithm. +.Sp +If called as an instance method (i.e. \f(CW$md5\fR\->new) it will just reset the +state the object to the state of a newly created object. No new +object is created in this case. +.ie n .IP "$md5\->reset" 4 +.el .IP "\f(CW$md5\fR\->reset" 4 +.IX Item "$md5->reset" +This is just an alias for \f(CW$md5\fR\->new. +.ie n .IP "$md5\->clone" 4 +.el .IP "\f(CW$md5\fR\->clone" 4 +.IX Item "$md5->clone" +This a copy of the \f(CW$md5\fR object. It is useful when you do not want to +destroy the digests state, but need an intermediate value of the +digest, e.g. when calculating digests iteratively on a continuous data +stream. Example: +.Sp +.Vb 5 +\& my $md5 = Digest::MD5\->new; +\& while (<>) { +\& $md5\->add($_); +\& print "Line $.: ", $md5\->clone\->hexdigest, "\en"; +\& } +.Ve +.ie n .IP "$md5\->add($data,...)" 4 +.el .IP "\f(CW$md5\fR\->add($data,...)" 4 +.IX Item "$md5->add($data,...)" +The \f(CW$data\fR provided as argument are appended to the message we +calculate the digest for. The return value is the \f(CW$md5\fR object itself. +.Sp +All these lines will have the same effect on the state of the \f(CW$md5\fR +object: +.Sp +.Vb 4 +\& $md5\->add("a"); $md5\->add("b"); $md5\->add("c"); +\& $md5\->add("a")\->add("b")\->add("c"); +\& $md5\->add("a", "b", "c"); +\& $md5\->add("abc"); +.Ve +.ie n .IP "$md5\->addfile($io_handle)" 4 +.el .IP "\f(CW$md5\fR\->addfile($io_handle)" 4 +.IX Item "$md5->addfile($io_handle)" +The \f(CW$io_handle\fR will be read until \s-1EOF\s0 and its content appended to the +message we calculate the digest for. The return value is the \f(CW$md5\fR +object itself. +.Sp +The \fBaddfile()\fR method will \fBcroak()\fR if it fails reading data for some +reason. If it croaks it is unpredictable what the state of the \f(CW$md5\fR +object will be in. The \fBaddfile()\fR method might have been able to read +the file partially before it failed. It is probably wise to discard +or reset the \f(CW$md5\fR object if this occurs. +.Sp +In most cases you want to make sure that the \f(CW$io_handle\fR is in +\&\f(CW\*(C`binmode\*(C'\fR before you pass it as argument to the \fBaddfile()\fR method. +.ie n .IP "$md5\->add_bits($data, $nbits)" 4 +.el .IP "\f(CW$md5\fR\->add_bits($data, \f(CW$nbits\fR)" 4 +.IX Item "$md5->add_bits($data, $nbits)" +.PD 0 +.ie n .IP "$md5\->add_bits($bitstring)" 4 +.el .IP "\f(CW$md5\fR\->add_bits($bitstring)" 4 +.IX Item "$md5->add_bits($bitstring)" +.PD +Since the \s-1MD5\s0 algorithm is byte oriented you might only add bits as +multiples of 8, so you probably want to just use \fBadd()\fR instead. The +\&\fBadd_bits()\fR method is provided for compatibility with other digest +implementations. See Digest for description of the arguments +that \fBadd_bits()\fR take. +.ie n .IP "$md5\->digest" 4 +.el .IP "\f(CW$md5\fR\->digest" 4 +.IX Item "$md5->digest" +Return the binary digest for the message. The returned string will be +16 bytes long. +.Sp +Note that the \f(CW\*(C`digest\*(C'\fR operation is effectively a destructive, +read-once operation. Once it has been performed, the \f(CW\*(C`Digest::MD5\*(C'\fR +object is automatically \f(CW\*(C`reset\*(C'\fR and can be used to calculate another +digest value. Call \f(CW$md5\fR\->clone\->digest if you want to calculate the +digest without resetting the digest state. +.ie n .IP "$md5\->hexdigest" 4 +.el .IP "\f(CW$md5\fR\->hexdigest" 4 +.IX Item "$md5->hexdigest" +Same as \f(CW$md5\fR\->digest, but will return the digest in hexadecimal +form. The length of the returned string will be 32 and it will only +contain characters from this set: '0'..'9' and 'a'..'f'. +.ie n .IP "$md5\->b64digest" 4 +.el .IP "\f(CW$md5\fR\->b64digest" 4 +.IX Item "$md5->b64digest" +Same as \f(CW$md5\fR\->digest, but will return the digest as a base64 encoded +string. The length of the returned string will be 22 and it will only +contain characters from this set: 'A'..'Z', 'a'..'z', '0'..'9', '+' +and '/'. +.Sp +The base64 encoded string returned is not padded to be a multiple of 4 +bytes long. If you want interoperability with other base64 encoded +md5 digests you might want to append the string \*(L"==\*(R" to the result. +.ie n .IP "@ctx = $md5\->context" 4 +.el .IP "\f(CW@ctx\fR = \f(CW$md5\fR\->context" 4 +.IX Item "@ctx = $md5->context" +.PD 0 +.ie n .IP "$md5\->context(@ctx)" 4 +.el .IP "\f(CW$md5\fR\->context(@ctx)" 4 +.IX Item "$md5->context(@ctx)" +.PD +Saves or restores the internal state. When called with no arguments, +returns a 3\-element list: number of blocks processed, a 16\-byte +internal state buffer, then up to 63 bytes of unprocessed data. When +passed those same arguments, restores the state. This is only useful +for specialised operations. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The simplest way to use this library is to import the \fBmd5_hex()\fR +function (or one of its cousins): +.PP +.Vb 2 +\& use Digest::MD5 qw(md5_hex); +\& print "Digest is ", md5_hex("foobarbaz"), "\en"; +.Ve +.PP +The above example would print out the message: +.PP +.Vb 1 +\& Digest is 6df23dc03f9b54cc38a0fc1483df6e21 +.Ve +.PP +The same checksum can also be calculated in \s-1OO\s0 style: +.PP +.Vb 1 +\& use Digest::MD5; +\& +\& $md5 = Digest::MD5\->new; +\& $md5\->add(\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq); +\& $md5\->add(\*(Aqbaz\*(Aq); +\& $digest = $md5\->hexdigest; +\& +\& print "Digest is $digest\en"; +.Ve +.PP +With \s-1OO\s0 style, you can break the message arbitrarily. This means that we +are no longer limited to have space for the whole message in memory, i.e. +we can handle messages of any size. +.PP +This is useful when calculating checksum for files: +.PP +.Vb 1 +\& use Digest::MD5; +\& +\& my $filename = shift || "/etc/passwd"; +\& open (my $fh, \*(Aq<\*(Aq, $filename) or die "Can\*(Aqt open \*(Aq$filename\*(Aq: $!"; +\& binmode($fh); +\& +\& $md5 = Digest::MD5\->new; +\& while (<$fh>) { +\& $md5\->add($_); +\& } +\& close($fh); +\& print $md5\->b64digest, " $filename\en"; +.Ve +.PP +Or we can use the addfile method for more efficient reading of +the file: +.PP +.Vb 1 +\& use Digest::MD5; +\& +\& my $filename = shift || "/etc/passwd"; +\& open (my $fh, \*(Aq<\*(Aq, $filename) or die "Can\*(Aqt open \*(Aq$filename\*(Aq: $!"; +\& binmode ($fh); +\& +\& print Digest::MD5\->new\->addfile($fh)\->hexdigest, " $filename\en"; +.Ve +.PP +Since the \s-1MD5\s0 algorithm is only defined for strings of bytes, it can not be +used on strings that contains chars with ordinal number above 255 (Unicode +strings). The \s-1MD5\s0 functions and methods will croak if you try to feed them +such input data: +.PP +.Vb 1 +\& use Digest::MD5 qw(md5_hex); +\& +\& my $str = "abc\ex{300}"; +\& print md5_hex($str), "\en"; # croaks +\& # Wide character in subroutine entry +.Ve +.PP +What you can do is calculate the \s-1MD5\s0 checksum of the \s-1UTF\-8\s0 +representation of such strings. This is achieved by filtering the +string through \fBencode_utf8()\fR function: +.PP +.Vb 2 +\& use Digest::MD5 qw(md5_hex); +\& use Encode qw(encode_utf8); +\& +\& my $str = "abc\ex{300}"; +\& print md5_hex(encode_utf8($str)), "\en"; +\& # 8c2d46911f3f5a326455f0ed7a8ed3b3 +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Digest, +Digest::MD2, +Digest::SHA, +Digest::HMAC +.PP +\&\fBmd5sum\fR\|(1) +.PP +\&\s-1RFC 1321\s0 +.PP +http://en.wikipedia.org/wiki/MD5 +.PP +The paper \*(L"How to Break \s-1MD5\s0 and Other Hash Functions\*(R" by Xiaoyun Wang +and Hongbo Yu. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +.Vb 3 +\& Copyright 1998\-2003 Gisle Aas. +\& Copyright 1995\-1996 Neil Winton. +\& Copyright 1991\-1992 RSA Data Security, Inc. +.Ve +.PP +The \s-1MD5\s0 algorithm is defined in \s-1RFC 1321.\s0 This implementation is +derived from the reference C code in \s-1RFC 1321\s0 which is covered by +the following copyright statement: +.IP "\(bu" 4 +Copyright (C) 1991\-2, \s-1RSA\s0 Data Security, Inc. Created 1991. All +rights reserved. +.Sp +License to copy and use this software is granted provided that it +is identified as the \*(L"\s-1RSA\s0 Data Security, Inc. \s-1MD5\s0 Message-Digest +Algorithm\*(R" in all material mentioning or referencing this software +or this function. +.Sp +License is also granted to make and use derivative works provided +that such works are identified as \*(L"derived from the \s-1RSA\s0 Data +Security, Inc. \s-1MD5\s0 Message-Digest Algorithm\*(R" in all material +mentioning or referencing the derived work. +.Sp +\&\s-1RSA\s0 Data Security, Inc. makes no representations concerning either +the merchantability of this software or the suitability of this +software for any particular purpose. It is provided \*(L"as is\*(R" +without express or implied warranty of any kind. +.Sp +These notices must be retained in any copies of any part of this +documentation and/or software. +.PP +This copyright does not prohibit distribution of any version of Perl +containing this extension under the terms of the \s-1GNU\s0 or Artistic +licenses. +.SH "AUTHORS" +.IX Header "AUTHORS" +The original \f(CW\*(C`MD5\*(C'\fR interface was written by Neil Winton +(\f(CW\*(C`N.Winton@axion.bt.co.uk\*(C'\fR). +.PP +The \f(CW\*(C`Digest::MD5\*(C'\fR module is written by Gisle Aas . diff --git a/data/miniconda3/man/man3/Digest%3A%3ASHA.3 b/data/miniconda3/man/man3/Digest%3A%3ASHA.3 new file mode 100644 index 0000000000000000000000000000000000000000..1aa67f571a13f0894ff24fa518fc378966f869f9 --- /dev/null +++ b/data/miniconda3/man/man3/Digest%3A%3ASHA.3 @@ -0,0 +1,708 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Digest::SHA 3" +.TH Digest::SHA 3 "2020-12-18" "perl v5.32.1" "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" +Digest::SHA \- Perl extension for SHA\-1/224/256/384/512 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +In programs: +.PP +.Vb 1 +\& # Functional interface +\& +\& use Digest::SHA qw(sha1 sha1_hex sha1_base64 ...); +\& +\& $digest = sha1($data); +\& $digest = sha1_hex($data); +\& $digest = sha1_base64($data); +\& +\& $digest = sha256($data); +\& $digest = sha384_hex($data); +\& $digest = sha512_base64($data); +\& +\& # Object\-oriented +\& +\& use Digest::SHA; +\& +\& $sha = Digest::SHA\->new($alg); +\& +\& $sha\->add($data); # feed data into stream +\& +\& $sha\->addfile(*F); +\& $sha\->addfile($filename); +\& +\& $sha\->add_bits($bits); +\& $sha\->add_bits($data, $nbits); +\& +\& $sha_copy = $sha\->clone; # make copy of digest object +\& $state = $sha\->getstate; # save current state to string +\& $sha\->putstate($state); # restore previous $state +\& +\& $digest = $sha\->digest; # compute digest +\& $digest = $sha\->hexdigest; +\& $digest = $sha\->b64digest; +.Ve +.PP +From the command line: +.PP +.Vb 1 +\& $ shasum files +\& +\& $ shasum \-\-help +.Ve +.SH "SYNOPSIS (HMAC-SHA)" +.IX Header "SYNOPSIS (HMAC-SHA)" +.Vb 1 +\& # Functional interface only +\& +\& use Digest::SHA qw(hmac_sha1 hmac_sha1_hex ...); +\& +\& $digest = hmac_sha1($data, $key); +\& $digest = hmac_sha224_hex($data, $key); +\& $digest = hmac_sha256_base64($data, $key); +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +Digest::SHA is a complete implementation of the \s-1NIST\s0 Secure Hash Standard. +It gives Perl programmers a convenient way to calculate \s-1SHA\-1, SHA\-224, +SHA\-256, SHA\-384, SHA\-512, SHA\-512/224,\s0 and \s-1SHA\-512/256\s0 message digests. +The module can handle all types of input, including partial-byte data. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Digest::SHA is written in C for speed. If your platform lacks a +C compiler, you can install the functionally equivalent (but much +slower) Digest::SHA::PurePerl module. +.PP +The programming interface is easy to use: it's the same one found +in \s-1CPAN\s0's Digest module. So, if your applications currently +use Digest::MD5 and you'd prefer the stronger security of \s-1SHA,\s0 +it's a simple matter to convert them. +.PP +The interface provides two ways to calculate digests: all-at-once, +or in stages. To illustrate, the following short program computes +the \s-1SHA\-256\s0 digest of \*(L"hello world\*(R" using each approach: +.PP +.Vb 1 +\& use Digest::SHA qw(sha256_hex); +\& +\& $data = "hello world"; +\& @frags = split(//, $data); +\& +\& # all\-at\-once (Functional style) +\& $digest1 = sha256_hex($data); +\& +\& # in\-stages (OOP style) +\& $state = Digest::SHA\->new(256); +\& for (@frags) { $state\->add($_) } +\& $digest2 = $state\->hexdigest; +\& +\& print $digest1 eq $digest2 ? +\& "whew!\en" : "oops!\en"; +.Ve +.PP +To calculate the digest of an n\-bit message where \fIn\fR is not a +multiple of 8, use the \fI\f(BIadd_bits()\fI\fR method. For example, consider +the 446\-bit message consisting of the bit-string \*(L"110\*(R" repeated +148 times, followed by \*(L"11\*(R". Here's how to display its \s-1SHA\-1\s0 +digest: +.PP +.Vb 4 +\& use Digest::SHA; +\& $bits = "110" x 148 . "11"; +\& $sha = Digest::SHA\->new(1)\->add_bits($bits); +\& print $sha\->hexdigest, "\en"; +.Ve +.PP +Note that for larger bit-strings, it's more efficient to use the +two-argument version \fIadd_bits($data, \f(CI$nbits\fI)\fR, where \fI\f(CI$data\fI\fR is +in the customary packed binary format used for Perl strings. +.PP +The module also lets you save intermediate \s-1SHA\s0 states to a string. The +\&\fI\f(BIgetstate()\fI\fR method generates portable, human-readable text describing +the current state of computation. You can subsequently restore that +state with \fI\f(BIputstate()\fI\fR to resume where the calculation left off. +.PP +To see what a state description looks like, just run the following: +.PP +.Vb 2 +\& use Digest::SHA; +\& print Digest::SHA\->new\->add("Shaw" x 1962)\->getstate; +.Ve +.PP +As an added convenience, the Digest::SHA module offers routines to +calculate keyed hashes using the \s-1HMAC\-SHA\-1/224/256/384/512\s0 +algorithms. These services exist in functional form only, and +mimic the style and behavior of the \fI\f(BIsha()\fI\fR, \fI\f(BIsha_hex()\fI\fR, and +\&\fI\f(BIsha_base64()\fI\fR functions. +.PP +.Vb 1 +\& # Test vector from draft\-ietf\-ipsec\-ciph\-sha\-256\-01.txt +\& +\& use Digest::SHA qw(hmac_sha256_hex); +\& print hmac_sha256_hex("Hi There", chr(0x0b) x 32), "\en"; +.Ve +.SH "UNICODE AND SIDE EFFECTS" +.IX Header "UNICODE AND SIDE EFFECTS" +Perl supports Unicode strings as of version 5.6. Such strings may +contain wide characters, namely, characters whose ordinal values are +greater than 255. This can cause problems for digest algorithms such +as \s-1SHA\s0 that are specified to operate on sequences of bytes. +.PP +The rule by which Digest::SHA handles a Unicode string is easy +to state, but potentially confusing to grasp: the string is interpreted +as a sequence of byte values, where each byte value is equal to the +ordinal value (viz. code point) of its corresponding Unicode character. +That way, the Unicode string 'abc' has exactly the same digest value as +the ordinary string 'abc'. +.PP +Since a wide character does not fit into a byte, the Digest::SHA +routines croak if they encounter one. Whereas if a Unicode string +contains no wide characters, the module accepts it quite happily. +The following code illustrates the two cases: +.PP +.Vb 2 +\& $str1 = pack(\*(AqU*\*(Aq, (0..255)); +\& print sha1_hex($str1); # ok +\& +\& $str2 = pack(\*(AqU*\*(Aq, (0..256)); +\& print sha1_hex($str2); # croaks +.Ve +.PP +Be aware that the digest routines silently convert \s-1UTF\-8\s0 input into its +equivalent byte sequence in the native encoding (cf. utf8::downgrade). +This side effect influences only the way Perl stores the data internally, +but otherwise leaves the actual value of the data intact. +.SH "NIST STATEMENT ON SHA\-1" +.IX Header "NIST STATEMENT ON SHA-1" +\&\s-1NIST\s0 acknowledges that the work of Prof. Xiaoyun Wang constitutes a +practical collision attack on \s-1SHA\-1.\s0 Therefore, \s-1NIST\s0 encourages the +rapid adoption of the \s-1SHA\-2\s0 hash functions (e.g. \s-1SHA\-256\s0) for applications +requiring strong collision resistance, such as digital signatures. +.PP +ref. +.SH "PADDING OF BASE64 DIGESTS" +.IX Header "PADDING OF BASE64 DIGESTS" +By convention, \s-1CPAN\s0 Digest modules do \fBnot\fR pad their Base64 output. +Problems can occur when feeding such digests to other software that +expects properly padded Base64 encodings. +.PP +For the time being, any necessary padding must be done by the user. +Fortunately, this is a simple operation: if the length of a Base64\-encoded +digest isn't a multiple of 4, simply append \*(L"=\*(R" characters to the end +of the digest until it is: +.PP +.Vb 3 +\& while (length($b64_digest) % 4) { +\& $b64_digest .= \*(Aq=\*(Aq; +\& } +.Ve +.PP +To illustrate, \fIsha256_base64(\*(L"abc\*(R")\fR is computed to be +.PP +.Vb 1 +\& ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0 +.Ve +.PP +which has a length of 43. So, the properly padded version is +.PP +.Vb 1 +\& ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0= +.Ve +.SH "EXPORT" +.IX Header "EXPORT" +None by default. +.SH "EXPORTABLE FUNCTIONS" +.IX Header "EXPORTABLE FUNCTIONS" +Provided your C compiler supports a 64\-bit type (e.g. the \fIlong +long\fR of C99, or \fI_\|_int64\fR used by Microsoft C/\*(C+), all of these +functions will be available for use. Otherwise, you won't be able +to perform the \s-1SHA\-384\s0 and \s-1SHA\-512\s0 transforms, both of which require +64\-bit operations. +.PP +\&\fIFunctional style\fR +.IP "\fBsha1($data, ...)\fR" 4 +.IX Item "sha1($data, ...)" +.PD 0 +.IP "\fBsha224($data, ...)\fR" 4 +.IX Item "sha224($data, ...)" +.IP "\fBsha256($data, ...)\fR" 4 +.IX Item "sha256($data, ...)" +.IP "\fBsha384($data, ...)\fR" 4 +.IX Item "sha384($data, ...)" +.IP "\fBsha512($data, ...)\fR" 4 +.IX Item "sha512($data, ...)" +.IP "\fBsha512224($data, ...)\fR" 4 +.IX Item "sha512224($data, ...)" +.IP "\fBsha512256($data, ...)\fR" 4 +.IX Item "sha512256($data, ...)" +.PD +Logically joins the arguments into a single string, and returns +its \s-1SHA\-1/224/256/384/512\s0 digest encoded as a binary string. +.IP "\fBsha1_hex($data, ...)\fR" 4 +.IX Item "sha1_hex($data, ...)" +.PD 0 +.IP "\fBsha224_hex($data, ...)\fR" 4 +.IX Item "sha224_hex($data, ...)" +.IP "\fBsha256_hex($data, ...)\fR" 4 +.IX Item "sha256_hex($data, ...)" +.IP "\fBsha384_hex($data, ...)\fR" 4 +.IX Item "sha384_hex($data, ...)" +.IP "\fBsha512_hex($data, ...)\fR" 4 +.IX Item "sha512_hex($data, ...)" +.IP "\fBsha512224_hex($data, ...)\fR" 4 +.IX Item "sha512224_hex($data, ...)" +.IP "\fBsha512256_hex($data, ...)\fR" 4 +.IX Item "sha512256_hex($data, ...)" +.PD +Logically joins the arguments into a single string, and returns +its \s-1SHA\-1/224/256/384/512\s0 digest encoded as a hexadecimal string. +.IP "\fBsha1_base64($data, ...)\fR" 4 +.IX Item "sha1_base64($data, ...)" +.PD 0 +.IP "\fBsha224_base64($data, ...)\fR" 4 +.IX Item "sha224_base64($data, ...)" +.IP "\fBsha256_base64($data, ...)\fR" 4 +.IX Item "sha256_base64($data, ...)" +.IP "\fBsha384_base64($data, ...)\fR" 4 +.IX Item "sha384_base64($data, ...)" +.IP "\fBsha512_base64($data, ...)\fR" 4 +.IX Item "sha512_base64($data, ...)" +.IP "\fBsha512224_base64($data, ...)\fR" 4 +.IX Item "sha512224_base64($data, ...)" +.IP "\fBsha512256_base64($data, ...)\fR" 4 +.IX Item "sha512256_base64($data, ...)" +.PD +Logically joins the arguments into a single string, and returns +its \s-1SHA\-1/224/256/384/512\s0 digest encoded as a Base64 string. +.Sp +It's important to note that the resulting string does \fBnot\fR contain +the padding characters typical of Base64 encodings. This omission is +deliberate, and is done to maintain compatibility with the family of +\&\s-1CPAN\s0 Digest modules. See \*(L"\s-1PADDING OF BASE64 DIGESTS\*(R"\s0 for details. +.PP +\&\fI\s-1OOP\s0 style\fR +.IP "\fBnew($alg)\fR" 4 +.IX Item "new($alg)" +Returns a new Digest::SHA object. Allowed values for \fI\f(CI$alg\fI\fR are 1, +224, 256, 384, 512, 512224, or 512256. It's also possible to use +common string representations of the algorithm (e.g. \*(L"sha256\*(R", +\&\*(L"\s-1SHA\-384\*(R"\s0). If the argument is missing, \s-1SHA\-1\s0 will be used by +default. +.Sp +Invoking \fInew\fR as an instance method will reset the object to the +initial state associated with \fI\f(CI$alg\fI\fR. If the argument is missing, +the object will continue using the same algorithm that was selected +at creation. +.IP "\fBreset($alg)\fR" 4 +.IX Item "reset($alg)" +This method has exactly the same effect as \fInew($alg)\fR. In fact, +\&\fIreset\fR is just an alias for \fInew\fR. +.IP "\fBhashsize\fR" 4 +.IX Item "hashsize" +Returns the number of digest bits for this object. The values are +160, 224, 256, 384, 512, 224, and 256 for \s-1SHA\-1, SHA\-224, SHA\-256, +SHA\-384, SHA\-512, SHA\-512/224\s0 and \s-1SHA\-512/256,\s0 respectively. +.IP "\fBalgorithm\fR" 4 +.IX Item "algorithm" +Returns the digest algorithm for this object. The values are 1, +224, 256, 384, 512, 512224, and 512256 for \s-1SHA\-1, SHA\-224, SHA\-256, +SHA\-384, SHA\-512, SHA\-512/224,\s0 and \s-1SHA\-512/256,\s0 respectively. +.IP "\fBclone\fR" 4 +.IX Item "clone" +Returns a duplicate copy of the object. +.IP "\fBadd($data, ...)\fR" 4 +.IX Item "add($data, ...)" +Logically joins the arguments into a single string, and uses it to +update the current digest state. In other words, the following +statements have the same effect: +.Sp +.Vb 4 +\& $sha\->add("a"); $sha\->add("b"); $sha\->add("c"); +\& $sha\->add("a")\->add("b")\->add("c"); +\& $sha\->add("a", "b", "c"); +\& $sha\->add("abc"); +.Ve +.Sp +The return value is the updated object itself. +.IP "\fBadd_bits($data, \f(CB$nbits\fB)\fR" 4 +.IX Item "add_bits($data, $nbits)" +.PD 0 +.IP "\fBadd_bits($bits)\fR" 4 +.IX Item "add_bits($bits)" +.PD +Updates the current digest state by appending bits to it. The +return value is the updated object itself. +.Sp +The first form causes the most-significant \fI\f(CI$nbits\fI\fR of \fI\f(CI$data\fI\fR +to be appended to the stream. The \fI\f(CI$data\fI\fR argument is in the +customary binary format used for Perl strings. +.Sp +The second form takes an \s-1ASCII\s0 string of \*(L"0\*(R" and \*(L"1\*(R" characters as +its argument. It's equivalent to +.Sp +.Vb 1 +\& $sha\->add_bits(pack("B*", $bits), length($bits)); +.Ve +.Sp +So, the following two statements do the same thing: +.Sp +.Vb 2 +\& $sha\->add_bits("111100001010"); +\& $sha\->add_bits("\exF0\exA0", 12); +.Ve +.Sp +Note that \s-1SHA\-1\s0 and \s-1SHA\-2\s0 use \fImost-significant-bit ordering\fR +for their internal state. This means that +.Sp +.Vb 1 +\& $sha3\->add_bits("110"); +.Ve +.Sp +is equivalent to +.Sp +.Vb 1 +\& $sha3\->add_bits("1")\->add_bits("1")\->add_bits("0"); +.Ve +.IP "\fBaddfile(*FILE)\fR" 4 +.IX Item "addfile(*FILE)" +Reads from \fI\s-1FILE\s0\fR until \s-1EOF,\s0 and appends that data to the current +state. The return value is the updated object itself. +.IP "\fBaddfile($filename [, \f(CB$mode\fB])\fR" 4 +.IX Item "addfile($filename [, $mode])" +Reads the contents of \fI\f(CI$filename\fI\fR, and appends that data to the current +state. The return value is the updated object itself. +.Sp +By default, \fI\f(CI$filename\fI\fR is simply opened and read; no special modes +or I/O disciplines are used. To change this, set the optional \fI\f(CI$mode\fI\fR +argument to one of the following values: +.Sp +.Vb 1 +\& "b" read file in binary mode +\& +\& "U" use universal newlines +\& +\& "0" use BITS mode +.Ve +.Sp +The \*(L"U\*(R" mode is modeled on Python's \*(L"Universal Newlines\*(R" concept, whereby +\&\s-1DOS\s0 and Mac \s-1OS\s0 line terminators are converted internally to \s-1UNIX\s0 newlines +before processing. This ensures consistent digest values when working +simultaneously across multiple file systems. \fBThe \*(L"U\*(R" mode influences +only text files\fR, namely those passing Perl's \fI\-T\fR test; binary files +are processed with no translation whatsoever. +.Sp +The \s-1BITS\s0 mode (\*(L"0\*(R") interprets the contents of \fI\f(CI$filename\fI\fR as a logical +stream of bits, where each \s-1ASCII\s0 '0' or '1' character represents a 0 or +1 bit, respectively. All other characters are ignored. This provides +a convenient way to calculate the digest values of partial-byte data +by using files, rather than having to write separate programs employing +the \fIadd_bits\fR method. +.IP "\fBgetstate\fR" 4 +.IX Item "getstate" +Returns a string containing a portable, human-readable representation +of the current \s-1SHA\s0 state. +.IP "\fBputstate($str)\fR" 4 +.IX Item "putstate($str)" +Returns a Digest::SHA object representing the \s-1SHA\s0 state contained +in \fI\f(CI$str\fI\fR. The format of \fI\f(CI$str\fI\fR matches the format of the output +produced by method \fIgetstate\fR. If called as a class method, a new +object is created; if called as an instance method, the object is reset +to the state contained in \fI\f(CI$str\fI\fR. +.IP "\fBdump($filename)\fR" 4 +.IX Item "dump($filename)" +Writes the output of \fIgetstate\fR to \fI\f(CI$filename\fI\fR. If the argument is +missing, or equal to the empty string, the state information will be +written to \s-1STDOUT.\s0 +.IP "\fBload($filename)\fR" 4 +.IX Item "load($filename)" +Returns a Digest::SHA object that results from calling \fIputstate\fR on +the contents of \fI\f(CI$filename\fI\fR. If the argument is missing, or equal to +the empty string, the state information will be read from \s-1STDIN.\s0 +.IP "\fBdigest\fR" 4 +.IX Item "digest" +Returns the digest encoded as a binary string. +.Sp +Note that the \fIdigest\fR method is a read-once operation. Once it +has been performed, the Digest::SHA object is automatically reset +in preparation for calculating another digest value. Call +\&\fI\f(CI$sha\fI\->clone\->digest\fR if it's necessary to preserve the +original digest state. +.IP "\fBhexdigest\fR" 4 +.IX Item "hexdigest" +Returns the digest encoded as a hexadecimal string. +.Sp +Like \fIdigest\fR, this method is a read-once operation. Call +\&\fI\f(CI$sha\fI\->clone\->hexdigest\fR if it's necessary to preserve +the original digest state. +.IP "\fBb64digest\fR" 4 +.IX Item "b64digest" +Returns the digest encoded as a Base64 string. +.Sp +Like \fIdigest\fR, this method is a read-once operation. Call +\&\fI\f(CI$sha\fI\->clone\->b64digest\fR if it's necessary to preserve +the original digest state. +.Sp +It's important to note that the resulting string does \fBnot\fR contain +the padding characters typical of Base64 encodings. This omission is +deliberate, and is done to maintain compatibility with the family of +\&\s-1CPAN\s0 Digest modules. See \*(L"\s-1PADDING OF BASE64 DIGESTS\*(R"\s0 for details. +.PP +\&\fI\s-1HMAC\-SHA\-1/224/256/384/512\s0\fR +.IP "\fBhmac_sha1($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha1($data, $key)" +.PD 0 +.IP "\fBhmac_sha224($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha224($data, $key)" +.IP "\fBhmac_sha256($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha256($data, $key)" +.IP "\fBhmac_sha384($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha384($data, $key)" +.IP "\fBhmac_sha512($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512($data, $key)" +.IP "\fBhmac_sha512224($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512224($data, $key)" +.IP "\fBhmac_sha512256($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512256($data, $key)" +.PD +Returns the \s-1HMAC\-SHA\-1/224/256/384/512\s0 digest of \fI\f(CI$data\fI\fR/\fI\f(CI$key\fI\fR, +with the result encoded as a binary string. Multiple \fI\f(CI$data\fI\fR +arguments are allowed, provided that \fI\f(CI$key\fI\fR is the last argument +in the list. +.IP "\fBhmac_sha1_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha1_hex($data, $key)" +.PD 0 +.IP "\fBhmac_sha224_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha224_hex($data, $key)" +.IP "\fBhmac_sha256_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha256_hex($data, $key)" +.IP "\fBhmac_sha384_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha384_hex($data, $key)" +.IP "\fBhmac_sha512_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512_hex($data, $key)" +.IP "\fBhmac_sha512224_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512224_hex($data, $key)" +.IP "\fBhmac_sha512256_hex($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512256_hex($data, $key)" +.PD +Returns the \s-1HMAC\-SHA\-1/224/256/384/512\s0 digest of \fI\f(CI$data\fI\fR/\fI\f(CI$key\fI\fR, +with the result encoded as a hexadecimal string. Multiple \fI\f(CI$data\fI\fR +arguments are allowed, provided that \fI\f(CI$key\fI\fR is the last argument +in the list. +.IP "\fBhmac_sha1_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha1_base64($data, $key)" +.PD 0 +.IP "\fBhmac_sha224_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha224_base64($data, $key)" +.IP "\fBhmac_sha256_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha256_base64($data, $key)" +.IP "\fBhmac_sha384_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha384_base64($data, $key)" +.IP "\fBhmac_sha512_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512_base64($data, $key)" +.IP "\fBhmac_sha512224_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512224_base64($data, $key)" +.IP "\fBhmac_sha512256_base64($data, \f(CB$key\fB)\fR" 4 +.IX Item "hmac_sha512256_base64($data, $key)" +.PD +Returns the \s-1HMAC\-SHA\-1/224/256/384/512\s0 digest of \fI\f(CI$data\fI\fR/\fI\f(CI$key\fI\fR, +with the result encoded as a Base64 string. Multiple \fI\f(CI$data\fI\fR +arguments are allowed, provided that \fI\f(CI$key\fI\fR is the last argument +in the list. +.Sp +It's important to note that the resulting string does \fBnot\fR contain +the padding characters typical of Base64 encodings. This omission is +deliberate, and is done to maintain compatibility with the family of +\&\s-1CPAN\s0 Digest modules. See \*(L"\s-1PADDING OF BASE64 DIGESTS\*(R"\s0 for details. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Digest, Digest::SHA::PurePerl +.PP +The Secure Hash Standard (Draft \s-1FIPS PUB 180\-4\s0) can be found at: +.PP + +.PP +The Keyed-Hash Message Authentication Code (\s-1HMAC\s0): +.PP + +.SH "AUTHOR" +.IX Header "AUTHOR" +.Vb 1 +\& Mark Shelor +.Ve +.SH "ACKNOWLEDGMENTS" +.IX Header "ACKNOWLEDGMENTS" +The author is particularly grateful to +.PP +.Vb 10 +\& Gisle Aas +\& H. Merijn Brand +\& Sean Burke +\& Chris Carey +\& Alexandr Ciornii +\& Chris David +\& Jim Doble +\& Thomas Drugeon +\& Julius Duque +\& Jeffrey Friedl +\& Robert Gilmour +\& Brian Gladman +\& Jarkko Hietaniemi +\& Adam Kennedy +\& Mark Lawrence +\& Andy Lester +\& Alex Muntada +\& Steve Peters +\& Chris Skiscim +\& Martin Thurn +\& Gunnar Wolf +\& Adam Woodbury +.Ve +.PP +\&\*(L"who by trained skill rescued life from such great billows and such thick +darkness and moored it in so perfect a calm and in so brilliant a light\*(R" +\&\- Lucretius +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (C) 2003\-2018 Mark Shelor +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.PP +perlartistic diff --git a/data/miniconda3/man/man3/Digest%3A%3Abase.3 b/data/miniconda3/man/man3/Digest%3A%3Abase.3 new file mode 100644 index 0000000000000000000000000000000000000000..ae8685ae7bec51b84f42e78f450ba2154181b1eb --- /dev/null +++ b/data/miniconda3/man/man3/Digest%3A%3Abase.3 @@ -0,0 +1,170 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Digest::base 3" +.TH Digest::base 3 "2020-12-18" "perl v5.32.1" "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" +Digest::base \- Digest base class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package Digest::Foo; +\& use base \*(AqDigest::base\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Digest::base\*(C'\fR class provide implementations of the methods +\&\f(CW\*(C`addfile\*(C'\fR and \f(CW\*(C`add_bits\*(C'\fR in terms of \f(CW\*(C`add\*(C'\fR, and of the methods +\&\f(CW\*(C`hexdigest\*(C'\fR and \f(CW\*(C`b64digest\*(C'\fR in terms of \f(CW\*(C`digest\*(C'\fR. +.PP +Digest implementations might want to inherit from this class to get +this implementations of the alternative \fIadd\fR and \fIdigest\fR methods. +A minimal subclass needs to implement the following methods by itself: +.PP +.Vb 4 +\& new +\& clone +\& add +\& digest +.Ve +.PP +The arguments and expected behaviour of these methods are described in +Digest. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Digest diff --git a/data/miniconda3/man/man3/Digest%3A%3Afile.3 b/data/miniconda3/man/man3/Digest%3A%3Afile.3 new file mode 100644 index 0000000000000000000000000000000000000000..f1cc0b802702647edfe031e318703ec520da3421 --- /dev/null +++ b/data/miniconda3/man/man3/Digest%3A%3Afile.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Digest::file 3" +.TH Digest::file 3 "2020-12-18" "perl v5.32.1" "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" +Digest::file \- Calculate digests of files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& # Poor mans "md5sum" command +\& use Digest::file qw(digest_file_hex); +\& for (@ARGV) { +\& print digest_file_hex($_, "MD5"), " $_\en"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provide 3 convenience functions to calculate the digest +of files. The following functions are provided: +.ie n .IP "digest_file( $file, $algorithm, [$arg,...] )" 4 +.el .IP "digest_file( \f(CW$file\fR, \f(CW$algorithm\fR, [$arg,...] )" 4 +.IX Item "digest_file( $file, $algorithm, [$arg,...] )" +This function will calculate and return the binary digest of the bytes +of the given file. The function will croak if it fails to open or +read the file. +.Sp +The \f(CW$algorithm\fR is a string like \*(L"\s-1MD2\*(R", \*(L"MD5\*(R", \*(L"SHA\-1\*(R", \*(L"SHA\-512\*(R".\s0 +Additional arguments are passed to the constructor for the +implementation of the given algorithm. +.ie n .IP "digest_file_hex( $file, $algorithm, [$arg,...] )" 4 +.el .IP "digest_file_hex( \f(CW$file\fR, \f(CW$algorithm\fR, [$arg,...] )" 4 +.IX Item "digest_file_hex( $file, $algorithm, [$arg,...] )" +Same as \fBdigest_file()\fR, but return the digest in hex form. +.ie n .IP "digest_file_base64( $file, $algorithm, [$arg,...] )" 4 +.el .IP "digest_file_base64( \f(CW$file\fR, \f(CW$algorithm\fR, [$arg,...] )" 4 +.IX Item "digest_file_base64( $file, $algorithm, [$arg,...] )" +Same as \fBdigest_file()\fR, but return the digest as a base64 encoded +string. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Digest diff --git a/data/miniconda3/man/man3/Digest.3 b/data/miniconda3/man/man3/Digest.3 new file mode 100644 index 0000000000000000000000000000000000000000..cc082c64ab6475fe978f5fa0958483aef9c226d7 --- /dev/null +++ b/data/miniconda3/man/man3/Digest.3 @@ -0,0 +1,396 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Digest 3" +.TH Digest 3 "2020-12-18" "perl v5.32.1" "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" +Digest \- Modules that calculate message digests +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& $md5 = Digest\->new("MD5"); +\& $sha1 = Digest\->new("SHA\-1"); +\& $sha256 = Digest\->new("SHA\-256"); +\& $sha384 = Digest\->new("SHA\-384"); +\& $sha512 = Digest\->new("SHA\-512"); +\& +\& $hmac = Digest\->HMAC_MD5($key); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Digest::\*(C'\fR modules calculate digests, also called \*(L"fingerprints\*(R" +or \*(L"hashes\*(R", of some data, called a message. The digest is (usually) +some small/fixed size string. The actual size of the digest depend of +the algorithm used. The message is simply a sequence of arbitrary +bytes or bits. +.PP +An important property of the digest algorithms is that the digest is +\&\fIlikely\fR to change if the message change in some way. Another +property is that digest functions are one-way functions, that is it +should be \fIhard\fR to find a message that correspond to some given +digest. Algorithms differ in how \*(L"likely\*(R" and how \*(L"hard\*(R", as well as +how efficient they are to compute. +.PP +Note that the properties of the algorithms change over time, as the +algorithms are analyzed and machines grow faster. If your application +for instance depends on it being \*(L"impossible\*(R" to generate the same +digest for a different message it is wise to make it easy to plug in +stronger algorithms as the one used grow weaker. Using the interface +documented here should make it easy to change algorithms later. +.PP +All \f(CW\*(C`Digest::\*(C'\fR modules provide the same programming interface. A +functional interface for simple use, as well as an object oriented +interface that can handle messages of arbitrary length and which can +read files directly. +.PP +The digest can be delivered in three formats: +.IP "\fIbinary\fR" 8 +.IX Item "binary" +This is the most compact form, but it is not well suited for printing +or embedding in places that can't handle arbitrary data. +.IP "\fIhex\fR" 8 +.IX Item "hex" +A twice as long string of lowercase hexadecimal digits. +.IP "\fIbase64\fR" 8 +.IX Item "base64" +A string of portable printable characters. This is the base64 encoded +representation of the digest with any trailing padding removed. The +string will be about 30% longer than the binary version. +MIME::Base64 tells you more about this encoding. +.PP +The functional interface is simply importable functions with the same +name as the algorithm. The functions take the message as argument and +return the digest. Example: +.PP +.Vb 2 +\& use Digest::MD5 qw(md5); +\& $digest = md5($message); +.Ve +.PP +There are also versions of the functions with \*(L"_hex\*(R" or \*(L"_base64\*(R" +appended to the name, which returns the digest in the indicated form. +.SH "OO INTERFACE" +.IX Header "OO INTERFACE" +The following methods are available for all \f(CW\*(C`Digest::\*(C'\fR modules: +.ie n .IP "$ctx = Digest\->\s-1XXX\s0($arg,...)" 4 +.el .IP "\f(CW$ctx\fR = Digest\->\s-1XXX\s0($arg,...)" 4 +.IX Item "$ctx = Digest->XXX($arg,...)" +.PD 0 +.ie n .IP "$ctx = Digest\->new(\s-1XXX\s0 => $arg,...)" 4 +.el .IP "\f(CW$ctx\fR = Digest\->new(\s-1XXX\s0 => \f(CW$arg\fR,...)" 4 +.IX Item "$ctx = Digest->new(XXX => $arg,...)" +.ie n .IP "$ctx = Digest::XXX\->new($arg,...)" 4 +.el .IP "\f(CW$ctx\fR = Digest::XXX\->new($arg,...)" 4 +.IX Item "$ctx = Digest::XXX->new($arg,...)" +.PD +The constructor returns some object that encapsulate the state of the +message-digest algorithm. You can add data to the object and finally +ask for the digest. The \*(L"\s-1XXX\*(R"\s0 should of course be replaced by the proper +name of the digest algorithm you want to use. +.Sp +The two first forms are simply syntactic sugar which automatically +load the right module on first use. The second form allow you to use +algorithm names which contains letters which are not legal perl +identifiers, e.g. \*(L"\s-1SHA\-1\*(R".\s0 If no implementation for the given algorithm +can be found, then an exception is raised. +.Sp +If \fBnew()\fR is called as an instance method (i.e. \f(CW$ctx\fR\->new) it will just +reset the state the object to the state of a newly created object. No +new object is created in this case, and the return value is the +reference to the object (i.e. \f(CW$ctx\fR). +.ie n .IP "$other_ctx = $ctx\->clone" 4 +.el .IP "\f(CW$other_ctx\fR = \f(CW$ctx\fR\->clone" 4 +.IX Item "$other_ctx = $ctx->clone" +The clone method creates a copy of the digest state object and returns +a reference to the copy. +.ie n .IP "$ctx\->reset" 4 +.el .IP "\f(CW$ctx\fR\->reset" 4 +.IX Item "$ctx->reset" +This is just an alias for \f(CW$ctx\fR\->new. +.ie n .IP "$ctx\->add( $data )" 4 +.el .IP "\f(CW$ctx\fR\->add( \f(CW$data\fR )" 4 +.IX Item "$ctx->add( $data )" +.PD 0 +.ie n .IP "$ctx\->add( $chunk1, $chunk2, ... )" 4 +.el .IP "\f(CW$ctx\fR\->add( \f(CW$chunk1\fR, \f(CW$chunk2\fR, ... )" 4 +.IX Item "$ctx->add( $chunk1, $chunk2, ... )" +.PD +The string value of the \f(CW$data\fR provided as argument is appended to the +message we calculate the digest for. The return value is the \f(CW$ctx\fR +object itself. +.Sp +If more arguments are provided then they are all appended to the +message, thus all these lines will have the same effect on the state +of the \f(CW$ctx\fR object: +.Sp +.Vb 4 +\& $ctx\->add("a"); $ctx\->add("b"); $ctx\->add("c"); +\& $ctx\->add("a")\->add("b")\->add("c"); +\& $ctx\->add("a", "b", "c"); +\& $ctx\->add("abc"); +.Ve +.Sp +Most algorithms are only defined for strings of bytes and this method +might therefore croak if the provided arguments contain chars with +ordinal number above 255. +.ie n .IP "$ctx\->addfile( $io_handle )" 4 +.el .IP "\f(CW$ctx\fR\->addfile( \f(CW$io_handle\fR )" 4 +.IX Item "$ctx->addfile( $io_handle )" +The \f(CW$io_handle\fR is read until \s-1EOF\s0 and the content is appended to the +message we calculate the digest for. The return value is the \f(CW$ctx\fR +object itself. +.Sp +The \fBaddfile()\fR method will \fBcroak()\fR if it fails reading data for some +reason. If it croaks it is unpredictable what the state of the \f(CW$ctx\fR +object will be in. The \fBaddfile()\fR method might have been able to read +the file partially before it failed. It is probably wise to discard +or reset the \f(CW$ctx\fR object if this occurs. +.Sp +In most cases you want to make sure that the \f(CW$io_handle\fR is in +\&\*(L"binmode\*(R" before you pass it as argument to the \fBaddfile()\fR method. +.ie n .IP "$ctx\->add_bits( $data, $nbits )" 4 +.el .IP "\f(CW$ctx\fR\->add_bits( \f(CW$data\fR, \f(CW$nbits\fR )" 4 +.IX Item "$ctx->add_bits( $data, $nbits )" +.PD 0 +.ie n .IP "$ctx\->add_bits( $bitstring )" 4 +.el .IP "\f(CW$ctx\fR\->add_bits( \f(CW$bitstring\fR )" 4 +.IX Item "$ctx->add_bits( $bitstring )" +.PD +The \fBadd_bits()\fR method is an alternative to \fBadd()\fR that allow partial +bytes to be appended to the message. Most users should just ignore +this method as partial bytes is very unlikely to be of any practical +use. +.Sp +The two argument form of \fBadd_bits()\fR will add the first \f(CW$nbits\fR bits +from \f(CW$data\fR. For the last potentially partial byte only the high order +\&\f(CW\*(C`$nbits % 8\*(C'\fR bits are used. If \f(CW$nbits\fR is greater than \f(CW\*(C`length($data) * 8\*(C'\fR, then this method would do the same as \f(CW\*(C`$ctx\->add($data)\*(C'\fR. +.Sp +The one argument form of \fBadd_bits()\fR takes a \f(CW$bitstring\fR of \*(L"1\*(R" and \*(L"0\*(R" +chars as argument. It's a shorthand for \f(CW\*(C`$ctx\->add_bits(pack("B*", +$bitstring), length($bitstring))\*(C'\fR. +.Sp +The return value is the \f(CW$ctx\fR object itself. +.Sp +This example shows two calls that should have the same effect: +.Sp +.Vb 2 +\& $ctx\->add_bits("111100001010"); +\& $ctx\->add_bits("\exF0\exA0", 12); +.Ve +.Sp +Most digest algorithms are byte based and for these it is not possible +to add bits that are not a multiple of 8, and the \fBadd_bits()\fR method +will croak if you try. +.ie n .IP "$ctx\->digest" 4 +.el .IP "\f(CW$ctx\fR\->digest" 4 +.IX Item "$ctx->digest" +Return the binary digest for the message. +.Sp +Note that the \f(CW\*(C`digest\*(C'\fR operation is effectively a destructive, +read-once operation. Once it has been performed, the \f(CW$ctx\fR object is +automatically \f(CW\*(C`reset\*(C'\fR and can be used to calculate another digest +value. Call \f(CW$ctx\fR\->clone\->digest if you want to calculate the digest +without resetting the digest state. +.ie n .IP "$ctx\->hexdigest" 4 +.el .IP "\f(CW$ctx\fR\->hexdigest" 4 +.IX Item "$ctx->hexdigest" +Same as \f(CW$ctx\fR\->digest, but will return the digest in hexadecimal form. +.ie n .IP "$ctx\->b64digest" 4 +.el .IP "\f(CW$ctx\fR\->b64digest" 4 +.IX Item "$ctx->b64digest" +Same as \f(CW$ctx\fR\->digest, but will return the digest as a base64 encoded +string. +.SH "Digest speed" +.IX Header "Digest speed" +This table should give some indication on the relative speed of +different algorithms. It is sorted by throughput based on a benchmark +done with of some implementations of this \s-1API:\s0 +.PP +.Vb 1 +\& Algorithm Size Implementation MB/s +\& +\& MD4 128 Digest::MD4 v1.3 165.0 +\& MD5 128 Digest::MD5 v2.33 98.8 +\& SHA\-256 256 Digest::SHA2 v1.1.0 66.7 +\& SHA\-1 160 Digest::SHA v4.3.1 58.9 +\& SHA\-1 160 Digest::SHA1 v2.10 48.8 +\& SHA\-256 256 Digest::SHA v4.3.1 41.3 +\& Haval\-256 256 Digest::Haval256 v1.0.4 39.8 +\& SHA\-384 384 Digest::SHA2 v1.1.0 19.6 +\& SHA\-512 512 Digest::SHA2 v1.1.0 19.3 +\& SHA\-384 384 Digest::SHA v4.3.1 19.2 +\& SHA\-512 512 Digest::SHA v4.3.1 19.2 +\& Whirlpool 512 Digest::Whirlpool v1.0.2 13.0 +\& MD2 128 Digest::MD2 v2.03 9.5 +\& +\& Adler\-32 32 Digest::Adler32 v0.03 1.3 +\& CRC\-16 16 Digest::CRC v0.05 1.1 +\& CRC\-32 32 Digest::CRC v0.05 1.1 +\& MD5 128 Digest::Perl::MD5 v1.5 1.0 +\& CRC\-CCITT 16 Digest::CRC v0.05 0.8 +.Ve +.PP +These numbers was achieved Apr 2004 with ActivePerl\-5.8.3 running +under Linux on a P4 2.8 GHz \s-1CPU.\s0 The last 5 entries differ by being +pure perl implementations of the algorithms, which explains why they +are so slow. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Digest::Adler32, Digest::CRC, Digest::Haval256, +Digest::HMAC, Digest::MD2, Digest::MD4, Digest::MD5, +Digest::SHA, Digest::SHA1, Digest::SHA2, Digest::Whirlpool +.PP +New digest implementations should consider subclassing from Digest::base. +.PP +MIME::Base64 +.PP +http://en.wikipedia.org/wiki/Cryptographic_hash_function +.SH "AUTHOR" +.IX Header "AUTHOR" +Gisle Aas +.PP +The \f(CW\*(C`Digest::\*(C'\fR interface is based on the interface originally +developed by Neil Winton for his \f(CW\*(C`MD5\*(C'\fR module. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +.Vb 2 +\& Copyright 1998\-2006 Gisle Aas. +\& Copyright 1995,1996 Neil Winton. +.Ve diff --git a/data/miniconda3/man/man3/DirHandle.3 b/data/miniconda3/man/man3/DirHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..84d482e5c4a1461a1db8013f55b7b4249496d9e7 --- /dev/null +++ b/data/miniconda3/man/man3/DirHandle.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DirHandle 3" +.TH DirHandle 3 "2020-12-18" "perl v5.32.1" "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" +DirHandle \- (obsolete) supply object methods for directory handles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& # recommended approach since Perl 5.6: do not use DirHandle +\& if (opendir my $d, \*(Aq.\*(Aq) { +\& while (readdir $d) { something($_); } +\& rewind $d; +\& while (readdir $d) { something_else($_); } +\& } +\& +\& # how you would use this module if you were going to +\& use DirHandle; +\& if (my $d = DirHandle\->new(".")) { +\& while (defined($_ = $d\->read)) { something($_); } +\& $d\->rewind; +\& while (defined($_ = $d\->read)) { something_else($_); } +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBThere is no reason to use this module nowadays.\fR +.PP +The \f(CW\*(C`DirHandle\*(C'\fR method provide an alternative interface to the +\&\fBopendir()\fR, \fBclosedir()\fR, \fBreaddir()\fR, and \fBrewinddir()\fR functions. +.PP +Up to Perl 5.5, \fBopendir()\fR could not autovivify a directory handle from +\&\f(CW\*(C`undef\*(C'\fR, so using a lexical handle required using a function from Symbol +to create an anonymous glob, which took a separate step. +\&\f(CW\*(C`DirHandle\*(C'\fR encapsulates this, which allowed cleaner code than \fBopendir()\fR. +Since Perl 5.6, \fBopendir()\fR alone has been all you need for lexical handles. diff --git a/data/miniconda3/man/man3/Dumpvalue.3 b/data/miniconda3/man/man3/Dumpvalue.3 new file mode 100644 index 0000000000000000000000000000000000000000..370c59bc04334e0dbd9f3d775b2ec5045e8f8251 --- /dev/null +++ b/data/miniconda3/man/man3/Dumpvalue.3 @@ -0,0 +1,300 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Dumpvalue 3" +.TH Dumpvalue 3 "2020-12-18" "perl v5.32.1" "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" +Dumpvalue \- provides screen dump of Perl data. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use Dumpvalue; +\& my $dumper = Dumpvalue\->new; +\& $dumper\->set(globPrint => 1); +\& $dumper\->dumpValue(\e*::); +\& $dumper\->dumpvars(\*(Aqmain\*(Aq); +\& my $dump = $dumper\->stringify($some_value); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Creation" +.IX Subsection "Creation" +A new dumper is created by a call +.PP +.Vb 1 +\& $d = Dumpvalue\->new(option1 => value1, option2 => value2) +.Ve +.PP +Recognized options: +.ie n .IP """arrayDepth"", ""hashDepth""" 4 +.el .IP "\f(CWarrayDepth\fR, \f(CWhashDepth\fR" 4 +.IX Item "arrayDepth, hashDepth" +Print only first N elements of arrays and hashes. If false, prints all the +elements. +.ie n .IP """compactDump"", ""veryCompact""" 4 +.el .IP "\f(CWcompactDump\fR, \f(CWveryCompact\fR" 4 +.IX Item "compactDump, veryCompact" +Change style of array and hash dump. If true, short array +may be printed on one line. +.ie n .IP """globPrint""" 4 +.el .IP "\f(CWglobPrint\fR" 4 +.IX Item "globPrint" +Whether to print contents of globs. +.ie n .IP """dumpDBFiles""" 4 +.el .IP "\f(CWdumpDBFiles\fR" 4 +.IX Item "dumpDBFiles" +Dump arrays holding contents of debugged files. +.ie n .IP """dumpPackages""" 4 +.el .IP "\f(CWdumpPackages\fR" 4 +.IX Item "dumpPackages" +Dump symbol tables of packages. +.ie n .IP """dumpReused""" 4 +.el .IP "\f(CWdumpReused\fR" 4 +.IX Item "dumpReused" +Dump contents of \*(L"reused\*(R" addresses. +.ie n .IP """tick"", ""quoteHighBit"", ""printUndef""" 4 +.el .IP "\f(CWtick\fR, \f(CWquoteHighBit\fR, \f(CWprintUndef\fR" 4 +.IX Item "tick, quoteHighBit, printUndef" +Change style of string dump. Default value of \f(CW\*(C`tick\*(C'\fR is \f(CW\*(C`auto\*(C'\fR, one +can enable either double-quotish dump, or single-quotish by setting it +to \f(CW\*(C`"\*(C'\fR or \f(CW\*(C`\*(Aq\*(C'\fR. By default, characters with high bit set are printed +\&\fIas is\fR. If \f(CW\*(C`quoteHighBit\*(C'\fR is set, they will be quoted. +.ie n .IP """usageOnly""" 4 +.el .IP "\f(CWusageOnly\fR" 4 +.IX Item "usageOnly" +rudimentary per-package memory usage dump. If set, +\&\f(CW\*(C`dumpvars\*(C'\fR calculates total size of strings in variables in the package. +.IP "unctrl" 4 +.IX Item "unctrl" +Changes the style of printout of strings. Possible values are +\&\f(CW\*(C`unctrl\*(C'\fR and \f(CW\*(C`quote\*(C'\fR. +.IP "subdump" 4 +.IX Item "subdump" +Whether to try to find the subroutine name given the reference. +.IP "bareStringify" 4 +.IX Item "bareStringify" +Whether to write the non-overloaded form of the stringify-overloaded objects. +.IP "quoteHighBit" 4 +.IX Item "quoteHighBit" +Whether to print chars with high bit set in binary or \*(L"as is\*(R". +.IP "stopDbSignal" 4 +.IX Item "stopDbSignal" +Whether to abort printing if debugger signal flag is raised. +.PP +Later in the life of the object the methods may be queries with \fBget()\fR +method and \fBset()\fR method (which accept multiple arguments). +.SS "Methods" +.IX Subsection "Methods" +.IP "dumpValue" 4 +.IX Item "dumpValue" +.Vb 2 +\& $dumper\->dumpValue($value); +\& $dumper\->dumpValue([$value1, $value2]); +.Ve +.Sp +Prints a dump to the currently selected filehandle. +.IP "dumpValues" 4 +.IX Item "dumpValues" +.Vb 1 +\& $dumper\->dumpValues($value1, $value2); +.Ve +.Sp +Same as \f(CW\*(C`$dumper\->dumpValue([$value1, $value2]);\*(C'\fR. +.IP "stringify" 4 +.IX Item "stringify" +.Vb 1 +\& my $dump = $dumper\->stringify($value [,$noticks] ); +.Ve +.Sp +Returns the dump of a single scalar without printing. If the second +argument is true, the return value does not contain enclosing ticks. +Does not handle data structures. +.IP "dumpvars" 4 +.IX Item "dumpvars" +.Vb 2 +\& $dumper\->dumpvars(\*(Aqmy_package\*(Aq); +\& $dumper\->dumpvars(\*(Aqmy_package\*(Aq, \*(Aqfoo\*(Aq, \*(Aq~bar$\*(Aq, \*(Aq!......\*(Aq); +.Ve +.Sp +The optional arguments are considered as literal strings unless they +start with \f(CW\*(C`~\*(C'\fR or \f(CW\*(C`!\*(C'\fR, in which case they are interpreted as regular +expressions (possibly negated). +.Sp +The second example prints entries with names \f(CW\*(C`foo\*(C'\fR, and also entries +with names which ends on \f(CW\*(C`bar\*(C'\fR, or are shorter than 5 chars. +.IP "set_quote" 4 +.IX Item "set_quote" +.Vb 1 +\& $d\->set_quote(\*(Aq"\*(Aq); +.Ve +.Sp +Sets \f(CW\*(C`tick\*(C'\fR and \f(CW\*(C`unctrl\*(C'\fR options to suitable values for printout with the +given quote char. Possible values are \f(CW\*(C`auto\*(C'\fR, \f(CW\*(C`\*(Aq\*(C'\fR and \f(CW\*(C`"\*(C'\fR. +.IP "set_unctrl" 4 +.IX Item "set_unctrl" +.Vb 1 +\& $d\->set_unctrl(\*(Aqunctrl\*(Aq); +.Ve +.Sp +Sets \f(CW\*(C`unctrl\*(C'\fR option with checking for an invalid argument. +Possible values are \f(CW\*(C`unctrl\*(C'\fR and \f(CW\*(C`quote\*(C'\fR. +.IP "compactDump" 4 +.IX Item "compactDump" +.Vb 1 +\& $d\->compactDump(1); +.Ve +.Sp +Sets \f(CW\*(C`compactDump\*(C'\fR option. If the value is 1, sets to a reasonable +big number. +.IP "veryCompact" 4 +.IX Item "veryCompact" +.Vb 1 +\& $d\->veryCompact(1); +.Ve +.Sp +Sets \f(CW\*(C`compactDump\*(C'\fR and \f(CW\*(C`veryCompact\*(C'\fR options simultaneously. +.IP "set" 4 +.IX Item "set" +.Vb 1 +\& $d\->set(option1 => value1, option2 => value2); +.Ve +.IP "get" 4 +.IX Item "get" +.Vb 1 +\& @values = $d\->get(\*(Aqoption1\*(Aq, \*(Aqoption2\*(Aq); +.Ve diff --git a/data/miniconda3/man/man3/DynaLoader.3 b/data/miniconda3/man/man3/DynaLoader.3 new file mode 100644 index 0000000000000000000000000000000000000000..e07e35c60175655adf4c0aa3aa21b8a81b31beb0 --- /dev/null +++ b/data/miniconda3/man/man3/DynaLoader.3 @@ -0,0 +1,571 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "DynaLoader 3" +.TH DynaLoader 3 "2023-12-23" "perl v5.32.1" "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" +DynaLoader \- Dynamically load C libraries into Perl code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& package YourPackage; +\& require DynaLoader; +\& @ISA = qw(... DynaLoader ...); +\& _\|_PACKAGE_\|_\->bootstrap; +\& +\& # optional method for \*(Aqglobal\*(Aq loading +\& sub dl_load_flags { 0x01 } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document defines a standard generic interface to the dynamic +linking mechanisms available on many platforms. Its primary purpose is +to implement automatic dynamic loading of Perl modules. +.PP +This document serves as both a specification for anyone wishing to +implement the DynaLoader for a new platform and as a guide for +anyone wishing to use the DynaLoader directly in an application. +.PP +The DynaLoader is designed to be a very simple high-level +interface that is sufficiently general to cover the requirements +of SunOS, HP-UX, Linux, \s-1VMS\s0 and other platforms. +.PP +It is also hoped that the interface will cover the needs of \s-1OS/2, NT\s0 +etc and also allow pseudo-dynamic linking (using \f(CW\*(C`ld \-A\*(C'\fR at runtime). +.PP +It must be stressed that the DynaLoader, by itself, is practically +useless for accessing non-Perl libraries because it provides almost no +Perl-to-C 'glue'. There is, for example, no mechanism for calling a C +library function or supplying arguments. A C::DynaLib module +is available from \s-1CPAN\s0 sites which performs that function for some +common system types. And since the year 2000, there's also Inline::C, +a module that allows you to write Perl subroutines in C. Also available +from your local \s-1CPAN\s0 site. +.PP +DynaLoader Interface Summary +.PP +.Vb 10 +\& @dl_library_path +\& @dl_resolve_using +\& @dl_require_symbols +\& $dl_debug +\& $dl_dlext +\& @dl_librefs +\& @dl_modules +\& @dl_shared_objects +\& Implemented in: +\& bootstrap($modulename) Perl +\& @filepaths = dl_findfile(@names) Perl +\& $flags = $modulename\->dl_load_flags Perl +\& $symref = dl_find_symbol_anywhere($symbol) Perl +\& +\& $libref = dl_load_file($filename, $flags) C +\& $status = dl_unload_file($libref) C +\& $symref = dl_find_symbol($libref, $symbol) C +\& @symbols = dl_undef_symbols() C +\& dl_install_xsub($name, $symref [, $filename]) C +\& $message = dl_error C +.Ve +.ie n .IP "@dl_library_path" 4 +.el .IP "\f(CW@dl_library_path\fR" 4 +.IX Item "@dl_library_path" +The standard/default list of directories in which \fBdl_findfile()\fR will +search for libraries etc. Directories are searched in order: +\&\f(CW$dl_library_path\fR[0], [1], ... etc +.Sp +\&\f(CW@dl_library_path\fR is initialised to hold the list of 'normal' directories +(\fI/usr/lib\fR, etc) determined by \fBConfigure\fR (\f(CW$Config{\*(Aqlibpth\*(Aq}\fR). This should +ensure portability across a wide range of platforms. +.Sp +\&\f(CW@dl_library_path\fR should also be initialised with any other directories +that can be determined from the environment at runtime (such as +\&\s-1LD_LIBRARY_PATH\s0 for SunOS). +.Sp +After initialisation \f(CW@dl_library_path\fR can be manipulated by an +application using push and unshift before calling \fBdl_findfile()\fR. +Unshift can be used to add directories to the front of the search order +either to save search time or to override libraries with the same name +in the 'normal' directories. +.Sp +The load function that \fBdl_load_file()\fR calls may require an absolute +pathname. The \fBdl_findfile()\fR function and \f(CW@dl_library_path\fR can be +used to search for and return the absolute pathname for the +library/object that you wish to load. +.ie n .IP "@dl_resolve_using" 4 +.el .IP "\f(CW@dl_resolve_using\fR" 4 +.IX Item "@dl_resolve_using" +A list of additional libraries or other shared objects which can be +used to resolve any undefined symbols that might be generated by a +later call to \fBload_file()\fR. +.Sp +This is only required on some platforms which do not handle dependent +libraries automatically. For example the Socket Perl extension +library (\fIauto/Socket/Socket.so\fR) contains references to many socket +functions which need to be resolved when it's loaded. Most platforms +will automatically know where to find the 'dependent' library (e.g., +\&\fI/usr/lib/libsocket.so\fR). A few platforms need to be told the +location of the dependent library explicitly. Use \f(CW@dl_resolve_using\fR +for this. +.Sp +Example usage: +.Sp +.Vb 1 +\& @dl_resolve_using = dl_findfile(\*(Aq\-lsocket\*(Aq); +.Ve +.ie n .IP "@dl_require_symbols" 4 +.el .IP "\f(CW@dl_require_symbols\fR" 4 +.IX Item "@dl_require_symbols" +A list of one or more symbol names that are in the library/object file +to be dynamically loaded. This is only required on some platforms. +.ie n .IP "@dl_librefs" 4 +.el .IP "\f(CW@dl_librefs\fR" 4 +.IX Item "@dl_librefs" +An array of the handles returned by successful calls to \fBdl_load_file()\fR, +made by bootstrap, in the order in which they were loaded. +Can be used with \fBdl_find_symbol()\fR to look for a symbol in any of +the loaded files. +.ie n .IP "@dl_modules" 4 +.el .IP "\f(CW@dl_modules\fR" 4 +.IX Item "@dl_modules" +An array of module (package) names that have been bootstrap'ed. +.ie n .IP "@dl_shared_objects" 4 +.el .IP "\f(CW@dl_shared_objects\fR" 4 +.IX Item "@dl_shared_objects" +An array of file names for the shared objects that were loaded. +.IP "\fBdl_error()\fR" 4 +.IX Item "dl_error()" +Syntax: +.Sp +.Vb 1 +\& $message = dl_error(); +.Ve +.Sp +Error message text from the last failed DynaLoader function. Note +that, similar to errno in unix, a successful function call does not +reset this message. +.Sp +Implementations should detect the error as soon as it occurs in any of +the other functions and save the corresponding message for later +retrieval. This will avoid problems on some platforms (such as SunOS) +where the error message is very temporary (e.g., \fBdlerror()\fR). +.ie n .IP "$dl_debug" 4 +.el .IP "\f(CW$dl_debug\fR" 4 +.IX Item "$dl_debug" +Internal debugging messages are enabled when \f(CW$dl_debug\fR is set true. +Currently setting \f(CW$dl_debug\fR only affects the Perl side of the +DynaLoader. These messages should help an application developer to +resolve any DynaLoader usage problems. +.Sp +\&\f(CW$dl_debug\fR is set to \f(CW$ENV{\*(AqPERL_DL_DEBUG\*(Aq}\fR if defined. +.Sp +For the DynaLoader developer/porter there is a similar debugging +variable added to the C code (see dlutils.c) and enabled if Perl was +built with the \fB\-DDEBUGGING\fR flag. This can also be set via the +\&\s-1PERL_DL_DEBUG\s0 environment variable. Set to 1 for minimal information or +higher for more. +.ie n .IP "$dl_dlext" 4 +.el .IP "\f(CW$dl_dlext\fR" 4 +.IX Item "$dl_dlext" +When specified (localised) in a module's \fI.pm\fR file, indicates the extension +which the module's loadable object will have. For example: +.Sp +.Vb 1 +\& local $DynaLoader::dl_dlext = \*(Aqunusual_ext\*(Aq; +.Ve +.Sp +would indicate that the module's loadable object has an extension of +\&\f(CW\*(C`unusual_ext\*(C'\fR instead of the more usual \f(CW$Config{dlext}\fR. \s-1NOTE:\s0 This also +requires that the module's \fIMakefile.PL\fR specify (in \f(CW\*(C`WriteMakefile()\*(C'\fR): +.Sp +.Vb 1 +\& DLEXT => \*(Aqunusual_ext\*(Aq, +.Ve +.IP "\fBdl_findfile()\fR" 4 +.IX Item "dl_findfile()" +Syntax: +.Sp +.Vb 1 +\& @filepaths = dl_findfile(@names) +.Ve +.Sp +Determine the full paths (including file suffix) of one or more +loadable files given their generic names and optionally one or more +directories. Searches directories in \f(CW@dl_library_path\fR by default and +returns an empty list if no files were found. +.Sp +Names can be specified in a variety of platform independent forms. Any +names in the form \fB\-lname\fR are converted into \fIlibname.*\fR, where \fI.*\fR is +an appropriate suffix for the platform. +.Sp +If a name does not already have a suitable prefix and/or suffix then +the corresponding file will be searched for by trying combinations of +prefix and suffix appropriate to the platform: \*(L"$name.o\*(R", \*(L"lib$name.*\*(R" +and \*(L"$name\*(R". +.Sp +If any directories are included in \f(CW@names\fR they are searched before +\&\f(CW@dl_library_path\fR. Directories may be specified as \fB\-Ldir\fR. Any other +names are treated as filenames to be searched for. +.Sp +Using arguments of the form \f(CW\*(C`\-Ldir\*(C'\fR and \f(CW\*(C`\-lname\*(C'\fR is recommended. +.Sp +Example: +.Sp +.Vb 1 +\& @dl_resolve_using = dl_findfile(qw(\-L/usr/5lib \-lposix)); +.Ve +.IP "\fBdl_expandspec()\fR" 4 +.IX Item "dl_expandspec()" +Syntax: +.Sp +.Vb 1 +\& $filepath = dl_expandspec($spec) +.Ve +.Sp +Some unusual systems, such as \s-1VMS,\s0 require special filename handling in +order to deal with symbolic names for files (i.e., \s-1VMS\s0's Logical Names). +.Sp +To support these systems a \fBdl_expandspec()\fR function can be implemented +either in the \fIdl_*.xs\fR file or code can be added to the \fBdl_expandspec()\fR +function in \fIDynaLoader.pm\fR. See \fIDynaLoader_pm.PL\fR for more information. +.IP "\fBdl_load_file()\fR" 4 +.IX Item "dl_load_file()" +Syntax: +.Sp +.Vb 1 +\& $libref = dl_load_file($filename, $flags) +.Ve +.Sp +Dynamically load \f(CW$filename\fR, which must be the path to a shared object +or library. An opaque 'library reference' is returned as a handle for +the loaded object. Returns undef on error. +.Sp +The \f(CW$flags\fR argument to alters dl_load_file behaviour. +Assigned bits: +.Sp +.Vb 3 +\& 0x01 make symbols available for linking later dl_load_file\*(Aqs. +\& (only known to work on Solaris 2 using dlopen(RTLD_GLOBAL)) +\& (ignored under VMS; this is a normal part of image linking) +.Ve +.Sp +(On systems that provide a handle for the loaded object such as SunOS +and \s-1HPUX,\s0 \f(CW$libref\fR will be that handle. On other systems \f(CW$libref\fR will +typically be \f(CW$filename\fR or a pointer to a buffer containing \f(CW$filename\fR. +The application should not examine or alter \f(CW$libref\fR in any way.) +.Sp +This is the function that does the real work. It should use the +current values of \f(CW@dl_require_symbols\fR and \f(CW@dl_resolve_using\fR if required. +.Sp +.Vb 4 +\& SunOS: dlopen($filename) +\& HP\-UX: shl_load($filename) +\& Linux: dld_create_reference(@dl_require_symbols); dld_link($filename) +\& VMS: lib$find_image_symbol($filename,$dl_require_symbols[0]) +.Ve +.Sp +(The \fBdlopen()\fR function is also used by Solaris and some versions of +Linux, and is a common choice when providing a \*(L"wrapper\*(R" on other +mechanisms as is done in the \s-1OS/2\s0 port.) +.IP "\fBdl_unload_file()\fR" 4 +.IX Item "dl_unload_file()" +Syntax: +.Sp +.Vb 1 +\& $status = dl_unload_file($libref) +.Ve +.Sp +Dynamically unload \f(CW$libref\fR, which must be an opaque 'library reference' as +returned from dl_load_file. Returns one on success and zero on failure. +This function is optional and may not necessarily be provided on all platforms. +.Sp +If it is defined and perl is compiled with the C macro \f(CW\*(C`DL_UNLOAD_ALL_AT_EXIT\*(C'\fR +defined, then it is called automatically when the interpreter exits for +every shared object or library loaded by DynaLoader::bootstrap. All such +library references are stored in \f(CW@dl_librefs\fR by DynaLoader::Bootstrap as it +loads the libraries. The files are unloaded in last-in, first-out order. +.Sp +This unloading is usually necessary when embedding a shared-object perl (e.g. +one configured with \-Duseshrplib) within a larger application, and the perl +interpreter is created and destroyed several times within the lifetime of the +application. In this case it is possible that the system dynamic linker will +unload and then subsequently reload the shared libperl without relocating any +references to it from any files DynaLoaded by the previous incarnation of the +interpreter. As a result, any shared objects opened by DynaLoader may point to +a now invalid 'ghost' of the libperl shared object, causing apparently random +memory corruption and crashes. This behaviour is most commonly seen when using +Apache and mod_perl built with the \s-1APXS\s0 mechanism. +.Sp +.Vb 4 +\& SunOS: dlclose($libref) +\& HP\-UX: ??? +\& Linux: ??? +\& VMS: ??? +.Ve +.Sp +(The \fBdlclose()\fR function is also used by Solaris and some versions of +Linux, and is a common choice when providing a \*(L"wrapper\*(R" on other +mechanisms as is done in the \s-1OS/2\s0 port.) +.IP "\fBdl_load_flags()\fR" 4 +.IX Item "dl_load_flags()" +Syntax: +.Sp +.Vb 1 +\& $flags = dl_load_flags $modulename; +.Ve +.Sp +Designed to be a method call, and to be overridden by a derived class +(i.e. a class which has DynaLoader in its \f(CW@ISA\fR). The definition in +DynaLoader itself returns 0, which produces standard behavior from +\&\fBdl_load_file()\fR. +.IP "\fBdl_find_symbol()\fR" 4 +.IX Item "dl_find_symbol()" +Syntax: +.Sp +.Vb 1 +\& $symref = dl_find_symbol($libref, $symbol) +.Ve +.Sp +Return the address of the symbol \f(CW$symbol\fR or \f(CW\*(C`undef\*(C'\fR if not found. If the +target system has separate functions to search for symbols of different +types then \fBdl_find_symbol()\fR should search for function symbols first and +then other types. +.Sp +The exact manner in which the address is returned in \f(CW$symref\fR is not +currently defined. The only initial requirement is that \f(CW$symref\fR can +be passed to, and understood by, \fBdl_install_xsub()\fR. +.Sp +.Vb 4 +\& SunOS: dlsym($libref, $symbol) +\& HP\-UX: shl_findsym($libref, $symbol) +\& Linux: dld_get_func($symbol) and/or dld_get_symbol($symbol) +\& VMS: lib$find_image_symbol($libref,$symbol) +.Ve +.IP "\fBdl_find_symbol_anywhere()\fR" 4 +.IX Item "dl_find_symbol_anywhere()" +Syntax: +.Sp +.Vb 1 +\& $symref = dl_find_symbol_anywhere($symbol) +.Ve +.Sp +Applies \fBdl_find_symbol()\fR to the members of \f(CW@dl_librefs\fR and returns +the first match found. +.IP "\fBdl_undef_symbols()\fR" 4 +.IX Item "dl_undef_symbols()" +Example +.Sp +.Vb 1 +\& @symbols = dl_undef_symbols() +.Ve +.Sp +Return a list of symbol names which remain undefined after \fBload_file()\fR. +Returns \f(CW\*(C`()\*(C'\fR if not known. Don't worry if your platform does not provide +a mechanism for this. Most do not need it and hence do not provide it, +they just return an empty list. +.IP "\fBdl_install_xsub()\fR" 4 +.IX Item "dl_install_xsub()" +Syntax: +.Sp +.Vb 1 +\& dl_install_xsub($perl_name, $symref [, $filename]) +.Ve +.Sp +Create a new Perl external subroutine named \f(CW$perl_name\fR using \f(CW$symref\fR as +a pointer to the function which implements the routine. This is simply +a direct call to \fBnewXS()\fR/\fBnewXS_flags()\fR. Returns a reference to the installed +function. +.Sp +The \f(CW$filename\fR parameter is used by Perl to identify the source file for +the function if required by \fBdie()\fR, \fBcaller()\fR or the debugger. If +\&\f(CW$filename\fR is not defined then \*(L"DynaLoader\*(R" will be used. +.IP "\fBbootstrap()\fR" 4 +.IX Item "bootstrap()" +Syntax: +.Sp +bootstrap($module [...]) +.Sp +This is the normal entry point for automatic dynamic loading in Perl. +.Sp +It performs the following actions: +.RS 4 +.IP "\(bu" 8 +locates an auto/$module directory by searching \f(CW@INC\fR +.IP "\(bu" 8 +uses \fBdl_findfile()\fR to determine the filename to load +.IP "\(bu" 8 +sets \f(CW@dl_require_symbols\fR to \f(CW\*(C`("boot_$module")\*(C'\fR +.IP "\(bu" 8 +executes an \fIauto/$module/$module.bs\fR file if it exists +(typically used to add to \f(CW@dl_resolve_using\fR any files which +are required to load the module on the current platform) +.IP "\(bu" 8 +calls \fBdl_load_flags()\fR to determine how to load the file. +.IP "\(bu" 8 +calls \fBdl_load_file()\fR to load the file +.IP "\(bu" 8 +calls \fBdl_undef_symbols()\fR and warns if any symbols are undefined +.IP "\(bu" 8 +calls \fBdl_find_symbol()\fR for \*(L"boot_$module\*(R" +.IP "\(bu" 8 +calls \fBdl_install_xsub()\fR to install it as \*(L"${module}::bootstrap\*(R" +.IP "\(bu" 8 +calls &{\*(L"${module}::bootstrap\*(R"} to bootstrap the module (actually +it uses the function reference returned by dl_install_xsub for speed) +.RE +.RS 4 +.Sp +All arguments to \fBbootstrap()\fR are passed to the module's bootstrap function. +The default code generated by \fIxsubpp\fR expects \f(CW$module\fR [, \f(CW$version\fR] +If the optional \f(CW$version\fR argument is not given, it defaults to +\&\f(CW\*(C`$XS_VERSION // $VERSION\*(C'\fR in the module's symbol table. The default code +compares the Perl-space version with the version of the compiled \s-1XS\s0 code, +and croaks with an error if they do not match. +.RE +.SH "AUTHOR" +.IX Header "AUTHOR" +Tim Bunce, 11 August 1994. +.PP +This interface is based on the work and comments of (in no particular +order): Larry Wall, Robert Sanders, Dean Roehrich, Jeff Okamoto, Anno +Siegel, Thomas Neumann, Paul Marquess, Charles Bailey, myself and others. +.PP +Larry Wall designed the elegant inherited bootstrap mechanism and +implemented the first Perl 5 dynamic loader using it. +.PP +Solaris global loading added by Nick Ing-Simmons with design/coding +assistance from Tim Bunce, January 1996. diff --git a/data/miniconda3/man/man3/Encode%3A%3AAlias.3 b/data/miniconda3/man/man3/Encode%3A%3AAlias.3 new file mode 100644 index 0000000000000000000000000000000000000000..fb7af1ef3082e6da33f73079b50fd89cbe07a2ae --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AAlias.3 @@ -0,0 +1,249 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Alias 3" +.TH Encode::Alias 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Alias \- alias definitions to encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use Encode; +\& use Encode::Alias; +\& define_alias( "newName" => ENCODING); +\& define_alias( qr/.../ => ENCODING); +\& define_alias( sub { return ENCODING if ...; } ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Allows newName to be used as an alias for \s-1ENCODING. ENCODING\s0 may be +either the name of an encoding or an encoding object (as described +in Encode). +.PP +Currently the first argument to \fBdefine_alias()\fR can be specified in the +following ways: +.IP "As a simple string." 4 +.IX Item "As a simple string." +.PD 0 +.IP "As a qr// compiled regular expression, e.g.:" 4 +.IX Item "As a qr// compiled regular expression, e.g.:" +.PD +.Vb 1 +\& define_alias( qr/^iso8859\-(\ed+)$/i => \*(Aq"iso\-8859\-$1"\*(Aq ); +.Ve +.Sp +In this case, if \fI\s-1ENCODING\s0\fR is not a reference, it is \f(CW\*(C`eval\*(C'\fR\-ed +in order to allow \f(CW$1\fR etc. to be substituted. The example is one +way to alias names as used in X11 fonts to the \s-1MIME\s0 names for the +iso\-8859\-* family. Note the double quotes inside the single quotes. +.Sp +(or, you don't have to do this yourself because this example is predefined) +.Sp +If you are using a regex here, you have to use the quotes as shown or +it won't work. Also note that regex handling is tricky even for the +experienced. Use this feature with caution. +.IP "As a code reference, e.g.:" 4 +.IX Item "As a code reference, e.g.:" +.Vb 1 +\& define_alias( sub {shift =~ /^iso8859\-(\ed+)$/i ? "iso\-8859\-$1" : undef } ); +.Ve +.Sp +The same effect as the example above in a different way. The coderef +takes the alias name as an argument and returns a canonical name on +success or undef if not. Note the second argument is ignored if provided. +Use this with even more caution than the regex version. +.PP +\fIChanges in code reference aliasing\fR +.IX Subsection "Changes in code reference aliasing" +.PP +As of Encode 1.87, the older form +.PP +.Vb 1 +\& define_alias( sub { return /^iso8859\-(\ed+)$/i ? "iso\-8859\-$1" : undef } ); +.Ve +.PP +no longer works. +.PP +Encode up to 1.86 internally used \*(L"local \f(CW$_\fR\*(R" to implement this older +form. But consider the code below; +.PP +.Vb 6 +\& use Encode; +\& $_ = "eeeee" ; +\& while (/(e)/g) { +\& my $utf = decode(\*(Aqaliased\-encoding\-name\*(Aq, $1); +\& print "position:",pos,"\en"; +\& } +.Ve +.PP +Prior to Encode 1.86 this fails because of \*(L"local \f(CW$_\fR\*(R". +.SS "Alias overloading" +.IX Subsection "Alias overloading" +You can override predefined aliases by simply applying \fBdefine_alias()\fR. +The new alias is always evaluated first, and when necessary, +\&\fBdefine_alias()\fR flushes the internal cache to make the new definition +available. +.PP +.Vb 2 +\& # redirect SHIFT_JIS to MS/IBM Code Page 932, which is a +\& # superset of SHIFT_JIS +\& +\& define_alias( qr/shift.*jis$/i => \*(Aq"cp932"\*(Aq ); +\& define_alias( qr/sjis$/i => \*(Aq"cp932"\*(Aq ); +.Ve +.PP +If you want to zap all predefined aliases, you can use +.PP +.Vb 1 +\& Encode::Alias\->undef_aliases; +.Ve +.PP +to do so. And +.PP +.Vb 1 +\& Encode::Alias\->init_aliases; +.Ve +.PP +gets the factory settings back. +.PP +Note that \fBdefine_alias()\fR will not be able to override the canonical name +of encodings. Encodings are first looked up by canonical name before +potential aliases are tried. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, Encode::Supported diff --git a/data/miniconda3/man/man3/Encode%3A%3AByte.3 b/data/miniconda3/man/man3/Encode%3A%3AByte.3 new file mode 100644 index 0000000000000000000000000000000000000000..8cfcbc1697325a242a4eb9e20dca98cfcfc5b6ea --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AByte.3 @@ -0,0 +1,245 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Byte 3" +.TH Encode::Byte 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Byte \- Single Byte Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $greek = encode("iso\-8859\-7", $utf8); # loads Encode::Byte implicitly +\& $utf8 = decode("iso\-8859\-7", $greek); # ditto +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements various single byte encodings. For most cases it uses +\&\ex80\-\exff (upper half) to map non-ASCII characters. Encodings +supported are as follows. +.PP +.Vb 10 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& # ISO 8859 series +\& (iso\-8859\-1 is in built\-in) +\& iso\-8859\-2 latin2 [ISO] +\& iso\-8859\-3 latin3 [ISO] +\& iso\-8859\-4 latin4 [ISO] +\& iso\-8859\-5 [ISO] +\& iso\-8859\-6 [ISO] +\& iso\-8859\-7 [ISO] +\& iso\-8859\-8 [ISO] +\& iso\-8859\-9 latin5 [ISO] +\& iso\-8859\-10 latin6 [ISO] +\& iso\-8859\-11 +\& (iso\-8859\-12 is nonexistent) +\& iso\-8859\-13 latin7 [ISO] +\& iso\-8859\-14 latin8 [ISO] +\& iso\-8859\-15 latin9 [ISO] +\& iso\-8859\-16 latin10 [ISO] +\& +\& # Cyrillic +\& koi8\-f +\& koi8\-r cp878 [RFC1489] +\& koi8\-u [RFC2319] +\& +\& # Vietnamese +\& viscii +\& +\& # all cp* are also available as ibm\-*, ms\-*, and windows\-* +\& # also see L +\& +\& cp424 +\& cp437 +\& cp737 +\& cp775 +\& cp850 +\& cp852 +\& cp855 +\& cp856 +\& cp857 +\& cp860 +\& cp861 +\& cp862 +\& cp863 +\& cp864 +\& cp865 +\& cp866 +\& cp869 +\& cp874 +\& cp1006 +\& cp1250 WinLatin2 +\& cp1251 WinCyrillic +\& cp1252 WinLatin1 +\& cp1253 WinGreek +\& cp1254 WinTurkish +\& cp1255 WinHebrew +\& cp1256 WinArabic +\& cp1257 WinBaltic +\& cp1258 WinVietnamese +\& +\& # Macintosh +\& # Also see L +\& MacArabic +\& MacCentralEurRoman +\& MacCroatian +\& MacCyrillic +\& MacFarsi +\& MacGreek +\& MacHebrew +\& MacIcelandic +\& MacRoman +\& MacRomanian +\& MacRumanian +\& MacSami +\& MacThai +\& MacTurkish +\& MacUkrainian +\& +\& # More vendor encodings +\& AdobeStandardEncoding +\& nextstep +\& hp\-roman8 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +To find how to use this module in detail, see Encode. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3ACJKConstants.3 b/data/miniconda3/man/man3/Encode%3A%3ACJKConstants.3 new file mode 100644 index 0000000000000000000000000000000000000000..cfc03950135f9583008e49064cd4a48ef950254a --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ACJKConstants.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::CJKConstants 3" +.TH Encode::CJKConstants 3 "2020-12-18" "perl v5.32.1" "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" +Encode::CJKConstants.pm \-\- Internally used by Encode::??::ISO_2022_* diff --git a/data/miniconda3/man/man3/Encode%3A%3ACN%3A%3AHZ.3 b/data/miniconda3/man/man3/Encode%3A%3ACN%3A%3AHZ.3 new file mode 100644 index 0000000000000000000000000000000000000000..dcd8a56bf392bbb1104ef3750809a41a29c1c763 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ACN%3A%3AHZ.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::CN::HZ 3" +.TH Encode::CN::HZ 3 "2020-12-18" "perl v5.32.1" "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" +Encode::CN::HZ \-\- internally used by Encode::CN diff --git a/data/miniconda3/man/man3/Encode%3A%3ACN.3 b/data/miniconda3/man/man3/Encode%3A%3ACN.3 new file mode 100644 index 0000000000000000000000000000000000000000..674782bc077f462e58d45cc0c8dc98f90569abd1 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ACN.3 @@ -0,0 +1,188 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::CN 3" +.TH Encode::CN 3 "2020-12-18" "perl v5.32.1" "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" +Encode::CN \- China\-based Chinese Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $euc_cn = encode("euc\-cn", $utf8); # loads Encode::CN implicitly +\& $utf8 = decode("euc\-cn", $euc_cn); # ditto +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements China-based Chinese charset encodings. +Encodings supported are as follows. +.PP +.Vb 10 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-cn /\ebeuc.*cn$/i EUC (Extended Unix Character) +\& /\ebcn.*euc$/i +\& /\ebGB[\-_ ]?2312(?:\eD.*$|$)/i (see below) +\& gb2312\-raw The raw (low\-bit) GB2312 character map +\& gb12345\-raw Traditional chinese counterpart to +\& GB2312 (raw) +\& iso\-ir\-165 GB2312 + GB6345 + GB8565 + additions +\& MacChineseSimp GB2312 + Apple Additions +\& cp936 Code Page 936, also known as GBK +\& (Extended GuoBiao) +\& hz 7\-bit escaped GB2312 encoding +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +To find how to use this module in detail, see Encode. +.SH "NOTES" +.IX Header "NOTES" +Due to size concerns, \f(CW\*(C`GB 18030\*(C'\fR (an extension to \f(CW\*(C`GBK\*(C'\fR) is distributed +separately on \s-1CPAN,\s0 under the name Encode::HanExtra. That module +also contains extra Taiwan-based encodings. +.SH "BUGS" +.IX Header "BUGS" +When you see \f(CW\*(C`charset=gb2312\*(C'\fR on mails and web pages, they really +mean \f(CW\*(C`euc\-cn\*(C'\fR encodings. To fix that, \f(CW\*(C`gb2312\*(C'\fR is aliased to \f(CW\*(C`euc\-cn\*(C'\fR. +Use \f(CW\*(C`gb2312\-raw\*(C'\fR when you really mean it. +.PP +The \s-1ASCII\s0 region (0x00\-0x7f) is preserved for all encodings, even though +this conflicts with mappings by the Unicode Consortium. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AConfig.3 b/data/miniconda3/man/man3/Encode%3A%3AConfig.3 new file mode 100644 index 0000000000000000000000000000000000000000..abf8ae992a8ee2e30a233cf91dd2b0481d20a9f3 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AConfig.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Config 3" +.TH Encode::Config 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Config \-\- internally used by Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AEBCDIC.3 b/data/miniconda3/man/man3/Encode%3A%3AEBCDIC.3 new file mode 100644 index 0000000000000000000000000000000000000000..64764ad71bcdf1255a0e7ce3adcf9a09675a7899 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AEBCDIC.3 @@ -0,0 +1,170 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::EBCDIC 3" +.TH Encode::EBCDIC 3 "2020-12-18" "perl v5.32.1" "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" +Encode::EBCDIC \- EBCDIC Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $posix_bc = encode("posix\-bc", $utf8); # loads Encode::EBCDIC implicitly +\& $utf8 = decode("", $posix_bc); # ditto +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements various EBCDIC-Based encodings. Encodings +supported are as follows. +.PP +.Vb 8 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& cp37 +\& cp500 +\& cp875 +\& cp1026 +\& cp1047 +\& posix\-bc +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +To find how to use this module in detail, see Encode. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, perlebcdic diff --git a/data/miniconda3/man/man3/Encode%3A%3AEncoder.3 b/data/miniconda3/man/man3/Encode%3A%3AEncoder.3 new file mode 100644 index 0000000000000000000000000000000000000000..73e5fab91dfc62eba1cc5a7186e13f84c0b884ed --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AEncoder.3 @@ -0,0 +1,278 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Encoder 3" +.TH Encode::Encoder 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Encoder \-\- Object Oriented Encoder +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& use Encode::Encoder; +\& # Encode::encode("ISO\-8859\-1", $data); +\& Encode::Encoder\->new($data)\->iso_8859_1; # OOP way +\& # shortcut +\& use Encode::Encoder qw(encoder); +\& encoder($data)\->iso_8859_1; +\& # you can stack them! +\& encoder($data)\->iso_8859_1\->base64; # provided base64() is defined +\& # you can use it as a decoder as well +\& encoder($base64)\->bytes(\*(Aqbase64\*(Aq)\->latin1; +\& # stringified +\& print encoder($data)\->utf8\->latin1; # prints the string in latin1 +\& # numified +\& encoder("\ex{abcd}\ex{ef}g")\->utf8 == 6; # true. bytes::length($data) +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +\&\fBEncode::Encoder\fR allows you to use Encode in an object-oriented +style. This is not only more intuitive than a functional approach, +but also handier when you want to stack encodings. Suppose you want +your \s-1UTF\-8\s0 string converted to Latin1 then Base64: you can simply say +.PP +.Vb 1 +\& my $base64 = encoder($utf8)\->latin1\->base64; +.Ve +.PP +instead of +.PP +.Vb 2 +\& my $latin1 = encode("latin1", $utf8); +\& my $base64 = encode_base64($utf8); +.Ve +.PP +or the lazier and more convoluted +.PP +.Vb 1 +\& my $base64 = encode_base64(encode("latin1", $utf8)); +.Ve +.SH "Description" +.IX Header "Description" +Here is how to use this module. +.IP "\(bu" 4 +There are at least two instance variables stored in a hash reference, +{data} and {encoding}. +.IP "\(bu" 4 +When there is no method, it takes the method name as the name of the +encoding and encodes the instance \fIdata\fR with \fIencoding\fR. If successful, +the instance \fIencoding\fR is set accordingly. +.IP "\(bu" 4 +You can retrieve the result via \->data but usually you don't have to +because the stringify operator ("") is overridden to do exactly that. +.SS "Predefined Methods" +.IX Subsection "Predefined Methods" +This module predefines the methods below: +.ie n .IP "$e = Encode::Encoder\->new([$data, $encoding]);" 4 +.el .IP "\f(CW$e\fR = Encode::Encoder\->new([$data, \f(CW$encoding\fR]);" 4 +.IX Item "$e = Encode::Encoder->new([$data, $encoding]);" +returns an encoder object. Its data is initialized with \f(CW$data\fR if +present, and its encoding is set to \f(CW$encoding\fR if present. +.Sp +When \f(CW$encoding\fR is omitted, it defaults to utf8 if \f(CW$data\fR is already in +utf8 or "" (empty string) otherwise. +.IP "\fBencoder()\fR" 4 +.IX Item "encoder()" +is an alias of Encode::Encoder\->\fBnew()\fR. This one is exported on demand. +.ie n .IP "$e\->data([$data])" 4 +.el .IP "\f(CW$e\fR\->data([$data])" 4 +.IX Item "$e->data([$data])" +When \f(CW$data\fR is present, sets the instance data to \f(CW$data\fR and returns the +object itself. Otherwise, the current instance data is returned. +.ie n .IP "$e\->encoding([$encoding])" 4 +.el .IP "\f(CW$e\fR\->encoding([$encoding])" 4 +.IX Item "$e->encoding([$encoding])" +When \f(CW$encoding\fR is present, sets the instance encoding to \f(CW$encoding\fR and +returns the object itself. Otherwise, the current instance encoding is +returned. +.ie n .IP "$e\->bytes([$encoding])" 4 +.el .IP "\f(CW$e\fR\->bytes([$encoding])" 4 +.IX Item "$e->bytes([$encoding])" +decodes instance data from \f(CW$encoding\fR, or the instance encoding if +omitted. If the conversion is successful, the instance encoding +will be set to "". +.Sp +The name \fIbytes\fR was deliberately picked to avoid namespace tainting +\&\*(-- this module may be used as a base class so method names that appear +in Encode::Encoding are avoided. +.SS "Example: base64 transcoder" +.IX Subsection "Example: base64 transcoder" +This module is designed to work with Encode::Encoding. +To make the Base64 transcoder example above really work, you could +write a module like this: +.PP +.Vb 10 +\& package Encode::Base64; +\& use parent \*(AqEncode::Encoding\*(Aq; +\& _\|_PACKAGE_\|_\->Define(\*(Aqbase64\*(Aq); +\& use MIME::Base64; +\& sub encode{ +\& my ($obj, $data) = @_; +\& return encode_base64($data); +\& } +\& sub decode{ +\& my ($obj, $data) = @_; +\& return decode_base64($data); +\& } +\& 1; +\& _\|_END_\|_ +.Ve +.PP +And your caller module would be something like this: +.PP +.Vb 2 +\& use Encode::Encoder; +\& use Encode::Base64; +\& +\& # now you can really do the following +\& +\& encoder($data)\->iso_8859_1\->base64; +\& encoder($base64)\->bytes(\*(Aqbase64\*(Aq)\->latin1; +.Ve +.SS "Operator Overloading" +.IX Subsection "Operator Overloading" +This module overloads two operators, stringify ("") and numify (0+). +.PP +Stringify dumps the data inside the object. +.PP +Numify returns the number of bytes in the instance data. +.PP +They come in handy when you want to print or find the size of data. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, +Encode::Encoding diff --git a/data/miniconda3/man/man3/Encode%3A%3AEncoding.3 b/data/miniconda3/man/man3/Encode%3A%3AEncoding.3 new file mode 100644 index 0000000000000000000000000000000000000000..ea3c758c9516c948858e27f5d79e409a04f91f8e --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AEncoding.3 @@ -0,0 +1,351 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Encoding 3" +.TH Encode::Encoding 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Encoding \- Encode Implementation Base Class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package Encode::MyEncoding; +\& use parent qw(Encode::Encoding); +\& +\& _\|_PACKAGE_\|_\->Define(qw(myCanonical myAlias)); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +As mentioned in Encode, encodings are (in the current +implementation at least) defined as objects. The mapping of encoding +name to object is via the \f(CW%Encode::Encoding\fR hash. Though you can +directly manipulate this hash, it is strongly encouraged to use this +base class module and add \fBencode()\fR and \fBdecode()\fR methods. +.SS "Methods you should implement" +.IX Subsection "Methods you should implement" +You are strongly encouraged to implement methods below, at least +either \fBencode()\fR or \fBdecode()\fR. +.IP "\->encode($string [,$check])" 4 +.IX Item "->encode($string [,$check])" +\&\s-1MUST\s0 return the octet sequence representing \fI\f(CI$string\fI\fR. +.RS 4 +.IP "\(bu" 2 +If \fI\f(CI$check\fI\fR is true, it \s-1SHOULD\s0 modify \fI\f(CI$string\fI\fR in place to remove +the converted part (i.e. the whole string unless there is an error). +If \fBperlio_ok()\fR is true, \s-1SHOULD\s0 becomes \s-1MUST.\s0 +.IP "\(bu" 2 +If an error occurs, it \s-1SHOULD\s0 return the octet sequence for the +fragment of string that has been converted and modify \f(CW$string\fR in-place +to remove the converted part leaving it starting with the problem +fragment. If \fBperlio_ok()\fR is true, \s-1SHOULD\s0 becomes \s-1MUST.\s0 +.IP "\(bu" 2 +If \fI\f(CI$check\fI\fR is false then \f(CW\*(C`encode\*(C'\fR \s-1MUST\s0 make a \*(L"best effort\*(R" to +convert the string \- for example, by using a replacement character. +.RE +.RS 4 +.RE +.IP "\->decode($octets [,$check])" 4 +.IX Item "->decode($octets [,$check])" +\&\s-1MUST\s0 return the string that \fI\f(CI$octets\fI\fR represents. +.RS 4 +.IP "\(bu" 2 +If \fI\f(CI$check\fI\fR is true, it \s-1SHOULD\s0 modify \fI\f(CI$octets\fI\fR in place to remove +the converted part (i.e. the whole sequence unless there is an +error). If \fBperlio_ok()\fR is true, \s-1SHOULD\s0 becomes \s-1MUST.\s0 +.IP "\(bu" 2 +If an error occurs, it \s-1SHOULD\s0 return the fragment of string that has +been converted and modify \f(CW$octets\fR in-place to remove the converted +part leaving it starting with the problem fragment. If \fBperlio_ok()\fR is +true, \s-1SHOULD\s0 becomes \s-1MUST.\s0 +.IP "\(bu" 2 +If \fI\f(CI$check\fI\fR is false then \f(CW\*(C`decode\*(C'\fR should make a \*(L"best effort\*(R" to +convert the string \- for example by using Unicode's \*(L"\ex{\s-1FFFD\s0}\*(R" as a +replacement character. +.RE +.RS 4 +.RE +.PP +If you want your encoding to work with encoding pragma, you should +also implement the method below. +.ie n .IP "\->cat_decode($destination, $octets, $offset, $terminator [,$check])" 4 +.el .IP "\->cat_decode($destination, \f(CW$octets\fR, \f(CW$offset\fR, \f(CW$terminator\fR [,$check])" 4 +.IX Item "->cat_decode($destination, $octets, $offset, $terminator [,$check])" +\&\s-1MUST\s0 decode \fI\f(CI$octets\fI\fR with \fI\f(CI$offset\fI\fR and concatenate it to \fI\f(CI$destination\fI\fR. +Decoding will terminate when \f(CW$terminator\fR (a string) appears in output. +\&\fI\f(CI$offset\fI\fR will be modified to the last \f(CW$octets\fR position at end of decode. +Returns true if \f(CW$terminator\fR appears output, else returns false. +.SS "Other methods defined in Encode::Encodings" +.IX Subsection "Other methods defined in Encode::Encodings" +You do not have to override methods shown below unless you have to. +.IP "\->name" 4 +.IX Item "->name" +Predefined As: +.Sp +.Vb 1 +\& sub name { return shift\->{\*(AqName\*(Aq} } +.Ve +.Sp +\&\s-1MUST\s0 return the string representing the canonical name of the encoding. +.IP "\->mime_name" 4 +.IX Item "->mime_name" +Predefined As: +.Sp +.Vb 3 +\& sub mime_name{ +\& return Encode::MIME::Name::get_mime_name(shift\->name); +\& } +.Ve +.Sp +\&\s-1MUST\s0 return the string representing the \s-1IANA\s0 charset name of the encoding. +.IP "\->renew" 4 +.IX Item "->renew" +Predefined As: +.Sp +.Vb 6 +\& sub renew { +\& my $self = shift; +\& my $clone = bless { %$self } => ref($self); +\& $clone\->{renewed}++; +\& return $clone; +\& } +.Ve +.Sp +This method reconstructs the encoding object if necessary. If you need +to store the state during encoding, this is where you clone your object. +.Sp +PerlIO \s-1ALWAYS\s0 calls this method to make sure it has its own private +encoding object. +.IP "\->renewed" 4 +.IX Item "->renewed" +Predefined As: +.Sp +.Vb 1 +\& sub renewed { $_[0]\->{renewed} || 0 } +.Ve +.Sp +Tells whether the object is renewed (and how many times). Some +modules emit \f(CW\*(C`Use of uninitialized value in null operation\*(C'\fR warning +unless the value is numeric so return 0 for false. +.IP "\->\fBperlio_ok()\fR" 4 +.IX Item "->perlio_ok()" +Predefined As: +.Sp +.Vb 3 +\& sub perlio_ok { +\& return eval { require PerlIO::encoding } ? 1 : 0; +\& } +.Ve +.Sp +If your encoding does not support PerlIO for some reasons, just; +.Sp +.Vb 1 +\& sub perlio_ok { 0 } +.Ve +.IP "\->\fBneeds_lines()\fR" 4 +.IX Item "->needs_lines()" +Predefined As: +.Sp +.Vb 1 +\& sub needs_lines { 0 }; +.Ve +.Sp +If your encoding can work with PerlIO but needs line buffering, you +\&\s-1MUST\s0 define this method so it returns true. 7bit \s-1ISO\-2022\s0 encodings +are one example that needs this. When this method is missing, false +is assumed. +.SS "Example: Encode::ROT13" +.IX Subsection "Example: Encode::ROT13" +.Vb 3 +\& package Encode::ROT13; +\& use strict; +\& use parent qw(Encode::Encoding); +\& +\& _\|_PACKAGE_\|_\->Define(\*(Aqrot13\*(Aq); +\& +\& sub encode($$;$){ +\& my ($obj, $str, $chk) = @_; +\& $str =~ tr/A\-Za\-z/N\-ZA\-Mn\-za\-m/; +\& $_[1] = \*(Aq\*(Aq if $chk; # this is what in\-place edit means +\& return $str; +\& } +\& +\& # Jr pna or ynml yvxr guvf; +\& *decode = \e&encode; +\& +\& 1; +.Ve +.SH "Why the heck Encode API is different?" +.IX Header "Why the heck Encode API is different?" +It should be noted that the \fI\f(CI$check\fI\fR behaviour is different from the +outer public \s-1API.\s0 The logic is that the \*(L"unchecked\*(R" case is useful +when the encoding is part of a stream which may be reporting errors +(e.g. \s-1STDERR\s0). In such cases, it is desirable to get everything +through somehow without causing additional errors which obscure the +original one. Also, the encoding is best placed to know what the +correct replacement character is, so if that is the desired behaviour +then letting low level code do it is the most efficient. +.PP +By contrast, if \fI\f(CI$check\fI\fR is true, the scheme above allows the +encoding to do as much as it can and tell the layer above how much +that was. What is lacking at present is a mechanism to report what +went wrong. The most likely interface will be an additional method +call to the object, or perhaps (to avoid forcing per-stream objects +on otherwise stateless encodings) an additional parameter. +.PP +It is also highly desirable that encoding classes inherit from +\&\f(CW\*(C`Encode::Encoding\*(C'\fR as a base class. This allows that class to define +additional behaviour for all encoding objects. +.PP +.Vb 2 +\& package Encode::MyEncoding; +\& use parent qw(Encode::Encoding); +\& +\& _\|_PACKAGE_\|_\->Define(qw(myCanonical myAlias)); +.Ve +.PP +to create an object with \f(CW\*(C`bless {Name => ...}, $class\*(C'\fR, and call +define_encoding. They inherit their \f(CW\*(C`name\*(C'\fR method from +\&\f(CW\*(C`Encode::Encoding\*(C'\fR. +.SS "Compiled Encodings" +.IX Subsection "Compiled Encodings" +For the sake of speed and efficiency, most of the encodings are now +supported via a \fIcompiled form\fR: \s-1XS\s0 modules generated from \s-1UCM\s0 +files. Encode provides the enc2xs tool to achieve that. Please see +enc2xs for more details. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlmod, enc2xs diff --git a/data/miniconda3/man/man3/Encode%3A%3AGSM0338.3 b/data/miniconda3/man/man3/Encode%3A%3AGSM0338.3 new file mode 100644 index 0000000000000000000000000000000000000000..fe20be54bd3228137ffdda777e4b0d4c3235b99a --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AGSM0338.3 @@ -0,0 +1,192 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::GSM0338 3" +.TH Encode::GSM0338 3 "2020-12-18" "perl v5.32.1" "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" +Encode::GSM0338 \-\- ESTI GSM 03.38 Encoding +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $gsm0338 = encode("gsm0338", $utf8); # loads Encode::GSM0338 implicitly +\& $utf8 = decode("gsm0338", $gsm0338); # ditto +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\s-1GSM0338\s0 is for \s-1GSM\s0 handsets. Though it shares alphanumerals with \s-1ASCII,\s0 +control character ranges and other parts are mapped very differently, +mainly to store Greek characters. There are also escape sequences +(starting with 0x1B) to cover e.g. the Euro sign. +.PP +This was once handled by Encode::Bytes but because of all those +unusual specifications, Encode 2.20 has relocated the support to +this module. +.SH "NOTES" +.IX Header "NOTES" +Unlike most other encodings, the following always croaks on error +for any \f(CW$chk\fR that evaluates to true. +.PP +.Vb 2 +\& $gsm0338 = encode("gsm0338", $utf8 $chk); +\& $utf8 = decode("gsm0338", $gsm0338, $chk); +.Ve +.PP +So if you want to check the validity of the encoding, surround the +expression with \f(CW\*(C`eval {}\*(C'\fR block as follows; +.PP +.Vb 5 +\& eval { +\& $utf8 = decode("gsm0338", $gsm0338, $chk); +\& } or do { +\& # handle exception here +\& }; +.Ve +.SH "BUGS" +.IX Header "BUGS" +\&\s-1ESTI GSM 03.38\s0 Encoding itself. +.PP +Mapping \ex00 to '@' causes too much pain everywhere. +.PP +Its use of \ex1b (escape) is also very questionable. +.PP +Because of those two, the code paging approach used use in ucm-based +Encoding \s-1SOMETIMES\s0 fails so this module was written. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AGuess.3 b/data/miniconda3/man/man3/Encode%3A%3AGuess.3 new file mode 100644 index 0000000000000000000000000000000000000000..9fb75a34df7b61676ebbc9579c0ef73286493385 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AGuess.3 @@ -0,0 +1,324 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Guess 3" +.TH Encode::Guess 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Guess \-\- Guesses encoding from data +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # if you are sure $data won\*(Aqt contain anything bogus +\& +\& use Encode; +\& use Encode::Guess qw/euc\-jp shiftjis 7bit\-jis/; +\& my $utf8 = decode("Guess", $data); +\& my $data = encode("Guess", $utf8); # this doesn\*(Aqt work! +\& +\& # more elaborate way +\& use Encode::Guess; +\& my $enc = guess_encoding($data, qw/euc\-jp shiftjis 7bit\-jis/); +\& ref($enc) or die "Can\*(Aqt guess: $enc"; # trap error this way +\& $utf8 = $enc\->decode($data); +\& # or +\& $utf8 = decode($enc\->name, $data) +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +Encode::Guess enables you to guess in what encoding a given data is +encoded, or at least tries to. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +By default, it checks only ascii, utf8 and \s-1UTF\-16/32\s0 with \s-1BOM.\s0 +.PP +.Vb 1 +\& use Encode::Guess; # ascii/utf8/BOMed UTF +.Ve +.PP +To use it more practically, you have to give the names of encodings to +check (\fIsuspects\fR as follows). The name of suspects can either be +canonical names or aliases. +.PP +\&\s-1CAVEAT:\s0 Unlike \s-1UTF\-\s0(16|32), \s-1BOM\s0 in utf8 is \s-1NOT AUTOMATICALLY STRIPPED.\s0 +.PP +.Vb 2 +\& # tries all major Japanese Encodings as well +\& use Encode::Guess qw/euc\-jp shiftjis 7bit\-jis/; +.Ve +.PP +If the \f(CW$Encode::Guess::NoUTFAutoGuess\fR variable is set to a true +value, no heuristics will be applied to \s-1UTF8/16/32,\s0 and the result +will be limited to the suspects and \f(CW\*(C`ascii\*(C'\fR. +.IP "Encode::Guess\->set_suspects" 4 +.IX Item "Encode::Guess->set_suspects" +You can also change the internal suspects list via \f(CW\*(C`set_suspects\*(C'\fR +method. +.Sp +.Vb 2 +\& use Encode::Guess; +\& Encode::Guess\->set_suspects(qw/euc\-jp shiftjis 7bit\-jis/); +.Ve +.IP "Encode::Guess\->add_suspects" 4 +.IX Item "Encode::Guess->add_suspects" +Or you can use \f(CW\*(C`add_suspects\*(C'\fR method. The difference is that +\&\f(CW\*(C`set_suspects\*(C'\fR flushes the current suspects list while +\&\f(CW\*(C`add_suspects\*(C'\fR adds. +.Sp +.Vb 5 +\& use Encode::Guess; +\& Encode::Guess\->add_suspects(qw/euc\-jp shiftjis 7bit\-jis/); +\& # now the suspects are euc\-jp,shiftjis,7bit\-jis, AND +\& # euc\-kr,euc\-cn, and big5\-eten +\& Encode::Guess\->add_suspects(qw/euc\-kr euc\-cn big5\-eten/); +.Ve +.ie n .IP "Encode::decode(""Guess"" ...)" 4 +.el .IP "Encode::decode(``Guess'' ...)" 4 +.IX Item "Encode::decode(Guess ...)" +When you are content with suspects list, you can now +.Sp +.Vb 1 +\& my $utf8 = Encode::decode("Guess", $data); +.Ve +.IP "Encode::Guess\->guess($data)" 4 +.IX Item "Encode::Guess->guess($data)" +But it will croak if: +.RS 4 +.IP "\(bu" 4 +Two or more suspects remain +.IP "\(bu" 4 +No suspects left +.RE +.RS 4 +.Sp +So you should instead try this; +.Sp +.Vb 1 +\& my $decoder = Encode::Guess\->guess($data); +.Ve +.Sp +On success, \f(CW$decoder\fR is an object that is documented in +Encode::Encoding. So you can now do this; +.Sp +.Vb 1 +\& my $utf8 = $decoder\->decode($data); +.Ve +.Sp +On failure, \f(CW$decoder\fR now contains an error message so the whole thing +would be as follows; +.Sp +.Vb 3 +\& my $decoder = Encode::Guess\->guess($data); +\& die $decoder unless ref($decoder); +\& my $utf8 = $decoder\->decode($data); +.Ve +.RE +.IP "guess_encoding($data, [, \fIlist of suspects\fR])" 4 +.IX Item "guess_encoding($data, [, list of suspects])" +You can also try \f(CW\*(C`guess_encoding\*(C'\fR function which is exported by +default. It takes \f(CW$data\fR to check and it also takes the list of +suspects by option. The optional suspect list is \fInot reflected\fR to +the internal suspects list. +.Sp +.Vb 5 +\& my $decoder = guess_encoding($data, qw/euc\-jp euc\-kr euc\-cn/); +\& die $decoder unless ref($decoder); +\& my $utf8 = $decoder\->decode($data); +\& # check only ascii, utf8 and UTF\-(16|32) with BOM +\& my $decoder = guess_encoding($data); +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "\(bu" 4 +Because of the algorithm used, \s-1ISO\-8859\s0 series and other single-byte +encodings do not work well unless either one of \s-1ISO\-8859\s0 is the only +one suspect (besides ascii and utf8). +.Sp +.Vb 5 +\& use Encode::Guess; +\& # perhaps ok +\& my $decoder = guess_encoding($data, \*(Aqlatin1\*(Aq); +\& # definitely NOT ok +\& my $decoder = guess_encoding($data, qw/latin1 greek/); +.Ve +.Sp +The reason is that Encode::Guess guesses encoding by trial and error. +It first splits \f(CW$data\fR into lines and tries to decode the line for each +suspect. It keeps it going until all but one encoding is eliminated +out of suspects list. \s-1ISO\-8859\s0 series is just too successful for most +cases (because it fills almost all code points in \ex00\-\exff). +.IP "\(bu" 4 +Do not mix national standard encodings and the corresponding vendor +encodings. +.Sp +.Vb 3 +\& # a very bad idea +\& my $decoder +\& = guess_encoding($data, qw/shiftjis MacJapanese cp932/); +.Ve +.Sp +The reason is that vendor encoding is usually a superset of national +standard so it becomes too ambiguous for most cases. +.IP "\(bu" 4 +On the other hand, mixing various national standard encodings +automagically works unless \f(CW$data\fR is too short to allow for guessing. +.Sp +.Vb 6 +\& # This is ok if $data is long enough +\& my $decoder = +\& guess_encoding($data, qw/euc\-cn +\& euc\-jp shiftjis 7bit\-jis +\& euc\-kr +\& big5\-eten/); +.Ve +.IP "\(bu" 4 +\&\s-1DO NOT PUT TOO MANY SUSPECTS\s0! Don't you try something like this! +.Sp +.Vb 2 +\& my $decoder = guess_encoding($data, +\& Encode\->encodings(":all")); +.Ve +.PP +It is, after all, just a guess. You should alway be explicit when it +comes to encodings. But there are some, especially Japanese, +environment that guess-coding is a must. Use this module with care. +.SH "TO DO" +.IX Header "TO DO" +Encode::Guess does not work on \s-1EBCDIC\s0 platforms. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, Encode::Encoding diff --git a/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AH2Z.3 b/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AH2Z.3 new file mode 100644 index 0000000000000000000000000000000000000000..98cfd079b472e98d16319bbcbdfc154ad2175738 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AH2Z.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::JP::H2Z 3" +.TH Encode::JP::H2Z 3 "2020-12-18" "perl v5.32.1" "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" +Encode::JP::H2Z \-\- internally used by Encode::JP::2022_JP* diff --git a/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AJIS7.3 b/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AJIS7.3 new file mode 100644 index 0000000000000000000000000000000000000000..97522e1bd9079c8b4528441002fac73ab65ca2d4 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AJP%3A%3AJIS7.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::JP::JIS7 3" +.TH Encode::JP::JIS7 3 "2020-12-18" "perl v5.32.1" "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" +Encode::JP::JIS7 \-\- internally used by Encode::JP diff --git a/data/miniconda3/man/man3/Encode%3A%3AJP.3 b/data/miniconda3/man/man3/Encode%3A%3AJP.3 new file mode 100644 index 0000000000000000000000000000000000000000..5cc5ee1d898d34d40dbf0af0ce3cb2636746ab4e --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AJP.3 @@ -0,0 +1,219 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::JP 3" +.TH Encode::JP 3 "2020-12-18" "perl v5.32.1" "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" +Encode::JP \- Japanese Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $euc_jp = encode("euc\-jp", $utf8); # loads Encode::JP implicitly +\& $utf8 = decode("euc\-jp", $euc_jp); # ditto +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements Japanese charset encodings. Encodings +supported are as follows. +.PP +.Vb 10 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-jp /\ebeuc.*jp$/i EUC (Extended Unix Character) +\& /\ebjp.*euc/i +\& /\ebujis$/i +\& shiftjis /\ebshift.*jis$/i Shift JIS (aka MS Kanji) +\& /\ebsjis$/i +\& 7bit\-jis /\ebjis$/i 7bit JIS +\& iso\-2022\-jp ISO\-2022\-JP [RFC1468] +\& = 7bit JIS with all Halfwidth Kana +\& converted to Fullwidth +\& iso\-2022\-jp\-1 ISO\-2022\-JP\-1 [RFC2237] +\& = ISO\-2022\-JP with JIS X 0212\-1990 +\& support. See below +\& MacJapanese Shift JIS + Apple vendor mappings +\& cp932 /\ebwindows\-31j$/i Code Page 932 +\& = Shift JIS + MS/IBM vendor mappings +\& jis0201\-raw JIS0201, raw format +\& jis0208\-raw JIS0201, raw format +\& jis0212\-raw JIS0201, raw format +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +To find out how to use this module in detail, see Encode. +.SH "Note on ISO\-2022\-JP(\-1)?" +.IX Header "Note on ISO-2022-JP(-1)?" +\&\s-1ISO\-2022\-JP\-1\s0 (\s-1RFC2237\s0) is a superset of \s-1ISO\-2022\-JP\s0 (\s-1RFC1468\s0) which +adds support for \s-1JIS X 0212\-1990.\s0 That means you can use the same +code to decode to utf8 but not vice versa. +.PP +.Vb 1 +\& $utf8 = decode(\*(Aqiso\-2022\-jp\-1\*(Aq, $stream); +.Ve +.PP +and +.PP +.Vb 1 +\& $utf8 = decode(\*(Aqiso\-2022\-jp\*(Aq, $stream); +.Ve +.PP +yield the same result but +.PP +.Vb 1 +\& $with_0212 = encode(\*(Aqiso\-2022\-jp\-1\*(Aq, $utf8); +.Ve +.PP +is now different from +.PP +.Vb 1 +\& $without_0212 = encode(\*(Aqiso\-2022\-jp\*(Aq, $utf8 ); +.Ve +.PP +In the latter case, characters that map to 0212 are first converted +to U+3013 (0xA2AE in EUC-JP; a white square also known as 'Tofu' or +\&'geta mark') then fed to the decoding engine. U+FFFD is not used, +in order to preserve text layout as much as possible. +.SH "BUGS" +.IX Header "BUGS" +The \s-1ASCII\s0 region (0x00\-0x7f) is preserved for all encodings, even +though this conflicts with mappings by the Unicode Consortium. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AKR%3A%3A2022_KR.3 b/data/miniconda3/man/man3/Encode%3A%3AKR%3A%3A2022_KR.3 new file mode 100644 index 0000000000000000000000000000000000000000..626e8ac0df419b36fa24811d1a9d3d300591ccc0 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AKR%3A%3A2022_KR.3 @@ -0,0 +1,142 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::KR::2022_KR 3" +.TH Encode::KR::2022_KR 3 "2020-12-18" "perl v5.32.1" "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" +Encode::KR::2022_KR \-\- internally used by Encode::KR diff --git a/data/miniconda3/man/man3/Encode%3A%3AKR.3 b/data/miniconda3/man/man3/Encode%3A%3AKR.3 new file mode 100644 index 0000000000000000000000000000000000000000..2d96505c7c9a7235971808083ef7de26f7a3916b --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AKR.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::KR 3" +.TH Encode::KR 3 "2020-12-18" "perl v5.32.1" "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" +Encode::KR \- Korean Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $euc_kr = encode("euc\-kr", $utf8); # loads Encode::KR implicitly +\& $utf8 = decode("euc\-kr", $euc_kr); # ditto +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements Korean charset encodings. Encodings supported +are as follows. +.PP +.Vb 10 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-kr /\ebeuc.*kr$/i EUC (Extended Unix Character) +\& /\ebkr.*euc$/i +\& ksc5601\-raw Korean standard code set (as is) +\& cp949 /(?:x\-)?uhc$/i +\& /(?:x\-)?windows\-949$/i +\& /\ebks_c_5601\-1987$/i +\& Code Page 949 (EUC\-KR + 8,822 +\& (additional Hangul syllables) +\& MacKorean EUC\-KR + Apple Vendor Mappings +\& johab JOHAB A supplementary encoding defined in +\& Annex 3 of KS X 1001:1998 +\& iso\-2022\-kr iso\-2022\-kr [RFC1557] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +To find how to use this module in detail, see Encode. +.SH "BUGS" +.IX Header "BUGS" +When you see \f(CW\*(C`charset=ks_c_5601\-1987\*(C'\fR on mails and web pages, they really +mean \*(L"cp949\*(R" encodings. To fix that, the following aliases are set; +.PP +.Vb 3 +\& qr/(?:x\-)?uhc$/i => \*(Aq"cp949"\*(Aq +\& qr/(?:x\-)?windows\-949$/i => \*(Aq"cp949"\*(Aq +\& qr/ks_c_5601\-1987$/i => \*(Aq"cp949"\*(Aq +.Ve +.PP +The \s-1ASCII\s0 region (0x00\-0x7f) is preserved for all encodings, even +though this conflicts with mappings by the Unicode Consortium. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AHeader.3 b/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AHeader.3 new file mode 100644 index 0000000000000000000000000000000000000000..e8720e40a1d23a1732d3211feeab4ae67fa29072 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AHeader.3 @@ -0,0 +1,253 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::MIME::Header 3" +.TH Encode::MIME::Header 3 "2020-12-18" "perl v5.32.1" "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" +Encode::MIME::Header \-\- MIME encoding for an unstructured email header +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Encode qw(encode decode); +\& +\& my $mime_str = encode("MIME\-Header", "Sample:Text \eN{U+263A}"); +\& # $mime_str is "=?UTF\-8?B?U2FtcGxlOlRleHQg4pi6?=" +\& +\& my $mime_q_str = encode("MIME\-Q", "Sample:Text \eN{U+263A}"); +\& # $mime_q_str is "=?UTF\-8?Q?Sample=3AText_=E2=98=BA?=" +\& +\& my $str = decode("MIME\-Header", +\& "=?ISO\-8859\-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=\er\en " . +\& "=?ISO\-8859\-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=" +\& ); +\& # $str is "If you can read this you understand the example." +\& +\& use Encode qw(decode :fallbacks); +\& use Encode::MIME::Header; +\& local $Encode::MIME::Header::STRICT_DECODE = 1; +\& my $strict_string = decode("MIME\-Header", $mime_string, FB_CROAK); +\& # use strict decoding and croak on errors +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements \s-1RFC 2047\s0 \s-1MIME\s0 +encoding for an unstructured field body of the email header. It can also be +used for \s-1RFC 822\s0 'text' token. However, +it cannot be used directly for the whole header with the field name or for the +structured header fields like From, To, Cc, Message-Id, etc... There are 3 +encoding names supported by this module: \f(CW\*(C`MIME\-Header\*(C'\fR, \f(CW\*(C`MIME\-B\*(C'\fR and +\&\f(CW\*(C`MIME\-Q\*(C'\fR. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Decode method takes an unstructured field body of the email header (or +\&\s-1RFC 822\s0 'text' token) as its input and +decodes each \s-1MIME\s0 encoded-word from input string to a sequence of bytes +according to \s-1RFC 2047\s0 and +\&\s-1RFC 2231\s0 . Subsequently, each sequence +of bytes with the corresponding \s-1MIME\s0 charset is decoded with +the Encode module and finally, one output string is returned. Text +parts of the input string which do not contain \s-1MIME\s0 encoded-word stay +unmodified in the output string. Folded newlines between two consecutive \s-1MIME\s0 +encoded-words are discarded, others are preserved in the output string. +\&\f(CW\*(C`MIME\-B\*(C'\fR can decode Base64 variant, \f(CW\*(C`MIME\-Q\*(C'\fR can decode Quoted-Printable +variant and \f(CW\*(C`MIME\-Header\*(C'\fR can decode both of them. If Encode module +does not support particular \s-1MIME\s0 charset or chosen variant then an action based +on \s-1CHECK\s0 flags is performed (by default, the +\&\s-1MIME\s0 encoded-word is not decoded). +.PP +Encode method takes a scalar string as its input and uses +strict \s-1UTF\-8\s0 encoder for encoding it to \s-1UTF\-8\s0 +bytes. Then a sequence of \s-1UTF\-8\s0 bytes is encoded into \s-1MIME\s0 encoded-words +(\f(CW\*(C`MIME\-Header\*(C'\fR and \f(CW\*(C`MIME\-B\*(C'\fR use a Base64 variant while \f(CW\*(C`MIME\-Q\*(C'\fR uses a +Quoted-Printable variant) where each \s-1MIME\s0 encoded-word is limited to 75 +characters. \s-1MIME\s0 encoded-words are separated by \f(CW\*(C`CRLF SPACE\*(C'\fR and joined to +one output string. Output string is suitable for unstructured field body of +the email header. +.PP +Both encode and decode methods propagate +\&\s-1CHECK\s0 flags when encoding and decoding the +\&\s-1MIME\s0 charset. +.SH "BUGS" +.IX Header "BUGS" +Versions prior to 2.22 (part of Encode 2.83) have a malfunctioning decoder +and encoder. The \s-1MIME\s0 encoder infamously inserted additional spaces or +discarded white spaces between consecutive \s-1MIME\s0 encoded-words, which led to +invalid \s-1MIME\s0 headers produced by this module. The \s-1MIME\s0 decoder had a tendency +to discard white spaces, incorrectly interpret data or attempt to decode Base64 +\&\s-1MIME\s0 encoded-words as Quoted-Printable. These problems were fixed in version +2.22. It is highly recommended not to use any version prior 2.22! +.PP +Versions prior to 2.24 (part of Encode 2.87) ignored +\&\s-1CHECK\s0 flags. The \s-1MIME\s0 encoder used +not strict utf8 encoder for input Unicode +strings which could lead to invalid \s-1UTF\-8\s0 sequences. \s-1MIME\s0 decoder used also +not strict utf8 decoder and additionally +called the decode method with a \f(CW\*(C`Encode::FB_PERLQQ\*(C'\fR flag (thus user-specified +\&\s-1CHECK\s0 flags were ignored). Moreover, it +automatically croaked when a \s-1MIME\s0 encoded-word contained unknown encoding. +Since version 2.24, this module uses +strict \s-1UTF\-8\s0 encoder and decoder. And +\&\s-1CHECK\s0 flags are correctly propagated. +.PP +Since version 2.22 (part of Encode 2.83), the \s-1MIME\s0 encoder should be fully +compliant to \s-1RFC 2047\s0 and +\&\s-1RFC 2231\s0 . Due to the aforementioned +bugs in previous versions of the \s-1MIME\s0 encoder, there is a \fIless strict\fR +compatible mode for the \s-1MIME\s0 decoder which is used by default. It should be +able to decode \s-1MIME\s0 encoded-words encoded by pre 2.22 versions of this module. +However, note that this is not correct according to +\&\s-1RFC 2047\s0 . +.PP +In default \fInot strict\fR mode the \s-1MIME\s0 decoder attempts to decode every substring +which looks like a \s-1MIME\s0 encoded-word. Therefore, the \s-1MIME\s0 encoded-words do not +need to be separated by white space. To enforce a correct \fIstrict\fR mode, set +variable \f(CW$Encode::MIME::Header::STRICT_DECODE\fR to 1 e.g. by localizing: +.PP +.Vb 2 +\& use Encode::MIME::Header; +\& local $Encode::MIME::Header::STRICT_DECODE = 1; +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +Pali +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, +\&\s-1RFC 822\s0 , +\&\s-1RFC 2047\s0 , +\&\s-1RFC 2231\s0 diff --git a/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AName.3 b/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AName.3 new file mode 100644 index 0000000000000000000000000000000000000000..871205db36d2c660e6c5e4e5382d7f39b829184b --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AMIME%3A%3AName.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::MIME::Name 3" +.TH Encode::MIME::Name 3 "2020-12-18" "perl v5.32.1" "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" +Encode::MIME::NAME \-\- internally used by Encode +.SH "SEE ALSO" +.IX Header "SEE ALSO" +I18N::Charset diff --git a/data/miniconda3/man/man3/Encode%3A%3APerlIO.3 b/data/miniconda3/man/man3/Encode%3A%3APerlIO.3 new file mode 100644 index 0000000000000000000000000000000000000000..fb5aaceeceb889a14ba9c0244618f309a0472fa3 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3APerlIO.3 @@ -0,0 +1,316 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::PerlIO 3" +.TH Encode::PerlIO 3 "2020-12-18" "perl v5.32.1" "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" +Encode::PerlIO \-\- a detailed document on Encode and PerlIO +.SH "Overview" +.IX Header "Overview" +It is very common to want to do encoding transformations when +reading or writing files, network connections, pipes etc. +If Perl is configured to use the new 'perlio' \s-1IO\s0 system then +\&\f(CW\*(C`Encode\*(C'\fR provides a \*(L"layer\*(R" (see PerlIO) which can transform +data as it is read or written. +.PP +Here is how the blind poet would modernise the encoding: +.PP +.Vb 7 +\& use Encode; +\& open(my $iliad,\*(Aq<:encoding(iso\-8859\-7)\*(Aq,\*(Aqiliad.greek\*(Aq); +\& open(my $utf8,\*(Aq>:utf8\*(Aq,\*(Aqiliad.utf8\*(Aq); +\& my @epic = <$iliad>; +\& print $utf8 @epic; +\& close($utf8); +\& close($illiad); +.Ve +.PP +In addition, the new \s-1IO\s0 system can also be configured to read/write +\&\s-1UTF\-8\s0 encoded characters (as noted above, this is efficient): +.PP +.Vb 2 +\& open(my $fh,\*(Aq>:utf8\*(Aq,\*(Aqanything\*(Aq); +\& print $fh "Any \ex{0021} string \eN{SMILEY FACE}\en"; +.Ve +.PP +Either of the above forms of \*(L"layer\*(R" specifications can be made the default +for a lexical scope with the \f(CW\*(C`use open ...\*(C'\fR pragma. See open. +.PP +Once a handle is open, its layers can be altered using \f(CW\*(C`binmode\*(C'\fR. +.PP +Without any such configuration, or if Perl itself is built using the +system's own \s-1IO,\s0 then write operations assume that the file handle +accepts only \fIbytes\fR and will \f(CW\*(C`die\*(C'\fR if a character larger than 255 is +written to the handle. When reading, each octet from the handle becomes +a byte-in-a-character. Note that this default is the same behaviour +as bytes-only languages (including Perl before v5.6) would have, +and is sufficient to handle native 8\-bit encodings e.g. iso\-8859\-1, +\&\s-1EBCDIC\s0 etc. and any legacy mechanisms for handling other encodings +and binary data. +.PP +In other cases, it is the program's responsibility to transform +characters into bytes using the \s-1API\s0 above before doing writes, and to +transform the bytes read from a handle into characters before doing +\&\*(L"character operations\*(R" (e.g. \f(CW\*(C`lc\*(C'\fR, \f(CW\*(C`/\eW+/\*(C'\fR, ...). +.PP +You can also use PerlIO to convert larger amounts of data you don't +want to bring into memory. For example, to convert between \s-1ISO\-8859\-1\s0 +(Latin 1) and \s-1UTF\-8\s0 (or UTF-EBCDIC in \s-1EBCDIC\s0 machines): +.PP +.Vb 3 +\& open(F, "<:encoding(iso\-8859\-1)", "data.txt") or die $!; +\& open(G, ">:utf8", "data.utf") or die $!; +\& while () { print G } +\& +\& # Could also do "print G " but that would pull +\& # the whole file into memory just to write it out again. +.Ve +.PP +More examples: +.PP +.Vb 3 +\& open(my $f, "<:encoding(cp1252)") +\& open(my $g, ">:encoding(iso\-8859\-2)") +\& open(my $h, ">:encoding(latin9)") # iso\-8859\-15 +.Ve +.PP +See also encoding for how to change the default encoding of the +data in your script. +.SH "How does it work?" +.IX Header "How does it work?" +Here is a crude diagram of how filehandle, PerlIO, and Encode +interact. +.PP +.Vb 3 +\& filehandle <\-> PerlIO PerlIO <\-> scalar (read/printed) +\& \e / +\& Encode +.Ve +.PP +When PerlIO receives data from either direction, it fills a buffer +(currently with 1024 bytes) and passes the buffer to Encode. +Encode tries to convert the valid part and passes it back to PerlIO, +leaving invalid parts (usually a partial character) in the buffer. +PerlIO then appends more data to the buffer, calls Encode again, +and so on until the data stream ends. +.PP +To do so, PerlIO always calls (de|en)code methods with \s-1CHECK\s0 set to 1. +This ensures that the method stops at the right place when it +encounters partial character. The following is what happens when +PerlIO and Encode tries to encode (from utf8) more than 1024 bytes +and the buffer boundary happens to be in the middle of a character. +.PP +.Vb 5 +\& A B C .... ~ \ex{3000} .... +\& 41 42 43 .... 7E e3 80 80 .... +\& <\- buffer \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-> +\& << encoded >>>>>>>>>> +\& <\- next buffer \-\-\-\-\-\- +.Ve +.PP +Encode converts from the beginning to \ex7E, leaving \exe3 in the buffer +because it is invalid (partial character). +.PP +Unfortunately, this scheme does not work well with escape-based +encodings such as \s-1ISO\-2022\-JP.\s0 +.SH "Line Buffering" +.IX Header "Line Buffering" +Now let's see what happens when you try to decode from \s-1ISO\-2022\-JP\s0 and +the buffer ends in the middle of a character. +.PP +.Vb 5 +\& JIS208\-ESC \ex{5f3e} +\& A B C .... ~ \ee $ B |DAN | .... +\& 41 42 43 .... 7E 1b 24 41 43 46 .... +\& <\- buffer \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-> +\& << encoded >>>>>>>>>>>>>>>>>>>>>>> +.Ve +.PP +As you see, the next buffer begins with \ex43. But \ex43 is 'C' in +\&\s-1ASCII,\s0 which is wrong in this case because we are now in \s-1JISX 0208\s0 +area so it has to convert \ex43\ex46, not \ex43. Unlike utf8 and \s-1EUC,\s0 +in escape-based encodings you can't tell if a given octet is a whole +character or just part of it. +.PP +Fortunately PerlIO also supports line buffer if you tell PerlIO to use +one instead of fixed buffer. Since \s-1ISO\-2022\-JP\s0 is guaranteed to revert to \s-1ASCII\s0 at the end of the line, partial +character will never happen when line buffer is used. +.PP +To tell PerlIO to use line buffer, implement \->needs_lines method +for your encoding object. See Encode::Encoding for details. +.PP +Thanks to these efforts most encodings that come with Encode support +PerlIO but that still leaves following encodings. +.PP +.Vb 4 +\& iso\-2022\-kr +\& MIME\-B +\& MIME\-Header +\& MIME\-Q +.Ve +.PP +Fortunately iso\-2022\-kr is hardly used (according to Jungshik) and +MIME\-* are very unlikely to be fed to PerlIO because they are for mail +headers. See Encode::MIME::Header for details. +.SS "How can I tell whether my encoding fully supports PerlIO ?" +.IX Subsection "How can I tell whether my encoding fully supports PerlIO ?" +As of this writing, any encoding whose class belongs to Encode::XS and +Encode::Unicode works. The Encode module has a \f(CW\*(C`perlio_ok\*(C'\fR method +which you can use before applying PerlIO encoding to the filehandle. +Here is an example: +.PP +.Vb 7 +\& my $use_perlio = perlio_ok($enc); +\& my $layer = $use_perlio ? "<:raw" : "<:encoding($enc)"; +\& open my $fh, $layer, $file or die "$file : $!"; +\& while(<$fh>){ +\& $_ = decode($enc, $_) unless $use_perlio; +\& # .... +\& } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode::Encoding, +Encode::Supported, +Encode::PerlIO, +encoding, +perlebcdic, +\&\*(L"open\*(R" in perlfunc, +perlunicode, +utf8, +the Perl Unicode Mailing List diff --git a/data/miniconda3/man/man3/Encode%3A%3ASupported.3 b/data/miniconda3/man/man3/Encode%3A%3ASupported.3 new file mode 100644 index 0000000000000000000000000000000000000000..808c652d488fcbf4307efc4631b94f7971c0634b --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ASupported.3 @@ -0,0 +1,936 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Supported 3" +.TH Encode::Supported 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Supported \-\- Encodings supported by Encode +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Encoding Names" +.IX Subsection "Encoding Names" +Encoding names are case insensitive. White space in names +is ignored. In addition, an encoding may have aliases. +Each encoding has one \*(L"canonical\*(R" name. The \*(L"canonical\*(R" +name is chosen from the names of the encoding by picking +the first in the following sequence (with a few exceptions). +.IP "\(bu" 2 +The name used by the Perl community. That includes 'utf8' and 'ascii'. +Unlike aliases, canonical names directly reach the method so such +frequently used words like 'utf8' don't need to do alias lookups. +.IP "\(bu" 2 +The \s-1MIME\s0 name as defined in \s-1IETF\s0 RFCs. This includes all \*(L"iso\-\*(R"s. +.IP "\(bu" 2 +The name in the \s-1IANA\s0 registry. +.IP "\(bu" 2 +The name used by the organization that defined it. +.PP +In case \fIde jure\fR canonical names differ from that of the Encode +module, they are always aliased if it ever be implemented. So you can +safely tell if a given encoding is implemented or not just by passing +the canonical name. +.PP +Because of all the alias issues, and because in the general case +encodings have state, \*(L"Encode\*(R" uses an encoding object internally +once an operation is in progress. +.SH "Supported Encodings" +.IX Header "Supported Encodings" +As of Perl 5.8.0, at least the following encodings are recognized. +Note that unless otherwise specified, they are all case insensitive +(via alias) and all occurrence of spaces are replaced with '\-'. +In other words, \*(L"\s-1ISO 8859 1\*(R"\s0 and \*(L"iso\-8859\-1\*(R" are identical. +.PP +Encodings are categorized and implemented in several different modules +but you don't have to \f(CW\*(C`use Encode::XX\*(C'\fR to make them available for +most cases. Encode.pm will automatically load those modules on demand. +.SS "Built-in Encodings" +.IX Subsection "Built-in Encodings" +The following encodings are always available. +.PP +.Vb 8 +\& Canonical Aliases Comments & References +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& ascii US\-ascii ISO\-646\-US [ECMA] +\& ascii\-ctrl Special Encoding +\& iso\-8859\-1 latin1 [ISO] +\& null Special Encoding +\& utf8 UTF\-8 [RFC2279] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +\&\fInull\fR and \fIascii-ctrl\fR are special. \*(L"null\*(R" fails for all character +so when you set fallback mode to \s-1PERLQQ, HTMLCREF\s0 or \s-1XMLCREF, ALL +CHARACTERS\s0 will fall back to character references. Ditto for +\&\*(L"ascii-ctrl\*(R" except for control characters. For fallback modes, see +Encode. +.SS "Encode::Unicode \*(-- other Unicode encodings" +.IX Subsection "Encode::Unicode other Unicode encodings" +Unicode coding schemes other than native utf8 are supported by +Encode::Unicode, which will be autoloaded on demand. +.PP +.Vb 11 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& UCS\-2BE UCS\-2, iso\-10646\-1 [IANA, UC] +\& UCS\-2LE [UC] +\& UTF\-16 [UC] +\& UTF\-16BE [UC] +\& UTF\-16LE [UC] +\& UTF\-32 [UC] +\& UTF\-32BE UCS\-4 [UC] +\& UTF\-32LE [UC] +\& UTF\-7 [RFC2152] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +To find how (UCS\-2|UTF\-(16|32))(LE|BE)? differ from one another, +see Encode::Unicode. +.PP +\&\s-1UTF\-7\s0 is a special encoding which \*(L"re-encodes\*(R" \s-1UTF\-16BE\s0 into a 7\-bit +encoding. It is implemented separately by Encode::Unicode::UTF7. +.SS "Encode::Byte \*(-- Extended \s-1ASCII\s0" +.IX Subsection "Encode::Byte Extended ASCII" +Encode::Byte implements most single-byte encodings except for +Symbols and \s-1EBCDIC.\s0 The following encodings are based on single-byte +encodings implemented as extended \s-1ASCII.\s0 Most of them map +\&\ex80\-\exff (upper half) to non-ASCII characters. +.IP "\s-1ISO\-8859\s0 and corresponding vendor mappings" 2 +.IX Item "ISO-8859 and corresponding vendor mappings" +Since there are so many, they are presented in table format with +languages and corresponding encoding names by vendors. Note that +the table is sorted in order of \s-1ISO\-8859\s0 and the corresponding vendor +mappings are slightly different from that of \s-1ISO.\s0 See + for details. +.Sp +.Vb 10 +\& Lang/Regions ISO/Other Std. DOS Windows Macintosh Others +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& N. America (ASCII) cp437 AdobeStandardEncoding +\& cp863 (DOSCanadaF) +\& W. Europe iso\-8859\-1 cp850 cp1252 MacRoman nextstep +\& hp\-roman8 +\& cp860 (DOSPortuguese) +\& Cntrl. Europe iso\-8859\-2 cp852 cp1250 MacCentralEurRoman +\& MacCroatian +\& MacRomanian +\& MacRumanian +\& Latin3[1] iso\-8859\-3 +\& Latin4[2] iso\-8859\-4 +\& Cyrillics iso\-8859\-5 cp855 cp1251 MacCyrillic +\& (See also next section) cp866 MacUkrainian +\& Arabic iso\-8859\-6 cp864 cp1256 MacArabic +\& cp1006 MacFarsi +\& Greek iso\-8859\-7 cp737 cp1253 MacGreek +\& cp869 (DOSGreek2) +\& Hebrew iso\-8859\-8 cp862 cp1255 MacHebrew +\& Turkish iso\-8859\-9 cp857 cp1254 MacTurkish +\& Nordics iso\-8859\-10 cp865 +\& cp861 MacIcelandic +\& MacSami +\& Thai iso\-8859\-11[3] cp874 MacThai +\& (iso\-8859\-12 is nonexistent. Reserved for Indics?) +\& Baltics iso\-8859\-13 cp775 cp1257 +\& Celtics iso\-8859\-14 +\& Latin9 [4] iso\-8859\-15 +\& Latin10 iso\-8859\-16 +\& Vietnamese viscii cp1258 MacVietnamese +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& +\& [1] Esperanto, Maltese, and Turkish. Turkish is now on 8859\-9. +\& [2] Baltics. Now on 8859\-10, except for Latvian. +\& [3] TIS 620 + Non\-Breaking Space (0xA0 / U+00A0) +\& [4] Nicknamed Latin0; the Euro sign as well as French and Finnish +\& letters that are missing from 8859\-1 were added. +.Ve +.Sp +All cp* are also available as ibm\-*, ms\-*, and windows\-* . See also +. +.Sp +Macintosh encodings don't seem to be registered in such entities as +\&\s-1IANA.\s0 \*(L"Canonical\*(R" names in Encode are based upon Apple's Tech Note +1150. See +for details. +.IP "\s-1KOI8\s0 \- De Facto Standard for the Cyrillic world" 2 +.IX Item "KOI8 - De Facto Standard for the Cyrillic world" +Though \s-1ISO\-8859\s0 does have \s-1ISO\-8859\-5,\s0 the \s-1KOI8\s0 series is far more +popular in the Net. Encode comes with the following \s-1KOI\s0 charsets. +For gory details, see +.Sp +.Vb 5 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& koi8\-f +\& koi8\-r cp878 [RFC1489] +\& koi8\-u [RFC2319] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.SS "gsm0338 \- Hentai Latin 1" +.IX Subsection "gsm0338 - Hentai Latin 1" +\&\s-1GSM0338\s0 is for \s-1GSM\s0 handsets. Though it shares alphanumerals with +\&\s-1ASCII,\s0 control character ranges and other parts are mapped very +differently, mainly to store Greek characters. There are also escape +sequences (starting with 0x1B) to cover e.g. the Euro sign. +.PP +This was once handled by Encode::Bytes but because of all those +unusual specifications, Encode 2.20 has relocated the support to +Encode::GSM0338. See Encode::GSM0338 for details. +.IP "gsm0338 support before 2.19" 2 +.IX Item "gsm0338 support before 2.19" +Some special cases like a trailing 0x00 byte or a lone 0x1B byte are not +well-defined and \fBdecode()\fR will return an empty string for them. +One possible workaround is +.Sp +.Vb 3 +\& $gsm =~ s/\ex00\ez/\ex00\ex00/; +\& $uni = decode("gsm0338", $gsm); +\& $uni .= "\exA0" if $gsm =~ /\ex1B\ez/; +.Ve +.Sp +Note that the Encode implementation of \s-1GSM0338\s0 does not implement the +reuse of Latin capital letters as Greek capital letters (for example, +the 0x5A is U+005A (\s-1LATIN CAPITAL LETTER Z\s0), not U+0396 (\s-1GREEK CAPITAL +LETTER ZETA\s0). +.Sp +The \s-1GSM0338\s0 is also covered in Encode::Byte even though it is not +an \*(L"extended \s-1ASCII\*(R"\s0 encoding. +.SS "\s-1CJK:\s0 Chinese, Japanese, Korean (Multibyte)" +.IX Subsection "CJK: Chinese, Japanese, Korean (Multibyte)" +Note that Vietnamese is listed above. Also read \*(L"Encoding vs Charset\*(R" +below. Also note that these are implemented in distinct modules by +countries, due to the size concerns (simplified Chinese is mapped +to '\s-1CN\s0', continental China, while traditional Chinese is mapped to +\&'\s-1TW\s0', Taiwan). Please refer to their respective documentation pages. +.IP "Encode::CN \*(-- Continental China" 2 +.IX Item "Encode::CN Continental China" +.Vb 9 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-cn [1] MacChineseSimp +\& (gbk) cp936 [2] +\& gb12345\-raw { GB12345 without CES } +\& gb2312\-raw { GB2312 without CES } +\& hz +\& iso\-ir\-165 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& +\& [1] GB2312 is aliased to this. See L +\& [2] gbk is aliased to this. See L +.Ve +.IP "Encode::JP \*(-- Japan" 2 +.IX Item "Encode::JP Japan" +.Vb 11 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-jp +\& shiftjis cp932 macJapanese +\& 7bit\-jis +\& iso\-2022\-jp [RFC1468] +\& iso\-2022\-jp\-1 [RFC2237] +\& jis0201\-raw { JIS X 0201 (roman + halfwidth kana) without CES } +\& jis0208\-raw { JIS X 0208 (Kanji + fullwidth kana) without CES } +\& jis0212\-raw { JIS X 0212 (Extended Kanji) without CES } +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::KR \*(-- Korea" 2 +.IX Item "Encode::KR Korea" +.Vb 8 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-kr MacKorean [RFC1557] +\& cp949 [1] +\& iso\-2022\-kr [RFC1557] +\& johab [KS X 1001:1998, Annex 3] +\& ksc5601\-raw { KSC5601 without CES } +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& +\& [1] ks_c_5601\-1987, (x\-)?windows\-949, and uhc are aliased to this. +\& See below. +.Ve +.IP "Encode::TW \*(-- Taiwan" 2 +.IX Item "Encode::TW Taiwan" +.Vb 5 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& big5\-eten cp950 MacChineseTrad {big5 aliased to big5\-eten} +\& big5\-hkscs +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::HanExtra \*(-- More Chinese via \s-1CPAN\s0" 2 +.IX Item "Encode::HanExtra More Chinese via CPAN" +Due to the size concerns, additional Chinese encodings below are +distributed separately on \s-1CPAN,\s0 under the name Encode::HanExtra. +.Sp +.Vb 8 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& big5ext CMEX\*(Aqs Big5e Extension +\& big5plus CMEX\*(Aqs Big5+ Extension +\& cccii Chinese Character Code for Information Interchange +\& euc\-tw EUC (Extended Unix Character) +\& gb18030 GBK with Traditional Characters +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::JIS2K \*(-- \s-1JIS X 0213\s0 encodings via \s-1CPAN\s0" 2 +.IX Item "Encode::JIS2K JIS X 0213 encodings via CPAN" +Due to size concerns, additional Japanese encodings below are +distributed separately on \s-1CPAN,\s0 under the name Encode::JIS2K. +.Sp +.Vb 8 +\& Standard DOS/Win Macintosh Comment/Reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& euc\-jisx0213 +\& shiftjisx0123 +\& iso\-2022\-jp\-3 +\& jis0213\-1\-raw +\& jis0213\-2\-raw +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.SS "Miscellaneous encodings" +.IX Subsection "Miscellaneous encodings" +.IP "Encode::EBCDIC" 2 +.IX Item "Encode::EBCDIC" +See perlebcdic for details. +.Sp +.Vb 8 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& cp37 +\& cp500 +\& cp875 +\& cp1026 +\& cp1047 +\& posix\-bc +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::Symbols" 2 +.IX Item "Encode::Symbols" +For symbols and dingbats. +.Sp +.Vb 7 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& symbol +\& dingbats +\& MacDingbats +\& AdobeZdingbat +\& AdobeSymbol +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::MIME::Header" 2 +.IX Item "Encode::MIME::Header" +Strictly speaking, \s-1MIME\s0 header encoding documented in \s-1RFC 2047\s0 is more +of encapsulation than encoding. However, their support in modern +world is imperative so they are supported. +.Sp +.Vb 5 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& MIME\-Header [RFC2047] +\& MIME\-B [RFC2047] +\& MIME\-Q [RFC2047] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.IP "Encode::Guess" 2 +.IX Item "Encode::Guess" +This one is not a name of encoding but a utility that lets you pick up +the most appropriate encoding for a data out of given \fIsuspects\fR. See +Encode::Guess for details. +.SH "Unsupported encodings" +.IX Header "Unsupported encodings" +The following encodings are not supported as yet; some because they +are rarely used, some because of technical difficulties. They may +be supported by external modules via \s-1CPAN\s0 in the future, however. +.IP "\s-1ISO\-2022\-JP\-2\s0 [\s-1RFC1554\s0]" 2 +.IX Item "ISO-2022-JP-2 [RFC1554]" +Not very popular yet. Needs Unicode Database or equivalent to +implement \fBencode()\fR (because it includes \s-1JIS X 0208/0212, KSC5601,\s0 and +\&\s-1GB2312\s0 simultaneously, whose code points in Unicode overlap. So you +need to lookup the database to determine to what character set a given +Unicode character should belong). +.IP "\s-1ISO\-2022\-CN\s0 [\s-1RFC1922\s0]" 2 +.IX Item "ISO-2022-CN [RFC1922]" +Not very popular. Needs \s-1CNS 11643\-1\s0 and \-2 which are not available in +this module. \s-1CNS 11643\s0 is supported (via euc-tw) in Encode::HanExtra. +Audrey Tang may add support for this encoding in her module in future. +.IP "Various HP-UX encodings" 2 +.IX Item "Various HP-UX encodings" +The following are unsupported due to the lack of mapping data. +.Sp +.Vb 2 +\& \*(Aq8\*(Aq \- arabic8, greek8, hebrew8, kana8, thai8, and turkish8 +\& \*(Aq15\*(Aq \- japanese15, korean15, and roi15 +.Ve +.IP "Cyrillic encoding \s-1ISO\-IR\-111\s0" 2 +.IX Item "Cyrillic encoding ISO-IR-111" +Anton Tagunov doubts its usefulness. +.IP "\s-1ISO\-8859\-8\-1\s0 [Hebrew]" 2 +.IX Item "ISO-8859-8-1 [Hebrew]" +None of the Encode team knows Hebrew enough (\s-1ISO\-8859\-8,\s0 cp1255 and +MacHebrew are supported because and just because there were mappings +available at ). Contributions welcome. +.IP "\s-1ISIRI 3342,\s0 Iran System, \s-1ISIRI 2900\s0 [Farsi]" 2 +.IX Item "ISIRI 3342, Iran System, ISIRI 2900 [Farsi]" +Ditto. +.IP "Thai encoding \s-1TCVN\s0" 2 +.IX Item "Thai encoding TCVN" +Ditto. +.IP "Vietnamese encodings \s-1VPS\s0" 2 +.IX Item "Vietnamese encodings VPS" +Though Jungshik Shin has reported that Mozilla supports this encoding, +it was too late before 5.8.0 for us to add it. In the future, it +may be available via a separate module. See + +and + +if you are interested in helping us. +.IP "Various Mac encodings" 2 +.IX Item "Various Mac encodings" +The following are unsupported due to the lack of mapping data. +.Sp +.Vb 5 +\& MacArmenian, MacBengali, MacBurmese, MacEthiopic +\& MacExtArabic, MacGeorgian, MacKannada, MacKhmer +\& MacLaotian, MacMalayalam, MacMongolian, MacOriya +\& MacSinhalese, MacTamil, MacTelugu, MacTibetan +\& MacVietnamese +.Ve +.Sp +The rest which are already available are based upon the vendor mappings +at . +.IP "(Mac) Indic encodings" 2 +.IX Item "(Mac) Indic encodings" +The maps for the following are available at +but remain unsupported because those encodings need an algorithmical +approach, currently unsupported by \fIenc2xs\fR: +.Sp +.Vb 3 +\& MacDevanagari +\& MacGurmukhi +\& MacGujarati +.Ve +.Sp +For details, please see \f(CW\*(C`Unicode mapping issues and notes:\*(C'\fR at + . +.Sp +I believe this issue is prevalent not only for Mac Indics but also in +other Indic encodings, but the above were the only Indic encodings +maps that I could find at . +.SH "Encoding vs. Charset \*(-- terminology" +.IX Header "Encoding vs. Charset terminology" +We are used to using the term (character) \fIencoding\fR and \fIcharacter +set\fR interchangeably. But just as confusing the terms byte and +character is dangerous and the terms should be differentiated when +needed, we need to differentiate \fIencoding\fR and \fIcharacter set\fR. +.PP +To understand that, here is a description of how we make computers +grok our characters. +.IP "\(bu" 2 +First we start with which characters to include. We call this +collection of characters \fIcharacter repertoire\fR. +.IP "\(bu" 2 +Then we have to give each character a unique \s-1ID\s0 so your computer can +tell the difference between 'a' and 'A'. This itemized character +repertoire is now a \fIcharacter set\fR. +.IP "\(bu" 2 +If your computer can grow the character set without further +processing, you can go ahead and use it. This is called a \fIcoded +character set\fR (\s-1CCS\s0) or \fIraw character encoding\fR. \s-1ASCII\s0 is used this +way for most cases. +.IP "\(bu" 2 +But in many cases, especially multi-byte \s-1CJK\s0 encodings, you have to +tweak a little more. Your network connection may not accept any data +with the Most Significant Bit set, and your computer may not be able to +tell if a given byte is a whole character or just half of it. So you +have to \fIencode\fR the character set to use it. +.Sp +A \fIcharacter encoding scheme\fR (\s-1CES\s0) determines how to encode a given +character set, or a set of multiple character sets. 7bit \s-1ISO\-2022\s0 is +an example of a \s-1CES.\s0 You switch between character sets via \fIescape +sequences\fR. +.PP +Technically, or mathematically, speaking, a character set encoded in +such a \s-1CES\s0 that maps character by character may form a \s-1CCS.\s0 \s-1EUC\s0 is such +an example. The \s-1CES\s0 of \s-1EUC\s0 is as follows: +.IP "\(bu" 2 +Map \s-1ASCII\s0 unchanged. +.IP "\(bu" 2 +Map such a character set that consists of 94 or 96 powered by N +members by adding 0x80 to each byte. +.IP "\(bu" 2 +You can also use 0x8e and 0x8f to indicate that the following sequence of +characters belongs to yet another character set. To each following byte +is added the value 0x80. +.PP +By carefully looking at the encoded byte sequence, you can find that the +byte sequence conforms a unique number. In that sense, \s-1EUC\s0 is a \s-1CCS\s0 +generated by a \s-1CES\s0 above from up to four \s-1CCS\s0 (complicated?). \s-1UTF\-8\s0 +falls into this category. See \*(L"\s-1UTF\-8\*(R"\s0 in perlUnicode to find out how +\&\s-1UTF\-8\s0 maps Unicode to a byte sequence. +.PP +You may also have found out by now why 7bit \s-1ISO\-2022\s0 cannot comprise +a \s-1CCS.\s0 If you look at a byte sequence \ex21\ex21, you can't tell if +it is two !'s or \s-1IDEOGRAPHIC SPACE.\s0 \s-1EUC\s0 maps the latter to \exA1\exA1 +so you have no trouble differentiating between \*(L"!!\*(R". and \*(L"\ \ \*(R". +.SH "Encoding Classification (by Anton Tagunov and Dan Kogai)" +.IX Header "Encoding Classification (by Anton Tagunov and Dan Kogai)" +This section tries to classify the supported encodings by their +applicability for information exchange over the Internet and to +choose the most suitable aliases to name them in the context of +such communication. +.IP "\(bu" 2 +To (en|de)code encodings marked by \f(CW\*(C`(**)\*(C'\fR, you need +\&\f(CW\*(C`Encode::HanExtra\*(C'\fR, available from \s-1CPAN.\s0 +.PP +Encoding names +.PP +.Vb 3 +\& US\-ASCII UTF\-8 ISO\-8859\-* KOI8\-R +\& Shift_JIS EUC\-JP ISO\-2022\-JP ISO\-2022\-JP\-1 +\& EUC\-KR Big5 GB2312 +.Ve +.PP +are registered with \s-1IANA\s0 as preferred \s-1MIME\s0 names and may +be used over the Internet. +.PP +\&\f(CW\*(C`Shift_JIS\*(C'\fR has been officialized by \s-1JIS X 0208:1997.\s0 +\&\*(L"Microsoft-related naming mess\*(R" gives details. +.PP +\&\f(CW\*(C`GB2312\*(C'\fR is the \s-1IANA\s0 name for \f(CW\*(C`EUC\-CN\*(C'\fR. +See \*(L"Microsoft-related naming mess\*(R" for details. +.PP +\&\f(CW\*(C`GB_2312\-80\*(C'\fR \fIraw\fR encoding is available as \f(CW\*(C`gb2312\-raw\*(C'\fR +with Encode. See Encode::CN for details. +.PP +.Vb 2 +\& EUC\-CN +\& KOI8\-U [RFC2319] +.Ve +.PP +have not been registered with \s-1IANA\s0 (as of March 2002) but +seem to be supported by major web browsers. +The \s-1IANA\s0 name for \f(CW\*(C`EUC\-CN\*(C'\fR is \f(CW\*(C`GB2312\*(C'\fR. +.PP +.Vb 1 +\& KS_C_5601\-1987 +.Ve +.PP +is heavily misused. +See \*(L"Microsoft-related naming mess\*(R" for details. +.PP +\&\f(CW\*(C`KS_C_5601\-1987\*(C'\fR \fIraw\fR encoding is available as \f(CW\*(C`kcs5601\-raw\*(C'\fR +with Encode. See Encode::KR for details. +.PP +.Vb 1 +\& UTF\-16 UTF\-16BE UTF\-16LE +.Ve +.PP +are IANA-registered \f(CW\*(C`charset\*(C'\fRs. See [\s-1RFC 2781\s0] for details. +Jungshik Shin reports that \s-1UTF\-16\s0 with a \s-1BOM\s0 is well accepted +by \s-1MS IE 5/6\s0 and \s-1NS 4/6.\s0 Beware however that +.IP "\(bu" 2 +\&\f(CW\*(C`UTF\-16\*(C'\fR support in any software you're going to be +using/interoperating with has probably been less tested +then \f(CW\*(C`UTF\-8\*(C'\fR support +.IP "\(bu" 2 +\&\f(CW\*(C`UTF\-8\*(C'\fR coded data seamlessly passes traditional +command piping (\f(CW\*(C`cat\*(C'\fR, \f(CW\*(C`more\*(C'\fR, etc.) while \f(CW\*(C`UTF\-16\*(C'\fR coded +data is likely to cause confusion (with its zero bytes, +for example) +.IP "\(bu" 2 +it is beyond the power of words to describe the way \s-1HTML\s0 browsers +encode non\-\f(CW\*(C`ASCII\*(C'\fR form data. To get a general impression, visit +. +While encoding of form data has stabilized for \f(CW\*(C`UTF\-8\*(C'\fR encoded pages +(at least \s-1IE 5/6, NS 6,\s0 and Opera 6 behave consistently), be sure to +expect fun (and cross-browser discrepancies) with \f(CW\*(C`UTF\-16\*(C'\fR encoded +pages! +.PP +The rule of thumb is to use \f(CW\*(C`UTF\-8\*(C'\fR unless you know what +you're doing and unless you really benefit from using \f(CW\*(C`UTF\-16\*(C'\fR. +.PP +.Vb 5 +\& ISO\-IR\-165 [RFC1345] +\& VISCII +\& GB 12345 +\& GB 18030 (**) (see links below) +\& EUC\-TW (**) +.Ve +.PP +are totally valid encodings but not registered at \s-1IANA.\s0 +The names under which they are listed here are probably the +most widely-known names for these encodings and are recommended +names. +.PP +.Vb 1 +\& BIG5PLUS (**) +.Ve +.PP +is a proprietary name. +.SS "Microsoft-related naming mess" +.IX Subsection "Microsoft-related naming mess" +Microsoft products misuse the following names: +.IP "\s-1KS_C_5601\-1987\s0" 2 +.IX Item "KS_C_5601-1987" +Microsoft extension to \f(CW\*(C`EUC\-KR\*(C'\fR. +.Sp +Proper names: \f(CW\*(C`CP949\*(C'\fR, \f(CW\*(C`UHC\*(C'\fR, \f(CW\*(C`x\-windows\-949\*(C'\fR (as used by Mozilla). +.Sp +See +for details. +.Sp +Encode aliases \f(CW\*(C`KS_C_5601\-1987\*(C'\fR to \f(CW\*(C`cp949\*(C'\fR to reflect this common +misusage. \fIRaw\fR \f(CW\*(C`KS_C_5601\-1987\*(C'\fR encoding is available as +\&\f(CW\*(C`kcs5601\-raw\*(C'\fR. +.Sp +See Encode::KR for details. +.IP "\s-1GB2312\s0" 2 +.IX Item "GB2312" +Microsoft extension to \f(CW\*(C`EUC\-CN\*(C'\fR. +.Sp +Proper names: \f(CW\*(C`CP936\*(C'\fR, \f(CW\*(C`GBK\*(C'\fR. +.Sp +\&\f(CW\*(C`GB2312\*(C'\fR has been registered in the \f(CW\*(C`EUC\-CN\*(C'\fR meaning at +\&\s-1IANA.\s0 This has partially repaired the situation: Microsoft's +\&\f(CW\*(C`GB2312\*(C'\fR has become a superset of the official \f(CW\*(C`GB2312\*(C'\fR. +.Sp +Encode aliases \f(CW\*(C`GB2312\*(C'\fR to \f(CW\*(C`euc\-cn\*(C'\fR in full agreement with +\&\s-1IANA\s0 registration. \f(CW\*(C`cp936\*(C'\fR is supported separately. +\&\fIRaw\fR \f(CW\*(C`GB_2312\-80\*(C'\fR encoding is available as \f(CW\*(C`gb2312\-raw\*(C'\fR. +.Sp +See Encode::CN for details. +.IP "Big5" 2 +.IX Item "Big5" +Microsoft extension to \f(CW\*(C`Big5\*(C'\fR. +.Sp +Proper name: \f(CW\*(C`CP950\*(C'\fR. +.Sp +Encode separately supports \f(CW\*(C`Big5\*(C'\fR and \f(CW\*(C`cp950\*(C'\fR. +.IP "Shift_JIS" 2 +.IX Item "Shift_JIS" +Microsoft's understanding of \f(CW\*(C`Shift_JIS\*(C'\fR. +.Sp +\&\s-1JIS\s0 has not endorsed the full Microsoft standard however. +The official \f(CW\*(C`Shift_JIS\*(C'\fR includes only \s-1JIS X 0201\s0 and \s-1JIS X 0208\s0 +character sets, while Microsoft has always used \f(CW\*(C`Shift_JIS\*(C'\fR +to encode a wider character repertoire. See \f(CW\*(C`IANA\*(C'\fR registration for +\&\f(CW\*(C`Windows\-31J\*(C'\fR. +.Sp +As a historical predecessor, Microsoft's variant +probably has more rights for the name, though it may be objected +that Microsoft shouldn't have used \s-1JIS\s0 as part of the name +in the first place. +.Sp +Unambiguous name: \f(CW\*(C`CP932\*(C'\fR. \f(CW\*(C`IANA\*(C'\fR name (also used by Mozilla, and +provided as an alias by Encode): \f(CW\*(C`Windows\-31J\*(C'\fR. +.Sp +Encode separately supports \f(CW\*(C`Shift_JIS\*(C'\fR and \f(CW\*(C`cp932\*(C'\fR. +.SH "Glossary" +.IX Header "Glossary" +.IP "character repertoire" 2 +.IX Item "character repertoire" +A collection of unique characters. A \fIcharacter\fR set in the strictest +sense. At this stage, characters are not numbered. +.IP "coded character set (\s-1CCS\s0)" 2 +.IX Item "coded character set (CCS)" +A character set that is mapped in a way computers can use directly. +Many character encodings, including \s-1EUC,\s0 fall in this category. +.IP "character encoding scheme (\s-1CES\s0)" 2 +.IX Item "character encoding scheme (CES)" +An algorithm to map a character set to a byte sequence. You don't +have to be able to tell which character set a given byte sequence +belongs. 7\-bit \s-1ISO\-2022\s0 is a \s-1CES\s0 but it cannot be a \s-1CCS.\s0 \s-1EUC\s0 is an +example of being both a \s-1CCS\s0 and \s-1CES.\s0 +.IP "charset (in \s-1MIME\s0 context)" 2 +.IX Item "charset (in MIME context)" +has long been used in the meaning of \f(CW\*(C`encoding\*(C'\fR, \s-1CES.\s0 +.Sp +While the word combination \f(CW\*(C`character set\*(C'\fR has lost this meaning +in \s-1MIME\s0 context since [\s-1RFC 2130\s0], the \f(CW\*(C`charset\*(C'\fR abbreviation has +retained it. This is how [\s-1RFC 2277\s0] and [\s-1RFC 2278\s0] bless \f(CW\*(C`charset\*(C'\fR: +.Sp +.Vb 7 +\& This document uses the term "charset" to mean a set of rules for +\& mapping from a sequence of octets to a sequence of characters, such +\& as the combination of a coded character set and a character encoding +\& scheme; this is also what is used as an identifier in MIME "charset=" +\& parameters, and registered in the IANA charset registry ... (Note +\& that this is NOT a term used by other standards bodies, such as ISO). +\& [RFC 2277] +.Ve +.IP "\s-1EUC\s0" 2 +.IX Item "EUC" +Extended Unix Character. See \s-1ISO\-2022.\s0 +.IP "\s-1ISO\-2022\s0" 2 +.IX Item "ISO-2022" +A \s-1CES\s0 that was carefully designed to coexist with \s-1ASCII.\s0 There are a 7 +bit version and an 8 bit version. +.Sp +The 7 bit version switches character set via escape sequence so it +cannot form a \s-1CCS.\s0 Since this is more difficult to handle in programs +than the 8 bit version, the 7 bit version is not very popular except for +iso\-2022\-jp, the \fIde facto\fR standard \s-1CES\s0 for e\-mails. +.Sp +The 8 bit version can form a \s-1CCS.\s0 \s-1EUC\s0 and \s-1ISO\-8859\s0 are two examples +thereof. Pre\-5.6 perl could use them as string literals. +.IP "\s-1UCS\s0" 2 +.IX Item "UCS" +Short for \fIUniversal Character Set\fR. When you say just \s-1UCS,\s0 it means +\&\fIUnicode\fR. +.IP "\s-1UCS\-2\s0" 2 +.IX Item "UCS-2" +\&\s-1ISO/IEC 10646\s0 encoding form: Universal Character Set coded in two +octets. +.IP "Unicode" 2 +.IX Item "Unicode" +A character set that aims to include all character repertoires of the +world. Many character sets in various national as well as industrial +standards have become, in a way, just subsets of Unicode. +.IP "\s-1UTF\s0" 2 +.IX Item "UTF" +Short for \fIUnicode Transformation Format\fR. Determines how to map a +Unicode character into a byte sequence. +.IP "\s-1UTF\-16\s0" 2 +.IX Item "UTF-16" +A \s-1UTF\s0 in 16\-bit encoding. Can either be in big endian or little +endian. The big endian version is called \s-1UTF\-16BE\s0 (equal to \s-1UCS\-2 +\s0 +surrogate support) and the little endian version is called \s-1UTF\-16LE.\s0 +.SH "See Also" +.IX Header "See Also" +Encode, +Encode::Byte, +Encode::CN, Encode::JP, Encode::KR, Encode::TW, +Encode::EBCDIC, Encode::Symbol +Encode::MIME::Header, Encode::Guess +.SH "References" +.IX Header "References" +.IP "\s-1ECMA\s0" 2 +.IX Item "ECMA" +European Computer Manufacturers Association + +.RS 2 +.ie n .IP "\s-1ECMA\-035\s0 (eq ""ISO\-2022"")" 2 +.el .IP "\s-1ECMA\-035\s0 (eq \f(CWISO\-2022\fR)" 2 +.IX Item "ECMA-035 (eq ISO-2022)" + +.Sp +The specification of \s-1ISO\-2022\s0 is available from the link above. +.RE +.RS 2 +.RE +.IP "\s-1IANA\s0" 2 +.IX Item "IANA" +Internet Assigned Numbers Authority + +.RS 2 +.IP "Assigned Charset Names by \s-1IANA\s0" 2 +.IX Item "Assigned Charset Names by IANA" + +.Sp +Most of the \f(CW\*(C`canonical names\*(C'\fR in Encode derive from this list +so you can directly apply the string you have extracted from \s-1MIME\s0 +header of mails and web pages. +.RE +.RS 2 +.RE +.IP "\s-1ISO\s0" 2 +.IX Item "ISO" +International Organization for Standardization + +.IP "\s-1RFC\s0" 2 +.IX Item "RFC" +Request For Comments \*(-- need I say more? +, , + +.IP "\s-1UC\s0" 2 +.IX Item "UC" +Unicode Consortium + +.RS 2 +.IP "Unicode Glossary" 2 +.IX Item "Unicode Glossary" + +.Sp +The glossary of this document is based upon this site. +.RE +.RS 2 +.RE +.SS "Other Notable Sites" +.IX Subsection "Other Notable Sites" +.IP "czyborra.com" 2 +.IX Item "czyborra.com" + +.Sp +Contains a lot of useful information, especially gory details of \s-1ISO\s0 +vs. vendor mappings. +.IP "\s-1CJK\s0.inf" 2 +.IX Item "CJK.inf" + +.Sp +Somewhat obsolete (last update in 1996), but still useful. Also try +.Sp + +.Sp +You will find brief info on \f(CW\*(C`EUC\-CN\*(C'\fR, \f(CW\*(C`GBK\*(C'\fR and mostly on \f(CW\*(C`GB 18030\*(C'\fR. +.IP "Jungshik Shin's Hangul \s-1FAQ\s0" 2 +.IX Item "Jungshik Shin's Hangul FAQ" + +.Sp +And especially its subject 8. +.Sp + +.Sp +A comprehensive overview of the Korean (\f(CW\*(C`KS *\*(C'\fR) standards. +.ie n .IP "debian.org: ""Introduction to i18n""" 2 +.el .IP "debian.org: ``Introduction to i18n''" 2 +.IX Item "debian.org: Introduction to i18n" +A brief description for most of the mentioned \s-1CJK\s0 encodings is +contained in + +.SS "Offline sources" +.IX Subsection "Offline sources" +.ie n .IP """CJKV Information Processing"" by Ken Lunde" 2 +.el .IP "\f(CWCJKV Information Processing\fR by Ken Lunde" 2 +.IX Item "CJKV Information Processing by Ken Lunde" +\&\s-1CJKV\s0 Information Processing +1999 O'Reilly & Associates, \s-1ISBN : 1\-56592\-224\-7\s0 +.Sp +The modern successor of \f(CW\*(C`CJK.inf\*(C'\fR. +.Sp +Features a comprehensive coverage of \s-1CJKV\s0 character sets and +encodings along with many other issues faced by anyone trying +to better support \s-1CJKV\s0 languages/scripts in all the areas of +information processing. +.Sp +To purchase this book, visit + +or your favourite bookstore. diff --git a/data/miniconda3/man/man3/Encode%3A%3ASymbol.3 b/data/miniconda3/man/man3/Encode%3A%3ASymbol.3 new file mode 100644 index 0000000000000000000000000000000000000000..11db6124b360e3f85a1ad958f5031671c8d30518 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ASymbol.3 @@ -0,0 +1,169 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Symbol 3" +.TH Encode::Symbol 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Symbol \- Symbol Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $symbol = encode("symbol", $utf8); # loads Encode::Symbol implicitly +\& $utf8 = decode("", $symbol); # ditto +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements symbol and dingbats encodings. Encodings +supported are as follows. +.PP +.Vb 7 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& symbol +\& dingbats +\& AdobeZDingbat +\& AdobeSymbol +\& MacDingbats +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +To find out how to use this module in detail, see Encode. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3ATW.3 b/data/miniconda3/man/man3/Encode%3A%3ATW.3 new file mode 100644 index 0000000000000000000000000000000000000000..4aef09722e35898b38ea1caafa76bf7107c78daf --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3ATW.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::TW 3" +.TH Encode::TW 3 "2020-12-18" "perl v5.32.1" "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" +Encode::TW \- Taiwan\-based Chinese Encodings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $big5 = encode("big5", $utf8); # loads Encode::TW implicitly +\& $utf8 = decode("big5", $big5); # ditto +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements tradition Chinese charset encodings as used +in Taiwan and Hong Kong. +Encodings supported are as follows. +.PP +.Vb 12 +\& Canonical Alias Description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& big5\-eten /\ebbig\-?5$/i Big5 encoding (with ETen extensions) +\& /\ebbig5\-?et(en)?$/i +\& /\ebtca\-?big5$/i +\& big5\-hkscs /\ebbig5\-?hk(scs)?$/i +\& /\ebhk(scs)?\-?big5$/i +\& Big5 + Cantonese characters in Hong Kong +\& MacChineseTrad Big5 + Apple Vendor Mappings +\& cp950 Code Page 950 +\& = Big5 + Microsoft vendor mappings +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +To find out how to use this module in detail, see Encode. +.SH "NOTES" +.IX Header "NOTES" +Due to size concerns, \f(CW\*(C`EUC\-TW\*(C'\fR (Extended Unix Character), \f(CW\*(C`CCCII\*(C'\fR +(Chinese Character Code for Information Interchange), \f(CW\*(C`BIG5PLUS\*(C'\fR +(\s-1CMEX\s0's Big5+) and \f(CW\*(C`BIG5EXT\*(C'\fR (\s-1CMEX\s0's Big5e) are distributed separately +on \s-1CPAN,\s0 under the name Encode::HanExtra. That module also contains +extra China-based encodings. +.SH "BUGS" +.IX Header "BUGS" +Since the original \f(CW\*(C`big5\*(C'\fR encoding (1984) is not supported anywhere +(glibc and DOS-based systems uses \f(CW\*(C`big5\*(C'\fR to mean \f(CW\*(C`big5\-eten\*(C'\fR; Microsoft +uses \f(CW\*(C`big5\*(C'\fR to mean \f(CW\*(C`cp950\*(C'\fR), a conscious decision was made to alias +\&\f(CW\*(C`big5\*(C'\fR to \f(CW\*(C`big5\-eten\*(C'\fR, which is the de facto superset of the original +big5. +.PP +The \f(CW\*(C`CNS11643\*(C'\fR encoding files are not complete. For common \f(CW\*(C`CNS11643\*(C'\fR +manipulation, please use \f(CW\*(C`EUC\-TW\*(C'\fR in Encode::HanExtra, which contains +planes 1\-7. +.PP +The \s-1ASCII\s0 region (0x00\-0x7f) is preserved for all encodings, even +though this conflicts with mappings by the Unicode Consortium. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode diff --git a/data/miniconda3/man/man3/Encode%3A%3AUnicode%3A%3AUTF7.3 b/data/miniconda3/man/man3/Encode%3A%3AUnicode%3A%3AUTF7.3 new file mode 100644 index 0000000000000000000000000000000000000000..1c0b6ec52afbe48f5df990fb483ee9e4fa8ca9a3 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AUnicode%3A%3AUTF7.3 @@ -0,0 +1,173 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Unicode::UTF7 3" +.TH Encode::Unicode::UTF7 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Unicode::UTF7 \-\- UTF\-7 encoding +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $utf7 = encode("UTF\-7", $utf8); +\& $utf8 = decode("UTF\-7", $ucs2); +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements \s-1UTF\-7\s0 encoding documented in \s-1RFC 2152.\s0 \s-1UTF\-7,\s0 +as its name suggests, is a 7\-bit re-encoded version of \s-1UTF\-16BE.\s0 It +is designed to be MTA-safe and expected to be a standard way to +exchange Unicoded mails via mails. But with the advent of \s-1UTF\-8\s0 and +8\-bit compliant MTAs, \s-1UTF\-7\s0 is hardly ever used. +.PP +\&\s-1UTF\-7\s0 was not supported by Encode until version 1.95 because of that. +But Unicode::String, a module by Gisle Aas which adds Unicode supports +to non\-utf8\-savvy perl did support \s-1UTF\-7,\s0 the \s-1UTF\-7\s0 support was added +so Encode can supersede Unicode::String 100%. +.SH "In Practice" +.IX Header "In Practice" +When you want to encode Unicode for mails and web pages, however, do +not use \s-1UTF\-7\s0 unless you are sure your recipients and readers can +handle it. Very few MUAs and \s-1WWW\s0 Browsers support these days (only +Mozilla seems to support one). For general cases, use \s-1UTF\-8\s0 for +message body and MIME-Header for header instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, Encode::Unicode, Unicode::String +.PP +\&\s-1RFC 2781\s0 diff --git a/data/miniconda3/man/man3/Encode%3A%3AUnicode.3 b/data/miniconda3/man/man3/Encode%3A%3AUnicode.3 new file mode 100644 index 0000000000000000000000000000000000000000..cbbc19566c05824141031e605e570fbcf27e2819 --- /dev/null +++ b/data/miniconda3/man/man3/Encode%3A%3AUnicode.3 @@ -0,0 +1,331 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Encode::Unicode 3" +.TH Encode::Unicode 3 "2020-12-18" "perl v5.32.1" "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" +Encode::Unicode \-\- Various Unicode Transformation Formats +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw/encode decode/; +\& $ucs2 = encode("UCS\-2BE", $utf8); +\& $utf8 = decode("UCS\-2BE", $ucs2); +.Ve +.SH "ABSTRACT" +.IX Header "ABSTRACT" +This module implements all Character Encoding Schemes of Unicode that +are officially documented by Unicode Consortium (except, of course, +for \s-1UTF\-8,\s0 which is a native format in perl). +.IP " says:" 4 +.IX Item " says:" +\&\fICharacter Encoding Scheme\fR A character encoding form plus byte +serialization. There are Seven character encoding schemes in Unicode: +\&\s-1UTF\-8, UTF\-16, UTF\-16BE, UTF\-16LE, UTF\-32\s0 (\s-1UCS\-4\s0), \s-1UTF\-32BE\s0 (\s-1UCS\-4BE\s0) and +\&\s-1UTF\-32LE\s0 (\s-1UCS\-4LE\s0), and \s-1UTF\-7.\s0 +.Sp +Since \s-1UTF\-7\s0 is a 7\-bit (re)encoded version of \s-1UTF\-16BE,\s0 It is not part of +Unicode's Character Encoding Scheme. It is separately implemented in +Encode::Unicode::UTF7. For details see Encode::Unicode::UTF7. +.IP "Quick Reference" 4 +.IX Item "Quick Reference" +.Vb 10 +\& Decodes from ord(N) Encodes chr(N) to... +\& octet/char BOM S.P d800\-dfff ord > 0xffff \ex{1abcd} == +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& UCS\-2BE 2 N N is bogus Not Available +\& UCS\-2LE 2 N N bogus Not Available +\& UTF\-16 2/4 Y Y is S.P S.P BE/LE +\& UTF\-16BE 2/4 N Y S.P S.P 0xd82a,0xdfcd +\& UTF\-16LE 2/4 N Y S.P S.P 0x2ad8,0xcddf +\& UTF\-32 4 Y \- is bogus As is BE/LE +\& UTF\-32BE 4 N \- bogus As is 0x0001abcd +\& UTF\-32LE 4 N \- bogus As is 0xcdab0100 +\& UTF\-8 1\-4 \- \- bogus >= 4 octets \exf0\ex9a\eaf\e8d +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.SH "Size, Endianness, and BOM" +.IX Header "Size, Endianness, and BOM" +You can categorize these \s-1CES\s0 by 3 criteria: size of each character, +endianness, and Byte Order Mark. +.SS "by size" +.IX Subsection "by size" +\&\s-1UCS\-2\s0 is a fixed-length encoding with each character taking 16 bits. +It \fBdoes not\fR support \fIsurrogate pairs\fR. When a surrogate pair +is encountered during \fBdecode()\fR, its place is filled with \ex{\s-1FFFD\s0} +if \fI\s-1CHECK\s0\fR is 0, or the routine croaks if \fI\s-1CHECK\s0\fR is 1. When a +character whose ord value is larger than 0xFFFF is encountered, +its place is filled with \ex{\s-1FFFD\s0} if \fI\s-1CHECK\s0\fR is 0, or the routine +croaks if \fI\s-1CHECK\s0\fR is 1. +.PP +\&\s-1UTF\-16\s0 is almost the same as \s-1UCS\-2\s0 but it supports \fIsurrogate pairs\fR. +When it encounters a high surrogate (0xD800\-0xDBFF), it fetches the +following low surrogate (0xDC00\-0xDFFF) and \f(CW\*(C`desurrogate\*(C'\fRs them to +form a character. Bogus surrogates result in death. When \ex{10000} +or above is encountered during \fBencode()\fR, it \f(CW\*(C`ensurrogate\*(C'\fRs them and +pushes the surrogate pair to the output stream. +.PP +\&\s-1UTF\-32\s0 (\s-1UCS\-4\s0) is a fixed-length encoding with each character taking 32 bits. +Since it is 32\-bit, there is no need for \fIsurrogate pairs\fR. +.SS "by endianness" +.IX Subsection "by endianness" +The first (and now failed) goal of Unicode was to map all character +repertoires into a fixed-length integer so that programmers are happy. +Since each character is either a \fIshort\fR or \fIlong\fR in C, you have to +pay attention to the endianness of each platform when you pass data +to one another. +.PP +Anything marked as \s-1BE\s0 is Big Endian (or network byte order) and \s-1LE\s0 is +Little Endian (aka \s-1VAX\s0 byte order). For anything not marked either +\&\s-1BE\s0 or \s-1LE,\s0 a character called Byte Order Mark (\s-1BOM\s0) indicating the +endianness is prepended to the string. +.PP +\&\s-1CAVEAT:\s0 Though \s-1BOM\s0 in utf8 (\exEF\exBB\exBF) is valid, it is meaningless +and as of this writing Encode suite just leave it as is (\ex{FeFF}). +.IP "\s-1BOM\s0 as integer when fetched in network byte order" 4 +.IX Item "BOM as integer when fetched in network byte order" +.Vb 5 +\& 16 32 bits/char +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& BE 0xFeFF 0x0000FeFF +\& LE 0xFFFe 0xFFFe0000 +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +This modules handles the \s-1BOM\s0 as follows. +.IP "\(bu" 4 +When \s-1BE\s0 or \s-1LE\s0 is explicitly stated as the name of encoding, \s-1BOM\s0 is +simply treated as a normal character (\s-1ZERO WIDTH\s0 NO-BREAK \s-1SPACE\s0). +.IP "\(bu" 4 +When \s-1BE\s0 or \s-1LE\s0 is omitted during \fBdecode()\fR, it checks if \s-1BOM\s0 is at the +beginning of the string; if one is found, the endianness is set to +what the \s-1BOM\s0 says. +.IP "\(bu" 4 +Default Byte Order +.Sp +When no \s-1BOM\s0 is found, Encode 2.76 and blow croaked. Since Encode +2.77, it falls back to \s-1BE\s0 accordingly to \s-1RFC2781\s0 and the Unicode +Standard version 8.0 +.IP "\(bu" 4 +When \s-1BE\s0 or \s-1LE\s0 is omitted during \fBencode()\fR, it returns a BE-encoded +string with \s-1BOM\s0 prepended. So when you want to encode a whole text +file, make sure you \fBencode()\fR the whole text at once, not line by line +or each line, not file, will have a \s-1BOM\s0 prepended. +.IP "\(bu" 4 +\&\f(CW\*(C`UCS\-2\*(C'\fR is an exception. Unlike others, this is an alias of \s-1UCS\-2BE. +UCS\-2\s0 is already registered by \s-1IANA\s0 and others that way. +.SH "Surrogate Pairs" +.IX Header "Surrogate Pairs" +To say the least, surrogate pairs were the biggest mistake of the +Unicode Consortium. But according to the late Douglas Adams in \fIThe +Hitchhiker's Guide to the Galaxy\fR Trilogy, \f(CW\*(C`In the beginning the +Universe was created. This has made a lot of people very angry and +been widely regarded as a bad move\*(C'\fR. Their mistake was not of this +magnitude so let's forgive them. +.PP +(I don't dare make any comparison with Unicode Consortium and the +Vogons here ;) Or, comparing Encode to Babel Fish is completely +appropriate \*(-- if you can only stick this into your ear :) +.PP +Surrogate pairs were born when the Unicode Consortium finally +admitted that 16 bits were not big enough to hold all the world's +character repertoires. But they already made \s-1UCS\-2\s0 16\-bit. What +do we do? +.PP +Back then, the range 0xD800\-0xDFFF was not allocated. Let's split +that range in half and use the first half to represent the \f(CW\*(C`upper +half of a character\*(C'\fR and the second half to represent the \f(CW\*(C`lower +half of a character\*(C'\fR. That way, you can represent 1024 * 1024 = +1048576 more characters. Now we can store character ranges up to +\&\ex{10ffff} even with 16\-bit encodings. This pair of half-character is +now called a \fIsurrogate pair\fR and \s-1UTF\-16\s0 is the name of the encoding +that embraces them. +.PP +Here is a formula to ensurrogate a Unicode character \ex{10000} and +above; +.PP +.Vb 2 +\& $hi = ($uni \- 0x10000) / 0x400 + 0xD800; +\& $lo = ($uni \- 0x10000) % 0x400 + 0xDC00; +.Ve +.PP +And to desurrogate; +.PP +.Vb 1 +\& $uni = 0x10000 + ($hi \- 0xD800) * 0x400 + ($lo \- 0xDC00); +.Ve +.PP +Note this move has made \ex{D800}\-\ex{\s-1DFFF\s0} into a forbidden zone but +perl does not prohibit the use of characters within this range. To perl, +every one of \ex{0000_0000} up to \ex{ffff_ffff} (*) is \fIa character\fR. +.PP +.Vb 2 +\& (*) or \ex{ffff_ffff_ffff_ffff} if your perl is compiled with 64\-bit +\& integer support! +.Ve +.SH "Error Checking" +.IX Header "Error Checking" +Unlike most encodings which accept various ways to handle errors, +Unicode encodings simply croaks. +.PP +.Vb 6 +\& % perl \-MEncode \-e\*(Aq$_ = "\exfe\exff\exd8\exd9\exda\exdb\e0\en"\*(Aq \e +\& \-e\*(AqEncode::from_to($_, "utf16","shift_jis", 0); print\*(Aq +\& UTF\-16:Malformed LO surrogate d8d9 at /path/to/Encode.pm line 184. +\& % perl \-MEncode \-e\*(Aq$a = "BOM missing"\*(Aq \e +\& \-e\*(Aq Encode::from_to($a, "utf16", "shift_jis", 0); print\*(Aq +\& UTF\-16:Unrecognised BOM 424f at /path/to/Encode.pm line 184. +.Ve +.PP +Unlike other encodings where mappings are not one-to-one against +Unicode, UTFs are supposed to map 100% against one another. So Encode +is more strict on UTFs. +.PP +Consider that \*(L"division by zero\*(R" of Encode :) +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode, Encode::Unicode::UTF7, , +, +.PP +\&\s-1RFC 2781\s0 , +.PP +The whole Unicode standard +.PP +Ch. 15, pp. 403 of \f(CW\*(C`Programming Perl (3rd Edition)\*(C'\fR +by Larry Wall, Tom Christiansen, Jon Orwant; +O'Reilly & Associates; \s-1ISBN 0\-596\-00027\-8\s0 diff --git a/data/miniconda3/man/man3/English.3 b/data/miniconda3/man/man3/English.3 new file mode 100644 index 0000000000000000000000000000000000000000..ad3f24b34ba3de3b7ca6297b7328e1b019152469 --- /dev/null +++ b/data/miniconda3/man/man3/English.3 @@ -0,0 +1,182 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "English 3" +.TH English 3 "2020-12-18" "perl v5.32.1" "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" +English \- use nice English (or awk) names for ugly punctuation variables +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use English; +\& use English qw( \-no_match_vars ) ; # Avoids regex performance +\& # penalty in perl 5.18 and +\& # earlier +\& ... +\& if ($ERRNO =~ /denied/) { ... } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides aliases for the built-in variables whose +names no one seems to like to read. Variables with side-effects +which get triggered just by accessing them (like \f(CW$0\fR) will still +be affected. +.PP +For those variables that have an \fBawk\fR version, both long +and short English alternatives are provided. For example, +the \f(CW$/\fR variable can be referred to either \f(CW$RS\fR or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR if you are using the English module. +.PP +See perlvar for a complete list of these. +.SH "PERFORMANCE" +.IX Header "PERFORMANCE" +\&\s-1NOTE:\s0 This was fixed in perl 5.20. Mentioning these three variables no +longer makes a speed difference. This section still applies if your code +is to run on perl 5.18 or earlier. +.PP +This module can provoke sizeable inefficiencies for regular expressions, +due to unfortunate implementation details. If performance matters in +your application and you don't need \f(CW$PREMATCH\fR, \f(CW$MATCH\fR, or \f(CW$POSTMATCH\fR, +try doing +.PP +.Vb 1 +\& use English qw( \-no_match_vars ) ; +.Ve +.PP +\&. \fBIt is especially important to do this in modules to avoid penalizing +all applications which use them.\fR diff --git a/data/miniconda3/man/man3/Env.3 b/data/miniconda3/man/man3/Env.3 new file mode 100644 index 0000000000000000000000000000000000000000..af4247a0e7b8f860eb970059f55937a2e9a99068 --- /dev/null +++ b/data/miniconda3/man/man3/Env.3 @@ -0,0 +1,215 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Env 3" +.TH Env 3 "2020-12-18" "perl v5.32.1" "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" +Env \- perl module that imports environment variables as scalars or arrays +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Env; +\& use Env qw(PATH HOME TERM); +\& use Env qw($SHELL @LD_LIBRARY_PATH); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl maintains environment variables in a special hash named \f(CW%ENV\fR. For +when this access method is inconvenient, the Perl module \f(CW\*(C`Env\*(C'\fR allows +environment variables to be treated as scalar or array variables. +.PP +The \f(CW\*(C`Env::import()\*(C'\fR function ties environment variables with suitable +names to global Perl variables with the same names. By default it +ties all existing environment variables (\f(CW\*(C`keys %ENV\*(C'\fR) to scalars. If +the \f(CW\*(C`import\*(C'\fR function receives arguments, it takes them to be a list of +variables to tie; it's okay if they don't yet exist. The scalar type +prefix '$' is inferred for any element of this list not prefixed by '$' +or '@'. Arrays are implemented in terms of \f(CW\*(C`split\*(C'\fR and \f(CW\*(C`join\*(C'\fR, using +\&\f(CW$Config::Config{path_sep}\fR as the delimiter. +.PP +After an environment variable is tied, merely use it like a normal variable. +You may access its value +.PP +.Vb 2 +\& @path = split(/:/, $PATH); +\& print join("\en", @LD_LIBRARY_PATH), "\en"; +.Ve +.PP +or modify it +.PP +.Vb 2 +\& $PATH .= ":."; +\& push @LD_LIBRARY_PATH, $dir; +.Ve +.PP +however you'd like. Bear in mind, however, that each access to a tied array +variable requires splitting the environment variable's string anew. +.PP +The code: +.PP +.Vb 2 +\& use Env qw(@PATH); +\& push @PATH, \*(Aq.\*(Aq; +.Ve +.PP +is equivalent to: +.PP +.Vb 2 +\& use Env qw(PATH); +\& $PATH .= ":."; +.Ve +.PP +except that if \f(CW$ENV{PATH}\fR started out empty, the second approach leaves +it with the (odd) value "\f(CW\*(C`:.\*(C'\fR\*(L", but the first approach leaves it with \*(R"\f(CW\*(C`.\*(C'\fR". +.PP +To remove a tied environment variable from +the environment, assign it the undefined value +.PP +.Vb 2 +\& undef $PATH; +\& undef @LD_LIBRARY_PATH; +.Ve +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +On \s-1VMS\s0 systems, arrays tied to environment variables are read-only. Attempting +to change anything will cause a warning. +.SH "AUTHOR" +.IX Header "AUTHOR" +Chip Salzenberg <\fIchip@fin.uucp\fR> +and +Gregor N. Purdy <\fIgregor@focusresearch.com\fR> diff --git a/data/miniconda3/man/man3/Errno.3 b/data/miniconda3/man/man3/Errno.3 new file mode 100644 index 0000000000000000000000000000000000000000..3463960db487fd130128bef0253f513d4dc60241 --- /dev/null +++ b/data/miniconda3/man/man3/Errno.3 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Errno 3" +.TH Errno 3 "2023-12-23" "perl v5.32.1" "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" +Errno \- System errno constants +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Errno qw(EINTR EIO :POSIX); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Errno\*(C'\fR defines and conditionally exports all the error constants +defined in your system \fIerrno.h\fR include file. It has a single export +tag, \f(CW\*(C`:POSIX\*(C'\fR, which will export all \s-1POSIX\s0 defined error numbers. +.PP +On Windows, \f(CW\*(C`Errno\*(C'\fR also defines and conditionally exports all the +Winsock error constants defined in your system \fIWinError.h\fR include +file. These are included in a second export tag, \f(CW\*(C`:WINSOCK\*(C'\fR. +.PP +\&\f(CW\*(C`Errno\*(C'\fR also makes \f(CW\*(C`%!\*(C'\fR magic such that each element of \f(CW\*(C`%!\*(C'\fR has a +non-zero value only if \f(CW$!\fR is set to that value. For example: +.PP +.Vb 8 +\& my $fh; +\& unless (open($fh, "<", "/fangorn/spouse")) { +\& if ($!{ENOENT}) { +\& warn "Get a wife!\en"; +\& } else { +\& warn "This path is barred: $!"; +\& } +\& } +.Ve +.PP +If a specified constant \f(CW\*(C`EFOO\*(C'\fR does not exist on the system, \f(CW$!{EFOO}\fR +returns \f(CW""\fR. You may use \f(CW\*(C`exists $!{EFOO}\*(C'\fR to check whether the +constant is available on the system. +.PP +Perl automatically loads \f(CW\*(C`Errno\*(C'\fR the first time you use \f(CW\*(C`%!\*(C'\fR, so you don't +need an explicit \f(CW\*(C`use\*(C'\fR. +.SH "CAVEATS" +.IX Header "CAVEATS" +Importing a particular constant may not be very portable, because the +import will fail on platforms that do not have that constant. A more +portable way to set \f(CW$!\fR to a valid value is to use: +.PP +.Vb 3 +\& if (exists &Errno::EFOO) { +\& $! = &Errno::EFOO; +\& } +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-8 Graham Barr. All rights reserved. +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Exporter%3A%3AHeavy.3 b/data/miniconda3/man/man3/Exporter%3A%3AHeavy.3 new file mode 100644 index 0000000000000000000000000000000000000000..66733bafd296d8a84c69973f175c05ea88cbc276 --- /dev/null +++ b/data/miniconda3/man/man3/Exporter%3A%3AHeavy.3 @@ -0,0 +1,148 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Exporter::Heavy 3" +.TH Exporter::Heavy 3 "2020-12-18" "perl v5.32.1" "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" +Exporter::Heavy \- Exporter guts +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +(internal use only) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +No user-serviceable parts inside. diff --git a/data/miniconda3/man/man3/Exporter.3 b/data/miniconda3/man/man3/Exporter.3 new file mode 100644 index 0000000000000000000000000000000000000000..7a6643eb36b7c3053668dcf08d6e50d206958690 --- /dev/null +++ b/data/miniconda3/man/man3/Exporter.3 @@ -0,0 +1,647 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Exporter 3" +.TH Exporter 3 "2020-12-18" "perl v5.32.1" "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" +Exporter \- Implements default import method for modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +In module \fIYourModule.pm\fR: +.PP +.Vb 4 +\& package YourModule; +\& require Exporter; +\& our @ISA = qw(Exporter); +\& our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request +.Ve +.PP +or +.PP +.Vb 3 +\& package YourModule; +\& use Exporter \*(Aqimport\*(Aq; # gives you Exporter\*(Aqs import() method directly +\& our @EXPORT_OK = qw(munge frobnicate); # symbols to export on request +.Ve +.PP +In other files which wish to use \f(CW\*(C`YourModule\*(C'\fR: +.PP +.Vb 2 +\& use YourModule qw(frobnicate); # import listed symbols +\& frobnicate ($left, $right) # calls YourModule::frobnicate +.Ve +.PP +Take a look at \*(L"Good Practices\*(R" for some variants +you will like to use in modern Perl code. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Exporter module implements an \f(CW\*(C`import\*(C'\fR method which allows a module +to export functions and variables to its users' namespaces. Many modules +use Exporter rather than implementing their own \f(CW\*(C`import\*(C'\fR method because +Exporter provides a highly flexible interface, with an implementation optimised +for the common case. +.PP +Perl automatically calls the \f(CW\*(C`import\*(C'\fR method when processing a +\&\f(CW\*(C`use\*(C'\fR statement for a module. Modules and \f(CW\*(C`use\*(C'\fR are documented +in perlfunc and perlmod. Understanding the concept of +modules and how the \f(CW\*(C`use\*(C'\fR statement operates is important to +understanding the Exporter. +.SS "How to Export" +.IX Subsection "How to Export" +The arrays \f(CW@EXPORT\fR and \f(CW@EXPORT_OK\fR in a module hold lists of +symbols that are going to be exported into the users name space by +default, or which they can request to be exported, respectively. The +symbols can represent functions, scalars, arrays, hashes, or typeglobs. +The symbols must be given by full name with the exception that the +ampersand in front of a function is optional, e.g. +.PP +.Vb 2 +\& our @EXPORT = qw(afunc $scalar @array); # afunc is a function +\& our @EXPORT_OK = qw(&bfunc %hash *typeglob); # explicit prefix on &bfunc +.Ve +.PP +If you are only exporting function names it is recommended to omit the +ampersand, as the implementation is faster this way. +.SS "Selecting What to Export" +.IX Subsection "Selecting What to Export" +Do \fBnot\fR export method names! +.PP +Do \fBnot\fR export anything else by default without a good reason! +.PP +Exports pollute the namespace of the module user. If you must export +try to use \f(CW@EXPORT_OK\fR in preference to \f(CW@EXPORT\fR and avoid short or +common symbol names to reduce the risk of name clashes. +.PP +Generally anything not exported is still accessible from outside the +module using the \f(CW\*(C`YourModule::item_name\*(C'\fR (or \f(CW\*(C`$blessed_ref\->method\*(C'\fR) +syntax. By convention you can use a leading underscore on names to +informally indicate that they are 'internal' and not for public use. +.PP +(It is actually possible to get private functions by saying: +.PP +.Vb 3 +\& my $subref = sub { ... }; +\& $subref\->(@args); # Call it as a function +\& $obj\->$subref(@args); # Use it as a method +.Ve +.PP +However if you use them for methods it is up to you to figure out +how to make inheritance work.) +.PP +As a general rule, if the module is trying to be object oriented +then export nothing. If it's just a collection of functions then +\&\f(CW@EXPORT_OK\fR anything but use \f(CW@EXPORT\fR with caution. For function and +method names use barewords in preference to names prefixed with +ampersands for the export lists. +.PP +Other module design guidelines can be found in perlmod. +.SS "How to Import" +.IX Subsection "How to Import" +In other files which wish to use your module there are three basic ways for +them to load your module and import its symbols: +.ie n .IP """use YourModule;""" 4 +.el .IP "\f(CWuse YourModule;\fR" 4 +.IX Item "use YourModule;" +This imports all the symbols from YourModule's \f(CW@EXPORT\fR into the namespace +of the \f(CW\*(C`use\*(C'\fR statement. +.ie n .IP """use YourModule ();""" 4 +.el .IP "\f(CWuse YourModule ();\fR" 4 +.IX Item "use YourModule ();" +This causes perl to load your module but does not import any symbols. +.ie n .IP """use YourModule qw(...);""" 4 +.el .IP "\f(CWuse YourModule qw(...);\fR" 4 +.IX Item "use YourModule qw(...);" +This imports only the symbols listed by the caller into their namespace. +All listed symbols must be in your \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR, else an error +occurs. The advanced export features of Exporter are accessed like this, +but with list entries that are syntactically distinct from symbol names. +.PP +Unless you want to use its advanced features, this is probably all you +need to know to use Exporter. +.SH "Advanced Features" +.IX Header "Advanced Features" +.SS "Specialised Import Lists" +.IX Subsection "Specialised Import Lists" +If any of the entries in an import list begins with !, : or / then +the list is treated as a series of specifications which either add to +or delete from the list of names to import. They are processed left to +right. Specifications are in the form: +.PP +.Vb 4 +\& [!]name This name only +\& [!]:DEFAULT All names in @EXPORT +\& [!]:tag All names in $EXPORT_TAGS{tag} anonymous array +\& [!]/pattern/ All names in @EXPORT and @EXPORT_OK which match +.Ve +.PP +A leading ! indicates that matching names should be deleted from the +list of names to import. If the first specification is a deletion it +is treated as though preceded by :DEFAULT. If you just want to import +extra names in addition to the default set you will still need to +include :DEFAULT explicitly. +.PP +e.g., \fIModule.pm\fR defines: +.PP +.Vb 3 +\& our @EXPORT = qw(A1 A2 A3 A4 A5); +\& our @EXPORT_OK = qw(B1 B2 B3 B4 B5); +\& our %EXPORT_TAGS = (T1 => [qw(A1 A2 B1 B2)], T2 => [qw(A1 A2 B3 B4)]); +.Ve +.PP +Note that you cannot use tags in \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR. +.PP +Names in \s-1EXPORT_TAGS\s0 must also appear in \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR. +.PP +An application using Module can say something like: +.PP +.Vb 1 +\& use Module qw(:DEFAULT :T2 !B3 A3); +.Ve +.PP +Other examples include: +.PP +.Vb 2 +\& use Socket qw(!/^[AP]F_/ !SOMAXCONN !SOL_SOCKET); +\& use POSIX qw(:errno_h :termios_h !TCSADRAIN !/^EXIT/); +.Ve +.PP +Remember that most patterns (using //) will need to be anchored +with a leading ^, e.g., \f(CW\*(C`/^EXIT/\*(C'\fR rather than \f(CW\*(C`/EXIT/\*(C'\fR. +.PP +You can say \f(CW\*(C`BEGIN { $Exporter::Verbose=1 }\*(C'\fR to see how the +specifications are being processed and what is actually being imported +into modules. +.SS "Exporting Without Using Exporter's import Method" +.IX Subsection "Exporting Without Using Exporter's import Method" +Exporter has a special method, 'export_to_level' which is used in situations +where you can't directly call Exporter's +import method. The export_to_level +method looks like: +.PP +.Vb 3 +\& MyPackage\->export_to_level( +\& $where_to_export, $package, @what_to_export +\& ); +.Ve +.PP +where \f(CW$where_to_export\fR is an integer telling how far up the calling stack +to export your symbols, and \f(CW@what_to_export\fR is an array telling what +symbols *to* export (usually this is \f(CW@_\fR). The \f(CW$package\fR argument is +currently unused. +.PP +For example, suppose that you have a module, A, which already has an +import function: +.PP +.Vb 1 +\& package A; +\& +\& our @ISA = qw(Exporter); +\& our @EXPORT_OK = qw($b); +\& +\& sub import +\& { +\& $A::b = 1; # not a very useful import method +\& } +.Ve +.PP +and you want to Export symbol \f(CW$A::b\fR back to the module that called +package A. Since Exporter relies on the import method to work, via +inheritance, as it stands \fBExporter::import()\fR will never get called. +Instead, say the following: +.PP +.Vb 3 +\& package A; +\& our @ISA = qw(Exporter); +\& our @EXPORT_OK = qw($b); +\& +\& sub import +\& { +\& $A::b = 1; +\& A\->export_to_level(1, @_); +\& } +.Ve +.PP +This will export the symbols one level 'above' the current package \- ie: to +the program or module that used package A. +.PP +Note: Be careful not to modify \f(CW@_\fR at all before you call export_to_level +\&\- or people using your package will get very unexplained results! +.SS "Exporting Without Inheriting from Exporter" +.IX Subsection "Exporting Without Inheriting from Exporter" +By including Exporter in your \f(CW@ISA\fR you inherit an Exporter's \fBimport()\fR method +but you also inherit several other helper methods which you probably don't +want. To avoid this you can do: +.PP +.Vb 2 +\& package YourModule; +\& use Exporter qw(import); +.Ve +.PP +which will export Exporter's own \fBimport()\fR method into YourModule. +Everything will work as before but you won't need to include Exporter in +\&\f(CW@YourModule::ISA\fR. +.PP +Note: This feature was introduced in version 5.57 +of Exporter, released with perl 5.8.3. +.SS "Module Version Checking" +.IX Subsection "Module Version Checking" +The Exporter module will convert an attempt to import a number from a +module into a call to \f(CW\*(C`$module_name\->VERSION($value)\*(C'\fR. This can +be used to validate that the version of the module being used is +greater than or equal to the required version. +.PP +For historical reasons, Exporter supplies a \f(CW\*(C`require_version\*(C'\fR method that +simply delegates to \f(CW\*(C`VERSION\*(C'\fR. Originally, before \f(CW\*(C`UNIVERSAL::VERSION\*(C'\fR +existed, Exporter would call \f(CW\*(C`require_version\*(C'\fR. +.PP +Since the \f(CW\*(C`UNIVERSAL::VERSION\*(C'\fR method treats the \f(CW$VERSION\fR number as +a simple numeric value it will regard version 1.10 as lower than +1.9. For this reason it is strongly recommended that you use numbers +with at least two decimal places, e.g., 1.09. +.SS "Managing Unknown Symbols" +.IX Subsection "Managing Unknown Symbols" +In some situations you may want to prevent certain symbols from being +exported. Typically this applies to extensions which have functions +or constants that may not exist on some systems. +.PP +The names of any symbols that cannot be exported should be listed +in the \f(CW@EXPORT_FAIL\fR array. +.PP +If a module attempts to import any of these symbols the Exporter +will give the module an opportunity to handle the situation before +generating an error. The Exporter will call an export_fail method +with a list of the failed symbols: +.PP +.Vb 1 +\& @failed_symbols = $module_name\->export_fail(@failed_symbols); +.Ve +.PP +If the \f(CW\*(C`export_fail\*(C'\fR method returns an empty list then no error is +recorded and all the requested symbols are exported. If the returned +list is not empty then an error is generated for each symbol and the +export fails. The Exporter provides a default \f(CW\*(C`export_fail\*(C'\fR method which +simply returns the list unchanged. +.PP +Uses for the \f(CW\*(C`export_fail\*(C'\fR method include giving better error messages +for some symbols and performing lazy architectural checks (put more +symbols into \f(CW@EXPORT_FAIL\fR by default and then take them out if someone +actually tries to use them and an expensive check shows that they are +usable on that platform). +.SS "Tag Handling Utility Functions" +.IX Subsection "Tag Handling Utility Functions" +Since the symbols listed within \f(CW%EXPORT_TAGS\fR must also appear in either +\&\f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR, two utility functions are provided which allow +you to easily add tagged sets of symbols to \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR: +.PP +.Vb 1 +\& our %EXPORT_TAGS = (foo => [qw(aa bb cc)], bar => [qw(aa cc dd)]); +\& +\& Exporter::export_tags(\*(Aqfoo\*(Aq); # add aa, bb and cc to @EXPORT +\& Exporter::export_ok_tags(\*(Aqbar\*(Aq); # add aa, cc and dd to @EXPORT_OK +.Ve +.PP +Any names which are not tags are added to \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR +unchanged but will trigger a warning (with \f(CW\*(C`\-w\*(C'\fR) to avoid misspelt tags +names being silently added to \f(CW@EXPORT\fR or \f(CW@EXPORT_OK\fR. Future versions +may make this a fatal error. +.SS "Generating Combined Tags" +.IX Subsection "Generating Combined Tags" +If several symbol categories exist in \f(CW%EXPORT_TAGS\fR, it's usually +useful to create the utility \*(L":all\*(R" to simplify \*(L"use\*(R" statements. +.PP +The simplest way to do this is: +.PP +.Vb 1 +\& our %EXPORT_TAGS = (foo => [qw(aa bb cc)], bar => [qw(aa cc dd)]); +\& +\& # add all the other ":class" tags to the ":all" class, +\& # deleting duplicates +\& { +\& my %seen; +\& +\& push @{$EXPORT_TAGS{all}}, +\& grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} foreach keys %EXPORT_TAGS; +\& } +.Ve +.PP +\&\fI\s-1CGI\s0.pm\fR creates an \*(L":all\*(R" tag which contains some (but not really +all) of its categories. That could be done with one small +change: +.PP +.Vb 4 +\& # add some of the other ":class" tags to the ":all" class, +\& # deleting duplicates +\& { +\& my %seen; +\& +\& push @{$EXPORT_TAGS{all}}, +\& grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} +\& foreach qw/html2 html3 netscape form cgi internal/; +\& } +.Ve +.PP +Note that the tag names in \f(CW%EXPORT_TAGS\fR don't have the leading ':'. +.ie n .SS """AUTOLOAD""ed Constants" +.el .SS "\f(CWAUTOLOAD\fPed Constants" +.IX Subsection "AUTOLOADed Constants" +Many modules make use of \f(CW\*(C`AUTOLOAD\*(C'\fRing for constant subroutines to +avoid having to compile and waste memory on rarely used values (see +perlsub for details on constant subroutines). Calls to such +constant subroutines are not optimized away at compile time because +they can't be checked at compile time for constancy. +.PP +Even if a prototype is available at compile time, the body of the +subroutine is not (it hasn't been \f(CW\*(C`AUTOLOAD\*(C'\fRed yet). perl needs to +examine both the \f(CW\*(C`()\*(C'\fR prototype and the body of a subroutine at +compile time to detect that it can safely replace calls to that +subroutine with the constant value. +.PP +A workaround for this is to call the constants once in a \f(CW\*(C`BEGIN\*(C'\fR block: +.PP +.Vb 1 +\& package My ; +\& +\& use Socket ; +\& +\& foo( SO_LINGER ); ## SO_LINGER NOT optimized away; called at runtime +\& BEGIN { SO_LINGER } +\& foo( SO_LINGER ); ## SO_LINGER optimized away at compile time. +.Ve +.PP +This forces the \f(CW\*(C`AUTOLOAD\*(C'\fR for \f(CW\*(C`SO_LINGER\*(C'\fR to take place before +\&\s-1SO_LINGER\s0 is encountered later in \f(CW\*(C`My\*(C'\fR package. +.PP +If you are writing a package that \f(CW\*(C`AUTOLOAD\*(C'\fRs, consider forcing +an \f(CW\*(C`AUTOLOAD\*(C'\fR for any constants explicitly imported by other packages +or which are usually used when your package is \f(CW\*(C`use\*(C'\fRd. +.SH "Good Practices" +.IX Header "Good Practices" +.ie n .SS "Declaring @EXPORT_OK and Friends" +.el .SS "Declaring \f(CW@EXPORT_OK\fP and Friends" +.IX Subsection "Declaring @EXPORT_OK and Friends" +When using \f(CW\*(C`Exporter\*(C'\fR with the standard \f(CW\*(C`strict\*(C'\fR and \f(CW\*(C`warnings\*(C'\fR +pragmas, the \f(CW\*(C`our\*(C'\fR keyword is needed to declare the package +variables \f(CW@EXPORT_OK\fR, \f(CW@EXPORT\fR, \f(CW@ISA\fR, etc. +.PP +.Vb 2 +\& our @ISA = qw(Exporter); +\& our @EXPORT_OK = qw(munge frobnicate); +.Ve +.PP +If backward compatibility for Perls \fBunder\fR 5.6 is important, +one must write instead a \f(CW\*(C`use vars\*(C'\fR statement. +.PP +.Vb 3 +\& use vars qw(@ISA @EXPORT_OK); +\& @ISA = qw(Exporter); +\& @EXPORT_OK = qw(munge frobnicate); +.Ve +.SS "Playing Safe" +.IX Subsection "Playing Safe" +There are some caveats with the use of runtime statements +like \f(CW\*(C`require Exporter\*(C'\fR and the assignment to package +variables, which can be very subtle for the unaware programmer. +This may happen for instance with mutually recursive +modules, which are affected by the time the relevant +constructions are executed. +.PP +The ideal (but a bit ugly) way to never have to think +about that is to use \f(CW\*(C`BEGIN\*(C'\fR blocks. So the first part +of the \*(L"\s-1SYNOPSIS\*(R"\s0 code could be rewritten as: +.PP +.Vb 1 +\& package YourModule; +\& +\& use strict; +\& use warnings; +\& +\& our (@ISA, @EXPORT_OK); +\& BEGIN { +\& require Exporter; +\& @ISA = qw(Exporter); +\& @EXPORT_OK = qw(munge frobnicate); # symbols to export on request +\& } +.Ve +.PP +The \f(CW\*(C`BEGIN\*(C'\fR will assure that the loading of \fIExporter.pm\fR +and the assignments to \f(CW@ISA\fR and \f(CW@EXPORT_OK\fR happen +immediately, leaving no room for something to get awry +or just plain wrong. +.PP +With respect to loading \f(CW\*(C`Exporter\*(C'\fR and inheriting, there +are alternatives with the use of modules like \f(CW\*(C`base\*(C'\fR and \f(CW\*(C`parent\*(C'\fR. +.PP +.Vb 3 +\& use base qw(Exporter); +\& # or +\& use parent qw(Exporter); +.Ve +.PP +Any of these statements are nice replacements for +\&\f(CW\*(C`BEGIN { require Exporter; @ISA = qw(Exporter); }\*(C'\fR +with the same compile-time effect. The basic difference +is that \f(CW\*(C`base\*(C'\fR code interacts with declared \f(CW\*(C`fields\*(C'\fR +while \f(CW\*(C`parent\*(C'\fR is a streamlined version of the older +\&\f(CW\*(C`base\*(C'\fR code to just establish the IS-A relationship. +.PP +For more details, see the documentation and code of +base and parent. +.PP +Another thorough remedy to that runtime +vs. compile-time trap is to use Exporter::Easy, +which is a wrapper of Exporter that allows all +boilerplate code at a single gulp in the +use statement. +.PP +.Vb 5 +\& use Exporter::Easy ( +\& OK => [ qw(munge frobnicate) ], +\& ); +\& # @ISA setup is automatic +\& # all assignments happen at compile time +.Ve +.SS "What Not to Export" +.IX Subsection "What Not to Export" +You have been warned already in \*(L"Selecting What to Export\*(R" +to not export: +.IP "\(bu" 4 +method names (because you don't need to +and that's likely to not do what you want), +.IP "\(bu" 4 +anything by default (because you don't want to surprise your users... +badly) +.IP "\(bu" 4 +anything you don't need to (because less is more) +.PP +There's one more item to add to this list. Do \fBnot\fR +export variable names. Just because \f(CW\*(C`Exporter\*(C'\fR lets you +do that, it does not mean you should. +.PP +.Vb 1 +\& @EXPORT_OK = qw($svar @avar %hvar); # DON\*(AqT! +.Ve +.PP +Exporting variables is not a good idea. They can +change under the hood, provoking horrible +effects at-a-distance that are too hard to track +and to fix. Trust me: they are not worth it. +.PP +To provide the capability to set/get class-wide +settings, it is best instead to provide accessors +as subroutines or class methods instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\f(CW\*(C`Exporter\*(C'\fR is definitely not the only module with +symbol exporter capabilities. At \s-1CPAN,\s0 you may find +a bunch of them. Some are lighter. Some +provide improved APIs and features. Pick the one +that fits your needs. The following is +a sample list of such modules. +.PP +.Vb 6 +\& Exporter::Easy +\& Exporter::Lite +\& Exporter::Renaming +\& Exporter::Tidy +\& Sub::Exporter / Sub::Installer +\& Perl6::Export / Perl6::Export::Attrs +.Ve +.SH "LICENSE" +.IX Header "LICENSE" +This library is free software. You can redistribute it +and/or modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder%3A%3APlatform%3A%3AWindows.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder%3A%3APlatform%3A%3AWindows.3 new file mode 100644 index 0000000000000000000000000000000000000000..5f768c2a1beb35e004ab0b84617e85c64cb23017 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder%3A%3APlatform%3A%3AWindows.3 @@ -0,0 +1,160 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::CBuilder::Platform::Windows 3" +.TH ExtUtils::CBuilder::Platform::Windows 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::CBuilder::Platform::Windows \- Builder class for Windows platforms +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements the Windows-specific parts of ExtUtils::CBuilder. +Most of the Windows-specific stuff has to do with compiling and +linking C code. Currently we support the 3 compilers perl itself +supports: \s-1MSVC, BCC,\s0 and \s-1GCC.\s0 +.PP +This module inherits from \f(CW\*(C`ExtUtils::CBuilder::Base\*(C'\fR, so any functionality +not implemented here will be implemented there. The interfaces are +defined by the ExtUtils::CBuilder documentation. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ken Williams +.PP +Most of the code here was written by Randy W. Sims . +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1), \fBExtUtils::CBuilder\fR\|(3), \fBExtUtils::MakeMaker\fR\|(3) diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder.3 new file mode 100644 index 0000000000000000000000000000000000000000..2dae183fbc8e4d54e333e3fcff7c175199bbf7f5 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ACBuilder.3 @@ -0,0 +1,377 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::CBuilder 3" +.TH ExtUtils::CBuilder 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::CBuilder \- Compile and link C code for Perl modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::CBuilder; +\& +\& my $b = ExtUtils::CBuilder\->new(%options); +\& $obj_file = $b\->compile(source => \*(AqMyModule.c\*(Aq); +\& $lib_file = $b\->link(objects => $obj_file); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module can build the C portions of Perl modules by invoking the +appropriate compilers and linkers in a cross-platform manner. It was +motivated by the \f(CW\*(C`Module::Build\*(C'\fR project, but may be useful for other +purposes as well. However, it is \fInot\fR intended as a general +cross-platform interface to all your C building needs. That would +have been a much more ambitious goal! +.SH "METHODS" +.IX Header "METHODS" +.IP "new" 4 +.IX Item "new" +Returns a new \f(CW\*(C`ExtUtils::CBuilder\*(C'\fR object. A \f(CW\*(C`config\*(C'\fR parameter +lets you override \f(CW\*(C`Config.pm\*(C'\fR settings for all operations performed +by the object, as in the following example: +.Sp +.Vb 3 +\& # Use a different compiler than Config.pm says +\& my $b = ExtUtils::CBuilder\->new( config => +\& { ld => \*(Aqgcc\*(Aq } ); +.Ve +.Sp +A \f(CW\*(C`quiet\*(C'\fR parameter tells \f(CW\*(C`CBuilder\*(C'\fR to not print its \f(CW\*(C`system()\*(C'\fR +commands before executing them: +.Sp +.Vb 2 +\& # Be quieter than normal +\& my $b = ExtUtils::CBuilder\->new( quiet => 1 ); +.Ve +.IP "have_compiler" 4 +.IX Item "have_compiler" +Returns true if the current system has a working C compiler and +linker, false otherwise. To determine this, we actually compile and +link a sample C library. The sample will be compiled in the system +tempdir or, if that fails for some reason, in the current directory. +.IP "have_cplusplus" 4 +.IX Item "have_cplusplus" +Just like have_compiler but for \*(C+ instead of C. +.IP "compile" 4 +.IX Item "compile" +Compiles a C source file and produces an object file. The name of the +object file is returned. The source file is specified in a \f(CW\*(C`source\*(C'\fR +parameter, which is required; the other parameters listed below are +optional. +.RS 4 +.ie n .IP """object_file""" 4 +.el .IP "\f(CWobject_file\fR" 4 +.IX Item "object_file" +Specifies the name of the output file to create. Otherwise the +\&\f(CW\*(C`object_file()\*(C'\fR method will be consulted, passing it the name of the +\&\f(CW\*(C`source\*(C'\fR file. +.ie n .IP """include_dirs""" 4 +.el .IP "\f(CWinclude_dirs\fR" 4 +.IX Item "include_dirs" +Specifies any additional directories in which to search for header +files. May be given as a string indicating a single directory, or as +a list reference indicating multiple directories. +.ie n .IP """extra_compiler_flags""" 4 +.el .IP "\f(CWextra_compiler_flags\fR" 4 +.IX Item "extra_compiler_flags" +Specifies any additional arguments to pass to the compiler. Should be +given as a list reference containing the arguments individually, or if +this is not possible, as a string containing all the arguments +together. +.ie n .IP """C++""" 4 +.el .IP "\f(CWC++\fR" 4 +.IX Item "C++" +Specifies that the source file is a \*(C+ source file and sets appropriate +compiler flags +.RE +.RS 4 +.Sp +The operation of this method is also affected by the +\&\f(CW\*(C`archlibexp\*(C'\fR, \f(CW\*(C`cccdlflags\*(C'\fR, \f(CW\*(C`ccflags\*(C'\fR, \f(CW\*(C`optimize\*(C'\fR, and \f(CW\*(C`cc\*(C'\fR +entries in \f(CW\*(C`Config.pm\*(C'\fR. +.RE +.IP "link" 4 +.IX Item "link" +Invokes the linker to produce a library file from object files. In +scalar context, the name of the library file is returned. In list +context, the library file and any temporary files created are +returned. A required \f(CW\*(C`objects\*(C'\fR parameter contains the name of the +object files to process, either in a string (for one object file) or +list reference (for one or more files). The following parameters are +optional: +.RS 4 +.IP "lib_file" 4 +.IX Item "lib_file" +Specifies the name of the output library file to create. Otherwise +the \f(CW\*(C`lib_file()\*(C'\fR method will be consulted, passing it the name of +the first entry in \f(CW\*(C`objects\*(C'\fR. +.IP "module_name" 4 +.IX Item "module_name" +Specifies the name of the Perl module that will be created by linking. +On platforms that need to do prelinking (Win32, \s-1OS/2,\s0 etc.) this is a +required parameter. +.IP "extra_linker_flags" 4 +.IX Item "extra_linker_flags" +Any additional flags you wish to pass to the linker. +.RE +.RS 4 +.Sp +On platforms where \f(CW\*(C`need_prelink()\*(C'\fR returns true, \f(CW\*(C`prelink()\*(C'\fR +will be called automatically. +.Sp +The operation of this method is also affected by the \f(CW\*(C`lddlflags\*(C'\fR, +\&\f(CW\*(C`shrpenv\*(C'\fR, and \f(CW\*(C`ld\*(C'\fR entries in \f(CW\*(C`Config.pm\*(C'\fR. +.RE +.IP "link_executable" 4 +.IX Item "link_executable" +Invokes the linker to produce an executable file from object files. In +scalar context, the name of the executable file is returned. In list +context, the executable file and any temporary files created are +returned. A required \f(CW\*(C`objects\*(C'\fR parameter contains the name of the +object files to process, either in a string (for one object file) or +list reference (for one or more files). The optional parameters are +the same as \f(CW\*(C`link\*(C'\fR with exception for +.RS 4 +.IP "exe_file" 4 +.IX Item "exe_file" +Specifies the name of the output executable file to create. Otherwise +the \f(CW\*(C`exe_file()\*(C'\fR method will be consulted, passing it the name of the +first entry in \f(CW\*(C`objects\*(C'\fR. +.RE +.RS 4 +.RE +.IP "object_file" 4 +.IX Item "object_file" +.Vb 1 +\& my $object_file = $b\->object_file($source_file); +.Ve +.Sp +Converts the name of a C source file to the most natural name of an +output object file to create from it. For instance, on Unix the +source file \fIfoo.c\fR would result in the object file \fIfoo.o\fR. +.IP "lib_file" 4 +.IX Item "lib_file" +.Vb 1 +\& my $lib_file = $b\->lib_file($object_file); +.Ve +.Sp +Converts the name of an object file to the most natural name of a +output library file to create from it. For instance, on Mac \s-1OS X\s0 the +object file \fIfoo.o\fR would result in the library file \fIfoo.bundle\fR. +.IP "exe_file" 4 +.IX Item "exe_file" +.Vb 1 +\& my $exe_file = $b\->exe_file($object_file); +.Ve +.Sp +Converts the name of an object file to the most natural name of an +executable file to create from it. For instance, on Mac \s-1OS X\s0 the +object file \fIfoo.o\fR would result in the executable file \fIfoo\fR, and +on Windows it would result in \fIfoo.exe\fR. +.IP "prelink" 4 +.IX Item "prelink" +On certain platforms like Win32, \s-1OS/2, VMS,\s0 and \s-1AIX,\s0 it is necessary +to perform some actions before invoking the linker. The +\&\f(CW\*(C`ExtUtils::Mksymlists\*(C'\fR module does this, writing files used by the +linker during the creation of shared libraries for dynamic extensions. +The names of any files written will be returned as a list. +.Sp +Several parameters correspond to \f(CW\*(C`ExtUtils::Mksymlists::Mksymlists()\*(C'\fR +options, as follows: +.Sp +.Vb 10 +\& Mksymlists() prelink() type +\& \-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& NAME | dl_name | string (required) +\& DLBASE | dl_base | string +\& FILE | dl_file | string +\& DL_VARS | dl_vars | array reference +\& DL_FUNCS | dl_funcs | hash reference +\& FUNCLIST | dl_func_list | array reference +\& IMPORTS | dl_imports | hash reference +\& VERSION | dl_version | string +.Ve +.Sp +Please see the documentation for \f(CW\*(C`ExtUtils::Mksymlists\*(C'\fR for the +details of what these parameters do. +.IP "need_prelink" 4 +.IX Item "need_prelink" +Returns true on platforms where \f(CW\*(C`prelink()\*(C'\fR should be called +during linking, and false otherwise. +.IP "extra_link_args_after_prelink" 4 +.IX Item "extra_link_args_after_prelink" +Returns list of extra arguments to give to the link command; the arguments +are the same as for \fBprelink()\fR, with addition of array reference to the +results of \fBprelink()\fR; this reference is indexed by key \f(CW\*(C`prelink_res\*(C'\fR. +.SH "TO DO" +.IX Header "TO DO" +Currently this has only been tested on Unix and doesn't contain any of +the Windows-specific code from the \f(CW\*(C`Module::Build\*(C'\fR project. I'll do +that next. +.SH "HISTORY" +.IX Header "HISTORY" +This module is an outgrowth of the \f(CW\*(C`Module::Build\*(C'\fR project, to which +there have been many contributors. Notably, Randy W. Sims submitted +lots of code to support 3 compilers on Windows and helped with various +other platform-specific issues. Ilya Zakharevich has contributed +fixes for \s-1OS/2\s0; John E. Malmberg and Peter Prymmer have done likewise +for \s-1VMS.\s0 +.SH "SUPPORT" +.IX Header "SUPPORT" +ExtUtils::CBuilder is maintained as part of the Perl 5 core. Please +submit any bug reports via the \fIperlbug\fR tool included with Perl 5. +Bug reports will be included in the Perl 5 ticket system at +. +.PP +The Perl 5 source code is available at +and ExtUtils-CBuilder may be found in the \fIdist/ExtUtils\-CBuilder\fR directory +of the repository. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ken Williams, kwilliams@cpan.org +.PP +Additional contributions by The Perl 5 Porters. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2003\-2005 Ken Williams. All rights reserved. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1), \fBModule::Build\fR\|(3) diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3ABase.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3ABase.3 new file mode 100644 index 0000000000000000000000000000000000000000..03448feff3a5b68aebb4ee837a9aa88dba22d973 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3ABase.3 @@ -0,0 +1,333 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Constant::Base 3" +.TH ExtUtils::Constant::Base 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Constant::Base \- base class for ExtUtils::Constant objects +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& require ExtUtils::Constant::Base; +\& @ISA = \*(AqExtUtils::Constant::Base\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Constant::Base provides a base implementation of methods to +generate C code to give fast constant value lookup by named string. Currently +it's mostly used ExtUtils::Constant::XS, which generates the lookup code +for the \fBconstant()\fR subroutine found in many \s-1XS\s0 modules. +.SH "USAGE" +.IX Header "USAGE" +ExtUtils::Constant::Base exports no subroutines. The following methods are +available +.IP "header" 4 +.IX Item "header" +A method returning a scalar containing definitions needed, typically for a +C header file. +.IP "memEQ_clause args_hashref" 4 +.IX Item "memEQ_clause args_hashref" +A method to return a suitable C \f(CW\*(C`if\*(C'\fR statement to check whether \fIname\fR +is equal to the C variable \f(CW\*(C`name\*(C'\fR. If \fIchecked_at\fR is defined, then it +is used to avoid \f(CW\*(C`memEQ\*(C'\fR for short names, or to generate a comment to +highlight the position of the character in the \f(CW\*(C`switch\*(C'\fR statement. +.Sp +If i is a reference to a scalar, then instead it gives +the characters pre-checked at the beginning, (and the number of chars by +which the C variable name has been advanced. These need to be chopped from +the front of \fIname\fR). +.IP "dump_names arg_hashref, \s-1ITEM...\s0" 4 +.IX Item "dump_names arg_hashref, ITEM..." +An internal function to generate the embedded perl code that will regenerate +the constant subroutines. \fIdefault_type\fR, \fItypes\fR and \fI\s-1ITEM\s0\fRs are the +same as for C_constant. \fIindent\fR is treated as number of spaces to indent +by. If \f(CW\*(C`declare_types\*(C'\fR is true a \f(CW$types\fR is always declared in the perl +code generated, if defined and false never declared, and if undefined \f(CW$types\fR +is only declared if the values in \fItypes\fR as passed in cannot be inferred from +\&\fIdefault_types\fR and the \fI\s-1ITEM\s0\fRs. +.IP "assign arg_hashref, \s-1VALUE...\s0" 4 +.IX Item "assign arg_hashref, VALUE..." +A method to return a suitable assignment clause. If \fItype\fR is aggregate +(eg \fI\s-1PVN\s0\fR expects both pointer and length) then there should be multiple +\&\fI\s-1VALUE\s0\fRs for the components. \fIpre\fR and \fIpost\fR if defined give snippets +of C code to proceed and follow the assignment. \fIpre\fR will be at the start +of a block, so variables may be defined in it. +.IP "return_clause arg_hashref, \s-1ITEM\s0" 4 +.IX Item "return_clause arg_hashref, ITEM" +A method to return a suitable \f(CW\*(C`#ifdef\*(C'\fR clause. \fI\s-1ITEM\s0\fR is a hashref +(as passed to \f(CW\*(C`C_constant\*(C'\fR and \f(CW\*(C`match_clause\*(C'\fR. \fIindent\fR is the number +of spaces to indent, defaulting to 6. +.IP "switch_clause arg_hashref, \s-1NAMELEN, ITEMHASH, ITEM...\s0" 4 +.IX Item "switch_clause arg_hashref, NAMELEN, ITEMHASH, ITEM..." +An internal method to generate a suitable \f(CW\*(C`switch\*(C'\fR clause, called by +\&\f(CW\*(C`C_constant\*(C'\fR \fI\s-1ITEM\s0\fRs are in the hash ref format as given in the description +of \f(CW\*(C`C_constant\*(C'\fR, and must all have the names of the same length, given by +\&\fI\s-1NAMELEN\s0\fR. \fI\s-1ITEMHASH\s0\fR is a reference to a hash, keyed by name, values being +the hashrefs in the \fI\s-1ITEM\s0\fR list. (No parameters are modified, and there can +be keys in the \fI\s-1ITEMHASH\s0\fR that are not in the list of \fI\s-1ITEM\s0\fRs without +causing problems \- the hash is passed in to save generating it afresh for +each call). +.IP "params \s-1WHAT\s0" 4 +.IX Item "params WHAT" +An \*(L"internal\*(R" method, subject to change, currently called to allow an +overriding class to cache information that will then be passed into all +the \f(CW\*(C`*param*\*(C'\fR calls. (Yes, having to read the source to make sense of this is +considered a known bug). \fI\s-1WHAT\s0\fR is be a hashref of types the constant +function will return. In ExtUtils::Constant::XS this method is used to +returns a hashref keyed \s-1IV NV PV SV\s0 to show which combination of pointers will +be needed in the C argument list generated by +C_constant_other_params_definition and C_constant_other_params +.IP "dogfood arg_hashref, \s-1ITEM...\s0" 4 +.IX Item "dogfood arg_hashref, ITEM..." +An internal function to generate the embedded perl code that will regenerate +the constant subroutines. Parameters are the same as for C_constant. +.Sp +Currently the base class does nothing and returns an empty string. +.IP "normalise_items args, default_type, seen_types, seen_items, \s-1ITEM...\s0" 4 +.IX Item "normalise_items args, default_type, seen_types, seen_items, ITEM..." +Convert the items to a normalised form. For 8 bit and Unicode values converts +the item to an array of 1 or 2 items, both 8 bit and \s-1UTF\-8\s0 encoded. +.IP "C_constant arg_hashref, \s-1ITEM...\s0" 4 +.IX Item "C_constant arg_hashref, ITEM..." +A function that returns a \fBlist\fR of C subroutine definitions that return +the value and type of constants when passed the name by the \s-1XS\s0 wrapper. +\&\fI\s-1ITEM...\s0\fR gives a list of constant names. Each can either be a string, +which is taken as a C macro name, or a reference to a hash with the following +keys +.RS 4 +.IP "name" 8 +.IX Item "name" +The name of the constant, as seen by the perl code. +.IP "type" 8 +.IX Item "type" +The type of the constant (\fI\s-1IV\s0\fR, \fI\s-1NV\s0\fR etc) +.IP "value" 8 +.IX Item "value" +A C expression for the value of the constant, or a list of C expressions if +the type is aggregate. This defaults to the \fIname\fR if not given. +.IP "macro" 8 +.IX Item "macro" +The C pre-processor macro to use in the \f(CW\*(C`#ifdef\*(C'\fR. This defaults to the +\&\fIname\fR, and is mainly used if \fIvalue\fR is an \f(CW\*(C`enum\*(C'\fR. If a reference an +array is passed then the first element is used in place of the \f(CW\*(C`#ifdef\*(C'\fR +line, and the second element in place of the \f(CW\*(C`#endif\*(C'\fR. This allows +pre-processor constructions such as +.Sp +.Vb 5 +\& #if defined (foo) +\& #if !defined (bar) +\& ... +\& #endif +\& #endif +.Ve +.Sp +to be used to determine if a constant is to be defined. +.Sp +A \*(L"macro\*(R" 1 signals that the constant is always defined, so the \f(CW\*(C`#if\*(C'\fR/\f(CW\*(C`#endif\*(C'\fR +test is omitted. +.IP "default" 8 +.IX Item "default" +Default value to use (instead of \f(CW\*(C`croak\*(C'\fRing with \*(L"your vendor has not +defined...\*(R") to return if the macro isn't defined. Specify a reference to +an array with type followed by value(s). +.IP "pre" 8 +.IX Item "pre" +C code to use before the assignment of the value of the constant. This allows +you to use temporary variables to extract a value from part of a \f(CW\*(C`struct\*(C'\fR +and return this as \fIvalue\fR. This C code is places at the start of a block, +so you can declare variables in it. +.IP "post" 8 +.IX Item "post" +C code to place between the assignment of value (to a temporary) and the +return from the function. This allows you to clear up anything in \fIpre\fR. +Rarely needed. +.IP "def_pre" 8 +.IX Item "def_pre" +.PD 0 +.IP "def_post" 8 +.IX Item "def_post" +.PD +Equivalents of \fIpre\fR and \fIpost\fR for the default value. +.IP "utf8" 8 +.IX Item "utf8" +Generated internally. Is zero or undefined if name is 7 bit \s-1ASCII,\s0 +\&\*(L"no\*(R" if the name is 8 bit (and so should only match if \fBSvUTF8()\fR is false), +\&\*(L"yes\*(R" if the name is utf8 encoded. +.Sp +The internals automatically clone any name with characters 128\-255 but none +256+ (ie one that could be either in bytes or utf8) into a second entry +which is utf8 encoded. +.IP "weight" 8 +.IX Item "weight" +Optional sorting weight for names, to determine the order of +linear testing when multiple names fall in the same case of a switch clause. +Higher comes earlier, undefined defaults to zero. +.RE +.RS 4 +.Sp +In the argument hashref, \fIpackage\fR is the name of the package, and is only +used in comments inside the generated C code. \fIsubname\fR defaults to +\&\f(CW\*(C`constant\*(C'\fR if undefined. +.Sp +\&\fIdefault_type\fR is the type returned by \f(CW\*(C`ITEM\*(C'\fRs that don't specify their +type. It defaults to the value of \f(CW\*(C`default_type()\*(C'\fR. \fItypes\fR should be given +either as a comma separated list of types that the C subroutine \fIsubname\fR +will generate or as a reference to a hash. \fIdefault_type\fR will be added to +the list if not present, as will any types given in the list of \fI\s-1ITEM\s0\fRs. The +resultant list should be the same list of types that \f(CW\*(C`XS_constant\*(C'\fR is +given. [Otherwise \f(CW\*(C`XS_constant\*(C'\fR and \f(CW\*(C`C_constant\*(C'\fR may differ in the number of +parameters to the constant function. \fIindent\fR is currently unused and +ignored. In future it may be used to pass in information used to change the C +indentation style used.] The best way to maintain consistency is to pass in a +hash reference and let this function update it. +.Sp +\&\fIbreakout\fR governs when child functions of \fIsubname\fR are generated. If there +are \fIbreakout\fR or more \fI\s-1ITEM\s0\fRs with the same length of name, then the code +to switch between them is placed into a function named \fIsubname\fR_\fIlen\fR, for +example \f(CW\*(C`constant_5\*(C'\fR for names 5 characters long. The default \fIbreakout\fR is +3. A single \f(CW\*(C`ITEM\*(C'\fR is always inlined. +.RE +.SH "BUGS" +.IX Header "BUGS" +Not everything is documented yet. +.PP +Probably others. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nicholas Clark based on the code in \f(CW\*(C`h2xs\*(C'\fR by Larry Wall and +others diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AUtils.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AUtils.3 new file mode 100644 index 0000000000000000000000000000000000000000..a245c4adeaffdb0af0b972fcd4d88d762e15c801 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AUtils.3 @@ -0,0 +1,168 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Constant::Utils 3" +.TH ExtUtils::Constant::Utils 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Constant::Utils \- helper functions for ExtUtils::Constant +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use ExtUtils::Constant::Utils qw (C_stringify); +\& $C_code = C_stringify $stuff; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Constant::Utils packages up utility subroutines used by +ExtUtils::Constant, ExtUtils::Constant::Base and derived classes. All its +functions are explicitly exportable. +.SH "USAGE" +.IX Header "USAGE" +.IP "C_stringify \s-1NAME\s0" 4 +.IX Item "C_stringify NAME" +A function which returns a 7 bit \s-1ASCII\s0 correctly \e escaped version of the +string passed suitable for C's "" or ''. It will die if passed Unicode +characters. +.IP "perl_stringify \s-1NAME\s0" 4 +.IX Item "perl_stringify NAME" +A function which returns a 7 bit \s-1ASCII\s0 correctly \e escaped version of the +string passed suitable for a perl "" string. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nicholas Clark based on the code in \f(CW\*(C`h2xs\*(C'\fR by Larry Wall and +others diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AXS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AXS.3 new file mode 100644 index 0000000000000000000000000000000000000000..f57c7cacc11c199a0c02705fda3b8e68256eb3f8 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant%3A%3AXS.3 @@ -0,0 +1,160 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Constant::XS 3" +.TH ExtUtils::Constant::XS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Constant::XS \- generate C code for XS modules' constants. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require ExtUtils::Constant::XS; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Constant::XS overrides ExtUtils::Constant::Base to generate C +code for \s-1XS\s0 modules' constants. +.SH "BUGS" +.IX Header "BUGS" +Nothing is documented. +.PP +Probably others. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nicholas Clark based on the code in \f(CW\*(C`h2xs\*(C'\fR by Larry Wall and +others diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AConstant.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant.3 new file mode 100644 index 0000000000000000000000000000000000000000..d15a767ccbbdda05b3c3c7bc85d030e3af82d479 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AConstant.3 @@ -0,0 +1,312 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Constant 3" +.TH ExtUtils::Constant 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Constant \- generate XS code to import C header constants +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& use ExtUtils::Constant qw (WriteConstants); +\& WriteConstants( +\& NAME => \*(AqFoo\*(Aq, +\& NAMES => [qw(FOO BAR BAZ)], +\& ); +\& # Generates wrapper code to make the values of the constants FOO BAR BAZ +\& # available to perl +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Constant facilitates generating C and \s-1XS\s0 wrapper code to allow +perl modules to \s-1AUTOLOAD\s0 constants defined in C library header files. +It is principally used by the \f(CW\*(C`h2xs\*(C'\fR utility, on which this code is based. +It doesn't contain the routines to scan header files to extract these +constants. +.SH "USAGE" +.IX Header "USAGE" +Generally one only needs to call the \f(CW\*(C`WriteConstants\*(C'\fR function, and then +.PP +.Vb 1 +\& #include "const\-c.inc" +.Ve +.PP +in the C section of \f(CW\*(C`Foo.xs\*(C'\fR +.PP +.Vb 1 +\& INCLUDE: const\-xs.inc +.Ve +.PP +in the \s-1XS\s0 section of \f(CW\*(C`Foo.xs\*(C'\fR. +.PP +For greater flexibility use \f(CW\*(C`constant_types()\*(C'\fR, \f(CW\*(C`C_constant\*(C'\fR and +\&\f(CW\*(C`XS_constant\*(C'\fR, with which \f(CW\*(C`WriteConstants\*(C'\fR is implemented. +.PP +Currently this module understands the following types. h2xs may only know +a subset. The sizes of the numeric types are chosen by the \f(CW\*(C`Configure\*(C'\fR +script at compile time. +.IP "\s-1IV\s0" 4 +.IX Item "IV" +signed integer, at least 32 bits. +.IP "\s-1UV\s0" 4 +.IX Item "UV" +unsigned integer, the same size as \fI\s-1IV\s0\fR +.IP "\s-1NV\s0" 4 +.IX Item "NV" +floating point type, probably \f(CW\*(C`double\*(C'\fR, possibly \f(CW\*(C`long double\*(C'\fR +.IP "\s-1PV\s0" 4 +.IX Item "PV" +\&\s-1NUL\s0 terminated string, length will be determined with \f(CW\*(C`strlen\*(C'\fR +.IP "\s-1PVN\s0" 4 +.IX Item "PVN" +A fixed length thing, given as a [pointer, length] pair. If you know the +length of a string at compile time you may use this instead of \fI\s-1PV\s0\fR +.IP "\s-1SV\s0" 4 +.IX Item "SV" +A \fBmortal\fR \s-1SV.\s0 +.IP "\s-1YES\s0" 4 +.IX Item "YES" +Truth. (\f(CW\*(C`PL_sv_yes\*(C'\fR) The value is not needed (and ignored). +.IP "\s-1NO\s0" 4 +.IX Item "NO" +Defined Falsehood. (\f(CW\*(C`PL_sv_no\*(C'\fR) The value is not needed (and ignored). +.IP "\s-1UNDEF\s0" 4 +.IX Item "UNDEF" +\&\f(CW\*(C`undef\*(C'\fR. The value of the macro is not needed. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "constant_types" 4 +.IX Item "constant_types" +A function returning a single scalar with \f(CW\*(C`#define\*(C'\fR definitions for the +constants used internally between the generated C and \s-1XS\s0 functions. +.IP "XS_constant \s-1PACKAGE, TYPES, XS_SUBNAME, C_SUBNAME\s0" 4 +.IX Item "XS_constant PACKAGE, TYPES, XS_SUBNAME, C_SUBNAME" +A function to generate the \s-1XS\s0 code to implement the perl subroutine +\&\fI\s-1PACKAGE\s0\fR::constant used by \fI\s-1PACKAGE\s0\fR::AUTOLOAD to load constants. +This \s-1XS\s0 code is a wrapper around a C subroutine usually generated by +\&\f(CW\*(C`C_constant\*(C'\fR, and usually named \f(CW\*(C`constant\*(C'\fR. +.Sp +\&\fI\s-1TYPES\s0\fR should be given either as a comma separated list of types that the +C subroutine \f(CW\*(C`constant\*(C'\fR will generate or as a reference to a hash. It should +be the same list of types as \f(CW\*(C`C_constant\*(C'\fR was given. +[Otherwise \f(CW\*(C`XS_constant\*(C'\fR and \f(CW\*(C`C_constant\*(C'\fR may have different ideas about +the number of parameters passed to the C function \f(CW\*(C`constant\*(C'\fR] +.Sp +You can call the perl visible subroutine something other than \f(CW\*(C`constant\*(C'\fR if +you give the parameter \fI\s-1XS_SUBNAME\s0\fR. The C subroutine it calls defaults to +the name of the perl visible subroutine, unless you give the parameter +\&\fIC_SUBNAME\fR. +.IP "autoload \s-1PACKAGE, VERSION, AUTOLOADER\s0" 4 +.IX Item "autoload PACKAGE, VERSION, AUTOLOADER" +A function to generate the \s-1AUTOLOAD\s0 subroutine for the module \fI\s-1PACKAGE\s0\fR +\&\fI\s-1VERSION\s0\fR is the perl version the code should be backwards compatible with. +It defaults to the version of perl running the subroutine. If \fI\s-1AUTOLOADER\s0\fR +is true, the \s-1AUTOLOAD\s0 subroutine falls back on AutoLoader::AUTOLOAD for all +names that the \fBconstant()\fR routine doesn't recognise. +.IP "WriteMakefileSnippet" 4 +.IX Item "WriteMakefileSnippet" +WriteMakefileSnippet \s-1ATTRIBUTE\s0 => \s-1VALUE\s0 [, ...] +.Sp +A function to generate perl code for Makefile.PL that will regenerate +the constant subroutines. Parameters are named as passed to \f(CW\*(C`WriteConstants\*(C'\fR, +with the addition of \f(CW\*(C`INDENT\*(C'\fR to specify the number of leading spaces +(default 2). +.Sp +Currently only \f(CW\*(C`INDENT\*(C'\fR, \f(CW\*(C`NAME\*(C'\fR, \f(CW\*(C`DEFAULT_TYPE\*(C'\fR, \f(CW\*(C`NAMES\*(C'\fR, \f(CW\*(C`C_FILE\*(C'\fR and +\&\f(CW\*(C`XS_FILE\*(C'\fR are recognised. +.IP "WriteConstants \s-1ATTRIBUTE\s0 => \s-1VALUE\s0 [, ...]" 4 +.IX Item "WriteConstants ATTRIBUTE => VALUE [, ...]" +Writes a file of C code and a file of \s-1XS\s0 code which you should \f(CW\*(C`#include\*(C'\fR +and \f(CW\*(C`INCLUDE\*(C'\fR in the C and \s-1XS\s0 sections respectively of your module's \s-1XS\s0 +code. You probably want to do this in your \f(CW\*(C`Makefile.PL\*(C'\fR, so that you can +easily edit the list of constants without touching the rest of your module. +The attributes supported are +.RS 4 +.IP "\s-1NAME\s0" 4 +.IX Item "NAME" +Name of the module. This must be specified +.IP "\s-1DEFAULT_TYPE\s0" 4 +.IX Item "DEFAULT_TYPE" +The default type for the constants. If not specified \f(CW\*(C`IV\*(C'\fR is assumed. +.IP "\s-1BREAKOUT_AT\s0" 4 +.IX Item "BREAKOUT_AT" +The names of the constants are grouped by length. Generate child subroutines +for each group with this number or more names in. +.IP "\s-1NAMES\s0" 4 +.IX Item "NAMES" +An array of constants' names, either scalars containing names, or hashrefs +as detailed in \*(L"C_constant\*(R". +.IP "\s-1PROXYSUBS\s0" 4 +.IX Item "PROXYSUBS" +If true, uses proxy subs. See ExtUtils::Constant::ProxySubs. +.IP "C_FH" 4 +.IX Item "C_FH" +A filehandle to write the C code to. If not given, then \fIC_FILE\fR is opened +for writing. +.IP "C_FILE" 4 +.IX Item "C_FILE" +The name of the file to write containing the C code. The default is +\&\f(CW\*(C`const\-c.inc\*(C'\fR. The \f(CW\*(C`\-\*(C'\fR in the name ensures that the file can't be +mistaken for anything related to a legitimate perl package name, and +not naming the file \f(CW\*(C`.c\*(C'\fR avoids having to override Makefile.PL's +\&\f(CW\*(C`.xs\*(C'\fR to \f(CW\*(C`.c\*(C'\fR rules. +.IP "\s-1XS_FH\s0" 4 +.IX Item "XS_FH" +A filehandle to write the \s-1XS\s0 code to. If not given, then \fI\s-1XS_FILE\s0\fR is opened +for writing. +.IP "\s-1XS_FILE\s0" 4 +.IX Item "XS_FILE" +The name of the file to write containing the \s-1XS\s0 code. The default is +\&\f(CW\*(C`const\-xs.inc\*(C'\fR. +.IP "\s-1XS_SUBNAME\s0" 4 +.IX Item "XS_SUBNAME" +The perl visible name of the \s-1XS\s0 subroutine generated which will return the +constants. The default is \f(CW\*(C`constant\*(C'\fR. +.IP "C_SUBNAME" 4 +.IX Item "C_SUBNAME" +The name of the C subroutine generated which will return the constants. +The default is \fI\s-1XS_SUBNAME\s0\fR. Child subroutines have \f(CW\*(C`_\*(C'\fR and the name +length appended, so constants with 10 character names would be in +\&\f(CW\*(C`constant_10\*(C'\fR with the default \fI\s-1XS_SUBNAME\s0\fR. +.RE +.RS 4 +.RE +.SH "AUTHOR" +.IX Header "AUTHOR" +Nicholas Clark based on the code in \f(CW\*(C`h2xs\*(C'\fR by Larry Wall and +others diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AEmbed.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AEmbed.3 new file mode 100644 index 0000000000000000000000000000000000000000..e4f9eb64cd868043bb1a4075a666c1bdb0f50d2b --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AEmbed.3 @@ -0,0 +1,351 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Embed 3" +.TH ExtUtils::Embed 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Embed \- Utilities for embedding Perl in C/C++ applications +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MExtUtils::Embed \-e xsinit +\& perl \-MExtUtils::Embed \-e ccopts +\& perl \-MExtUtils::Embed \-e ldopts +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`ExtUtils::Embed\*(C'\fR provides utility functions for embedding a Perl interpreter +and extensions in your C/\*(C+ applications. +Typically, an application \fIMakefile\fR will invoke \f(CW\*(C`ExtUtils::Embed\*(C'\fR +functions while building your application. +.ie n .SH "@EXPORT" +.el .SH "\f(CW@EXPORT\fP" +.IX Header "@EXPORT" +\&\f(CW\*(C`ExtUtils::Embed\*(C'\fR exports the following functions: +.PP +\&\fBxsinit()\fR, \fBldopts()\fR, \fBccopts()\fR, \fBperl_inc()\fR, \fBccflags()\fR, +\&\fBccdlflags()\fR, \fBxsi_header()\fR, \fBxsi_protos()\fR, \fBxsi_body()\fR +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "\fBxsinit()\fR" 4 +.IX Item "xsinit()" +Generate C/\*(C+ code for the \s-1XS\s0 initializer function. +.Sp +When invoked as \f(CW\*(C`\`perl \-MExtUtils::Embed \-e xsinit \-\-\`\*(C'\fR +the following options are recognized: +.Sp +\&\fB\-o\fR (Defaults to \fBperlxsi.c\fR) +.Sp +\&\fB\-o \s-1STDOUT\s0\fR will print to \s-1STDOUT.\s0 +.Sp +\&\fB\-std\fR (Write code for extensions that are linked with the current Perl.) +.Sp +Any additional arguments are expected to be names of modules +to generate code for. +.Sp +When invoked with parameters the following are accepted and optional: +.Sp +\&\f(CW\*(C`xsinit($filename,$std,[@modules])\*(C'\fR +.Sp +Where, +.Sp +\&\fB\f(CB$filename\fB\fR is equivalent to the \fB\-o\fR option. +.Sp +\&\fB\f(CB$std\fB\fR is boolean, equivalent to the \fB\-std\fR option. +.Sp +\&\fB[@modules]\fR is an array ref, same as additional arguments mentioned above. +.IP "Examples" 4 +.IX Item "Examples" +.Vb 1 +\& perl \-MExtUtils::Embed \-e xsinit \-\- \-o xsinit.c Socket +.Ve +.Sp +This will generate code with an \f(CW\*(C`xs_init\*(C'\fR function that glues the perl \f(CW\*(C`Socket::bootstrap\*(C'\fR function +to the C \f(CW\*(C`boot_Socket\*(C'\fR function and writes it to a file named \fIxsinit.c\fR. +.Sp +Note that DynaLoader is a special case where it must call \f(CW\*(C`boot_DynaLoader\*(C'\fR directly. +.Sp +.Vb 1 +\& perl \-MExtUtils::Embed \-e xsinit +.Ve +.Sp +This will generate code for linking with \f(CW\*(C`DynaLoader\*(C'\fR and +each static extension found in \f(CW$Config{static_ext}\fR. +The code is written to the default file name \fIperlxsi.c\fR. +.Sp +.Vb 2 +\& perl \-MExtUtils::Embed \-e xsinit \-\- \-o xsinit.c \e +\& \-std DBI DBD::Oracle +.Ve +.Sp +Here, code is written for all the currently linked extensions along with code +for \f(CW\*(C`DBI\*(C'\fR and \f(CW\*(C`DBD::Oracle\*(C'\fR. +.Sp +If you have a working \f(CW\*(C`DynaLoader\*(C'\fR then there is rarely any need to statically link in any +other extensions. +.IP "\fBldopts()\fR" 4 +.IX Item "ldopts()" +Output arguments for linking the Perl library and extensions to your +application. +.Sp +When invoked as \f(CW\*(C`\`perl \-MExtUtils::Embed \-e ldopts \-\-\`\*(C'\fR +the following options are recognized: +.Sp +\&\fB\-std\fR +.Sp +Output arguments for linking the Perl library and any extensions linked +with the current Perl. +.Sp +\&\fB\-I\fR +.Sp +Search path for ModuleName.a archives. +Default path is \f(CW@INC\fR. +Library archives are expected to be found as +\&\fI/some/path/auto/ModuleName/ModuleName.a\fR +For example, when looking for \fISocket.a\fR relative to a search path, +we should find \fIauto/Socket/Socket.a\fR +.Sp +When looking for \f(CW\*(C`DBD::Oracle\*(C'\fR relative to a search path, +we should find \fIauto/DBD/Oracle/Oracle.a\fR +.Sp +Keep in mind that you can always supply \fI/my/own/path/ModuleName.a\fR +as an additional linker argument. +.Sp +\&\fB\-\-\fR +.Sp +Additional linker arguments to be considered. +.Sp +Any additional arguments found before the \fB\-\-\fR token +are expected to be names of modules to generate code for. +.Sp +When invoked with parameters the following are accepted and optional: +.Sp +\&\f(CW\*(C`ldopts($std,[@modules],[@link_args],$path)\*(C'\fR +.Sp +Where: +.Sp +\&\fB\f(CB$std\fB\fR is boolean, equivalent to the \fB\-std\fR option. +.Sp +\&\fB[@modules]\fR is equivalent to additional arguments found before the \fB\-\-\fR token. +.Sp +\&\fB[@link_args]\fR is equivalent to arguments found after the \fB\-\-\fR token. +.Sp +\&\fB\f(CB$path\fB\fR is equivalent to the \fB\-I\fR option. +.Sp +In addition, when ldopts is called with parameters, it will return the argument string +rather than print it to \s-1STDOUT.\s0 +.IP "Examples" 4 +.IX Item "Examples" +.Vb 1 +\& perl \-MExtUtils::Embed \-e ldopts +.Ve +.Sp +This will print arguments for linking with \f(CW\*(C`libperl\*(C'\fR and +extensions found in \f(CW$Config{static_ext}\fR. This includes libraries +found in \f(CW$Config{libs}\fR and the first ModuleName.a library +for each extension that is found by searching \f(CW@INC\fR or the path +specified by the \fB\-I\fR option. +In addition, when ModuleName.a is found, additional linker arguments +are picked up from the \fIextralibs.ld\fR file in the same directory. +.Sp +.Vb 1 +\& perl \-MExtUtils::Embed \-e ldopts \-\- \-std Socket +.Ve +.Sp +This will do the same as the above example, along with printing additional +arguments for linking with the \f(CW\*(C`Socket\*(C'\fR extension. +.Sp +.Vb 2 +\& perl \-MExtUtils::Embed \-e ldopts \-\- \-std Msql \-\- \e +\& \-L/usr/msql/lib \-lmsql +.Ve +.Sp +Any arguments after the second '\-\-' token are additional linker +arguments that will be examined for potential conflict. If there is no +conflict, the additional arguments will be part of the output. +.IP "\fBperl_inc()\fR" 4 +.IX Item "perl_inc()" +For including perl header files this function simply prints: +.Sp +.Vb 1 +\& \-I$Config{archlibexp}/CORE +.Ve +.Sp +So, rather than having to say: +.Sp +.Vb 1 +\& perl \-MConfig \-e \*(Aqprint "\-I$Config{archlibexp}/CORE"\*(Aq +.Ve +.Sp +Just say: +.Sp +.Vb 1 +\& perl \-MExtUtils::Embed \-e perl_inc +.Ve +.IP "\fBccflags()\fR, \fBccdlflags()\fR" 4 +.IX Item "ccflags(), ccdlflags()" +These functions simply print \f(CW$Config\fR{ccflags} and \f(CW$Config\fR{ccdlflags} +.IP "\fBccopts()\fR" 4 +.IX Item "ccopts()" +This function combines \f(CW\*(C`perl_inc()\*(C'\fR, \f(CW\*(C`ccflags()\*(C'\fR and \f(CW\*(C`ccdlflags()\*(C'\fR into one. +.IP "\fBxsi_header()\fR" 4 +.IX Item "xsi_header()" +This function simply returns a string defining the same \f(CW\*(C`EXTERN_C\*(C'\fR macro as +\&\fIperlmain.c\fR along with #including \fIperl.h\fR and \fI\s-1EXTERN\s0.h\fR. +.IP "xsi_protos(@modules)" 4 +.IX Item "xsi_protos(@modules)" +This function returns a string of \f(CW\*(C`boot_$ModuleName\*(C'\fR prototypes for each \f(CW@modules\fR. +.IP "xsi_body(@modules)" 4 +.IX Item "xsi_body(@modules)" +This function returns a string of calls to \f(CW\*(C`newXS()\*(C'\fR that glue the module \fIbootstrap\fR +function to \fIboot_ModuleName\fR for each \f(CW@modules\fR. +.Sp +\&\f(CW\*(C`xsinit()\*(C'\fR uses the xsi_* functions to generate most of its code. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +For examples on how to use \f(CW\*(C`ExtUtils::Embed\*(C'\fR for building C/\*(C+ applications +with embedded perl, see perlembed. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlembed +.SH "AUTHOR" +.IX Header "AUTHOR" +Doug MacEachern <\f(CW\*(C`dougm@osf.org\*(C'\fR> +.PP +Based on ideas from Tim Bunce <\f(CW\*(C`Tim.Bunce@ig.co.uk\*(C'\fR> and +\&\fIminimod.pl\fR by Andreas Koenig <\f(CW\*(C`k@anna.in\-berlin.de\*(C'\fR> and Tim Bunce. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AInstall.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AInstall.3 new file mode 100644 index 0000000000000000000000000000000000000000..ba790ada2163942e8ebfd85a78bead43407f60b4 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AInstall.3 @@ -0,0 +1,389 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Install 3" +.TH ExtUtils::Install 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Install \- install files from here to there +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::Install; +\& +\& install({ \*(Aqblib/lib\*(Aq => \*(Aqsome/install/dir\*(Aq } ); +\& +\& uninstall($packlist); +\& +\& pm_to_blib({ \*(Aqlib/Foo/Bar.pm\*(Aq => \*(Aqblib/lib/Foo/Bar.pm\*(Aq }); +.Ve +.SH "VERSION" +.IX Header "VERSION" +2.14 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Handles the installing and uninstalling of perl modules, scripts, man +pages, etc... +.PP +Both \fBinstall()\fR and \fBuninstall()\fR are specific to the way +ExtUtils::MakeMaker handles the installation and deinstallation of +perl modules. They are not designed as general purpose tools. +.PP +On some operating systems such as Win32 installation may not be possible +until after a reboot has occurred. This can have varying consequences: +removing an old \s-1DLL\s0 does not impact programs using the new one, but if +a new \s-1DLL\s0 cannot be installed properly until reboot then anything +depending on it must wait. The package variable +.PP +.Vb 1 +\& $ExtUtils::Install::MUST_REBOOT +.Ve +.PP +is used to store this status. +.PP +If this variable is true then such an operation has occurred and +anything depending on this module cannot proceed until a reboot +has occurred. +.PP +If this value is defined but false then such an operation has +ocurred, but should not impact later operations. +.SS "Functions" +.IX Subsection "Functions" +.IP "\fBinstall\fR" 4 +.IX Item "install" +.Vb 4 +\& # deprecated forms +\& install(\e%from_to); +\& install(\e%from_to, $verbose, $dry_run, $uninstall_shadows, +\& $skip, $always_copy, \e%result); +\& +\& # recommended form as of 1.47 +\& install([ +\& from_to => \e%from_to, +\& verbose => 1, +\& dry_run => 0, +\& uninstall_shadows => 1, +\& skip => undef, +\& always_copy => 1, +\& result => \e%install_results, +\& ]); +.Ve +.Sp +Copies each directory tree of \f(CW%from_to\fR to its corresponding value +preserving timestamps and permissions. +.Sp +There are two keys with a special meaning in the hash: \*(L"read\*(R" and +\&\*(L"write\*(R". These contain packlist files. After the copying is done, +\&\fBinstall()\fR will write the list of target files to \f(CW$from_to\fR{write}. If +\&\f(CW$from_to\fR{read} is given the contents of this file will be merged into +the written file. The read and the written file may be identical, but +on \s-1AFS\s0 it is quite likely that people are installing to a different +directory than the one where the files later appear. +.Sp +If \f(CW$verbose\fR is true, will print out each file removed. Default is +false. This is \*(L"make install VERBINST=1\*(R". \f(CW$verbose\fR values going +up to 5 show increasingly more diagnostics output. +.Sp +If \f(CW$dry_run\fR is true it will only print what it was going to do +without actually doing it. Default is false. +.Sp +If \f(CW$uninstall_shadows\fR is true any differing versions throughout \f(CW@INC\fR +will be uninstalled. This is \*(L"make install UNINST=1\*(R" +.Sp +As of 1.37_02 \fBinstall()\fR supports the use of a list of patterns to filter out +files that shouldn't be installed. If \f(CW$skip\fR is omitted or undefined then +install will try to read the list from \s-1INSTALL.SKIP\s0 in the \s-1CWD.\s0 This file is +a list of regular expressions and is just like the \s-1MANIFEST.SKIP\s0 file used +by ExtUtils::Manifest. +.Sp +A default site \s-1INSTALL.SKIP\s0 may be provided by setting then environment +variable \s-1EU_INSTALL_SITE_SKIPFILE,\s0 this will only be used when there isn't a +distribution specific \s-1INSTALL.SKIP.\s0 If the environment variable +\&\s-1EU_INSTALL_IGNORE_SKIP\s0 is true then no install file filtering will be +performed. +.Sp +If \f(CW$skip\fR is undefined then the skip file will be autodetected and used if it +is found. If \f(CW$skip\fR is a reference to an array then it is assumed the array +contains the list of patterns, if \f(CW$skip\fR is a true non reference it is +assumed to be the filename holding the list of patterns, any other value of +\&\f(CW$skip\fR is taken to mean that no install filtering should occur. +.Sp +\&\fBChanges As of Version 1.47\fR +.Sp +As of version 1.47 the following additions were made to the install interface. +Note that the new argument style and use of the \f(CW%result\fR hash is recommended. +.Sp +The \f(CW$always_copy\fR parameter which when true causes files to be updated +regardless as to whether they have changed, if it is defined but false then +copies are made only if the files have changed, if it is undefined then the +value of the environment variable \s-1EU_INSTALL_ALWAYS_COPY\s0 is used as default. +.Sp +The \f(CW%result\fR hash will be populated with the various keys/subhashes reflecting +the install. Currently these keys and their structure are: +.Sp +.Vb 3 +\& install => { $target => $source }, +\& install_fail => { $target => $source }, +\& install_unchanged => { $target => $source }, +\& +\& install_filtered => { $source => $pattern }, +\& +\& uninstall => { $uninstalled => $source }, +\& uninstall_fail => { $uninstalled => $source }, +.Ve +.Sp +where \f(CW$source\fR is the filespec of the file being installed. \f(CW$target\fR is where +it is being installed to, and \f(CW$uninstalled\fR is any shadow file that is in \f(CW@INC\fR +or \f(CW$ENV{PERL5LIB}\fR or other standard locations, and \f(CW$pattern\fR is the pattern that +caused a source file to be skipped. In future more keys will be added, such as to +show created directories, however this requires changes in other modules and must +therefore wait. +.Sp +These keys will be populated before any exceptions are thrown should there be an +error. +.Sp +Note that all updates of the \f(CW%result\fR are additive, the hash will not be +cleared before use, thus allowing status results of many installs to be easily +aggregated. +.Sp +\&\fB\s-1NEW ARGUMENT STYLE\s0\fR +.Sp +If there is only one argument and it is a reference to an array then +the array is assumed to contain a list of key-value pairs specifying +the options. In this case the option \*(L"from_to\*(R" is mandatory. This style +means that you do not have to supply a cryptic list of arguments and can +use a self documenting argument list that is easier to understand. +.Sp +This is now the recommended interface to \fBinstall()\fR. +.Sp +\&\fB\s-1RETURN\s0\fR +.Sp +If all actions were successful install will return a hashref of the results +as described above for the \f(CW$result\fR parameter. If any action is a failure +then install will die, therefore it is recommended to pass in the \f(CW$result\fR +parameter instead of using the return value. If the result parameter is +provided then the returned hashref will be the passed in hashref. +.IP "\fBinstall_default\fR \fI\s-1DISCOURAGED\s0\fR" 4 +.IX Item "install_default DISCOURAGED" +.Vb 2 +\& install_default(); +\& install_default($fullext); +.Ve +.Sp +Calls \fBinstall()\fR with arguments to copy a module from blib/ to the +default site installation location. +.Sp +\&\f(CW$fullext\fR is the name of the module converted to a directory +(ie. Foo::Bar would be Foo/Bar). If \f(CW$fullext\fR is not specified, it +will attempt to read it from \f(CW@ARGV\fR. +.Sp +This is primarily useful for install scripts. +.Sp +\&\fB\s-1NOTE\s0\fR This function is not really useful because of the hard-coded +install location with no way to control site vs core vs vendor +directories and the strange way in which the module name is given. +Consider its use discouraged. +.IP "\fBuninstall\fR" 4 +.IX Item "uninstall" +.Vb 2 +\& uninstall($packlist_file); +\& uninstall($packlist_file, $verbose, $dont_execute); +.Ve +.Sp +Removes the files listed in a \f(CW$packlist_file\fR. +.Sp +If \f(CW$verbose\fR is true, will print out each file removed. Default is +false. +.Sp +If \f(CW$dont_execute\fR is true it will only print what it was going to do +without actually doing it. Default is false. +.IP "\fBpm_to_blib\fR" 4 +.IX Item "pm_to_blib" +.Vb 3 +\& pm_to_blib(\e%from_to); +\& pm_to_blib(\e%from_to, $autosplit_dir); +\& pm_to_blib(\e%from_to, $autosplit_dir, $filter_cmd); +.Ve +.Sp +Copies each key of \f(CW%from_to\fR to its corresponding value efficiently. +If an \f(CW$autosplit_dir\fR is provided, all .pm files will be autosplit into it. +Any destination directories are created. +.Sp +\&\f(CW$filter_cmd\fR is an optional shell command to run each .pm file through +prior to splitting and copying. Input is the contents of the module, +output the new module contents. +.Sp +You can have an environment variable \s-1PERL_INSTALL_ROOT\s0 set which will +be prepended as a directory to each installed file (and directory). +.Sp +By default verbose output is generated, setting the \s-1PERL_INSTALL_QUIET\s0 +environment variable will silence this output. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.IP "\fB\s-1PERL_INSTALL_ROOT\s0\fR" 4 +.IX Item "PERL_INSTALL_ROOT" +Will be prepended to each install path. +.IP "\fB\s-1EU_INSTALL_IGNORE_SKIP\s0\fR" 4 +.IX Item "EU_INSTALL_IGNORE_SKIP" +Will prevent the automatic use of \s-1INSTALL.SKIP\s0 as the install skip file. +.IP "\fB\s-1EU_INSTALL_SITE_SKIPFILE\s0\fR" 4 +.IX Item "EU_INSTALL_SITE_SKIPFILE" +If there is no \s-1INSTALL.SKIP\s0 file in the make directory then this value +can be used to provide a default. +.IP "\fB\s-1EU_INSTALL_ALWAYS_COPY\s0\fR" 4 +.IX Item "EU_INSTALL_ALWAYS_COPY" +If this environment variable is true then normal install processes will +always overwrite older identical files during the install process. +.Sp +Note that the alias \s-1EU_ALWAYS_COPY\s0 will be supported if \s-1EU_INSTALL_ALWAYS_COPY\s0 +is not defined until at least the 1.50 release. Please ensure you use the +correct \s-1EU_INSTALL_ALWAYS_COPY.\s0 +.SH "AUTHOR" +.IX Header "AUTHOR" +Original author lost in the mists of time. Probably the same as Makemaker. +.PP +Production release currently maintained by demerphq \f(CW\*(C`yves at cpan.org\*(C'\fR, +extensive changes by Michael G. Schwern. +.PP +Send bug reports via http://rt.cpan.org/. Please send your +generated Makefile along with your report. +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AInstalled.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AInstalled.3 new file mode 100644 index 0000000000000000000000000000000000000000..5f2c60cc1aa6c4712471fee771da4daecea39d71 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AInstalled.3 @@ -0,0 +1,273 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Installed 3" +.TH ExtUtils::Installed 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Installed \- Inventory management of installed modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 9 +\& use ExtUtils::Installed; +\& my ($inst) = ExtUtils::Installed\->new( skip_cwd => 1 ); +\& my (@modules) = $inst\->modules(); +\& my (@missing) = $inst\->validate("DBI"); +\& my $all_files = $inst\->files("DBI"); +\& my $files_below_usr_local = $inst\->files("DBI", "all", "/usr/local"); +\& my $all_dirs = $inst\->directories("DBI"); +\& my $dirs_below_usr_local = $inst\->directory_tree("DBI", "prog"); +\& my $packlist = $inst\->packlist("DBI"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Installed provides a standard way to find out what core and module +files have been installed. It uses the information stored in .packlist files +created during installation to provide this information. In addition it +provides facilities to classify the installed files and to extract directory +information from the .packlist files. +.SH "USAGE" +.IX Header "USAGE" +The \fBnew()\fR function searches for all the installed .packlists on the system, and +stores their contents. The .packlists can be queried with the functions +described below. Where it searches by default is determined by the settings found +in \f(CW%Config::Config\fR, and what the value is of the \s-1PERL5LIB\s0 environment variable. +.SH "METHODS" +.IX Header "METHODS" +Unless specified otherwise all method can be called as class methods, or as object +methods. If called as class methods then the \*(L"default\*(R" object will be used, and if +necessary created using the current processes \f(CW%Config\fR and \f(CW@INC\fR. See the +\&'default' option to \fBnew()\fR for details. +.IP "\fBnew()\fR" 4 +.IX Item "new()" +This takes optional named parameters. Without parameters, this +searches for all the installed .packlists on the system using +information from \f(CW%Config::Config\fR and the default module search +paths \f(CW@INC\fR. The packlists are read using the +ExtUtils::Packlist module. +.Sp +If the named parameter \f(CW\*(C`skip_cwd\*(C'\fR is true, the current directory \f(CW\*(C`.\*(C'\fR will +be stripped from \f(CW@INC\fR before searching for .packlists. This keeps +ExtUtils::Installed from finding modules installed in other perls that +happen to be located below the current directory. +.Sp +If the named parameter \f(CW\*(C`config_override\*(C'\fR is specified, +it should be a reference to a hash which contains all information +usually found in \f(CW%Config::Config\fR. For example, you can obtain +the configuration information for a separate perl installation and +pass that in. +.Sp +.Vb 3 +\& my $yoda_cfg = get_fake_config(\*(Aqyoda\*(Aq); +\& my $yoda_inst = +\& ExtUtils::Installed\->new(config_override=>$yoda_cfg); +.Ve +.Sp +Similarly, the parameter \f(CW\*(C`inc_override\*(C'\fR may be a reference to an +array which is used in place of the default module search paths +from \f(CW@INC\fR. +.Sp +.Vb 3 +\& use Config; +\& my @dirs = split(/\eQ$Config{path_sep}\eE/, $ENV{PERL5LIB}); +\& my $p5libs = ExtUtils::Installed\->new(inc_override=>\e@dirs); +.Ve +.Sp +\&\fBNote\fR: You probably do not want to use these options alone, almost always +you will want to set both together. +.Sp +The parameter \f(CW\*(C`extra_libs\*(C'\fR can be used to specify \fBadditional\fR paths to +search for installed modules. For instance +.Sp +.Vb 2 +\& my $installed = +\& ExtUtils::Installed\->new(extra_libs=>["/my/lib/path"]); +.Ve +.Sp +This should only be necessary if \fI/my/lib/path\fR is not in \s-1PERL5LIB.\s0 +.Sp +Finally there is the 'default', and the related 'default_get' and 'default_set' +options. These options control the \*(L"default\*(R" object which is provided by the +class interface to the methods. Setting \f(CW\*(C`default_get\*(C'\fR to true tells the constructor +to return the default object if it is defined. Setting \f(CW\*(C`default_set\*(C'\fR to true tells +the constructor to make the default object the constructed object. Setting the +\&\f(CW\*(C`default\*(C'\fR option is like setting both to true. This is used primarily internally +and probably isn't interesting to any real user. +.IP "\fBmodules()\fR" 4 +.IX Item "modules()" +This returns a list of the names of all the installed modules. The perl 'core' +is given the special name 'Perl'. +.IP "\fBfiles()\fR" 4 +.IX Item "files()" +This takes one mandatory parameter, the name of a module. It returns a list of +all the filenames from the package. To obtain a list of core perl files, use +the module name 'Perl'. Additional parameters are allowed. The first is one +of the strings \*(L"prog\*(R", \*(L"doc\*(R" or \*(L"all\*(R", to select either just program files, +just manual files or all files. The remaining parameters are a list of +directories. The filenames returned will be restricted to those under the +specified directories. +.IP "\fBdirectories()\fR" 4 +.IX Item "directories()" +This takes one mandatory parameter, the name of a module. It returns a list of +all the directories from the package. Additional parameters are allowed. The +first is one of the strings \*(L"prog\*(R", \*(L"doc\*(R" or \*(L"all\*(R", to select either just +program directories, just manual directories or all directories. The remaining +parameters are a list of directories. The directories returned will be +restricted to those under the specified directories. This method returns only +the leaf directories that contain files from the specified module. +.IP "\fBdirectory_tree()\fR" 4 +.IX Item "directory_tree()" +This is identical in operation to \fBdirectories()\fR, except that it includes all the +intermediate directories back up to the specified directories. +.IP "\fBvalidate()\fR" 4 +.IX Item "validate()" +This takes one mandatory parameter, the name of a module. It checks that all +the files listed in the modules .packlist actually exist, and returns a list of +any missing files. If an optional second argument which evaluates to true is +given any missing files will be removed from the .packlist +.IP "\fBpacklist()\fR" 4 +.IX Item "packlist()" +This returns the ExtUtils::Packlist object for the specified module. +.IP "\fBversion()\fR" 4 +.IX Item "version()" +This returns the version number for the specified module. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +See the example in ExtUtils::Packlist. +.SH "AUTHOR" +.IX Header "AUTHOR" +Alan Burlison diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ALiblist.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ALiblist.3 new file mode 100644 index 0000000000000000000000000000000000000000..2ba0bbb3be87544e92a87fc3ce4562ce8bb03da1 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ALiblist.3 @@ -0,0 +1,360 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Liblist 3" +.TH ExtUtils::Liblist 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Liblist \- determine libraries to use and how to use them +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require ExtUtils::Liblist; +\& +\& $MM\->ext($potential_libs, $verbose, $need_names); +\& +\& # Usually you can get away with: +\& ExtUtils::Liblist\->ext($potential_libs, $verbose, $need_names) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This utility takes a list of libraries in the form \f(CW\*(C`\-llib1 \-llib2 +\&\-llib3\*(C'\fR and returns lines suitable for inclusion in an extension +Makefile. Extra library paths may be included with the form +\&\f(CW\*(C`\-L/another/path\*(C'\fR this will affect the searches for all subsequent +libraries. +.PP +It returns an array of four or five scalar values: \s-1EXTRALIBS, +BSLOADLIBS, LDLOADLIBS, LD_RUN_PATH,\s0 and, optionally, a reference to +the array of the filenames of actual libraries. Some of these don't +mean anything unless on Unix. See the details about those platform +specifics below. The list of the filenames is returned only if +\&\f(CW$need_names\fR argument is true. +.PP +Dependent libraries can be linked in one of three ways: +.IP "\(bu" 2 +For static extensions +.Sp +by the ld command when the perl binary is linked with the extension +library. See \s-1EXTRALIBS\s0 below. +.IP "\(bu" 2 +For dynamic extensions at build/link time +.Sp +by the ld command when the shared object is built/linked. See +\&\s-1LDLOADLIBS\s0 below. +.IP "\(bu" 2 +For dynamic extensions at load time +.Sp +by the DynaLoader when the shared object is loaded. See \s-1BSLOADLIBS\s0 +below. +.SS "\s-1EXTRALIBS\s0" +.IX Subsection "EXTRALIBS" +List of libraries that need to be linked with when linking a perl +binary which includes this extension. Only those libraries that +actually exist are included. These are written to a file and used +when linking perl. +.SS "\s-1LDLOADLIBS\s0 and \s-1LD_RUN_PATH\s0" +.IX Subsection "LDLOADLIBS and LD_RUN_PATH" +List of those libraries which can or must be linked into the shared +library when created using ld. These may be static or dynamic +libraries. \s-1LD_RUN_PATH\s0 is a colon separated list of the directories +in \s-1LDLOADLIBS.\s0 It is passed as an environment variable to the process +that links the shared library. +.SS "\s-1BSLOADLIBS\s0" +.IX Subsection "BSLOADLIBS" +List of those libraries that are needed but can be linked in +dynamically at run time on this platform. SunOS/Solaris does not need +this because ld records the information (from \s-1LDLOADLIBS\s0) into the +object file. This list is used to create a .bs (bootstrap) file. +.SH "PORTABILITY" +.IX Header "PORTABILITY" +This module deals with a lot of system dependencies and has quite a +few architecture specific \f(CW\*(C`if\*(C'\fRs in the code. +.SS "\s-1VMS\s0 implementation" +.IX Subsection "VMS implementation" +The version of \fBext()\fR which is executed under \s-1VMS\s0 differs from the +Unix\-OS/2 version in several respects: +.IP "\(bu" 2 +Input library and path specifications are accepted with or without the +\&\f(CW\*(C`\-l\*(C'\fR and \f(CW\*(C`\-L\*(C'\fR prefixes used by Unix linkers. If neither prefix is +present, a token is considered a directory to search if it is in fact +a directory, and a library to search for otherwise. Authors who wish +their extensions to be portable to Unix or \s-1OS/2\s0 should use the Unix +prefixes, since the Unix\-OS/2 version of \fBext()\fR requires them. +.IP "\(bu" 2 +Wherever possible, shareable images are preferred to object libraries, +and object libraries to plain object files. In accordance with \s-1VMS\s0 +naming conventions, \fBext()\fR looks for files named \fIlib\fRshr and \fIlib\fRrtl; +it also looks for \fIlib\fRlib and lib\fIlib\fR to accommodate Unix conventions +used in some ported software. +.IP "\(bu" 2 +For each library that is found, an appropriate directive for a linker options +file is generated. The return values are space-separated strings of +these directives, rather than elements used on the linker command line. +.IP "\(bu" 2 +\&\s-1LDLOADLIBS\s0 contains both the libraries found based on \f(CW$potential_libs\fR and +the CRTLs, if any, specified in Config.pm. \s-1EXTRALIBS\s0 contains just those +libraries found based on \f(CW$potential_libs\fR. \s-1BSLOADLIBS\s0 and \s-1LD_RUN_PATH\s0 +are always empty. +.PP +In addition, an attempt is made to recognize several common Unix library +names, and filter them out or convert them to their \s-1VMS\s0 equivalents, as +appropriate. +.PP +In general, the \s-1VMS\s0 version of \fBext()\fR should properly handle input from +extensions originally designed for a Unix or \s-1VMS\s0 environment. If you +encounter problems, or discover cases where the search could be improved, +please let us know. +.SS "Win32 implementation" +.IX Subsection "Win32 implementation" +The version of \fBext()\fR which is executed under Win32 differs from the +Unix\-OS/2 version in several respects: +.IP "\(bu" 2 +If \f(CW$potential_libs\fR is empty, the return value will be empty. +Otherwise, the libraries specified by \f(CW$Config{perllibs}\fR (see Config.pm) +will be appended to the list of \f(CW$potential_libs\fR. The libraries +will be searched for in the directories specified in \f(CW$potential_libs\fR, +\&\f(CW$Config{libpth}\fR, and in \f(CW\*(C`$Config{installarchlib}/CORE\*(C'\fR. +For each library that is found, a space-separated list of fully qualified +library pathnames is generated. +.IP "\(bu" 2 +Input library and path specifications are accepted with or without the +\&\f(CW\*(C`\-l\*(C'\fR and \f(CW\*(C`\-L\*(C'\fR prefixes used by Unix linkers. +.Sp +An entry of the form \f(CW\*(C`\-La:\efoo\*(C'\fR specifies the \f(CW\*(C`a:\efoo\*(C'\fR directory to look +for the libraries that follow. +.Sp +An entry of the form \f(CW\*(C`\-lfoo\*(C'\fR specifies the library \f(CW\*(C`foo\*(C'\fR, which may be +spelled differently depending on what kind of compiler you are using. If +you are using \s-1GCC,\s0 it gets translated to \f(CW\*(C`libfoo.a\*(C'\fR, but for other win32 +compilers, it becomes \f(CW\*(C`foo.lib\*(C'\fR. If no files are found by those translated +names, one more attempt is made to find them using either \f(CW\*(C`foo.a\*(C'\fR or +\&\f(CW\*(C`libfoo.lib\*(C'\fR, depending on whether \s-1GCC\s0 or some other win32 compiler is +being used, respectively. +.Sp +If neither the \f(CW\*(C`\-L\*(C'\fR or \f(CW\*(C`\-l\*(C'\fR prefix is present in an entry, the entry is +considered a directory to search if it is in fact a directory, and a +library to search for otherwise. The \f(CW$Config{lib_ext}\fR suffix will +be appended to any entries that are not directories and don't already have +the suffix. +.Sp +Note that the \f(CW\*(C`\-L\*(C'\fR and \f(CW\*(C`\-l\*(C'\fR prefixes are \fBnot required\fR, but authors +who wish their extensions to be portable to Unix or \s-1OS/2\s0 should use the +prefixes, since the Unix\-OS/2 version of \fBext()\fR requires them. +.IP "\(bu" 2 +Entries cannot be plain object files, as many Win32 compilers will +not handle object files in the place of libraries. +.IP "\(bu" 2 +Entries in \f(CW$potential_libs\fR beginning with a colon and followed by +alphanumeric characters are treated as flags. Unknown flags will be ignored. +.Sp +An entry that matches \f(CW\*(C`/:nodefault/i\*(C'\fR disables the appending of default +libraries found in \f(CW$Config{perllibs}\fR (this should be only needed very rarely). +.Sp +An entry that matches \f(CW\*(C`/:nosearch/i\*(C'\fR disables all searching for +the libraries specified after it. Translation of \f(CW\*(C`\-Lfoo\*(C'\fR and +\&\f(CW\*(C`\-lfoo\*(C'\fR still happens as appropriate (depending on compiler being used, +as reflected by \f(CW$Config{cc}\fR), but the entries are not verified to be +valid files or directories. +.Sp +An entry that matches \f(CW\*(C`/:search/i\*(C'\fR reenables searching for +the libraries specified after it. You can put it at the end to +enable searching for default libraries specified by \f(CW$Config{perllibs}\fR. +.IP "\(bu" 2 +The libraries specified may be a mixture of static libraries and +import libraries (to link with DLLs). Since both kinds are used +pretty transparently on the Win32 platform, we do not attempt to +distinguish between them. +.IP "\(bu" 2 +\&\s-1LDLOADLIBS\s0 and \s-1EXTRALIBS\s0 are always identical under Win32, and \s-1BSLOADLIBS\s0 +and \s-1LD_RUN_PATH\s0 are always empty (this may change in future). +.IP "\(bu" 2 +You must make sure that any paths and path components are properly +surrounded with double-quotes if they contain spaces. For example, +\&\f(CW$potential_libs\fR could be (literally): +.Sp +.Vb 1 +\& "\-Lc:\eProgram Files\evc\elib" msvcrt.lib "la test\efoo bar.lib" +.Ve +.Sp +Note how the first and last entries are protected by quotes in order +to protect the spaces. +.IP "\(bu" 2 +Since this module is most often used only indirectly from extension +\&\f(CW\*(C`Makefile.PL\*(C'\fR files, here is an example \f(CW\*(C`Makefile.PL\*(C'\fR entry to add +a library to the build process for an extension: +.Sp +.Vb 1 +\& LIBS => [\*(Aq\-lgl\*(Aq] +.Ve +.Sp +When using \s-1GCC,\s0 that entry specifies that MakeMaker should first look +for \f(CW\*(C`libgl.a\*(C'\fR (followed by \f(CW\*(C`gl.a\*(C'\fR) in all the locations specified by +\&\f(CW$Config{libpth}\fR. +.Sp +When using a compiler other than \s-1GCC,\s0 the above entry will search for +\&\f(CW\*(C`gl.lib\*(C'\fR (followed by \f(CW\*(C`libgl.lib\*(C'\fR). +.Sp +If the library happens to be in a location not in \f(CW$Config{libpth}\fR, +you need: +.Sp +.Vb 1 +\& LIBS => [\*(Aq\-Lc:\egllibs \-lgl\*(Aq] +.Ve +.Sp +Here is a less often used example: +.Sp +.Vb 1 +\& LIBS => [\*(Aq\-lgl\*(Aq, \*(Aq:nosearch \-Ld:\emesalibs \-lmesa \-luser32\*(Aq] +.Ve +.Sp +This specifies a search for library \f(CW\*(C`gl\*(C'\fR as before. If that search +fails to find the library, it looks at the next item in the list. The +\&\f(CW\*(C`:nosearch\*(C'\fR flag will prevent searching for the libraries that follow, +so it simply returns the value as \f(CW\*(C`\-Ld:\emesalibs \-lmesa \-luser32\*(C'\fR, +since \s-1GCC\s0 can use that value as is with its linker. +.Sp +When using the Visual C compiler, the second item is returned as +\&\f(CW\*(C`\-libpath:d:\emesalibs mesa.lib user32.lib\*(C'\fR. +.Sp +When using the Borland compiler, the second item is returned as +\&\f(CW\*(C`\-Ld:\emesalibs mesa.lib user32.lib\*(C'\fR, and MakeMaker takes care of +moving the \f(CW\*(C`\-Ld:\emesalibs\*(C'\fR to the correct place in the linker +command line. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM.3 new file mode 100644 index 0000000000000000000000000000000000000000..1d265cf79d98ec2330accc66b43c7bcd9a2eb7aa --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM.3 @@ -0,0 +1,161 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM 3" +.TH ExtUtils::MM 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM \- OS adjusted ExtUtils::MakeMaker subclass +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& require ExtUtils::MM; +\& my $mm = MM\->new(...); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1FOR INTERNAL USE ONLY\s0\fR +.PP +ExtUtils::MM is a subclass of ExtUtils::MakeMaker which automatically +chooses the appropriate \s-1OS\s0 specific subclass for you +(ie. ExtUtils::MM_Unix, etc...). +.PP +It also provides a convenient alias via the \s-1MM\s0 class (I didn't want +MakeMaker modules outside of ExtUtils/). +.PP +This class might turn out to be a temporary solution, but \s-1MM\s0 won't go +away. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_AIX.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_AIX.3 new file mode 100644 index 0000000000000000000000000000000000000000..d546f6180cf8a12e83128022df03291ed02a80b8 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_AIX.3 @@ -0,0 +1,171 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_AIX 3" +.TH ExtUtils::MM_AIX 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_AIX \- AIX specific subclass of ExtUtils::MM_Unix +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Don\*(Aqt use this module directly. +\& Use ExtUtils::MM and let it choose. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Unix which contains functionality for +\&\s-1AIX.\s0 +.PP +Unless otherwise stated it works just like ExtUtils::MM_Unix. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +\fIdlsyms\fR +.IX Subsection "dlsyms" +.PP +Define \s-1DL_FUNCS\s0 and \s-1DL_VARS\s0 and write the *.exp files. +.PP +\fIxs_dlsyms_ext\fR +.IX Subsection "xs_dlsyms_ext" +.PP +On \s-1AIX,\s0 is \f(CW\*(C`.exp\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern with code from ExtUtils::MM_Unix +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Any.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Any.3 new file mode 100644 index 0000000000000000000000000000000000000000..538872ed0f5e79a5eec3ec257a625f85d2365236 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Any.3 @@ -0,0 +1,1197 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Any 3" +.TH ExtUtils::MM_Any 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Any \- Platform\-agnostic MM methods +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& FOR INTERNAL USE ONLY! +\& +\& package ExtUtils::MM_SomeOS; +\& +\& # Temporarily, you have to subclass both. Put MM_Any first. +\& require ExtUtils::MM_Any; +\& require ExtUtils::MM_Unix; +\& @ISA = qw(ExtUtils::MM_Any ExtUtils::Unix); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1FOR INTERNAL USE ONLY\s0!\fR +.PP +ExtUtils::MM_Any is a superclass for the ExtUtils::MM_* set of +modules. It contains methods which are either inherently +cross-platform or are written in a cross-platform manner. +.PP +Subclass off of ExtUtils::MM_Any \fIand\fR ExtUtils::MM_Unix. This is a +temporary solution. +.PP +\&\fB\s-1THIS MAY BE TEMPORARY\s0!\fR +.SH "METHODS" +.IX Header "METHODS" +Any methods marked \fIAbstract\fR must be implemented by subclasses. +.SS "Cross-platform helper methods" +.IX Subsection "Cross-platform helper methods" +These are methods which help writing cross-platform code. +.PP +\fIos_flavor \fIAbstract\fI\fR +.IX Subsection "os_flavor Abstract" +.PP +.Vb 1 +\& my @os_flavor = $mm\->os_flavor; +.Ve +.PP +\&\f(CW@os_flavor\fR is the style of operating system this is, usually +corresponding to the MM_*.pm file we're using. +.PP +The first element of \f(CW@os_flavor\fR is the major family (ie. Unix, +Windows, \s-1VMS, OS/2,\s0 etc...) and the rest are sub families. +.PP +Some examples: +.PP +.Vb 6 +\& Cygwin98 (\*(AqUnix\*(Aq, \*(AqCygwin\*(Aq, \*(AqCygwin9x\*(Aq) +\& Windows (\*(AqWin32\*(Aq) +\& Win98 (\*(AqWin32\*(Aq, \*(AqWin9x\*(Aq) +\& Linux (\*(AqUnix\*(Aq, \*(AqLinux\*(Aq) +\& MacOS X (\*(AqUnix\*(Aq, \*(AqDarwin\*(Aq, \*(AqMacOS\*(Aq, \*(AqMacOS X\*(Aq) +\& OS/2 (\*(AqOS/2\*(Aq) +.Ve +.PP +This is used to write code for styles of operating system. +See \fBos_flavor_is()\fR for use. +.PP +\fIos_flavor_is\fR +.IX Subsection "os_flavor_is" +.PP +.Vb 2 +\& my $is_this_flavor = $mm\->os_flavor_is($this_flavor); +\& my $is_this_flavor = $mm\->os_flavor_is(@one_of_these_flavors); +.Ve +.PP +Checks to see if the current operating system is one of the given flavors. +.PP +This is useful for code like: +.PP +.Vb 6 +\& if( $mm\->os_flavor_is(\*(AqUnix\*(Aq) ) { +\& $out = \`foo 2>&1\`; +\& } +\& else { +\& $out = \`foo\`; +\& } +.Ve +.PP +\fIcan_load_xs\fR +.IX Subsection "can_load_xs" +.PP +.Vb 1 +\& my $can_load_xs = $self\->can_load_xs; +.Ve +.PP +Returns true if we have the ability to load \s-1XS.\s0 +.PP +This is important because miniperl, used to build \s-1XS\s0 modules in the +core, can not load \s-1XS.\s0 +.PP +\fIcan_run\fR +.IX Subsection "can_run" +.PP +.Vb 2 +\& use ExtUtils::MM; +\& my $runnable = MM\->can_run($Config{make}); +.Ve +.PP +If called in a scalar context it will return the full path to the binary +you asked for if it was found, or \f(CW\*(C`undef\*(C'\fR if it was not. +.PP +If called in a list context, it will return a list of the full paths to instances +of the binary where found in \f(CW\*(C`PATH\*(C'\fR, or an empty list if it was not found. +.PP +Copied from IPC::Cmd, but modified into +a method (and removed \f(CW$INSTANCES\fR capability). +.PP +\fIcan_redirect_error\fR +.IX Subsection "can_redirect_error" +.PP +.Vb 1 +\& $useredirect = MM\->can_redirect_error; +.Ve +.PP +True if on an \s-1OS\s0 where qx operator (or backticks) can redirect \f(CW\*(C`STDERR\*(C'\fR +onto \f(CW\*(C`STDOUT\*(C'\fR. +.PP +\fIis_make_type\fR +.IX Subsection "is_make_type" +.PP +.Vb 1 +\& my $is_dmake = $self\->is_make_type(\*(Aqdmake\*(Aq); +.Ve +.PP +Returns true if \f(CW\*(C`$self\->make\*(C'\fR is the given type; possibilities are: +.PP +.Vb 4 +\& gmake GNU make +\& dmake +\& nmake +\& bsdmake BSD pmake\-derived +.Ve +.PP +\fIcan_dep_space\fR +.IX Subsection "can_dep_space" +.PP +.Vb 1 +\& my $can_dep_space = $self\->can_dep_space; +.Ve +.PP +Returns true if \f(CW\*(C`make\*(C'\fR can handle (probably by quoting) +dependencies that contain a space. Currently known true for \s-1GNU\s0 make, +false for \s-1BSD\s0 pmake derivative. +.PP +\fIquote_dep\fR +.IX Subsection "quote_dep" +.PP +.Vb 1 +\& $text = $mm\->quote_dep($text); +.Ve +.PP +Method that protects Makefile single-value constants (mainly filenames), +so that make will still treat them as single values even if they +inconveniently have spaces in. If the make program being used cannot +achieve such protection and the given text would need it, throws an +exception. +.PP +\fIsplit_command\fR +.IX Subsection "split_command" +.PP +.Vb 1 +\& my @cmds = $MM\->split_command($cmd, @args); +.Ve +.PP +Most \s-1OS\s0 have a maximum command length they can execute at once. Large +modules can easily generate commands well past that limit. Its +necessary to split long commands up into a series of shorter commands. +.PP +\&\f(CW\*(C`split_command\*(C'\fR will return a series of \f(CW@cmds\fR each processing part of +the args. Collectively they will process all the arguments. Each +individual line in \f(CW@cmds\fR will not be longer than the +\&\f(CW$self\fR\->max_exec_len being careful to take into account macro expansion. +.PP +\&\f(CW$cmd\fR should include any switches and repeated initial arguments. +.PP +If no \f(CW@args\fR are given, no \f(CW@cmds\fR will be returned. +.PP +Pairs of arguments will always be preserved in a single command, this +is a heuristic for things like pm_to_blib and pod2man which work on +pairs of arguments. This makes things like this safe: +.PP +.Vb 1 +\& $self\->split_command($cmd, %pod2man); +.Ve +.PP +\fImake_type\fR +.IX Subsection "make_type" +.PP +Returns a suitable string describing the type of makefile being written. +.PP +\fIstashmeta\fR +.IX Subsection "stashmeta" +.PP +.Vb 1 +\& my @recipelines = $MM\->stashmeta($text, $file); +.Ve +.PP +Generates a set of \f(CW@recipelines\fR which will result in the literal +\&\f(CW$text\fR ending up in literal \f(CW$file\fR when the recipe is executed. Call +it once, with all the text you want in \f(CW$file\fR. Make macros will not +be expanded, so the locations will be fixed at configure-time, not +at build-time. +.PP +\fIecho\fR +.IX Subsection "echo" +.PP +.Vb 3 +\& my @commands = $MM\->echo($text); +\& my @commands = $MM\->echo($text, $file); +\& my @commands = $MM\->echo($text, $file, \e%opts); +.Ve +.PP +Generates a set of \f(CW@commands\fR which print the \f(CW$text\fR to a \f(CW$file\fR. +.PP +If \f(CW$file\fR is not given, output goes to \s-1STDOUT.\s0 +.PP +If \f(CW$opts\fR{append} is true the \f(CW$file\fR will be appended to rather than +overwritten. Default is to overwrite. +.PP +If \f(CW$opts\fR{allow_variables} is true, make variables of the form +\&\f(CW\*(C`$(...)\*(C'\fR will not be escaped. Other \f(CW\*(C`$\*(C'\fR will. Default is to escape +all \f(CW\*(C`$\*(C'\fR. +.PP +Example of use: +.PP +.Vb 1 +\& my $make = join \*(Aq\*(Aq, map "\et$_\en", $MM\->echo($text, $file); +.Ve +.PP +\fIwraplist\fR +.IX Subsection "wraplist" +.PP +.Vb 1 +\& my $args = $mm\->wraplist(@list); +.Ve +.PP +Takes an array of items and turns them into a well-formatted list of +arguments. In most cases this is simply something like: +.PP +.Vb 3 +\& FOO \e +\& BAR \e +\& BAZ +.Ve +.PP +\fImaketext_filter\fR +.IX Subsection "maketext_filter" +.PP +.Vb 1 +\& my $filter_make_text = $mm\->maketext_filter($make_text); +.Ve +.PP +The text of the Makefile is run through this method before writing to +disk. It allows systems a chance to make portability fixes to the +Makefile. +.PP +By default it does nothing. +.PP +This method is protected and not intended to be called outside of +MakeMaker. +.PP +\fIcd \fIAbstract\fI\fR +.IX Subsection "cd Abstract" +.PP +.Vb 1 +\& my $subdir_cmd = $MM\->cd($subdir, @cmds); +.Ve +.PP +This will generate a make fragment which runs the \f(CW@cmds\fR in the given +\&\f(CW$dir\fR. The rough equivalent to this, except cross platform. +.PP +.Vb 1 +\& cd $subdir && $cmd +.Ve +.PP +Currently \f(CW$dir\fR can only go down one level. \*(L"foo\*(R" is fine. \*(L"foo/bar\*(R" is +not. \*(L"../foo\*(R" is right out. +.PP +The resulting \f(CW$subdir_cmd\fR has no leading tab nor trailing newline. This +makes it easier to embed in a make string. For example. +.PP +.Vb 6 +\& my $make = sprintf <<\*(AqCODE\*(Aq, $subdir_cmd; +\& foo : +\& $(ECHO) what +\& %s +\& $(ECHO) mouche +\& CODE +.Ve +.PP +\fIoneliner \fIAbstract\fI\fR +.IX Subsection "oneliner Abstract" +.PP +.Vb 2 +\& my $oneliner = $MM\->oneliner($perl_code); +\& my $oneliner = $MM\->oneliner($perl_code, \e@switches); +.Ve +.PP +This will generate a perl one-liner safe for the particular platform +you're on based on the given \f(CW$perl_code\fR and \f(CW@switches\fR (a \-e is +assumed) suitable for using in a make target. It will use the proper +shell quoting and escapes. +.PP +$(\s-1PERLRUN\s0) will be used as perl. +.PP +Any newlines in \f(CW$perl_code\fR will be escaped. Leading and trailing +newlines will be stripped. Makes this idiom much easier: +.PP +.Vb 4 +\& my $code = $MM\->oneliner(<<\*(AqCODE\*(Aq, [...switches...]); +\&some code here +\&another line here +\&CODE +.Ve +.PP +Usage might be something like: +.PP +.Vb 3 +\& # an echo emulation +\& $oneliner = $MM\->oneliner(\*(Aqprint "Foo\en"\*(Aq); +\& $make = \*(Aq$oneliner > somefile\*(Aq; +.Ve +.PP +Dollar signs in the \f(CW$perl_code\fR will be protected from make using the +\&\f(CW\*(C`quote_literal\*(C'\fR method, unless they are recognised as being a make +variable, \f(CW\*(C`$(varname)\*(C'\fR, in which case they will be left for make +to expand. Remember to quote make macros else it might be used as a +bareword. For example: +.PP +.Vb 2 +\& # Assign the value of the $(VERSION_FROM) make macro to $vf. +\& $oneliner = $MM\->oneliner(\*(Aq$vf = "$(VERSION_FROM)"\*(Aq); +.Ve +.PP +Its currently very simple and may be expanded sometime in the figure +to include more flexible code and switches. +.PP +\fIquote_literal \fIAbstract\fI\fR +.IX Subsection "quote_literal Abstract" +.PP +.Vb 2 +\& my $safe_text = $MM\->quote_literal($text); +\& my $safe_text = $MM\->quote_literal($text, \e%options); +.Ve +.PP +This will quote \f(CW$text\fR so it is interpreted literally in the shell. +.PP +For example, on Unix this would escape any single-quotes in \f(CW$text\fR and +put single-quotes around the whole thing. +.PP +If \f(CW$options\fR{allow_variables} is true it will leave \f(CW\*(Aq$(FOO)\*(Aq\fR make +variables untouched. If false they will be escaped like any other +\&\f(CW\*(C`$\*(C'\fR. Defaults to true. +.PP +\fIescape_dollarsigns\fR +.IX Subsection "escape_dollarsigns" +.PP +.Vb 1 +\& my $escaped_text = $MM\->escape_dollarsigns($text); +.Ve +.PP +Escapes stray \f(CW\*(C`$\*(C'\fR so they are not interpreted as make variables. +.PP +It lets by \f(CW\*(C`$(...)\*(C'\fR. +.PP +\fIescape_all_dollarsigns\fR +.IX Subsection "escape_all_dollarsigns" +.PP +.Vb 1 +\& my $escaped_text = $MM\->escape_all_dollarsigns($text); +.Ve +.PP +Escapes all \f(CW\*(C`$\*(C'\fR so they are not interpreted as make variables. +.PP +\fIescape_newlines \fIAbstract\fI\fR +.IX Subsection "escape_newlines Abstract" +.PP +.Vb 1 +\& my $escaped_text = $MM\->escape_newlines($text); +.Ve +.PP +Shell escapes newlines in \f(CW$text\fR. +.PP +\fImax_exec_len \fIAbstract\fI\fR +.IX Subsection "max_exec_len Abstract" +.PP +.Vb 1 +\& my $max_exec_len = $MM\->max_exec_len; +.Ve +.PP +Calculates the maximum command size the \s-1OS\s0 can exec. Effectively, +this is the max size of a shell command line. +.PP +\fImake\fR +.IX Subsection "make" +.PP +.Vb 1 +\& my $make = $MM\->make; +.Ve +.PP +Returns the make variant we're generating the Makefile for. This attempts +to do some normalization on the information from \f(CW%Config\fR or the user. +.SS "Targets" +.IX Subsection "Targets" +These are methods which produce make targets. +.PP +\fIall_target\fR +.IX Subsection "all_target" +.PP +Generate the default target 'all'. +.PP +\fIblibdirs_target\fR +.IX Subsection "blibdirs_target" +.PP +.Vb 1 +\& my $make_frag = $mm\->blibdirs_target; +.Ve +.PP +Creates the blibdirs target which creates all the directories we use +in blib/. +.PP +The blibdirs.ts target is deprecated. Depend on blibdirs instead. +.PP +\fIclean (o)\fR +.IX Subsection "clean (o)" +.PP +Defines the clean target. +.PP +\fIclean_subdirs_target\fR +.IX Subsection "clean_subdirs_target" +.PP +.Vb 1 +\& my $make_frag = $MM\->clean_subdirs_target; +.Ve +.PP +Returns the clean_subdirs target. This is used by the clean target to +call clean on any subdirectories which contain Makefiles. +.PP +\fIdir_target\fR +.IX Subsection "dir_target" +.PP +.Vb 1 +\& my $make_frag = $mm\->dir_target(@directories); +.Ve +.PP +Generates targets to create the specified directories and set its +permission to \s-1PERM_DIR.\s0 +.PP +Because depending on a directory to just ensure it exists doesn't work +too well (the modified time changes too often) \fBdir_target()\fR creates a +\&.exists file in the created directory. It is this you should depend on. +For portability purposes you should use the $(\s-1DIRFILESEP\s0) macro rather +than a '/' to separate the directory from the file. +.PP +.Vb 1 +\& yourdirectory$(DIRFILESEP).exists +.Ve +.PP +\fIdistdir\fR +.IX Subsection "distdir" +.PP +Defines the scratch directory target that will hold the distribution +before tar-ing (or shar-ing). +.PP +\fIdist_test\fR +.IX Subsection "dist_test" +.PP +Defines a target that produces the distribution in the +scratch directory, and runs 'perl Makefile.PL; make ;make test' in that +subdirectory. +.PP +\fIxs_dlsyms_arg\fR +.IX Subsection "xs_dlsyms_arg" +.PP +Returns command-line arg(s) to linker for file listing dlsyms to export. +Defaults to returning empty string, can be overridden by e.g. \s-1AIX.\s0 +.PP +\fIxs_dlsyms_ext\fR +.IX Subsection "xs_dlsyms_ext" +.PP +Returns file-extension for \f(CW\*(C`xs_make_dlsyms\*(C'\fR method's output file, +including any \*(L".\*(R" character. +.PP +\fIxs_dlsyms_extra\fR +.IX Subsection "xs_dlsyms_extra" +.PP +Returns any extra text to be prepended to the \f(CW$extra\fR argument of +\&\f(CW\*(C`xs_make_dlsyms\*(C'\fR. +.PP +\fIxs_dlsyms_iterator\fR +.IX Subsection "xs_dlsyms_iterator" +.PP +Iterates over necessary shared objects, calling \f(CW\*(C`xs_make_dlsyms\*(C'\fR method +for each with appropriate arguments. +.PP +\fIxs_make_dlsyms\fR +.IX Subsection "xs_make_dlsyms" +.PP +.Vb 12 +\& $self\->xs_make_dlsyms( +\& \e%attribs, # hashref from %attribs in caller +\& "$self\->{BASEEXT}.def", # output file for Makefile target +\& \*(AqMakefile.PL\*(Aq, # dependency +\& $self\->{NAME}, # shared object\*(Aqs "name" +\& $self\->{DLBASE}, # last ::\-separated part of name +\& $attribs{DL_FUNCS} || $self\->{DL_FUNCS} || {}, # various params +\& $attribs{FUNCLIST} || $self\->{FUNCLIST} || [], +\& $attribs{IMPORTS} || $self\->{IMPORTS} || {}, +\& $attribs{DL_VARS} || $self\->{DL_VARS} || [], +\& # optional extra param that will be added as param to Mksymlists +\& ); +.Ve +.PP +Utility method that returns Makefile snippet to call \f(CW\*(C`Mksymlists\*(C'\fR. +.PP +\fIdynamic (o)\fR +.IX Subsection "dynamic (o)" +.PP +Defines the dynamic target. +.PP +\fImakemakerdflt_target\fR +.IX Subsection "makemakerdflt_target" +.PP +.Vb 1 +\& my $make_frag = $mm\->makemakerdflt_target +.Ve +.PP +Returns a make fragment with the makemakerdeflt_target specified. +This target is the first target in the Makefile, is the default target +and simply points off to 'all' just in case any make variant gets +confused or something gets snuck in before the real 'all' target. +.PP +\fImanifypods_target\fR +.IX Subsection "manifypods_target" +.PP +.Vb 1 +\& my $manifypods_target = $self\->manifypods_target; +.Ve +.PP +Generates the manifypods target. This target generates man pages from +all \s-1POD\s0 files in \s-1MAN1PODS\s0 and \s-1MAN3PODS.\s0 +.PP +\fImetafile_target\fR +.IX Subsection "metafile_target" +.PP +.Vb 1 +\& my $target = $mm\->metafile_target; +.Ve +.PP +Generate the metafile target. +.PP +Writes the file \s-1META\s0.yml (\s-1YAML\s0 encoded meta-data) and \s-1META\s0.json +(\s-1JSON\s0 encoded meta-data) about the module in the distdir. +The format follows Module::Build's as closely as possible. +.PP +\fImetafile_data\fR +.IX Subsection "metafile_data" +.PP +.Vb 1 +\& my $metadata_hashref = $mm\->metafile_data(\e%meta_add, \e%meta_merge); +.Ve +.PP +Returns the data which MakeMaker turns into the \s-1META\s0.yml file +and the \s-1META\s0.json file. It is always in version 2.0 of the format. +.PP +Values of \f(CW%meta_add\fR will overwrite any existing metadata in those +keys. \f(CW%meta_merge\fR will be merged with them. +.PP +\fImetafile_file\fR +.IX Subsection "metafile_file" +.PP +.Vb 1 +\& my $meta_yml = $mm\->metafile_file(@metadata_pairs); +.Ve +.PP +Turns the \f(CW@metadata_pairs\fR into \s-1YAML.\s0 +.PP +This method does not implement a complete \s-1YAML\s0 dumper, being limited +to dump a hash with values which are strings, undef's or nested hashes +and arrays of strings. No quoting/escaping is done. +.PP +\fIdistmeta_target\fR +.IX Subsection "distmeta_target" +.PP +.Vb 1 +\& my $make_frag = $mm\->distmeta_target; +.Ve +.PP +Generates the distmeta target to add \s-1META\s0.yml and \s-1META\s0.json to the \s-1MANIFEST\s0 +in the distdir. +.PP +\fImymeta\fR +.IX Subsection "mymeta" +.PP +.Vb 1 +\& my $mymeta = $mm\->mymeta; +.Ve +.PP +Generate \s-1MYMETA\s0 information as a hash either from an existing \s-1CPAN\s0 Meta file +(\s-1META\s0.json or \s-1META\s0.yml) or from internal data. +.PP +\fIwrite_mymeta\fR +.IX Subsection "write_mymeta" +.PP +.Vb 1 +\& $self\->write_mymeta( $mymeta ); +.Ve +.PP +Write \s-1MYMETA\s0 information to \s-1MYMETA\s0.json and \s-1MYMETA\s0.yml. +.PP +\fIrealclean (o)\fR +.IX Subsection "realclean (o)" +.PP +Defines the realclean target. +.PP +\fIrealclean_subdirs_target\fR +.IX Subsection "realclean_subdirs_target" +.PP +.Vb 1 +\& my $make_frag = $MM\->realclean_subdirs_target; +.Ve +.PP +Returns the realclean_subdirs target. This is used by the realclean +target to call realclean on any subdirectories which contain Makefiles. +.PP +\fIsignature_target\fR +.IX Subsection "signature_target" +.PP +.Vb 1 +\& my $target = $mm\->signature_target; +.Ve +.PP +Generate the signature target. +.PP +Writes the file \s-1SIGNATURE\s0 with \*(L"cpansign \-s\*(R". +.PP +\fIdistsignature_target\fR +.IX Subsection "distsignature_target" +.PP +.Vb 1 +\& my $make_frag = $mm\->distsignature_target; +.Ve +.PP +Generates the distsignature target to add \s-1SIGNATURE\s0 to the \s-1MANIFEST\s0 in the +distdir. +.PP +\fIspecial_targets\fR +.IX Subsection "special_targets" +.PP +.Vb 1 +\& my $make_frag = $mm\->special_targets +.Ve +.PP +Returns a make fragment containing any targets which have special +meaning to make. For example, .SUFFIXES and .PHONY. +.SS "Init methods" +.IX Subsection "Init methods" +Methods which help initialize the MakeMaker object and macros. +.PP +\fIinit_ABSTRACT\fR +.IX Subsection "init_ABSTRACT" +.PP +.Vb 1 +\& $mm\->init_ABSTRACT +.Ve +.PP +\fIinit_INST\fR +.IX Subsection "init_INST" +.PP +.Vb 1 +\& $mm\->init_INST; +.Ve +.PP +Called by init_main. Sets up all INST_* variables except those related +to \s-1XS\s0 code. Those are handled in init_xs. +.PP +\fIinit_INSTALL\fR +.IX Subsection "init_INSTALL" +.PP +.Vb 1 +\& $mm\->init_INSTALL; +.Ve +.PP +Called by init_main. Sets up all INSTALL_* variables (except +\&\s-1INSTALLDIRS\s0) and *PREFIX. +.PP +\fIinit_INSTALL_from_PREFIX\fR +.IX Subsection "init_INSTALL_from_PREFIX" +.PP +.Vb 1 +\& $mm\->init_INSTALL_from_PREFIX; +.Ve +.PP +\fIinit_from_INSTALL_BASE\fR +.IX Subsection "init_from_INSTALL_BASE" +.PP +.Vb 1 +\& $mm\->init_from_INSTALL_BASE +.Ve +.PP +\fIinit_VERSION \fIAbstract\fI\fR +.IX Subsection "init_VERSION Abstract" +.PP +.Vb 1 +\& $mm\->init_VERSION +.Ve +.PP +Initialize macros representing versions of MakeMaker and other tools +.PP +\&\s-1MAKEMAKER:\s0 path to the MakeMaker module. +.PP +\&\s-1MM_VERSION:\s0 ExtUtils::MakeMaker Version +.PP +\&\s-1MM_REVISION:\s0 ExtUtils::MakeMaker version control revision (for backwards + compat) +.PP +\&\s-1VERSION:\s0 version of your module +.PP +\&\s-1VERSION_MACRO:\s0 which macro represents the version (usually '\s-1VERSION\s0') +.PP +\&\s-1VERSION_SYM:\s0 like version but safe for use as an \s-1RCS\s0 revision number +.PP +\&\s-1DEFINE_VERSION:\s0 \-D line to set the module version when compiling +.PP +\&\s-1XS_VERSION:\s0 version in your .xs file. Defaults to $(\s-1VERSION\s0) +.PP +\&\s-1XS_VERSION_MACRO:\s0 which macro represents the \s-1XS\s0 version. +.PP +\&\s-1XS_DEFINE_VERSION:\s0 \-D line to set the xs version when compiling. +.PP +Called by init_main. +.PP +\fIinit_tools\fR +.IX Subsection "init_tools" +.PP +.Vb 1 +\& $MM\->init_tools(); +.Ve +.PP +Initializes the simple macro definitions used by \fBtools_other()\fR and +places them in the \f(CW$MM\fR object. These use conservative cross platform +versions and should be overridden with platform specific versions for +performance. +.PP +Defines at least these macros. +.PP +.Vb 1 +\& Macro Description +\& +\& NOOP Do nothing +\& NOECHO Tell make not to display the command itself +\& +\& SHELL Program used to run shell commands +\& +\& ECHO Print text adding a newline on the end +\& RM_F Remove a file +\& RM_RF Remove a directory +\& TOUCH Update a file\*(Aqs timestamp +\& TEST_F Test for a file\*(Aqs existence +\& TEST_S Test the size of a file +\& CP Copy a file +\& CP_NONEMPTY Copy a file if it is not empty +\& MV Move a file +\& CHMOD Change permissions on a file +\& FALSE Exit with non\-zero +\& TRUE Exit with zero +\& +\& UMASK_NULL Nullify umask +\& DEV_NULL Suppress all command output +.Ve +.PP +\fIinit_others\fR +.IX Subsection "init_others" +.PP +.Vb 1 +\& $MM\->init_others(); +.Ve +.PP +Initializes the macro definitions having to do with compiling and +linking used by \fBtools_other()\fR and places them in the \f(CW$MM\fR object. +.PP +If there is no description, its the same as the parameter to +\&\fBWriteMakefile()\fR documented in ExtUtils::MakeMaker. +.PP +\fItools_other\fR +.IX Subsection "tools_other" +.PP +.Vb 1 +\& my $make_frag = $MM\->tools_other; +.Ve +.PP +Returns a make fragment containing definitions for the macros \fBinit_others()\fR +initializes. +.PP +\fIinit_DIRFILESEP \fIAbstract\fI\fR +.IX Subsection "init_DIRFILESEP Abstract" +.PP +.Vb 2 +\& $MM\->init_DIRFILESEP; +\& my $dirfilesep = $MM\->{DIRFILESEP}; +.Ve +.PP +Initializes the \s-1DIRFILESEP\s0 macro which is the separator between the +directory and filename in a filepath. ie. / on Unix, \e on Win32 and +nothing on \s-1VMS.\s0 +.PP +For example: +.PP +.Vb 2 +\& # instead of $(INST_ARCHAUTODIR)/extralibs.ld +\& $(INST_ARCHAUTODIR)$(DIRFILESEP)extralibs.ld +.Ve +.PP +Something of a hack but it prevents a lot of code duplication between +MM_* variants. +.PP +Do not use this as a separator between directories. Some operating +systems use different separators between subdirectories as between +directories and filenames (for example: VOLUME:[dir1.dir2]file on \s-1VMS\s0). +.PP +\fIinit_linker \fIAbstract\fI\fR +.IX Subsection "init_linker Abstract" +.PP +.Vb 1 +\& $mm\->init_linker; +.Ve +.PP +Initialize macros which have to do with linking. +.PP +\&\s-1PERL_ARCHIVE:\s0 path to libperl.a equivalent to be linked to dynamic +extensions. +.PP +\&\s-1PERL_ARCHIVE_AFTER:\s0 path to a library which should be put on the +linker command line \fIafter\fR the external libraries to be linked to +dynamic extensions. This may be needed if the linker is one-pass, and +Perl includes some overrides for C \s-1RTL\s0 functions, such as \fBmalloc()\fR. +.PP +\&\s-1EXPORT_LIST:\s0 name of a file that is passed to linker to define symbols +to be exported. +.PP +Some OSes do not need these in which case leave it blank. +.PP +\fIinit_platform\fR +.IX Subsection "init_platform" +.PP +.Vb 1 +\& $mm\->init_platform +.Ve +.PP +Initialize any macros which are for platform specific use only. +.PP +A typical one is the version number of your \s-1OS\s0 specific module. +(ie. MM_Unix_VERSION or \s-1MM_VMS_VERSION\s0). +.PP +\fIinit_MAKE\fR +.IX Subsection "init_MAKE" +.PP +.Vb 1 +\& $mm\->init_MAKE +.Ve +.PP +Initialize \s-1MAKE\s0 from either a \s-1MAKE\s0 environment variable or \f(CW$Config\fR{make}. +.SS "Tools" +.IX Subsection "Tools" +A grab bag of methods to generate specific macros and commands. +.PP +\fImanifypods\fR +.IX Subsection "manifypods" +.PP +Defines targets and routines to translate the pods into manpages and +put them into the INST_* directories. +.PP +\fIPOD2MAN_macro\fR +.IX Subsection "POD2MAN_macro" +.PP +.Vb 1 +\& my $pod2man_macro = $self\->POD2MAN_macro +.Ve +.PP +Returns a definition for the \s-1POD2MAN\s0 macro. This is a program +which emulates the pod2man utility. You can add more switches to the +command by simply appending them on the macro. +.PP +Typical usage: +.PP +.Vb 1 +\& $(POD2MAN) \-\-section=3 \-\-perm_rw=$(PERM_RW) podfile1 man_page1 ... +.Ve +.PP +\fItest_via_harness\fR +.IX Subsection "test_via_harness" +.PP +.Vb 1 +\& my $command = $mm\->test_via_harness($perl, $tests); +.Ve +.PP +Returns a \f(CW$command\fR line which runs the given set of \f(CW$tests\fR with +Test::Harness and the given \f(CW$perl\fR. +.PP +Used on the t/*.t files. +.PP +\fItest_via_script\fR +.IX Subsection "test_via_script" +.PP +.Vb 1 +\& my $command = $mm\->test_via_script($perl, $script); +.Ve +.PP +Returns a \f(CW$command\fR line which just runs a single test without +Test::Harness. No checks are done on the results, they're just +printed. +.PP +Used for test.pl, since they don't always follow Test::Harness +formatting. +.PP +\fItool_autosplit\fR +.IX Subsection "tool_autosplit" +.PP +Defines a simple perl call that runs autosplit. May be deprecated by +pm_to_blib soon. +.PP +\fIarch_check\fR +.IX Subsection "arch_check" +.PP +.Vb 4 +\& my $arch_ok = $mm\->arch_check( +\& $INC{"Config.pm"}, +\& File::Spec\->catfile($Config{archlibexp}, "Config.pm") +\& ); +.Ve +.PP +A sanity check that what Perl thinks the architecture is and what +Config thinks the architecture is are the same. If they're not it +will return false and show a diagnostic message. +.PP +When building Perl it will always return true, as nothing is installed +yet. +.PP +The interface is a bit odd because this is the result of a +quick refactoring. Don't rely on it. +.SS "File::Spec wrappers" +.IX Subsection "File::Spec wrappers" +ExtUtils::MM_Any is a subclass of File::Spec. The methods noted here +override File::Spec. +.PP +\fIcatfile\fR +.IX Subsection "catfile" +.PP +File::Spec <= 0.83 has a bug where the file part of catfile is not +canonicalized. This override fixes that bug. +.SS "Misc" +.IX Subsection "Misc" +Methods I can't really figure out where they should go yet. +.PP +\fIfind_tests\fR +.IX Subsection "find_tests" +.PP +.Vb 1 +\& my $test = $mm\->find_tests; +.Ve +.PP +Returns a string suitable for feeding to the shell to return all +tests in t/*.t. +.PP +\fIfind_tests_recursive\fR +.IX Subsection "find_tests_recursive" +.PP +.Vb 1 +\& my $tests = $mm\->find_tests_recursive; +.Ve +.PP +Returns a string suitable for feeding to the shell to return all +tests in t/ but recursively. Equivalent to +.PP +.Vb 1 +\& my $tests = $mm\->find_tests_recursive_in(\*(Aqt\*(Aq); +.Ve +.PP +\fIfind_tests_recursive_in\fR +.IX Subsection "find_tests_recursive_in" +.PP +.Vb 1 +\& my $tests = $mm\->find_tests_recursive_in($dir); +.Ve +.PP +Returns a string suitable for feeding to the shell to return all +tests in \f(CW$dir\fR recursively. +.PP +\fIextra_clean_files\fR +.IX Subsection "extra_clean_files" +.PP +.Vb 1 +\& my @files_to_clean = $MM\->extra_clean_files; +.Ve +.PP +Returns a list of \s-1OS\s0 specific files to be removed in the clean target in +addition to the usual set. +.PP +\fIinstallvars\fR +.IX Subsection "installvars" +.PP +.Vb 1 +\& my @installvars = $mm\->installvars; +.Ve +.PP +A list of all the INSTALL* variables without the \s-1INSTALL\s0 prefix. Useful +for iteration or building related variable sets. +.PP +\fIlibscan\fR +.IX Subsection "libscan" +.PP +.Vb 1 +\& my $wanted = $self\->libscan($path); +.Ve +.PP +Takes a path to a file or dir and returns an empty string if we don't +want to include this file in the library. Otherwise it returns the +the \f(CW$path\fR unchanged. +.PP +Mainly used to exclude version control administrative directories +and base-level \fI\s-1README\s0.pod\fR from installation. +.PP +\fIplatform_constants\fR +.IX Subsection "platform_constants" +.PP +.Vb 1 +\& my $make_frag = $mm\->platform_constants +.Ve +.PP +Returns a make fragment defining all the macros initialized in +\&\fBinit_platform()\fR rather than put them in \fBconstants()\fR. +.PP +\fIpost_constants (o)\fR +.IX Subsection "post_constants (o)" +.PP +Returns an empty string per default. Dedicated to overrides from +within Makefile.PL after all constants have been defined. +.PP +\fIpost_initialize (o)\fR +.IX Subsection "post_initialize (o)" +.PP +Returns an empty string per default. Used in Makefile.PLs to add some +chunk of text to the Makefile after the object is initialized. +.PP +\fIpostamble (o)\fR +.IX Subsection "postamble (o)" +.PP +Returns an empty string. Can be used in Makefile.PLs to write some +text to the Makefile at the end. +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern and the denizens of +makemaker@perl.org with code from ExtUtils::MM_Unix and +ExtUtils::MM_Win32. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_BeOS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_BeOS.3 new file mode 100644 index 0000000000000000000000000000000000000000..439e0f453eb4655e886dc303e93354fd367a9722 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_BeOS.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_BeOS 3" +.TH ExtUtils::MM_BeOS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_BeOS \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MM_BeOS; # Done internally by ExtUtils::MakeMaker if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.IP "os_flavor" 4 +.IX Item "os_flavor" +BeOS is BeOS. +.IP "init_linker" 4 +.IX Item "init_linker" +libperl.a equivalent to be linked to dynamic extensions. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Cygwin.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Cygwin.3 new file mode 100644 index 0000000000000000000000000000000000000000..a7beeefb10c2bbbdfd31f559fe2f7406cb358c7b --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Cygwin.3 @@ -0,0 +1,175 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Cygwin 3" +.TH ExtUtils::MM_Cygwin 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Cygwin \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MM_Cygwin; # Done internally by ExtUtils::MakeMaker if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided there. +.IP "os_flavor" 4 +.IX Item "os_flavor" +We're Unix and Cygwin. +.IP "cflags" 4 +.IX Item "cflags" +if configured for dynamic loading, triggers #define \s-1EXT\s0 in \s-1EXTERN\s0.h +.IP "replace_manpage_separator" 4 +.IX Item "replace_manpage_separator" +replaces strings '::' with '.' in MAN*POD man page names +.IP "init_linker" 4 +.IX Item "init_linker" +points to libperl.a +.IP "maybe_command" 4 +.IX Item "maybe_command" +Determine whether a file is native to Cygwin by checking whether it +resides inside the Cygwin installation (using Windows paths). If so, +use ExtUtils::MM_Unix to determine if it may be a command. +Otherwise use the tests from ExtUtils::MM_Win32. +.IP "dynamic_lib" 4 +.IX Item "dynamic_lib" +Use the default to produce the *.dll's. +But for new archdir dll's use the same rebase address if the old exists. +.IP "install" 4 +.IX Item "install" +Rebase dll's with the global rebase database after installation. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_DOS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_DOS.3 new file mode 100644 index 0000000000000000000000000000000000000000..9f24b49ea3462769c2da4d7b7fdd9e10acfb9392 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_DOS.3 @@ -0,0 +1,171 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_DOS 3" +.TH ExtUtils::MM_DOS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_DOS \- DOS specific subclass of ExtUtils::MM_Unix +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Don\*(Aqt use this module directly. +\& Use ExtUtils::MM and let it choose. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Unix which contains functionality +for \s-1DOS.\s0 +.PP +Unless otherwise stated, it works just like ExtUtils::MM_Unix. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +.IP "os_flavor" 4 +.IX Item "os_flavor" +.PD 0 +.IP "\fBreplace_manpage_separator\fR" 4 +.IX Item "replace_manpage_separator" +.PD +Generates Foo_\|_Bar.3 style man page names +.IP "xs_static_lib_is_xs" 4 +.IX Item "xs_static_lib_is_xs" +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern with code from ExtUtils::MM_Unix +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MM_Unix, ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Darwin.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Darwin.3 new file mode 100644 index 0000000000000000000000000000000000000000..20cb092faec4620f34b73d052c71e64863be7bd9 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Darwin.3 @@ -0,0 +1,157 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Darwin 3" +.TH ExtUtils::MM_Darwin 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Darwin \- special behaviors for OS X +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& For internal MakeMaker use only +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix or ExtUtils::MM_Any for documentation on the +methods overridden here. +.SS "Overridden Methods" +.IX Subsection "Overridden Methods" +\fIinit_dist\fR +.IX Subsection "init_dist" +.PP +Turn off Apple tar's tendency to copy resource forks as \*(L"._foo\*(R" files. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_MacOS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_MacOS.3 new file mode 100644 index 0000000000000000000000000000000000000000..0ec56df5fbc1307bfca104705d28d7c13eddad76 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_MacOS.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_MacOS 3" +.TH ExtUtils::MM_MacOS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_MacOS \- once produced Makefiles for MacOS Classic +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # MM_MacOS no longer contains any code. This is just a stub. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Once upon a time, MakeMaker could produce an approximation of a correct +Makefile on MacOS Classic (MacPerl). Due to a lack of maintainers, this +fell out of sync with the rest of MakeMaker and hadn't worked in years. +Since there's little chance of it being repaired, MacOS Classic is fading +away, and the code was icky to begin with, the code has been deleted to +make maintenance easier. +.PP +Anyone interested in resurrecting this file should pull the old version +from the MakeMaker \s-1CVS\s0 repository and contact makemaker@perl.org. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_NW5.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_NW5.3 new file mode 100644 index 0000000000000000000000000000000000000000..ab3adc5347489290d004182db922f4abfcf5cae2 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_NW5.3 @@ -0,0 +1,174 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_NW5 3" +.TH ExtUtils::MM_NW5 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_NW5 \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MM_NW5; # Done internally by ExtUtils::MakeMaker if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.IP "os_flavor" 4 +.IX Item "os_flavor" +We're Netware in addition to being Windows. +.IP "init_platform" 4 +.IX Item "init_platform" +Add Netware macros. +.Sp +\&\s-1LIBPTH, BASE_IMPORT, NLM_VERSION, MPKTOOL, TOOLPATH, BOOT_SYMBOL, +NLM_SHORT_NAME, INCLUDE, PATH, MM_NW5_REVISION\s0 +.IP "platform_constants" 4 +.IX Item "platform_constants" +Add Netware macros initialized above to the Makefile. +.IP "static_lib_pure_cmd" 4 +.IX Item "static_lib_pure_cmd" +Defines how to run the archive utility +.IP "xs_static_lib_is_xs" 4 +.IX Item "xs_static_lib_is_xs" +.PD 0 +.IP "dynamic_lib" 4 +.IX Item "dynamic_lib" +.PD +Override of utility methods for OS-specific work. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_OS2.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_OS2.3 new file mode 100644 index 0000000000000000000000000000000000000000..9acd8ed952288c8da6ebaa216b202d50f586afb4 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_OS2.3 @@ -0,0 +1,166 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_OS2 3" +.TH ExtUtils::MM_OS2 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_OS2 \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MM_OS2; # Done internally by ExtUtils::MakeMaker if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.SH "METHODS" +.IX Header "METHODS" +.IP "init_dist" 4 +.IX Item "init_dist" +Define \s-1TO_UNIX\s0 to convert \s-1OS2\s0 linefeeds to Unix style. +.IP "init_linker" 4 +.IX Item "init_linker" +.PD 0 +.IP "os_flavor" 4 +.IX Item "os_flavor" +.PD +\&\s-1OS/2\s0 is \s-1OS/2\s0 +.IP "xs_static_lib_is_xs" 4 +.IX Item "xs_static_lib_is_xs" diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_QNX.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_QNX.3 new file mode 100644 index 0000000000000000000000000000000000000000..9cb635c86455d4156b44cda2e29c2f8100fa1d56 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_QNX.3 @@ -0,0 +1,166 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_QNX 3" +.TH ExtUtils::MM_QNX 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_QNX \- QNX specific subclass of ExtUtils::MM_Unix +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Don\*(Aqt use this module directly. +\& Use ExtUtils::MM and let it choose. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Unix which contains functionality for +\&\s-1QNX.\s0 +.PP +Unless otherwise stated it works just like ExtUtils::MM_Unix. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +\fIextra_clean_files\fR +.IX Subsection "extra_clean_files" +.PP +Add .err files corresponding to each .c file. +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern with code from ExtUtils::MM_Unix +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_UWIN.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_UWIN.3 new file mode 100644 index 0000000000000000000000000000000000000000..4f638a328cddb5de1353e8e007287172673e4be3 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_UWIN.3 @@ -0,0 +1,167 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_UWIN 3" +.TH ExtUtils::MM_UWIN 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_UWIN \- U/WIN specific subclass of ExtUtils::MM_Unix +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Don\*(Aqt use this module directly. +\& Use ExtUtils::MM and let it choose. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Unix which contains functionality for +the \s-1AT&T U/WIN UNIX\s0 on Windows environment. +.PP +Unless otherwise stated it works just like ExtUtils::MM_Unix. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +.IP "os_flavor" 4 +.IX Item "os_flavor" +In addition to being Unix, we're U/WIN. +.IP "\fBreplace_manpage_separator\fR" 4 +.IX Item "replace_manpage_separator" +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern with code from ExtUtils::MM_Unix +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MM_Win32, ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Unix.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Unix.3 new file mode 100644 index 0000000000000000000000000000000000000000..dda2e237423505c5ffb575471207cc94d333b082 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Unix.3 @@ -0,0 +1,720 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Unix 3" +.TH ExtUtils::MM_Unix 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Unix \- methods used by ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require ExtUtils::MM_Unix; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The methods provided by this package are designed to be used in +conjunction with ExtUtils::MakeMaker. When MakeMaker writes a +Makefile, it creates one or more objects that inherit their methods +from a package \s-1MM\s0. \s-1MM\s0 itself doesn't provide any methods, but +it \s-1ISA\s0 ExtUtils::MM_Unix class. The inheritance tree of \s-1MM\s0 lets operating +specific packages take the responsibility for all the methods provided +by MM_Unix. We are trying to reduce the number of the necessary +overrides by defining rather primitive operations within +ExtUtils::MM_Unix. +.PP +If you are going to write a platform specific \s-1MM\s0 package, please try +to limit the necessary overrides to primitive methods, and if it is not +possible to do so, let's work out how to achieve that gain. +.PP +If you are overriding any of these methods in your Makefile.PL (in the +\&\s-1MY\s0 class), please report that to the makemaker mailing list. We are +trying to minimize the necessary method overrides and switch to data +driven Makefile.PLs wherever possible. In the long run less methods +will be overridable via the \s-1MY\s0 class. +.SH "METHODS" +.IX Header "METHODS" +The following description of methods is still under +development. Please refer to the code for not suitably documented +sections and complain loudly to the makemaker@perl.org mailing list. +Better yet, provide a patch. +.PP +Not all of the methods below are overridable in a +Makefile.PL. Overridable methods are marked as (o). All methods are +overridable by a platform specific MM_*.pm file. +.PP +Cross-platform methods are being moved into MM_Any. +If you can't find something that used to be in here, look in MM_Any. +.SS "Methods" +.IX Subsection "Methods" +.IP "os_flavor" 4 +.IX Item "os_flavor" +Simply says that we're Unix. +.IP "c_o (o)" 4 +.IX Item "c_o (o)" +Defines the suffix rules to compile different flavors of C files to +object files. +.IP "xs_obj_opt" 4 +.IX Item "xs_obj_opt" +Takes the object file as an argument, and returns the portion of compile +command-line that will output to the specified object file. +.IP "dbgoutflag" 4 +.IX Item "dbgoutflag" +Returns a \s-1CC\s0 flag that tells the \s-1CC\s0 to emit a separate debugging symbol file +when compiling an object file. +.IP "cflags (o)" 4 +.IX Item "cflags (o)" +Does very much the same as the cflags script in the perl +distribution. It doesn't return the whole compiler command line, but +initializes all of its parts. The const_cccmd method then actually +returns the definition of the \s-1CCCMD\s0 macro which uses these parts. +.IP "const_cccmd (o)" 4 +.IX Item "const_cccmd (o)" +Returns the full compiler call for C programs and stores the +definition in \s-1CONST_CCCMD.\s0 +.IP "const_config (o)" 4 +.IX Item "const_config (o)" +Sets \s-1SHELL\s0 if needed, then defines a couple of constants in the Makefile +that are imported from \f(CW%Config\fR. +.IP "const_loadlibs (o)" 4 +.IX Item "const_loadlibs (o)" +Defines \s-1EXTRALIBS, LDLOADLIBS, BSLOADLIBS, LD_RUN_PATH.\s0 See +ExtUtils::Liblist for details. +.IP "constants (o)" 4 +.IX Item "constants (o)" +.Vb 1 +\& my $make_frag = $mm\->constants; +.Ve +.Sp +Prints out macros for lots of constants. +.IP "depend (o)" 4 +.IX Item "depend (o)" +Same as macro for the depend attribute. +.IP "init_DEST" 4 +.IX Item "init_DEST" +.Vb 1 +\& $mm\->init_DEST +.Ve +.Sp +Defines the \s-1DESTDIR\s0 and DEST* variables paralleling the INSTALL*. +.IP "init_dist" 4 +.IX Item "init_dist" +.Vb 1 +\& $mm\->init_dist; +.Ve +.Sp +Defines a lot of macros for distribution support. +.Sp +.Vb 1 +\& macro description default +\& +\& TAR tar command to use tar +\& TARFLAGS flags to pass to TAR cvf +\& +\& ZIP zip command to use zip +\& ZIPFLAGS flags to pass to ZIP \-r +\& +\& COMPRESS compression command to gzip \-\-best +\& use for tarfiles +\& SUFFIX suffix to put on .gz +\& compressed files +\& +\& SHAR shar command to use shar +\& +\& PREOP extra commands to run before +\& making the archive +\& POSTOP extra commands to run after +\& making the archive +\& +\& TO_UNIX a command to convert linefeeds +\& to Unix style in your archive +\& +\& CI command to checkin your ci \-u +\& sources to version control +\& RCS_LABEL command to label your sources rcs \-Nv$(VERSION_SYM): \-q +\& just after CI is run +\& +\& DIST_CP $how argument to manicopy() best +\& when the distdir is created +\& +\& DIST_DEFAULT default target to use to tardist +\& create a distribution +\& +\& DISTVNAME name of the resulting archive $(DISTNAME)\-$(VERSION) +\& (minus suffixes) +.Ve +.IP "dist (o)" 4 +.IX Item "dist (o)" +.Vb 1 +\& my $dist_macros = $mm\->dist(%overrides); +.Ve +.Sp +Generates a make fragment defining all the macros initialized in +init_dist. +.Sp +\&\f(CW%overrides\fR can be used to override any of the above. +.IP "dist_basics (o)" 4 +.IX Item "dist_basics (o)" +Defines the targets distclean, distcheck, skipcheck, manifest, veryclean. +.IP "dist_ci (o)" 4 +.IX Item "dist_ci (o)" +Defines a check in target for \s-1RCS.\s0 +.IP "dist_core (o)" 4 +.IX Item "dist_core (o)" +.Vb 1 +\& my $dist_make_fragment = $MM\->dist_core; +.Ve +.Sp +Puts the targets necessary for 'make dist' together into one make +fragment. +.IP "\fBdist_target\fR" 4 +.IX Item "dist_target" +.Vb 1 +\& my $make_frag = $MM\->dist_target; +.Ve +.Sp +Returns the 'dist' target to make an archive for distribution. This +target simply checks to make sure the Makefile is up-to-date and +depends on $(\s-1DIST_DEFAULT\s0). +.IP "\fBtardist_target\fR" 4 +.IX Item "tardist_target" +.Vb 1 +\& my $make_frag = $MM\->tardist_target; +.Ve +.Sp +Returns the 'tardist' target which is simply so 'make tardist' works. +The real work is done by the dynamically named \fBtardistfile_target()\fR +method, tardist should have that as a dependency. +.IP "\fBzipdist_target\fR" 4 +.IX Item "zipdist_target" +.Vb 1 +\& my $make_frag = $MM\->zipdist_target; +.Ve +.Sp +Returns the 'zipdist' target which is simply so 'make zipdist' works. +The real work is done by the dynamically named \fBzipdistfile_target()\fR +method, zipdist should have that as a dependency. +.IP "\fBtarfile_target\fR" 4 +.IX Item "tarfile_target" +.Vb 1 +\& my $make_frag = $MM\->tarfile_target; +.Ve +.Sp +The name of this target is the name of the tarball generated by +tardist. This target does the actual work of turning the distdir into +a tarball. +.IP "zipfile_target" 4 +.IX Item "zipfile_target" +.Vb 1 +\& my $make_frag = $MM\->zipfile_target; +.Ve +.Sp +The name of this target is the name of the zip file generated by +zipdist. This target does the actual work of turning the distdir into +a zip file. +.IP "uutardist_target" 4 +.IX Item "uutardist_target" +.Vb 1 +\& my $make_frag = $MM\->uutardist_target; +.Ve +.Sp +Converts the tarfile into a uuencoded file +.IP "shdist_target" 4 +.IX Item "shdist_target" +.Vb 1 +\& my $make_frag = $MM\->shdist_target; +.Ve +.Sp +Converts the distdir into a shell archive. +.IP "dlsyms (o)" 4 +.IX Item "dlsyms (o)" +Used by some \s-1OS\s0' to define \s-1DL_FUNCS\s0 and \s-1DL_VARS\s0 and write the *.exp files. +.Sp +Normally just returns an empty string. +.IP "dynamic_bs (o)" 4 +.IX Item "dynamic_bs (o)" +Defines targets for bootstrap files. +.IP "dynamic_lib (o)" 4 +.IX Item "dynamic_lib (o)" +Defines how to produce the *.so (or equivalent) files. +.IP "xs_dynamic_lib_macros" 4 +.IX Item "xs_dynamic_lib_macros" +Defines the macros for the \f(CW\*(C`dynamic_lib\*(C'\fR section. +.IP "xs_make_dynamic_lib" 4 +.IX Item "xs_make_dynamic_lib" +Defines the recipes for the \f(CW\*(C`dynamic_lib\*(C'\fR section. +.IP "exescan" 4 +.IX Item "exescan" +Deprecated method. Use libscan instead. +.IP "extliblist" 4 +.IX Item "extliblist" +Called by init_others, and calls ext ExtUtils::Liblist. See +ExtUtils::Liblist for details. +.IP "find_perl" 4 +.IX Item "find_perl" +Finds the executables \s-1PERL\s0 and \s-1FULLPERL\s0 +.IP "fixin" 4 +.IX Item "fixin" +.Vb 1 +\& $mm\->fixin(@files); +.Ve +.Sp +Inserts the sharpbang or equivalent magic number to a set of \f(CW@files\fR. +.IP "force (o)" 4 +.IX Item "force (o)" +Writes an empty \s-1FORCE:\s0 target. +.IP "guess_name" 4 +.IX Item "guess_name" +Guess the name of this package by examining the working directory's +name. MakeMaker calls this only if the developer has not supplied a +\&\s-1NAME\s0 attribute. +.IP "has_link_code" 4 +.IX Item "has_link_code" +Returns true if C, \s-1XS, MYEXTLIB\s0 or similar objects exist within this +object that need a compiler. Does not descend into subdirectories as +\&\fBneeds_linking()\fR does. +.IP "init_dirscan" 4 +.IX Item "init_dirscan" +Scans the directory structure and initializes \s-1DIR, XS, XS_FILES, +C, C_FILES, O_FILES, H, H_FILES, PL_FILES, EXE_FILES.\s0 +.Sp +Called by init_main. +.IP "init_MANPODS" 4 +.IX Item "init_MANPODS" +Determines if man pages should be generated and initializes \s-1MAN1PODS\s0 +and \s-1MAN3PODS\s0 as appropriate. +.IP "init_MAN1PODS" 4 +.IX Item "init_MAN1PODS" +Initializes \s-1MAN1PODS\s0 from the list of \s-1EXE_FILES.\s0 +.IP "init_MAN3PODS" 4 +.IX Item "init_MAN3PODS" +Initializes \s-1MAN3PODS\s0 from the list of \s-1PM\s0 files. +.IP "init_PM" 4 +.IX Item "init_PM" +Initializes \s-1PMLIBDIRS\s0 and \s-1PM\s0 from \s-1PMLIBDIRS.\s0 +.IP "init_DIRFILESEP" 4 +.IX Item "init_DIRFILESEP" +Using / for Unix. Called by init_main. +.IP "init_main" 4 +.IX Item "init_main" +Initializes \s-1AR, AR_STATIC_ARGS, BASEEXT, CONFIG, DISTNAME, DLBASE, +EXE_EXT, FULLEXT, FULLPERL, FULLPERLRUN, FULLPERLRUNINST,\s0 INST_*, +INSTALL*, \s-1INSTALLDIRS, LIB_EXT, LIBPERL_A, MAP_TARGET, NAME, +OBJ_EXT, PARENT_NAME, PERL, PERL_ARCHLIB, PERL_INC, PERL_LIB, +PERL_SRC, PERLRUN, PERLRUNINST, PREFIX, VERSION, +VERSION_SYM, XS_VERSION.\s0 +.IP "init_tools" 4 +.IX Item "init_tools" +Initializes tools to use their common (and faster) Unix commands. +.IP "init_linker" 4 +.IX Item "init_linker" +Unix has no need of special linker flags. +.IP "init_PERL" 4 +.IX Item "init_PERL" +.Vb 1 +\& $mm\->init_PERL; +.Ve +.Sp +Called by init_main. Sets up \s-1ABSPERL, PERL, FULLPERL\s0 and all the +*PERLRUN* permutations. +.Sp +.Vb 2 +\& PERL is allowed to be miniperl +\& FULLPERL must be a complete perl +\& +\& ABSPERL is PERL converted to an absolute path +\& +\& *PERLRUN contains everything necessary to run perl, find it\*(Aqs +\& libraries, etc... +\& +\& *PERLRUNINST is *PERLRUN + everything necessary to find the +\& modules being built. +.Ve +.IP "init_platform" 4 +.IX Item "init_platform" +.PD 0 +.IP "platform_constants" 4 +.IX Item "platform_constants" +.PD +Add MM_Unix_VERSION. +.IP "init_PERM" 4 +.IX Item "init_PERM" +.Vb 1 +\& $mm\->init_PERM +.Ve +.Sp +Called by init_main. Initializes PERL_* +.IP "init_xs" 4 +.IX Item "init_xs" +.Vb 1 +\& $mm\->init_xs +.Ve +.Sp +Sets up macros having to do with \s-1XS\s0 code. Currently just \s-1INST_STATIC, +INST_DYNAMIC\s0 and \s-1INST_BOOT.\s0 +.IP "install (o)" 4 +.IX Item "install (o)" +Defines the install target. +.IP "installbin (o)" 4 +.IX Item "installbin (o)" +Defines targets to make and to install \s-1EXE_FILES.\s0 +.IP "linkext (o)" 4 +.IX Item "linkext (o)" +Defines the linkext target which in turn defines the \s-1LINKTYPE.\s0 +.IP "lsdir" 4 +.IX Item "lsdir" +Takes as arguments a directory name and a regular expression. Returns +all entries in the directory that match the regular expression. +.IP "macro (o)" 4 +.IX Item "macro (o)" +Simple subroutine to insert the macros defined by the macro attribute +into the Makefile. +.IP "makeaperl (o)" 4 +.IX Item "makeaperl (o)" +Called by staticmake. Defines how to write the Makefile to produce a +static new perl. +.Sp +By default the Makefile produced includes all the static extensions in +the perl library. (Purified versions of library files, e.g., +DynaLoader_pure_p1_c0_032.a are automatically ignored to avoid link errors.) +.IP "xs_static_lib_is_xs (o)" 4 +.IX Item "xs_static_lib_is_xs (o)" +Called by a utility method of makeaperl. Checks whether a given file +is an \s-1XS\s0 library by seeing whether it defines any symbols starting +with \f(CW\*(C`boot_\*(C'\fR (with an optional leading underscore \- needed on MacOS). +.IP "makefile (o)" 4 +.IX Item "makefile (o)" +Defines how to rewrite the Makefile. +.IP "maybe_command" 4 +.IX Item "maybe_command" +Returns true, if the argument is likely to be a command. +.IP "needs_linking (o)" 4 +.IX Item "needs_linking (o)" +Does this module need linking? Looks into subdirectory objects (see +also \fBhas_link_code()\fR) +.IP "parse_abstract" 4 +.IX Item "parse_abstract" +parse a file and return what you think is the \s-1ABSTRACT\s0 +.IP "parse_version" 4 +.IX Item "parse_version" +.Vb 1 +\& my $version = MM\->parse_version($file); +.Ve +.Sp +Parse a \f(CW$file\fR and return what \f(CW$VERSION\fR is set to by the first assignment. +It will return the string \*(L"undef\*(R" if it can't figure out what \f(CW$VERSION\fR +is. \f(CW$VERSION\fR should be for all to see, so \f(CW\*(C`our $VERSION\*(C'\fR or plain \f(CW$VERSION\fR +are okay, but \f(CW\*(C`my $VERSION\*(C'\fR is not. +.Sp +\&\f(CW\*(C`package Foo VERSION\*(C'\fR is also checked for. The first version +declaration found is used, but this may change as it differs from how +Perl does it. +.Sp +\&\fBparse_version()\fR will try to \f(CW\*(C`use version\*(C'\fR before checking for +\&\f(CW$VERSION\fR so the following will work. +.Sp +.Vb 1 +\& $VERSION = qv(1.2.3); +.Ve +.IP "pasthru (o)" 4 +.IX Item "pasthru (o)" +Defines the string that is passed to recursive make calls in +subdirectories. The variables like \f(CW\*(C`PASTHRU_DEFINE\*(C'\fR are used in each +level, and passed downwards on the command-line with e.g. the value of +that level's \s-1DEFINE.\s0 Example: +.Sp +.Vb 6 +\& # Level 0 has DEFINE = \-Dfunky +\& # This code will define level 0\*(Aqs PASTHRU=PASTHRU_DEFINE="$(DEFINE) +\& # $(PASTHRU_DEFINE)" +\& # Level 0\*(Aqs $(CCCMD) will include macros $(DEFINE) and $(PASTHRU_DEFINE) +\& # So will level 1\*(Aqs, so when level 1 compiles, it will get right values +\& # And so ad infinitum +.Ve +.IP "perl_script" 4 +.IX Item "perl_script" +Takes one argument, a file name, and returns the file name, if the +argument is likely to be a perl script. On MM_Unix this is true for +any ordinary, readable file. +.IP "perldepend (o)" 4 +.IX Item "perldepend (o)" +Defines the dependency from all *.h files that come with the perl +distribution. +.IP "pm_to_blib" 4 +.IX Item "pm_to_blib" +Defines target that copies all files in the hash \s-1PM\s0 to their +destination and autosplits them. See \*(L"\s-1DESCRIPTION\*(R"\s0 in ExtUtils::Install +.IP "ppd" 4 +.IX Item "ppd" +Defines target that creates a \s-1PPD\s0 (Perl Package Description) file +for a binary distribution. +.IP "prefixify" 4 +.IX Item "prefixify" +.Vb 1 +\& $MM\->prefixify($var, $prefix, $new_prefix, $default); +.Ve +.Sp +Using either \f(CW$MM\fR\->{uc \f(CW$var\fR} || \f(CW$Config\fR{lc \f(CW$var\fR}, it will attempt to +replace it's \f(CW$prefix\fR with a \f(CW$new_prefix\fR. +.Sp +Should the \f(CW$prefix\fR fail to match \fI\s-1AND\s0\fR a \s-1PREFIX\s0 was given as an +argument to \fBWriteMakefile()\fR it will set it to the \f(CW$new_prefix\fR + +\&\f(CW$default\fR. This is for systems whose file layouts don't neatly fit into +our ideas of prefixes. +.Sp +This is for heuristics which attempt to create directory structures +that mirror those of the installed perl. +.Sp +For example: +.Sp +.Vb 1 +\& $MM\->prefixify(\*(Aqinstallman1dir\*(Aq, \*(Aq/usr\*(Aq, \*(Aq/home/foo\*(Aq, \*(Aqman/man1\*(Aq); +.Ve +.Sp +this will attempt to remove '/usr' from the front of the +\&\f(CW$MM\fR\->{\s-1INSTALLMAN1DIR\s0} path (initializing it to \f(CW$Config\fR{installman1dir} +if necessary) and replace it with '/home/foo'. If this fails it will +simply use '/home/foo/man/man1'. +.IP "processPL (o)" 4 +.IX Item "processPL (o)" +Defines targets to run *.PL files. +.IP "specify_shell" 4 +.IX Item "specify_shell" +Specify \s-1SHELL\s0 if needed \- not done on Unix. +.IP "quote_paren" 4 +.IX Item "quote_paren" +Backslashes parentheses \f(CW\*(C`()\*(C'\fR in command line arguments. +Doesn't handle recursive Makefile \f(CW\*(C`$(...)\*(C'\fR constructs, +but handles simple ones. +.IP "replace_manpage_separator" 4 +.IX Item "replace_manpage_separator" +.Vb 1 +\& my $man_name = $MM\->replace_manpage_separator($file_path); +.Ve +.Sp +Takes the name of a package, which may be a nested package, in the +form 'Foo/Bar.pm' and replaces the slash with \f(CW\*(C`::\*(C'\fR or something else +safe for a man page file name. Returns the replacement. +.IP "cd" 4 +.IX Item "cd" +.PD 0 +.IP "oneliner" 4 +.IX Item "oneliner" +.IP "quote_literal" 4 +.IX Item "quote_literal" +.PD +Quotes macro literal value suitable for being used on a command line so +that when expanded by make, will be received by command as given to +this method: +.Sp +.Vb 6 +\& my $quoted = $mm\->quote_literal(q{it isn\*(Aqt}); +\& # returns: +\& # \*(Aqit isn\*(Aq\e\*(Aq\*(Aqt\*(Aq +\& print MAKEFILE "target:\en\etecho $quoted\en"; +\& # when run "make target", will output: +\& # it isn\*(Aqt +.Ve +.IP "escape_newlines" 4 +.IX Item "escape_newlines" +.PD 0 +.IP "max_exec_len" 4 +.IX Item "max_exec_len" +.PD +Using \s-1POSIX\s0::ARG_MAX. Otherwise falling back to 4096. +.IP "static (o)" 4 +.IX Item "static (o)" +Defines the static target. +.IP "xs_make_static_lib" 4 +.IX Item "xs_make_static_lib" +Defines the recipes for the \f(CW\*(C`static_lib\*(C'\fR section. +.IP "static_lib_closures" 4 +.IX Item "static_lib_closures" +Records \f(CW\*(C`$(EXTRALIBS)\*(C'\fR in \fIextralibs.ld\fR and \fI$(\s-1PERL_SRC\s0)/ext.libs\fR. +.IP "static_lib_fixtures" 4 +.IX Item "static_lib_fixtures" +Handles copying \f(CW\*(C`$(MYEXTLIB)\*(C'\fR as starter for final static library that +then gets added to. +.IP "static_lib_pure_cmd" 4 +.IX Item "static_lib_pure_cmd" +Defines how to run the archive utility. +.IP "staticmake (o)" 4 +.IX Item "staticmake (o)" +Calls makeaperl. +.IP "subdir_x (o)" 4 +.IX Item "subdir_x (o)" +Helper subroutine for subdirs +.IP "subdirs (o)" 4 +.IX Item "subdirs (o)" +Defines targets to process subdirectories. +.IP "test (o)" 4 +.IX Item "test (o)" +Defines the test targets. +.IP "test_via_harness (override)" 4 +.IX Item "test_via_harness (override)" +For some reason which I forget, Unix machines like to have +\&\s-1PERL_DL_NONLAZY\s0 set for tests. +.IP "test_via_script (override)" 4 +.IX Item "test_via_script (override)" +Again, the \s-1PERL_DL_NONLAZY\s0 thing. +.IP "tool_xsubpp (o)" 4 +.IX Item "tool_xsubpp (o)" +Determines typemaps, xsubpp version, prototype behaviour. +.IP "all_target" 4 +.IX Item "all_target" +Build man pages, too +.IP "top_targets (o)" 4 +.IX Item "top_targets (o)" +Defines the targets all, subdirs, config, and O_FILES +.IP "writedoc" 4 +.IX Item "writedoc" +Obsolete, deprecated method. Not used since Version 5.21. +.IP "xs_c (o)" 4 +.IX Item "xs_c (o)" +Defines the suffix rules to compile \s-1XS\s0 files to C. +.IP "xs_cpp (o)" 4 +.IX Item "xs_cpp (o)" +Defines the suffix rules to compile \s-1XS\s0 files to \*(C+. +.IP "xs_o (o)" 4 +.IX Item "xs_o (o)" +Defines suffix rules to go from \s-1XS\s0 to object files directly. This was +originally only intended for broken make implementations, but is now +necessary for per-XS file under \f(CW\*(C`XSMULTI\*(C'\fR, since each \s-1XS\s0 file might +have an individual \f(CW\*(C`$(VERSION)\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VMS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VMS.3 new file mode 100644 index 0000000000000000000000000000000000000000..55857d630785b85e462061c32ef058f358275396 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VMS.3 @@ -0,0 +1,472 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_VMS 3" +.TH ExtUtils::MM_VMS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_VMS \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& Do not use this directly. +\& Instead, use ExtUtils::MM and it will figure out which MM_* +\& class to use for you. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.SS "Methods always loaded" +.IX Subsection "Methods always loaded" +.IP "wraplist" 4 +.IX Item "wraplist" +Converts a list into a string wrapped at approximately 80 columns. +.SS "Methods" +.IX Subsection "Methods" +Those methods which override default MM_Unix methods are marked +\&\*(L"(override)\*(R", while methods unique to \s-1MM_VMS\s0 are marked \*(L"(specific)\*(R". +For overridden methods, documentation is limited to an explanation +of why this method overrides the MM_Unix method; see the ExtUtils::MM_Unix +documentation for more details. +.IP "guess_name (override)" 4 +.IX Item "guess_name (override)" +Try to determine name of extension being built. We begin with the name +of the current directory. Since \s-1VMS\s0 filenames are case-insensitive, +however, we look for a \fI.pm\fR file whose name matches that of the current +directory (presumably the 'main' \fI.pm\fR file for this extension), and try +to find a \f(CW\*(C`package\*(C'\fR statement from which to obtain the Mixed::Case +package name. +.IP "find_perl (override)" 4 +.IX Item "find_perl (override)" +Use \s-1VMS\s0 file specification syntax and \s-1CLI\s0 commands to find and +invoke Perl images. +.IP "_fixin_replace_shebang (override)" 4 +.IX Item "_fixin_replace_shebang (override)" +Helper routine for \s-1MM\-\s0>\fBfixin()\fR, overridden +because there's no such thing as an +actual shebang line that will be interpreted by the shell, so we just prepend +\&\f(CW$Config\fR{startperl} and preserve the shebang line argument for any switches it +may contain. +.IP "maybe_command (override)" 4 +.IX Item "maybe_command (override)" +Follows \s-1VMS\s0 naming conventions for executable files. +If the name passed in doesn't exactly match an executable file, +appends \fI.Exe\fR (or equivalent) to check for executable image, and \fI.Com\fR +to check for \s-1DCL\s0 procedure. If this fails, checks directories in \s-1DCL$PATH\s0 +and finally \fISys$System:\fR for an executable file having the name specified, +with or without the \fI.Exe\fR\-equivalent suffix. +.IP "pasthru (override)" 4 +.IX Item "pasthru (override)" +The list of macro definitions to be passed through must be specified using +the /MACRO qualifier and must not add another /DEFINE qualifier. We prepend +our own comma here to the contents of $(\s-1PASTHRU_DEFINE\s0) because it is often +empty and a comma always present in \s-1CCFLAGS\s0 would generate a missing +qualifier value error. +.IP "pm_to_blib (override)" 4 +.IX Item "pm_to_blib (override)" +\&\s-1VMS\s0 wants a dot in every file so we can't have one called 'pm_to_blib', +it becomes 'pm_to_blib.' and \s-1MMS/K\s0 isn't smart enough to know that when +you have a target called 'pm_to_blib' it should look for 'pm_to_blib.'. +.Sp +So in \s-1VMS\s0 its pm_to_blib.ts. +.IP "perl_script (override)" 4 +.IX Item "perl_script (override)" +If name passed in doesn't specify a readable file, appends \fI.com\fR or +\&\fI.pl\fR and tries again, since it's customary to have file types on all files +under \s-1VMS.\s0 +.IP "replace_manpage_separator" 4 +.IX Item "replace_manpage_separator" +Use as separator a character which is legal in a VMS-syntax file name. +.IP "init_DEST" 4 +.IX Item "init_DEST" +(override) Because of the difficulty concatenating \s-1VMS\s0 filepaths we +must pre-expand the DEST* variables. +.IP "init_DIRFILESEP" 4 +.IX Item "init_DIRFILESEP" +No separator between a directory path and a filename on \s-1VMS.\s0 +.IP "init_main (override)" 4 +.IX Item "init_main (override)" +.PD 0 +.IP "init_tools (override)" 4 +.IX Item "init_tools (override)" +.PD +Provide VMS-specific forms of various utility commands. +.Sp +Sets \s-1DEV_NULL\s0 to nothing because I don't know how to do it on \s-1VMS.\s0 +.Sp +Changes \s-1EQUALIZE_TIMESTAMP\s0 to set revision date of target file to +one second later than source file, since \s-1MMK\s0 interprets precisely +equal revision dates for a source and target file as a sign that the +target needs to be updated. +.IP "init_platform (override)" 4 +.IX Item "init_platform (override)" +Add \s-1PERL_VMS, MM_VMS_REVISION\s0 and \s-1MM_VMS_VERSION.\s0 +.Sp +\&\s-1MM_VMS_REVISION\s0 is for backwards compatibility before \s-1MM_VMS\s0 had a +\&\f(CW$VERSION\fR. +.IP "platform_constants" 4 +.IX Item "platform_constants" +.PD 0 +.IP "init_VERSION (override)" 4 +.IX Item "init_VERSION (override)" +.PD +Override the *DEFINE_VERSION macros with \s-1VMS\s0 semantics. Translate the +\&\s-1MAKEMAKER\s0 filepath to \s-1VMS\s0 style. +.IP "constants (override)" 4 +.IX Item "constants (override)" +Fixes up numerous file and directory macros to insure \s-1VMS\s0 syntax +regardless of input syntax. Also makes lists of files +comma-separated. +.IP "special_targets" 4 +.IX Item "special_targets" +Clear the default .SUFFIXES and put in our own list. +.IP "cflags (override)" 4 +.IX Item "cflags (override)" +Bypass shell script and produce qualifiers for \s-1CC\s0 directly (but warn +user if a shell script for this extension exists). Fold multiple +/Defines into one, since some C compilers pay attention to only one +instance of this qualifier on the command line. +.IP "const_cccmd (override)" 4 +.IX Item "const_cccmd (override)" +Adds directives to point C preprocessor to the right place when +handling #include directives. Also constructs \s-1CC\s0 +command line a bit differently than MM_Unix method. +.IP "tools_other (override)" 4 +.IX Item "tools_other (override)" +Throw in some dubious extra macros for Makefile args. +.Sp +Also keep around the old $(\s-1SAY\s0) macro in case somebody's using it. +.IP "init_dist (override)" 4 +.IX Item "init_dist (override)" +VMSish defaults for some values. +.Sp +.Vb 1 +\& macro description default +\& +\& ZIPFLAGS flags to pass to ZIP \-Vu +\& +\& COMPRESS compression command to gzip +\& use for tarfiles +\& SUFFIX suffix to put on \-gz +\& compressed files +\& +\& SHAR shar command to use vms_share +\& +\& DIST_DEFAULT default target to use to tardist +\& create a distribution +\& +\& DISTVNAME Use VERSION_SYM instead of $(DISTNAME)\-$(VERSION_SYM) +\& VERSION for the name +.Ve +.IP "c_o (override)" 4 +.IX Item "c_o (override)" +Use \s-1VMS\s0 syntax on command line. In particular, $(\s-1DEFINE\s0) and +$(\s-1PERL_INC\s0) have been pulled into $(\s-1CCCMD\s0). Also use MM[\s-1SK\s0] macros. +.IP "xs_c (override)" 4 +.IX Item "xs_c (override)" +Use MM[\s-1SK\s0] macros. +.IP "xs_o (override)" 4 +.IX Item "xs_o (override)" +Use MM[\s-1SK\s0] macros, and \s-1VMS\s0 command line for C compiler. +.IP "_xsbuild_replace_macro (override)" 4 +.IX Item "_xsbuild_replace_macro (override)" +There is no simple replacement possible since a qualifier and all its +subqualifiers must be considered together, so we use our own utility +routine for the replacement. +.IP "_xsbuild_value (override)" 4 +.IX Item "_xsbuild_value (override)" +Convert the extension spec to Unix format, as that's what will +match what's in the \s-1XSBUILD\s0 data structure. +.IP "dlsyms (override)" 4 +.IX Item "dlsyms (override)" +Create \s-1VMS\s0 linker options files specifying universal symbols for this +extension's shareable image(s), and listing other shareable images or +libraries to which it should be linked. +.IP "xs_obj_opt" 4 +.IX Item "xs_obj_opt" +Override to fixup \-o flags. +.IP "dynamic_lib (override)" 4 +.IX Item "dynamic_lib (override)" +Use \s-1VMS\s0 Link command. +.IP "xs_make_static_lib (override)" 4 +.IX Item "xs_make_static_lib (override)" +Use \s-1VMS\s0 commands to manipulate object library. +.IP "static_lib_pure_cmd (override)" 4 +.IX Item "static_lib_pure_cmd (override)" +Use \s-1VMS\s0 commands to manipulate object library. +.IP "xs_static_lib_is_xs" 4 +.IX Item "xs_static_lib_is_xs" +.PD 0 +.IP "extra_clean_files" 4 +.IX Item "extra_clean_files" +.PD +Clean up some \s-1OS\s0 specific files. Plus the temp file used to shorten +a lot of commands. And the name mangler database. +.IP "zipfile_target" 4 +.IX Item "zipfile_target" +.PD 0 +.IP "tarfile_target" 4 +.IX Item "tarfile_target" +.IP "shdist_target" 4 +.IX Item "shdist_target" +.PD +Syntax for invoking shar, tar and zip differs from that for Unix. +.IP "install (override)" 4 +.IX Item "install (override)" +Work around \s-1DCL\s0's 255 character limit several times,and use +VMS-style command line quoting in a few cases. +.IP "perldepend (override)" 4 +.IX Item "perldepend (override)" +Use VMS-style syntax for files; it's cheaper to just do it directly here +than to have the MM_Unix method call \f(CW\*(C`catfile\*(C'\fR +repeatedly. Also, if we have to rebuild Config.pm, use MM[\s-1SK\s0] to do it. +.IP "makeaperl (override)" 4 +.IX Item "makeaperl (override)" +Undertake to build a new set of Perl images using \s-1VMS\s0 commands. Since +\&\s-1VMS\s0 does dynamic loading, it's not necessary to statically link each +extension into the Perl image, so this isn't the normal build path. +Consequently, it hasn't really been tested, and may well be incomplete. +.IP "maketext_filter (override)" 4 +.IX Item "maketext_filter (override)" +Ensure that colons marking targets are preceded by space, in order +to distinguish the target delimiter from a colon appearing as +part of a filespec. +.IP "prefixify (override)" 4 +.IX Item "prefixify (override)" +prefixifying on \s-1VMS\s0 is simple. Each should simply be: +.Sp +.Vb 1 +\& perl_root:[some.dir] +.Ve +.Sp +which can just be converted to: +.Sp +.Vb 1 +\& volume:[your.prefix.some.dir] +.Ve +.Sp +otherwise you get the default layout. +.Sp +In effect, your search prefix is ignored and \f(CW$Config\fR{vms_prefix} is +used instead. +.IP "cd" 4 +.IX Item "cd" +.PD 0 +.IP "oneliner" 4 +.IX Item "oneliner" +.IP "\fBecho\fR" 4 +.IX Item "echo" +.PD +perl trips up on \*(L"\*(R" thinking it's an input redirect. So we use the +native Write command instead. Besides, it's faster. +.IP "quote_literal" 4 +.IX Item "quote_literal" +.PD 0 +.IP "escape_dollarsigns" 4 +.IX Item "escape_dollarsigns" +.PD +Quote, don't escape. +.IP "escape_all_dollarsigns" 4 +.IX Item "escape_all_dollarsigns" +Quote, don't escape. +.IP "escape_newlines" 4 +.IX Item "escape_newlines" +.PD 0 +.IP "max_exec_len" 4 +.IX Item "max_exec_len" +.PD +256 characters. +.IP "init_linker" 4 +.IX Item "init_linker" +.PD 0 +.IP "catdir (override)" 4 +.IX Item "catdir (override)" +.IP "catfile (override)" 4 +.IX Item "catfile (override)" +.PD +Eliminate the macros in the output to the \s-1MMS/MMK\s0 file. +.Sp +(File::Spec::VMS used to do this for us, but it's being removed) +.IP "eliminate_macros" 4 +.IX Item "eliminate_macros" +Expands MM[\s-1KS\s0]/Make macros in a text string, using the contents of +identically named elements of \f(CW%$self\fR, and returns the result +as a file specification in Unix syntax. +.Sp +\&\s-1NOTE:\s0 This is the canonical version of the method. The version in +File::Spec::VMS is deprecated. +.IP "fixpath" 4 +.IX Item "fixpath" +.Vb 2 +\& my $path = $mm\->fixpath($path); +\& my $path = $mm\->fixpath($path, $is_dir); +.Ve +.Sp +Catchall routine to clean up problem MM[\s-1SK\s0]/Make macros. Expands macros +in any directory specification, in order to avoid juxtaposing two +VMS-syntax directories when MM[\s-1SK\s0] is run. Also expands expressions which +are all macro, so that we can tell how long the expansion is, and avoid +overrunning \s-1DCL\s0's command buffer when MM[\s-1KS\s0] is running. +.Sp +\&\fBfixpath()\fR checks to see whether the result matches the name of a +directory in the current default directory and returns a directory or +file specification accordingly. \f(CW$is_dir\fR can be set to true to +force \fBfixpath()\fR to consider the path to be a directory or false to force +it to be a file. +.Sp +\&\s-1NOTE:\s0 This is the canonical version of the method. The version in +File::Spec::VMS is deprecated. +.IP "os_flavor" 4 +.IX Item "os_flavor" +\&\s-1VMS\s0 is \s-1VMS.\s0 +.IP "is_make_type (override)" 4 +.IX Item "is_make_type (override)" +None of the make types being checked for is viable on \s-1VMS,\s0 +plus our \f(CW$self\fR\->{\s-1MAKE\s0} is an unexpanded (and unexpandable) +macro whose value is known only to the make utility itself. +.IP "make_type (override)" 4 +.IX Item "make_type (override)" +Returns a suitable string describing the type of makefile being written. +.SH "AUTHOR" +.IX Header "AUTHOR" +Original author Charles Bailey \fIbailey@newman.upenn.edu\fR +.PP +Maintained by Michael G Schwern \fIschwern@pobox.com\fR +.PP +See ExtUtils::MakeMaker for patching and contact information. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VOS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VOS.3 new file mode 100644 index 0000000000000000000000000000000000000000..5ca97de6169951bdae309ecd6a8799e7da1463af --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_VOS.3 @@ -0,0 +1,166 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_VOS 3" +.TH ExtUtils::MM_VOS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_VOS \- VOS specific subclass of ExtUtils::MM_Unix +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& Don\*(Aqt use this module directly. +\& Use ExtUtils::MM and let it choose. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Unix which contains functionality for +\&\s-1VOS.\s0 +.PP +Unless otherwise stated it works just like ExtUtils::MM_Unix. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +\fIextra_clean_files\fR +.IX Subsection "extra_clean_files" +.PP +Cleanup \s-1VOS\s0 core files +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern with code from ExtUtils::MM_Unix +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win32.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win32.3 new file mode 100644 index 0000000000000000000000000000000000000000..cc622767a5a8573c38a06bc5ab450c2f80b53172 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win32.3 @@ -0,0 +1,266 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Win32 3" +.TH ExtUtils::MM_Win32 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Win32 \- methods to override UN*X behaviour in ExtUtils::MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MM_Win32; # Done internally by ExtUtils::MakeMaker if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See ExtUtils::MM_Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +.IP "\fBdlsyms\fR" 4 +.IX Item "dlsyms" +.PD 0 +.IP "xs_dlsyms_ext" 4 +.IX Item "xs_dlsyms_ext" +.PD +On Win32, is \f(CW\*(C`.def\*(C'\fR. +.IP "replace_manpage_separator" 4 +.IX Item "replace_manpage_separator" +Changes the path separator with . +.IP "\fBmaybe_command\fR" 4 +.IX Item "maybe_command" +Since Windows has nothing as simple as an executable bit, we check the +file extension. +.Sp +The \s-1PATHEXT\s0 env variable will be used to get a list of extensions that +might indicate a command, otherwise .com, .exe, .bat and .cmd will be +used by default. +.IP "\fBinit_DIRFILESEP\fR" 4 +.IX Item "init_DIRFILESEP" +Using \e for Windows, except for \*(L"gmake\*(R" where it is /. +.IP "init_tools" 4 +.IX Item "init_tools" +Override some of the slower, portable commands with Windows specific ones. +.IP "init_others" 4 +.IX Item "init_others" +Override the default link and compile tools. +.Sp +\&\s-1LDLOADLIBS\s0's default is changed to \f(CW$Config\fR{libs}. +.Sp +Adjustments are made for Borland's quirks needing \-L to come first. +.IP "init_platform" 4 +.IX Item "init_platform" +Add MM_Win32_VERSION. +.IP "platform_constants" 4 +.IX Item "platform_constants" +.PD 0 +.IP "specify_shell" 4 +.IX Item "specify_shell" +.PD +Set \s-1SHELL\s0 to \f(CW$ENV\fR{\s-1COMSPEC\s0} only if make is type 'gmake'. +.IP "constants" 4 +.IX Item "constants" +Add \s-1MAXLINELENGTH\s0 for dmake before all the constants are output. +.IP "special_targets" 4 +.IX Item "special_targets" +Add .USESHELL target for dmake. +.IP "static_lib_pure_cmd" 4 +.IX Item "static_lib_pure_cmd" +Defines how to run the archive utility +.IP "dynamic_lib" 4 +.IX Item "dynamic_lib" +Methods are overridden here: not dynamic_lib itself, but the utility +ones that do the OS-specific work. +.IP "extra_clean_files" 4 +.IX Item "extra_clean_files" +Clean out some extra dll.{base,exp} files which might be generated by +gcc. Otherwise, take out all *.pdb files. +.IP "init_linker" 4 +.IX Item "init_linker" +.PD 0 +.IP "perl_script" 4 +.IX Item "perl_script" +.PD +Checks for the perl program under several common perl extensions. +.IP "quote_dep" 4 +.IX Item "quote_dep" +.PD 0 +.IP "xs_obj_opt" 4 +.IX Item "xs_obj_opt" +.PD +Override to fixup \-o flags for \s-1MSVC.\s0 +.IP "pasthru" 4 +.IX Item "pasthru" +All we send is \-nologo to nmake to prevent it from printing its damned +banner. +.IP "arch_check (override)" 4 +.IX Item "arch_check (override)" +Normalize all arguments for consistency of comparison. +.IP "oneliner" 4 +.IX Item "oneliner" +These are based on what command.com does on Win98. They may be wrong +for other Windows shells, I don't know. +.IP "cd" 4 +.IX Item "cd" +dmake can handle Unix style cd'ing but nmake (at least 1.5) cannot. It +wants: +.Sp +.Vb 4 +\& cd dir1\edir2 +\& command +\& another_command +\& cd ..\e.. +.Ve +.IP "max_exec_len" 4 +.IX Item "max_exec_len" +nmake 1.50 limits command length to 2048 characters. +.IP "os_flavor" 4 +.IX Item "os_flavor" +Windows is Win32. +.IP "dbgoutflag" 4 +.IX Item "dbgoutflag" +Returns a \s-1CC\s0 flag that tells the \s-1CC\s0 to emit a separate debugging symbol file +when compiling an object file. +.IP "cflags" 4 +.IX Item "cflags" +Defines the \s-1PERLDLL\s0 symbol if we are configured for static building since all +code destined for the perl5xx.dll must be compiled with the \s-1PERLDLL\s0 symbol +defined. +.IP "make_type" 4 +.IX Item "make_type" +Returns a suitable string describing the type of makefile being written. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win95.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win95.3 new file mode 100644 index 0000000000000000000000000000000000000000..31de022ff8247d4e16e6c8939aa8964e6a5bdc7f --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMM_Win95.3 @@ -0,0 +1,170 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MM_Win95 3" +.TH ExtUtils::MM_Win95 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MM_Win95 \- method to customize MakeMaker for Win9X +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& You should not be using this module directly. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of ExtUtils::MM_Win32 containing changes necessary +to get MakeMaker playing nice with command.com and other Win9Xisms. +.SS "Overridden methods" +.IX Subsection "Overridden methods" +Most of these make up for limitations in the Win9x/nmake command shell. +.IP "max_exec_len" 4 +.IX Item "max_exec_len" +Win98 chokes on things like Encode if we set the max length to nmake's max +of 2K. So we go for a more conservative value of 1K. +.IP "os_flavor" 4 +.IX Item "os_flavor" +Win95 and Win98 and WinME are collectively Win9x and Win32 +.SH "AUTHOR" +.IX Header "AUTHOR" +Code originally inside MM_Win32. Original author unknown. +.PP +Currently maintained by Michael G Schwern \f(CW\*(C`schwern@pobox.com\*(C'\fR. +.PP +Send patches and ideas to \f(CW\*(C`makemaker@perl.org\*(C'\fR. +.PP +See https://metacpan.org/release/ExtUtils\-MakeMaker. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMY.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMY.3 new file mode 100644 index 0000000000000000000000000000000000000000..05cb0681e76610325555b7e5e3a377346f32f198 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMY.3 @@ -0,0 +1,161 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MY 3" +.TH ExtUtils::MY 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MY \- ExtUtils::MakeMaker subclass for customization +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& # in your Makefile.PL +\& sub MY::whatever { +\& ... +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1FOR INTERNAL USE ONLY\s0\fR +.PP +ExtUtils::MY is a subclass of ExtUtils::MM. Its provided in your +Makefile.PL for you to add and override MakeMaker functionality. +.PP +It also provides a convenient alias via the \s-1MY\s0 class. +.PP +ExtUtils::MY might turn out to be a temporary solution, but \s-1MY\s0 won't +go away. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AConfig.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AConfig.3 new file mode 100644 index 0000000000000000000000000000000000000000..4c0754f5fa42108cd5a903270a966bb3ad660c3a --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AConfig.3 @@ -0,0 +1,153 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MakeMaker::Config 3" +.TH ExtUtils::MakeMaker::Config 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MakeMaker::Config \- Wrapper around Config.pm +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use ExtUtils::MakeMaker::Config; +\& print $Config{installbin}; # or whatever +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1FOR INTERNAL USE ONLY\s0\fR +.PP +A very thin wrapper around Config.pm so MakeMaker is easier to test. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AFAQ.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AFAQ.3 new file mode 100644 index 0000000000000000000000000000000000000000..2c5eefb3a419de14afff048f2b691e60736d0938 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3AFAQ.3 @@ -0,0 +1,795 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MakeMaker::FAQ 3" +.TH ExtUtils::MakeMaker::FAQ 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MakeMaker::FAQ \- Frequently Asked Questions About MakeMaker +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +FAQs, tricks and tips for ExtUtils::MakeMaker. +.SS "Module Installation" +.IX Subsection "Module Installation" +.IP "How do I install a module into my home directory?" 4 +.IX Item "How do I install a module into my home directory?" +If you're not the Perl administrator you probably don't have +permission to install a module to its default location. Ways of handling +this with a \fBlot\fR less manual effort on your part are perlbrew +and local::lib. +.Sp +Otherwise, you can install it for your own use into your home directory +like so: +.Sp +.Vb 2 +\& # Non\-unix folks, replace ~ with /path/to/your/home/dir +\& perl Makefile.PL INSTALL_BASE=~ +.Ve +.Sp +This will put modules into \fI~/lib/perl5\fR, man pages into \fI~/man\fR and +programs into \fI~/bin\fR. +.Sp +To ensure your Perl programs can see these newly installed modules, +set your \f(CW\*(C`PERL5LIB\*(C'\fR environment variable to \fI~/lib/perl5\fR or tell +each of your programs to look in that directory with the following: +.Sp +.Vb 1 +\& use lib "$ENV{HOME}/lib/perl5"; +.Ve +.Sp +or if \f(CW$ENV\fR{\s-1HOME\s0} isn't set and you don't want to set it for some +reason, do it the long way. +.Sp +.Vb 1 +\& use lib "/path/to/your/home/dir/lib/perl5"; +.Ve +.IP "How do I get MakeMaker and Module::Build to install to the same place?" 4 +.IX Item "How do I get MakeMaker and Module::Build to install to the same place?" +Module::Build, as of 0.28, supports two ways to install to the same +location as MakeMaker. +.Sp +We highly recommend the install_base method, its the simplest and most +closely approximates the expected behavior of an installation prefix. +.Sp +1) Use \s-1INSTALL_BASE /\s0 \f(CW\*(C`\-\-install_base\*(C'\fR +.Sp +MakeMaker (as of 6.31) and Module::Build (as of 0.28) both can install +to the same locations using the \*(L"install_base\*(R" concept. See +\&\*(L"\s-1INSTALL_BASE\*(R"\s0 in ExtUtils::MakeMaker for details. To get \s-1MM\s0 and \s-1MB\s0 to +install to the same location simply set \s-1INSTALL_BASE\s0 in \s-1MM\s0 and +\&\f(CW\*(C`\-\-install_base\*(C'\fR in \s-1MB\s0 to the same location. +.Sp +.Vb 2 +\& perl Makefile.PL INSTALL_BASE=/whatever +\& perl Build.PL \-\-install_base /whatever +.Ve +.Sp +This works most like other language's behavior when you specify a +prefix. We recommend this method. +.Sp +2) Use \s-1PREFIX /\s0 \f(CW\*(C`\-\-prefix\*(C'\fR +.Sp +Module::Build 0.28 added support for \f(CW\*(C`\-\-prefix\*(C'\fR which works like +MakeMaker's \s-1PREFIX.\s0 +.Sp +.Vb 2 +\& perl Makefile.PL PREFIX=/whatever +\& perl Build.PL \-\-prefix /whatever +.Ve +.Sp +We highly discourage this method. It should only be used if you know +what you're doing and specifically need the \s-1PREFIX\s0 behavior. The +\&\s-1PREFIX\s0 algorithm is complicated and focused on matching the system +installation. +.IP "How do I keep from installing man pages?" 4 +.IX Item "How do I keep from installing man pages?" +Recent versions of MakeMaker will only install man pages on Unix-like +operating systems by default. To generate manpages on non-Unix operating +systems, make the \*(L"manifypods\*(R" target. +.Sp +For an individual module: +.Sp +.Vb 1 +\& perl Makefile.PL INSTALLMAN1DIR=none INSTALLMAN3DIR=none +.Ve +.Sp +If you want to suppress man page installation for all modules you have +to reconfigure Perl and tell it 'none' when it asks where to install +man pages. +.IP "How do I use a module without installing it?" 4 +.IX Item "How do I use a module without installing it?" +Two ways. One is to build the module normally... +.Sp +.Vb 3 +\& perl Makefile.PL +\& make +\& make test +.Ve +.Sp +\&...and then use blib to point Perl at the built but uninstalled module: +.Sp +.Vb 2 +\& perl \-Mblib script.pl +\& perl \-Mblib \-e \*(Aq...\*(Aq +.Ve +.Sp +The other is to install the module in a temporary location. +.Sp +.Vb 4 +\& perl Makefile.PL INSTALL_BASE=~/tmp +\& make +\& make test +\& make install +.Ve +.Sp +And then set \s-1PERL5LIB\s0 to \fI~/tmp/lib/perl5\fR. This works well when you +have multiple modules to work with. It also ensures that the module +goes through its full installation process which may modify it. +Again, local::lib may assist you here. +.IP "How can I organize tests into subdirectories and have them run?" 4 +.IX Item "How can I organize tests into subdirectories and have them run?" +Let's take the following test directory structure: +.Sp +.Vb 3 +\& t/foo/sometest.t +\& t/bar/othertest.t +\& t/bar/baz/anothertest.t +.Ve +.Sp +Now, inside of the \f(CW\*(C`WriteMakeFile()\*(C'\fR function in your \fIMakefile.PL\fR, specify +where your tests are located with the \f(CW\*(C`test\*(C'\fR directive: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/*.t t/*/*.t t/*/*/*.t\*(Aq} +.Ve +.Sp +The first entry in the string will run all tests in the top-level \fIt/\fR +directory. The second will run all test files located in any subdirectory under +\&\fIt/\fR. The third, runs all test files within any subdirectory within any other +subdirectory located under \fIt/\fR. +.Sp +Note that you do not have to use wildcards. You can specify explicitly which +subdirectories to run tests in: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/*.t t/foo/*.t t/bar/baz/*.t\*(Aq} +.Ve +.IP "\s-1PREFIX\s0 vs \s-1INSTALL_BASE\s0 from Module::Build::Cookbook" 4 +.IX Item "PREFIX vs INSTALL_BASE from Module::Build::Cookbook" +The behavior of \s-1PREFIX\s0 is complicated and depends closely on how your +Perl is configured. The resulting installation locations will vary +from machine to machine and even different installations of Perl on the +same machine. Because of this, its difficult to document where prefix +will place your modules. +.Sp +In contrast, \s-1INSTALL_BASE\s0 has predictable, easy to explain installation +locations. Now that Module::Build and MakeMaker both have \s-1INSTALL_BASE\s0 +there is little reason to use \s-1PREFIX\s0 other than to preserve your existing +installation locations. If you are starting a fresh Perl installation we +encourage you to use \s-1INSTALL_BASE.\s0 If you have an existing installation +installed via \s-1PREFIX,\s0 consider moving it to an installation structure +matching \s-1INSTALL_BASE\s0 and using that instead. +.ie n .IP "Generating *.pm files with substitutions eg of $VERSION" 4 +.el .IP "Generating *.pm files with substitutions eg of \f(CW$VERSION\fR" 4 +.IX Item "Generating *.pm files with substitutions eg of $VERSION" +If you want to configure your module files for local conditions, or to +automatically insert a version number, you can use \s-1EUMM\s0's \f(CW\*(C`PL_FILES\*(C'\fR +capability, where it will automatically run each \fI*.PL\fR it finds to +generate its basename. For instance: +.Sp +.Vb 10 +\& # Makefile.PL: +\& require \*(Aqcommon.pl\*(Aq; +\& my $version = get_version(); +\& my @pms = qw(Foo.pm); +\& WriteMakefile( +\& NAME => \*(AqFoo\*(Aq, +\& VERSION => $version, +\& PM => { map { ($_ => "\e$(INST_LIB)/$_") } @pms }, +\& clean => { FILES => join \*(Aq \*(Aq, @pms }, +\& ); +\& +\& # common.pl: +\& sub get_version { \*(Aq0.04\*(Aq } +\& sub process { my $v = get_version(); s/_\|_VERSION_\|_/$v/g; } +\& 1; +\& +\& # Foo.pm.PL: +\& require \*(Aqcommon.pl\*(Aq; +\& $_ = join \*(Aq\*(Aq, ; +\& process(); +\& my $file = shift; +\& open my $fh, \*(Aq>\*(Aq, $file or die "$file: $!"; +\& print $fh $_; +\& _\|_DATA_\|_ +\& package Foo; +\& our $VERSION = \*(Aq_\|_VERSION_\|_\*(Aq; +\& 1; +.Ve +.Sp +You may notice that \f(CW\*(C`PL_FILES\*(C'\fR is not specified above, since the default +of mapping each .PL file to its basename works well. +.Sp +If the generated module were architecture-specific, you could replace +\&\f(CW\*(C`$(INST_LIB)\*(C'\fR above with \f(CW\*(C`$(INST_ARCHLIB)\*(C'\fR, although if you locate +modules under \fIlib\fR, that would involve ensuring any \f(CW\*(C`lib/\*(C'\fR in front +of the module location were removed. +.SS "Common errors and problems" +.IX Subsection "Common errors and problems" +.ie n .IP """No rule to make target `/usr/lib/perl5/CORE/config.h', needed by `Makefile'""" 4 +.el .IP "``No rule to make target `/usr/lib/perl5/CORE/config.h', needed by `Makefile'''" 4 +.IX Item "No rule to make target `/usr/lib/perl5/CORE/config.h', needed by `Makefile'" +Just what it says, you're missing that file. MakeMaker uses it to +determine if perl has been rebuilt since the Makefile was made. It's +a bit of a bug that it halts installation. +.Sp +Some operating systems don't ship the \s-1CORE\s0 directory with their base +perl install. To solve the problem, you likely need to install a perl +development package such as perl-devel (CentOS, Fedora and other +Redhat systems) or perl (Ubuntu and other Debian systems). +.SS "Philosophy and History" +.IX Subsection "Philosophy and History" +.IP "Why not just use ?" 4 +.IX Item "Why not just use ?" +Why did MakeMaker reinvent the build configuration wheel? Why not +just use autoconf or automake or ppm or Ant or ... +.Sp +There are many reasons, but the major one is cross-platform +compatibility. +.Sp +Perl is one of the most ported pieces of software ever. It works on +operating systems I've never even heard of (see perlport for details). +It needs a build tool that can work on all those platforms and with +any wacky C compilers and linkers they might have. +.Sp +No such build tool exists. Even make itself has wildly different +dialects. So we have to build our own. +.IP "What is Module::Build and how does it relate to MakeMaker?" 4 +.IX Item "What is Module::Build and how does it relate to MakeMaker?" +Module::Build is a project by Ken Williams to supplant MakeMaker. +Its primary advantages are: +.RS 4 +.IP "\(bu" 8 +pure perl. no make, no shell commands +.IP "\(bu" 8 +easier to customize +.IP "\(bu" 8 +cleaner internals +.IP "\(bu" 8 +less cruft +.RE +.RS 4 +.Sp +Module::Build was long the official heir apparent to MakeMaker. The +rate of both its development and adoption has slowed in recent years, +though, and it is unclear what the future holds for it. That said, +Module::Build set the stage for \fIsomething\fR to become the heir to +MakeMaker. MakeMaker's maintainers have long said that it is a dead +end and should be kept functioning, while being cautious about extending +with new features. +.RE +.SS "Module Writing" +.IX Subsection "Module Writing" +.ie n .IP "How do I keep my $VERSION up to date without resetting it manually?" 4 +.el .IP "How do I keep my \f(CW$VERSION\fR up to date without resetting it manually?" 4 +.IX Item "How do I keep my $VERSION up to date without resetting it manually?" +Often you want to manually set the \f(CW$VERSION\fR in the main module +distribution because this is the version that everybody sees on \s-1CPAN\s0 +and maybe you want to customize it a bit. But for all the other +modules in your dist, \f(CW$VERSION\fR is really just bookkeeping and all that's +important is it goes up every time the module is changed. Doing this +by hand is a pain and you often forget. +.Sp +Probably the easiest way to do this is using \fIperl-reversion\fR in +Perl::Version: +.Sp +.Vb 1 +\& perl\-reversion \-bump +.Ve +.Sp +If your version control system supports revision numbers (git doesn't +easily), the simplest way to do it automatically is to use its revision +number (you are using version control, right?). +.Sp +In \s-1CVS, RCS\s0 and \s-1SVN\s0 you use \f(CW$Revision\fR$ (see the documentation of your +version control system for details). Every time the file is checked +in the \f(CW$Revision\fR$ will be updated, updating your \f(CW$VERSION\fR. +.Sp +\&\s-1SVN\s0 uses a simple integer for \f(CW$Revision\fR$ so you can adapt it for your +\&\f(CW$VERSION\fR like so: +.Sp +.Vb 1 +\& ($VERSION) = q$Revision$ =~ /(\ed+)/; +.Ve +.Sp +In \s-1CVS\s0 and \s-1RCS\s0 version 1.9 is followed by 1.10. Since \s-1CPAN\s0 compares +version numbers numerically we use a \fBsprintf()\fR to convert 1.9 to 1.009 +and 1.10 to 1.010 which compare properly. +.Sp +.Vb 1 +\& $VERSION = sprintf "%d.%03d", q$Revision$ =~ /(\ed+)\e.(\ed+)/g; +.Ve +.Sp +If branches are involved (ie. \f(CW$Revision:\fR 1.5.3.4$) it's a little more +complicated. +.Sp +.Vb 2 +\& # must be all on one line or MakeMaker will get confused. +\& $VERSION = do { my @r = (q$Revision$ =~ /\ed+/g); sprintf "%d."."%03d" x $#r, @r }; +.Ve +.Sp +In \s-1SVN,\s0 \f(CW$Revision\fR$ should be the same for every file in the project so +they would all have the same \f(CW$VERSION\fR. \s-1CVS\s0 and \s-1RCS\s0 have a different +\&\f(CW$Revision\fR$ per file so each file will have a different \f(CW$VERSION\fR. +Distributed version control systems, such as \s-1SVK,\s0 may have a different +\&\f(CW$Revision\fR$ based on who checks out the file, leading to a different \f(CW$VERSION\fR +on each machine! Finally, some distributed version control systems, such +as darcs, have no concept of revision number at all. +.IP "What's this \fI\s-1META\s0.yml\fR thing and how did it get in my \fI\s-1MANIFEST\s0\fR?!" 4 +.IX Item "What's this META.yml thing and how did it get in my MANIFEST?!" +\&\fI\s-1META\s0.yml\fR is a module meta-data file pioneered by Module::Build and +automatically generated as part of the 'distdir' target (and thus +\&'dist'). See \*(L"Module Meta-Data\*(R" in ExtUtils::MakeMaker. +.Sp +To shut off its generation, pass the \f(CW\*(C`NO_META\*(C'\fR flag to \f(CW\*(C`WriteMakefile()\*(C'\fR. +.IP "How do I delete everything not in my \fI\s-1MANIFEST\s0\fR?" 4 +.IX Item "How do I delete everything not in my MANIFEST?" +Some folks are surprised that \f(CW\*(C`make distclean\*(C'\fR does not delete +everything not listed in their \s-1MANIFEST\s0 (thus making a clean +distribution) but only tells them what they need to delete. This is +done because it is considered too dangerous. While developing your +module you might write a new file, not add it to the \s-1MANIFEST,\s0 then +run a \f(CW\*(C`distclean\*(C'\fR and be sad because your new work was deleted. +.Sp +If you really want to do this, you can use +\&\f(CW\*(C`ExtUtils::Manifest::manifind()\*(C'\fR to read the \s-1MANIFEST\s0 and File::Find +to delete the files. But you have to be careful. Here's a script to +do that. Use at your own risk. Have fun blowing holes in your foot. +.Sp +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& use strict; +\& +\& use File::Spec; +\& use File::Find; +\& use ExtUtils::Manifest qw(maniread); +\& +\& my %manifest = map {( $_ => 1 )} +\& grep { File::Spec\->canonpath($_) } +\& keys %{ maniread() }; +\& +\& if( !keys %manifest ) { +\& print "No files found in MANIFEST. Stopping.\en"; +\& exit; +\& } +\& +\& find({ +\& wanted => sub { +\& my $path = File::Spec\->canonpath($_); +\& +\& return unless \-f $path; +\& return if exists $manifest{ $path }; +\& +\& print "unlink $path\en"; +\& unlink $path; +\& }, +\& no_chdir => 1 +\& }, +\& "." +\& ); +.Ve +.IP "Which tar should I use on Windows?" 4 +.IX Item "Which tar should I use on Windows?" +We recommend ptar from Archive::Tar not older than 1.66 with '\-C' option. +.IP "Which zip should I use on Windows for '[ndg]make zipdist'?" 4 +.IX Item "Which zip should I use on Windows for '[ndg]make zipdist'?" +We recommend InfoZIP: +.SS "\s-1XS\s0" +.IX Subsection "XS" +.ie n .IP "How do I prevent ""object version X.XX does not match bootstrap parameter Y.YY"" errors?" 4 +.el .IP "How do I prevent ``object version X.XX does not match bootstrap parameter Y.YY'' errors?" 4 +.IX Item "How do I prevent object version X.XX does not match bootstrap parameter Y.YY errors?" +\&\s-1XS\s0 code is very sensitive to the module version number and will +complain if the version number in your Perl module doesn't match. If +you change your module's version # without rerunning Makefile.PL the old +version number will remain in the Makefile, causing the \s-1XS\s0 code to be built +with the wrong number. +.Sp +To avoid this, you can force the Makefile to be rebuilt whenever you +change the module containing the version number by adding this to your +\&\fBWriteMakefile()\fR arguments. +.Sp +.Vb 1 +\& depend => { \*(Aq$(FIRST_MAKEFILE)\*(Aq => \*(Aq$(VERSION_FROM)\*(Aq } +.Ve +.IP "How do I make two or more \s-1XS\s0 files coexist in the same directory?" 4 +.IX Item "How do I make two or more XS files coexist in the same directory?" +Sometimes you need to have two and more \s-1XS\s0 files in the same package. +There are three ways: \f(CW\*(C`XSMULTI\*(C'\fR, separate directories, and bootstrapping +one \s-1XS\s0 from another. +.RS 4 +.IP "\s-1XSMULTI\s0" 8 +.IX Item "XSMULTI" +Structure your modules so they are all located under \fIlib\fR, such that +\&\f(CW\*(C`Foo::Bar\*(C'\fR is in \fIlib/Foo/Bar.pm\fR and \fIlib/Foo/Bar.xs\fR, etc. Have your +top-level \f(CW\*(C`WriteMakefile\*(C'\fR set the variable \f(CW\*(C`XSMULTI\*(C'\fR to a true value. +.Sp +Er, that's it. +.IP "Separate directories" 8 +.IX Item "Separate directories" +Put each \s-1XS\s0 files into separate directories, each with their own +\&\fIMakefile.PL\fR. Make sure each of those \fIMakefile.PL\fRs has the correct +\&\f(CW\*(C`CFLAGS\*(C'\fR, \f(CW\*(C`INC\*(C'\fR, \f(CW\*(C`LIBS\*(C'\fR etc. You will need to make sure the top-level +\&\fIMakefile.PL\fR refers to each of these using \f(CW\*(C`DIR\*(C'\fR. +.IP "Bootstrapping" 8 +.IX Item "Bootstrapping" +Let's assume that we have a package \f(CW\*(C`Cool::Foo\*(C'\fR, which includes +\&\f(CW\*(C`Cool::Foo\*(C'\fR and \f(CW\*(C`Cool::Bar\*(C'\fR modules each having a separate \s-1XS\s0 +file. First we use the following \fIMakefile.PL\fR: +.Sp +.Vb 1 +\& use ExtUtils::MakeMaker; +\& +\& WriteMakefile( +\& NAME => \*(AqCool::Foo\*(Aq, +\& VERSION_FROM => \*(AqFoo.pm\*(Aq, +\& OBJECT => q/$(O_FILES)/, +\& # ... other attrs ... +\& ); +.Ve +.Sp +Notice the \f(CW\*(C`OBJECT\*(C'\fR attribute. MakeMaker generates the following +variables in \fIMakefile\fR: +.Sp +.Vb 7 +\& # Handy lists of source code files: +\& XS_FILES= Bar.xs \e +\& Foo.xs +\& C_FILES = Bar.c \e +\& Foo.c +\& O_FILES = Bar.o \e +\& Foo.o +.Ve +.Sp +Therefore we can use the \f(CW\*(C`O_FILES\*(C'\fR variable to tell MakeMaker to use +these objects into the shared library. +.Sp +That's pretty much it. Now write \fIFoo.pm\fR and \fIFoo.xs\fR, \fIBar.pm\fR +and \fIBar.xs\fR, where \fIFoo.pm\fR bootstraps the shared library and +\&\fIBar.pm\fR simply loading \fIFoo.pm\fR. +.Sp +The only issue left is to how to bootstrap \fIBar.xs\fR. This is done +from \fIFoo.xs\fR: +.Sp +.Vb 1 +\& MODULE = Cool::Foo PACKAGE = Cool::Foo +\& +\& BOOT: +\& # boot the second XS file +\& boot_Cool_\|_Bar(aTHX_ cv); +.Ve +.Sp +If you have more than two files, this is the place where you should +boot extra \s-1XS\s0 files from. +.Sp +The following four files sum up all the details discussed so far. +.Sp +.Vb 3 +\& Foo.pm: +\& \-\-\-\-\-\-\- +\& package Cool::Foo; +\& +\& require DynaLoader; +\& +\& our @ISA = qw(DynaLoader); +\& our $VERSION = \*(Aq0.01\*(Aq; +\& bootstrap Cool::Foo $VERSION; +\& +\& 1; +\& +\& Bar.pm: +\& \-\-\-\-\-\-\- +\& package Cool::Bar; +\& +\& use Cool::Foo; # bootstraps Bar.xs +\& +\& 1; +\& +\& Foo.xs: +\& \-\-\-\-\-\-\- +\& #include "EXTERN.h" +\& #include "perl.h" +\& #include "XSUB.h" +\& +\& MODULE = Cool::Foo PACKAGE = Cool::Foo +\& +\& BOOT: +\& # boot the second XS file +\& boot_Cool_\|_Bar(aTHX_ cv); +\& +\& MODULE = Cool::Foo PACKAGE = Cool::Foo PREFIX = cool_foo_ +\& +\& void +\& cool_foo_perl_rules() +\& +\& CODE: +\& fprintf(stderr, "Cool::Foo says: Perl Rules\en"); +\& +\& Bar.xs: +\& \-\-\-\-\-\-\- +\& #include "EXTERN.h" +\& #include "perl.h" +\& #include "XSUB.h" +\& +\& MODULE = Cool::Bar PACKAGE = Cool::Bar PREFIX = cool_bar_ +\& +\& void +\& cool_bar_perl_rules() +\& +\& CODE: +\& fprintf(stderr, "Cool::Bar says: Perl Rules\en"); +.Ve +.Sp +And of course a very basic test: +.Sp +.Vb 9 +\& t/cool.t: +\& \-\-\-\-\-\-\-\- +\& use Test; +\& BEGIN { plan tests => 1 }; +\& use Cool::Foo; +\& use Cool::Bar; +\& Cool::Foo::perl_rules(); +\& Cool::Bar::perl_rules(); +\& ok 1; +.Ve +.Sp +This tip has been brought to you by Nick Ing-Simmons and Stas Bekman. +.Sp +An alternative way to achieve this can be seen in Gtk2::CodeGen +and Glib::CodeGen. +.RE +.RS 4 +.RE +.SH "DESIGN" +.IX Header "DESIGN" +.SS "MakeMaker object hierarchy (simplified)" +.IX Subsection "MakeMaker object hierarchy (simplified)" +What most people need to know (superclasses on top.) +.PP +.Vb 9 +\& ExtUtils::MM_Any +\& | +\& ExtUtils::MM_Unix +\& | +\& ExtUtils::MM_{Current OS} +\& | +\& ExtUtils::MakeMaker +\& | +\& MY +.Ve +.PP +The object actually used is of the class \s-1MY\s0 which allows you to +override bits of MakeMaker inside your Makefile.PL by declaring +\&\fBMY::foo()\fR methods. +.SS "MakeMaker object hierarchy (real)" +.IX Subsection "MakeMaker object hierarchy (real)" +Here's how it really works: +.PP +.Vb 10 +\& ExtUtils::MM_Any +\& | +\& ExtUtils::MM_Unix +\& | +\& ExtUtils::Liblist::Kid ExtUtils::MM_{Current OS} (if necessary) +\& | | +\& ExtUtils::Liblist ExtUtils::MakeMaker | +\& | | | +\& | | |\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& ExtUtils::MM +\& | | +\& ExtUtils::MY MM (created by ExtUtils::MM) +\& | | +\& MY (created by ExtUtils::MY) | +\& . | +\& (mixin) | +\& . | +\& PACK### (created each call to ExtUtils::MakeMaker\->new) +.Ve +.PP +\&\s-1NOTE:\s0 Yes, this is a mess. See + +for some history. +.PP +\&\s-1NOTE:\s0 When ExtUtils::MM is loaded it chooses a superclass for \s-1MM\s0 from +amongst the ExtUtils::MM_* modules based on the current operating +system. +.PP +\&\s-1NOTE:\s0 ExtUtils::MM_{Current \s-1OS\s0} represents one of the ExtUtils::MM_* +modules except ExtUtils::MM_Any chosen based on your operating system. +.PP +\&\s-1NOTE:\s0 The main object used by MakeMaker is a PACK### object, *not* +ExtUtils::MakeMaker. It is, effectively, a subclass of \s-1MY\s0, +ExtUtils::MakeMaker, ExtUtils::Liblist and ExtUtils::MM_{Current \s-1OS\s0} +.PP +\&\s-1NOTE:\s0 The methods in \s-1MY\s0 are simply copied into PACK### rather +than \s-1MY\s0 being a superclass of PACK###. I don't remember the rationale. +.PP +\&\s-1NOTE:\s0 ExtUtils::Liblist should be removed from the inheritance hiearchy +and simply be called as functions. +.PP +\&\s-1NOTE:\s0 Modules like File::Spec and Exporter have been omitted for clarity. +.SS "The MM_* hierarchy" +.IX Subsection "The MM_* hierarchy" +.Vb 9 +\& MM_Win95 MM_NW5 +\& \e / +\& MM_BeOS MM_Cygwin MM_OS2 MM_VMS MM_Win32 MM_DOS MM_UWIN +\& \e | | | / / / +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& | | +\& MM_Unix | +\& | | +\& MM_Any +.Ve +.PP +\&\s-1NOTE:\s0 Each direct MM_Unix subclass is also an +MM_Any subclass. This +is a temporary hack because MM_Unix overrides some MM_Any methods with +Unix specific code. It allows the non-Unix modules to see the +original MM_Any implementations. +.PP +\&\s-1NOTE:\s0 Modules like File::Spec and Exporter have been omitted for clarity. +.SH "PATCHING" +.IX Header "PATCHING" +If you have a question you'd like to see added to the \s-1FAQ\s0 (whether or +not you have the answer) please either: +.IP "\(bu" 2 +make a pull request on the MakeMaker github repository +.IP "\(bu" 2 +raise a issue on the MakeMaker github repository +.IP "\(bu" 2 +file an \s-1RT\s0 ticket +.IP "\(bu" 2 +email makemaker@perl.org +.SH "AUTHOR" +.IX Header "AUTHOR" +The denizens of makemaker@perl.org. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ALocale.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ALocale.3 new file mode 100644 index 0000000000000000000000000000000000000000..ab60b060706b029ad5b47ba2b230be3e244dcc73 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ALocale.3 @@ -0,0 +1,332 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MakeMaker::Locale 3" +.TH ExtUtils::MakeMaker::Locale 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MakeMaker::Locale \- bundled Encode::Locale +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Encode::Locale; +\& use Encode; +\& +\& $string = decode(locale => $bytes); +\& $bytes = encode(locale => $string); +\& +\& if (\-t) { +\& binmode(STDIN, ":encoding(console_in)"); +\& binmode(STDOUT, ":encoding(console_out)"); +\& binmode(STDERR, ":encoding(console_out)"); +\& } +\& +\& # Processing file names passed in as arguments +\& my $uni_filename = decode(locale => $ARGV[0]); +\& open(my $fh, "<", encode(locale_fs => $uni_filename)) +\& || die "Can\*(Aqt open \*(Aq$uni_filename\*(Aq: $!"; +\& binmode($fh, ":encoding(locale)"); +\& ... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +In many applications it's wise to let Perl use Unicode for the strings it +processes. Most of the interfaces Perl has to the outside world are still byte +based. Programs therefore need to decode byte strings that enter the program +from the outside and encode them again on the way out. +.PP +The \s-1POSIX\s0 locale system is used to specify both the language conventions +requested by the user and the preferred character set to consume and +output. The \f(CW\*(C`Encode::Locale\*(C'\fR module looks up the charset and encoding (called +a \s-1CODESET\s0 in the locale jargon) and arranges for the Encode module to know +this encoding under the name \*(L"locale\*(R". It means bytes obtained from the +environment can be converted to Unicode strings by calling \f(CW\*(C`Encode::encode(locale => $bytes)\*(C'\fR and converted back again with \f(CW\*(C`Encode::decode(locale => $string)\*(C'\fR. +.PP +Where file systems interfaces pass file names in and out of the program we also +need care. The trend is for operating systems to use a fixed file encoding +that don't actually depend on the locale; and this module determines the most +appropriate encoding for file names. The Encode module will know this +encoding under the name \*(L"locale_fs\*(R". For traditional Unix systems this will +be an alias to the same encoding as \*(L"locale\*(R". +.PP +For programs running in a terminal window (called a \*(L"Console\*(R" on some systems) +the \*(L"locale\*(R" encoding is usually a good choice for what to expect as input and +output. Some systems allows us to query the encoding set for the terminal and +\&\f(CW\*(C`Encode::Locale\*(C'\fR will do that if available and make these encodings known +under the \f(CW\*(C`Encode\*(C'\fR aliases \*(L"console_in\*(R" and \*(L"console_out\*(R". For systems where +we can't determine the terminal encoding these will be aliased as the same +encoding as \*(L"locale\*(R". The advice is to use \*(L"console_in\*(R" for input known to +come from the terminal and \*(L"console_out\*(R" for output to the terminal. +.PP +In addition to arranging for various Encode aliases the following functions and +variables are provided: +.IP "decode_argv( )" 4 +.IX Item "decode_argv( )" +.PD 0 +.IP "decode_argv( Encode::FB_CROAK )" 4 +.IX Item "decode_argv( Encode::FB_CROAK )" +.PD +This will decode the command line arguments to perl (the \f(CW@ARGV\fR array) in-place. +.Sp +The function will by default replace characters that can't be decoded by +\&\*(L"\ex{\s-1FFFD\s0}\*(R", the Unicode replacement character. +.Sp +Any argument provided is passed as \s-1CHECK\s0 to underlying \fBEncode::decode()\fR call. +Pass the value \f(CW\*(C`Encode::FB_CROAK\*(C'\fR to have the decoding croak if not all the +command line arguments can be decoded. See \*(L"Handling Malformed Data\*(R" in Encode +for details on other options for \s-1CHECK.\s0 +.ie n .IP "env( $uni_key )" 4 +.el .IP "env( \f(CW$uni_key\fR )" 4 +.IX Item "env( $uni_key )" +.PD 0 +.ie n .IP "env( $uni_key => $uni_value )" 4 +.el .IP "env( \f(CW$uni_key\fR => \f(CW$uni_value\fR )" 4 +.IX Item "env( $uni_key => $uni_value )" +.PD +Interface to get/set environment variables. Returns the current value as a +Unicode string. The \f(CW$uni_key\fR and \f(CW$uni_value\fR arguments are expected to be +Unicode strings as well. Passing \f(CW\*(C`undef\*(C'\fR as \f(CW$uni_value\fR deletes the +environment variable named \f(CW$uni_key\fR. +.Sp +The returned value will have the characters that can't be decoded replaced by +\&\*(L"\ex{\s-1FFFD\s0}\*(R", the Unicode replacement character. +.Sp +There is no interface to request alternative \s-1CHECK\s0 behavior as for +\&\fBdecode_argv()\fR. If you need that you need to call encode/decode yourself. +For example: +.Sp +.Vb 2 +\& my $key = Encode::encode(locale => $uni_key, Encode::FB_CROAK); +\& my $uni_value = Encode::decode(locale => $ENV{$key}, Encode::FB_CROAK); +.Ve +.IP "reinit( )" 4 +.IX Item "reinit( )" +.PD 0 +.ie n .IP "reinit( $encoding )" 4 +.el .IP "reinit( \f(CW$encoding\fR )" 4 +.IX Item "reinit( $encoding )" +.PD +Reinitialize the encodings from the locale. You want to call this function if +you changed anything in the environment that might influence the locale. +.Sp +This function will croak if the determined encoding isn't recognized by +the Encode module. +.Sp +With argument force \f(CW$ENCODING_\fR... variables to set to the given value. +.ie n .IP "$ENCODING_LOCALE" 4 +.el .IP "\f(CW$ENCODING_LOCALE\fR" 4 +.IX Item "$ENCODING_LOCALE" +The encoding name determined to be suitable for the current locale. +Encode know this encoding as \*(L"locale\*(R". +.ie n .IP "$ENCODING_LOCALE_FS" 4 +.el .IP "\f(CW$ENCODING_LOCALE_FS\fR" 4 +.IX Item "$ENCODING_LOCALE_FS" +The encoding name determined to be suitable for file system interfaces +involving file names. +Encode know this encoding as \*(L"locale_fs\*(R". +.ie n .IP "$ENCODING_CONSOLE_IN" 4 +.el .IP "\f(CW$ENCODING_CONSOLE_IN\fR" 4 +.IX Item "$ENCODING_CONSOLE_IN" +.PD 0 +.ie n .IP "$ENCODING_CONSOLE_OUT" 4 +.el .IP "\f(CW$ENCODING_CONSOLE_OUT\fR" 4 +.IX Item "$ENCODING_CONSOLE_OUT" +.PD +The encodings to be used for reading and writing output to the a console. +Encode know these encodings as \*(L"console_in\*(R" and \*(L"console_out\*(R". +.SH "NOTES" +.IX Header "NOTES" +This table summarizes the mapping of the encodings set up +by the \f(CW\*(C`Encode::Locale\*(C'\fR module: +.PP +.Vb 7 +\& Encode | | | +\& Alias | Windows | Mac OS X | POSIX +\& \-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\- +\& locale | ANSI | nl_langinfo | nl_langinfo +\& locale_fs | ANSI | UTF\-8 | nl_langinfo +\& console_in | OEM | nl_langinfo | nl_langinfo +\& console_out | OEM | nl_langinfo | nl_langinfo +.Ve +.SS "Windows" +.IX Subsection "Windows" +Windows has basically 2 sets of APIs. A wide \s-1API\s0 (based on passing \s-1UTF\-16\s0 +strings) and a byte based \s-1API\s0 based a character set called \s-1ANSI.\s0 The +regular Perl interfaces to the \s-1OS\s0 currently only uses the \s-1ANSI\s0 APIs. +Unfortunately \s-1ANSI\s0 is not a single character set. +.PP +The encoding that corresponds to \s-1ANSI\s0 varies between different editions of +Windows. For many western editions of Windows \s-1ANSI\s0 corresponds to \s-1CP\-1252\s0 +which is a character set similar to \s-1ISO\-8859\-1.\s0 Conceptually the \s-1ANSI\s0 +character set is a similar concept to the \s-1POSIX\s0 locale \s-1CODESET\s0 so this module +figures out what the \s-1ANSI\s0 code page is and make this available as +\&\f(CW$ENCODING_LOCALE\fR and the \*(L"locale\*(R" Encoding alias. +.PP +Windows systems also operate with another byte based character set. +It's called the \s-1OEM\s0 code page. This is the encoding that the Console +takes as input and output. It's common for the \s-1OEM\s0 code page to +differ from the \s-1ANSI\s0 code page. +.SS "Mac \s-1OS X\s0" +.IX Subsection "Mac OS X" +On Mac \s-1OS X\s0 the file system encoding is always \s-1UTF\-8\s0 while the locale +can otherwise be set up as normal for \s-1POSIX\s0 systems. +.PP +File names on Mac \s-1OS X\s0 will at the OS-level be converted to +NFD-form. A file created by passing a NFC-filename will come +in NFD-form from \fBreaddir()\fR. See Unicode::Normalize for details +of \s-1NFD/NFC.\s0 +.PP +Actually, Apple does not follow the Unicode \s-1NFD\s0 standard since not all +character ranges are decomposed. The claim is that this avoids problems with +round trip conversions from old Mac text encodings. See Encode::UTF8Mac for +details. +.SS "\s-1POSIX\s0 (Linux and other Unixes)" +.IX Subsection "POSIX (Linux and other Unixes)" +File systems might vary in what encoding is to be used for +filenames. Since this module has no way to actually figure out +what the is correct it goes with the best guess which is to +assume filenames are encoding according to the current locale. +Users are advised to always specify \s-1UTF\-8\s0 as the locale charset. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +I18N::Langinfo, Encode, Term::Encoding +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2010 Gisle Aas . +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ATutorial.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ATutorial.3 new file mode 100644 index 0000000000000000000000000000000000000000..520a46c98e7c0f0e953f2755f2fef254e19889db --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker%3A%3ATutorial.3 @@ -0,0 +1,344 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MakeMaker::Tutorial 3" +.TH ExtUtils::MakeMaker::Tutorial 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MakeMaker::Tutorial \- Writing a module with MakeMaker +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MakeMaker; +\& +\& WriteMakefile( +\& NAME => \*(AqYour::Module\*(Aq, +\& VERSION_FROM => \*(Aqlib/Your/Module.pm\*(Aq +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a short tutorial on writing a simple module with MakeMaker. +It's really not that hard. +.SS "The Mantra" +.IX Subsection "The Mantra" +MakeMaker modules are installed using this simple mantra +.PP +.Vb 4 +\& perl Makefile.PL +\& make +\& make test +\& make install +.Ve +.PP +There are lots more commands and options, but the above will do it. +.SS "The Layout" +.IX Subsection "The Layout" +The basic files in a module look something like this. +.PP +.Vb 3 +\& Makefile.PL +\& MANIFEST +\& lib/Your/Module.pm +.Ve +.PP +That's all that's strictly necessary. There's additional files you might +want: +.PP +.Vb 8 +\& lib/Your/Other/Module.pm +\& t/some_test.t +\& t/some_other_test.t +\& Changes +\& README +\& INSTALL +\& MANIFEST.SKIP +\& bin/some_program +.Ve +.IP "Makefile.PL" 4 +.IX Item "Makefile.PL" +When you run Makefile.PL, it makes a Makefile. That's the whole point of +MakeMaker. The Makefile.PL is a simple program which loads +ExtUtils::MakeMaker and runs the \fBWriteMakefile()\fR function to generate a +Makefile. +.Sp +Here's an example of what you need for a simple module: +.Sp +.Vb 1 +\& use ExtUtils::MakeMaker; +\& +\& WriteMakefile( +\& NAME => \*(AqYour::Module\*(Aq, +\& VERSION_FROM => \*(Aqlib/Your/Module.pm\*(Aq +\& ); +.Ve +.Sp +\&\s-1NAME\s0 is the top-level namespace of your module. \s-1VERSION_FROM\s0 is the file +which contains the \f(CW$VERSION\fR variable for the entire distribution. Typically +this is the same as your top-level module. +.IP "\s-1MANIFEST\s0" 4 +.IX Item "MANIFEST" +A simple listing of all the files in your distribution. +.Sp +.Vb 3 +\& Makefile.PL +\& MANIFEST +\& lib/Your/Module.pm +.Ve +.Sp +File paths in a \s-1MANIFEST\s0 always use Unix conventions (ie. /) even if you're +not on Unix. +.Sp +You can write this by hand or generate it with 'make manifest'. +.Sp +See ExtUtils::Manifest for more details. +.IP "lib/" 4 +.IX Item "lib/" +This is the directory where the .pm and .pod files you wish to have +installed go. They are laid out according to namespace. So Foo::Bar +is \fIlib/Foo/Bar.pm\fR. +.IP "t/" 4 +.IX Item "t/" +Tests for your modules go here. Each test filename ends with a .t. +So \fIt/foo.t\fR 'make test' will run these tests. +.Sp +Typically, the \fIt/\fR test directory is flat, with all test files located +directly within it. However, you can nest tests within subdirectories, for +example: +.Sp +.Vb 1 +\& t/foo/subdir_test.t +.Ve +.Sp +To do this, you need to inform \f(CW\*(C`WriteMakeFile()\*(C'\fR in your \fIMakefile.PL\fR file +in the following fashion: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/*.t t/*/*.t\*(Aq} +.Ve +.Sp +That will run all tests in \fIt/\fR, as well as all tests in all subdirectories +that reside under \fIt/\fR. You can nest as deeply as makes sense for your project. +Simply add another entry in the test location string. For example, to test: +.Sp +.Vb 1 +\& t/foo/bar/subdir_test.t +.Ve +.Sp +You would use the following \f(CW\*(C`test\*(C'\fR directive: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/*.t t/*/*/*.t\*(Aq} +.Ve +.Sp +Note that in the above example, tests in the first subdirectory will not be +run. To run all tests in the intermediary subdirectory preceding the one +the test files are in, you need to explicitly note it: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/*.t t/*/*.t t/*/*/*.t\*(Aq} +.Ve +.Sp +You don't need to specify wildcards if you only want to test within specific +subdirectories. The following example will only run tests in \fIt/foo\fR: +.Sp +.Vb 1 +\& test => {TESTS => \*(Aqt/foo/*.t\*(Aq} +.Ve +.Sp +Tests are run from the top level of your distribution. So inside a test +you would refer to ./lib to enter the lib directory, for example. +.IP "Changes" 4 +.IX Item "Changes" +A log of changes you've made to this module. The layout is free-form. +Here's an example: +.Sp +.Vb 3 +\& 1.01 Fri Apr 11 00:21:25 PDT 2003 +\& \- thing() does some stuff now +\& \- fixed the wiggy bug in withit() +\& +\& 1.00 Mon Apr 7 00:57:15 PDT 2003 +\& \- "Rain of Frogs" now supported +.Ve +.IP "\s-1README\s0" 4 +.IX Item "README" +A short description of your module, what it does, why someone would use it +and its limitations. \s-1CPAN\s0 automatically pulls your \s-1README\s0 file out of +the archive and makes it available to \s-1CPAN\s0 users, it is the first thing +they will read to decide if your module is right for them. +.IP "\s-1INSTALL\s0" 4 +.IX Item "INSTALL" +Instructions on how to install your module along with any dependencies. +Suggested information to include here: +.Sp +.Vb 3 +\& any extra modules required for use +\& the minimum version of Perl required +\& if only works on certain operating systems +.Ve +.IP "\s-1MANIFEST.SKIP\s0" 4 +.IX Item "MANIFEST.SKIP" +A file full of regular expressions to exclude when using 'make +manifest' to generate the \s-1MANIFEST.\s0 These regular expressions +are checked against each file path found in the distribution (so +you're matching against \*(L"t/foo.t\*(R" not \*(L"foo.t\*(R"). +.Sp +Here's a sample: +.Sp +.Vb 3 +\& ~$ # ignore emacs and vim backup files +\& .bak$ # ignore manual backups +\& \e# # ignore CVS old revision files and emacs temp files +.Ve +.Sp +Since # can be used for comments, # must be escaped. +.Sp +MakeMaker comes with a default \s-1MANIFEST.SKIP\s0 to avoid things like +version control directories and backup files. Specifying your own +will override this default. +.IP "bin/" 4 +.IX Item "bin/" +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlmodstyle gives stylistic help writing a module. +.PP +perlnewmod gives more information about how to write a module. +.PP +There are modules to help you through the process of writing a module: +ExtUtils::ModuleMaker, Module::Starter, Minilla::Tutorial, +Dist::Milla::Tutorial, Dist::Zilla::Starter diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker.3 new file mode 100644 index 0000000000000000000000000000000000000000..d48ccb782a28ae18de9938a2522b68622cf5909f --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMakeMaker.3 @@ -0,0 +1,2149 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::MakeMaker 3" +.TH ExtUtils::MakeMaker 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::MakeMaker \- Create a module Makefile +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::MakeMaker; +\& +\& WriteMakefile( +\& NAME => "Foo::Bar", +\& VERSION_FROM => "lib/Foo/Bar.pm", +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This utility is designed to write a Makefile for an extension module +from a Makefile.PL. It is based on the Makefile.SH model provided by +Andy Dougherty and the perl5\-porters. +.PP +It splits the task of generating the Makefile into several subroutines +that can be individually overridden. Each subroutine returns the text +it wishes to have written to the Makefile. +.PP +As there are various Make programs with incompatible syntax, which +use operating system shells, again with incompatible syntax, it is +important for users of this module to know which flavour of Make +a Makefile has been written for so they'll use the correct one and +won't have to face the possibly bewildering errors resulting from +using the wrong one. +.PP +On \s-1POSIX\s0 systems, that program will likely be \s-1GNU\s0 Make; on Microsoft +Windows, it will be either Microsoft NMake, DMake or \s-1GNU\s0 Make. +See the section on the \*(L"\s-1MAKE\*(R"\s0 parameter for details. +.PP +ExtUtils::MakeMaker (\s-1EUMM\s0) is object oriented. Each directory below the current +directory that contains a Makefile.PL is treated as a separate +object. This makes it possible to write an unlimited number of +Makefiles with a single invocation of \fBWriteMakefile()\fR. +.PP +All inputs to WriteMakefile are Unicode characters, not just octets. \s-1EUMM\s0 +seeks to handle all of these correctly. It is currently still not possible +to portably use Unicode characters in module names, because this requires +Perl to handle Unicode filenames, which is not yet the case on Windows. +.PP +See ExtUtils::MakeMaker::FAQ for details of the design and usage. +.SS "How To Write A Makefile.PL" +.IX Subsection "How To Write A Makefile.PL" +See ExtUtils::MakeMaker::Tutorial. +.PP +The long answer is the rest of the manpage :\-) +.SS "Default Makefile Behaviour" +.IX Subsection "Default Makefile Behaviour" +The generated Makefile enables the user of the extension to invoke +.PP +.Vb 4 +\& perl Makefile.PL # optionally "perl Makefile.PL verbose" +\& make +\& make test # optionally set TEST_VERBOSE=1 +\& make install # See below +.Ve +.PP +The Makefile to be produced may be altered by adding arguments of the +form \f(CW\*(C`KEY=VALUE\*(C'\fR. E.g. +.PP +.Vb 1 +\& perl Makefile.PL INSTALL_BASE=~ +.Ve +.PP +Other interesting targets in the generated Makefile are +.PP +.Vb 5 +\& make config # to check if the Makefile is up\-to\-date +\& make clean # delete local temp files (Makefile gets renamed) +\& make realclean # delete derived files (including ./blib) +\& make ci # check in all the files in the MANIFEST file +\& make dist # see below the Distribution Support section +.Ve +.SS "make test" +.IX Subsection "make test" +MakeMaker checks for the existence of a file named \fItest.pl\fR in the +current directory, and if it exists it executes the script with the +proper set of perl \f(CW\*(C`\-I\*(C'\fR options. +.PP +MakeMaker also checks for any files matching glob(\*(L"t/*.t\*(R"). It will +execute all matching files in alphabetical order via the +Test::Harness module with the \f(CW\*(C`\-I\*(C'\fR switches set correctly. +.PP +You can also organize your tests within subdirectories in the \fIt/\fR directory. +To do so, use the \fItest\fR directive in your \fIMakefile.PL\fR. For example, if you +had tests in: +.PP +.Vb 2 +\& t/foo +\& t/foo/bar +.Ve +.PP +You could tell make to run tests in both of those directories with the +following directives: +.PP +.Vb 2 +\& test => {TESTS => \*(Aqt/*/*.t t/*/*/*.t\*(Aq} +\& test => {TESTS => \*(Aqt/foo/*.t t/foo/bar/*.t\*(Aq} +.Ve +.PP +The first will run all test files in all first-level subdirectories and all +subdirectories they contain. The second will run tests in only the \fIt/foo\fR +and \fIt/foo/bar\fR. +.PP +If you'd like to see the raw output of your tests, set the +\&\f(CW\*(C`TEST_VERBOSE\*(C'\fR variable to true. +.PP +.Vb 1 +\& make test TEST_VERBOSE=1 +.Ve +.PP +If you want to run particular test files, set the \f(CW\*(C`TEST_FILES\*(C'\fR variable. +It is possible to use globbing with this mechanism. +.PP +.Vb 1 +\& make test TEST_FILES=\*(Aqt/foobar.t t/dagobah*.t\*(Aq +.Ve +.PP +Windows users who are using \f(CW\*(C`nmake\*(C'\fR should note that due to a bug in \f(CW\*(C`nmake\*(C'\fR, +when specifying \f(CW\*(C`TEST_FILES\*(C'\fR you must use back-slashes instead of forward-slashes. +.PP +.Vb 1 +\& nmake test TEST_FILES=\*(Aqt\efoobar.t t\edagobah*.t\*(Aq +.Ve +.SS "make testdb" +.IX Subsection "make testdb" +A useful variation of the above is the target \f(CW\*(C`testdb\*(C'\fR. It runs the +test under the Perl debugger (see perldebug). If the file +\&\fItest.pl\fR exists in the current directory, it is used for the test. +.PP +If you want to debug some other testfile, set the \f(CW\*(C`TEST_FILE\*(C'\fR variable +thusly: +.PP +.Vb 1 +\& make testdb TEST_FILE=t/mytest.t +.Ve +.PP +By default the debugger is called using \f(CW\*(C`\-d\*(C'\fR option to perl. If you +want to specify some other option, set the \f(CW\*(C`TESTDB_SW\*(C'\fR variable: +.PP +.Vb 1 +\& make testdb TESTDB_SW=\-Dx +.Ve +.SS "make install" +.IX Subsection "make install" +make alone puts all relevant files into directories that are named by +the macros \s-1INST_LIB, INST_ARCHLIB, INST_SCRIPT, INST_MAN1DIR\s0 and +\&\s-1INST_MAN3DIR.\s0 All these default to something below ./blib if you are +\&\fInot\fR building below the perl source directory. If you \fIare\fR +building below the perl source, \s-1INST_LIB\s0 and \s-1INST_ARCHLIB\s0 default to +\&../../lib, and \s-1INST_SCRIPT\s0 is not defined. +.PP +The \fIinstall\fR target of the generated Makefile copies the files found +below each of the INST_* directories to their INSTALL* +counterparts. Which counterparts are chosen depends on the setting of +\&\s-1INSTALLDIRS\s0 according to the following table: +.PP +.Vb 2 +\& INSTALLDIRS set to +\& perl site vendor +\& +\& PERLPREFIX SITEPREFIX VENDORPREFIX +\& INST_ARCHLIB INSTALLARCHLIB INSTALLSITEARCH INSTALLVENDORARCH +\& INST_LIB INSTALLPRIVLIB INSTALLSITELIB INSTALLVENDORLIB +\& INST_BIN INSTALLBIN INSTALLSITEBIN INSTALLVENDORBIN +\& INST_SCRIPT INSTALLSCRIPT INSTALLSITESCRIPT INSTALLVENDORSCRIPT +\& INST_MAN1DIR INSTALLMAN1DIR INSTALLSITEMAN1DIR INSTALLVENDORMAN1DIR +\& INST_MAN3DIR INSTALLMAN3DIR INSTALLSITEMAN3DIR INSTALLVENDORMAN3DIR +.Ve +.PP +The \s-1INSTALL...\s0 macros in turn default to their \f(CW%Config\fR +($Config{installprivlib}, \f(CW$Config\fR{installarchlib}, etc.) counterparts. +.PP +You can check the values of these variables on your system with +.PP +.Vb 1 +\& perl \*(Aq\-V:install.*\*(Aq +.Ve +.PP +And to check the sequence in which the library directories are +searched by perl, run +.PP +.Vb 1 +\& perl \-le \*(Aqprint join $/, @INC\*(Aq +.Ve +.PP +Sometimes older versions of the module you're installing live in other +directories in \f(CW@INC\fR. Because Perl loads the first version of a module it +finds, not the newest, you might accidentally get one of these older +versions even after installing a brand new version. To delete \fIall other +versions of the module you're installing\fR (not simply older ones) set the +\&\f(CW\*(C`UNINST\*(C'\fR variable. +.PP +.Vb 1 +\& make install UNINST=1 +.Ve +.SS "\s-1INSTALL_BASE\s0" +.IX Subsection "INSTALL_BASE" +\&\s-1INSTALL_BASE\s0 can be passed into Makefile.PL to change where your +module will be installed. \s-1INSTALL_BASE\s0 is more like what everyone +else calls \*(L"prefix\*(R" than \s-1PREFIX\s0 is. +.PP +To have everything installed in your home directory, do the following. +.PP +.Vb 2 +\& # Unix users, INSTALL_BASE=~ works fine +\& perl Makefile.PL INSTALL_BASE=/path/to/your/home/dir +.Ve +.PP +Like \s-1PREFIX,\s0 it sets several INSTALL* attributes at once. Unlike +\&\s-1PREFIX\s0 it is easy to predict where the module will end up. The +installation pattern looks like this: +.PP +.Vb 6 +\& INSTALLARCHLIB INSTALL_BASE/lib/perl5/$Config{archname} +\& INSTALLPRIVLIB INSTALL_BASE/lib/perl5 +\& INSTALLBIN INSTALL_BASE/bin +\& INSTALLSCRIPT INSTALL_BASE/bin +\& INSTALLMAN1DIR INSTALL_BASE/man/man1 +\& INSTALLMAN3DIR INSTALL_BASE/man/man3 +.Ve +.PP +\&\s-1INSTALL_BASE\s0 in MakeMaker and \f(CW\*(C`\-\-install_base\*(C'\fR in Module::Build (as +of 0.28) install to the same location. If you want MakeMaker and +Module::Build to install to the same location simply set \s-1INSTALL_BASE\s0 +and \f(CW\*(C`\-\-install_base\*(C'\fR to the same location. +.PP +\&\s-1INSTALL_BASE\s0 was added in 6.31. +.SS "\s-1PREFIX\s0 and \s-1LIB\s0 attribute" +.IX Subsection "PREFIX and LIB attribute" +\&\s-1PREFIX\s0 and \s-1LIB\s0 can be used to set several INSTALL* attributes in one +go. Here's an example for installing into your home directory. +.PP +.Vb 2 +\& # Unix users, PREFIX=~ works fine +\& perl Makefile.PL PREFIX=/path/to/your/home/dir +.Ve +.PP +This will install all files in the module under your home directory, +with man pages and libraries going into an appropriate place (usually +~/man and ~/lib). How the exact location is determined is complicated +and depends on how your Perl was configured. \s-1INSTALL_BASE\s0 works more +like what other build systems call \*(L"prefix\*(R" than \s-1PREFIX\s0 and we +recommend you use that instead. +.PP +Another way to specify many \s-1INSTALL\s0 directories with a single +parameter is \s-1LIB.\s0 +.PP +.Vb 1 +\& perl Makefile.PL LIB=~/lib +.Ve +.PP +This will install the module's architecture-independent files into +~/lib, the architecture-dependent files into ~/lib/$archname. +.PP +Note, that in both cases the tilde expansion is done by MakeMaker, not +by perl by default, nor by make. +.PP +Conflicts between parameters \s-1LIB, PREFIX\s0 and the various INSTALL* +arguments are resolved so that: +.IP "\(bu" 4 +setting \s-1LIB\s0 overrides any setting of \s-1INSTALLPRIVLIB, INSTALLARCHLIB, +INSTALLSITELIB, INSTALLSITEARCH\s0 (and they are not affected by \s-1PREFIX\s0); +.IP "\(bu" 4 +without \s-1LIB,\s0 setting \s-1PREFIX\s0 replaces the initial \f(CW$Config{prefix}\fR +part of those INSTALL* arguments, even if the latter are explicitly +set (but are set to still start with \f(CW$Config{prefix}\fR). +.PP +If the user has superuser privileges, and is not working on \s-1AFS\s0 or +relatives, then the defaults for \s-1INSTALLPRIVLIB, INSTALLARCHLIB, +INSTALLSCRIPT,\s0 etc. will be appropriate, and this incantation will be +the best: +.PP +.Vb 4 +\& perl Makefile.PL; +\& make; +\& make test +\& make install +.Ve +.PP +make install by default writes some documentation of what has been +done into the file \f(CW\*(C`$(INSTALLARCHLIB)/perllocal.pod\*(C'\fR. This feature +can be bypassed by calling make pure_install. +.SS "\s-1AFS\s0 users" +.IX Subsection "AFS users" +will have to specify the installation directories as these most +probably have changed since perl itself has been installed. They will +have to do this by calling +.PP +.Vb 3 +\& perl Makefile.PL INSTALLSITELIB=/afs/here/today \e +\& INSTALLSCRIPT=/afs/there/now INSTALLMAN3DIR=/afs/for/manpages +\& make +.Ve +.PP +Be careful to repeat this procedure every time you recompile an +extension, unless you are sure the \s-1AFS\s0 installation directories are +still valid. +.SS "Static Linking of a new Perl Binary" +.IX Subsection "Static Linking of a new Perl Binary" +An extension that is built with the above steps is ready to use on +systems supporting dynamic loading. On systems that do not support +dynamic loading, any newly created extension has to be linked together +with the available resources. MakeMaker supports the linking process +by creating appropriate targets in the Makefile whenever an extension +is built. You can invoke the corresponding section of the makefile with +.PP +.Vb 1 +\& make perl +.Ve +.PP +That produces a new perl binary in the current directory with all +extensions linked in that can be found in \s-1INST_ARCHLIB, SITELIBEXP,\s0 +and \s-1PERL_ARCHLIB.\s0 To do that, MakeMaker writes a new Makefile, on +\&\s-1UNIX,\s0 this is called \fIMakefile.aperl\fR (may be system dependent). If you +want to force the creation of a new perl, it is recommended that you +delete this \fIMakefile.aperl\fR, so the directories are searched through +for linkable libraries again. +.PP +The binary can be installed into the directory where perl normally +resides on your machine with +.PP +.Vb 1 +\& make inst_perl +.Ve +.PP +To produce a perl binary with a different name than \f(CW\*(C`perl\*(C'\fR, either say +.PP +.Vb 3 +\& perl Makefile.PL MAP_TARGET=myperl +\& make myperl +\& make inst_perl +.Ve +.PP +or say +.PP +.Vb 3 +\& perl Makefile.PL +\& make myperl MAP_TARGET=myperl +\& make inst_perl MAP_TARGET=myperl +.Ve +.PP +In any case you will be prompted with the correct invocation of the +\&\f(CW\*(C`inst_perl\*(C'\fR target that installs the new binary into \s-1INSTALLBIN.\s0 +.PP +make inst_perl by default writes some documentation of what has been +done into the file \f(CW\*(C`$(INSTALLARCHLIB)/perllocal.pod\*(C'\fR. This +can be bypassed by calling make pure_inst_perl. +.PP +Warning: the inst_perl: target will most probably overwrite your +existing perl binary. Use with care! +.PP +Sometimes you might want to build a statically linked perl although +your system supports dynamic loading. In this case you may explicitly +set the linktype with the invocation of the Makefile.PL or make: +.PP +.Vb 1 +\& perl Makefile.PL LINKTYPE=static # recommended +.Ve +.PP +or +.PP +.Vb 1 +\& make LINKTYPE=static # works on most systems +.Ve +.SS "Determination of Perl Library and Installation Locations" +.IX Subsection "Determination of Perl Library and Installation Locations" +MakeMaker needs to know, or to guess, where certain things are +located. Especially \s-1INST_LIB\s0 and \s-1INST_ARCHLIB\s0 (where to put the files +during the \fBmake\fR\|(1) run), \s-1PERL_LIB\s0 and \s-1PERL_ARCHLIB\s0 (where to read +existing modules from), and \s-1PERL_INC\s0 (header files and \f(CW\*(C`libperl*.*\*(C'\fR). +.PP +Extensions may be built either using the contents of the perl source +directory tree or from the installed perl library. The recommended way +is to build extensions after you have run 'make install' on perl +itself. You can do that in any directory on your hard disk that is not +below the perl source tree. The support for extensions below the ext +directory of the perl distribution is only good for the standard +extensions that come with perl. +.PP +If an extension is being built below the \f(CW\*(C`ext/\*(C'\fR directory of the perl +source then MakeMaker will set \s-1PERL_SRC\s0 automatically (e.g., +\&\f(CW\*(C`../..\*(C'\fR). If \s-1PERL_SRC\s0 is defined and the extension is recognized as +a standard extension, then other variables default to the following: +.PP +.Vb 5 +\& PERL_INC = PERL_SRC +\& PERL_LIB = PERL_SRC/lib +\& PERL_ARCHLIB = PERL_SRC/lib +\& INST_LIB = PERL_LIB +\& INST_ARCHLIB = PERL_ARCHLIB +.Ve +.PP +If an extension is being built away from the perl source then MakeMaker +will leave \s-1PERL_SRC\s0 undefined and default to using the installed copy +of the perl library. The other variables default to the following: +.PP +.Vb 5 +\& PERL_INC = $archlibexp/CORE +\& PERL_LIB = $privlibexp +\& PERL_ARCHLIB = $archlibexp +\& INST_LIB = ./blib/lib +\& INST_ARCHLIB = ./blib/arch +.Ve +.PP +If perl has not yet been installed then \s-1PERL_SRC\s0 can be defined on the +command line as shown in the previous section. +.SS "Which architecture dependent directory?" +.IX Subsection "Which architecture dependent directory?" +If you don't want to keep the defaults for the INSTALL* macros, +MakeMaker helps you to minimize the typing needed: the usual +relationship between \s-1INSTALLPRIVLIB\s0 and \s-1INSTALLARCHLIB\s0 is determined +by Configure at perl compilation time. MakeMaker supports the user who +sets \s-1INSTALLPRIVLIB.\s0 If \s-1INSTALLPRIVLIB\s0 is set, but \s-1INSTALLARCHLIB\s0 not, +then MakeMaker defaults the latter to be the same subdirectory of +\&\s-1INSTALLPRIVLIB\s0 as Configure decided for the counterparts in \f(CW%Config\fR, +otherwise it defaults to \s-1INSTALLPRIVLIB.\s0 The same relationship holds +for \s-1INSTALLSITELIB\s0 and \s-1INSTALLSITEARCH.\s0 +.PP +MakeMaker gives you much more freedom than needed to configure +internal variables and get different results. It is worth mentioning +that \fBmake\fR\|(1) also lets you configure most of the variables that are +used in the Makefile. But in the majority of situations this will not +be necessary, and should only be done if the author of a package +recommends it (or you know what you're doing). +.SS "Using Attributes and Parameters" +.IX Subsection "Using Attributes and Parameters" +The following attributes may be specified as arguments to \fBWriteMakefile()\fR +or as NAME=VALUE pairs on the command line. Attributes that became +available with later versions of MakeMaker are indicated. +.PP +In order to maintain portability of attributes with older versions of +MakeMaker you may want to use App::EUMM::Upgrade with your \f(CW\*(C`Makefile.PL\*(C'\fR. +.IP "\s-1ABSTRACT\s0" 2 +.IX Item "ABSTRACT" +One line description of the module. Will be included in \s-1PPD\s0 file. +.IP "\s-1ABSTRACT_FROM\s0" 2 +.IX Item "ABSTRACT_FROM" +Name of the file that contains the package description. MakeMaker looks +for a line in the \s-1POD\s0 matching /^($package\es\-\es)(.*)/. This is typically +the first line in the \*(L"=head1 \s-1NAME\*(R"\s0 section. \f(CW$2\fR becomes the abstract. +.IP "\s-1AUTHOR\s0" 2 +.IX Item "AUTHOR" +Array of strings containing name (and email address) of package author(s). +Is used in \s-1CPAN\s0 Meta files (\s-1META\s0.yml or \s-1META\s0.json) and \s-1PPD\s0 +(Perl Package Description) files for \s-1PPM\s0 (Perl Package Manager). +.IP "\s-1BINARY_LOCATION\s0" 2 +.IX Item "BINARY_LOCATION" +Used when creating \s-1PPD\s0 files for binary packages. It can be set to a +full or relative path or \s-1URL\s0 to the binary archive for a particular +architecture. For example: +.Sp +.Vb 1 +\& perl Makefile.PL BINARY_LOCATION=x86/Agent.tar.gz +.Ve +.Sp +builds a \s-1PPD\s0 package that references a binary of the \f(CW\*(C`Agent\*(C'\fR package, +located in the \f(CW\*(C`x86\*(C'\fR directory relative to the \s-1PPD\s0 itself. +.IP "\s-1BUILD_REQUIRES\s0" 2 +.IX Item "BUILD_REQUIRES" +Available in version 6.55_03 and above. +.Sp +A hash of modules that are needed to build your module but not run it. +.Sp +This will go into the \f(CW\*(C`build_requires\*(C'\fR field of your \fI\s-1META\s0.yml\fR and the \f(CW\*(C`build\*(C'\fR of the \f(CW\*(C`prereqs\*(C'\fR field of your \fI\s-1META\s0.json\fR. +.Sp +Defaults to \f(CW\*(C`{ "ExtUtils::MakeMaker" => 0 }\*(C'\fR if this attribute is not specified. +.Sp +The format is the same as \s-1PREREQ_PM.\s0 +.IP "C" 2 +.IX Item "C" +Ref to array of *.c file names. Initialised from a directory scan +and the values portion of the \s-1XS\s0 attribute hash. This is not +currently used by MakeMaker but may be handy in Makefile.PLs. +.IP "\s-1CCFLAGS\s0" 2 +.IX Item "CCFLAGS" +String that will be included in the compiler call command line between +the arguments \s-1INC\s0 and \s-1OPTIMIZE.\s0 +.IP "\s-1CONFIG\s0" 2 +.IX Item "CONFIG" +Arrayref. E.g. [qw(archname manext)] defines \s-1ARCHNAME & MANEXT\s0 from +config.sh. MakeMaker will add to \s-1CONFIG\s0 the following values anyway: +ar +cc +cccdlflags +ccdlflags +dlext +dlsrc +ld +lddlflags +ldflags +libc +lib_ext +obj_ext +ranlib +sitelibexp +sitearchexp +so +.IP "\s-1CONFIGURE\s0" 2 +.IX Item "CONFIGURE" +\&\s-1CODE\s0 reference. The subroutine should return a hash reference. The +hash may contain further attributes, e.g. {\s-1LIBS\s0 => ...}, that have to +be determined by some evaluation method. +.IP "\s-1CONFIGURE_REQUIRES\s0" 2 +.IX Item "CONFIGURE_REQUIRES" +Available in version 6.52 and above. +.Sp +A hash of modules that are required to run Makefile.PL itself, but not +to run your distribution. +.Sp +This will go into the \f(CW\*(C`configure_requires\*(C'\fR field of your \fI\s-1META\s0.yml\fR and the \f(CW\*(C`configure\*(C'\fR of the \f(CW\*(C`prereqs\*(C'\fR field of your \fI\s-1META\s0.json\fR. +.Sp +Defaults to \f(CW\*(C`{ "ExtUtils::MakeMaker" => 0 }\*(C'\fR if this attribute is not specified. +.Sp +The format is the same as \s-1PREREQ_PM.\s0 +.IP "\s-1DEFINE\s0" 2 +.IX Item "DEFINE" +Something like \f(CW"\-DHAVE_UNISTD_H"\fR +.IP "\s-1DESTDIR\s0" 2 +.IX Item "DESTDIR" +This is the root directory into which the code will be installed. It +\&\fIprepends itself to the normal prefix\fR. For example, if your code +would normally go into \fI/usr/local/lib/perl\fR you could set DESTDIR=~/tmp/ +and installation would go into \fI~/tmp/usr/local/lib/perl\fR. +.Sp +This is primarily of use for people who repackage Perl modules. +.Sp +\&\s-1NOTE:\s0 Due to the nature of make, it is important that you put the trailing +slash on your \s-1DESTDIR.\s0 \fI~/tmp/\fR not \fI~/tmp\fR. +.IP "\s-1DIR\s0" 2 +.IX Item "DIR" +Ref to array of subdirectories containing Makefile.PLs e.g. ['sdbm'] +in ext/SDBM_File +.IP "\s-1DISTNAME\s0" 2 +.IX Item "DISTNAME" +A safe filename for the package. +.Sp +Defaults to \s-1NAME\s0 below but with :: replaced with \-. +.Sp +For example, Foo::Bar becomes Foo-Bar. +.IP "\s-1DISTVNAME\s0" 2 +.IX Item "DISTVNAME" +Your name for distributing the package with the version number +included. This is used by 'make dist' to name the resulting archive +file. +.Sp +Defaults to DISTNAME-VERSION. +.Sp +For example, version 1.04 of Foo::Bar becomes Foo\-Bar\-1.04. +.Sp +On some \s-1OS\s0's where . has special meaning \s-1VERSION_SYM\s0 may be used in +place of \s-1VERSION.\s0 +.IP "\s-1DLEXT\s0" 2 +.IX Item "DLEXT" +Specifies the extension of the module's loadable object. For example: +.Sp +.Vb 1 +\& DLEXT => \*(Aqunusual_ext\*(Aq, # Default value is $Config{so} +.Ve +.Sp +\&\s-1NOTE:\s0 When using this option to alter the extension of a module's +loadable object, it is also necessary that the module's pm file +specifies the same change: +.Sp +.Vb 1 +\& local $DynaLoader::dl_dlext = \*(Aqunusual_ext\*(Aq; +.Ve +.IP "\s-1DL_FUNCS\s0" 2 +.IX Item "DL_FUNCS" +Hashref of symbol names for routines to be made available as universal +symbols. Each key/value pair consists of the package name and an +array of routine names in that package. Used only under \s-1AIX, OS/2, +VMS\s0 and Win32 at present. The routine names supplied will be expanded +in the same way as \s-1XSUB\s0 names are expanded by the \s-1\fBXS\s0()\fR macro. +Defaults to +.Sp +.Vb 1 +\& {"$(NAME)" => ["boot_$(NAME)" ] } +.Ve +.Sp +e.g. +.Sp +.Vb 2 +\& {"RPC" => [qw( boot_rpcb rpcb_gettime getnetconfigent )], +\& "NetconfigPtr" => [ \*(AqDESTROY\*(Aq] } +.Ve +.Sp +Please see the ExtUtils::Mksymlists documentation for more information +about the \s-1DL_FUNCS, DL_VARS\s0 and \s-1FUNCLIST\s0 attributes. +.IP "\s-1DL_VARS\s0" 2 +.IX Item "DL_VARS" +Array of symbol names for variables to be made available as universal symbols. +Used only under \s-1AIX, OS/2, VMS\s0 and Win32 at present. Defaults to []. +(e.g. [ qw(Foo_version Foo_numstreams Foo_tree ) ]) +.IP "\s-1EXCLUDE_EXT\s0" 2 +.IX Item "EXCLUDE_EXT" +Array of extension names to exclude when doing a static build. This +is ignored if \s-1INCLUDE_EXT\s0 is present. Consult \s-1INCLUDE_EXT\s0 for more +details. (e.g. [ qw( Socket \s-1POSIX\s0 ) ] ) +.Sp +This attribute may be most useful when specified as a string on the +command line: perl Makefile.PL EXCLUDE_EXT='Socket Safe' +.IP "\s-1EXE_FILES\s0" 2 +.IX Item "EXE_FILES" +Ref to array of executable files. The files will be copied to the +\&\s-1INST_SCRIPT\s0 directory. Make realclean will delete them from there +again. +.Sp +If your executables start with something like #!perl or +#!/usr/bin/perl MakeMaker will change this to the path of the perl +\&'Makefile.PL' was invoked with so the programs will be sure to run +properly even if perl is not in /usr/bin/perl. +.IP "\s-1FIRST_MAKEFILE\s0" 2 +.IX Item "FIRST_MAKEFILE" +The name of the Makefile to be produced. This is used for the second +Makefile that will be produced for the \s-1MAP_TARGET.\s0 +.Sp +Defaults to 'Makefile' or 'Descrip.MMS' on \s-1VMS.\s0 +.Sp +(Note: we couldn't use \s-1MAKEFILE\s0 because dmake uses this for something +else). +.IP "\s-1FULLPERL\s0" 2 +.IX Item "FULLPERL" +Perl binary able to run this extension, load \s-1XS\s0 modules, etc... +.IP "\s-1FULLPERLRUN\s0" 2 +.IX Item "FULLPERLRUN" +Like \s-1PERLRUN,\s0 except it uses \s-1FULLPERL.\s0 +.IP "\s-1FULLPERLRUNINST\s0" 2 +.IX Item "FULLPERLRUNINST" +Like \s-1PERLRUNINST,\s0 except it uses \s-1FULLPERL.\s0 +.IP "\s-1FUNCLIST\s0" 2 +.IX Item "FUNCLIST" +This provides an alternate means to specify function names to be +exported from the extension. Its value is a reference to an +array of function names to be exported by the extension. These +names are passed through unaltered to the linker options file. +.IP "H" 2 +.IX Item "H" +Ref to array of *.h file names. Similar to C. +.IP "\s-1IMPORTS\s0" 2 +.IX Item "IMPORTS" +This attribute is used to specify names to be imported into the +extension. Takes a hash ref. +.Sp +It is only used on \s-1OS/2\s0 and Win32. +.IP "\s-1INC\s0" 2 +.IX Item "INC" +Include file dirs eg: \f(CW"\-I/usr/5include \-I/path/to/inc"\fR +.IP "\s-1INCLUDE_EXT\s0" 2 +.IX Item "INCLUDE_EXT" +Array of extension names to be included when doing a static build. +MakeMaker will normally build with all of the installed extensions when +doing a static build, and that is usually the desired behavior. If +\&\s-1INCLUDE_EXT\s0 is present then MakeMaker will build only with those extensions +which are explicitly mentioned. (e.g. [ qw( Socket \s-1POSIX\s0 ) ]) +.Sp +It is not necessary to mention DynaLoader or the current extension when +filling in \s-1INCLUDE_EXT.\s0 If the \s-1INCLUDE_EXT\s0 is mentioned but is empty then +only DynaLoader and the current extension will be included in the build. +.Sp +This attribute may be most useful when specified as a string on the +command line: perl Makefile.PL INCLUDE_EXT='\s-1POSIX\s0 Socket Devel::Peek' +.IP "\s-1INSTALLARCHLIB\s0" 2 +.IX Item "INSTALLARCHLIB" +Used by 'make install', which copies files from \s-1INST_ARCHLIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to perl. +.IP "\s-1INSTALLBIN\s0" 2 +.IX Item "INSTALLBIN" +Directory to install binary files (e.g. tkperl) into if +INSTALLDIRS=perl. +.IP "\s-1INSTALLDIRS\s0" 2 +.IX Item "INSTALLDIRS" +Determines which of the sets of installation directories to choose: +perl, site or vendor. Defaults to site. +.IP "\s-1INSTALLMAN1DIR\s0" 2 +.IX Item "INSTALLMAN1DIR" +.PD 0 +.IP "\s-1INSTALLMAN3DIR\s0" 2 +.IX Item "INSTALLMAN3DIR" +.PD +These directories get the man pages at 'make install' time if +INSTALLDIRS=perl. Defaults to \f(CW$Config\fR{installman*dir}. +.Sp +If set to 'none', no man pages will be installed. +.IP "\s-1INSTALLPRIVLIB\s0" 2 +.IX Item "INSTALLPRIVLIB" +Used by 'make install', which copies files from \s-1INST_LIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to perl. +.Sp +Defaults to \f(CW$Config\fR{installprivlib}. +.IP "\s-1INSTALLSCRIPT\s0" 2 +.IX Item "INSTALLSCRIPT" +Available in version 6.30_02 and above. +.Sp +Used by 'make install' which copies files from \s-1INST_SCRIPT\s0 to this +directory if INSTALLDIRS=perl. +.IP "\s-1INSTALLSITEARCH\s0" 2 +.IX Item "INSTALLSITEARCH" +Used by 'make install', which copies files from \s-1INST_ARCHLIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to site (default). +.IP "\s-1INSTALLSITEBIN\s0" 2 +.IX Item "INSTALLSITEBIN" +Used by 'make install', which copies files from \s-1INST_BIN\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to site (default). +.IP "\s-1INSTALLSITELIB\s0" 2 +.IX Item "INSTALLSITELIB" +Used by 'make install', which copies files from \s-1INST_LIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to site (default). +.IP "\s-1INSTALLSITEMAN1DIR\s0" 2 +.IX Item "INSTALLSITEMAN1DIR" +.PD 0 +.IP "\s-1INSTALLSITEMAN3DIR\s0" 2 +.IX Item "INSTALLSITEMAN3DIR" +.PD +These directories get the man pages at 'make install' time if +INSTALLDIRS=site (default). Defaults to +$(\s-1SITEPREFIX\s0)/man/man$(MAN*EXT). +.Sp +If set to 'none', no man pages will be installed. +.IP "\s-1INSTALLSITESCRIPT\s0" 2 +.IX Item "INSTALLSITESCRIPT" +Used by 'make install' which copies files from \s-1INST_SCRIPT\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to site (default). +.IP "\s-1INSTALLVENDORARCH\s0" 2 +.IX Item "INSTALLVENDORARCH" +Used by 'make install', which copies files from \s-1INST_ARCHLIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to vendor. Note that if you do not set +this, the value of \s-1INSTALLVENDORLIB\s0 will be used, which is probably not +what you want. +.IP "\s-1INSTALLVENDORBIN\s0" 2 +.IX Item "INSTALLVENDORBIN" +Used by 'make install', which copies files from \s-1INST_BIN\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to vendor. +.IP "\s-1INSTALLVENDORLIB\s0" 2 +.IX Item "INSTALLVENDORLIB" +Used by 'make install', which copies files from \s-1INST_LIB\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to vendor. +.IP "\s-1INSTALLVENDORMAN1DIR\s0" 2 +.IX Item "INSTALLVENDORMAN1DIR" +.PD 0 +.IP "\s-1INSTALLVENDORMAN3DIR\s0" 2 +.IX Item "INSTALLVENDORMAN3DIR" +.PD +These directories get the man pages at 'make install' time if +INSTALLDIRS=vendor. Defaults to $(\s-1VENDORPREFIX\s0)/man/man$(MAN*EXT). +.Sp +If set to 'none', no man pages will be installed. +.IP "\s-1INSTALLVENDORSCRIPT\s0" 2 +.IX Item "INSTALLVENDORSCRIPT" +Available in version 6.30_02 and above. +.Sp +Used by 'make install' which copies files from \s-1INST_SCRIPT\s0 to this +directory if \s-1INSTALLDIRS\s0 is set to vendor. +.IP "\s-1INST_ARCHLIB\s0" 2 +.IX Item "INST_ARCHLIB" +Same as \s-1INST_LIB\s0 for architecture dependent files. +.IP "\s-1INST_BIN\s0" 2 +.IX Item "INST_BIN" +Directory to put real binary files during 'make'. These will be copied +to \s-1INSTALLBIN\s0 during 'make install' +.IP "\s-1INST_LIB\s0" 2 +.IX Item "INST_LIB" +Directory where we put library files of this extension while building +it. +.IP "\s-1INST_MAN1DIR\s0" 2 +.IX Item "INST_MAN1DIR" +Directory to hold the man pages at 'make' time +.IP "\s-1INST_MAN3DIR\s0" 2 +.IX Item "INST_MAN3DIR" +Directory to hold the man pages at 'make' time +.IP "\s-1INST_SCRIPT\s0" 2 +.IX Item "INST_SCRIPT" +Directory where executable files should be installed during +\&'make'. Defaults to \*(L"./blib/script\*(R", just to have a dummy location during +testing. make install will copy the files in \s-1INST_SCRIPT\s0 to +\&\s-1INSTALLSCRIPT.\s0 +.IP "\s-1LD\s0" 2 +.IX Item "LD" +Program to be used to link libraries for dynamic loading. +.Sp +Defaults to \f(CW$Config\fR{ld}. +.IP "\s-1LDDLFLAGS\s0" 2 +.IX Item "LDDLFLAGS" +Any special flags that might need to be passed to ld to create a +shared library suitable for dynamic loading. It is up to the makefile +to use it. (See \*(L"lddlflags\*(R" in Config) +.Sp +Defaults to \f(CW$Config\fR{lddlflags}. +.IP "\s-1LDFROM\s0" 2 +.IX Item "LDFROM" +Defaults to \*(L"$(\s-1OBJECT\s0)\*(R" and is used in the ld command to specify +what files to link/load from (also see dynamic_lib below for how to +specify ld flags) +.IP "\s-1LIB\s0" 2 +.IX Item "LIB" +\&\s-1LIB\s0 should only be set at \f(CW\*(C`perl Makefile.PL\*(C'\fR time but is allowed as a +MakeMaker argument. It has the effect of setting both \s-1INSTALLPRIVLIB\s0 +and \s-1INSTALLSITELIB\s0 to that value regardless any explicit setting of +those arguments (or of \s-1PREFIX\s0). \s-1INSTALLARCHLIB\s0 and \s-1INSTALLSITEARCH\s0 +are set to the corresponding architecture subdirectory. +.IP "\s-1LIBPERL_A\s0" 2 +.IX Item "LIBPERL_A" +The filename of the perllibrary that will be used together with this +extension. Defaults to libperl.a. +.IP "\s-1LIBS\s0" 2 +.IX Item "LIBS" +An anonymous array of alternative library +specifications to be searched for (in order) until +at least one library is found. E.g. +.Sp +.Vb 1 +\& \*(AqLIBS\*(Aq => ["\-lgdbm", "\-ldbm \-lfoo", "\-L/path \-ldbm.nfs"] +.Ve +.Sp +Mind, that any element of the array +contains a complete set of arguments for the ld +command. So do not specify +.Sp +.Vb 1 +\& \*(AqLIBS\*(Aq => ["\-ltcl", "\-ltk", "\-lX11"] +.Ve +.Sp +See ODBM_File/Makefile.PL for an example, where an array is needed. If +you specify a scalar as in +.Sp +.Vb 1 +\& \*(AqLIBS\*(Aq => "\-ltcl \-ltk \-lX11" +.Ve +.Sp +MakeMaker will turn it into an array with one element. +.IP "\s-1LICENSE\s0" 2 +.IX Item "LICENSE" +Available in version 6.31 and above. +.Sp +The licensing terms of your distribution. Generally it's \*(L"perl_5\*(R" for the +same license as Perl itself. +.Sp +See CPAN::Meta::Spec for the list of options. +.Sp +Defaults to \*(L"unknown\*(R". +.IP "\s-1LINKTYPE\s0" 2 +.IX Item "LINKTYPE" +\&'static' or 'dynamic' (default unless usedl=undef in +config.sh). Should only be used to force static linking (also see +linkext below). +.IP "\s-1MAGICXS\s0" 2 +.IX Item "MAGICXS" +Available in version 6.8305 and above. +.Sp +When this is set to \f(CW1\fR, \f(CW\*(C`OBJECT\*(C'\fR will be automagically derived from +\&\f(CW\*(C`O_FILES\*(C'\fR. +.IP "\s-1MAKE\s0" 2 +.IX Item "MAKE" +Available in version 6.30_01 and above. +.Sp +Variant of make you intend to run the generated Makefile with. This +parameter lets Makefile.PL know what make quirks to account for when +generating the Makefile. +.Sp +MakeMaker also honors the \s-1MAKE\s0 environment variable. This parameter +takes precedence. +.Sp +Currently the only significant values are 'dmake' and 'nmake' for Windows +users, instructing MakeMaker to generate a Makefile in the flavour of +DMake (\*(L"Dennis Vadura's Make\*(R") or Microsoft NMake respectively. +.Sp +Defaults to \f(CW$Config\fR{make}, which may go looking for a Make program +in your environment. +.Sp +How are you supposed to know what flavour of Make a Makefile has +been generated for if you didn't specify a value explicitly? Search +the generated Makefile for the definition of the \s-1MAKE\s0 variable, +which is used to recursively invoke the Make utility. That will tell +you what Make you're supposed to invoke the Makefile with. +.IP "\s-1MAKEAPERL\s0" 2 +.IX Item "MAKEAPERL" +Boolean which tells MakeMaker that it should include the rules to +make a perl. This is handled automatically as a switch by +MakeMaker. The user normally does not need it. +.IP "\s-1MAKEFILE_OLD\s0" 2 +.IX Item "MAKEFILE_OLD" +When 'make clean' or similar is run, the $(\s-1FIRST_MAKEFILE\s0) will be +backed up at this location. +.Sp +Defaults to $(\s-1FIRST_MAKEFILE\s0).old or $(\s-1FIRST_MAKEFILE\s0)_old on \s-1VMS.\s0 +.IP "\s-1MAN1PODS\s0" 2 +.IX Item "MAN1PODS" +Hashref of pod-containing files. MakeMaker will default this to all +\&\s-1EXE_FILES\s0 files that include \s-1POD\s0 directives. The files listed +here will be converted to man pages and installed as was requested +at Configure time. +.Sp +This hash should map \s-1POD\s0 files (or scripts containing \s-1POD\s0) to the +man file names under the \f(CW\*(C`blib/man1/\*(C'\fR directory, as in the following +example: +.Sp +.Vb 4 +\& MAN1PODS => { +\& \*(Aqdoc/command.pod\*(Aq => \*(Aqblib/man1/command.1\*(Aq, +\& \*(Aqscripts/script.pl\*(Aq => \*(Aqblib/man1/script.1\*(Aq, +\& } +.Ve +.IP "\s-1MAN3PODS\s0" 2 +.IX Item "MAN3PODS" +Hashref that assigns to *.pm and *.pod files the files into which the +manpages are to be written. MakeMaker parses all *.pod and *.pm files +for \s-1POD\s0 directives. Files that contain \s-1POD\s0 will be the default keys of +the \s-1MAN3PODS\s0 hashref. These will then be converted to man pages during +\&\f(CW\*(C`make\*(C'\fR and will be installed during \f(CW\*(C`make install\*(C'\fR. +.Sp +Example similar to \s-1MAN1PODS.\s0 +.IP "\s-1MAP_TARGET\s0" 2 +.IX Item "MAP_TARGET" +If it is intended that a new perl binary be produced, this variable +may hold a name for that binary. Defaults to perl +.IP "\s-1META_ADD\s0" 2 +.IX Item "META_ADD" +.PD 0 +.IP "\s-1META_MERGE\s0" 2 +.IX Item "META_MERGE" +.PD +Available in version 6.46 and above. +.Sp +A hashref of items to add to the \s-1CPAN\s0 Meta file (\fI\s-1META\s0.yml\fR or +\&\fI\s-1META\s0.json\fR). +.Sp +They differ in how they behave if they have the same key as the +default metadata. \s-1META_ADD\s0 will override the default value with its +own. \s-1META_MERGE\s0 will merge its value with the default. +.Sp +Unless you want to override the defaults, prefer \s-1META_MERGE\s0 so as to +get the advantage of any future defaults. +.Sp +Where prereqs are concerned, if \s-1META_MERGE\s0 is used, prerequisites are merged +with their counterpart \f(CW\*(C`WriteMakefile()\*(C'\fR argument +(\s-1PREREQ_PM\s0 is merged into {prereqs}{runtime}{requires}, +\&\s-1BUILD_REQUIRES\s0 into \f(CW\*(C`{prereqs}{build}{requires}\*(C'\fR, +\&\s-1CONFIGURE_REQUIRES\s0 into \f(CW\*(C`{prereqs}{configure}{requires}\*(C'\fR, +and \s-1TEST_REQUIRES\s0 into \f(CW\*(C`{prereqs}{test}{requires})\*(C'\fR. +When prereqs are specified with \s-1META_ADD,\s0 the only prerequisites added to the +file come from the metadata, not \f(CW\*(C`WriteMakefile()\*(C'\fR arguments. +.Sp +Note that these configuration options are only used for generating \fI\s-1META\s0.yml\fR +and \fI\s-1META\s0.json\fR \*(-- they are \s-1NOT\s0 used for \fI\s-1MYMETA\s0.yml\fR and \fI\s-1MYMETA\s0.json\fR. +Therefore data in these fields should \s-1NOT\s0 be used for dynamic (user-side) +configuration. +.Sp +By default \s-1CPAN\s0 Meta specification \f(CW1.4\fR is used. In order to use +\&\s-1CPAN\s0 Meta specification \f(CW2.0\fR, indicate with \f(CW\*(C`meta\-spec\*(C'\fR the version +you want to use. +.Sp +.Vb 1 +\& META_MERGE => { +\& +\& "meta\-spec" => { version => 2 }, +\& +\& resources => { +\& +\& repository => { +\& type => \*(Aqgit\*(Aq, +\& url => \*(Aqgit://github.com/Perl\-Toolchain\-Gang/ExtUtils\-MakeMaker.git\*(Aq, +\& web => \*(Aqhttps://github.com/Perl\-Toolchain\-Gang/ExtUtils\-MakeMaker\*(Aq, +\& }, +\& +\& }, +\& +\& }, +.Ve +.IP "\s-1MIN_PERL_VERSION\s0" 2 +.IX Item "MIN_PERL_VERSION" +Available in version 6.48 and above. +.Sp +The minimum required version of Perl for this distribution. +.Sp +Either the 5.006001 or the 5.6.1 format is acceptable. +.IP "\s-1MYEXTLIB\s0" 2 +.IX Item "MYEXTLIB" +If the extension links to a library that it builds, set this to the +name of the library (see SDBM_File) +.IP "\s-1NAME\s0" 2 +.IX Item "NAME" +The package representing the distribution. For example, \f(CW\*(C`Test::More\*(C'\fR +or \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR. It will be used to derive information about +the distribution such as the \*(L"\s-1DISTNAME\*(R"\s0, installation locations +within the Perl library and where \s-1XS\s0 files will be looked for by +default (see \*(L"\s-1XS\*(R"\s0). +.Sp +\&\f(CW\*(C`NAME\*(C'\fR \fImust\fR be a valid Perl package name and it \fImust\fR have an +associated \f(CW\*(C`.pm\*(C'\fR file. For example, \f(CW\*(C`Foo::Bar\*(C'\fR is a valid \f(CW\*(C`NAME\*(C'\fR +and there must exist \fIFoo/Bar.pm\fR. Any \s-1XS\s0 code should be in +\&\fIBar.xs\fR unless stated otherwise. +.Sp +Your distribution \fBmust\fR have a \f(CW\*(C`NAME\*(C'\fR. +.IP "\s-1NEEDS_LINKING\s0" 2 +.IX Item "NEEDS_LINKING" +MakeMaker will figure out if an extension contains linkable code +anywhere down the directory tree, and will set this variable +accordingly, but you can speed it up a very little bit if you define +this boolean variable yourself. +.IP "\s-1NOECHO\s0" 2 +.IX Item "NOECHO" +Command so make does not print the literal commands it's running. +.Sp +By setting it to an empty string you can generate a Makefile that +prints all commands. Mainly used in debugging MakeMaker itself. +.Sp +Defaults to \f(CW\*(C`@\*(C'\fR. +.IP "\s-1NORECURS\s0" 2 +.IX Item "NORECURS" +Boolean. Attribute to inhibit descending into subdirectories. +.IP "\s-1NO_META\s0" 2 +.IX Item "NO_META" +When true, suppresses the generation and addition to the \s-1MANIFEST\s0 of +the \s-1META\s0.yml and \s-1META\s0.json module meta-data files during 'make distdir'. +.Sp +Defaults to false. +.IP "\s-1NO_MYMETA\s0" 2 +.IX Item "NO_MYMETA" +Available in version 6.57_02 and above. +.Sp +When true, suppresses the generation of \s-1MYMETA\s0.yml and \s-1MYMETA\s0.json module +meta-data files during 'perl Makefile.PL'. +.Sp +Defaults to false. +.IP "\s-1NO_PACKLIST\s0" 2 +.IX Item "NO_PACKLIST" +Available in version 6.7501 and above. +.Sp +When true, suppresses the writing of \f(CW\*(C`packlist\*(C'\fR files for installs. +.Sp +Defaults to false. +.IP "\s-1NO_PERLLOCAL\s0" 2 +.IX Item "NO_PERLLOCAL" +Available in version 6.7501 and above. +.Sp +When true, suppresses the appending of installations to \f(CW\*(C`perllocal\*(C'\fR. +.Sp +Defaults to false. +.IP "\s-1NO_VC\s0" 2 +.IX Item "NO_VC" +In general, any generated Makefile checks for the current version of +MakeMaker and the version the Makefile was built under. If \s-1NO_VC\s0 is +set, the version check is neglected. Do not write this into your +Makefile.PL, use it interactively instead. +.IP "\s-1OBJECT\s0" 2 +.IX Item "OBJECT" +List of object files, defaults to '$(\s-1BASEEXT\s0)$(\s-1OBJ_EXT\s0)', but can be a long +string or an array containing all object files, e.g. \*(L"tkpBind.o +tkpButton.o tkpCanvas.o\*(R" or [\*(L"tkpBind.o\*(R", \*(L"tkpButton.o\*(R", \*(L"tkpCanvas.o\*(R"] +.Sp +(Where \s-1BASEEXT\s0 is the last component of \s-1NAME,\s0 and \s-1OBJ_EXT\s0 is \f(CW$Config\fR{obj_ext}.) +.IP "\s-1OPTIMIZE\s0" 2 +.IX Item "OPTIMIZE" +Defaults to \f(CW\*(C`\-O\*(C'\fR. Set it to \f(CW\*(C`\-g\*(C'\fR to turn debugging on. The flag is +passed to subdirectory makes. +.IP "\s-1PERL\s0" 2 +.IX Item "PERL" +Perl binary for tasks that can be done by miniperl. If it contains +spaces or other shell metacharacters, it needs to be quoted in a way +that protects them, since this value is intended to be inserted in a +shell command line in the Makefile. E.g.: +.Sp +.Vb 3 +\& # Perl executable lives in "C:/Program Files/Perl/bin" +\& # Normally you don\*(Aqt need to set this yourself! +\& $ perl Makefile.PL PERL=\*(Aq"C:/Program Files/Perl/bin/perl.exe" \-w\*(Aq +.Ve +.IP "\s-1PERL_CORE\s0" 2 +.IX Item "PERL_CORE" +Set only when MakeMaker is building the extensions of the Perl core +distribution. +.IP "\s-1PERLMAINCC\s0" 2 +.IX Item "PERLMAINCC" +The call to the program that is able to compile perlmain.c. Defaults +to $(\s-1CC\s0). +.IP "\s-1PERL_ARCHLIB\s0" 2 +.IX Item "PERL_ARCHLIB" +Same as for \s-1PERL_LIB,\s0 but for architecture dependent files. +.Sp +Used only when MakeMaker is building the extensions of the Perl core +distribution (because normally $(\s-1PERL_ARCHLIB\s0) is automatically in \f(CW@INC\fR, +and adding it would get in the way of \s-1PERL5LIB\s0). +.IP "\s-1PERL_LIB\s0" 2 +.IX Item "PERL_LIB" +Directory containing the Perl library to use. +.Sp +Used only when MakeMaker is building the extensions of the Perl core +distribution (because normally $(\s-1PERL_LIB\s0) is automatically in \f(CW@INC\fR, +and adding it would get in the way of \s-1PERL5LIB\s0). +.IP "\s-1PERL_MALLOC_OK\s0" 2 +.IX Item "PERL_MALLOC_OK" +defaults to 0. Should be set to \s-1TRUE\s0 if the extension can work with +the memory allocation routines substituted by the Perl \fBmalloc()\fR subsystem. +This should be applicable to most extensions with exceptions of those +.RS 2 +.IP "\(bu" 4 +with bugs in memory allocations which are caught by Perl's \fBmalloc()\fR; +.IP "\(bu" 4 +which interact with the memory allocator in other ways than via +\&\fBmalloc()\fR, \fBrealloc()\fR, \fBfree()\fR, \fBcalloc()\fR, \fBsbrk()\fR and \fBbrk()\fR; +.IP "\(bu" 4 +which rely on special alignment which is not provided by Perl's \fBmalloc()\fR. +.RE +.RS 2 +.Sp +\&\fB\s-1NOTE.\s0\fR Neglecting to set this flag in \fIany one\fR of the loaded extension +nullifies many advantages of Perl's \fBmalloc()\fR, such as better usage of +system resources, error detection, memory usage reporting, catchable failure +of memory allocations, etc. +.RE +.IP "\s-1PERLPREFIX\s0" 2 +.IX Item "PERLPREFIX" +Directory under which core modules are to be installed. +.Sp +Defaults to \f(CW$Config\fR{installprefixexp}, falling back to +\&\f(CW$Config\fR{installprefix}, \f(CW$Config\fR{prefixexp} or \f(CW$Config\fR{prefix} should +\&\f(CW$Config\fR{installprefixexp} not exist. +.Sp +Overridden by \s-1PREFIX.\s0 +.IP "\s-1PERLRUN\s0" 2 +.IX Item "PERLRUN" +Use this instead of $(\s-1PERL\s0) when you wish to run perl. It will set up +extra necessary flags for you. +.IP "\s-1PERLRUNINST\s0" 2 +.IX Item "PERLRUNINST" +Use this instead of $(\s-1PERL\s0) when you wish to run perl to work with +modules. It will add things like \-I$(\s-1INST_ARCH\s0) and other necessary +flags so perl can see the modules you're about to install. +.IP "\s-1PERL_SRC\s0" 2 +.IX Item "PERL_SRC" +Directory containing the Perl source code (use of this should be +avoided, it may be undefined) +.IP "\s-1PERM_DIR\s0" 2 +.IX Item "PERM_DIR" +Available in version 6.51_01 and above. +.Sp +Desired permission for directories. Defaults to \f(CW755\fR. +.IP "\s-1PERM_RW\s0" 2 +.IX Item "PERM_RW" +Desired permission for read/writable files. Defaults to \f(CW644\fR. +.IP "\s-1PERM_RWX\s0" 2 +.IX Item "PERM_RWX" +Desired permission for executable files. Defaults to \f(CW755\fR. +.IP "\s-1PL_FILES\s0" 2 +.IX Item "PL_FILES" +MakeMaker can run programs to generate files for you at build time. +By default any file named *.PL (except Makefile.PL and Build.PL) in +the top level directory will be assumed to be a Perl program and run +passing its own basename in as an argument. This basename is actually a build +target, and there is an intention, but not a requirement, that the *.PL file +make the file passed to to as an argument. For example... +.Sp +.Vb 1 +\& perl foo.PL foo +.Ve +.Sp +This behavior can be overridden by supplying your own set of files to +search. \s-1PL_FILES\s0 accepts a hash ref, the key being the file to run +and the value is passed in as the first argument when the \s-1PL\s0 file is run. +.Sp +.Vb 1 +\& PL_FILES => {\*(Aqbin/foobar.PL\*(Aq => \*(Aqbin/foobar\*(Aq} +\& +\& PL_FILES => {\*(Aqfoo.PL\*(Aq => \*(Aqfoo.c\*(Aq} +.Ve +.Sp +Would run bin/foobar.PL like this: +.Sp +.Vb 1 +\& perl bin/foobar.PL bin/foobar +.Ve +.Sp +If multiple files from one program are desired an array ref can be used. +.Sp +.Vb 1 +\& PL_FILES => {\*(Aqbin/foobar.PL\*(Aq => [qw(bin/foobar1 bin/foobar2)]} +.Ve +.Sp +In this case the program will be run multiple times using each target file. +.Sp +.Vb 2 +\& perl bin/foobar.PL bin/foobar1 +\& perl bin/foobar.PL bin/foobar2 +.Ve +.Sp +If an output file depends on extra input files beside the script itself, +a hash ref can be used in version 7.36 and above: +.Sp +.Vb 4 +\& PL_FILES => { \*(Aqfoo.PL\*(Aq => { +\& \*(Aqfoo.out\*(Aq => \*(Aqfoo.in\*(Aq, +\& \*(Aqbar.out\*(Aq => [qw(bar1.in bar2.in)], +\& } +.Ve +.Sp +In this case the extra input files will be passed to the program after +the target file: +.Sp +.Vb 2 +\& perl foo.PL foo.out foo.in +\& perl foo.PL bar.out bar1.in bar2.in +.Ve +.Sp +\&\s-1PL\s0 files are normally run \fBafter\fR pm_to_blib and include \s-1INST_LIB\s0 and +\&\s-1INST_ARCH\s0 in their \f(CW@INC\fR, so the just built modules can be +accessed... unless the \s-1PL\s0 file is making a module (or anything else in +\&\s-1PM\s0) in which case it is run \fBbefore\fR pm_to_blib and does not include +\&\s-1INST_LIB\s0 and \s-1INST_ARCH\s0 in its \f(CW@INC\fR. This apparently odd behavior +is there for backwards compatibility (and it's somewhat \s-1DWIM\s0). The argument +passed to the .PL is set up as a target to build in the Makefile. In other +sections such as \f(CW\*(C`postamble\*(C'\fR you can specify a dependency on the +filename/argument that the .PL is supposed (or will have, now that that is +is a dependency) to generate. Note the file to be generated will still be +generated and the .PL will still run even without an explicit dependency created +by you, since the \f(CW\*(C`all\*(C'\fR target still depends on running all eligible to run.PL +files. +.IP "\s-1PM\s0" 2 +.IX Item "PM" +Hashref of .pm files and *.pl files to be installed. e.g. +.Sp +.Vb 1 +\& {\*(Aqname_of_file.pm\*(Aq => \*(Aq$(INST_LIB)/install_as.pm\*(Aq} +.Ve +.Sp +By default this will include *.pm and *.pl and the files found in +the \s-1PMLIBDIRS\s0 directories. Defining \s-1PM\s0 in the +Makefile.PL will override \s-1PMLIBDIRS.\s0 +.IP "\s-1PMLIBDIRS\s0" 2 +.IX Item "PMLIBDIRS" +Ref to array of subdirectories containing library files. Defaults to +[ 'lib', $(\s-1BASEEXT\s0) ]. The directories will be scanned and \fIany\fR files +they contain will be installed in the corresponding location in the +library. A \fBlibscan()\fR method can be used to alter the behaviour. +Defining \s-1PM\s0 in the Makefile.PL will override \s-1PMLIBDIRS.\s0 +.Sp +(Where \s-1BASEEXT\s0 is the last component of \s-1NAME.\s0) +.IP "\s-1PM_FILTER\s0" 2 +.IX Item "PM_FILTER" +A filter program, in the traditional Unix sense (input from stdin, output +to stdout) that is passed on each .pm file during the build (in the +\&\fBpm_to_blib()\fR phase). It is empty by default, meaning no filtering is done. +You could use: +.Sp +.Vb 1 +\& PM_FILTER => \*(Aqperl \-ne "print unless /^\e\e#/"\*(Aq, +.Ve +.Sp +to remove all the leading comments on the fly during the build. In order +to be as portable as possible, please consider using a Perl one-liner +rather than Unix (or other) utilities, as above. The # is escaped for +the Makefile, since what is going to be generated will then be: +.Sp +.Vb 1 +\& PM_FILTER = perl \-ne "print unless /^\e#/" +.Ve +.Sp +Without the \e before the #, we'd have the start of a Makefile comment, +and the macro would be incorrectly defined. +.Sp +You will almost certainly be better off using the \f(CW\*(C`PL_FILES\*(C'\fR system, +instead. See above, or the ExtUtils::MakeMaker::FAQ entry. +.IP "\s-1POLLUTE\s0" 2 +.IX Item "POLLUTE" +Release 5.005 grandfathered old global symbol names by providing preprocessor +macros for extension source compatibility. As of release 5.6, these +preprocessor definitions are not available by default. The \s-1POLLUTE\s0 flag +specifies that the old names should still be defined: +.Sp +.Vb 1 +\& perl Makefile.PL POLLUTE=1 +.Ve +.Sp +Please inform the module author if this is necessary to successfully install +a module under 5.6 or later. +.IP "\s-1PPM_INSTALL_EXEC\s0" 2 +.IX Item "PPM_INSTALL_EXEC" +Name of the executable used to run \f(CW\*(C`PPM_INSTALL_SCRIPT\*(C'\fR below. (e.g. perl) +.IP "\s-1PPM_INSTALL_SCRIPT\s0" 2 +.IX Item "PPM_INSTALL_SCRIPT" +Name of the script that gets executed by the Perl Package Manager after +the installation of a package. +.IP "\s-1PPM_UNINSTALL_EXEC\s0" 2 +.IX Item "PPM_UNINSTALL_EXEC" +Available in version 6.8502 and above. +.Sp +Name of the executable used to run \f(CW\*(C`PPM_UNINSTALL_SCRIPT\*(C'\fR below. (e.g. perl) +.IP "\s-1PPM_UNINSTALL_SCRIPT\s0" 2 +.IX Item "PPM_UNINSTALL_SCRIPT" +Available in version 6.8502 and above. +.Sp +Name of the script that gets executed by the Perl Package Manager before +the removal of a package. +.IP "\s-1PREFIX\s0" 2 +.IX Item "PREFIX" +This overrides all the default install locations. Man pages, +libraries, scripts, etc... MakeMaker will try to make an educated +guess about where to place things under the new \s-1PREFIX\s0 based on your +Config defaults. Failing that, it will fall back to a structure +which should be sensible for your platform. +.Sp +If you specify \s-1LIB\s0 or any INSTALL* variables they will not be affected +by the \s-1PREFIX.\s0 +.IP "\s-1PREREQ_FATAL\s0" 2 +.IX Item "PREREQ_FATAL" +Bool. If this parameter is true, failing to have the required modules +(or the right versions thereof) will be fatal. \f(CW\*(C`perl Makefile.PL\*(C'\fR +will \f(CW\*(C`die\*(C'\fR instead of simply informing the user of the missing dependencies. +.Sp +It is \fIextremely\fR rare to have to use \f(CW\*(C`PREREQ_FATAL\*(C'\fR. Its use by module +authors is \fIstrongly discouraged\fR and should never be used lightly. +.Sp +For dependencies that are required in order to run \f(CW\*(C`Makefile.PL\*(C'\fR, +see \f(CW\*(C`CONFIGURE_REQUIRES\*(C'\fR. +.Sp +Module installation tools have ways of resolving unmet dependencies but +to do that they need a \fIMakefile\fR. Using \f(CW\*(C`PREREQ_FATAL\*(C'\fR breaks this. +That's bad. +.Sp +Assuming you have good test coverage, your tests should fail with +missing dependencies informing the user more strongly that something +is wrong. You can write a \fIt/00compile.t\fR test which will simply +check that your code compiles and stop \*(L"make test\*(R" prematurely if it +doesn't. See \*(L"\s-1BAIL_OUT\*(R"\s0 in Test::More for more details. +.IP "\s-1PREREQ_PM\s0" 2 +.IX Item "PREREQ_PM" +A hash of modules that are needed to run your module. The keys are +the module names ie. Test::More, and the minimum version is the +value. If the required version number is 0 any version will do. +The versions given may be a Perl v\-string (see version) or a range +(see CPAN::Meta::Requirements). +.Sp +This will go into the \f(CW\*(C`requires\*(C'\fR field of your \fI\s-1META\s0.yml\fR and the +\&\f(CW\*(C`runtime\*(C'\fR of the \f(CW\*(C`prereqs\*(C'\fR field of your \fI\s-1META\s0.json\fR. +.Sp +.Vb 3 +\& PREREQ_PM => { +\& # Require Test::More at least 0.47 +\& "Test::More" => "0.47", +\& +\& # Require any version of Acme::Buffy +\& "Acme::Buffy" => 0, +\& } +.Ve +.IP "\s-1PREREQ_PRINT\s0" 2 +.IX Item "PREREQ_PRINT" +Bool. If this parameter is true, the prerequisites will be printed to +stdout and MakeMaker will exit. The output format is an evalable hash +ref. +.Sp +.Vb 5 +\& $PREREQ_PM = { +\& \*(AqA::B\*(Aq => Vers1, +\& \*(AqC::D\*(Aq => Vers2, +\& ... +\& }; +.Ve +.Sp +If a distribution defines a minimal required perl version, this is +added to the output as an additional line of the form: +.Sp +.Vb 1 +\& $MIN_PERL_VERSION = \*(Aq5.008001\*(Aq; +.Ve +.Sp +If \s-1BUILD_REQUIRES\s0 is not empty, it will be dumped as \f(CW$BUILD_REQUIRES\fR hashref. +.IP "\s-1PRINT_PREREQ\s0" 2 +.IX Item "PRINT_PREREQ" +RedHatism for \f(CW\*(C`PREREQ_PRINT\*(C'\fR. The output format is different, though: +.Sp +.Vb 1 +\& perl(A::B)>=Vers1 perl(C::D)>=Vers2 ... +.Ve +.Sp +A minimal required perl version, if present, will look like this: +.Sp +.Vb 1 +\& perl(perl)>=5.008001 +.Ve +.IP "\s-1SITEPREFIX\s0" 2 +.IX Item "SITEPREFIX" +Like \s-1PERLPREFIX,\s0 but only for the site install locations. +.Sp +Defaults to \f(CW$Config\fR{siteprefixexp}. Perls prior to 5.6.0 didn't have +an explicit siteprefix in the Config. In those cases +\&\f(CW$Config\fR{installprefix} will be used. +.Sp +Overridable by \s-1PREFIX\s0 +.IP "\s-1SIGN\s0" 2 +.IX Item "SIGN" +Available in version 6.18 and above. +.Sp +When true, perform the generation and addition to the \s-1MANIFEST\s0 of the +\&\s-1SIGNATURE\s0 file in the distdir during 'make distdir', via 'cpansign +\&\-s'. +.Sp +Note that you need to install the Module::Signature module to +perform this operation. +.Sp +Defaults to false. +.IP "\s-1SKIP\s0" 2 +.IX Item "SKIP" +Arrayref. E.g. [qw(name1 name2)] skip (do not write) sections of the +Makefile. Caution! Do not use the \s-1SKIP\s0 attribute for the negligible +speedup. It may seriously damage the resulting Makefile. Only use it +if you really need it. +.IP "\s-1TEST_REQUIRES\s0" 2 +.IX Item "TEST_REQUIRES" +Available in version 6.64 and above. +.Sp +A hash of modules that are needed to test your module but not run or +build it. +.Sp +This will go into the \f(CW\*(C`build_requires\*(C'\fR field of your \fI\s-1META\s0.yml\fR and the \f(CW\*(C`test\*(C'\fR of the \f(CW\*(C`prereqs\*(C'\fR field of your \fI\s-1META\s0.json\fR. +.Sp +The format is the same as \s-1PREREQ_PM.\s0 +.IP "\s-1TYPEMAPS\s0" 2 +.IX Item "TYPEMAPS" +Ref to array of typemap file names. Use this when the typemaps are +in some directory other than the current directory or when they are +not named \fBtypemap\fR. The last typemap in the list takes +precedence. A typemap in the current directory has highest +precedence, even if it isn't listed in \s-1TYPEMAPS.\s0 The default system +typemap has lowest precedence. +.IP "\s-1VENDORPREFIX\s0" 2 +.IX Item "VENDORPREFIX" +Like \s-1PERLPREFIX,\s0 but only for the vendor install locations. +.Sp +Defaults to \f(CW$Config\fR{vendorprefixexp}. +.Sp +Overridable by \s-1PREFIX\s0 +.IP "\s-1VERBINST\s0" 2 +.IX Item "VERBINST" +If true, make install will be verbose +.IP "\s-1VERSION\s0" 2 +.IX Item "VERSION" +Your version number for distributing the package. This defaults to +0.1. +.IP "\s-1VERSION_FROM\s0" 2 +.IX Item "VERSION_FROM" +Instead of specifying the \s-1VERSION\s0 in the Makefile.PL you can let +MakeMaker parse a file to determine the version number. The parsing +routine requires that the file named by \s-1VERSION_FROM\s0 contains one +single line to compute the version number. The first line in the file +that contains something like a \f(CW$VERSION\fR assignment or \f(CW\*(C`package Name +VERSION\*(C'\fR will be used. The following lines will be parsed o.k.: +.Sp +.Vb 7 +\& # Good +\& package Foo::Bar 1.23; # 1.23 +\& $VERSION = \*(Aq1.00\*(Aq; # 1.00 +\& *VERSION = \e\*(Aq1.01\*(Aq; # 1.01 +\& ($VERSION) = q$Revision$ =~ /(\ed+)/g; # The digits in $Revision$ +\& $FOO::VERSION = \*(Aq1.10\*(Aq; # 1.10 +\& *FOO::VERSION = \e\*(Aq1.11\*(Aq; # 1.11 +.Ve +.Sp +but these will fail: +.Sp +.Vb 4 +\& # Bad +\& my $VERSION = \*(Aq1.01\*(Aq; +\& local $VERSION = \*(Aq1.02\*(Aq; +\& local $FOO::VERSION = \*(Aq1.30\*(Aq; +.Ve +.Sp +(Putting \f(CW\*(C`my\*(C'\fR or \f(CW\*(C`local\*(C'\fR on the preceding line will work o.k.) +.Sp +\&\*(L"Version strings\*(R" are incompatible and should not be used. +.Sp +.Vb 3 +\& # Bad +\& $VERSION = 1.2.3; +\& $VERSION = v1.2.3; +.Ve +.Sp +version objects are fine. As of MakeMaker 6.35 version.pm will be +automatically loaded, but you must declare the dependency on version.pm. +For compatibility with older MakeMaker you should load on the same line +as \f(CW$VERSION\fR is declared. +.Sp +.Vb 2 +\& # All on one line +\& use version; our $VERSION = qv(1.2.3); +.Ve +.Sp +The file named in \s-1VERSION_FROM\s0 is not added as a dependency to +Makefile. This is not really correct, but it would be a major pain +during development to have to rewrite the Makefile for any smallish +change in that file. If you want to make sure that the Makefile +contains the correct \s-1VERSION\s0 macro after any change of the file, you +would have to do something like +.Sp +.Vb 1 +\& depend => { Makefile => \*(Aq$(VERSION_FROM)\*(Aq } +.Ve +.Sp +See attribute \f(CW\*(C`depend\*(C'\fR below. +.IP "\s-1VERSION_SYM\s0" 2 +.IX Item "VERSION_SYM" +A sanitized \s-1VERSION\s0 with . replaced by _. For places where . has +special meaning (some filesystems, \s-1RCS\s0 labels, etc...) +.IP "\s-1XS\s0" 2 +.IX Item "XS" +Hashref of .xs files. MakeMaker will default this. e.g. +.Sp +.Vb 1 +\& {\*(Aqname_of_file.xs\*(Aq => \*(Aqname_of_file.c\*(Aq} +.Ve +.Sp +The .c files will automatically be included in the list of files +deleted by a make clean. +.IP "\s-1XSBUILD\s0" 2 +.IX Item "XSBUILD" +Available in version 7.12 and above. +.Sp +Hashref with options controlling the operation of \f(CW\*(C`XSMULTI\*(C'\fR: +.Sp +.Vb 10 +\& { +\& xs => { +\& all => { +\& # options applying to all .xs files for this distribution +\& }, +\& \*(Aqlib/Class/Name/File\*(Aq => { # specifically for this file +\& DEFINE => \*(Aq\-Dfunktastic\*(Aq, # defines for only this file +\& INC => "\-I$funkyliblocation", # include flags for only this file +\& # OBJECT => \*(Aqlib/Class/Name/File$(OBJ_EXT)\*(Aq, # default +\& LDFROM => "lib/Class/Name/File\e$(OBJ_EXT) $otherfile\e$(OBJ_EXT)", # what\*(Aqs linked +\& }, +\& }, +\& } +.Ve +.Sp +Note \f(CW\*(C`xs\*(C'\fR is the file-extension. More possibilities may arise in the +future. Note that object names are specified without their \s-1XS\s0 extension. +.Sp +\&\f(CW\*(C`LDFROM\*(C'\fR defaults to the same as \f(CW\*(C`OBJECT\*(C'\fR. \f(CW\*(C`OBJECT\*(C'\fR defaults to, +for \f(CW\*(C`XSMULTI\*(C'\fR, just the \s-1XS\s0 filename with the extension replaced with +the compiler-specific object-file extension. +.Sp +The distinction between \f(CW\*(C`OBJECT\*(C'\fR and \f(CW\*(C`LDFROM\*(C'\fR: \f(CW\*(C`OBJECT\*(C'\fR is the make +target, so make will try to build it. However, \f(CW\*(C`LDFROM\*(C'\fR is what will +actually be linked together to make the shared object or static library +(\s-1SO/SL\s0), so if you override it, make sure it includes what you want to +make the final \s-1SO/SL,\s0 almost certainly including the \s-1XS\s0 basename with +\&\f(CW\*(C`$(OBJ_EXT)\*(C'\fR appended. +.IP "\s-1XSMULTI\s0" 2 +.IX Item "XSMULTI" +Available in version 7.12 and above. +.Sp +When this is set to \f(CW1\fR, multiple \s-1XS\s0 files may be placed under \fIlib/\fR +next to their corresponding \f(CW\*(C`*.pm\*(C'\fR files (this is essential for compiling +with the correct \f(CW\*(C`VERSION\*(C'\fR values). This feature should be considered +experimental, and details of it may change. +.Sp +This feature was inspired by, and small portions of code copied from, +ExtUtils::MakeMaker::BigHelper. Hopefully this feature will render +that module mainly obsolete. +.IP "\s-1XSOPT\s0" 2 +.IX Item "XSOPT" +String of options to pass to xsubpp. This might include \f(CW\*(C`\-C++\*(C'\fR or +\&\f(CW\*(C`\-extern\*(C'\fR. Do not include typemaps here; the \s-1TYPEMAP\s0 parameter exists for +that purpose. +.IP "\s-1XSPROTOARG\s0" 2 +.IX Item "XSPROTOARG" +May be set to \f(CW\*(C`\-protoypes\*(C'\fR, \f(CW\*(C`\-noprototypes\*(C'\fR or the empty string. The +empty string is equivalent to the xsubpp default, or \f(CW\*(C`\-noprototypes\*(C'\fR. +See the xsubpp documentation for details. MakeMaker +defaults to the empty string. +.IP "\s-1XS_VERSION\s0" 2 +.IX Item "XS_VERSION" +Your version number for the .xs file of this package. This defaults +to the value of the \s-1VERSION\s0 attribute. +.SS "Additional lowercase attributes" +.IX Subsection "Additional lowercase attributes" +can be used to pass parameters to the methods which implement that +part of the Makefile. Parameters are specified as a hash ref but are +passed to the method as a hash. +.IP "clean" 2 +.IX Item "clean" +.Vb 1 +\& {FILES => "*.xyz foo"} +.Ve +.IP "depend" 2 +.IX Item "depend" +.Vb 1 +\& {ANY_TARGET => ANY_DEPENDENCY, ...} +.Ve +.Sp +(\s-1ANY_TARGET\s0 must not be given a double-colon rule by MakeMaker.) +.IP "dist" 2 +.IX Item "dist" +.Vb 3 +\& {TARFLAGS => \*(AqcvfF\*(Aq, COMPRESS => \*(Aqgzip\*(Aq, SUFFIX => \*(Aq.gz\*(Aq, +\& SHAR => \*(Aqshar \-m\*(Aq, DIST_CP => \*(Aqln\*(Aq, ZIP => \*(Aq/bin/zip\*(Aq, +\& ZIPFLAGS => \*(Aq\-rl\*(Aq, DIST_DEFAULT => \*(Aqprivate tardist\*(Aq } +.Ve +.Sp +If you specify \s-1COMPRESS,\s0 then \s-1SUFFIX\s0 should also be altered, as it is +needed to tell make the target file of the compression. Setting +\&\s-1DIST_CP\s0 to ln can be useful, if you need to preserve the timestamps on +your files. \s-1DIST_CP\s0 can take the values 'cp', which copies the file, +\&'ln', which links the file, and 'best' which copies symbolic links and +links the rest. Default is 'best'. +.IP "dynamic_lib" 2 +.IX Item "dynamic_lib" +.Vb 1 +\& {ARMAYBE => \*(Aqar\*(Aq, OTHERLDFLAGS => \*(Aq...\*(Aq, INST_DYNAMIC_DEP => \*(Aq...\*(Aq} +.Ve +.IP "linkext" 2 +.IX Item "linkext" +.Vb 1 +\& {LINKTYPE => \*(Aqstatic\*(Aq, \*(Aqdynamic\*(Aq or \*(Aq\*(Aq} +.Ve +.Sp +\&\s-1NB:\s0 Extensions that have nothing but *.pm files had to say +.Sp +.Vb 1 +\& {LINKTYPE => \*(Aq\*(Aq} +.Ve +.Sp +with Pre\-5.0 MakeMakers. Since version 5.00 of MakeMaker such a line +can be deleted safely. MakeMaker recognizes when there's nothing to +be linked. +.IP "macro" 2 +.IX Item "macro" +.Vb 1 +\& {ANY_MACRO => ANY_VALUE, ...} +.Ve +.IP "postamble" 2 +.IX Item "postamble" +Anything put here will be passed to +\&\fBMY::postamble()\fR if you have one. +.IP "realclean" 2 +.IX Item "realclean" +.Vb 1 +\& {FILES => \*(Aq$(INST_ARCHAUTODIR)/*.xyz\*(Aq} +.Ve +.IP "test" 2 +.IX Item "test" +Specify the targets for testing. +.Sp +.Vb 1 +\& {TESTS => \*(Aqt/*.t\*(Aq} +.Ve +.Sp +\&\f(CW\*(C`RECURSIVE_TEST_FILES\*(C'\fR can be used to include all directories +recursively under \f(CW\*(C`t\*(C'\fR that contain \f(CW\*(C`.t\*(C'\fR files. It will be ignored if +you provide your own \f(CW\*(C`TESTS\*(C'\fR attribute, defaults to false. +.Sp +.Vb 1 +\& {RECURSIVE_TEST_FILES=>1} +.Ve +.Sp +This is supported since 6.76 +.IP "tool_autosplit" 2 +.IX Item "tool_autosplit" +.Vb 1 +\& {MAXLEN => 8} +.Ve +.SS "Overriding MakeMaker Methods" +.IX Subsection "Overriding MakeMaker Methods" +If you cannot achieve the desired Makefile behaviour by specifying +attributes you may define private subroutines in the Makefile.PL. +Each subroutine returns the text it wishes to have written to +the Makefile. To override a section of the Makefile you can +either say: +.PP +.Vb 1 +\& sub MY::c_o { "new literal text" } +.Ve +.PP +or you can edit the default by saying something like: +.PP +.Vb 6 +\& package MY; # so that "SUPER" works right +\& sub c_o { +\& my $inherited = shift\->SUPER::c_o(@_); +\& $inherited =~ s/old text/new text/; +\& $inherited; +\& } +.Ve +.PP +If you are running experiments with embedding perl as a library into +other applications, you might find MakeMaker is not sufficient. You'd +better have a look at ExtUtils::Embed which is a collection of utilities +for embedding. +.PP +If you still need a different solution, try to develop another +subroutine that fits your needs and submit the diffs to +\&\f(CW\*(C`makemaker@perl.org\*(C'\fR +.PP +For a complete description of all MakeMaker methods see +ExtUtils::MM_Unix. +.PP +Here is a simple example of how to add a new target to the generated +Makefile: +.PP +.Vb 4 +\& sub MY::postamble { +\& return <<\*(AqMAKE_FRAG\*(Aq; +\& $(MYEXTLIB): sdbm/Makefile +\& cd sdbm && $(MAKE) all +\& +\& MAKE_FRAG +\& } +.Ve +.SS "The End Of Cargo Cult Programming" +.IX Subsection "The End Of Cargo Cult Programming" +\&\fBWriteMakefile()\fR now does some basic sanity checks on its parameters to +protect against typos and malformatted values. This means some things +which happened to work in the past will now throw warnings and +possibly produce internal errors. +.PP +Some of the most common mistakes: +.ie n .IP """MAN3PODS => \*(Aq \*(Aq""" 2 +.el .IP "\f(CWMAN3PODS => \*(Aq \*(Aq\fR" 2 +.IX Item "MAN3PODS => " +This is commonly used to suppress the creation of man pages. \s-1MAN3PODS\s0 +takes a hash ref not a string, but the above worked by accident in old +versions of MakeMaker. +.Sp +The correct code is \f(CW\*(C`MAN3PODS => { }\*(C'\fR. +.SS "Hintsfile support" +.IX Subsection "Hintsfile support" +MakeMaker.pm uses the architecture-specific information from +Config.pm. In addition it evaluates architecture specific hints files +in a \f(CW\*(C`hints/\*(C'\fR directory. The hints files are expected to be named +like their counterparts in \f(CW\*(C`PERL_SRC/hints\*(C'\fR, but with an \f(CW\*(C`.pl\*(C'\fR file +name extension (eg. \f(CW\*(C`next_3_2.pl\*(C'\fR). They are simply \f(CW\*(C`eval\*(C'\fRed by +MakeMaker within the \fBWriteMakefile()\fR subroutine, and can be used to +execute commands as well as to include special variables. The rules +which hintsfile is chosen are the same as in Configure. +.PP +The hintsfile is \fBeval()\fRed immediately after the arguments given to +WriteMakefile are stuffed into a hash reference \f(CW$self\fR but before this +reference becomes blessed. So if you want to do the equivalent to +override or create an attribute you would say something like +.PP +.Vb 1 +\& $self\->{LIBS} = [\*(Aq\-ldbm \-lucb \-lc\*(Aq]; +.Ve +.SS "Distribution Support" +.IX Subsection "Distribution Support" +For authors of extensions MakeMaker provides several Makefile +targets. Most of the support comes from the ExtUtils::Manifest module, +where additional documentation can be found. +.IP "make distcheck" 4 +.IX Item "make distcheck" +reports which files are below the build directory but not in the +\&\s-1MANIFEST\s0 file and vice versa. (See \*(L"fullcheck\*(R" in ExtUtils::Manifest for +details) +.IP "make skipcheck" 4 +.IX Item "make skipcheck" +reports which files are skipped due to the entries in the +\&\f(CW\*(C`MANIFEST.SKIP\*(C'\fR file (See \*(L"skipcheck\*(R" in ExtUtils::Manifest for +details) +.IP "make distclean" 4 +.IX Item "make distclean" +does a realclean first and then the distcheck. Note that this is not +needed to build a new distribution as long as you are sure that the +\&\s-1MANIFEST\s0 file is ok. +.IP "make veryclean" 4 +.IX Item "make veryclean" +does a realclean first and then removes backup files such as \f(CW\*(C`*~\*(C'\fR, +\&\f(CW\*(C`*.bak\*(C'\fR, \f(CW\*(C`*.old\*(C'\fR and \f(CW\*(C`*.orig\*(C'\fR +.IP "make manifest" 4 +.IX Item "make manifest" +rewrites the \s-1MANIFEST\s0 file, adding all remaining files found (See +\&\*(L"mkmanifest\*(R" in ExtUtils::Manifest for details) +.IP "make distdir" 4 +.IX Item "make distdir" +Copies all the files that are in the \s-1MANIFEST\s0 file to a newly created +directory with the name \f(CW\*(C`$(DISTNAME)\-$(VERSION)\*(C'\fR. If that directory +exists, it will be removed first. +.Sp +Additionally, it will create \s-1META\s0.yml and \s-1META\s0.json module meta-data file +in the distdir and add this to the distdir's \s-1MANIFEST.\s0 You can shut this +behavior off with the \s-1NO_META\s0 flag. +.IP "make disttest" 4 +.IX Item "make disttest" +Makes a distdir first, and runs a \f(CW\*(C`perl Makefile.PL\*(C'\fR, a make, and +a make test in that directory. +.IP "make tardist" 4 +.IX Item "make tardist" +First does a distdir. Then a command $(\s-1PREOP\s0) which defaults to a null +command, followed by $(\s-1TO_UNIX\s0), which defaults to a null command under +\&\s-1UNIX,\s0 and will convert files in distribution directory to \s-1UNIX\s0 format +otherwise. Next it runs \f(CW\*(C`tar\*(C'\fR on that directory into a tarfile and +deletes the directory. Finishes with a command $(\s-1POSTOP\s0) which +defaults to a null command. +.IP "make dist" 4 +.IX Item "make dist" +Defaults to $(\s-1DIST_DEFAULT\s0) which in turn defaults to tardist. +.IP "make uutardist" 4 +.IX Item "make uutardist" +Runs a tardist first and uuencodes the tarfile. +.IP "make shdist" 4 +.IX Item "make shdist" +First does a distdir. Then a command $(\s-1PREOP\s0) which defaults to a null +command. Next it runs \f(CW\*(C`shar\*(C'\fR on that directory into a sharfile and +deletes the intermediate directory again. Finishes with a command +$(\s-1POSTOP\s0) which defaults to a null command. Note: For shdist to work +properly a \f(CW\*(C`shar\*(C'\fR program that can handle directories is mandatory. +.IP "make zipdist" 4 +.IX Item "make zipdist" +First does a distdir. Then a command $(\s-1PREOP\s0) which defaults to a null +command. Runs \f(CW\*(C`$(ZIP) $(ZIPFLAGS)\*(C'\fR on that directory into a +zipfile. Then deletes that directory. Finishes with a command +$(\s-1POSTOP\s0) which defaults to a null command. +.IP "make ci" 4 +.IX Item "make ci" +Does a $(\s-1CI\s0) and a $(\s-1RCS_LABEL\s0) on all files in the \s-1MANIFEST\s0 file. +.PP +Customization of the dist targets can be done by specifying a hash +reference to the dist attribute of the WriteMakefile call. The +following parameters are recognized: +.PP +.Vb 12 +\& CI (\*(Aqci \-u\*(Aq) +\& COMPRESS (\*(Aqgzip \-\-best\*(Aq) +\& POSTOP (\*(Aq@ :\*(Aq) +\& PREOP (\*(Aq@ :\*(Aq) +\& TO_UNIX (depends on the system) +\& RCS_LABEL (\*(Aqrcs \-q \-Nv$(VERSION_SYM):\*(Aq) +\& SHAR (\*(Aqshar\*(Aq) +\& SUFFIX (\*(Aq.gz\*(Aq) +\& TAR (\*(Aqtar\*(Aq) +\& TARFLAGS (\*(Aqcvf\*(Aq) +\& ZIP (\*(Aqzip\*(Aq) +\& ZIPFLAGS (\*(Aq\-r\*(Aq) +.Ve +.PP +An example: +.PP +.Vb 7 +\& WriteMakefile( +\& ...other options... +\& dist => { +\& COMPRESS => "bzip2", +\& SUFFIX => ".bz2" +\& } +\& ); +.Ve +.SS "Module Meta-Data (\s-1META\s0 and \s-1MYMETA\s0)" +.IX Subsection "Module Meta-Data (META and MYMETA)" +Long plaguing users of MakeMaker based modules has been the problem of +getting basic information about the module out of the sources +\&\fIwithout\fR running the \fIMakefile.PL\fR and doing a bunch of messy +heuristics on the resulting \fIMakefile\fR. Over the years, it has become +standard to keep this information in one or more \s-1CPAN\s0 Meta files +distributed with each distribution. +.PP +The original format of \s-1CPAN\s0 Meta files was \s-1YAML\s0 and the corresponding +file was called \fI\s-1META\s0.yml\fR. In 2010, version 2 of the CPAN::Meta::Spec +was released, which mandates \s-1JSON\s0 format for the metadata in order to +overcome certain compatibility issues between \s-1YAML\s0 serializers and to +avoid breaking older clients unable to handle a new version of the spec. +The CPAN::Meta library is now standard for accessing old and new-style +Meta files. +.PP +If CPAN::Meta is installed, MakeMaker will automatically generate +\&\fI\s-1META\s0.json\fR and \fI\s-1META\s0.yml\fR files for you and add them to your \fI\s-1MANIFEST\s0\fR as +part of the 'distdir' target (and thus the 'dist' target). This is intended to +seamlessly and rapidly populate \s-1CPAN\s0 with module meta-data. If you wish to +shut this feature off, set the \f(CW\*(C`NO_META\*(C'\fR \f(CW\*(C`WriteMakefile()\*(C'\fR flag to true. +.PP +At the 2008 \s-1QA\s0 Hackathon in Oslo, Perl module toolchain maintainers agreed +to use the \s-1CPAN\s0 Meta format to communicate post-configuration requirements +between toolchain components. These files, \fI\s-1MYMETA\s0.json\fR and \fI\s-1MYMETA\s0.yml\fR, +are generated when \fIMakefile.PL\fR generates a \fIMakefile\fR (if CPAN::Meta +is installed). Clients like \s-1CPAN\s0 or \s-1CPANPLUS\s0 will read these +files to see what prerequisites must be fulfilled before building or testing +the distribution. If you wish to shut this feature off, set the \f(CW\*(C`NO_MYMETA\*(C'\fR +\&\f(CW\*(C`WriteMakeFile()\*(C'\fR flag to true. +.SS "Disabling an extension" +.IX Subsection "Disabling an extension" +If some events detected in \fIMakefile.PL\fR imply that there is no way +to create the Module, but this is a normal state of things, then you +can create a \fIMakefile\fR which does nothing, but succeeds on all the +\&\*(L"usual\*(R" build targets. To do so, use +.PP +.Vb 2 +\& use ExtUtils::MakeMaker qw(WriteEmptyMakefile); +\& WriteEmptyMakefile(); +.Ve +.PP +instead of \fBWriteMakefile()\fR. +.PP +This may be useful if other modules expect this module to be \fIbuilt\fR +\&\s-1OK,\s0 as opposed to \fIwork\fR \s-1OK\s0 (say, this system-dependent module builds +in a subdirectory of some other distribution, or is listed as a +dependency in a CPAN::Bundle, but the functionality is supported by +different means on the current architecture). +.SS "Other Handy Functions" +.IX Subsection "Other Handy Functions" +.IP "prompt" 4 +.IX Item "prompt" +.Vb 2 +\& my $value = prompt($message); +\& my $value = prompt($message, $default); +.Ve +.Sp +The \f(CW\*(C`prompt()\*(C'\fR function provides an easy way to request user input +used to write a makefile. It displays the \f(CW$message\fR as a prompt for +input. If a \f(CW$default\fR is provided it will be used as a default. The +function returns the \f(CW$value\fR selected by the user. +.Sp +If \f(CW\*(C`prompt()\*(C'\fR detects that it is not running interactively and there +is nothing on \s-1STDIN\s0 or if the \s-1PERL_MM_USE_DEFAULT\s0 environment variable +is set to true, the \f(CW$default\fR will be used without prompting. This +prevents automated processes from blocking on user input. +.Sp +If no \f(CW$default\fR is provided an empty string will be used instead. +.IP "os_unsupported" 4 +.IX Item "os_unsupported" +.Vb 2 +\& os_unsupported(); +\& os_unsupported if $^O eq \*(AqMSWin32\*(Aq; +.Ve +.Sp +The \f(CW\*(C`os_unsupported()\*(C'\fR function provides a way to correctly exit your +\&\f(CW\*(C`Makefile.PL\*(C'\fR before calling \f(CW\*(C`WriteMakefile\*(C'\fR. It is essentially a +\&\f(CW\*(C`die\*(C'\fR with the message \*(L"\s-1OS\s0 unsupported\*(R". +.Sp +This is supported since 7.26 +.SS "Supported versions of Perl" +.IX Subsection "Supported versions of Perl" +Please note that while this module works on Perl 5.6, it is no longer +being routinely tested on 5.6 \- the earliest Perl version being routinely +tested, and expressly supported, is 5.8.1. However, patches to repair +any breakage on 5.6 are still being accepted. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.IP "\s-1PERL_MM_OPT\s0" 4 +.IX Item "PERL_MM_OPT" +Command line options used by \f(CW\*(C`MakeMaker\->new()\*(C'\fR, and thus by +\&\f(CW\*(C`WriteMakefile()\*(C'\fR. The string is split as the shell would, and the result +is processed before any actual command line arguments are processed. +.Sp +.Vb 1 +\& PERL_MM_OPT=\*(AqCCFLAGS="\-Wl,\-rpath \-Wl,/foo/bar/lib" LIBS="\-lwibble \-lwobble"\*(Aq +.Ve +.IP "\s-1PERL_MM_USE_DEFAULT\s0" 4 +.IX Item "PERL_MM_USE_DEFAULT" +If set to a true value then MakeMaker's prompt function will +always return the default without waiting for user input. +.IP "\s-1PERL_CORE\s0" 4 +.IX Item "PERL_CORE" +Same as the \s-1PERL_CORE\s0 parameter. The parameter overrides this. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Module::Build is a pure-Perl alternative to MakeMaker which does +not rely on make or any other external utility. It may be easier to +extend to suit your needs. +.PP +Module::Build::Tiny is a minimal pure-Perl alternative to MakeMaker +that follows the Build.PL protocol of Module::Build but without its +complexity and cruft, implementing only the installation of the module +and leaving authoring to mbtiny or other authoring tools. +.PP +Module::Install is a (now discouraged) wrapper around MakeMaker which +adds features not normally available. +.PP +ExtUtils::ModuleMaker and Module::Starter are both modules to +help you setup your distribution. +.PP +CPAN::Meta and CPAN::Meta::Spec explain \s-1CPAN\s0 Meta files in detail. +.PP +File::ShareDir::Install makes it easy to install static, sometimes +also referred to as 'shared' files. File::ShareDir helps accessing +the shared files after installation. Test::File::ShareDir helps when +writing tests to use the shared files both before and after installation. +.PP +Dist::Zilla is an authoring tool which allows great customization and +extensibility of the author experience, relying on the existing install +tools like ExtUtils::MakeMaker only for installation. +.PP +Dist::Milla is a Dist::Zilla bundle that greatly simplifies common +usage. +.PP +Minilla is a minimal authoring tool that does the same things as +Dist::Milla without the overhead of Dist::Zilla. +.SH "AUTHORS" +.IX Header "AUTHORS" +Andy Dougherty \f(CW\*(C`doughera@lafayette.edu\*(C'\fR, Andreas Ko\*:nig +\&\f(CW\*(C`andreas.koenig@mind.de\*(C'\fR, Tim Bunce \f(CW\*(C`timb@cpan.org\*(C'\fR. \s-1VMS\s0 +support by Charles Bailey \f(CW\*(C`bailey@newman.upenn.edu\*(C'\fR. \s-1OS/2\s0 support +by Ilya Zakharevich \f(CW\*(C`ilya@math.ohio\-state.edu\*(C'\fR. +.PP +Currently maintained by Michael G Schwern \f(CW\*(C`schwern@pobox.com\*(C'\fR +.PP +Send patches and ideas to \f(CW\*(C`makemaker@perl.org\*(C'\fR. +.PP +Send bug reports via http://rt.cpan.org/. Please send your +generated Makefile along with your report. +.PP +For more up-to-date information, see . +.PP +Repository available at . +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AManifest.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AManifest.3 new file mode 100644 index 0000000000000000000000000000000000000000..836cd579c22208e43c2e2ae88b4b2937f19f7647 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AManifest.3 @@ -0,0 +1,419 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Manifest 3" +.TH ExtUtils::Manifest 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Manifest \- Utilities to write and check a MANIFEST file +.SH "VERSION" +.IX Header "VERSION" +version 1.72 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::Manifest qw(...funcs to import...); +\& +\& mkmanifest(); +\& +\& my @missing_files = manicheck; +\& my @skipped = skipcheck; +\& my @extra_files = filecheck; +\& my($missing, $extra) = fullcheck; +\& +\& my $found = manifind(); +\& +\& my $manifest = maniread(); +\& +\& manicopy($read,$target); +\& +\& maniadd({$file => $comment, ...}); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&... +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +ExtUtils::Manifest exports no functions by default. The following are +exported on request: +.SS "mkmanifest" +.IX Subsection "mkmanifest" +.Vb 1 +\& mkmanifest(); +.Ve +.PP +Writes all files in and below the current directory to your \fI\s-1MANIFEST\s0\fR. +It works similar to the result of the Unix command +.PP +.Vb 1 +\& find . > MANIFEST +.Ve +.PP +All files that match any regular expression in a file \fI\s-1MANIFEST.SKIP\s0\fR +(if it exists) are ignored. +.PP +Any existing \fI\s-1MANIFEST\s0\fR file will be saved as \fI\s-1MANIFEST\s0.bak\fR. +.SS "manifind" +.IX Subsection "manifind" +.Vb 1 +\& my $found = manifind(); +.Ve +.PP +returns a hash reference. The keys of the hash are the files found +below the current directory. +.SS "manicheck" +.IX Subsection "manicheck" +.Vb 1 +\& my @missing_files = manicheck(); +.Ve +.PP +checks if all the files within a \f(CW\*(C`MANIFEST\*(C'\fR in the current directory +really do exist. If \f(CW\*(C`MANIFEST\*(C'\fR and the tree below the current +directory are in sync it silently returns an empty list. +Otherwise it returns a list of files which are listed in the +\&\f(CW\*(C`MANIFEST\*(C'\fR but missing from the directory, and by default also +outputs these names to \s-1STDERR.\s0 +.SS "filecheck" +.IX Subsection "filecheck" +.Vb 1 +\& my @extra_files = filecheck(); +.Ve +.PP +finds files below the current directory that are not mentioned in the +\&\f(CW\*(C`MANIFEST\*(C'\fR file. An optional file \f(CW\*(C`MANIFEST.SKIP\*(C'\fR will be +consulted. Any file matching a regular expression in such a file will +not be reported as missing in the \f(CW\*(C`MANIFEST\*(C'\fR file. The list of any +extraneous files found is returned, and by default also reported to +\&\s-1STDERR.\s0 +.SS "fullcheck" +.IX Subsection "fullcheck" +.Vb 1 +\& my($missing, $extra) = fullcheck(); +.Ve +.PP +does both a \fBmanicheck()\fR and a \fBfilecheck()\fR, returning then as two array +refs. +.SS "skipcheck" +.IX Subsection "skipcheck" +.Vb 1 +\& my @skipped = skipcheck(); +.Ve +.PP +lists all the files that are skipped due to your \f(CW\*(C`MANIFEST.SKIP\*(C'\fR +file. +.SS "maniread" +.IX Subsection "maniread" +.Vb 2 +\& my $manifest = maniread(); +\& my $manifest = maniread($manifest_file); +.Ve +.PP +reads a named \f(CW\*(C`MANIFEST\*(C'\fR file (defaults to \f(CW\*(C`MANIFEST\*(C'\fR in the current +directory) and returns a \s-1HASH\s0 reference with files being the keys and +comments being the values of the \s-1HASH.\s0 Blank lines and lines which +start with \f(CW\*(C`#\*(C'\fR in the \f(CW\*(C`MANIFEST\*(C'\fR file are discarded. +.SS "maniskip" +.IX Subsection "maniskip" +.Vb 2 +\& my $skipchk = maniskip(); +\& my $skipchk = maniskip($manifest_skip_file); +\& +\& if ($skipchk\->($file)) { .. } +.Ve +.PP +reads a named \f(CW\*(C`MANIFEST.SKIP\*(C'\fR file (defaults to \f(CW\*(C`MANIFEST.SKIP\*(C'\fR in +the current directory) and returns a \s-1CODE\s0 reference that tests whether +a given filename should be skipped. +.SS "manicopy" +.IX Subsection "manicopy" +.Vb 2 +\& manicopy(\e%src, $dest_dir); +\& manicopy(\e%src, $dest_dir, $how); +.Ve +.PP +Copies the files that are the keys in \f(CW%src\fR to the \f(CW$dest_dir\fR. \f(CW%src\fR is +typically returned by the \fBmaniread()\fR function. +.PP +.Vb 1 +\& manicopy( maniread(), $dest_dir ); +.Ve +.PP +This function is useful for producing a directory tree identical to the +intended distribution tree. +.PP +\&\f(CW$how\fR can be used to specify a different methods of \*(L"copying\*(R". Valid +values are \f(CW\*(C`cp\*(C'\fR, which actually copies the files, \f(CW\*(C`ln\*(C'\fR which creates +hard links, and \f(CW\*(C`best\*(C'\fR which mostly links the files but copies any +symbolic link to make a tree without any symbolic link. \f(CW\*(C`cp\*(C'\fR is the +default. +.SS "maniadd" +.IX Subsection "maniadd" +.Vb 1 +\& maniadd({ $file => $comment, ...}); +.Ve +.PP +Adds an entry to an existing \fI\s-1MANIFEST\s0\fR unless its already there. +.PP +\&\f(CW$file\fR will be normalized (ie. Unixified). \fB\s-1UNIMPLEMENTED\s0\fR +.SS "\s-1MANIFEST\s0" +.IX Subsection "MANIFEST" +A list of files in the distribution, one file per line. The \s-1MANIFEST\s0 +always uses Unix filepath conventions even if you're not on Unix. This +means \fIfoo/bar\fR style not \fIfoo\ebar\fR. +.PP +Anything between white space and an end of line within a \f(CW\*(C`MANIFEST\*(C'\fR +file is considered to be a comment. Any line beginning with # is also +a comment. Beginning with ExtUtils::Manifest 1.52, a filename may +contain whitespace characters if it is enclosed in single quotes; single +quotes or backslashes in that filename must be backslash-escaped. +.PP +.Vb 4 +\& # this a comment +\& some/file +\& some/other/file comment about some/file +\& \*(Aqsome/third file\*(Aq comment +.Ve +.SS "\s-1MANIFEST.SKIP\s0" +.IX Subsection "MANIFEST.SKIP" +The file \s-1MANIFEST.SKIP\s0 may contain regular expressions of files that +should be ignored by \fBmkmanifest()\fR and \fBfilecheck()\fR. The regular +expressions should appear one on each line. Blank lines and lines +which start with \f(CW\*(C`#\*(C'\fR are skipped. Use \f(CW\*(C`\e#\*(C'\fR if you need a regular +expression to start with a \f(CW\*(C`#\*(C'\fR. +.PP +For example: +.PP +.Vb 5 +\& # Version control files and dirs. +\& \ebRCS\eb +\& \ebCVS\eb +\& ,v$ +\& \eB\e.svn\eb +\& +\& # Makemaker generated files and dirs. +\& ^MANIFEST\e. +\& ^Makefile$ +\& ^blib/ +\& ^MakeMaker\-\ed +\& +\& # Temp, old and emacs backup files. +\& ~$ +\& \e.old$ +\& ^#.*#$ +\& ^\e.# +.Ve +.PP +If no \s-1MANIFEST.SKIP\s0 file is found, a default set of skips will be +used, similar to the example above. If you want nothing skipped, +simply make an empty \s-1MANIFEST.SKIP\s0 file. +.PP +In one's own \s-1MANIFEST.SKIP\s0 file, certain directives +can be used to include the contents of other \s-1MANIFEST.SKIP\s0 +files. At present two such directives are recognized. +.IP "#!include_default" 4 +.IX Item "#!include_default" +This inserts the contents of the default \s-1MANIFEST.SKIP\s0 file +.IP "#!include /Path/to/another/manifest.skip" 4 +.IX Item "#!include /Path/to/another/manifest.skip" +This inserts the contents of the specified external file +.PP +The included contents will be inserted into the \s-1MANIFEST.SKIP\s0 +file in between \fI#!start included /path/to/manifest.skip\fR +and \fI#!end included /path/to/manifest.skip\fR markers. +The original \s-1MANIFEST.SKIP\s0 is saved as \s-1MANIFEST.SKIP\s0.bak. +.SS "\s-1EXPORT_OK\s0" +.IX Subsection "EXPORT_OK" +\&\f(CW&mkmanifest\fR, \f(CW&manicheck\fR, \f(CW&filecheck\fR, \f(CW&fullcheck\fR, +\&\f(CW&maniread\fR, and \f(CW&manicopy\fR are exportable. +.SS "\s-1GLOBAL VARIABLES\s0" +.IX Subsection "GLOBAL VARIABLES" +\&\f(CW$ExtUtils::Manifest::MANIFEST\fR defaults to \f(CW\*(C`MANIFEST\*(C'\fR. Changing it +results in both a different \f(CW\*(C`MANIFEST\*(C'\fR and a different +\&\f(CW\*(C`MANIFEST.SKIP\*(C'\fR file. This is useful if you want to maintain +different distributions for different audiences (say a user version +and a developer version including \s-1RCS\s0). +.PP +\&\f(CW$ExtUtils::Manifest::Quiet\fR defaults to 0. If set to a true value, +all functions act silently. +.PP +\&\f(CW$ExtUtils::Manifest::Debug\fR defaults to 0. If set to a true value, +or if \s-1PERL_MM_MANIFEST_DEBUG\s0 is true, debugging output will be +produced. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +All diagnostic output is sent to \f(CW\*(C`STDERR\*(C'\fR. +.ie n .IP """Not in MANIFEST:"" \fIfile\fR" 4 +.el .IP "\f(CWNot in MANIFEST:\fR \fIfile\fR" 4 +.IX Item "Not in MANIFEST: file" +is reported if a file is found which is not in \f(CW\*(C`MANIFEST\*(C'\fR. +.ie n .IP """Skipping"" \fIfile\fR" 4 +.el .IP "\f(CWSkipping\fR \fIfile\fR" 4 +.IX Item "Skipping file" +is reported if a file is skipped due to an entry in \f(CW\*(C`MANIFEST.SKIP\*(C'\fR. +.ie n .IP """No such file:"" \fIfile\fR" 4 +.el .IP "\f(CWNo such file:\fR \fIfile\fR" 4 +.IX Item "No such file: file" +is reported if a file mentioned in a \f(CW\*(C`MANIFEST\*(C'\fR file does not +exist. +.ie n .IP """MANIFEST:"" \fI$!\fR" 4 +.el .IP "\f(CWMANIFEST:\fR \fI$!\fR" 4 +.IX Item "MANIFEST: $!" +is reported if \f(CW\*(C`MANIFEST\*(C'\fR could not be opened. +.ie n .IP """Added to MANIFEST:"" \fIfile\fR" 4 +.el .IP "\f(CWAdded to MANIFEST:\fR \fIfile\fR" 4 +.IX Item "Added to MANIFEST: file" +is reported by \fBmkmanifest()\fR if \f(CW$Verbose\fR is set and a file is added +to \s-1MANIFEST.\s0 \f(CW$Verbose\fR is set to 1 by default. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.IP "\fB\s-1PERL_MM_MANIFEST_DEBUG\s0\fR" 4 +.IX Item "PERL_MM_MANIFEST_DEBUG" +Turns on debugging +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker which has handy targets for most of the functionality. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andreas Koenig \f(CW\*(C`andreas.koenig@anima.de\*(C'\fR +.PP +Currently maintained by the Perl Toolchain Gang. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 1996\- by Andreas Koenig. +.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. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMiniperl.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMiniperl.3 new file mode 100644 index 0000000000000000000000000000000000000000..f918ec52ee3bbdb9c4f933511f548ecb7c268e35 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMiniperl.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Miniperl 3" +.TH ExtUtils::Miniperl 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Miniperl \- write the C code for miniperlmain.c and perlmain.c +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use ExtUtils::Miniperl; +\& writemain(@directories); +\& # or +\& writemain($fh, @directories); +\& # or +\& writemain(\e$filename, @directories); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`writemain()\*(C'\fR takes an argument list of zero or more directories +containing archive +libraries that relate to perl modules and should be linked into a new +perl binary. It writes a corresponding \fIminiperlmain.c\fR or \fIperlmain.c\fR +file that +is a plain C file containing all the bootstrap code to make the +modules associated with the libraries available from within perl. +If the first argument to \f(CW\*(C`writemain()\*(C'\fR is a reference to a scalar it is +used as the filename to open for output. Any other reference is used as +the filehandle to write to. Otherwise output defaults to \f(CW\*(C`STDOUT\*(C'\fR. +.PP +The typical usage is from within perl's own Makefile (to build +\&\fIperlmain.c\fR) or from \fIregen/miniperlmain.pl\fR (to build miniperlmain.c). +So under normal circumstances you won't have to deal with this module +directly. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMkbootstrap.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMkbootstrap.3 new file mode 100644 index 0000000000000000000000000000000000000000..c6d94478807dc859e21e196aea72d9f237fb59e1 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMkbootstrap.3 @@ -0,0 +1,169 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Mkbootstrap 3" +.TH ExtUtils::Mkbootstrap 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Mkbootstrap \- make a bootstrap file for use by DynaLoader +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& Mkbootstrap +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Mkbootstrap typically gets called from an extension Makefile. +.PP +There is no \f(CW\*(C`*.bs\*(C'\fR file supplied with the extension. Instead, there may +be a \f(CW*_BS\fR file which has code for the special cases, like posix for +berkeley db on the NeXT. +.PP +This file will get parsed, and produce a maybe empty +\&\f(CW@DynaLoader::dl_resolve_using\fR array for the current architecture. +That will be extended by \f(CW$BSLOADLIBS\fR, which was computed by +\&\fBExtUtils::Liblist::ext()\fR. If this array still is empty, we do nothing, +else we write a .bs file with an \f(CW@DynaLoader::dl_resolve_using\fR +array. +.PP +The \f(CW*_BS\fR file can put some code into the generated \f(CW\*(C`*.bs\*(C'\fR file by +placing it in \f(CW$bscode\fR. This is a handy 'escape' mechanism that may +prove useful in complex situations. +.PP +If \f(CW@DynaLoader::dl_resolve_using\fR contains \f(CW\*(C`\-L*\*(C'\fR or \f(CW\*(C`\-l*\*(C'\fR entries then +Mkbootstrap will automatically add a \fBdl_findfile()\fR call to the +generated \f(CW\*(C`*.bs\*(C'\fR file. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AMksymlists.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AMksymlists.3 new file mode 100644 index 0000000000000000000000000000000000000000..94bceca9eecc679ce68dd94d5f6ec4021705fbc8 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AMksymlists.3 @@ -0,0 +1,232 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Mksymlists 3" +.TH ExtUtils::Mksymlists 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Mksymlists \- write linker options files for dynamic extension +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use ExtUtils::Mksymlists; +\& Mksymlists( NAME => $name , +\& DL_VARS => [ $var1, $var2, $var3 ], +\& DL_FUNCS => { $pkg1 => [ $func1, $func2 ], +\& $pkg2 => [ $func3 ] ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`ExtUtils::Mksymlists\*(C'\fR produces files used by the linker under some OSs +during the creation of shared libraries for dynamic extensions. It is +normally called from a MakeMaker-generated Makefile when the extension +is built. The linker option file is generated by calling the function +\&\f(CW\*(C`Mksymlists\*(C'\fR, which is exported by default from \f(CW\*(C`ExtUtils::Mksymlists\*(C'\fR. +It takes one argument, a list of key-value pairs, in which the following +keys are recognized: +.IP "\s-1DLBASE\s0" 4 +.IX Item "DLBASE" +This item specifies the name by which the linker knows the +extension, which may be different from the name of the +extension itself (for instance, some linkers add an '_' to the +name of the extension). If it is not specified, it is derived +from the \s-1NAME\s0 attribute. It is presently used only by \s-1OS2\s0 and Win32. +.IP "\s-1DL_FUNCS\s0" 4 +.IX Item "DL_FUNCS" +This is identical to the \s-1DL_FUNCS\s0 attribute available via MakeMaker, +from which it is usually taken. Its value is a reference to an +associative array, in which each key is the name of a package, and +each value is an a reference to an array of function names which +should be exported by the extension. For instance, one might say +\&\f(CW\*(C`DL_FUNCS => { Homer::Iliad => [ qw(trojans greeks) ], +Homer::Odyssey => [ qw(travellers family suitors) ] }\*(C'\fR. The +function names should be identical to those in the \s-1XSUB\s0 code; +\&\f(CW\*(C`Mksymlists\*(C'\fR will alter the names written to the linker option +file to match the changes made by \fIxsubpp\fR. In addition, if +none of the functions in a list begin with the string \fBboot_\fR, +\&\f(CW\*(C`Mksymlists\*(C'\fR will add a bootstrap function for that package, +just as xsubpp does. (If a \fBboot_\fR function is +present in the list, it is passed through unchanged.) If +\&\s-1DL_FUNCS\s0 is not specified, it defaults to the bootstrap +function for the extension specified in \s-1NAME.\s0 +.IP "\s-1DL_VARS\s0" 4 +.IX Item "DL_VARS" +This is identical to the \s-1DL_VARS\s0 attribute available via MakeMaker, +and, like \s-1DL_FUNCS,\s0 it is usually specified via MakeMaker. Its +value is a reference to an array of variable names which should +be exported by the extension. +.IP "\s-1FILE\s0" 4 +.IX Item "FILE" +This key can be used to specify the name of the linker option file +(minus the OS-specific extension), if for some reason you do not +want to use the default value, which is the last word of the \s-1NAME\s0 +attribute (\fIe.g.\fR for \f(CW\*(C`Tk::Canvas\*(C'\fR, \s-1FILE\s0 defaults to \f(CW\*(C`Canvas\*(C'\fR). +.IP "\s-1FUNCLIST\s0" 4 +.IX Item "FUNCLIST" +This provides an alternate means to specify function names to be +exported from the extension. Its value is a reference to an +array of function names to be exported by the extension. These +names are passed through unaltered to the linker options file. +Specifying a value for the \s-1FUNCLIST\s0 attribute suppresses automatic +generation of the bootstrap function for the package. To still create +the bootstrap name you have to specify the package name in the +\&\s-1DL_FUNCS\s0 hash: +.Sp +.Vb 3 +\& Mksymlists( NAME => $name , +\& FUNCLIST => [ $func1, $func2 ], +\& DL_FUNCS => { $pkg => [] } ); +.Ve +.IP "\s-1IMPORTS\s0" 4 +.IX Item "IMPORTS" +This attribute is used to specify names to be imported into the +extension. It is currently only used by \s-1OS/2\s0 and Win32. +.IP "\s-1NAME\s0" 4 +.IX Item "NAME" +This gives the name of the extension (\fIe.g.\fR \f(CW\*(C`Tk::Canvas\*(C'\fR) for which +the linker option file will be produced. +.PP +When calling \f(CW\*(C`Mksymlists\*(C'\fR, one should always specify the \s-1NAME\s0 +attribute. In most cases, this is all that's necessary. In +the case of unusual extensions, however, the other attributes +can be used to provide additional information to the linker. +.SH "AUTHOR" +.IX Header "AUTHOR" +Charles Bailey \fI\fR +.SH "REVISION" +.IX Header "REVISION" +Last revised 14\-Feb\-1996, for Perl 5.002. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AConstants.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AConstants.3 new file mode 100644 index 0000000000000000000000000000000000000000..78de2c650d72dec980e527c9dc67bf66a4a37434 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AConstants.3 @@ -0,0 +1,156 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::ParseXS::Constants 3" +.TH ExtUtils::ParseXS::Constants 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::ParseXS::Constants \- Initialization values for some globals +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::ParseXS::Constants (); +\& +\& $PrototypeRegexp = $ExtUtils::ParseXS::Constants::PrototypeRegexp; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Initialization of certain non-subroutine variables in ExtUtils::ParseXS and some of its +supporting packages has been moved into this package so that those values can +be defined exactly once and then re-used in any package. +.PP +Nothing is exported. Use fully qualified variable names. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AEval.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AEval.3 new file mode 100644 index 0000000000000000000000000000000000000000..9ac7de0ac824bbbe81ad7abe534ca86972b18c3e --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AEval.3 @@ -0,0 +1,200 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::ParseXS::Eval 3" +.TH ExtUtils::ParseXS::Eval 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::ParseXS::Eval \- Clean package to evaluate code in +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use ExtUtils::ParseXS::Eval; +\& my $rv = ExtUtils::ParseXS::Eval::eval_typemap_code( +\& $parsexs_obj, "some Perl code" +\& ); +.Ve +.SH "SUBROUTINES" +.IX Header "SUBROUTINES" +.ie n .SS "$pxs\->eval_output_typemap_code($typemapcode, $other_hashref)" +.el .SS "\f(CW$pxs\fP\->eval_output_typemap_code($typemapcode, \f(CW$other_hashref\fP)" +.IX Subsection "$pxs->eval_output_typemap_code($typemapcode, $other_hashref)" +Sets up various bits of previously global state +(formerly ExtUtils::ParseXS package variables) +for eval'ing output typemap code that may refer to these +variables. +.PP +Warns the contents of \f(CW$@\fR if any. +.PP +Not all these variables are necessarily considered \*(L"public\*(R" wrt. use in +typemaps, so beware. Variables set up from the ExtUtils::ParseXS object: +.PP +.Vb 1 +\& $Package $ALIAS $func_name $Full_func_name $pname +.Ve +.PP +Variables set up from \f(CW$other_hashref\fR: +.PP +.Vb 1 +\& $var $type $ntype $subtype $arg +.Ve +.ie n .SS "$pxs\->eval_input_typemap_code($typemapcode, $other_hashref)" +.el .SS "\f(CW$pxs\fP\->eval_input_typemap_code($typemapcode, \f(CW$other_hashref\fP)" +.IX Subsection "$pxs->eval_input_typemap_code($typemapcode, $other_hashref)" +Sets up various bits of previously global state +(formerly ExtUtils::ParseXS package variables) +for eval'ing output typemap code that may refer to these +variables. +.PP +Warns the contents of \f(CW$@\fR if any. +.PP +Not all these variables are necessarily considered \*(L"public\*(R" wrt. use in +typemaps, so beware. Variables set up from the ExtUtils::ParseXS object: +.PP +.Vb 1 +\& $Package $ALIAS $func_name $Full_func_name $pname +.Ve +.PP +Variables set up from \f(CW$other_hashref\fR: +.PP +.Vb 1 +\& $var $type $ntype $subtype $num $init $printed_name $arg $argoff +.Ve +.SH "TODO" +.IX Header "TODO" +Eventually, with better documentation and possible some cleanup, +this could be part of \f(CW\*(C`ExtUtils::Typemaps\*(C'\fR. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AUtilities.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AUtilities.3 new file mode 100644 index 0000000000000000000000000000000000000000..c16e6047ec29942438b40e71a0f88d1f346ca74f --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS%3A%3AUtilities.3 @@ -0,0 +1,492 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::ParseXS::Utilities 3" +.TH ExtUtils::ParseXS::Utilities 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::ParseXS::Utilities \- Subroutines used with ExtUtils::ParseXS +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& use ExtUtils::ParseXS::Utilities qw( +\& standard_typemap_locations +\& trim_whitespace +\& C_string +\& valid_proto_string +\& process_typemaps +\& map_type +\& standard_XS_defs +\& assign_func_args +\& analyze_preprocessor_statements +\& set_cond +\& Warn +\& blurt +\& death +\& check_conditional_preprocessor_statements +\& escape_file_for_line_directive +\& report_typemap_failure +\& ); +.Ve +.SH "SUBROUTINES" +.IX Header "SUBROUTINES" +The following functions are not considered to be part of the public interface. +They are documented here for the benefit of future maintainers of this module. +.ie n .SS """standard_typemap_locations()""" +.el .SS "\f(CWstandard_typemap_locations()\fP" +.IX Subsection "standard_typemap_locations()" +.IP "\(bu" 4 +Purpose +.Sp +Provide a list of filepaths where \fItypemap\fR files may be found. The +filepaths \*(-- relative paths to files (not just directory paths) \*(-- appear in this list in lowest-to-highest priority. +.Sp +The highest priority is to look in the current directory. +.Sp +.Vb 1 +\& \*(Aqtypemap\*(Aq +.Ve +.Sp +The second and third highest priorities are to look in the parent of the +current directory and a directory called \fIlib/ExtUtils\fR underneath the parent +directory. +.Sp +.Vb 2 +\& \*(Aq../typemap\*(Aq, +\& \*(Aq../lib/ExtUtils/typemap\*(Aq, +.Ve +.Sp +The fourth through ninth highest priorities are to look in the corresponding +grandparent, great-grandparent and great-great-grandparent directories. +.Sp +.Vb 6 +\& \*(Aq../../typemap\*(Aq, +\& \*(Aq../../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../../../typemap\*(Aq, +\& \*(Aq../../../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../../../../typemap\*(Aq, +\& \*(Aq../../../../lib/ExtUtils/typemap\*(Aq, +.Ve +.Sp +The tenth and subsequent priorities are to look in directories named +\&\fIExtUtils\fR which are subdirectories of directories found in \f(CW@INC\fR \*(-- +\&\fIprovided\fR a file named \fItypemap\fR actually exists in such a directory. +Example: +.Sp +.Vb 1 +\& \*(Aq/usr/local/lib/perl5/5.10.1/ExtUtils/typemap\*(Aq, +.Ve +.Sp +However, these filepaths appear in the list returned by +\&\f(CW\*(C`standard_typemap_locations()\*(C'\fR in reverse order, \fIi.e.\fR, lowest-to-highest. +.Sp +.Vb 10 +\& \*(Aq/usr/local/lib/perl5/5.10.1/ExtUtils/typemap\*(Aq, +\& \*(Aq../../../../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../../../../typemap\*(Aq, +\& \*(Aq../../../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../../../typemap\*(Aq, +\& \*(Aq../../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../../typemap\*(Aq, +\& \*(Aq../lib/ExtUtils/typemap\*(Aq, +\& \*(Aq../typemap\*(Aq, +\& \*(Aqtypemap\*(Aq +.Ve +.IP "\(bu" 4 +Arguments +.Sp +.Vb 1 +\& my @stl = standard_typemap_locations( \e@INC ); +.Ve +.Sp +Reference to \f(CW@INC\fR. +.IP "\(bu" 4 +Return Value +.Sp +Array holding list of directories to be searched for \fItypemap\fR files. +.ie n .SS """trim_whitespace()""" +.el .SS "\f(CWtrim_whitespace()\fP" +.IX Subsection "trim_whitespace()" +.IP "\(bu" 4 +Purpose +.Sp +Perform an in-place trimming of leading and trailing whitespace from the +first argument provided to the function. +.IP "\(bu" 4 +Argument +.Sp +.Vb 1 +\& trim_whitespace($arg); +.Ve +.IP "\(bu" 4 +Return Value +.Sp +None. Remember: this is an \fIin-place\fR modification of the argument. +.ie n .SS """C_string()""" +.el .SS "\f(CWC_string()\fP" +.IX Subsection "C_string()" +.IP "\(bu" 4 +Purpose +.Sp +Escape backslashes (\f(CW\*(C`\e\*(C'\fR) in prototype strings. +.IP "\(bu" 4 +Arguments +.Sp +.Vb 1 +\& $ProtoThisXSUB = C_string($_); +.Ve +.Sp +String needing escaping. +.IP "\(bu" 4 +Return Value +.Sp +Properly escaped string. +.ie n .SS """valid_proto_string()""" +.el .SS "\f(CWvalid_proto_string()\fP" +.IX Subsection "valid_proto_string()" +.IP "\(bu" 4 +Purpose +.Sp +Validate prototype string. +.IP "\(bu" 4 +Arguments +.Sp +String needing checking. +.IP "\(bu" 4 +Return Value +.Sp +Upon success, returns the same string passed as argument. +.Sp +Upon failure, returns \f(CW0\fR. +.ie n .SS """process_typemaps()""" +.el .SS "\f(CWprocess_typemaps()\fP" +.IX Subsection "process_typemaps()" +.IP "\(bu" 4 +Purpose +.Sp +Process all typemap files. +.IP "\(bu" 4 +Arguments +.Sp +.Vb 1 +\& my $typemaps_object = process_typemaps( $args{typemap}, $pwd ); +.Ve +.Sp +List of two elements: \f(CW\*(C`typemap\*(C'\fR element from \f(CW%args\fR; current working +directory. +.IP "\(bu" 4 +Return Value +.Sp +Upon success, returns an ExtUtils::Typemaps object. +.ie n .SS """map_type()""" +.el .SS "\f(CWmap_type()\fP" +.IX Subsection "map_type()" +.IP "\(bu" 4 +Purpose +.Sp +Performs a mapping at several places inside \f(CW\*(C`PARAGRAPH\*(C'\fR loop. +.IP "\(bu" 4 +Arguments +.Sp +.Vb 1 +\& $type = map_type($self, $type, $varname); +.Ve +.Sp +List of three arguments. +.IP "\(bu" 4 +Return Value +.Sp +String holding augmented version of second argument. +.ie n .SS """standard_XS_defs()""" +.el .SS "\f(CWstandard_XS_defs()\fP" +.IX Subsection "standard_XS_defs()" +.IP "\(bu" 4 +Purpose +.Sp +Writes to the \f(CW\*(C`.c\*(C'\fR output file certain preprocessor directives and function +headers needed in all such files. +.IP "\(bu" 4 +Arguments +.Sp +None. +.IP "\(bu" 4 +Return Value +.Sp +Returns true. +.ie n .SS """assign_func_args()""" +.el .SS "\f(CWassign_func_args()\fP" +.IX Subsection "assign_func_args()" +.IP "\(bu" 4 +Purpose +.Sp +Perform assignment to the \f(CW\*(C`func_args\*(C'\fR attribute. +.IP "\(bu" 4 +Arguments +.Sp +.Vb 1 +\& $string = assign_func_args($self, $argsref, $class); +.Ve +.Sp +List of three elements. Second is an array reference; third is a string. +.IP "\(bu" 4 +Return Value +.Sp +String. +.ie n .SS """analyze_preprocessor_statements()""" +.el .SS "\f(CWanalyze_preprocessor_statements()\fP" +.IX Subsection "analyze_preprocessor_statements()" +.IP "\(bu" 4 +Purpose +.Sp +Within each function inside each Xsub, print to the \fI.c\fR output file certain +preprocessor statements. +.IP "\(bu" 4 +Arguments +.Sp +.Vb 4 +\& ( $self, $XSS_work_idx, $BootCode_ref ) = +\& analyze_preprocessor_statements( +\& $self, $statement, $XSS_work_idx, $BootCode_ref +\& ); +.Ve +.Sp +List of four elements. +.IP "\(bu" 4 +Return Value +.Sp +Modifed values of three of the arguments passed to the function. In +particular, the \f(CW\*(C`XSStack\*(C'\fR and \f(CW\*(C`InitFileCode\*(C'\fR attributes are modified. +.ie n .SS """set_cond()""" +.el .SS "\f(CWset_cond()\fP" +.IX Subsection "set_cond()" +.IP "\(bu" 4 +Purpose +.IP "\(bu" 4 +Arguments +.IP "\(bu" 4 +Return Value +.ie n .SS """current_line_number()""" +.el .SS "\f(CWcurrent_line_number()\fP" +.IX Subsection "current_line_number()" +.IP "\(bu" 4 +Purpose +.Sp +Figures out the current line number in the \s-1XS\s0 file. +.IP "\(bu" 4 +Arguments +.Sp +\&\f(CW$self\fR +.IP "\(bu" 4 +Return Value +.Sp +The current line number. +.ie n .SS """Warn()""" +.el .SS "\f(CWWarn()\fP" +.IX Subsection "Warn()" +.IP "\(bu" 4 +Purpose +.IP "\(bu" 4 +Arguments +.IP "\(bu" 4 +Return Value +.ie n .SS """blurt()""" +.el .SS "\f(CWblurt()\fP" +.IX Subsection "blurt()" +.IP "\(bu" 4 +Purpose +.IP "\(bu" 4 +Arguments +.IP "\(bu" 4 +Return Value +.ie n .SS """death()""" +.el .SS "\f(CWdeath()\fP" +.IX Subsection "death()" +.IP "\(bu" 4 +Purpose +.IP "\(bu" 4 +Arguments +.IP "\(bu" 4 +Return Value +.ie n .SS """check_conditional_preprocessor_statements()""" +.el .SS "\f(CWcheck_conditional_preprocessor_statements()\fP" +.IX Subsection "check_conditional_preprocessor_statements()" +.IP "\(bu" 4 +Purpose +.IP "\(bu" 4 +Arguments +.IP "\(bu" 4 +Return Value +.ie n .SS """escape_file_for_line_directive()""" +.el .SS "\f(CWescape_file_for_line_directive()\fP" +.IX Subsection "escape_file_for_line_directive()" +.IP "\(bu" 4 +Purpose +.Sp +Escapes a given code source name (typically a file name but can also +be a command that was read from) so that double-quotes and backslashes are escaped. +.IP "\(bu" 4 +Arguments +.Sp +A string. +.IP "\(bu" 4 +Return Value +.Sp +A string with escapes for double-quotes and backslashes. +.ie n .SS """report_typemap_failure""" +.el .SS "\f(CWreport_typemap_failure\fP" +.IX Subsection "report_typemap_failure" +.IP "\(bu" 4 +Purpose +.Sp +Do error reporting for missing typemaps. +.IP "\(bu" 4 +Arguments +.Sp +The \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR object. +.Sp +An \f(CW\*(C`ExtUtils::Typemaps\*(C'\fR object. +.Sp +The string that represents the C type that was not found in the typemap. +.Sp +Optionally, the string \f(CW\*(C`death\*(C'\fR or \f(CW\*(C`blurt\*(C'\fR to choose +whether the error is immediately fatal or not. Default: \f(CW\*(C`blurt\*(C'\fR +.IP "\(bu" 4 +Return Value +.Sp +Returns nothing. Depending on the arguments, this +may call \f(CW\*(C`death\*(C'\fR or \f(CW\*(C`blurt\*(C'\fR, the former of which is +fatal. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS.3 b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS.3 new file mode 100644 index 0000000000000000000000000000000000000000..9c19e66558e725bca3cebde9ef20315837700b8b --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3AParseXS.3 @@ -0,0 +1,283 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::ParseXS 3" +.TH ExtUtils::ParseXS 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::ParseXS \- converts Perl XS code into C code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::ParseXS; +\& +\& my $pxs = ExtUtils::ParseXS\->new; +\& $pxs\->process_file( filename => \*(Aqfoo.xs\*(Aq ); +\& +\& $pxs\->process_file( filename => \*(Aqfoo.xs\*(Aq, +\& output => \*(Aqbar.c\*(Aq, +\& \*(AqC++\*(Aq => 1, +\& typemap => \*(Aqpath/to/typemap\*(Aq, +\& hiertype => 1, +\& except => 1, +\& versioncheck => 1, +\& linenumbers => 1, +\& optimize => 1, +\& prototypes => 1, +\& ); +\& +\& # Legacy non\-OO interface using a singleton: +\& use ExtUtils::ParseXS qw(process_file); +\& process_file( filename => \*(Aqfoo.xs\*(Aq ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`ExtUtils::ParseXS\*(C'\fR will compile \s-1XS\s0 code into C code by embedding the constructs +necessary to let C functions manipulate Perl values and creates the glue +necessary to let Perl access those functions. The compiler uses typemaps to +determine how to map C function parameters and variables to Perl values. +.PP +The compiler will search for typemap files called \fItypemap\fR. It will use +the following search path to find default typemaps, with the rightmost +typemap taking precedence. +.PP +.Vb 1 +\& ../../../typemap:../../typemap:../typemap:typemap +.Ve +.SH "EXPORT" +.IX Header "EXPORT" +None by default. \f(CW\*(C`process_file()\*(C'\fR and/or \f(CW\*(C`report_error_count()\*(C'\fR +may be exported upon request. Using the functional interface is +discouraged. +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$pxs\->\fBnew()\fR" 4 +.el .IP "\f(CW$pxs\fR\->\fBnew()\fR" 4 +.IX Item "$pxs->new()" +Returns a new, empty \s-1XS\s0 parser/compiler object. +.ie n .IP "$pxs\->\fBprocess_file()\fR" 4 +.el .IP "\f(CW$pxs\fR\->\fBprocess_file()\fR" 4 +.IX Item "$pxs->process_file()" +This method processes an \s-1XS\s0 file and sends output to a C file. +The method may be called as a function (this is the legacy +interface) and will then use a singleton as invocant. +.Sp +Named parameters control how the processing is done. +The following parameters are accepted: +.RS 4 +.IP "\fB\*(C+\fR" 4 +.IX Item "" +Adds \f(CW\*(C`extern "C"\*(C'\fR to the C code. Default is false. +.IP "\fBhiertype\fR" 4 +.IX Item "hiertype" +Retains \f(CW\*(C`::\*(C'\fR in type names so that \*(C+ hierarchical types can be +mapped. Default is false. +.IP "\fBexcept\fR" 4 +.IX Item "except" +Adds exception handling stubs to the C code. Default is false. +.IP "\fBtypemap\fR" 4 +.IX Item "typemap" +Indicates that a user-supplied typemap should take precedence over the +default typemaps. A single typemap may be specified as a string, or +multiple typemaps can be specified in an array reference, with the +last typemap having the highest precedence. +.IP "\fBprototypes\fR" 4 +.IX Item "prototypes" +Generates prototype code for all xsubs. Default is false. +.IP "\fBversioncheck\fR" 4 +.IX Item "versioncheck" +Makes sure at run time that the object file (derived from the \f(CW\*(C`.xs\*(C'\fR +file) and the \f(CW\*(C`.pm\*(C'\fR files have the same version number. Default is +true. +.IP "\fBlinenumbers\fR" 4 +.IX Item "linenumbers" +Adds \f(CW\*(C`#line\*(C'\fR directives to the C output so error messages will look +like they came from the original \s-1XS\s0 file. Default is true. +.IP "\fBoptimize\fR" 4 +.IX Item "optimize" +Enables certain optimizations. The only optimization that is currently +affected is the use of \fItarget\fRs by the output C code (see perlguts). +Not optimizing may significantly slow down the generated code, but this is the way +\&\fBxsubpp\fR of 5.005 and earlier operated. Default is to optimize. +.IP "\fBinout\fR" 4 +.IX Item "inout" +Enable recognition of \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT_LIST\*(C'\fR and \f(CW\*(C`INOUT_LIST\*(C'\fR +declarations. Default is true. +.IP "\fBargtypes\fR" 4 +.IX Item "argtypes" +Enable recognition of ANSI-like descriptions of function signature. +Default is true. +.IP "\fBs\fR" 4 +.IX Item "s" +\&\fIMaintainer note:\fR I have no clue what this does. Strips function prefixes? +.RE +.RS 4 +.RE +.ie n .IP "$pxs\->\fBreport_error_count()\fR" 4 +.el .IP "\f(CW$pxs\fR\->\fBreport_error_count()\fR" 4 +.IX Item "$pxs->report_error_count()" +This method returns the number of [a certain kind of] errors +encountered during processing of the \s-1XS\s0 file. +.Sp +The method may be called as a function (this is the legacy +interface) and will then use a singleton as invocant. +.SH "AUTHOR" +.IX Header "AUTHOR" +Based on xsubpp code, written by Larry Wall. +.PP +Maintained by: +.IP "\(bu" 4 +Ken Williams, +.IP "\(bu" 4 +David Golden, +.IP "\(bu" 4 +James Keenan, +.IP "\(bu" 4 +Steffen Mueller, +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2002\-2014 by Ken Williams, David Golden and other contributors. All +rights reserved. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +Based on the \f(CW\*(C`ExtUtils::xsubpp\*(C'\fR code by Larry Wall and the Perl 5 +Porters, which was released under the same license terms. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perl, ExtUtils::xsubpp, ExtUtils::MakeMaker, perlxs, perlxstut. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3ACmd.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3ACmd.3 new file mode 100644 index 0000000000000000000000000000000000000000..aa4ec42af0600954cf5465a7de54e7668607c59d --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3ACmd.3 @@ -0,0 +1,199 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Typemaps::Cmd 3" +.TH ExtUtils::Typemaps::Cmd 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Typemaps::Cmd \- Quick commands for handling typemaps +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +From \s-1XS:\s0 +.PP +.Vb 2 +\& INCLUDE_COMMAND: $^X \-MExtUtils::Typemaps::Cmd \e +\& \-e "print embeddable_typemap(q{Excommunicated})" +.Ve +.PP +Loads \f(CW\*(C`ExtUtils::Typemaps::Excommunicated\*(C'\fR, instantiates an object, +and dumps it as an embeddable typemap for use directly in your \s-1XS\s0 file. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a helper module for ExtUtils::Typemaps for quick +one-liners, specifically for inclusion of shared typemaps +that live on \s-1CPAN\s0 into an \s-1XS\s0 file (see \s-1SYNOPSIS\s0). +.PP +For this reason, the following functions are exported by default: +.SH "EXPORTED FUNCTIONS" +.IX Header "EXPORTED FUNCTIONS" +.SS "embeddable_typemap" +.IX Subsection "embeddable_typemap" +Given a list of identifiers, \f(CW\*(C`embeddable_typemap\*(C'\fR +tries to load typemaps from a file of the given name(s), +or from a module that is an \f(CW\*(C`ExtUtils::Typemaps\*(C'\fR subclass. +.PP +Returns a string representation of the merged typemaps that can +be included verbatim into \s-1XS.\s0 Example: +.PP +.Vb 3 +\& print embeddable_typemap( +\& "Excommunicated", "ExtUtils::Typemaps::Basic", "./typemap" +\& ); +.Ve +.PP +This will try to load a module \f(CW\*(C`ExtUtils::Typemaps::Excommunicated\*(C'\fR +and use it as an \f(CW\*(C`ExtUtils::Typemaps\*(C'\fR subclass. If that fails, it'll +try loading \f(CW\*(C`Excommunicated\*(C'\fR as a module, if that fails, it'll try to +read a file called \fIExcommunicated\fR. It'll work similarly for the +second argument, but the third will be loaded as a file first. +.PP +After loading all typemap files or modules, it will merge them in the +specified order and dump the result as an embeddable typemap. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::Typemaps +.PP +perlxs +.SH "AUTHOR" +.IX Header "AUTHOR" +Steffen Mueller \f(CW\*(C` +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2012 Steffen Mueller +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AInputMap.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AInputMap.3 new file mode 100644 index 0000000000000000000000000000000000000000..6cf3f4b398618305715aa3cfc9fead4a610daf16 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AInputMap.3 @@ -0,0 +1,181 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Typemaps::InputMap 3" +.TH ExtUtils::Typemaps::InputMap 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Typemaps::InputMap \- Entry in the INPUT section of a typemap +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use ExtUtils::Typemaps; +\& ... +\& my $input = $typemap\->get_input_map(\*(AqT_NV\*(Aq); +\& my $code = $input\->code(); +\& $input\->code("..."); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Refer to ExtUtils::Typemaps for details. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +Requires \f(CW\*(C`xstype\*(C'\fR and \f(CW\*(C`code\*(C'\fR parameters. +.SS "code" +.IX Subsection "code" +Returns or sets the \s-1INPUT\s0 mapping code for this entry. +.SS "xstype" +.IX Subsection "xstype" +Returns the name of the \s-1XS\s0 type of the \s-1INPUT\s0 map. +.SS "cleaned_code" +.IX Subsection "cleaned_code" +Returns a cleaned-up copy of the code to which certain transformations +have been applied to make it more \s-1ANSI\s0 compliant. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::Typemaps +.SH "AUTHOR" +.IX Header "AUTHOR" +Steffen Mueller \f(CW\*(C` +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2009, 2010, 2011, 2012 Steffen Mueller +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AOutputMap.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AOutputMap.3 new file mode 100644 index 0000000000000000000000000000000000000000..ea3c2f362691b5b36aab98a443e4e6e66a7dbfbd --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AOutputMap.3 @@ -0,0 +1,211 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Typemaps::OutputMap 3" +.TH ExtUtils::Typemaps::OutputMap 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Typemaps::OutputMap \- Entry in the OUTPUT section of a typemap +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use ExtUtils::Typemaps; +\& ... +\& my $output = $typemap\->get_output_map(\*(AqT_NV\*(Aq); +\& my $code = $output\->code(); +\& $output\->code("..."); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Refer to ExtUtils::Typemaps for details. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +Requires \f(CW\*(C`xstype\*(C'\fR and \f(CW\*(C`code\*(C'\fR parameters. +.SS "code" +.IX Subsection "code" +Returns or sets the \s-1OUTPUT\s0 mapping code for this entry. +.SS "xstype" +.IX Subsection "xstype" +Returns the name of the \s-1XS\s0 type of the \s-1OUTPUT\s0 map. +.SS "cleaned_code" +.IX Subsection "cleaned_code" +Returns a cleaned-up copy of the code to which certain transformations +have been applied to make it more \s-1ANSI\s0 compliant. +.SS "targetable" +.IX Subsection "targetable" +This is an obscure but effective optimization that used to +live in \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR directly. Not implementing it +should never result in incorrect use of typemaps, just less +efficient code. +.PP +In a nutshell, this will check whether the output code +involves calling \f(CW\*(C`sv_setiv\*(C'\fR, \f(CW\*(C`sv_setuv\*(C'\fR, \f(CW\*(C`sv_setnv\*(C'\fR, \f(CW\*(C`sv_setpv\*(C'\fR or +\&\f(CW\*(C`sv_setpvn\*(C'\fR to set the special \f(CW$arg\fR placeholder to a new value +\&\fB\s-1AT THE END OF THE OUTPUT CODE\s0\fR. If that is the case, the code is +eligible for using the \f(CW\*(C`TARG\*(C'\fR\-related macros to optimize this. +Thus the name of the method: \f(CW\*(C`targetable\*(C'\fR. +.PP +If this optimization is applicable, \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR will +emit a \f(CW\*(C`dXSTARG;\*(C'\fR definition at the start of the generated \s-1XSUB\s0 code, +and type (see below) dependent code to set \f(CW\*(C`TARG\*(C'\fR and push it on +the stack at the end of the generated \s-1XSUB\s0 code. +.PP +If the optimization can not be applied, this returns undef. +If it can be applied, this method returns a hash reference containing +the following information: +.PP +.Vb 5 +\& type: Any of the characters i, u, n, p +\& with_size: Bool indicating whether this is the sv_setpvn variant +\& what: The code that actually evaluates to the output scalar +\& what_size: If "with_size", this has the string length (as code, +\& not constant, including leading comma) +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::Typemaps +.SH "AUTHOR" +.IX Header "AUTHOR" +Steffen Mueller \f(CW\*(C` +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2009, 2010, 2011, 2012 Steffen Mueller +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AType.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AType.3 new file mode 100644 index 0000000000000000000000000000000000000000..0a07ef9e6b747c2b71f34b1c296914c0b596884f --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps%3A%3AType.3 @@ -0,0 +1,186 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Typemaps::Type 3" +.TH ExtUtils::Typemaps::Type 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Typemaps::Type \- Entry in the TYPEMAP section of a typemap +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use ExtUtils::Typemaps; +\& ... +\& my $type = $typemap\->get_type_map(\*(Aqchar*\*(Aq); +\& my $input = $typemap\->get_input_map($type\->xstype); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Refer to ExtUtils::Typemaps for details. +Object associates \f(CW\*(C`ctype\*(C'\fR with \f(CW\*(C`xstype\*(C'\fR, which is the index +into the in\- and output mapping tables. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +Requires \f(CW\*(C`xstype\*(C'\fR and \f(CW\*(C`ctype\*(C'\fR parameters. +.PP +Optionally takes \f(CW\*(C`prototype\*(C'\fR parameter. +.SS "proto" +.IX Subsection "proto" +Returns or sets the prototype. +.SS "xstype" +.IX Subsection "xstype" +Returns the name of the \s-1XS\s0 type that this C type is associated to. +.SS "ctype" +.IX Subsection "ctype" +Returns the name of the C type as it was set on construction. +.SS "tidy_ctype" +.IX Subsection "tidy_ctype" +Returns the canonicalized name of the C type. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ExtUtils::Typemaps +.SH "AUTHOR" +.IX Header "AUTHOR" +Steffen Mueller \f(CW\*(C` +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2009, 2010, 2011, 2012 Steffen Mueller +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps.3 new file mode 100644 index 0000000000000000000000000000000000000000..6d5fdf459faa892a57c9af068cf9d5e4f94b9aaa --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ATypemaps.3 @@ -0,0 +1,468 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::Typemaps 3" +.TH ExtUtils::Typemaps 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::Typemaps \- Read/Write/Modify Perl/XS typemap files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& # read/create file +\& my $typemap = ExtUtils::Typemaps\->new(file => \*(Aqtypemap\*(Aq); +\& # alternatively create an in\-memory typemap +\& # $typemap = ExtUtils::Typemaps\->new(); +\& # alternatively create an in\-memory typemap by parsing a string +\& # $typemap = ExtUtils::Typemaps\->new(string => $sometypemap); +\& +\& # add a mapping +\& $typemap\->add_typemap(ctype => \*(AqNV\*(Aq, xstype => \*(AqT_NV\*(Aq); +\& $typemap\->add_inputmap( +\& xstype => \*(AqT_NV\*(Aq, code => \*(Aq$var = ($type)SvNV($arg);\*(Aq +\& ); +\& $typemap\->add_outputmap( +\& xstype => \*(AqT_NV\*(Aq, code => \*(Aqsv_setnv($arg, (NV)$var);\*(Aq +\& ); +\& $typemap\->add_string(string => $typemapstring); +\& # will be parsed and merged +\& +\& # remove a mapping (same for remove_typemap and remove_outputmap...) +\& $typemap\->remove_inputmap(xstype => \*(AqSomeType\*(Aq); +\& +\& # save a typemap to a file +\& $typemap\->write(file => \*(Aqanotherfile.map\*(Aq); +\& +\& # merge the other typemap into this one +\& $typemap\->merge(typemap => $another_typemap); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module can read, modify, create and write Perl \s-1XS\s0 typemap files. If you don't know +what a typemap is, please confer the perlxstut and perlxs manuals. +.PP +The module is not entirely round-trip safe: For example it currently simply strips all comments. +The order of entries in the maps is, however, preserved. +.PP +We check for duplicate entries in the typemap, but do not check for missing +\&\f(CW\*(C`TYPEMAP\*(C'\fR entries for \f(CW\*(C`INPUTMAP\*(C'\fR or \f(CW\*(C`OUTPUTMAP\*(C'\fR entries since these might be hidden +in a different typemap. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +Returns a new typemap object. Takes an optional \f(CW\*(C`file\*(C'\fR parameter. +If set, the given file will be read. If the file doesn't exist, an empty typemap +is returned. +.PP +Alternatively, if the \f(CW\*(C`string\*(C'\fR parameter is given, the supplied +string will be parsed instead of a file. +.SS "file" +.IX Subsection "file" +Get/set the file that the typemap is written to when the +\&\f(CW\*(C`write\*(C'\fR method is called. +.SS "add_typemap" +.IX Subsection "add_typemap" +Add a \f(CW\*(C`TYPEMAP\*(C'\fR entry to the typemap. +.PP +Required named arguments: The \f(CW\*(C`ctype\*(C'\fR (e.g. \f(CW\*(C`ctype => \*(Aqdouble\*(Aq\*(C'\fR) +and the \f(CW\*(C`xstype\*(C'\fR (e.g. \f(CW\*(C`xstype => \*(AqT_NV\*(Aq\*(C'\fR). +.PP +Optional named arguments: \f(CW\*(C`replace => 1\*(C'\fR forces removal/replacement of +existing \f(CW\*(C`TYPEMAP\*(C'\fR entries of the same \f(CW\*(C`ctype\*(C'\fR. \f(CW\*(C`skip => 1\*(C'\fR +triggers a \fI\*(L"first come first serve\*(R"\fR logic by which new entries that conflict +with existing entries are silently ignored. +.PP +As an alternative to the named parameters usage, you may pass in +an \f(CW\*(C`ExtUtils::Typemaps::Type\*(C'\fR object as first argument, a copy of which will be +added to the typemap. In that case, only the \f(CW\*(C`replace\*(C'\fR or \f(CW\*(C`skip\*(C'\fR named parameters +may be used after the object. Example: +.PP +.Vb 1 +\& $map\->add_typemap($type_obj, replace => 1); +.Ve +.SS "add_inputmap" +.IX Subsection "add_inputmap" +Add an \f(CW\*(C`INPUT\*(C'\fR entry to the typemap. +.PP +Required named arguments: +The \f(CW\*(C`xstype\*(C'\fR (e.g. \f(CW\*(C`xstype => \*(AqT_NV\*(Aq\*(C'\fR) +and the \f(CW\*(C`code\*(C'\fR to associate with it for input. +.PP +Optional named arguments: \f(CW\*(C`replace => 1\*(C'\fR forces removal/replacement of +existing \f(CW\*(C`INPUT\*(C'\fR entries of the same \f(CW\*(C`xstype\*(C'\fR. \f(CW\*(C`skip => 1\*(C'\fR +triggers a \fI\*(L"first come first serve\*(R"\fR logic by which new entries that conflict +with existing entries are silently ignored. +.PP +As an alternative to the named parameters usage, you may pass in +an \f(CW\*(C`ExtUtils::Typemaps::InputMap\*(C'\fR object as first argument, a copy of which will be +added to the typemap. In that case, only the \f(CW\*(C`replace\*(C'\fR or \f(CW\*(C`skip\*(C'\fR named parameters +may be used after the object. Example: +.PP +.Vb 1 +\& $map\->add_inputmap($type_obj, replace => 1); +.Ve +.SS "add_outputmap" +.IX Subsection "add_outputmap" +Add an \f(CW\*(C`OUTPUT\*(C'\fR entry to the typemap. +Works exactly the same as \f(CW\*(C`add_inputmap\*(C'\fR. +.SS "add_string" +.IX Subsection "add_string" +Parses a string as a typemap and merge it into the typemap object. +.PP +Required named argument: \f(CW\*(C`string\*(C'\fR to specify the string to parse. +.SS "remove_typemap" +.IX Subsection "remove_typemap" +Removes a \f(CW\*(C`TYPEMAP\*(C'\fR entry from the typemap. +.PP +Required named argument: \f(CW\*(C`ctype\*(C'\fR to specify the entry to remove from the typemap. +.PP +Alternatively, you may pass a single \f(CW\*(C`ExtUtils::Typemaps::Type\*(C'\fR object. +.SS "remove_inputmap" +.IX Subsection "remove_inputmap" +Removes an \f(CW\*(C`INPUT\*(C'\fR entry from the typemap. +.PP +Required named argument: \f(CW\*(C`xstype\*(C'\fR to specify the entry to remove from the typemap. +.PP +Alternatively, you may pass a single \f(CW\*(C`ExtUtils::Typemaps::InputMap\*(C'\fR object. +.SS "remove_inputmap" +.IX Subsection "remove_inputmap" +Removes an \f(CW\*(C`OUTPUT\*(C'\fR entry from the typemap. +.PP +Required named argument: \f(CW\*(C`xstype\*(C'\fR to specify the entry to remove from the typemap. +.PP +Alternatively, you may pass a single \f(CW\*(C`ExtUtils::Typemaps::OutputMap\*(C'\fR object. +.SS "get_typemap" +.IX Subsection "get_typemap" +Fetches an entry of the \s-1TYPEMAP\s0 section of the typemap. +.PP +Mandatory named arguments: The \f(CW\*(C`ctype\*(C'\fR of the entry. +.PP +Returns the \f(CW\*(C`ExtUtils::Typemaps::Type\*(C'\fR +object for the entry if found. +.SS "get_inputmap" +.IX Subsection "get_inputmap" +Fetches an entry of the \s-1INPUT\s0 section of the +typemap. +.PP +Mandatory named arguments: The \f(CW\*(C`xstype\*(C'\fR of the +entry or the \f(CW\*(C`ctype\*(C'\fR of the typemap that can be used to find +the \f(CW\*(C`xstype\*(C'\fR. To wit, the following pieces of code +are equivalent: +.PP +.Vb 2 +\& my $type = $typemap\->get_typemap(ctype => $ctype) +\& my $input_map = $typemap\->get_inputmap(xstype => $type\->xstype); +\& +\& my $input_map = $typemap\->get_inputmap(ctype => $ctype); +.Ve +.PP +Returns the \f(CW\*(C`ExtUtils::Typemaps::InputMap\*(C'\fR +object for the entry if found. +.SS "get_outputmap" +.IX Subsection "get_outputmap" +Fetches an entry of the \s-1OUTPUT\s0 section of the +typemap. +.PP +Mandatory named arguments: The \f(CW\*(C`xstype\*(C'\fR of the +entry or the \f(CW\*(C`ctype\*(C'\fR of the typemap that can be used to +resolve the \f(CW\*(C`xstype\*(C'\fR. (See above for an example.) +.PP +Returns the \f(CW\*(C`ExtUtils::Typemaps::InputMap\*(C'\fR +object for the entry if found. +.SS "write" +.IX Subsection "write" +Write the typemap to a file. Optionally takes a \f(CW\*(C`file\*(C'\fR argument. If given, the +typemap will be written to the specified file. If not, the typemap is written +to the currently stored file name (see \*(L"file\*(R" above, this defaults to the file +it was read from if any). +.SS "as_string" +.IX Subsection "as_string" +Generates and returns the string form of the typemap. +.SS "as_embedded_typemap" +.IX Subsection "as_embedded_typemap" +Generates and returns the string form of the typemap with the +appropriate prefix around it for verbatim inclusion into an +\&\s-1XS\s0 file as an embedded typemap. This will return a string like +.PP +.Vb 3 +\& TYPEMAP: < $another_typemap_obj\*(C'\fR +or \f(CW\*(C`file => $path_to_typemap_file\*(C'\fR but not both. +.PP +Optional arguments: \f(CW\*(C`replace => 1\*(C'\fR to force replacement +of existing typemap entries without warning or \f(CW\*(C`skip => 1\*(C'\fR +to skip entries that exist already in the typemap. +.SS "is_empty" +.IX Subsection "is_empty" +Returns a bool indicating whether this typemap is entirely empty. +.SS "list_mapped_ctypes" +.IX Subsection "list_mapped_ctypes" +Returns a list of the C types that are mappable by +this typemap object. +.SS "_get_typemap_hash" +.IX Subsection "_get_typemap_hash" +Returns a hash mapping the C types to the \s-1XS\s0 types: +.PP +.Vb 8 +\& { +\& \*(Aqchar **\*(Aq => \*(AqT_PACKEDARRAY\*(Aq, +\& \*(Aqbool_t\*(Aq => \*(AqT_IV\*(Aq, +\& \*(AqAV *\*(Aq => \*(AqT_AVREF\*(Aq, +\& \*(AqInputStream\*(Aq => \*(AqT_IN\*(Aq, +\& \*(Aqdouble\*(Aq => \*(AqT_DOUBLE\*(Aq, +\& # ... +\& } +.Ve +.PP +This is documented because it is used by \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR, +but it's not intended for general consumption. May be removed +at any time. +.SS "_get_inputmap_hash" +.IX Subsection "_get_inputmap_hash" +Returns a hash mapping the \s-1XS\s0 types (identifiers) to the +corresponding \s-1INPUT\s0 code: +.PP +.Vb 8 +\& { +\& \*(AqT_CALLBACK\*(Aq => \*(Aq $var = make_perl_cb_$type($arg) +\& \*(Aq, +\& \*(AqT_OUT\*(Aq => \*(Aq $var = IoOFP(sv_2io($arg)) +\& \*(Aq, +\& \*(AqT_REF_IV_PTR\*(Aq => \*(Aq if (sv_isa($arg, \e\e"${ntype}\e\e")) { +\& # ... +\& } +.Ve +.PP +This is documented because it is used by \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR, +but it's not intended for general consumption. May be removed +at any time. +.SS "_get_outputmap_hash" +.IX Subsection "_get_outputmap_hash" +Returns a hash mapping the \s-1XS\s0 types (identifiers) to the +corresponding \s-1OUTPUT\s0 code: +.PP +.Vb 10 +\& { +\& \*(AqT_CALLBACK\*(Aq => \*(Aq sv_setpvn($arg, $var.context.value().chp(), +\& $var.context.value().size()); +\& \*(Aq, +\& \*(AqT_OUT\*(Aq => \*(Aq { +\& GV *gv = (GV *)sv_newmortal(); +\& gv_init_pvn(gv, gv_stashpvs("$Package",1), +\& "_\|_ANONIO_\|_",10,0); +\& if ( do_open(gv, "+>&", 3, FALSE, 0, 0, $var) ) +\& sv_setsv( +\& $arg, +\& sv_bless(newRV((SV*)gv), gv_stashpv("$Package",1)) +\& ); +\& else +\& $arg = &PL_sv_undef; +\& } +\& \*(Aq, +\& # ... +\& } +.Ve +.PP +This is documented because it is used by \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR, +but it's not intended for general consumption. May be removed +at any time. +.SS "_get_prototype_hash" +.IX Subsection "_get_prototype_hash" +Returns a hash mapping the C types of the typemap to their +corresponding prototypes. +.PP +.Vb 8 +\& { +\& \*(Aqchar **\*(Aq => \*(Aq$\*(Aq, +\& \*(Aqbool_t\*(Aq => \*(Aq$\*(Aq, +\& \*(AqAV *\*(Aq => \*(Aq$\*(Aq, +\& \*(AqInputStream\*(Aq => \*(Aq$\*(Aq, +\& \*(Aqdouble\*(Aq => \*(Aq$\*(Aq, +\& # ... +\& } +.Ve +.PP +This is documented because it is used by \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR, +but it's not intended for general consumption. May be removed +at any time. +.SS "clone" +.IX Subsection "clone" +Creates and returns a clone of a full typemaps object. +.PP +Takes named parameters: If \f(CW\*(C`shallow\*(C'\fR is true, +the clone will share the actual individual type/input/outputmap objects, +but not share their storage. Use with caution. Without \f(CW\*(C`shallow\*(C'\fR, +the clone will be fully independent. +.SS "tidy_type" +.IX Subsection "tidy_type" +Function to (heuristically) canonicalize a C type. Works to some +degree with \*(C+ types. +.PP +.Vb 1 +\& $halfway_canonical_type = tidy_type($ctype); +.Ve +.PP +Moved from \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR. +.SH "CAVEATS" +.IX Header "CAVEATS" +Inherits some evil code from \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The parser is heavily inspired from the one in ExtUtils::ParseXS. +.PP +For details on typemaps: perlxstut, perlxs. +.SH "AUTHOR" +.IX Header "AUTHOR" +Steffen Mueller \f(CW\*(C` +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2009, 2010, 2011, 2012, 2013 Steffen Mueller +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3Atestlib.3 b/data/miniconda3/man/man3/ExtUtils%3A%3Atestlib.3 new file mode 100644 index 0000000000000000000000000000000000000000..d499d0df1893acef0c0acba7e93a0026d8e499dd --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3Atestlib.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ExtUtils::testlib 3" +.TH ExtUtils::testlib 3 "2020-12-18" "perl v5.32.1" "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" +ExtUtils::testlib \- add blib/* directories to @INC +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ExtUtils::testlib; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +After an extension has been built and before it is installed it may be +desirable to test it bypassing \f(CW\*(C`make test\*(C'\fR. By adding +.PP +.Vb 1 +\& use ExtUtils::testlib; +.Ve +.PP +to a test program the intermediate directories used by \f(CW\*(C`make\*(C'\fR are +added to \f(CW@INC\fR. diff --git a/data/miniconda3/man/man3/Fatal.3 b/data/miniconda3/man/man3/Fatal.3 new file mode 100644 index 0000000000000000000000000000000000000000..d4797a794ffc8d85c8b2a3811bdd54fc67a5f06a --- /dev/null +++ b/data/miniconda3/man/man3/Fatal.3 @@ -0,0 +1,258 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Fatal 3" +.TH Fatal 3 "2020-12-18" "perl v5.32.1" "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" +Fatal \- Replace functions with equivalents which succeed or die +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Fatal qw(open close); +\& +\& open(my $fh, "<", $filename); # No need to check errors! +\& +\& use File::Copy qw(move); +\& use Fatal qw(move); +\& +\& move($file1, $file2); # No need to check errors! +\& +\& sub juggle { . . . } +\& Fatal\->import(\*(Aqjuggle\*(Aq); +.Ve +.SH "BEST PRACTICE" +.IX Header "BEST PRACTICE" +\&\fBFatal has been obsoleted by the new autodie pragma.\fR Please use +autodie in preference to \f(CW\*(C`Fatal\*(C'\fR. autodie supports lexical scoping, +throws real exception objects, and provides much nicer error messages. +.PP +The use of \f(CW\*(C`:void\*(C'\fR with Fatal is discouraged. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Fatal\*(C'\fR provides a way to conveniently replace +functions which normally return a false value when they fail with +equivalents which raise exceptions if they are not successful. This +lets you use these functions without having to test their return +values explicitly on each call. Exceptions can be caught using +\&\f(CW\*(C`eval{}\*(C'\fR. See perlfunc and perlvar for details. +.PP +The do-or-die equivalents are set up simply by calling Fatal's +\&\f(CW\*(C`import\*(C'\fR routine, passing it the names of the functions to be +replaced. You may wrap both user-defined functions and overridable +\&\s-1CORE\s0 operators (except \f(CW\*(C`exec\*(C'\fR, \f(CW\*(C`system\*(C'\fR, \f(CW\*(C`print\*(C'\fR, or any other +built-in that cannot be expressed via prototypes) in this way. +.PP +If the symbol \f(CW\*(C`:void\*(C'\fR appears in the import list, then functions +named later in that import list raise an exception only when +these are called in void context\*(--that is, when their return +values are ignored. For example +.PP +.Vb 1 +\& use Fatal qw/:void open close/; +\& +\& # properly checked, so no exception raised on error +\& if (not open(my $fh, \*(Aq<\*(Aq, \*(Aq/bogotic\*(Aq) { +\& warn "Can\*(Aqt open /bogotic: $!"; +\& } +\& +\& # not checked, so error raises an exception +\& close FH; +.Ve +.PP +The use of \f(CW\*(C`:void\*(C'\fR is discouraged, as it can result in exceptions +not being thrown if you \fIaccidentally\fR call a method without +void context. Use autodie instead if you need to be able to +disable autodying/Fatal behaviour for a small block of code. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP "Bad subroutine name for Fatal: %s" 4 +.el .IP "Bad subroutine name for Fatal: \f(CW%s\fR" 4 +.IX Item "Bad subroutine name for Fatal: %s" +You've called \f(CW\*(C`Fatal\*(C'\fR with an argument that doesn't look like +a subroutine name, nor a switch that this version of Fatal +understands. +.ie n .IP "%s is not a Perl subroutine" 4 +.el .IP "\f(CW%s\fR is not a Perl subroutine" 4 +.IX Item "%s is not a Perl subroutine" +You've asked \f(CW\*(C`Fatal\*(C'\fR to try and replace a subroutine which does not +exist, or has not yet been defined. +.ie n .IP "%s is neither a builtin, nor a Perl subroutine" 4 +.el .IP "\f(CW%s\fR is neither a builtin, nor a Perl subroutine" 4 +.IX Item "%s is neither a builtin, nor a Perl subroutine" +You've asked \f(CW\*(C`Fatal\*(C'\fR to replace a subroutine, but it's not a Perl +built-in, and \f(CW\*(C`Fatal\*(C'\fR couldn't find it as a regular subroutine. +It either doesn't exist or has not yet been defined. +.ie n .IP "Cannot make the non-overridable %s fatal" 4 +.el .IP "Cannot make the non-overridable \f(CW%s\fR fatal" 4 +.IX Item "Cannot make the non-overridable %s fatal" +You've tried to use \f(CW\*(C`Fatal\*(C'\fR on a Perl built-in that can't be +overridden, such as \f(CW\*(C`print\*(C'\fR or \f(CW\*(C`system\*(C'\fR, which means that +\&\f(CW\*(C`Fatal\*(C'\fR can't help you, although some other modules might. +See the \*(L"\s-1SEE ALSO\*(R"\s0 section of this documentation. +.ie n .IP "Internal error: %s" 4 +.el .IP "Internal error: \f(CW%s\fR" 4 +.IX Item "Internal error: %s" +You've found a bug in \f(CW\*(C`Fatal\*(C'\fR. Please report it using +the \f(CW\*(C`perlbug\*(C'\fR command. +.SH "BUGS" +.IX Header "BUGS" +\&\f(CW\*(C`Fatal\*(C'\fR clobbers the context in which a function is called and always +makes it a scalar context, except when the \f(CW\*(C`:void\*(C'\fR tag is used. +This problem does not exist in autodie. +.PP +\&\*(L"Used only once\*(R" warnings can be generated when \f(CW\*(C`autodie\*(C'\fR or \f(CW\*(C`Fatal\*(C'\fR +is used with package filehandles (eg, \f(CW\*(C`FILE\*(C'\fR). It's strongly recommended +you use scalar filehandles instead. +.SH "AUTHOR" +.IX Header "AUTHOR" +Original module by Lionel Cons (\s-1CERN\s0). +.PP +Prototype updates by Ilya Zakharevich . +.PP +autodie support, bugfixes, extended diagnostics, \f(CW\*(C`system\*(C'\fR +support, and major overhauling by Paul Fenwick +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software, you may distribute it under the +same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +autodie for a nicer way to use lexical Fatal. +.PP +IPC::System::Simple for a similar idea for calls to \f(CW\*(C`system()\*(C'\fR +and backticks. diff --git a/data/miniconda3/man/man3/File%3A%3ABasename.3 b/data/miniconda3/man/man3/File%3A%3ABasename.3 new file mode 100644 index 0000000000000000000000000000000000000000..0ef21b944b6618a95af664136553f879f472e677 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ABasename.3 @@ -0,0 +1,319 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Basename 3" +.TH File::Basename 3 "2020-12-18" "perl v5.32.1" "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" +File::Basename \- Parse file paths into directory, filename and suffix. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Basename; +\& +\& ($name,$path,$suffix) = fileparse($fullname,@suffixlist); +\& $name = fileparse($fullname,@suffixlist); +\& +\& $basename = basename($fullname,@suffixlist); +\& $dirname = dirname($fullname); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +These routines allow you to parse file paths into their directory, filename +and suffix. +.PP +\&\fB\s-1NOTE\s0\fR: \f(CW\*(C`dirname()\*(C'\fR and \f(CW\*(C`basename()\*(C'\fR emulate the behaviours, and +quirks, of the shell and C functions of the same name. See each +function's documentation for details. If your concern is just parsing +paths it is safer to use File::Spec's \f(CW\*(C`splitpath()\*(C'\fR and +\&\f(CW\*(C`splitdir()\*(C'\fR methods. +.PP +It is guaranteed that +.PP +.Vb 2 +\& # Where $path_separator is / for Unix, \e for Windows, etc... +\& dirname($path) . $path_separator . basename($path); +.Ve +.PP +is equivalent to the original path for all systems but \s-1VMS.\s0 +.ie n .IP """fileparse""" 4 +.el .IP "\f(CWfileparse\fR" 4 +.IX Xref "fileparse" +.IX Item "fileparse" +.Vb 3 +\& my($filename, $dirs, $suffix) = fileparse($path); +\& my($filename, $dirs, $suffix) = fileparse($path, @suffixes); +\& my $filename = fileparse($path, @suffixes); +.Ve +.Sp +The \f(CW\*(C`fileparse()\*(C'\fR routine divides a file path into its \f(CW$dirs\fR, \f(CW$filename\fR +and (optionally) the filename \f(CW$suffix\fR. +.Sp +\&\f(CW$dirs\fR contains everything up to and including the last +directory separator in the \f(CW$path\fR including the volume (if applicable). +The remainder of the \f(CW$path\fR is the \f(CW$filename\fR. +.Sp +.Vb 2 +\& # On Unix returns ("baz", "/foo/bar/", "") +\& fileparse("/foo/bar/baz"); +\& +\& # On Windows returns ("baz", \*(AqC:\efoo\ebar\e\*(Aq, "") +\& fileparse(\*(AqC:\efoo\ebar\ebaz\*(Aq); +\& +\& # On Unix returns ("", "/foo/bar/baz/", "") +\& fileparse("/foo/bar/baz/"); +.Ve +.Sp +If \f(CW@suffixes\fR are given each element is a pattern (either a string or a +\&\f(CW\*(C`qr//\*(C'\fR) matched against the end of the \f(CW$filename\fR. The matching +portion is removed and becomes the \f(CW$suffix\fR. +.Sp +.Vb 2 +\& # On Unix returns ("baz", "/foo/bar/", ".txt") +\& fileparse("/foo/bar/baz.txt", qr/\e.[^.]*/); +.Ve +.Sp +If type is non-Unix (see \*(L"fileparse_set_fstype\*(R") then the pattern +matching for suffix removal is performed case-insensitively, since +those systems are not case-sensitive when opening existing files. +.Sp +You are guaranteed that \f(CW\*(C`$dirs . $filename . $suffix\*(C'\fR will +denote the same location as the original \f(CW$path\fR. +.ie n .IP """basename""" 4 +.el .IP "\f(CWbasename\fR" 4 +.IX Xref "basename filename" +.IX Item "basename" +.Vb 2 +\& my $filename = basename($path); +\& my $filename = basename($path, @suffixes); +.Ve +.Sp +This function is provided for compatibility with the Unix shell command +\&\f(CWbasename(1)\fR. It does \fB\s-1NOT\s0\fR always return the file name portion of a +path as you might expect. To be safe, if you want the file name portion of +a path use \f(CW\*(C`fileparse()\*(C'\fR. +.Sp +\&\f(CW\*(C`basename()\*(C'\fR returns the last level of a filepath even if the last +level is clearly directory. In effect, it is acting like \f(CW\*(C`pop()\*(C'\fR for +paths. This differs from \f(CW\*(C`fileparse()\*(C'\fR's behaviour. +.Sp +.Vb 3 +\& # Both return "bar" +\& basename("/foo/bar"); +\& basename("/foo/bar/"); +.Ve +.Sp +\&\f(CW@suffixes\fR work as in \f(CW\*(C`fileparse()\*(C'\fR except all regex metacharacters are +quoted. +.Sp +.Vb 3 +\& # These two function calls are equivalent. +\& my $filename = basename("/foo/bar/baz.txt", ".txt"); +\& my $filename = fileparse("/foo/bar/baz.txt", qr/\eQ.txt\eE/); +.Ve +.Sp +Also note that in order to be compatible with the shell command, +\&\f(CW\*(C`basename()\*(C'\fR does not strip off a suffix if it is identical to the +remaining characters in the filename. +.ie n .IP """dirname""" 4 +.el .IP "\f(CWdirname\fR" 4 +.IX Xref "dirname" +.IX Item "dirname" +This function is provided for compatibility with the Unix shell +command \f(CWdirname(1)\fR and has inherited some of its quirks. In spite of +its name it does \fB\s-1NOT\s0\fR always return the directory name as you might +expect. To be safe, if you want the directory name of a path use +\&\f(CW\*(C`fileparse()\*(C'\fR. +.Sp +Only on \s-1VMS\s0 (where there is no ambiguity between the file and directory +portions of a path) and AmigaOS (possibly due to an implementation quirk in +this module) does \f(CW\*(C`dirname()\*(C'\fR work like \f(CW\*(C`fileparse($path)\*(C'\fR, returning just the +\&\f(CW$dirs\fR. +.Sp +.Vb 2 +\& # On VMS and AmigaOS +\& my $dirs = dirname($path); +.Ve +.Sp +When using Unix or \s-1MSDOS\s0 syntax this emulates the \f(CWdirname(1)\fR shell function +which is subtly different from how \f(CW\*(C`fileparse()\*(C'\fR works. It returns all but +the last level of a file path even if the last level is clearly a directory. +In effect, it is not returning the directory portion but simply the path one +level up acting like \f(CW\*(C`chop()\*(C'\fR for file paths. +.Sp +Also unlike \f(CW\*(C`fileparse()\*(C'\fR, \f(CW\*(C`dirname()\*(C'\fR does not include a trailing slash on +its returned path. +.Sp +.Vb 2 +\& # returns /foo/bar. fileparse() would return /foo/bar/ +\& dirname("/foo/bar/baz"); +\& +\& # also returns /foo/bar despite the fact that baz is clearly a +\& # directory. fileparse() would return /foo/bar/baz/ +\& dirname("/foo/bar/baz/"); +\& +\& # returns \*(Aq.\*(Aq. fileparse() would return \*(Aqfoo/\*(Aq +\& dirname("foo/"); +.Ve +.Sp +Under \s-1VMS,\s0 if there is no directory information in the \f(CW$path\fR, then the +current default device and directory is used. +.ie n .IP """fileparse_set_fstype""" 4 +.el .IP "\f(CWfileparse_set_fstype\fR" 4 +.IX Xref "filesystem" +.IX Item "fileparse_set_fstype" +.Vb 2 +\& my $type = fileparse_set_fstype(); +\& my $previous_type = fileparse_set_fstype($type); +.Ve +.Sp +Normally File::Basename will assume a file path type native to your current +operating system (ie. /foo/bar style on Unix, \efoo\ebar on Windows, etc...). +With this function you can override that assumption. +.Sp +Valid \f(CW$types\fR are \*(L"MacOS\*(R", \*(L"\s-1VMS\*(R",\s0 \*(L"AmigaOS\*(R", \*(L"\s-1OS2\*(R", \*(L"RISCOS\*(R",\s0 +\&\*(L"MSWin32\*(R", \*(L"\s-1DOS\*(R"\s0 (also \*(L"\s-1MSDOS\*(R"\s0 for backwards bug compatibility), +\&\*(L"Epoc\*(R" and \*(L"Unix\*(R" (all case-insensitive). If an unrecognized \f(CW$type\fR is +given \*(L"Unix\*(R" will be assumed. +.Sp +If you've selected \s-1VMS\s0 syntax, and the file specification you pass to +one of these routines contains a \*(L"/\*(R", they assume you are using Unix +emulation and apply the Unix syntax rules instead, for that function +call only. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBdirname\fR\|(1), \fBbasename\fR\|(1), File::Spec diff --git a/data/miniconda3/man/man3/File%3A%3ACopy.3 b/data/miniconda3/man/man3/File%3A%3ACopy.3 new file mode 100644 index 0000000000000000000000000000000000000000..a90b9d33481c56699891eb64da29703a6b8f973d --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ACopy.3 @@ -0,0 +1,304 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Copy 3" +.TH File::Copy 3 "2020-12-18" "perl v5.32.1" "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" +File::Copy \- Copy files or filehandles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Copy; +\& +\& copy("sourcefile","destinationfile") or die "Copy failed: $!"; +\& copy("Copy.pm",\e*STDOUT); +\& move("/dev1/sourcefile","/dev2/destinationfile"); +\& +\& use File::Copy "cp"; +\& +\& $n = FileHandle\->new("/a/file","r"); +\& cp($n,"x"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The File::Copy module provides two basic functions, \f(CW\*(C`copy\*(C'\fR and +\&\f(CW\*(C`move\*(C'\fR, which are useful for getting the contents of a file from +one place to another. +.IP "copy" 4 +.IX Xref "copy cp" +.IX Item "copy" +The \f(CW\*(C`copy\*(C'\fR function takes two +parameters: a file to copy from and a file to copy to. Either +argument may be a string, a FileHandle reference or a FileHandle +glob. Obviously, if the first argument is a filehandle of some +sort, it will be read from, and if it is a file \fIname\fR it will +be opened for reading. Likewise, the second argument will be +written to. If the second argument does not exist but the parent +directory does exist, then it will be created. Trying to copy +a file into a non-existent directory is an error. +Trying to copy a file on top of itself is also an error. +\&\f(CW\*(C`copy\*(C'\fR will not overwrite read-only files. +.Sp +If the destination (second argument) already exists and is a directory, +and the source (first argument) is not a filehandle, then the source +file will be copied into the directory specified by the destination, +using the same base name as the source file. It's a failure to have a +filehandle as the source when the destination is a directory. +.Sp +\&\fBNote that passing in +files as handles instead of names may lead to loss of information +on some operating systems; it is recommended that you use file +names whenever possible.\fR Files are opened in binary mode where +applicable. To get a consistent behaviour when copying from a +filehandle to a file, use \f(CW\*(C`binmode\*(C'\fR on the filehandle. +.Sp +An optional third parameter can be used to specify the buffer +size used for copying. This is the number of bytes from the +first file, that will be held in memory at any given time, before +being written to the second file. The default buffer size depends +upon the file, but will generally be the whole file (up to 2MB), or +1k for filehandles that do not reference files (eg. sockets). +.Sp +You may use the syntax \f(CW\*(C`use File::Copy "cp"\*(C'\fR to get at the \f(CW\*(C`cp\*(C'\fR +alias for this function. The syntax is \fIexactly\fR the same. The +behavior is nearly the same as well: as of version 2.15, \f(CW\*(C`cp\*(C'\fR will +preserve the source file's permission bits like the shell utility +\&\f(CWcp(1)\fR would do, while \f(CW\*(C`copy\*(C'\fR uses the default permissions for the +target file (which may depend on the process' \f(CW\*(C`umask\*(C'\fR, file +ownership, inherited ACLs, etc.). If an error occurs in setting +permissions, \f(CW\*(C`cp\*(C'\fR will return 0, regardless of whether the file was +successfully copied. +.IP "move" 4 +.IX Xref "move mv rename" +.IX Item "move" +The \f(CW\*(C`move\*(C'\fR function also takes two parameters: the current name +and the intended name of the file to be moved. If the destination +already exists and is a directory, and the source is not a +directory, then the source file will be renamed into the directory +specified by the destination. +.Sp +If possible, \fBmove()\fR will simply rename the file. Otherwise, it copies +the file to the new location and deletes the original. If an error occurs +during this copy-and-delete process, you may be left with a (possibly partial) +copy of the file under the destination name. +.Sp +You may use the \f(CW\*(C`mv\*(C'\fR alias for this function in the same way that +you may use the \f(CW\*(C`cp\*(C'\fR alias for \f(CW\*(C`copy\*(C'\fR. +.IP "syscopy" 4 +.IX Xref "syscopy" +.IX Item "syscopy" +File::Copy also provides the \f(CW\*(C`syscopy\*(C'\fR routine, which copies the +file specified in the first parameter to the file specified in the +second parameter, preserving OS-specific attributes and file +structure. For Unix systems, this is equivalent to the simple +\&\f(CW\*(C`copy\*(C'\fR routine, which doesn't preserve OS-specific attributes. For +\&\s-1VMS\s0 systems, this calls the \f(CW\*(C`rmscopy\*(C'\fR routine (see below). For \s-1OS/2\s0 +systems, this calls the \f(CW\*(C`syscopy\*(C'\fR \s-1XSUB\s0 directly. For Win32 systems, +this calls \f(CW\*(C`Win32::CopyFile\*(C'\fR. +.Sp +\&\fBSpecial behaviour if \f(CB\*(C`syscopy\*(C'\fB is defined (\s-1OS/2, VMS\s0 and Win32)\fR: +.Sp +If both arguments to \f(CW\*(C`copy\*(C'\fR are not file handles, +then \f(CW\*(C`copy\*(C'\fR will perform a \*(L"system copy\*(R" of +the input file to a new output file, in order to preserve file +attributes, indexed file structure, \fIetc.\fR The buffer size +parameter is ignored. If either argument to \f(CW\*(C`copy\*(C'\fR is a +handle to an opened file, then data is copied using Perl +operators, and no effort is made to preserve file attributes +or record structure. +.Sp +The system copy routine may also be called directly under \s-1VMS\s0 and \s-1OS/2\s0 +as \f(CW\*(C`File::Copy::syscopy\*(C'\fR (or under \s-1VMS\s0 as \f(CW\*(C`File::Copy::rmscopy\*(C'\fR, which +is the routine that does the actual work for syscopy). +.IP "rmscopy($from,$to[,$date_flag])" 4 +.IX Xref "rmscopy" +.IX Item "rmscopy($from,$to[,$date_flag])" +The first and second arguments may be strings, typeglobs, typeglob +references, or objects inheriting from IO::Handle; +they are used in all cases to obtain the +\&\fIfilespec\fR of the input and output files, respectively. The +name and type of the input file are used as defaults for the +output file, if necessary. +.Sp +A new version of the output file is always created, which +inherits the structure and \s-1RMS\s0 attributes of the input file, +except for owner and protections (and possibly timestamps; +see below). All data from the input file is copied to the +output file; if either of the first two parameters to \f(CW\*(C`rmscopy\*(C'\fR +is a file handle, its position is unchanged. (Note that this +means a file handle pointing to the output file will be +associated with an old version of that file after \f(CW\*(C`rmscopy\*(C'\fR +returns, not the newly created version.) +.Sp +The third parameter is an integer flag, which tells \f(CW\*(C`rmscopy\*(C'\fR +how to handle timestamps. If it is < 0, none of the input file's +timestamps are propagated to the output file. If it is > 0, then +it is interpreted as a bitmask: if bit 0 (the \s-1LSB\s0) is set, then +timestamps other than the revision date are propagated; if bit 1 +is set, the revision date is propagated. If the third parameter +to \f(CW\*(C`rmscopy\*(C'\fR is 0, then it behaves much like the \s-1DCL COPY\s0 command: +if the name or type of the output file was explicitly specified, +then no timestamps are propagated, but if they were taken implicitly +from the input filespec, then all timestamps other than the +revision date are propagated. If this parameter is not supplied, +it defaults to 0. +.Sp +\&\f(CW\*(C`rmscopy\*(C'\fR is \s-1VMS\s0 specific and cannot be exported; it must be +referenced by its full name, e.g.: +.Sp +.Vb 1 +\& File::Copy::rmscopy($from, $to) or die $!; +.Ve +.Sp +Like \f(CW\*(C`copy\*(C'\fR, \f(CW\*(C`rmscopy\*(C'\fR returns 1 on success. If an error occurs, +it sets \f(CW$!\fR, deletes the output file, and returns 0. +.SH "RETURN" +.IX Header "RETURN" +All functions return 1 on success, 0 on failure. +$! will be set if an error was encountered. +.SH "NOTES" +.IX Header "NOTES" +Before calling \fBcopy()\fR or \fBmove()\fR on a filehandle, the caller should +close or \fBflush()\fR the file to avoid writes being lost. Note that this +is the case even for \fBmove()\fR, because it may actually copy the file, +depending on the OS-specific implementation, and the underlying +filesystem(s). +.SH "AUTHOR" +.IX Header "AUTHOR" +File::Copy was written by Aaron Sherman \fI\fR in 1995, +and updated by Charles Bailey \fI\fR in 1996. diff --git a/data/miniconda3/man/man3/File%3A%3ADosGlob.3 b/data/miniconda3/man/man3/File%3A%3ADosGlob.3 new file mode 100644 index 0000000000000000000000000000000000000000..b358c1e7eeb797a1be7fb149346baf1d40722548 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ADosGlob.3 @@ -0,0 +1,215 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::DosGlob 3" +.TH File::DosGlob 3 "2020-12-18" "perl v5.32.1" "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" +File::DosGlob \- DOS like globbing and then some +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require 5.004; +\& +\& # override CORE::glob in current package +\& use File::DosGlob \*(Aqglob\*(Aq; +\& +\& # override CORE::glob in ALL packages (use with extreme caution!) +\& use File::DosGlob \*(AqGLOBAL_glob\*(Aq; +\& +\& @perlfiles = glob "..\e\epe?l/*.p?"; +\& print <..\e\epe?l/*.p?>; +\& +\& # from the command line (overrides only in main::) +\& > perl \-MFile::DosGlob=glob \-e "print <../pe*/*p?>" +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A module that implements DOS-like globbing with a few enhancements. +It is largely compatible with perlglob.exe (the M$ setargv.obj +version) in all but one respect\*(--it understands wildcards in +directory components. +.PP +For example, \f(CW\*(C`<..\e\el*b\e\efile/*glob.p?>\*(C'\fR will work as expected (in +that it will find something like '..\elib\eFile/DosGlob.pm' alright). +Note that all path components are case-insensitive, and that +backslashes and forward slashes are both accepted, and preserved. +You may have to double the backslashes if you are putting them in +literally, due to double-quotish parsing of the pattern by perl. +.PP +Spaces in the argument delimit distinct patterns, so +\&\f(CW\*(C`glob(\*(Aq*.exe *.dll\*(Aq)\*(C'\fR globs all filenames that end in \f(CW\*(C`.exe\*(C'\fR +or \f(CW\*(C`.dll\*(C'\fR. If you want to put in literal spaces in the glob +pattern, you can escape them with either double quotes, or backslashes. +e.g. \f(CW\*(C`glob(\*(Aqc:/"Program Files"/*/*.dll\*(Aq)\*(C'\fR, or +\&\f(CW\*(C`glob(\*(Aqc:/Program\e Files/*/*.dll\*(Aq)\*(C'\fR. The argument is tokenized using +\&\f(CW\*(C`Text::ParseWords::parse_line()\*(C'\fR, so see Text::ParseWords for details +of the quoting rules used. +.PP +Extending it to csh patterns is left as an exercise to the reader. +.SH "EXPORTS (by request only)" +.IX Header "EXPORTS (by request only)" +\&\fBglob()\fR +.SH "BUGS" +.IX Header "BUGS" +Should probably be built into the core, and needs to stop +pandering to \s-1DOS\s0 habits. Needs a dose of optimization too. +.SH "AUTHOR" +.IX Header "AUTHOR" +Gurusamy Sarathy +.SH "HISTORY" +.IX Header "HISTORY" +.IP "\(bu" 4 +Support for globally overriding \fBglob()\fR (\s-1GSAR 3\-JUN\-98\s0) +.IP "\(bu" 4 +Scalar context, independent iterator context fixes (\s-1GSAR 15\-SEP\-97\s0) +.IP "\(bu" 4 +A few dir-vs-file optimizations result in glob importation being +10 times faster than using perlglob.exe, and using perlglob.bat is +only twice as slow as perlglob.exe (\s-1GSAR 28\-MAY\-97\s0) +.IP "\(bu" 4 +Several cleanups prompted by lack of compatible perlglob.exe +under Borland (\s-1GSAR 27\-MAY\-97\s0) +.IP "\(bu" 4 +Initial version (\s-1GSAR 20\-FEB\-97\s0) +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perl +.PP +perlglob.bat +.PP +Text::ParseWords diff --git a/data/miniconda3/man/man3/File%3A%3AFind.3 b/data/miniconda3/man/man3/File%3A%3AFind.3 new file mode 100644 index 0000000000000000000000000000000000000000..53e9ae9df77485e62947086e622421763a26d8ae --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3AFind.3 @@ -0,0 +1,467 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Find 3" +.TH File::Find 3 "2020-12-18" "perl v5.32.1" "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" +File::Find \- Traverse a directory tree. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use File::Find; +\& find(\e&wanted, @directories_to_search); +\& sub wanted { ... } +\& +\& use File::Find; +\& finddepth(\e&wanted, @directories_to_search); +\& sub wanted { ... } +\& +\& use File::Find; +\& find({ wanted => \e&process, follow => 1 }, \*(Aq.\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +These are functions for searching through directory trees doing work +on each file found similar to the Unix \fIfind\fR command. File::Find +exports two functions, \f(CW\*(C`find\*(C'\fR and \f(CW\*(C`finddepth\*(C'\fR. They work similarly +but have subtle differences. +.IP "\fBfind\fR" 4 +.IX Item "find" +.Vb 2 +\& find(\e&wanted, @directories); +\& find(\e%options, @directories); +.Ve +.Sp +\&\f(CW\*(C`find()\*(C'\fR does a depth-first search over the given \f(CW@directories\fR in +the order they are given. For each file or directory found, it calls +the \f(CW&wanted\fR subroutine. (See below for details on how to use the +\&\f(CW&wanted\fR function). Additionally, for each directory found, it will +\&\f(CW\*(C`chdir()\*(C'\fR into that directory and continue the search, invoking the +\&\f(CW&wanted\fR function on each file or subdirectory in the directory. +.IP "\fBfinddepth\fR" 4 +.IX Item "finddepth" +.Vb 2 +\& finddepth(\e&wanted, @directories); +\& finddepth(\e%options, @directories); +.Ve +.Sp +\&\f(CW\*(C`finddepth()\*(C'\fR works just like \f(CW\*(C`find()\*(C'\fR except that it invokes the +\&\f(CW&wanted\fR function for a directory \fIafter\fR invoking it for the +directory's contents. It does a postorder traversal instead of a +preorder traversal, working from the bottom of the directory tree up +where \f(CW\*(C`find()\*(C'\fR works from the top of the tree down. +.ie n .SS "%options" +.el .SS "\f(CW%options\fP" +.IX Subsection "%options" +The first argument to \f(CW\*(C`find()\*(C'\fR is either a code reference to your +\&\f(CW&wanted\fR function, or a hash reference describing the operations +to be performed for each file. The +code reference is described in \*(L"The wanted function\*(R" below. +.PP +Here are the possible keys for the hash: +.ie n .IP """wanted""" 3 +.el .IP "\f(CWwanted\fR" 3 +.IX Item "wanted" +The value should be a code reference. This code reference is +described in \*(L"The wanted function\*(R" below. The \f(CW&wanted\fR subroutine is +mandatory. +.ie n .IP """bydepth""" 3 +.el .IP "\f(CWbydepth\fR" 3 +.IX Item "bydepth" +Reports the name of a directory only \s-1AFTER\s0 all its entries +have been reported. Entry point \f(CW\*(C`finddepth()\*(C'\fR is a shortcut for +specifying \f(CW\*(C`{ bydepth => 1 }\*(C'\fR in the first argument of \f(CW\*(C`find()\*(C'\fR. +.ie n .IP """preprocess""" 3 +.el .IP "\f(CWpreprocess\fR" 3 +.IX Item "preprocess" +The value should be a code reference. This code reference is used to +preprocess the current directory. The name of the currently processed +directory is in \f(CW$File::Find::dir\fR. Your preprocessing function is +called after \f(CW\*(C`readdir()\*(C'\fR, but before the loop that calls the \f(CW\*(C`wanted()\*(C'\fR +function. It is called with a list of strings (actually file/directory +names) and is expected to return a list of strings. The code can be +used to sort the file/directory names alphabetically, numerically, +or to filter out directory entries based on their name alone. When +\&\fIfollow\fR or \fIfollow_fast\fR are in effect, \f(CW\*(C`preprocess\*(C'\fR is a no-op. +.ie n .IP """postprocess""" 3 +.el .IP "\f(CWpostprocess\fR" 3 +.IX Item "postprocess" +The value should be a code reference. It is invoked just before leaving +the currently processed directory. It is called in void context with no +arguments. The name of the current directory is in \f(CW$File::Find::dir\fR. This +hook is handy for summarizing a directory, such as calculating its disk +usage. When \fIfollow\fR or \fIfollow_fast\fR are in effect, \f(CW\*(C`postprocess\*(C'\fR is a +no-op. +.ie n .IP """follow""" 3 +.el .IP "\f(CWfollow\fR" 3 +.IX Item "follow" +Causes symbolic links to be followed. Since directory trees with symbolic +links (followed) may contain files more than once and may even have +cycles, a hash has to be built up with an entry for each file. +This might be expensive both in space and time for a large +directory tree. See \*(L"follow_fast\*(R" and \*(L"follow_skip\*(R" below. +If either \fIfollow\fR or \fIfollow_fast\fR is in effect: +.RS 3 +.IP "\(bu" 6 +It is guaranteed that an \fIlstat\fR has been called before the user's +\&\f(CW\*(C`wanted()\*(C'\fR function is called. This enables fast file checks involving \f(CW\*(C`_\*(C'\fR. +Note that this guarantee no longer holds if \fIfollow\fR or \fIfollow_fast\fR +are not set. +.IP "\(bu" 6 +There is a variable \f(CW$File::Find::fullname\fR which holds the absolute +pathname of the file with all symbolic links resolved. If the link is +a dangling symbolic link, then fullname will be set to \f(CW\*(C`undef\*(C'\fR. +.RE +.RS 3 +.Sp +This is a no-op on Win32. +.RE +.ie n .IP """follow_fast""" 3 +.el .IP "\f(CWfollow_fast\fR" 3 +.IX Item "follow_fast" +This is similar to \fIfollow\fR except that it may report some files more +than once. It does detect cycles, however. Since only symbolic links +have to be hashed, this is much cheaper both in space and time. If +processing a file more than once (by the user's \f(CW\*(C`wanted()\*(C'\fR function) +is worse than just taking time, the option \fIfollow\fR should be used. +.Sp +This is also a no-op on Win32. +.ie n .IP """follow_skip""" 3 +.el .IP "\f(CWfollow_skip\fR" 3 +.IX Item "follow_skip" +\&\f(CW\*(C`follow_skip==1\*(C'\fR, which is the default, causes all files which are +neither directories nor symbolic links to be ignored if they are about +to be processed a second time. If a directory or a symbolic link +are about to be processed a second time, File::Find dies. +.Sp +\&\f(CW\*(C`follow_skip==0\*(C'\fR causes File::Find to die if any file is about to be +processed a second time. +.Sp +\&\f(CW\*(C`follow_skip==2\*(C'\fR causes File::Find to ignore any duplicate files and +directories but to proceed normally otherwise. +.ie n .IP """dangling_symlinks""" 3 +.el .IP "\f(CWdangling_symlinks\fR" 3 +.IX Item "dangling_symlinks" +Specifies what to do with symbolic links whose target doesn't exist. +If true and a code reference, will be called with the symbolic link +name and the directory it lives in as arguments. Otherwise, if true +and warnings are on, a warning of the form \f(CW"symbolic_link_name is a dangling +symbolic link\en"\fR will be issued. If false, the dangling symbolic link +will be silently ignored. +.ie n .IP """no_chdir""" 3 +.el .IP "\f(CWno_chdir\fR" 3 +.IX Item "no_chdir" +Does not \f(CW\*(C`chdir()\*(C'\fR to each directory as it recurses. The \f(CW\*(C`wanted()\*(C'\fR +function will need to be aware of this, of course. In this case, +\&\f(CW$_\fR will be the same as \f(CW$File::Find::name\fR. +.ie n .IP """untaint""" 3 +.el .IP "\f(CWuntaint\fR" 3 +.IX Item "untaint" +If find is used in taint-mode (\-T command line switch or +if \s-1EUID\s0 != \s-1UID\s0 or if \s-1EGID\s0 != \s-1GID\s0), then internally directory names have to be +untainted before they can be \f(CW\*(C`chdir\*(C'\fR'd to. Therefore they are checked against +a regular expression \fIuntaint_pattern\fR. Note that all names passed to the +user's \f(CW\*(C`wanted()\*(C'\fR function are still tainted. If this option is used while not +in taint-mode, \f(CW\*(C`untaint\*(C'\fR is a no-op. +.ie n .IP """untaint_pattern""" 3 +.el .IP "\f(CWuntaint_pattern\fR" 3 +.IX Item "untaint_pattern" +See above. This should be set using the \f(CW\*(C`qr\*(C'\fR quoting operator. +The default is set to \f(CW\*(C`qr|^([\-+@\ew./]+)$|\*(C'\fR. +Note that the parentheses are vital. +.ie n .IP """untaint_skip""" 3 +.el .IP "\f(CWuntaint_skip\fR" 3 +.IX Item "untaint_skip" +If set, a directory which fails the \fIuntaint_pattern\fR is skipped, +including all its sub-directories. The default is to \f(CW\*(C`die\*(C'\fR in such a case. +.SS "The wanted function" +.IX Subsection "The wanted function" +The \f(CW\*(C`wanted()\*(C'\fR function does whatever verifications you want on +each file and directory. Note that despite its name, the \f(CW\*(C`wanted()\*(C'\fR +function is a generic callback function, and does \fBnot\fR tell +File::Find if a file is \*(L"wanted\*(R" or not. In fact, its return value +is ignored. +.PP +The wanted function takes no arguments but rather does its work +through a collection of variables. +.ie n .IP "$File::Find::dir is the current directory name," 4 +.el .IP "\f(CW$File::Find::dir\fR is the current directory name," 4 +.IX Item "$File::Find::dir is the current directory name," +.PD 0 +.ie n .IP "$_ is the current filename within that directory" 4 +.el .IP "\f(CW$_\fR is the current filename within that directory" 4 +.IX Item "$_ is the current filename within that directory" +.ie n .IP "$File::Find::name is the complete pathname to the file." 4 +.el .IP "\f(CW$File::Find::name\fR is the complete pathname to the file." 4 +.IX Item "$File::Find::name is the complete pathname to the file." +.PD +.PP +The above variables have all been localized and may be changed without +affecting data outside of the wanted function. +.PP +For example, when examining the file \fI/some/path/foo.ext\fR you will have: +.PP +.Vb 3 +\& $File::Find::dir = /some/path/ +\& $_ = foo.ext +\& $File::Find::name = /some/path/foo.ext +.Ve +.PP +You are \fBchdir()\fR'd to \f(CW$File::Find::dir\fR when the function is called, +unless \f(CW\*(C`no_chdir\*(C'\fR was specified. Note that when changing to +directories is in effect, the root directory (\fI/\fR) is a somewhat +special case inasmuch as the concatenation of \f(CW$File::Find::dir\fR, +\&\f(CW\*(Aq/\*(Aq\fR and \f(CW$_\fR is not literally equal to \f(CW$File::Find::name\fR. The +table below summarizes all variants: +.PP +.Vb 4 +\& $File::Find::name $File::Find::dir $_ +\& default / / . +\& no_chdir=>0 /etc / etc +\& /etc/x /etc x +\& +\& no_chdir=>1 / / / +\& /etc / /etc +\& /etc/x /etc /etc/x +.Ve +.PP +When \f(CW\*(C`follow\*(C'\fR or \f(CW\*(C`follow_fast\*(C'\fR are in effect, there is +also a \f(CW$File::Find::fullname\fR. The function may set +\&\f(CW$File::Find::prune\fR to prune the tree unless \f(CW\*(C`bydepth\*(C'\fR was +specified. Unless \f(CW\*(C`follow\*(C'\fR or \f(CW\*(C`follow_fast\*(C'\fR is specified, for +compatibility reasons (find.pl, find2perl) there are in addition the +following globals available: \f(CW$File::Find::topdir\fR, +\&\f(CW$File::Find::topdev\fR, \f(CW$File::Find::topino\fR, +\&\f(CW$File::Find::topmode\fR and \f(CW$File::Find::topnlink\fR. +.PP +This library is useful for the \f(CW\*(C`find2perl\*(C'\fR tool (distributed as part of the +App\-find2perl \s-1CPAN\s0 distribution), which when fed, +.PP +.Vb 2 +\& find2perl / \-name .nfs\e* \-mtime +7 \e +\& \-exec rm \-f {} \e; \-o \-fstype nfs \-prune +.Ve +.PP +produces something like: +.PP +.Vb 10 +\& sub wanted { +\& /^\e.nfs.*\ez/s && +\& (($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($_)) && +\& int(\-M _) > 7 && +\& unlink($_) +\& || +\& ($nlink || (($dev, $ino, $mode, $nlink, $uid, $gid) = lstat($_))) && +\& $dev < 0 && +\& ($File::Find::prune = 1); +\& } +.Ve +.PP +Notice the \f(CW\*(C`_\*(C'\fR in the above \f(CW\*(C`int(\-M _)\*(C'\fR: the \f(CW\*(C`_\*(C'\fR is a magical +filehandle that caches the information from the preceding +\&\f(CW\*(C`stat()\*(C'\fR, \f(CW\*(C`lstat()\*(C'\fR, or filetest. +.PP +Here's another interesting wanted function. It will find all symbolic +links that don't resolve: +.PP +.Vb 3 +\& sub wanted { +\& \-l && !\-e && print "bogus link: $File::Find::name\en"; +\& } +.Ve +.PP +Note that you may mix directories and (non-directory) files in the list of +directories to be searched by the \f(CW\*(C`wanted()\*(C'\fR function. +.PP +.Vb 1 +\& find(\e&wanted, "./foo", "./bar", "./baz/epsilon"); +.Ve +.PP +In the example above, no file in \fI./baz/\fR other than \fI./baz/epsilon\fR will be +evaluated by \f(CW\*(C`wanted()\*(C'\fR. +.PP +See also the script \f(CW\*(C`pfind\*(C'\fR on \s-1CPAN\s0 for a nice application of this +module. +.SH "WARNINGS" +.IX Header "WARNINGS" +If you run your program with the \f(CW\*(C`\-w\*(C'\fR switch, or if you use the +\&\f(CW\*(C`warnings\*(C'\fR pragma, File::Find will report warnings for several weird +situations. You can disable these warnings by putting the statement +.PP +.Vb 1 +\& no warnings \*(AqFile::Find\*(Aq; +.Ve +.PP +in the appropriate scope. See warnings for more info about lexical +warnings. +.SH "CAVEAT" +.IX Header "CAVEAT" +.ie n .IP "$dont_use_nlink" 2 +.el .IP "\f(CW$dont_use_nlink\fR" 2 +.IX Item "$dont_use_nlink" +You can set the variable \f(CW$File::Find::dont_use_nlink\fR to 0 if you +are sure the filesystem you are scanning reflects the number of +subdirectories in the parent directory's \f(CW\*(C`nlink\*(C'\fR count. +.Sp +If you do set \f(CW$File::Find::dont_use_nlink\fR to 0, you may notice an +improvement in speed at the risk of not recursing into subdirectories +if a filesystem doesn't populate \f(CW\*(C`nlink\*(C'\fR as expected. +.Sp +\&\f(CW$File::Find::dont_use_nlink\fR now defaults to 1 on all platforms. +.IP "symlinks" 2 +.IX Item "symlinks" +Be aware that the option to follow symbolic links can be dangerous. +Depending on the structure of the directory tree (including symbolic +links to directories) you might traverse a given (physical) directory +more than once (only if \f(CW\*(C`follow_fast\*(C'\fR is in effect). +Furthermore, deleting or changing files in a symbolically linked directory +might cause very unpleasant surprises, since you delete or change files +in an unknown directory. +.SH "BUGS AND CAVEATS" +.IX Header "BUGS AND CAVEATS" +Despite the name of the \f(CW\*(C`finddepth()\*(C'\fR function, both \f(CW\*(C`find()\*(C'\fR and +\&\f(CW\*(C`finddepth()\*(C'\fR perform a depth-first search of the directory +hierarchy. +.SH "HISTORY" +.IX Header "HISTORY" +File::Find used to produce incorrect results if called recursively. +During the development of perl 5.8 this bug was fixed. +The first fixed version of File::Find was 1.01. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBfind\fR\|(1), find2perl. diff --git a/data/miniconda3/man/man3/File%3A%3AGlobMapper.3 b/data/miniconda3/man/man3/File%3A%3AGlobMapper.3 new file mode 100644 index 0000000000000000000000000000000000000000..eed1104f0ef56af5b890a8f82eb9c511f7789e95 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3AGlobMapper.3 @@ -0,0 +1,430 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::GlobMapper 3" +.TH File::GlobMapper 3 "2020-12-18" "perl v5.32.1" "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" +File::GlobMapper \- Extend File Glob to Allow Input and Output Files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::GlobMapper qw( globmap ); +\& +\& my $aref = globmap $input => $output +\& or die $File::GlobMapper::Error ; +\& +\& my $gm = new File::GlobMapper $input => $output +\& or die $File::GlobMapper::Error ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module needs Perl5.005 or better. +.PP +This module takes the existing \f(CW\*(C`File::Glob\*(C'\fR module as a starting point and +extends it to allow new filenames to be derived from the files matched by +\&\f(CW\*(C`File::Glob\*(C'\fR. +.PP +This can be useful when carrying out batch operations on multiple files that +have both an input filename and output filename and the output file can be +derived from the input filename. Examples of operations where this can be +useful include, file renaming, file copying and file compression. +.SS "Behind The Scenes" +.IX Subsection "Behind The Scenes" +To help explain what \f(CW\*(C`File::GlobMapper\*(C'\fR does, consider what code you +would write if you wanted to rename all files in the current directory +that ended in \f(CW\*(C`.tar.gz\*(C'\fR to \f(CW\*(C`.tgz\*(C'\fR. So say these files are in the +current directory +.PP +.Vb 3 +\& alpha.tar.gz +\& beta.tar.gz +\& gamma.tar.gz +.Ve +.PP +and they need renamed to this +.PP +.Vb 3 +\& alpha.tgz +\& beta.tgz +\& gamma.tgz +.Ve +.PP +Below is a possible implementation of a script to carry out the rename +(error cases have been omitted) +.PP +.Vb 4 +\& foreach my $old ( glob "*.tar.gz" ) +\& { +\& my $new = $old; +\& $new =~ s#(.*)\e.tar\e.gz$#$1.tgz# ; +\& +\& rename $old => $new +\& or die "Cannot rename \*(Aq$old\*(Aq to \*(Aq$new\*(Aq: $!\en; +\& } +.Ve +.PP +Notice that a file glob pattern \f(CW\*(C`*.tar.gz\*(C'\fR was used to match the +\&\f(CW\*(C`.tar.gz\*(C'\fR files, then a fairly similar regular expression was used in +the substitute to allow the new filename to be created. +.PP +Given that the file glob is just a cut-down regular expression and that it +has already done a lot of the hard work in pattern matching the filenames, +wouldn't it be handy to be able to use the patterns in the fileglob to +drive the new filename? +.PP +Well, that's \fIexactly\fR what \f(CW\*(C`File::GlobMapper\*(C'\fR does. +.PP +Here is same snippet of code rewritten using \f(CW\*(C`globmap\*(C'\fR +.PP +.Vb 6 +\& for my $pair (globmap \*(Aq<*.tar.gz>\*(Aq => \*(Aq<#1.tgz>\*(Aq ) +\& { +\& my ($from, $to) = @$pair; +\& rename $from => $to +\& or die "Cannot rename \*(Aq$old\*(Aq to \*(Aq$new\*(Aq: $!\en; +\& } +.Ve +.PP +So how does it work? +.PP +Behind the scenes the \f(CW\*(C`globmap\*(C'\fR function does a combination of a +file glob to match existing filenames followed by a substitute +to create the new filenames. +.PP +Notice how both parameters to \f(CW\*(C`globmap\*(C'\fR are strings that are delimited by <>. +This is done to make them look more like file globs \- it is just syntactic +sugar, but it can be handy when you want the strings to be visually +distinctive. The enclosing <> are optional, so you don't have to use them \- in +fact the first thing globmap will do is remove these delimiters if they are +present. +.PP +The first parameter to \f(CW\*(C`globmap\*(C'\fR, \f(CW\*(C`*.tar.gz\*(C'\fR, is an \fIInput File Glob\fR. +Once the enclosing \*(L"< ... >\*(R" is removed, this is passed (more or +less) unchanged to \f(CW\*(C`File::Glob\*(C'\fR to carry out a file match. +.PP +Next the fileglob \f(CW\*(C`*.tar.gz\*(C'\fR is transformed behind the scenes into a +full Perl regular expression, with the additional step of wrapping each +transformed wildcard metacharacter sequence in parenthesis. +.PP +In this case the input fileglob \f(CW\*(C`*.tar.gz\*(C'\fR will be transformed into +this Perl regular expression +.PP +.Vb 1 +\& ([^/]*)\e.tar\e.gz +.Ve +.PP +Wrapping with parenthesis allows the wildcard parts of the Input File +Glob to be referenced by the second parameter to \f(CW\*(C`globmap\*(C'\fR, \f(CW\*(C`#1.tgz\*(C'\fR, +the \fIOutput File Glob\fR. This parameter operates just like the replacement +part of a substitute command. The difference is that the \f(CW\*(C`#1\*(C'\fR syntax +is used to reference sub-patterns matched in the input fileglob, rather +than the \f(CW$1\fR syntax that is used with perl regular expressions. In +this case \f(CW\*(C`#1\*(C'\fR is used to refer to the text matched by the \f(CW\*(C`*\*(C'\fR in the +Input File Glob. This makes it easier to use this module where the +parameters to \f(CW\*(C`globmap\*(C'\fR are typed at the command line. +.PP +The final step involves passing each filename matched by the \f(CW\*(C`*.tar.gz\*(C'\fR +file glob through the derived Perl regular expression in turn and +expanding the output fileglob using it. +.PP +The end result of all this is a list of pairs of filenames. By default +that is what is returned by \f(CW\*(C`globmap\*(C'\fR. In this example the data structure +returned will look like this +.PP +.Vb 4 +\& ( [\*(Aqalpha.tar.gz\*(Aq => \*(Aqalpha.tgz\*(Aq], +\& [\*(Aqbeta.tar.gz\*(Aq => \*(Aqbeta.tgz\*(Aq ], +\& [\*(Aqgamma.tar.gz\*(Aq => \*(Aqgamma.tgz\*(Aq] +\& ) +.Ve +.PP +Each pair is an array reference with two elements \- namely the \fIfrom\fR +filename, that \f(CW\*(C`File::Glob\*(C'\fR has matched, and a \fIto\fR filename that is +derived from the \fIfrom\fR filename. +.SS "Limitations" +.IX Subsection "Limitations" +\&\f(CW\*(C`File::GlobMapper\*(C'\fR has been kept simple deliberately, so it isn't intended to +solve all filename mapping operations. Under the hood \f(CW\*(C`File::Glob\*(C'\fR (or for +older versions of Perl, \f(CW\*(C`File::BSDGlob\*(C'\fR) is used to match the files, so you +will never have the flexibility of full Perl regular expression. +.SS "Input File Glob" +.IX Subsection "Input File Glob" +The syntax for an Input FileGlob is identical to \f(CW\*(C`File::Glob\*(C'\fR, except +for the following +.IP "1." 5 +No nested {} +.IP "2." 5 +Whitespace does not delimit fileglobs. +.IP "3." 5 +The use of parenthesis can be used to capture parts of the input filename. +.IP "4." 5 +If an Input glob matches the same file more than once, only the first +will be used. +.PP +The syntax +.IP "\fB~\fR" 5 +.IX Item "~" +.PD 0 +.IP "\fB~user\fR" 5 +.IX Item "~user" +.IP "\fB.\fR" 5 +.IX Item "." +.PD +Matches a literal '.'. +Equivalent to the Perl regular expression +.Sp +.Vb 1 +\& \e. +.Ve +.IP "\fB*\fR" 5 +.IX Item "*" +Matches zero or more characters, except '/'. Equivalent to the Perl +regular expression +.Sp +.Vb 1 +\& [^/]* +.Ve +.IP "\fB?\fR" 5 +.IX Item "?" +Matches zero or one character, except '/'. Equivalent to the Perl +regular expression +.Sp +.Vb 1 +\& [^/]? +.Ve +.IP "\fB\e\fR" 5 +.IX Item "" +Backslash is used, as usual, to escape the next character. +.IP "\fB[]\fR" 5 +.IX Item "[]" +Character class. +.IP "\fB{,}\fR" 5 +.IX Item "{,}" +Alternation +.IP "\fB()\fR" 5 +.IX Item "()" +Capturing parenthesis that work just like perl +.PP +Any other character it taken literally. +.SS "Output File Glob" +.IX Subsection "Output File Glob" +The Output File Glob is a normal string, with 2 glob-like features. +.PP +The first is the '*' metacharacter. This will be replaced by the complete +filename matched by the input file glob. So +.PP +.Vb 1 +\& *.c *.Z +.Ve +.PP +The second is +.PP +Output FileGlobs take the +.ie n .IP """*""" 5 +.el .IP "``*''" 5 +.IX Item "*" +The \*(L"*\*(R" character will be replaced with the complete input filename. +.IP "#1" 5 +.IX Item "#1" +Patterns of the form /#\ed/ will be replaced with the +.SS "Returned Data" +.IX Subsection "Returned Data" +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "A Rename script" +.IX Subsection "A Rename script" +Below is a simple \*(L"rename\*(R" script that uses \f(CW\*(C`globmap\*(C'\fR to determine the +source and destination filenames. +.PP +.Vb 2 +\& use File::GlobMapper qw(globmap) ; +\& use File::Copy; +\& +\& die "rename: Usage rename \*(Aqfrom\*(Aq \*(Aqto\*(Aq\en" +\& unless @ARGV == 2 ; +\& +\& my $fromGlob = shift @ARGV; +\& my $toGlob = shift @ARGV; +\& +\& my $pairs = globmap($fromGlob, $toGlob) +\& or die $File::GlobMapper::Error; +\& +\& for my $pair (@$pairs) +\& { +\& my ($from, $to) = @$pair; +\& move $from => $to ; +\& } +.Ve +.PP +Here is an example that renames all c files to cpp. +.PP +.Vb 1 +\& $ rename \*(Aq*.c\*(Aq \*(Aq#1.cpp\*(Aq +.Ve +.SS "A few example globmaps" +.IX Subsection "A few example globmaps" +Below are a few examples of globmaps +.PP +To copy all your .c file to a backup directory +.PP +.Vb 1 +\& \*(Aq\*(Aq \*(Aq\*(Aq +.Ve +.PP +If you want to compress all +.PP +.Vb 1 +\& \*(Aq\*(Aq \*(Aq<*.gz>\*(Aq +.Ve +.PP +To uncompress +.PP +.Vb 1 +\& \*(Aq\*(Aq \*(Aq\*(Aq +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::Glob +.SH "AUTHOR" +.IX Header "AUTHOR" +The \fIFile::GlobMapper\fR module was written by Paul Marquess, \fIpmqs@cpan.org\fR. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005 Paul Marquess. All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3APath.3 b/data/miniconda3/man/man3/File%3A%3APath.3 new file mode 100644 index 0000000000000000000000000000000000000000..c365fdb3d48cdf8831f6b82ba0127279a584ae5f --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3APath.3 @@ -0,0 +1,775 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Path 3" +.TH File::Path 3 "2020-12-18" "perl v5.32.1" "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" +File::Path \- Create or remove directory trees +.SH "VERSION" +.IX Header "VERSION" +2.16 \- released August 31 2018. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Path qw(make_path remove_tree); +\& +\& @created = make_path(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq); +\& @created = make_path(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq, { +\& verbose => 1, +\& mode => 0711, +\& }); +\& make_path(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq, { +\& chmod => 0777, +\& }); +\& +\& $removed_count = remove_tree(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq, { +\& verbose => 1, +\& error => \emy $err_list, +\& safe => 1, +\& }); +\& +\& # legacy (interface promoted before v2.00) +\& @created = mkpath(\*(Aq/foo/bar/baz\*(Aq); +\& @created = mkpath(\*(Aq/foo/bar/baz\*(Aq, 1, 0711); +\& @created = mkpath([\*(Aq/foo/bar/baz\*(Aq, \*(Aqblurfl/quux\*(Aq], 1, 0711); +\& $removed_count = rmtree(\*(Aqfoo/bar/baz\*(Aq, 1, 1); +\& $removed_count = rmtree([\*(Aqfoo/bar/baz\*(Aq, \*(Aqblurfl/quux\*(Aq], 1, 1); +\& +\& # legacy (interface promoted before v2.06) +\& @created = mkpath(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq, { verbose => 1, mode => 0711 }); +\& $removed_count = rmtree(\*(Aqfoo/bar/baz\*(Aq, \*(Aq/zug/zwang\*(Aq, { verbose => 1, mode => 0711 }); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a convenient way to create directories of +arbitrary depth and to delete an entire directory subtree from the +filesystem. +.PP +The following functions are provided: +.ie n .IP "make_path( $dir1, $dir2, .... )" 4 +.el .IP "make_path( \f(CW$dir1\fR, \f(CW$dir2\fR, .... )" 4 +.IX Item "make_path( $dir1, $dir2, .... )" +.PD 0 +.ie n .IP "make_path( $dir1, $dir2, ...., \e%opts )" 4 +.el .IP "make_path( \f(CW$dir1\fR, \f(CW$dir2\fR, ...., \e%opts )" 4 +.IX Item "make_path( $dir1, $dir2, ...., %opts )" +.PD +The \f(CW\*(C`make_path\*(C'\fR function creates the given directories if they don't +exist before, much like the Unix command \f(CW\*(C`mkdir \-p\*(C'\fR. +.Sp +The function accepts a list of directories to be created. Its +behaviour may be tuned by an optional hashref appearing as the last +parameter on the call. +.Sp +The function returns the list of directories actually created during +the call; in scalar context the number of directories created. +.Sp +The following keys are recognised in the option hash: +.RS 4 +.ie n .IP "mode => $num" 4 +.el .IP "mode => \f(CW$num\fR" 4 +.IX Item "mode => $num" +The numeric permissions mode to apply to each created directory +(defaults to \f(CW0777\fR), to be modified by the current \f(CW\*(C`umask\*(C'\fR. If the +directory already exists (and thus does not need to be created), +the permissions will not be modified. +.Sp +\&\f(CW\*(C`mask\*(C'\fR is recognised as an alias for this parameter. +.ie n .IP "chmod => $num" 4 +.el .IP "chmod => \f(CW$num\fR" 4 +.IX Item "chmod => $num" +Takes a numeric mode to apply to each created directory (not +modified by the current \f(CW\*(C`umask\*(C'\fR). If the directory already exists +(and thus does not need to be created), the permissions will +not be modified. +.ie n .IP "verbose => $bool" 4 +.el .IP "verbose => \f(CW$bool\fR" 4 +.IX Item "verbose => $bool" +If present, will cause \f(CW\*(C`make_path\*(C'\fR to print the name of each directory +as it is created. By default nothing is printed. +.IP "error => \e$err" 4 +.IX Item "error => $err" +If present, it should be a reference to a scalar. +This scalar will be made to reference an array, which will +be used to store any errors that are encountered. See the \*(L"\s-1ERROR +HANDLING\*(R"\s0 section for more information. +.Sp +If this parameter is not used, certain error conditions may raise +a fatal error that will cause the program to halt, unless trapped +in an \f(CW\*(C`eval\*(C'\fR block. +.ie n .IP "owner => $owner" 4 +.el .IP "owner => \f(CW$owner\fR" 4 +.IX Item "owner => $owner" +.PD 0 +.ie n .IP "user => $owner" 4 +.el .IP "user => \f(CW$owner\fR" 4 +.IX Item "user => $owner" +.ie n .IP "uid => $owner" 4 +.el .IP "uid => \f(CW$owner\fR" 4 +.IX Item "uid => $owner" +.PD +If present, will cause any created directory to be owned by \f(CW$owner\fR. +If the value is numeric, it will be interpreted as a uid; otherwise a +username is assumed. An error will be issued if the username cannot be +mapped to a uid, the uid does not exist or the process lacks the +privileges to change ownership. +.Sp +Ownership of directories that already exist will not be changed. +.Sp +\&\f(CW\*(C`user\*(C'\fR and \f(CW\*(C`uid\*(C'\fR are aliases of \f(CW\*(C`owner\*(C'\fR. +.ie n .IP "group => $group" 4 +.el .IP "group => \f(CW$group\fR" 4 +.IX Item "group => $group" +If present, will cause any created directory to be owned by the group +\&\f(CW$group\fR. If the value is numeric, it will be interpreted as a gid; +otherwise a group name is assumed. An error will be issued if the +group name cannot be mapped to a gid, the gid does not exist or the +process lacks the privileges to change group ownership. +.Sp +Group ownership of directories that already exist will not be changed. +.Sp +.Vb 1 +\& make_path \*(Aq/var/tmp/webcache\*(Aq, {owner=>\*(Aqnobody\*(Aq, group=>\*(Aqnogroup\*(Aq}; +.Ve +.RE +.RS 4 +.RE +.ie n .IP "mkpath( $dir )" 4 +.el .IP "mkpath( \f(CW$dir\fR )" 4 +.IX Item "mkpath( $dir )" +.PD 0 +.ie n .IP "mkpath( $dir, $verbose, $mode )" 4 +.el .IP "mkpath( \f(CW$dir\fR, \f(CW$verbose\fR, \f(CW$mode\fR )" 4 +.IX Item "mkpath( $dir, $verbose, $mode )" +.ie n .IP "mkpath( [$dir1, $dir2,...], $verbose, $mode )" 4 +.el .IP "mkpath( [$dir1, \f(CW$dir2\fR,...], \f(CW$verbose\fR, \f(CW$mode\fR )" 4 +.IX Item "mkpath( [$dir1, $dir2,...], $verbose, $mode )" +.ie n .IP "mkpath( $dir1, $dir2,..., \e%opt )" 4 +.el .IP "mkpath( \f(CW$dir1\fR, \f(CW$dir2\fR,..., \e%opt )" 4 +.IX Item "mkpath( $dir1, $dir2,..., %opt )" +.PD +The \f(CW\*(C`mkpath()\*(C'\fR function provide the legacy interface of +\&\f(CW\*(C`make_path()\*(C'\fR with a different interpretation of the arguments +passed. The behaviour and return value of the function is otherwise +identical to \f(CW\*(C`make_path()\*(C'\fR. +.ie n .IP "remove_tree( $dir1, $dir2, .... )" 4 +.el .IP "remove_tree( \f(CW$dir1\fR, \f(CW$dir2\fR, .... )" 4 +.IX Item "remove_tree( $dir1, $dir2, .... )" +.PD 0 +.ie n .IP "remove_tree( $dir1, $dir2, ...., \e%opts )" 4 +.el .IP "remove_tree( \f(CW$dir1\fR, \f(CW$dir2\fR, ...., \e%opts )" 4 +.IX Item "remove_tree( $dir1, $dir2, ...., %opts )" +.PD +The \f(CW\*(C`remove_tree\*(C'\fR function deletes the given directories and any +files and subdirectories they might contain, much like the Unix +command \f(CW\*(C`rm \-rf\*(C'\fR or the Windows commands \f(CW\*(C`rmdir /s\*(C'\fR and \f(CW\*(C`rd /s\*(C'\fR. +.Sp +The function accepts a list of directories to be removed. (In point of fact, +it will also accept filesystem entries which are not directories, such as +regular files and symlinks. But, as its name suggests, its intent is to +remove trees rather than individual files.) +.Sp +\&\f(CW\*(C`remove_tree()\*(C'\fR's behaviour may be tuned by an optional hashref +appearing as the last parameter on the call. If an empty string is +passed to \f(CW\*(C`remove_tree\*(C'\fR, an error will occur. +.Sp +\&\fB\s-1NOTE:\s0\fR For security reasons, we strongly advise use of the +hashref-as-final-argument syntax \*(-- specifically, with a setting of the \f(CW\*(C`safe\*(C'\fR +element to a true value. +.Sp +.Vb 6 +\& remove_tree( $dir1, $dir2, ...., +\& { +\& safe => 1, +\& ... # other key\-value pairs +\& }, +\& ); +.Ve +.Sp +The function returns the number of files successfully deleted. +.Sp +The following keys are recognised in the option hash: +.RS 4 +.ie n .IP "verbose => $bool" 4 +.el .IP "verbose => \f(CW$bool\fR" 4 +.IX Item "verbose => $bool" +If present, will cause \f(CW\*(C`remove_tree\*(C'\fR to print the name of each file as +it is unlinked. By default nothing is printed. +.ie n .IP "safe => $bool" 4 +.el .IP "safe => \f(CW$bool\fR" 4 +.IX Item "safe => $bool" +When set to a true value, will cause \f(CW\*(C`remove_tree\*(C'\fR to skip the files +for which the process lacks the required privileges needed to delete +files, such as delete privileges on \s-1VMS.\s0 In other words, the code +will make no attempt to alter file permissions. Thus, if the process +is interrupted, no filesystem object will be left in a more +permissive mode. +.ie n .IP "keep_root => $bool" 4 +.el .IP "keep_root => \f(CW$bool\fR" 4 +.IX Item "keep_root => $bool" +When set to a true value, will cause all files and subdirectories +to be removed, except the initially specified directories. This comes +in handy when cleaning out an application's scratch directory. +.Sp +.Vb 1 +\& remove_tree( \*(Aq/tmp\*(Aq, {keep_root => 1} ); +.Ve +.IP "result => \e$res" 4 +.IX Item "result => $res" +If present, it should be a reference to a scalar. +This scalar will be made to reference an array, which will +be used to store all files and directories unlinked +during the call. If nothing is unlinked, the array will be empty. +.Sp +.Vb 2 +\& remove_tree( \*(Aq/tmp\*(Aq, {result => \emy $list} ); +\& print "unlinked $_\en" for @$list; +.Ve +.Sp +This is a useful alternative to the \f(CW\*(C`verbose\*(C'\fR key. +.IP "error => \e$err" 4 +.IX Item "error => $err" +If present, it should be a reference to a scalar. +This scalar will be made to reference an array, which will +be used to store any errors that are encountered. See the \*(L"\s-1ERROR +HANDLING\*(R"\s0 section for more information. +.Sp +Removing things is a much more dangerous proposition than +creating things. As such, there are certain conditions that +\&\f(CW\*(C`remove_tree\*(C'\fR may encounter that are so dangerous that the only +sane action left is to kill the program. +.Sp +Use \f(CW\*(C`error\*(C'\fR to trap all that is reasonable (problems with +permissions and the like), and let it die if things get out +of hand. This is the safest course of action. +.RE +.RS 4 +.RE +.ie n .IP "rmtree( $dir )" 4 +.el .IP "rmtree( \f(CW$dir\fR )" 4 +.IX Item "rmtree( $dir )" +.PD 0 +.ie n .IP "rmtree( $dir, $verbose, $safe )" 4 +.el .IP "rmtree( \f(CW$dir\fR, \f(CW$verbose\fR, \f(CW$safe\fR )" 4 +.IX Item "rmtree( $dir, $verbose, $safe )" +.ie n .IP "rmtree( [$dir1, $dir2,...], $verbose, $safe )" 4 +.el .IP "rmtree( [$dir1, \f(CW$dir2\fR,...], \f(CW$verbose\fR, \f(CW$safe\fR )" 4 +.IX Item "rmtree( [$dir1, $dir2,...], $verbose, $safe )" +.ie n .IP "rmtree( $dir1, $dir2,..., \e%opt )" 4 +.el .IP "rmtree( \f(CW$dir1\fR, \f(CW$dir2\fR,..., \e%opt )" 4 +.IX Item "rmtree( $dir1, $dir2,..., %opt )" +.PD +The \f(CW\*(C`rmtree()\*(C'\fR function provide the legacy interface of +\&\f(CW\*(C`remove_tree()\*(C'\fR with a different interpretation of the arguments +passed. The behaviour and return value of the function is otherwise +identical to \f(CW\*(C`remove_tree()\*(C'\fR. +.Sp +\&\fB\s-1NOTE:\s0\fR For security reasons, we strongly advise use of the +hashref-as-final-argument syntax, specifically with a setting of the \f(CW\*(C`safe\*(C'\fR +element to a true value. +.Sp +.Vb 6 +\& rmtree( $dir1, $dir2, ...., +\& { +\& safe => 1, +\& ... # other key\-value pairs +\& }, +\& ); +.Ve +.SS "\s-1ERROR HANDLING\s0" +.IX Subsection "ERROR HANDLING" +.IP "\fB\s-1NOTE:\s0\fR" 4 +.IX Item "NOTE:" +The following error handling mechanism is consistent throughout all +code paths \s-1EXCEPT\s0 in cases where the \s-1ROOT\s0 node is nonexistent. In +version 2.11 the maintainers attempted to rectify this inconsistency +but too many downstream modules encountered problems. In such case, +if you require root node evaluation or error checking prior to calling +\&\f(CW\*(C`make_path\*(C'\fR or \f(CW\*(C`remove_tree\*(C'\fR, you should take additional precautions. +.PP +If \f(CW\*(C`make_path\*(C'\fR or \f(CW\*(C`remove_tree\*(C'\fR encounters an error, a diagnostic +message will be printed to \f(CW\*(C`STDERR\*(C'\fR via \f(CW\*(C`carp\*(C'\fR (for non-fatal +errors) or via \f(CW\*(C`croak\*(C'\fR (for fatal errors). +.PP +If this behaviour is not desirable, the \f(CW\*(C`error\*(C'\fR attribute may be +used to hold a reference to a variable, which will be used to store +the diagnostics. The variable is made a reference to an array of hash +references. Each hash contain a single key/value pair where the key +is the name of the file, and the value is the error message (including +the contents of \f(CW$!\fR when appropriate). If a general error is +encountered the diagnostic key will be empty. +.PP +An example usage looks like: +.PP +.Vb 10 +\& remove_tree( \*(Aqfoo/bar\*(Aq, \*(Aqbar/rat\*(Aq, {error => \emy $err} ); +\& if ($err && @$err) { +\& for my $diag (@$err) { +\& my ($file, $message) = %$diag; +\& if ($file eq \*(Aq\*(Aq) { +\& print "general error: $message\en"; +\& } +\& else { +\& print "problem unlinking $file: $message\en"; +\& } +\& } +\& } +\& else { +\& print "No error encountered\en"; +\& } +.Ve +.PP +Note that if no errors are encountered, \f(CW$err\fR will reference an +empty array. This means that \f(CW$err\fR will always end up \s-1TRUE\s0; so you +need to test \f(CW@$err\fR to determine if errors occurred. +.SS "\s-1NOTES\s0" +.IX Subsection "NOTES" +\&\f(CW\*(C`File::Path\*(C'\fR blindly exports \f(CW\*(C`mkpath\*(C'\fR and \f(CW\*(C`rmtree\*(C'\fR into the +current namespace. These days, this is considered bad style, but +to change it now would break too much code. Nonetheless, you are +invited to specify what it is you are expecting to use: +.PP +.Vb 1 +\& use File::Path \*(Aqrmtree\*(Aq; +.Ve +.PP +The routines \f(CW\*(C`make_path\*(C'\fR and \f(CW\*(C`remove_tree\*(C'\fR are \fBnot\fR exported +by default. You must specify which ones you want to use. +.PP +.Vb 1 +\& use File::Path \*(Aqremove_tree\*(Aq; +.Ve +.PP +Note that a side-effect of the above is that \f(CW\*(C`mkpath\*(C'\fR and \f(CW\*(C`rmtree\*(C'\fR +are no longer exported at all. This is due to the way the \f(CW\*(C`Exporter\*(C'\fR +module works. If you are migrating a codebase to use the new +interface, you will have to list everything explicitly. But that's +just good practice anyway. +.PP +.Vb 1 +\& use File::Path qw(remove_tree rmtree); +.Ve +.PP +\fI\s-1API CHANGES\s0\fR +.IX Subsection "API CHANGES" +.PP +The \s-1API\s0 was changed in the 2.0 branch. For a time, \f(CW\*(C`mkpath\*(C'\fR and +\&\f(CW\*(C`rmtree\*(C'\fR tried, unsuccessfully, to deal with the two different +calling mechanisms. This approach was considered a failure. +.PP +The new semantics are now only available with \f(CW\*(C`make_path\*(C'\fR and +\&\f(CW\*(C`remove_tree\*(C'\fR. The old semantics are only available through +\&\f(CW\*(C`mkpath\*(C'\fR and \f(CW\*(C`rmtree\*(C'\fR. Users are strongly encouraged to upgrade +to at least 2.08 in order to avoid surprises. +.PP +\fI\s-1SECURITY CONSIDERATIONS\s0\fR +.IX Subsection "SECURITY CONSIDERATIONS" +.PP +There were race conditions in the 1.x implementations of File::Path's +\&\f(CW\*(C`rmtree\*(C'\fR function (although sometimes patched depending on the \s-1OS\s0 +distribution or platform). The 2.0 version contains code to avoid the +problem mentioned in \s-1CVE\-2002\-0435.\s0 +.PP +See the following pages for more information: +.PP +.Vb 3 +\& http://bugs.debian.org/cgi\-bin/bugreport.cgi?bug=286905 +\& http://www.nntp.perl.org/group/perl.perl5.porters/2005/01/msg97623.html +\& http://www.debian.org/security/2005/dsa\-696 +.Ve +.PP +Additionally, unless the \f(CW\*(C`safe\*(C'\fR parameter is set (or the +third parameter in the traditional interface is \s-1TRUE\s0), should a +\&\f(CW\*(C`remove_tree\*(C'\fR be interrupted, files that were originally in read-only +mode may now have their permissions set to a read-write (or \*(L"delete +\&\s-1OK\*(R"\s0) mode. +.PP +The following \s-1CVE\s0 reports were previously filed against File-Path and are +believed to have been addressed: +.IP "\(bu" 4 + +.IP "\(bu" 4 + +.PP +In February 2017 the cPanel Security Team reported an additional vulnerability +in File-Path. The \f(CW\*(C`chmod()\*(C'\fR logic to make directories traversable can be +abused to set the mode on an attacker-chosen file to an attacker-chosen value. +This is due to the time-of-check-to-time-of-use (\s-1TOCTTOU\s0) race condition +() between the +\&\f(CW\*(C`stat()\*(C'\fR that decides the inode is a directory and the \f(CW\*(C`chmod()\*(C'\fR that tries +to make it user-rwx. \s-1CPAN\s0 versions 2.13 and later incorporate a patch +provided by John Lightsey to address this problem. This vulnerability has +been reported as \s-1CVE\-2017\-6512.\s0 +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +\&\s-1FATAL\s0 errors will cause the program to halt (\f(CW\*(C`croak\*(C'\fR), since the +problem is so severe that it would be dangerous to continue. (This +can always be trapped with \f(CW\*(C`eval\*(C'\fR, but it's not a good idea. Under +the circumstances, dying is the best thing to do). +.PP +\&\s-1SEVERE\s0 errors may be trapped using the modern interface. If the +they are not trapped, or if the old interface is used, such an error +will cause the program will halt. +.PP +All other errors may be trapped using the modern interface, otherwise +they will be \f(CW\*(C`carp\*(C'\fRed about. Program execution will not be halted. +.IP "mkdir [path]: [errmsg] (\s-1SEVERE\s0)" 4 +.IX Item "mkdir [path]: [errmsg] (SEVERE)" +\&\f(CW\*(C`make_path\*(C'\fR was unable to create the path. Probably some sort of +permissions error at the point of departure or insufficient resources +(such as free inodes on Unix). +.IP "No root path(s) specified" 4 +.IX Item "No root path(s) specified" +\&\f(CW\*(C`make_path\*(C'\fR was not given any paths to create. This message is only +emitted if the routine is called with the traditional interface. +The modern interface will remain silent if given nothing to do. +.IP "No such file or directory" 4 +.IX Item "No such file or directory" +On Windows, if \f(CW\*(C`make_path\*(C'\fR gives you this warning, it may mean that +you have exceeded your filesystem's maximum path length. +.IP "cannot fetch initial working directory: [errmsg]" 4 +.IX Item "cannot fetch initial working directory: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to determine the initial directory by calling +\&\f(CW\*(C`Cwd::getcwd\*(C'\fR, but the call failed for some reason. No attempt +will be made to delete anything. +.IP "cannot stat initial working directory: [errmsg]" 4 +.IX Item "cannot stat initial working directory: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to stat the initial directory (after having +successfully obtained its name via \f(CW\*(C`getcwd\*(C'\fR), however, the call +failed for some reason. No attempt will be made to delete anything. +.IP "cannot chdir to [dir]: [errmsg]" 4 +.IX Item "cannot chdir to [dir]: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to set the working directory in order to +begin deleting the objects therein, but was unsuccessful. This is +usually a permissions issue. The routine will continue to delete +other things, but this directory will be left intact. +.IP "directory [dir] changed before chdir, expected dev=[n] ino=[n], actual dev=[n] ino=[n], aborting. (\s-1FATAL\s0)" 4 +.IX Item "directory [dir] changed before chdir, expected dev=[n] ino=[n], actual dev=[n] ino=[n], aborting. (FATAL)" +\&\f(CW\*(C`remove_tree\*(C'\fR recorded the device and inode of a directory, and then +moved into it. It then performed a \f(CW\*(C`stat\*(C'\fR on the current directory +and detected that the device and inode were no longer the same. As +this is at the heart of the race condition problem, the program +will die at this point. +.IP "cannot make directory [dir] read+writeable: [errmsg]" 4 +.IX Item "cannot make directory [dir] read+writeable: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to change the permissions on the current directory +to ensure that subsequent unlinkings would not run into problems, +but was unable to do so. The permissions remain as they were, and +the program will carry on, doing the best it can. +.IP "cannot read [dir]: [errmsg]" 4 +.IX Item "cannot read [dir]: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR tried to read the contents of the directory in order +to acquire the names of the directory entries to be unlinked, but +was unsuccessful. This is usually a permissions issue. The +program will continue, but the files in this directory will remain +after the call. +.IP "cannot reset chmod [dir]: [errmsg]" 4 +.IX Item "cannot reset chmod [dir]: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR, after having deleted everything in a directory, attempted +to restore its permissions to the original state but failed. The +directory may wind up being left behind. +.IP "cannot remove [dir] when cwd is [dir]" 4 +.IX Item "cannot remove [dir] when cwd is [dir]" +The current working directory of the program is \fI/some/path/to/here\fR +and you are attempting to remove an ancestor, such as \fI/some/path\fR. +The directory tree is left untouched. +.Sp +The solution is to \f(CW\*(C`chdir\*(C'\fR out of the child directory to a place +outside the directory tree to be removed. +.IP "cannot chdir to [parent\-dir] from [child\-dir]: [errmsg], aborting. (\s-1FATAL\s0)" 4 +.IX Item "cannot chdir to [parent-dir] from [child-dir]: [errmsg], aborting. (FATAL)" +\&\f(CW\*(C`remove_tree\*(C'\fR, after having deleted everything and restored the permissions +of a directory, was unable to chdir back to the parent. The program +halts to avoid a race condition from occurring. +.IP "cannot stat prior working directory [dir]: [errmsg], aborting. (\s-1FATAL\s0)" 4 +.IX Item "cannot stat prior working directory [dir]: [errmsg], aborting. (FATAL)" +\&\f(CW\*(C`remove_tree\*(C'\fR was unable to stat the parent directory after having returned +from the child. Since there is no way of knowing if we returned to +where we think we should be (by comparing device and inode) the only +way out is to \f(CW\*(C`croak\*(C'\fR. +.IP "previous directory [parent\-dir] changed before entering [child\-dir], expected dev=[n] ino=[n], actual dev=[n] ino=[n], aborting. (\s-1FATAL\s0)" 4 +.IX Item "previous directory [parent-dir] changed before entering [child-dir], expected dev=[n] ino=[n], actual dev=[n] ino=[n], aborting. (FATAL)" +When \f(CW\*(C`remove_tree\*(C'\fR returned from deleting files in a child directory, a +check revealed that the parent directory it returned to wasn't the one +it started out from. This is considered a sign of malicious activity. +.IP "cannot make directory [dir] writeable: [errmsg]" 4 +.IX Item "cannot make directory [dir] writeable: [errmsg]" +Just before removing a directory (after having successfully removed +everything it contained), \f(CW\*(C`remove_tree\*(C'\fR attempted to set the permissions +on the directory to ensure it could be removed and failed. Program +execution continues, but the directory may possibly not be deleted. +.IP "cannot remove directory [dir]: [errmsg]" 4 +.IX Item "cannot remove directory [dir]: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to remove a directory, but failed. This may be because +some objects that were unable to be removed remain in the directory, or +it could be a permissions issue. The directory will be left behind. +.IP "cannot restore permissions of [dir] to [0nnn]: [errmsg]" 4 +.IX Item "cannot restore permissions of [dir] to [0nnn]: [errmsg]" +After having failed to remove a directory, \f(CW\*(C`remove_tree\*(C'\fR was unable to +restore its permissions from a permissive state back to a possibly +more restrictive setting. (Permissions given in octal). +.IP "cannot make file [file] writeable: [errmsg]" 4 +.IX Item "cannot make file [file] writeable: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR attempted to force the permissions of a file to ensure it +could be deleted, but failed to do so. It will, however, still attempt +to unlink the file. +.IP "cannot unlink file [file]: [errmsg]" 4 +.IX Item "cannot unlink file [file]: [errmsg]" +\&\f(CW\*(C`remove_tree\*(C'\fR failed to remove a file. Probably a permissions issue. +.IP "cannot restore permissions of [file] to [0nnn]: [errmsg]" 4 +.IX Item "cannot restore permissions of [file] to [0nnn]: [errmsg]" +After having failed to remove a file, \f(CW\*(C`remove_tree\*(C'\fR was also unable +to restore the permissions on the file to a possibly less permissive +setting. (Permissions given in octal). +.IP "unable to map [owner] to a uid, ownership not changed"");" 4 +.IX Item "unable to map [owner] to a uid, ownership not changed"");" +\&\f(CW\*(C`make_path\*(C'\fR was instructed to give the ownership of created +directories to the symbolic name [owner], but \f(CW\*(C`getpwnam\*(C'\fR did +not return the corresponding numeric uid. The directory will +be created, but ownership will not be changed. +.IP "unable to map [group] to a gid, group ownership not changed" 4 +.IX Item "unable to map [group] to a gid, group ownership not changed" +\&\f(CW\*(C`make_path\*(C'\fR was instructed to give the group ownership of created +directories to the symbolic name [group], but \f(CW\*(C`getgrnam\*(C'\fR did +not return the corresponding numeric gid. The directory will +be created, but group ownership will not be changed. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\(bu" 4 +File::Remove +.Sp +Allows files and directories to be moved to the Trashcan/Recycle +Bin (where they may later be restored if necessary) if the operating +system supports such functionality. This feature may one day be +made available directly in \f(CW\*(C`File::Path\*(C'\fR. +.IP "\(bu" 4 +File::Find::Rule +.Sp +When removing directory trees, if you want to examine each file to +decide whether to delete it (and possibly leaving large swathes +alone), \fIFile::Find::Rule\fR offers a convenient and flexible approach +to examining directory trees. +.SH "BUGS AND LIMITATIONS" +.IX Header "BUGS AND LIMITATIONS" +The following describes \fIFile::Path\fR limitations and how to report bugs. +.SS "\s-1MULTITHREADED APPLICATIONS\s0" +.IX Subsection "MULTITHREADED APPLICATIONS" +\&\fIFile::Path\fR \f(CW\*(C`rmtree\*(C'\fR and \f(CW\*(C`remove_tree\*(C'\fR will not work with +multithreaded applications due to its use of \f(CW\*(C`chdir\*(C'\fR. At this time, +no warning or error is generated in this situation. You will +certainly encounter unexpected results. +.PP +The implementation that surfaces this limitation will not be changed. See the +\&\fIFile::Path::Tiny\fR module for functionality similar to \fIFile::Path\fR but which does +not \f(CW\*(C`chdir\*(C'\fR. +.SS "\s-1NFS\s0 Mount Points" +.IX Subsection "NFS Mount Points" +\&\fIFile::Path\fR is not responsible for triggering the automounts, mirror mounts, +and the contents of network mounted filesystems. If your \s-1NFS\s0 implementation +requires an action to be performed on the filesystem in order for +\&\fIFile::Path\fR to perform operations, it is strongly suggested you assure +filesystem availability by reading the root of the mounted filesystem. +.SS "\s-1REPORTING BUGS\s0" +.IX Subsection "REPORTING BUGS" +Please report all bugs on the \s-1RT\s0 queue, either via the web interface: +.PP + +.PP +or by email: +.PP +.Vb 1 +\& bug\-File\-Path@rt.cpan.org +.Ve +.PP +In either case, please \fBattach\fR patches to the bug report rather than +including them inline in the web post or the body of the email. +.PP +You can also send pull requests to the Github repository: +.PP + +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Paul Szabo identified the race condition originally, and Brendan +O'Dea wrote an implementation for Debian that addressed the problem. +That code was used as a basis for the current code. Their efforts +are greatly appreciated. +.PP +Gisle Aas made a number of improvements to the documentation for +2.07 and his advice and assistance is also greatly appreciated. +.SH "AUTHORS" +.IX Header "AUTHORS" +Prior authors and maintainers: Tim Bunce, Charles Bailey, and +David Landgren <\fIdavid@landgren.net\fR>. +.PP +Current maintainers are Richard Elberger <\fIriche@cpan.org\fR> and +James (Jim) Keenan <\fIjkeenan@cpan.org\fR>. +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +Contributors to File::Path, in alphabetical order by first name. +.IP "<\fIbulkdd@cpan.org\fR>" 1 +.IX Item "" +.PD 0 +.IP "Charlie Gonzalez <\fIitcharlie@cpan.org\fR>" 1 +.IX Item "Charlie Gonzalez " +.IP "Craig A. Berry <\fIcraigberry@mac.com\fR>" 1 +.IX Item "Craig A. Berry " +.IP "James E Keenan <\fIjkeenan@cpan.org\fR>" 1 +.IX Item "James E Keenan " +.IP "John Lightsey <\fIjohn@perlsec.org\fR>" 1 +.IX Item "John Lightsey " +.IP "Nigel Horne <\fInjh@bandsman.co.uk\fR>" 1 +.IX Item "Nigel Horne " +.IP "Richard Elberger <\fIriche@cpan.org\fR>" 1 +.IX Item "Richard Elberger " +.IP "Ryan Yee <\fIryee@cpan.org\fR>" 1 +.IX Item "Ryan Yee " +.IP "Skye Shaw <\fIshaw@cpan.org\fR>" 1 +.IX Item "Skye Shaw " +.IP "Tom Lutz <\fItommylutz@gmail.com\fR>" 1 +.IX Item "Tom Lutz " +.IP "Will Sheppard <\fIwillsheppard@github\fR>" 1 +.IX Item "Will Sheppard " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This module is copyright (C) Charles Bailey, Tim Bunce, David Landgren, +James Keenan and Richard Elberger 1995\-2018. All rights reserved. +.SH "LICENSE" +.IX Header "LICENSE" +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AAmigaOS.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AAmigaOS.3 new file mode 100644 index 0000000000000000000000000000000000000000..9e2ad50b55648eeb757261e46edc2e35cdc5b90e --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AAmigaOS.3 @@ -0,0 +1,162 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::AmigaOS 3" +.TH File::Spec::AmigaOS 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::AmigaOS \- File::Spec for AmigaOS +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& require File::Spec::AmigaOS; # Done automatically by File::Spec +\& # if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Methods for manipulating file specifications. +.SH "METHODS" +.IX Header "METHODS" +.IP "tmpdir" 2 +.IX Item "tmpdir" +Returns \f(CW$ENV\fR{\s-1TMPDIR\s0} or if that is unset, \*(L"/t\*(R". +.IP "file_name_is_absolute" 2 +.IX Item "file_name_is_absolute" +Returns true if there's a colon in the file name, +or if it begins with a slash. +.PP +All the other methods are from File::Spec::Unix. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3ACygwin.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3ACygwin.3 new file mode 100644 index 0000000000000000000000000000000000000000..c08fdb5ab725cf7fc2b2a62ac65f9b2d07409125 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3ACygwin.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Cygwin 3" +.TH File::Spec::Cygwin 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::Cygwin \- methods for Cygwin file specs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::Cygwin; # Done internally by File::Spec if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. +.PP +This module is still in beta. Cygwin-knowledgeable folks are invited +to offer patches and suggestions. +.IP "canonpath" 4 +.IX Item "canonpath" +Any \f(CW\*(C`\e\*(C'\fR (backslashes) are converted to \f(CW\*(C`/\*(C'\fR (forward slashes), +and then File::Spec::Unix \fBcanonpath()\fR is called on the result. +.IP "file_name_is_absolute" 4 +.IX Item "file_name_is_absolute" +True is returned if the file name begins with \f(CW\*(C`drive_letter:\*(C'\fR, +and if not, File::Spec::Unix \fBfile_name_is_absolute()\fR is called. +.IP "tmpdir (override)" 4 +.IX Item "tmpdir (override)" +Returns a string representation of the first existing directory +from the following list: +.Sp +.Vb 5 +\& $ENV{TMPDIR} +\& /tmp +\& $ENV{\*(AqTMP\*(Aq} +\& $ENV{\*(AqTEMP\*(Aq} +\& C:/temp +.Ve +.Sp +If running under taint mode, and if the environment +variables are tainted, they are not used. +.IP "case_tolerant" 4 +.IX Item "case_tolerant" +Override Unix. Cygwin case-tolerance depends on managed mount settings and +as with MsWin32 on \fBGetVolumeInformation()\fR \f(CW$ouFsFlags\fR == \s-1FS_CASE_SENSITIVE,\s0 +indicating the case significance when comparing file specifications. +Default: 1 +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AFunctions.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AFunctions.3 new file mode 100644 index 0000000000000000000000000000000000000000..b85a9d94057deb4305f08e4b02f752ce352a827f --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AFunctions.3 @@ -0,0 +1,197 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Functions 3" +.TH File::Spec::Functions 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::Functions \- portably perform operations on file names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use File::Spec::Functions; +\& $x = catfile(\*(Aqa\*(Aq,\*(Aqb\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module exports convenience functions for all of the class methods +provided by File::Spec. +.PP +For a reference of available functions, please consult File::Spec::Unix, +which contains the entire set, and which is inherited by the modules for +other platforms. For further information, please see File::Spec::Mac, +File::Spec::OS2, File::Spec::Win32, or File::Spec::VMS. +.SS "Exports" +.IX Subsection "Exports" +The following functions are exported by default. +.PP +.Vb 9 +\& canonpath +\& catdir +\& catfile +\& curdir +\& rootdir +\& updir +\& no_upwards +\& file_name_is_absolute +\& path +.Ve +.PP +The following functions are exported only by request. +.PP +.Vb 8 +\& devnull +\& tmpdir +\& splitpath +\& splitdir +\& catpath +\& abs2rel +\& rel2abs +\& case_tolerant +.Ve +.PP +All the functions may be imported using the \f(CW\*(C`:ALL\*(C'\fR tag. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::Spec, File::Spec::Unix, File::Spec::Mac, File::Spec::OS2, +File::Spec::Win32, File::Spec::VMS, ExtUtils::MakeMaker diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AMac.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AMac.3 new file mode 100644 index 0000000000000000000000000000000000000000..5426bd92895688f6adcc0e7a36b93766a6af1251 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AMac.3 @@ -0,0 +1,535 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "2020-12-18" "perl v5.32.1" "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" +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 "\fBcatdir()\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). Automatically +puts a trailing \*(L":\*(R" on the end of the complete path, because that's what's +done in MacPerl's environment and helps to distinguish a file path from a +directory path. +.Sp +\&\fB\s-1IMPORTANT NOTE:\s0\fR Beginning with version 1.3 of this module, the resulting +path is relative by default and \fInot\fR absolute. This decision was made due +to portability reasons. Since \f(CW\*(C`File::Spec\->catdir()\*(C'\fR returns relative paths +on all other operating systems, it will now also follow this convention on Mac +\&\s-1OS.\s0 Note that this may break some existing scripts. +.Sp +The intended purpose of this routine is to concatenate \fIdirectory names\fR. +But because of the nature of Macintosh paths, some additional possibilities +are allowed to make using this routine give reasonable results for some +common 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"). +.Sp +So, beside calls like +.Sp +.Vb 3 +\& catdir("a") = ":a:" +\& catdir("a","b") = ":a:b:" +\& catdir() = "" (special case) +.Ve +.Sp +calls 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 +.Sp +are allowed. +.Sp +Here are the rules that are used in \f(CW\*(C`catdir()\*(C'\fR; note that we try to be as +compatible as possible to Unix: +.RS 2 +.IP "1." 2 +The resulting path is relative by default, i.e. the resulting path will have a +leading colon. +.IP "2." 2 +A trailing colon is added automatically to the resulting path, to denote a +directory. +.IP "3." 2 +Generally, each argument has one leading \*(L":\*(R" and one trailing \*(L":\*(R" +removed (if any). They are then joined together by a \*(L":\*(R". Special +treatment 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." 2 +When an updir path like \*(L":::lib::\*(R" is passed as argument, the number +of directories to climb up is handled correctly, not removing leading +or 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." 2 +Adding a colon \*(L":\*(R" or empty string "" to a path at \fIany\fR position +doesn'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 +\&\*(L"\fBcanonpath()\fR\*(R" in File::Spec::Unix ). 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." 2 +If the first argument is an empty string "" or is a volume name, i.e. matches +the pattern /^[^:]+:/, the resulting path is \fBabsolute\fR. +.IP "7." 2 +Passing an empty string "" as the first argument to \f(CW\*(C`catdir()\*(C'\fR is +like 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 +.Sp +This 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 startup +volume, which is the closest in concept to Unix' \*(L"/\*(R". This should help +to run existing scripts originally written for Unix. +.IP "8." 2 +For absolute paths, some cleanup is done, to ensure that the volume +name isn't immediately followed by updirs. This is invalid, because +this would go beyond \*(L"root\*(R". Generally, these cases are handled like +their 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 +.Sp +However, this approach is limited to the first arguments following +\&\*(L"root\*(R" (again, see \*(L"\fBcanonpath()\fR\*(R" in File::Spec::Unix. If there are more +arguments that move up the directory tree, an invalid path going +beyond root can be created. +.RE +.RS 2 +.Sp +As you've seen, you can force \f(CW\*(C`catdir()\*(C'\fR to create an absolute path +by passing either an empty string or a path that begins with a volume +name as the first argument. However, you are strongly encouraged not +to do so, since this is done only for backward compatibility. Newer +versions of File::Spec come with a method called \f(CW\*(C`catpath()\*(C'\fR (see +below), that is designed to offer a portable solution for the creation +of absolute paths. It takes volume, directory and file portions and +returns an entire path. While \f(CW\*(C`catdir()\*(C'\fR is still suitable for the +concatenation of \fIdirectory names\fR, you are encouraged to use +\&\f(CW\*(C`catpath()\*(C'\fR to concatenate \fIvolume names\fR and \fIdirectory +paths\fR. E.g. +.Sp +.Vb 2 +\& $dir = File::Spec\->catdir("tmp","sources"); +\& $abs_path = File::Spec\->catpath("MacintoshHD:", $dir,""); +.Ve +.Sp +yields +.Sp +.Vb 1 +\& "MacintoshHD:tmp:sources:" . +.Ve +.RE +.IP "catfile" 2 +.IX Item "catfile" +Concatenate one or more directory names and a filename to form a +complete path ending with a filename. Resulting paths are \fBrelative\fR +by default, but can be forced to be absolute (but avoid this). +.Sp +\&\fB\s-1IMPORTANT NOTE:\s0\fR Beginning with version 1.3 of this module, the +resulting path is relative by default and \fInot\fR absolute. This +decision was made due to portability reasons. Since +\&\f(CW\*(C`File::Spec\->catfile()\*(C'\fR returns relative paths on all other +operating systems, it will now also follow this convention on Mac \s-1OS.\s0 +Note that this may break some existing scripts. +.Sp +The last argument is always considered to be the file portion. Since +\&\f(CW\*(C`catfile()\*(C'\fR uses \f(CW\*(C`catdir()\*(C'\fR (see above) for the concatenation of the +directory portions (if any), the following with regard to relative and +absolute paths is true: +.Sp +.Vb 2 +\& catfile("") = "" +\& catfile("file") = "file" +.Ve +.Sp +but +.Sp +.Vb 3 +\& catfile("","") = rootdir() # (e.g. "HD:") +\& catfile("","file") = rootdir() . file # (e.g. "HD:file") +\& catfile("HD:","file") = "HD:file" +.Ve +.Sp +This means that \f(CW\*(C`catdir()\*(C'\fR is called only when there are two or more +arguments, as one might expect. +.Sp +Note that the leading \*(L":\*(R" is removed from the filename, so that +.Sp +.Vb 1 +\& catfile("a","b","file") = ":a:b:file" and +\& +\& catfile("a","b",":file") = ":a:b:file" +.Ve +.Sp +give the same answer. +.Sp +To concatenate \fIvolume names\fR, \fIdirectory paths\fR and \fIfilenames\fR, +you are encouraged to use \f(CW\*(C`catpath()\*(C'\fR (see below). +.IP "curdir" 2 +.IX Item "curdir" +Returns a string representing the current directory. On Mac \s-1OS,\s0 this is \*(L":\*(R". +.IP "devnull" 2 +.IX Item "devnull" +Returns a string representing the null device. On Mac \s-1OS,\s0 this is \*(L"Dev:Null\*(R". +.IP "rootdir" 2 +.IX Item "rootdir" +Returns the empty string. Mac \s-1OS\s0 has no real root directory. +.IP "tmpdir" 2 +.IX Item "tmpdir" +Returns the contents of \f(CW$ENV\fR{\s-1TMPDIR\s0}, if that directory exits or the +current working directory otherwise. Under MacPerl, \f(CW$ENV\fR{\s-1TMPDIR\s0} will +contain a path like \*(L"MacintoshHD:Temporary Items:\*(R", which is a hidden +directory on your startup volume. +.IP "updir" 2 +.IX Item "updir" +Returns a string representing the parent directory. On Mac \s-1OS,\s0 this is \*(L"::\*(R". +.IP "file_name_is_absolute" 2 +.IX Item "file_name_is_absolute" +Takes as argument a path and returns true, if it is an absolute path. +If the path has a leading \*(L":\*(R", it's a relative path. Otherwise, it's an +absolute path, unless the path doesn't contain any colons, i.e. it's a name +like \*(L"a\*(R". In this particular case, the path is considered to be relative +(i.e. it is considered to be a filename). Use \*(L":\*(R" in the appropriate place +in the path if you want to distinguish unambiguously. As a special case, +the filename '' is always considered to be absolute. Note that with version +1.2 of File::Spec::Mac, this does no longer consult the local filesystem. +.Sp +E.g. +.Sp +.Vb 5 +\& File::Spec\->file_name_is_absolute("a"); # false (relative) +\& File::Spec\->file_name_is_absolute(":a:b:"); # false (relative) +\& File::Spec\->file_name_is_absolute("MacintoshHD:"); +\& # true (absolute) +\& File::Spec\->file_name_is_absolute(""); # true (absolute) +.Ve +.IP "path" 2 +.IX Item "path" +Returns the null list for the MacPerl application, since the concept is +usually meaningless under Mac \s-1OS.\s0 But if you're using the MacPerl tool under +\&\s-1MPW,\s0 it gives back \f(CW$ENV\fR{Commands} suitably split, as is done in +:lib:ExtUtils:MM_Mac.pm. +.IP "splitpath" 2 +.IX Item "splitpath" +.Vb 3 +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path ); +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path, +\& $no_file ); +.Ve +.Sp +Splits a path into volume, directory, and filename portions. +.Sp +On Mac \s-1OS,\s0 assumes that the last part of the path is a filename unless +\&\f(CW$no_file\fR is true or a trailing separator \*(L":\*(R" is present. +.Sp +The volume portion is always returned with a trailing \*(L":\*(R". The directory portion +is always returned with a leading (to denote a relative path) and a trailing \*(L":\*(R" +(to denote a directory). The file portion is always returned \fIwithout\fR a leading \*(L":\*(R". +Empty portions are returned as empty string ''. +.Sp +The results can be passed to \f(CW\*(C`catpath()\*(C'\fR to get back a path equivalent to +(usually identical to) the original path. +.IP "splitdir" 2 +.IX Item "splitdir" +The opposite of \f(CW\*(C`catdir()\*(C'\fR. +.Sp +.Vb 1 +\& @dirs = File::Spec\->splitdir( $directories ); +.Ve +.Sp +\&\f(CW$directories\fR should be only the directory portion of the path on systems +that have the concept of a volume or that have path syntax that differentiates +files from directories. Consider using \f(CW\*(C`splitpath()\*(C'\fR otherwise. +.Sp +Unlike just splitting the directories on the separator, empty directory names +(\f(CW""\fR) can be returned. Since \f(CW\*(C`catdir()\*(C'\fR on Mac \s-1OS\s0 always appends a trailing +colon to distinguish a directory path from a file path, a single trailing colon +will be ignored, i.e. there's no empty directory name after it. +.Sp +Hence, on Mac \s-1OS,\s0 both +.Sp +.Vb 2 +\& File::Spec\->splitdir( ":a:b::c:" ); and +\& File::Spec\->splitdir( ":a:b::c" ); +.Ve +.Sp +yield: +.Sp +.Vb 1 +\& ( "a", "b", "::", "c") +.Ve +.Sp +while +.Sp +.Vb 1 +\& File::Spec\->splitdir( ":a:b::c::" ); +.Ve +.Sp +yields: +.Sp +.Vb 1 +\& ( "a", "b", "::", "c", "::") +.Ve +.IP "catpath" 2 +.IX Item "catpath" +.Vb 1 +\& $path = File::Spec\->catpath($volume,$directory,$file); +.Ve +.Sp +Takes volume, directory and file portions and returns an entire path. On Mac \s-1OS,\s0 +\&\f(CW$volume\fR, \f(CW$directory\fR and \f(CW$file\fR are concatenated. A ':' is inserted if need be. You +may pass an empty string for each portion. If all portions are empty, the empty +string is returned. If \f(CW$volume\fR is empty, the result will be a relative path, +beginning with a ':'. If \f(CW$volume\fR and \f(CW$directory\fR are empty, a leading \*(L":\*(R" (if any) +is removed form \f(CW$file\fR and the remainder is returned. If \f(CW$file\fR is empty, the +resulting path will have a trailing ':'. +.IP "abs2rel" 2 +.IX Item "abs2rel" +Takes a destination path and an optional base path and returns a relative path +from the base path to the destination path: +.Sp +.Vb 2 +\& $rel_path = File::Spec\->abs2rel( $path ) ; +\& $rel_path = File::Spec\->abs2rel( $path, $base ) ; +.Ve +.Sp +Note that both paths are assumed to have a notation that distinguishes a +directory path (with trailing ':') from a file path (without trailing ':'). +.Sp +If \f(CW$base\fR is not present or '', then the current working directory is used. +If \f(CW$base\fR is relative, then it is converted to absolute form using \f(CW\*(C`rel2abs()\*(C'\fR. +This means that it is taken to be relative to the current working directory. +.Sp +If \f(CW$path\fR and \f(CW$base\fR appear to be on two different volumes, we will not +attempt to resolve the two paths, and we will instead simply return +\&\f(CW$path\fR. Note that previous versions of this module ignored the volume +of \f(CW$base\fR, which resulted in garbage results part of the time. +.Sp +If \f(CW$base\fR doesn't have a trailing colon, the last element of \f(CW$base\fR is +assumed to be a filename. This filename is ignored. Otherwise all path +components are assumed to be directories. +.Sp +If \f(CW$path\fR is relative, it is converted to absolute form using \f(CW\*(C`rel2abs()\*(C'\fR. +This means that it is taken to be relative to the current working directory. +.Sp +Based on code written by Shigio Yamaguchi. +.IP "rel2abs" 2 +.IX Item "rel2abs" +Converts a relative path to an absolute path: +.Sp +.Vb 2 +\& $abs_path = File::Spec\->rel2abs( $path ) ; +\& $abs_path = File::Spec\->rel2abs( $path, $base ) ; +.Ve +.Sp +Note that both paths are assumed to have a notation that distinguishes a +directory path (with trailing ':') from a file path (without trailing ':'). +.Sp +If \f(CW$base\fR is not present or '', then \f(CW$base\fR is set to the current working +directory. If \f(CW$base\fR is relative, then it is converted to absolute form +using \f(CW\*(C`rel2abs()\*(C'\fR. This means that it is taken to be relative to the +current working directory. +.Sp +If \f(CW$base\fR doesn't have a trailing colon, the last element of \f(CW$base\fR is +assumed to be a filename. This filename is ignored. Otherwise all path +components are assumed to be directories. +.Sp +If \f(CW$path\fR is already absolute, it is returned and \f(CW$base\fR is ignored. +.Sp +Based on code written by Shigio Yamaguchi. +.SH "AUTHORS" +.IX Header "AUTHORS" +See the authors list in \fIFile::Spec\fR. Mac \s-1OS\s0 support by Paul Schinder + and Thomas Wegner . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AOS2.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AOS2.3 new file mode 100644 index 0000000000000000000000000000000000000000..35ef011bec701b8fa7ad8ee411a3c33a7523c219 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AOS2.3 @@ -0,0 +1,173 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::OS2 3" +.TH File::Spec::OS2 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::OS2 \- methods for OS/2 file specs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::OS2; # Done internally by File::Spec if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. +.PP +Amongst the changes made for \s-1OS/2\s0 are... +.IP "tmpdir" 4 +.IX Item "tmpdir" +Modifies the list of places temp directory information is looked for. +.Sp +.Vb 5 +\& $ENV{TMPDIR} +\& $ENV{TEMP} +\& $ENV{TMP} +\& /tmp +\& / +.Ve +.IP "splitpath" 4 +.IX Item "splitpath" +Volumes can be drive letters or \s-1UNC\s0 sharenames (\e\eserver\eshare). +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AUnix.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AUnix.3 new file mode 100644 index 0000000000000000000000000000000000000000..d318b2514b7a2a8939625cf554190ff52daab4fb --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AUnix.3 @@ -0,0 +1,344 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Unix 3" +.TH File::Spec::Unix 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::Unix \- File::Spec for Unix, base for other File::Spec modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::Unix; # Done automatically by File::Spec +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Methods for manipulating file specifications. Other File::Spec +modules, such as File::Spec::Mac, inherit from File::Spec::Unix and +override specific methods. +.SH "METHODS" +.IX Header "METHODS" +.IP "\fBcanonpath()\fR" 2 +.IX Item "canonpath()" +No physical check on the filesystem, but a logical cleanup of a +path. On \s-1UNIX\s0 eliminates successive slashes and successive \*(L"/.\*(R". +.Sp +.Vb 1 +\& $cpath = File::Spec\->canonpath( $path ) ; +.Ve +.Sp +Note that this does *not* collapse \fIx/../y\fR sections into \fIy\fR. This +is by design. If \fI/foo\fR on your system is a symlink to \fI/bar/baz\fR, +then \fI/foo/../quux\fR is actually \fI/bar/quux\fR, not \fI/quux\fR as a naive +\&\fI../\fR\-removal would give you. If you want to do this kind of +processing, you probably want \f(CW\*(C`Cwd\*(C'\fR's \f(CW\*(C`realpath()\*(C'\fR function to +actually traverse the filesystem cleaning up paths like this. +.IP "\fBcatdir()\fR" 2 +.IX Item "catdir()" +Concatenate two or more directory names to form a complete path ending +with a directory. But remove the trailing slash from the resulting +string, because it doesn't look good, isn't necessary and confuses +\&\s-1OS2.\s0 Of course, if this is the root directory, don't cut off the +trailing slash :\-) +.IP "catfile" 2 +.IX Item "catfile" +Concatenate one or more directory names and a filename to form a +complete path ending with a filename +.IP "curdir" 2 +.IX Item "curdir" +Returns a string representation of the current directory. \*(L".\*(R" on \s-1UNIX.\s0 +.IP "devnull" 2 +.IX Item "devnull" +Returns a string representation of the null device. \*(L"/dev/null\*(R" on \s-1UNIX.\s0 +.IP "rootdir" 2 +.IX Item "rootdir" +Returns a string representation of the root directory. \*(L"/\*(R" on \s-1UNIX.\s0 +.IP "tmpdir" 2 +.IX Item "tmpdir" +Returns a string representation of the first writable directory from +the following list or the current directory if none from the list are +writable: +.Sp +.Vb 2 +\& $ENV{TMPDIR} +\& /tmp +.Ve +.Sp +If running under taint mode, and if \f(CW$ENV\fR{\s-1TMPDIR\s0} +is tainted, it is not used. +.IP "updir" 2 +.IX Item "updir" +Returns a string representation of the parent directory. \*(L"..\*(R" on \s-1UNIX.\s0 +.IP "no_upwards" 2 +.IX Item "no_upwards" +Given a list of file names, strip out those that refer to a parent +directory. (Does not strip symlinks, only '.', '..', and equivalents.) +.IP "case_tolerant" 2 +.IX Item "case_tolerant" +Returns a true or false value indicating, respectively, that alphabetic +is not or is significant when comparing file specifications. +.IP "file_name_is_absolute" 2 +.IX Item "file_name_is_absolute" +Takes as argument a path and returns true if it is an absolute path. +.Sp +This does not consult the local filesystem on Unix, Win32, \s-1OS/2\s0 or Mac +\&\s-1OS\s0 (Classic). It does consult the working environment for \s-1VMS\s0 (see +\&\*(L"file_name_is_absolute\*(R" in File::Spec::VMS). +.IP "path" 2 +.IX Item "path" +Takes no argument, returns the environment variable \s-1PATH\s0 as an array. +.IP "join" 2 +.IX Item "join" +join is the same as catfile. +.IP "splitpath" 2 +.IX Item "splitpath" +.Vb 3 +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path ); +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path, +\& $no_file ); +.Ve +.Sp +Splits a path into volume, directory, and filename portions. On systems +with no concept of volume, returns '' for volume. +.Sp +For systems with no syntax differentiating filenames from directories, +assumes that the last file is a path unless \f(CW$no_file\fR is true or a +trailing separator or /. or /.. is present. On Unix this means that \f(CW$no_file\fR +true makes this return ( '', \f(CW$path\fR, '' ). +.Sp +The directory portion may or may not be returned with a trailing '/'. +.Sp +The results can be passed to \*(L"\fBcatpath()\fR\*(R" to get back a path equivalent to +(usually identical to) the original path. +.IP "splitdir" 2 +.IX Item "splitdir" +The opposite of \*(L"\fBcatdir()\fR\*(R". +.Sp +.Vb 1 +\& @dirs = File::Spec\->splitdir( $directories ); +.Ve +.Sp +\&\f(CW$directories\fR must be only the directory portion of the path on systems +that have the concept of a volume or that have path syntax that differentiates +files from directories. +.Sp +Unlike just splitting the directories on the separator, empty +directory names (\f(CW\*(Aq\*(Aq\fR) can be returned, because these are significant +on some OSs. +.Sp +On Unix, +.Sp +.Vb 1 +\& File::Spec\->splitdir( "/a/b//c/" ); +.Ve +.Sp +Yields: +.Sp +.Vb 1 +\& ( \*(Aq\*(Aq, \*(Aqa\*(Aq, \*(Aqb\*(Aq, \*(Aq\*(Aq, \*(Aqc\*(Aq, \*(Aq\*(Aq ) +.Ve +.IP "\fBcatpath()\fR" 2 +.IX Item "catpath()" +Takes volume, directory and file portions and returns an entire path. Under +Unix, \f(CW$volume\fR is ignored, and directory and file are concatenated. A '/' is +inserted if needed (though if the directory portion doesn't start with +\&'/' it is not added). On other OSs, \f(CW$volume\fR is significant. +.IP "abs2rel" 2 +.IX Item "abs2rel" +Takes a destination path and an optional base path returns a relative path +from the base path to the destination path: +.Sp +.Vb 2 +\& $rel_path = File::Spec\->abs2rel( $path ) ; +\& $rel_path = File::Spec\->abs2rel( $path, $base ) ; +.Ve +.Sp +If \f(CW$base\fR is not present or '', then \fBcwd()\fR is used. If \f(CW$base\fR is +relative, then it is converted to absolute form using +\&\*(L"\fBrel2abs()\fR\*(R". This means that it is taken to be relative to +\&\fBcwd()\fR. +.Sp +On systems that have a grammar that indicates filenames, this ignores the +\&\f(CW$base\fR filename. Otherwise all path components are assumed to be +directories. +.Sp +If \f(CW$path\fR is relative, it is converted to absolute form using \*(L"\fBrel2abs()\fR\*(R". +This means that it is taken to be relative to \fBcwd()\fR. +.Sp +No checks against the filesystem are made, so the result may not be correct if +\&\f(CW$base\fR contains symbolic links. (Apply +\&\fBCwd::abs_path()\fR beforehand if that +is a concern.) On \s-1VMS,\s0 there is interaction with the working environment, as +logicals and macros are expanded. +.Sp +Based on code written by Shigio Yamaguchi. +.IP "\fBrel2abs()\fR" 2 +.IX Item "rel2abs()" +Converts a relative path to an absolute path. +.Sp +.Vb 2 +\& $abs_path = File::Spec\->rel2abs( $path ) ; +\& $abs_path = File::Spec\->rel2abs( $path, $base ) ; +.Ve +.Sp +If \f(CW$base\fR is not present or '', then \fBcwd()\fR is used. If \f(CW$base\fR is +relative, then it is converted to absolute form using +\&\*(L"\fBrel2abs()\fR\*(R". This means that it is taken to be relative to +\&\fBcwd()\fR. +.Sp +On systems that have a grammar that indicates filenames, this ignores +the \f(CW$base\fR filename. Otherwise all path components are assumed to be +directories. +.Sp +If \f(CW$path\fR is absolute, it is cleaned up and returned using \*(L"\fBcanonpath()\fR\*(R". +.Sp +No checks against the filesystem are made. On \s-1VMS,\s0 there is +interaction with the working environment, as logicals and +macros are expanded. +.Sp +Based on code written by Shigio Yamaguchi. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.PP +Please submit bug reports and patches to perlbug@perl.org. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::Spec diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AWin32.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AWin32.3 new file mode 100644 index 0000000000000000000000000000000000000000..1d8e8b938486a2c317ea1974bcf5ed326d6507c9 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AWin32.3 @@ -0,0 +1,263 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Win32 3" +.TH File::Spec::Win32 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec::Win32 \- methods for Win32 file specs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::Win32; # Done internally by File::Spec if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See File::Spec::Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.IP "devnull" 4 +.IX Item "devnull" +Returns a string representation of the null device. +.IP "tmpdir" 4 +.IX Item "tmpdir" +Returns a string representation of the first existing directory +from the following list: +.Sp +.Vb 8 +\& $ENV{TMPDIR} +\& $ENV{TEMP} +\& $ENV{TMP} +\& SYS:/temp +\& C:\esystem\etemp +\& C:/temp +\& /tmp +\& / +.Ve +.Sp +The SYS:/temp is preferred in Novell NetWare and the C:\esystem\etemp +for Symbian (the File::Spec::Win32 is used also for those platforms). +.Sp +If running under taint mode, and if the environment +variables are tainted, they are not used. +.IP "case_tolerant" 4 +.IX Item "case_tolerant" +MSWin32 case-tolerance depends on \fBGetVolumeInformation()\fR \f(CW$ouFsFlags\fR == \s-1FS_CASE_SENSITIVE,\s0 +indicating the case significance when comparing file specifications. +Since \s-1XP FS_CASE_SENSITIVE\s0 is effectively disabled for the \s-1NT\s0 subsubsystem. +See +Default: 1 +.IP "file_name_is_absolute" 4 +.IX Item "file_name_is_absolute" +As of right now, this returns 2 if the path is absolute with a +volume, 1 if it's absolute with no volume, 0 otherwise. +.IP "catfile" 4 +.IX Item "catfile" +Concatenate one or more directory names and a filename to form a +complete path ending with a filename +.IP "canonpath" 4 +.IX Item "canonpath" +No physical check on the filesystem, but a logical cleanup of a +path. On \s-1UNIX\s0 eliminated successive slashes and successive \*(L"/.\*(R". +On Win32 makes +.Sp +.Vb 2 +\& dir1\edir2\edir3\e..\e..\edir4 \-> \edir\edir4 and even +\& dir1\edir2\edir3\e...\edir4 \-> \edir\edir4 +.Ve +.IP "splitpath" 4 +.IX Item "splitpath" +.Vb 3 +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path ); +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path, +\& $no_file ); +.Ve +.Sp +Splits a path into volume, directory, and filename portions. Assumes that +the last file is a path unless the path ends in '\e\e', '\e\e.', '\e\e..' +or \f(CW$no_file\fR is true. On Win32 this means that \f(CW$no_file\fR true makes this return +( \f(CW$volume\fR, \f(CW$path\fR, '' ). +.Sp +Separators accepted are \e and /. +.Sp +Volumes can be drive letters or \s-1UNC\s0 sharenames (\e\eserver\eshare). +.Sp +The results can be passed to \*(L"catpath\*(R" to get back a path equivalent to +(usually identical to) the original path. +.IP "splitdir" 4 +.IX Item "splitdir" +The opposite of \fBcatdir()\fR. +.Sp +.Vb 1 +\& @dirs = File::Spec\->splitdir( $directories ); +.Ve +.Sp +\&\f(CW$directories\fR must be only the directory portion of the path on systems +that have the concept of a volume or that have path syntax that differentiates +files from directories. +.Sp +Unlike just splitting the directories on the separator, leading empty and +trailing directory entries can be returned, because these are significant +on some OSs. So, +.Sp +.Vb 1 +\& File::Spec\->splitdir( "/a/b/c" ); +.Ve +.Sp +Yields: +.Sp +.Vb 1 +\& ( \*(Aq\*(Aq, \*(Aqa\*(Aq, \*(Aqb\*(Aq, \*(Aq\*(Aq, \*(Aqc\*(Aq, \*(Aq\*(Aq ) +.Ve +.IP "catpath" 4 +.IX Item "catpath" +Takes volume, directory and file portions and returns an entire path. Under +Unix, \f(CW$volume\fR is ignored, and this is just like \fBcatfile()\fR. On other OSs, +the \f(CW$volume\fR become significant. +.SS "Note For File::Spec::Win32 Maintainers" +.IX Subsection "Note For File::Spec::Win32 Maintainers" +Novell NetWare inherits its File::Spec behaviour from File::Spec::Win32. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec.3 b/data/miniconda3/man/man3/File%3A%3ASpec.3 new file mode 100644 index 0000000000000000000000000000000000000000..c74ddeb4ac7bb9a0d3b646758aa32cb807ed188d --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec.3 @@ -0,0 +1,468 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 3" +.TH File::Spec 3 "2020-12-18" "perl v5.32.1" "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" +File::Spec \- portably perform operations on file names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Spec; +\& +\& $x=File::Spec\->catfile(\*(Aqa\*(Aq, \*(Aqb\*(Aq, \*(Aqc\*(Aq); +.Ve +.PP +which returns 'a/b/c' under Unix. Or: +.PP +.Vb 1 +\& use File::Spec::Functions; +\& +\& $x = catfile(\*(Aqa\*(Aq, \*(Aqb\*(Aq, \*(Aqc\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is designed to support operations commonly performed on file +specifications (usually called \*(L"file names\*(R", but not to be confused with the +contents of a file, or Perl's file handles), such as concatenating several +directory and file names into a single path, or determining whether a path +is rooted. It is based on code directly taken from MakeMaker 5.17, code +written by Andreas Ko\*:nig, Andy Dougherty, Charles Bailey, Ilya +Zakharevich, Paul Schinder, and others. +.PP +Since these functions are different for most operating systems, each set of +\&\s-1OS\s0 specific routines is available in a separate module, including: +.PP +.Vb 5 +\& File::Spec::Unix +\& File::Spec::Mac +\& File::Spec::OS2 +\& File::Spec::Win32 +\& File::Spec::VMS +.Ve +.PP +The module appropriate for the current \s-1OS\s0 is automatically loaded by +File::Spec. Since some modules (like \s-1VMS\s0) make use of facilities available +only under that \s-1OS,\s0 it may not be possible to load all modules under all +operating systems. +.PP +Since File::Spec is object oriented, subroutines should not be called directly, +as in: +.PP +.Vb 1 +\& File::Spec::catfile(\*(Aqa\*(Aq,\*(Aqb\*(Aq); +.Ve +.PP +but rather as class methods: +.PP +.Vb 1 +\& File::Spec\->catfile(\*(Aqa\*(Aq,\*(Aqb\*(Aq); +.Ve +.PP +For simple uses, File::Spec::Functions provides convenient functional +forms of these methods. +.SH "METHODS" +.IX Header "METHODS" +.IP "canonpath" 2 +.IX Xref "canonpath" +.IX Item "canonpath" +No physical check on the filesystem, but a logical cleanup of a +path. +.Sp +.Vb 1 +\& $cpath = File::Spec\->canonpath( $path ) ; +.Ve +.Sp +Note that this does *not* collapse \fIx/../y\fR sections into \fIy\fR. This +is by design. If \fI/foo\fR on your system is a symlink to \fI/bar/baz\fR, +then \fI/foo/../quux\fR is actually \fI/bar/quux\fR, not \fI/quux\fR as a naive +\&\fI../\fR\-removal would give you. If you want to do this kind of +processing, you probably want \f(CW\*(C`Cwd\*(C'\fR's \f(CW\*(C`realpath()\*(C'\fR function to +actually traverse the filesystem cleaning up paths like this. +.IP "catdir" 2 +.IX Xref "catdir" +.IX Item "catdir" +Concatenate two or more directory names to form a complete path ending +with a directory. But remove the trailing slash from the resulting +string, because it doesn't look good, isn't necessary and confuses +\&\s-1OS/2.\s0 Of course, if this is the root directory, don't cut off the +trailing slash :\-) +.Sp +.Vb 1 +\& $path = File::Spec\->catdir( @directories ); +.Ve +.IP "catfile" 2 +.IX Xref "catfile" +.IX Item "catfile" +Concatenate one or more directory names and a filename to form a +complete path ending with a filename +.Sp +.Vb 1 +\& $path = File::Spec\->catfile( @directories, $filename ); +.Ve +.IP "curdir" 2 +.IX Xref "curdir" +.IX Item "curdir" +Returns a string representation of the current directory. +.Sp +.Vb 1 +\& $curdir = File::Spec\->curdir(); +.Ve +.IP "devnull" 2 +.IX Xref "devnull" +.IX Item "devnull" +Returns a string representation of the null device. +.Sp +.Vb 1 +\& $devnull = File::Spec\->devnull(); +.Ve +.IP "rootdir" 2 +.IX Xref "rootdir" +.IX Item "rootdir" +Returns a string representation of the root directory. +.Sp +.Vb 1 +\& $rootdir = File::Spec\->rootdir(); +.Ve +.IP "tmpdir" 2 +.IX Xref "tmpdir" +.IX Item "tmpdir" +Returns a string representation of the first writable directory from a +list of possible temporary directories. Returns the current directory +if no writable temporary directories are found. The list of directories +checked depends on the platform; e.g. File::Spec::Unix checks \f(CW$ENV{TMPDIR}\fR +(unless taint is on) and \fI/tmp\fR. +.Sp +.Vb 1 +\& $tmpdir = File::Spec\->tmpdir(); +.Ve +.IP "updir" 2 +.IX Xref "updir" +.IX Item "updir" +Returns a string representation of the parent directory. +.Sp +.Vb 1 +\& $updir = File::Spec\->updir(); +.Ve +.IP "no_upwards" 2 +.IX Item "no_upwards" +Given a list of files in a directory (such as from \f(CW\*(C`readdir()\*(C'\fR), +strip out \f(CW\*(Aq.\*(Aq\fR and \f(CW\*(Aq..\*(Aq\fR. +.Sp +\&\fB\s-1SECURITY NOTE:\s0\fR This does \s-1NOT\s0 filter paths containing \f(CW\*(Aq..\*(Aq\fR, like +\&\f(CW\*(Aq../../../../etc/passwd\*(Aq\fR, only literal matches to \f(CW\*(Aq.\*(Aq\fR and \f(CW\*(Aq..\*(Aq\fR. +.Sp +.Vb 1 +\& @paths = File::Spec\->no_upwards( readdir $dirhandle ); +.Ve +.IP "case_tolerant" 2 +.IX Item "case_tolerant" +Returns a true or false value indicating, respectively, that alphabetic +case is not or is significant when comparing file specifications. +Cygwin and Win32 accept an optional drive argument. +.Sp +.Vb 1 +\& $is_case_tolerant = File::Spec\->case_tolerant(); +.Ve +.IP "file_name_is_absolute" 2 +.IX Item "file_name_is_absolute" +Takes as its argument a path, and returns true if it is an absolute path. +.Sp +.Vb 1 +\& $is_absolute = File::Spec\->file_name_is_absolute( $path ); +.Ve +.Sp +This does not consult the local filesystem on Unix, Win32, \s-1OS/2,\s0 or +Mac \s-1OS\s0 (Classic). It does consult the working environment for \s-1VMS\s0 +(see \*(L"file_name_is_absolute\*(R" in File::Spec::VMS). +.IP "path" 2 +.IX Xref "path" +.IX Item "path" +Takes no argument. Returns the environment variable \f(CW\*(C`PATH\*(C'\fR (or the local +platform's equivalent) as a list. +.Sp +.Vb 1 +\& @PATH = File::Spec\->path(); +.Ve +.IP "join" 2 +.IX Xref "join, path" +.IX Item "join" +join is the same as catfile. +.IP "splitpath" 2 +.IX Xref "splitpath split, path" +.IX Item "splitpath" +Splits a path in to volume, directory, and filename portions. On systems +with no concept of volume, returns '' for volume. +.Sp +.Vb 4 +\& ($volume,$directories,$file) = +\& File::Spec\->splitpath( $path ); +\& ($volume,$directories,$file) = +\& File::Spec\->splitpath( $path, $no_file ); +.Ve +.Sp +For systems with no syntax differentiating filenames from directories, +assumes that the last file is a path unless \f(CW$no_file\fR is true or a +trailing separator or \fI/.\fR or \fI/..\fR is present. On Unix, this means that \f(CW$no_file\fR +true makes this return ( '', \f(CW$path\fR, '' ). +.Sp +The directory portion may or may not be returned with a trailing '/'. +.Sp +The results can be passed to \*(L"\fBcatpath()\fR\*(R" to get back a path equivalent to +(usually identical to) the original path. +.IP "splitdir" 2 +.IX Xref "splitdir split, dir" +.IX Item "splitdir" +The opposite of \*(L"catdir\*(R". +.Sp +.Vb 1 +\& @dirs = File::Spec\->splitdir( $directories ); +.Ve +.Sp +\&\f(CW$directories\fR must be only the directory portion of the path on systems +that have the concept of a volume or that have path syntax that differentiates +files from directories. +.Sp +Unlike just splitting the directories on the separator, empty +directory names (\f(CW\*(Aq\*(Aq\fR) can be returned, because these are significant +on some OSes. +.IP "\fBcatpath()\fR" 2 +.IX Item "catpath()" +Takes volume, directory and file portions and returns an entire path. Under +Unix, \f(CW$volume\fR is ignored, and directory and file are concatenated. A '/' is +inserted if need be. On other OSes, \f(CW$volume\fR is significant. +.Sp +.Vb 1 +\& $full_path = File::Spec\->catpath( $volume, $directory, $file ); +.Ve +.IP "abs2rel" 2 +.IX Xref "abs2rel absolute, path relative, path" +.IX Item "abs2rel" +Takes a destination path and an optional base path returns a relative path +from the base path to the destination path: +.Sp +.Vb 2 +\& $rel_path = File::Spec\->abs2rel( $path ) ; +\& $rel_path = File::Spec\->abs2rel( $path, $base ) ; +.Ve +.Sp +If \f(CW$base\fR is not present or '', then \fBCwd::cwd()\fR is used. If \f(CW$base\fR is +relative, then it is converted to absolute form using +\&\*(L"\fBrel2abs()\fR\*(R". This means that it is taken to be relative to +\&\fBCwd::cwd()\fR. +.Sp +On systems with the concept of volume, if \f(CW$path\fR and \f(CW$base\fR appear to be +on two different volumes, we will not attempt to resolve the two +paths, and we will instead simply return \f(CW$path\fR. Note that previous +versions of this module ignored the volume of \f(CW$base\fR, which resulted in +garbage results part of the time. +.Sp +On systems that have a grammar that indicates filenames, this ignores the +\&\f(CW$base\fR filename as well. Otherwise all path components are assumed to be +directories. +.Sp +If \f(CW$path\fR is relative, it is converted to absolute form using \*(L"\fBrel2abs()\fR\*(R". +This means that it is taken to be relative to \fBCwd::cwd()\fR. +.Sp +No checks against the filesystem are made. On \s-1VMS,\s0 there is +interaction with the working environment, as logicals and +macros are expanded. +.Sp +Based on code written by Shigio Yamaguchi. +.IP "\fBrel2abs()\fR" 2 +.IX Xref "rel2abs absolute, path relative, path" +.IX Item "rel2abs()" +Converts a relative path to an absolute path. +.Sp +.Vb 2 +\& $abs_path = File::Spec\->rel2abs( $path ) ; +\& $abs_path = File::Spec\->rel2abs( $path, $base ) ; +.Ve +.Sp +If \f(CW$base\fR is not present or '', then \fBCwd::cwd()\fR is used. If \f(CW$base\fR is relative, +then it is converted to absolute form using \*(L"\fBrel2abs()\fR\*(R". This means that it +is taken to be relative to \fBCwd::cwd()\fR. +.Sp +On systems with the concept of volume, if \f(CW$path\fR and \f(CW$base\fR appear to be +on two different volumes, we will not attempt to resolve the two +paths, and we will instead simply return \f(CW$path\fR. Note that previous +versions of this module ignored the volume of \f(CW$base\fR, which resulted in +garbage results part of the time. +.Sp +On systems that have a grammar that indicates filenames, this ignores the +\&\f(CW$base\fR filename as well. Otherwise all path components are assumed to be +directories. +.Sp +If \f(CW$path\fR is absolute, it is cleaned up and returned using \*(L"canonpath\*(R". +.Sp +No checks against the filesystem are made. On \s-1VMS,\s0 there is +interaction with the working environment, as logicals and +macros are expanded. +.Sp +Based on code written by Shigio Yamaguchi. +.PP +For further information, please see File::Spec::Unix, +File::Spec::Mac, File::Spec::OS2, File::Spec::Win32, or +File::Spec::VMS. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::Spec::Unix, File::Spec::Mac, File::Spec::OS2, +File::Spec::Win32, File::Spec::VMS, File::Spec::Functions, +ExtUtils::MakeMaker +.SH "AUTHOR" +.IX Header "AUTHOR" +Currently maintained by Ken Williams \f(CW\*(C`\*(C'\fR. +.PP +The vast majority of the code was written by +Kenneth Albanowski \f(CW\*(C`\*(C'\fR, +Andy Dougherty \f(CW\*(C`\*(C'\fR, +Andreas Ko\*:nig \f(CW\*(C`\*(C'\fR, +Tim Bunce \f(CW\*(C`\*(C'\fR. +\&\s-1VMS\s0 support by Charles Bailey \f(CW\*(C`\*(C'\fR. +\&\s-1OS/2\s0 support by Ilya Zakharevich \f(CW\*(C`\*(C'\fR. +Mac support by Paul Schinder \f(CW\*(C`\*(C'\fR, and +Thomas Wegner \f(CW\*(C`\*(C'\fR. +\&\fBabs2rel()\fR and \fBrel2abs()\fR written by Shigio Yamaguchi \f(CW\*(C`\*(C'\fR, +modified by Barrie Slaymaker \f(CW\*(C`\*(C'\fR. +\&\fBsplitpath()\fR, \fBsplitdir()\fR, \fBcatpath()\fR and \fBcatdir()\fR by Barrie Slaymaker. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004\-2013 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3ATemp.3 b/data/miniconda3/man/man3/File%3A%3ATemp.3 new file mode 100644 index 0000000000000000000000000000000000000000..4129b33348568091437e8f8b0aaeeffd3ec38cb5 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ATemp.3 @@ -0,0 +1,1118 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::Temp 3" +.TH File::Temp 3 "2020-12-18" "perl v5.32.1" "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" +File::Temp \- return name and handle of a temporary file safely +.SH "VERSION" +.IX Header "VERSION" +version 0.2309 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Temp qw/ tempfile tempdir /; +\& +\& $fh = tempfile(); +\& ($fh, $filename) = tempfile(); +\& +\& ($fh, $filename) = tempfile( $template, DIR => $dir); +\& ($fh, $filename) = tempfile( $template, SUFFIX => \*(Aq.dat\*(Aq); +\& ($fh, $filename) = tempfile( $template, TMPDIR => 1 ); +\& +\& binmode( $fh, ":utf8" ); +\& +\& $dir = tempdir( CLEANUP => 1 ); +\& ($fh, $filename) = tempfile( DIR => $dir ); +.Ve +.PP +Object interface: +.PP +.Vb 3 +\& require File::Temp; +\& use File::Temp (); +\& use File::Temp qw/ :seekable /; +\& +\& $fh = File::Temp\->new(); +\& $fname = $fh\->filename; +\& +\& $fh = File::Temp\->new(TEMPLATE => $template); +\& $fname = $fh\->filename; +\& +\& $tmp = File::Temp\->new( UNLINK => 0, SUFFIX => \*(Aq.dat\*(Aq ); +\& print $tmp "Some data\en"; +\& print "Filename is $tmp\en"; +\& $tmp\->seek( 0, SEEK_END ); +\& +\& $dir = File::Temp\->newdir(); # CLEANUP => 1 by default +.Ve +.PP +The following interfaces are provided for compatibility with +existing APIs. They should not be used in new code. +.PP +MkTemp family: +.PP +.Vb 1 +\& use File::Temp qw/ :mktemp /; +\& +\& ($fh, $file) = mkstemp( "tmpfileXXXXX" ); +\& ($fh, $file) = mkstemps( "tmpfileXXXXXX", $suffix); +\& +\& $tmpdir = mkdtemp( $template ); +\& +\& $unopened_file = mktemp( $template ); +.Ve +.PP +\&\s-1POSIX\s0 functions: +.PP +.Vb 1 +\& use File::Temp qw/ :POSIX /; +\& +\& $file = tmpnam(); +\& $fh = tmpfile(); +\& +\& ($fh, $file) = tmpnam(); +.Ve +.PP +Compatibility functions: +.PP +.Vb 1 +\& $unopened_file = File::Temp::tempnam( $dir, $pfx ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`File::Temp\*(C'\fR can be used to create and open temporary files in a safe +way. There is both a function interface and an object-oriented +interface. The File::Temp constructor or the \fBtempfile()\fR function can +be used to return the name and the open filehandle of a temporary +file. The \fBtempdir()\fR function can be used to create a temporary +directory. +.PP +The security aspect of temporary file creation is emphasized such that +a filehandle and filename are returned together. This helps guarantee +that a race condition can not occur where the temporary file is +created by another process between checking for the existence of the +file and its opening. Additional security levels are provided to +check, for example, that the sticky bit is set on world writable +directories. See \*(L"safe_level\*(R" for more information. +.PP +For compatibility with popular C library functions, Perl implementations of +the \fBmkstemp()\fR family of functions are provided. These are, \fBmkstemp()\fR, +\&\fBmkstemps()\fR, \fBmkdtemp()\fR and \fBmktemp()\fR. +.PP +Additionally, implementations of the standard \s-1POSIX\s0 +\&\fBtmpnam()\fR and \fBtmpfile()\fR functions are provided if required. +.PP +Implementations of \fBmktemp()\fR, \fBtmpnam()\fR, and \fBtempnam()\fR are provided, +but should be used with caution since they return only a filename +that was valid when function was called, so cannot guarantee +that the file will not exist by the time the caller opens the filename. +.PP +Filehandles returned by these functions support the seekable methods. +.SH "OBJECT-ORIENTED INTERFACE" +.IX Header "OBJECT-ORIENTED INTERFACE" +This is the primary interface for interacting with +\&\f(CW\*(C`File::Temp\*(C'\fR. Using the \s-1OO\s0 interface a temporary file can be created +when the object is constructed and the file can be removed when the +object is no longer required. +.PP +Note that there is no method to obtain the filehandle from the +\&\f(CW\*(C`File::Temp\*(C'\fR object. The object itself acts as a filehandle. The object +isa \f(CW\*(C`IO::Handle\*(C'\fR and isa \f(CW\*(C`IO::Seekable\*(C'\fR so all those methods are +available. +.PP +Also, the object is configured such that it stringifies to the name of the +temporary file and so can be compared to a filename directly. It numifies +to the \f(CW\*(C`refaddr\*(C'\fR the same as other handles and so can be compared to other +handles with \f(CW\*(C`==\*(C'\fR. +.PP +.Vb 2 +\& $fh eq $filename # as a string +\& $fh != \e*STDOUT # as a number +.Ve +.PP +Available since 0.14. +.IP "\fBnew\fR" 4 +.IX Item "new" +Create a temporary file object. +.Sp +.Vb 1 +\& my $tmp = File::Temp\->new(); +.Ve +.Sp +by default the object is constructed as if \f(CW\*(C`tempfile\*(C'\fR +was called without options, but with the additional behaviour +that the temporary file is removed by the object destructor +if \s-1UNLINK\s0 is set to true (the default). +.Sp +Supported arguments are the same as for \f(CW\*(C`tempfile\*(C'\fR: \s-1UNLINK\s0 +(defaulting to true), \s-1DIR, EXLOCK\s0 and \s-1SUFFIX.\s0 Additionally, the filename +template is specified using the \s-1TEMPLATE\s0 option. The \s-1OPEN\s0 option +is not supported (the file is always opened). +.Sp +.Vb 3 +\& $tmp = File::Temp\->new( TEMPLATE => \*(AqtempXXXXX\*(Aq, +\& DIR => \*(Aqmydir\*(Aq, +\& SUFFIX => \*(Aq.dat\*(Aq); +.Ve +.Sp +Arguments are case insensitive. +.Sp +Can call \fBcroak()\fR if an error occurs. +.Sp +Available since 0.14. +.Sp +\&\s-1TEMPLATE\s0 available since 0.23 +.IP "\fBnewdir\fR" 4 +.IX Item "newdir" +Create a temporary directory using an object oriented interface. +.Sp +.Vb 1 +\& $dir = File::Temp\->newdir(); +.Ve +.Sp +By default the directory is deleted when the object goes out of scope. +.Sp +Supports the same options as the \f(CW\*(C`tempdir\*(C'\fR function. Note that directories +created with this method default to \s-1CLEANUP\s0 => 1. +.Sp +.Vb 1 +\& $dir = File::Temp\->newdir( $template, %options ); +.Ve +.Sp +A template may be specified either with a leading template or +with a \s-1TEMPLATE\s0 argument. +.Sp +Available since 0.19. +.Sp +\&\s-1TEMPLATE\s0 available since 0.23. +.IP "\fBfilename\fR" 4 +.IX Item "filename" +Return the name of the temporary file associated with this object +(if the object was created using the \*(L"new\*(R" constructor). +.Sp +.Vb 1 +\& $filename = $tmp\->filename; +.Ve +.Sp +This method is called automatically when the object is used as +a string. +.Sp +Current \s-1API\s0 available since 0.14 +.IP "\fBdirname\fR" 4 +.IX Item "dirname" +Return the name of the temporary directory associated with this +object (if the object was created using the \*(L"newdir\*(R" constructor). +.Sp +.Vb 1 +\& $dirname = $tmpdir\->dirname; +.Ve +.Sp +This method is called automatically when the object is used in string context. +.IP "\fBunlink_on_destroy\fR" 4 +.IX Item "unlink_on_destroy" +Control whether the file is unlinked when the object goes out of scope. +The file is removed if this value is true and \f(CW$KEEP_ALL\fR is not. +.Sp +.Vb 1 +\& $fh\->unlink_on_destroy( 1 ); +.Ve +.Sp +Default is for the file to be removed. +.Sp +Current \s-1API\s0 available since 0.15 +.IP "\fB\s-1DESTROY\s0\fR" 4 +.IX Item "DESTROY" +When the object goes out of scope, the destructor is called. This +destructor will attempt to unlink the file (using unlink1) +if the constructor was called with \s-1UNLINK\s0 set to 1 (the default state +if \s-1UNLINK\s0 is not specified). +.Sp +No error is given if the unlink fails. +.Sp +If the object has been passed to a child process during a fork, the +file will be deleted when the object goes out of scope in the parent. +.Sp +For a temporary directory object the directory will be removed unless +the \s-1CLEANUP\s0 argument was used in the constructor (and set to false) or +\&\f(CW\*(C`unlink_on_destroy\*(C'\fR was modified after creation. Note that if a temp +directory is your current directory, it cannot be removed \- a warning +will be given in this case. \f(CW\*(C`chdir()\*(C'\fR out of the directory before +letting the object go out of scope. +.Sp +If the global variable \f(CW$KEEP_ALL\fR is true, the file or directory +will not be removed. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +This section describes the recommended interface for generating +temporary files and directories. +.IP "\fBtempfile\fR" 4 +.IX Item "tempfile" +This is the basic function to generate temporary files. +The behaviour of the file can be changed using various options: +.Sp +.Vb 2 +\& $fh = tempfile(); +\& ($fh, $filename) = tempfile(); +.Ve +.Sp +Create a temporary file in the directory specified for temporary +files, as specified by the \fBtmpdir()\fR function in File::Spec. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template); +.Ve +.Sp +Create a temporary file in the current directory using the supplied +template. Trailing `X' characters are replaced with random letters to +generate the filename. At least four `X' characters must be present +at the end of the template. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template, SUFFIX => $suffix) +.Ve +.Sp +Same as previously, except that a suffix is added to the template +after the `X' translation. Useful for ensuring that a temporary +filename has a particular extension when needed by other applications. +But see the \s-1WARNING\s0 at the end. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template, DIR => $dir); +.Ve +.Sp +Translates the template as before except that a directory name +is specified. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template, TMPDIR => 1); +.Ve +.Sp +Equivalent to specifying a \s-1DIR\s0 of \*(L"File::Spec\->tmpdir\*(R", writing the file +into the same temporary directory as would be used if no template was +specified at all. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template, UNLINK => 1); +.Ve +.Sp +Return the filename and filehandle as before except that the file is +automatically removed when the program exits (dependent on +\&\f(CW$KEEP_ALL\fR). Default is for the file to be removed if a file handle is +requested and to be kept if the filename is requested. In a scalar +context (where no filename is returned) the file is always deleted +either (depending on the operating system) on exit or when it is +closed (unless \f(CW$KEEP_ALL\fR is true when the temp file is created). +.Sp +Use the object-oriented interface if fine-grained control of when +a file is removed is required. +.Sp +If the template is not specified, a template is always +automatically generated. This temporary file is placed in \fBtmpdir()\fR +(File::Spec) unless a directory is specified explicitly with the +\&\s-1DIR\s0 option. +.Sp +.Vb 1 +\& $fh = tempfile( DIR => $dir ); +.Ve +.Sp +If called in scalar context, only the filehandle is returned and the +file will automatically be deleted when closed on operating systems +that support this (see the description of \fBtmpfile()\fR elsewhere in this +document). This is the preferred mode of operation, as if you only +have a filehandle, you can never create a race condition by fumbling +with the filename. On systems that can not unlink an open file or can +not mark a file as temporary when it is opened (for example, Windows +\&\s-1NT\s0 uses the \f(CW\*(C`O_TEMPORARY\*(C'\fR flag) the file is marked for deletion when +the program ends (equivalent to setting \s-1UNLINK\s0 to 1). The \f(CW\*(C`UNLINK\*(C'\fR +flag is ignored if present. +.Sp +.Vb 1 +\& (undef, $filename) = tempfile($template, OPEN => 0); +.Ve +.Sp +This will return the filename based on the template but +will not open this file. Cannot be used in conjunction with +\&\s-1UNLINK\s0 set to true. Default is to always open the file +to protect from possible race conditions. A warning is issued +if warnings are turned on. Consider using the \fBtmpnam()\fR +and \fBmktemp()\fR functions described elsewhere in this document +if opening the file is not required. +.Sp +To open the temporary filehandle with O_EXLOCK (open with exclusive +file lock) use \f(CW\*(C`EXLOCK=>1\*(C'\fR. This is supported only by some +operating systems (most notably \s-1BSD\s0 derived systems). By default +\&\s-1EXLOCK\s0 will be false. Former \f(CW\*(C`File::Temp\*(C'\fR versions set \s-1EXLOCK\s0 to +true, so to be sure to get an unlocked filehandle also with older +versions, explicitly set \f(CW\*(C`EXLOCK=>0\*(C'\fR. +.Sp +.Vb 1 +\& ($fh, $filename) = tempfile($template, EXLOCK => 1); +.Ve +.Sp +Options can be combined as required. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Available since 0.05. +.Sp +\&\s-1UNLINK\s0 flag available since 0.10. +.Sp +\&\s-1TMPDIR\s0 flag available since 0.19. +.Sp +\&\s-1EXLOCK\s0 flag available since 0.19. +.IP "\fBtempdir\fR" 4 +.IX Item "tempdir" +This is the recommended interface for creation of temporary +directories. By default the directory will not be removed on exit +(that is, it won't be temporary; this behaviour can not be changed +because of issues with backwards compatibility). To enable removal +either use the \s-1CLEANUP\s0 option which will trigger removal on program +exit, or consider using the \*(L"newdir\*(R" method in the object interface which +will allow the directory to be cleaned up when the object goes out of +scope. +.Sp +The behaviour of the function depends on the arguments: +.Sp +.Vb 1 +\& $tempdir = tempdir(); +.Ve +.Sp +Create a directory in \fBtmpdir()\fR (see File::Spec). +.Sp +.Vb 1 +\& $tempdir = tempdir( $template ); +.Ve +.Sp +Create a directory from the supplied template. This template is +similar to that described for \fBtempfile()\fR. `X' characters at the end +of the template are replaced with random letters to construct the +directory name. At least four `X' characters must be in the template. +.Sp +.Vb 1 +\& $tempdir = tempdir ( DIR => $dir ); +.Ve +.Sp +Specifies the directory to use for the temporary directory. +The temporary directory name is derived from an internal template. +.Sp +.Vb 1 +\& $tempdir = tempdir ( $template, DIR => $dir ); +.Ve +.Sp +Prepend the supplied directory name to the template. The template +should not include parent directory specifications itself. Any parent +directory specifications are removed from the template before +prepending the supplied directory. +.Sp +.Vb 1 +\& $tempdir = tempdir ( $template, TMPDIR => 1 ); +.Ve +.Sp +Using the supplied template, create the temporary directory in +a standard location for temporary files. Equivalent to doing +.Sp +.Vb 1 +\& $tempdir = tempdir ( $template, DIR => File::Spec\->tmpdir); +.Ve +.Sp +but shorter. Parent directory specifications are stripped from the +template itself. The \f(CW\*(C`TMPDIR\*(C'\fR option is ignored if \f(CW\*(C`DIR\*(C'\fR is set +explicitly. Additionally, \f(CW\*(C`TMPDIR\*(C'\fR is implied if neither a template +nor a directory are supplied. +.Sp +.Vb 1 +\& $tempdir = tempdir( $template, CLEANUP => 1); +.Ve +.Sp +Create a temporary directory using the supplied template, but +attempt to remove it (and all files inside it) when the program +exits. Note that an attempt will be made to remove all files from +the directory even if they were not created by this module (otherwise +why ask to clean it up?). The directory removal is made with +the \fBrmtree()\fR function from the File::Path module. +Of course, if the template is not specified, the temporary directory +will be created in \fBtmpdir()\fR and will also be removed at program exit. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.SH "MKTEMP FUNCTIONS" +.IX Header "MKTEMP FUNCTIONS" +The following functions are Perl implementations of the +\&\fBmktemp()\fR family of temp file generation system calls. +.IP "\fBmkstemp\fR" 4 +.IX Item "mkstemp" +Given a template, returns a filehandle to the temporary file and the name +of the file. +.Sp +.Vb 1 +\& ($fh, $name) = mkstemp( $template ); +.Ve +.Sp +In scalar context, just the filehandle is returned. +.Sp +The template may be any filename with some number of X's appended +to it, for example \fI/tmp/temp.XXXX\fR. The trailing X's are replaced +with unique alphanumeric combinations. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.IP "\fBmkstemps\fR" 4 +.IX Item "mkstemps" +Similar to \fBmkstemp()\fR, except that an extra argument can be supplied +with a suffix to be appended to the template. +.Sp +.Vb 1 +\& ($fh, $name) = mkstemps( $template, $suffix ); +.Ve +.Sp +For example a template of \f(CW\*(C`testXXXXXX\*(C'\fR and suffix of \f(CW\*(C`.dat\*(C'\fR +would generate a file similar to \fItesthGji_w.dat\fR. +.Sp +Returns just the filehandle alone when called in scalar context. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.IP "\fBmkdtemp\fR" 4 +.IX Item "mkdtemp" +Create a directory from a template. The template must end in +X's that are replaced by the routine. +.Sp +.Vb 1 +\& $tmpdir_name = mkdtemp($template); +.Ve +.Sp +Returns the name of the temporary directory created. +.Sp +Directory must be removed by the caller. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.IP "\fBmktemp\fR" 4 +.IX Item "mktemp" +Returns a valid temporary filename but does not guarantee +that the file will not be opened by someone else. +.Sp +.Vb 1 +\& $unopened_file = mktemp($template); +.Ve +.Sp +Template is the same as that required by \fBmkstemp()\fR. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.SH "POSIX FUNCTIONS" +.IX Header "POSIX FUNCTIONS" +This section describes the re-implementation of the \fBtmpnam()\fR +and \fBtmpfile()\fR functions described in \s-1POSIX\s0 +using the \fBmkstemp()\fR from this module. +.PP +Unlike the \s-1POSIX\s0 implementations, the directory used +for the temporary file is not specified in a system include +file (\f(CW\*(C`P_tmpdir\*(C'\fR) but simply depends on the choice of \fBtmpdir()\fR +returned by File::Spec. On some implementations this +location can be set using the \f(CW\*(C`TMPDIR\*(C'\fR environment variable, which +may not be secure. +If this is a problem, simply use \fBmkstemp()\fR and specify a template. +.IP "\fBtmpnam\fR" 4 +.IX Item "tmpnam" +When called in scalar context, returns the full name (including path) +of a temporary file (uses \fBmktemp()\fR). The only check is that the file does +not already exist, but there is no guarantee that that condition will +continue to apply. +.Sp +.Vb 1 +\& $file = tmpnam(); +.Ve +.Sp +When called in list context, a filehandle to the open file and +a filename are returned. This is achieved by calling \fBmkstemp()\fR +after constructing a suitable template. +.Sp +.Vb 1 +\& ($fh, $file) = tmpnam(); +.Ve +.Sp +If possible, this form should be used to prevent possible +race conditions. +.Sp +See \*(L"tmpdir\*(R" in File::Spec for information on the choice of temporary +directory for a particular operating system. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.IP "\fBtmpfile\fR" 4 +.IX Item "tmpfile" +Returns the filehandle of a temporary file. +.Sp +.Vb 1 +\& $fh = tmpfile(); +.Ve +.Sp +The file is removed when the filehandle is closed or when the program +exits. No access to the filename is provided. +.Sp +If the temporary file can not be created undef is returned. +Currently this command will probably not work when the temporary +directory is on an \s-1NFS\s0 file system. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Available since 0.05. +.Sp +Returning undef if unable to create file added in 0.12. +.SH "ADDITIONAL FUNCTIONS" +.IX Header "ADDITIONAL FUNCTIONS" +These functions are provided for backwards compatibility +with common tempfile generation C library functions. +.PP +They are not exported and must be addressed using the full package +name. +.IP "\fBtempnam\fR" 4 +.IX Item "tempnam" +Return the name of a temporary file in the specified directory +using a prefix. The file is guaranteed not to exist at the time +the function was called, but such guarantees are good for one +clock tick only. Always use the proper form of \f(CW\*(C`sysopen\*(C'\fR +with \f(CW\*(C`O_CREAT | O_EXCL\*(C'\fR if you must open such a filename. +.Sp +.Vb 1 +\& $filename = File::Temp::tempnam( $dir, $prefix ); +.Ve +.Sp +Equivalent to running \fBmktemp()\fR with \f(CW$dir\fR/$prefixXXXXXXXX +(using unix file convention as an example) +.Sp +Because this function uses \fBmktemp()\fR, it can suffer from race conditions. +.Sp +Will \fBcroak()\fR if there is an error. +.Sp +Current \s-1API\s0 available since 0.05. +.SH "UTILITY FUNCTIONS" +.IX Header "UTILITY FUNCTIONS" +Useful functions for dealing with the filehandle and filename. +.IP "\fBunlink0\fR" 4 +.IX Item "unlink0" +Given an open filehandle and the associated filename, make a safe +unlink. This is achieved by first checking that the filename and +filehandle initially point to the same file and that the number of +links to the file is 1 (all fields returned by \fBstat()\fR are compared). +Then the filename is unlinked and the filehandle checked once again to +verify that the number of links on that file is now 0. This is the +closest you can come to making sure that the filename unlinked was the +same as the file whose descriptor you hold. +.Sp +.Vb 2 +\& unlink0($fh, $path) +\& or die "Error unlinking file $path safely"; +.Ve +.Sp +Returns false on error but \fBcroaks()\fR if there is a security +anomaly. The filehandle is not closed since on some occasions this is +not required. +.Sp +On some platforms, for example Windows \s-1NT,\s0 it is not possible to +unlink an open file (the file must be closed first). On those +platforms, the actual unlinking is deferred until the program ends and +good status is returned. A check is still performed to make sure that +the filehandle and filename are pointing to the same thing (but not at +the time the end block is executed since the deferred removal may not +have access to the filehandle). +.Sp +Additionally, on Windows \s-1NT\s0 not all the fields returned by \fBstat()\fR can +be compared. For example, the \f(CW\*(C`dev\*(C'\fR and \f(CW\*(C`rdev\*(C'\fR fields seem to be +different. Also, it seems that the size of the file returned by \fBstat()\fR +does not always agree, with \f(CW\*(C`stat(FH)\*(C'\fR being more accurate than +\&\f(CW\*(C`stat(filename)\*(C'\fR, presumably because of caching issues even when +using autoflush (this is usually overcome by waiting a while after +writing to the tempfile before attempting to \f(CW\*(C`unlink0\*(C'\fR it). +.Sp +Finally, on \s-1NFS\s0 file systems the link count of the file handle does +not always go to zero immediately after unlinking. Currently, this +command is expected to fail on \s-1NFS\s0 disks. +.Sp +This function is disabled if the global variable \f(CW$KEEP_ALL\fR is true +and an unlink on open file is supported. If the unlink is to be deferred +to the \s-1END\s0 block, the file is still registered for removal. +.Sp +This function should not be called if you are using the object oriented +interface since the it will interfere with the object destructor deleting +the file. +.Sp +Available Since 0.05. +.Sp +If can not unlink open file, defer removal until later available since 0.06. +.IP "\fBcmpstat\fR" 4 +.IX Item "cmpstat" +Compare \f(CW\*(C`stat\*(C'\fR of filehandle with \f(CW\*(C`stat\*(C'\fR of provided filename. This +can be used to check that the filename and filehandle initially point +to the same file and that the number of links to the file is 1 (all +fields returned by \fBstat()\fR are compared). +.Sp +.Vb 2 +\& cmpstat($fh, $path) +\& or die "Error comparing handle with file"; +.Ve +.Sp +Returns false if the stat information differs or if the link count is +greater than 1. Calls croak if there is a security anomaly. +.Sp +On certain platforms, for example Windows, not all the fields returned by \fBstat()\fR +can be compared. For example, the \f(CW\*(C`dev\*(C'\fR and \f(CW\*(C`rdev\*(C'\fR fields seem to be +different in Windows. Also, it seems that the size of the file +returned by \fBstat()\fR does not always agree, with \f(CW\*(C`stat(FH)\*(C'\fR being more +accurate than \f(CW\*(C`stat(filename)\*(C'\fR, presumably because of caching issues +even when using autoflush (this is usually overcome by waiting a while +after writing to the tempfile before attempting to \f(CW\*(C`unlink0\*(C'\fR it). +.Sp +Not exported by default. +.Sp +Current \s-1API\s0 available since 0.14. +.IP "\fBunlink1\fR" 4 +.IX Item "unlink1" +Similar to \f(CW\*(C`unlink0\*(C'\fR except after file comparison using cmpstat, the +filehandle is closed prior to attempting to unlink the file. This +allows the file to be removed without using an \s-1END\s0 block, but does +mean that the post-unlink comparison of the filehandle state provided +by \f(CW\*(C`unlink0\*(C'\fR is not available. +.Sp +.Vb 2 +\& unlink1($fh, $path) +\& or die "Error closing and unlinking file"; +.Ve +.Sp +Usually called from the object destructor when using the \s-1OO\s0 interface. +.Sp +Not exported by default. +.Sp +This function is disabled if the global variable \f(CW$KEEP_ALL\fR is true. +.Sp +Can call \fBcroak()\fR if there is a security anomaly during the \fBstat()\fR +comparison. +.Sp +Current \s-1API\s0 available since 0.14. +.IP "\fBcleanup\fR" 4 +.IX Item "cleanup" +Calling this function will cause any temp files or temp directories +that are registered for removal to be removed. This happens automatically +when the process exits but can be triggered manually if the caller is sure +that none of the temp files are required. This method can be registered as +an Apache callback. +.Sp +Note that if a temp directory is your current directory, it cannot be +removed. \f(CW\*(C`chdir()\*(C'\fR out of the directory first before calling +\&\f(CW\*(C`cleanup()\*(C'\fR. (For the cleanup at program exit when the \s-1CLEANUP\s0 flag +is set, this happens automatically.) +.Sp +On OSes where temp files are automatically removed when the temp file +is closed, calling this function will have no effect other than to remove +temporary directories (which may include temporary files). +.Sp +.Vb 1 +\& File::Temp::cleanup(); +.Ve +.Sp +Not exported by default. +.Sp +Current \s-1API\s0 available since 0.15. +.SH "PACKAGE VARIABLES" +.IX Header "PACKAGE VARIABLES" +These functions control the global state of the package. +.IP "\fBsafe_level\fR" 4 +.IX Item "safe_level" +Controls the lengths to which the module will go to check the safety of the +temporary file or directory before proceeding. +Options are: +.RS 4 +.IP "\s-1STANDARD\s0" 8 +.IX Item "STANDARD" +Do the basic security measures to ensure the directory exists and is +writable, that temporary files are opened only if they do not already +exist, and that possible race conditions are avoided. Finally the +unlink0 function is used to remove files safely. +.IP "\s-1MEDIUM\s0" 8 +.IX Item "MEDIUM" +In addition to the \s-1STANDARD\s0 security, the output directory is checked +to make sure that it is owned either by root or the user running the +program. If the directory is writable by group or by other, it is then +checked to make sure that the sticky bit is set. +.Sp +Will not work on platforms that do not support the \f(CW\*(C`\-k\*(C'\fR test +for sticky bit. +.IP "\s-1HIGH\s0" 8 +.IX Item "HIGH" +In addition to the \s-1MEDIUM\s0 security checks, also check for the +possibility of ``\fBchown()\fR giveaway'' using the \s-1POSIX\s0 +\&\fBsysconf()\fR function. If this is a possibility, each directory in the +path is checked in turn for safeness, recursively walking back to the +root directory. +.Sp +For platforms that do not support the \s-1POSIX\s0 +\&\f(CW\*(C`_PC_CHOWN_RESTRICTED\*(C'\fR symbol (for example, Windows \s-1NT\s0) it is +assumed that ``\fBchown()\fR giveaway'' is possible and the recursive test +is performed. +.RE +.RS 4 +.Sp +The level can be changed as follows: +.Sp +.Vb 1 +\& File::Temp\->safe_level( File::Temp::HIGH ); +.Ve +.Sp +The level constants are not exported by the module. +.Sp +Currently, you must be running at least perl v5.6.0 in order to +run with \s-1MEDIUM\s0 or \s-1HIGH\s0 security. This is simply because the +safety tests use functions from Fcntl that are not +available in older versions of perl. The problem is that the version +number for Fcntl is the same in perl 5.6.0 and in 5.005_03 even though +they are different versions. +.Sp +On systems that do not support the \s-1HIGH\s0 or \s-1MEDIUM\s0 safety levels +(for example Win \s-1NT\s0 or \s-1OS/2\s0) any attempt to change the level will +be ignored. The decision to ignore rather than raise an exception +allows portable programs to be written with high security in mind +for the systems that can support this without those programs failing +on systems where the extra tests are irrelevant. +.Sp +If you really need to see whether the change has been accepted +simply examine the return value of \f(CW\*(C`safe_level\*(C'\fR. +.Sp +.Vb 3 +\& $newlevel = File::Temp\->safe_level( File::Temp::HIGH ); +\& die "Could not change to high security" +\& if $newlevel != File::Temp::HIGH; +.Ve +.Sp +Available since 0.05. +.RE +.IP "TopSystemUID" 4 +.IX Item "TopSystemUID" +This is the highest \s-1UID\s0 on the current system that refers to a root +\&\s-1UID.\s0 This is used to make sure that the temporary directory is +owned by a system \s-1UID\s0 (\f(CW\*(C`root\*(C'\fR, \f(CW\*(C`bin\*(C'\fR, \f(CW\*(C`sys\*(C'\fR etc) rather than +simply by root. +.Sp +This is required since on many unix systems \f(CW\*(C`/tmp\*(C'\fR is not owned +by root. +.Sp +Default is to assume that any \s-1UID\s0 less than or equal to 10 is a root +\&\s-1UID.\s0 +.Sp +.Vb 2 +\& File::Temp\->top_system_uid(10); +\& my $topid = File::Temp\->top_system_uid; +.Ve +.Sp +This value can be adjusted to reduce security checking if required. +The value is only relevant when \f(CW\*(C`safe_level\*(C'\fR is set to \s-1MEDIUM\s0 or higher. +.Sp +Available since 0.05. +.IP "\fB\f(CB$KEEP_ALL\fB\fR" 4 +.IX Item "$KEEP_ALL" +Controls whether temporary files and directories should be retained +regardless of any instructions in the program to remove them +automatically. This is useful for debugging but should not be used in +production code. +.Sp +.Vb 1 +\& $File::Temp::KEEP_ALL = 1; +.Ve +.Sp +Default is for files to be removed as requested by the caller. +.Sp +In some cases, files will only be retained if this variable is true +when the file is created. This means that you can not create a temporary +file, set this variable and expect the temp file to still be around +when the program exits. +.IP "\fB\f(CB$DEBUG\fB\fR" 4 +.IX Item "$DEBUG" +Controls whether debugging messages should be enabled. +.Sp +.Vb 1 +\& $File::Temp::DEBUG = 1; +.Ve +.Sp +Default is for debugging mode to be disabled. +.Sp +Available since 0.15. +.SH "WARNING" +.IX Header "WARNING" +For maximum security, endeavour always to avoid ever looking at, +touching, or even imputing the existence of the filename. You do not +know that that filename is connected to the same file as the handle +you have, and attempts to check this can only trigger more race +conditions. It's far more secure to use the filehandle alone and +dispense with the filename altogether. +.PP +If you need to pass the handle to something that expects a filename +then on a unix system you can use \f(CW\*(C`"/dev/fd/" . fileno($fh)\*(C'\fR for +arbitrary programs. Perl code that uses the 2\-argument version of +\&\f(CW\*(C`open\*(C'\fR can be passed \f(CW\*(C`"+<=&" . fileno($fh)\*(C'\fR. Otherwise you +will need to pass the filename. You will have to clear the +close-on-exec bit on that file descriptor before passing it to another +process. +.PP +.Vb 3 +\& use Fcntl qw/F_SETFD F_GETFD/; +\& fcntl($tmpfh, F_SETFD, 0) +\& or die "Can\*(Aqt clear close\-on\-exec flag on temp fh: $!\en"; +.Ve +.SS "Temporary files and \s-1NFS\s0" +.IX Subsection "Temporary files and NFS" +Some problems are associated with using temporary files that reside +on \s-1NFS\s0 file systems and it is recommended that a local filesystem +is used whenever possible. Some of the security tests will most probably +fail when the temp file is not local. Additionally, be aware that +the performance of I/O operations over \s-1NFS\s0 will not be as good as for +a local disk. +.SS "Forking" +.IX Subsection "Forking" +In some cases files created by File::Temp are removed from within an +\&\s-1END\s0 block. Since \s-1END\s0 blocks are triggered when a child process exits +(unless \f(CW\*(C`POSIX::_exit()\*(C'\fR is used by the child) File::Temp takes care +to only remove those temp files created by a particular process \s-1ID.\s0 This +means that a child will not attempt to remove temp files created by the +parent process. +.PP +If you are forking many processes in parallel that are all creating +temporary files, you may need to reset the random number seed using +srand(\s-1EXPR\s0) in each child else all the children will attempt to walk +through the same set of random file names and may well cause +themselves to give up if they exceed the number of retry attempts. +.SS "Directory removal" +.IX Subsection "Directory removal" +Note that if you have chdir'ed into the temporary directory and it is +subsequently cleaned up (either in the \s-1END\s0 block or as part of object +destruction), then you will get a warning from \fBFile::Path::rmtree()\fR. +.SS "Taint mode" +.IX Subsection "Taint mode" +If you need to run code under taint mode, updating to the latest +File::Spec is highly recommended. On Windows, if the directory +given by File::Spec::tmpdir isn't writable, File::Temp will attempt +to fallback to the user's local application data directory or croak +with an error. +.SS "\s-1BINMODE\s0" +.IX Subsection "BINMODE" +The file returned by File::Temp will have been opened in binary mode +if such a mode is available. If that is not correct, use the \f(CW\*(C`binmode()\*(C'\fR +function to change the mode of the filehandle. +.PP +Note that you can modify the encoding of a file opened by File::Temp +also by using \f(CW\*(C`binmode()\*(C'\fR. +.SH "HISTORY" +.IX Header "HISTORY" +Originally began life in May 1999 as an \s-1XS\s0 interface to the system +\&\fBmkstemp()\fR function. In March 2000, the OpenBSD \fBmkstemp()\fR code was +translated to Perl for total control of the code's +security checking, to ensure the presence of the function regardless of +operating system and to help with portability. The module was shipped +as a standard part of perl from v5.6.1. +.PP +Thanks to Tom Christiansen for suggesting that this module +should be written and providing ideas for code improvements and +security enhancements. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"tmpnam\*(R" in \s-1POSIX\s0, \*(L"tmpfile\*(R" in \s-1POSIX\s0, File::Spec, File::Path +.PP +See IO::File and File::MkTemp, Apache::TempFile for +different implementations of temporary file handling. +.PP +See File::Tempdir for an alternative object-oriented wrapper for +the \f(CW\*(C`tempdir\*(C'\fR function. +.SH "SUPPORT" +.IX Header "SUPPORT" +Bugs may be submitted through the \s-1RT\s0 bug tracker +(or bug\-File\-Temp@rt.cpan.org ). +.PP +There is also a mailing list available for users of this distribution, at +. +.PP +There is also an irc channel available for users of this distribution, at +\&\f(CW\*(C`#toolchain\*(C'\fR on \f(CW\*(C`irc.perl.org\*(C'\fR . +.SH "AUTHOR" +.IX Header "AUTHOR" +Tim Jenness +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Karen Etheridge +.IP "\(bu" 4 +Slaven Rezic +.IP "\(bu" 4 +Peter Rabbitson +.IP "\(bu" 4 +Olivier Mengue +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Kevin Ryde +.IP "\(bu" 4 +Peter John Acklam +.IP "\(bu" 4 +Slaven Rezic +.IP "\(bu" 4 +James E. Keenan +.IP "\(bu" 4 +Brian Mowrey +.IP "\(bu" 4 +Dagfinn Ilmari Mannsa\*oker +.IP "\(bu" 4 +David Steinbrunner +.IP "\(bu" 4 +Ed Avis +.IP "\(bu" 4 +Guillem Jover +.IP "\(bu" 4 +Ben Tilly +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2019 by Tim Jenness and the \s-1UK\s0 Particle Physics and Astronomy Research Council. +.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. diff --git a/data/miniconda3/man/man3/File%3A%3Astat.3 b/data/miniconda3/man/man3/File%3A%3Astat.3 new file mode 100644 index 0000000000000000000000000000000000000000..7cfd42f37f14ed0e1a775bf69e570bb12e7fbb9a --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3Astat.3 @@ -0,0 +1,267 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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::stat 3" +.TH File::stat 3 "2020-12-18" "perl v5.32.1" "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" +File::stat \- by\-name interface to Perl's built\-in stat() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use File::stat; +\& $st = stat($file) or die "No $file: $!"; +\& if ( ($st\->mode & 0111) && $st\->nlink > 1) ) { +\& print "$file is executable with lotsa links\en"; +\& } +\& +\& if ( \-x $st ) { +\& print "$file is executable\en"; +\& } +\& +\& use Fcntl "S_IRUSR"; +\& if ( $st\->cando(S_IRUSR, 1) ) { +\& print "My effective uid can read $file\en"; +\& } +\& +\& use File::stat qw(:FIELDS); +\& stat($file) or die "No $file: $!"; +\& if ( ($st_mode & 0111) && ($st_nlink > 1) ) { +\& print "$file is executable with lotsa links\en"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBstat()\fR +and \fBlstat()\fR functions, replacing them with versions that return +\&\*(L"File::stat\*(R" objects. This object has methods that +return the similarly named structure field name from the +\&\fBstat\fR\|(2) function; namely, +dev, +ino, +mode, +nlink, +uid, +gid, +rdev, +size, +atime, +mtime, +ctime, +blksize, +and +blocks. +.PP +As of version 1.02 (provided with perl 5.12) the object provides \f(CW"\-X"\fR +overloading, so you can call filetest operators (\f(CW\*(C`\-f\*(C'\fR, \f(CW\*(C`\-x\*(C'\fR, and so +on) on it. It also provides a \f(CW\*(C`\->cando\*(C'\fR method, called like +.PP +.Vb 1 +\& $st\->cando( ACCESS, EFFECTIVE ) +.Ve +.PP +where \fI\s-1ACCESS\s0\fR is one of \f(CW\*(C`S_IRUSR\*(C'\fR, \f(CW\*(C`S_IWUSR\*(C'\fR or \f(CW\*(C`S_IXUSR\*(C'\fR from the +Fcntl module, and \fI\s-1EFFECTIVE\s0\fR indicates whether to use +effective (true) or real (false) ids. The method interprets the \f(CW\*(C`mode\*(C'\fR, +\&\f(CW\*(C`uid\*(C'\fR and \f(CW\*(C`gid\*(C'\fR fields, and returns whether or not the current process +would be allowed the specified access. +.PP +If you don't want to use the objects, you may import the \f(CW\*(C`\->cando\*(C'\fR +method into your namespace as a regular function called \f(CW\*(C`stat_cando\*(C'\fR. +This takes an arrayref containing the return values of \f(CW\*(C`stat\*(C'\fR or +\&\f(CW\*(C`lstat\*(C'\fR as its first argument, and interprets it for you. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your \fBstat()\fR and \fBlstat()\fR functions.) Access these fields as +variables named with a preceding \f(CW\*(C`st_\*(C'\fR in front their method names. +Thus, \f(CW\*(C`$stat_obj\->dev()\*(C'\fR corresponds to \f(CW$st_dev\fR if you import +the fields. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "BUGS" +.IX Header "BUGS" +As of Perl 5.8.0 after using this module you cannot use the implicit +\&\f(CW$_\fR or the special filehandle \f(CW\*(C`_\*(C'\fR with \fBstat()\fR or \fBlstat()\fR, trying +to do so leads into strange errors. The workaround is for \f(CW$_\fR to +be explicit +.PP +.Vb 1 +\& my $stat_obj = stat $_; +.Ve +.PP +and for \f(CW\*(C`_\*(C'\fR to explicitly populate the object using the unexported +and undocumented \fBpopulate()\fR function with \fBCORE::stat()\fR: +.PP +.Vb 1 +\& my $stat_obj = File::stat::populate(CORE::stat(_)); +.Ve +.SH "ERRORS" +.IX Header "ERRORS" +.IP "\-%s is not implemented on a File::stat object" 4 +.IX Item "-%s is not implemented on a File::stat object" +The filetest operators \f(CW\*(C`\-t\*(C'\fR, \f(CW\*(C`\-T\*(C'\fR and \f(CW\*(C`\-B\*(C'\fR are not implemented, as +they require more information than just a stat buffer. +.SH "WARNINGS" +.IX Header "WARNINGS" +These can all be disabled with +.PP +.Vb 1 +\& no warnings "File::stat"; +.Ve +.IP "File::stat ignores use filetest 'access'" 4 +.IX Item "File::stat ignores use filetest 'access'" +You have tried to use one of the \f(CW\*(C`\-rwxRWX\*(C'\fR filetests with \f(CW\*(C`use +filetest \*(Aqaccess\*(Aq\*(C'\fR in effect. \f(CW\*(C`File::stat\*(C'\fR will ignore the pragma, and +just use the information in the \f(CW\*(C`mode\*(C'\fR member as usual. +.IP "File::stat ignores \s-1VMS\s0 ACLs" 4 +.IX Item "File::stat ignores VMS ACLs" +\&\s-1VMS\s0 systems have a permissions structure that cannot be completely +represented in a stat buffer, and unlike on other systems the builtin +filetest operators respect this. The \f(CW\*(C`File::stat\*(C'\fR overloads, however, +do not, since the information required is not available. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/FileCache.3 b/data/miniconda3/man/man3/FileCache.3 new file mode 100644 index 0000000000000000000000000000000000000000..0c2fd4d17522bdbd65babe313e588aa53bb75c16 --- /dev/null +++ b/data/miniconda3/man/man3/FileCache.3 @@ -0,0 +1,209 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "FileCache 3" +.TH FileCache 3 "2020-12-18" "perl v5.32.1" "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" +FileCache \- keep more files open than the system permits +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& no strict \*(Aqrefs\*(Aq; +\& +\& use FileCache; +\& # or +\& use FileCache maxopen => 16; +\& +\& cacheout $mode, $path; +\& # or +\& cacheout $path; +\& print $path @data; +\& +\& $fh = cacheout $mode, $path; +\& # or +\& $fh = cacheout $path; +\& print $fh @data; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`cacheout\*(C'\fR function will make sure that there's a filehandle open +for reading or writing available as the pathname you give it. It +automatically closes and re-opens files if you exceed your system's +maximum number of file descriptors, or the suggested maximum \fImaxopen\fR. +.IP "cacheout \s-1EXPR\s0" 4 +.IX Item "cacheout EXPR" +The 1\-argument form of cacheout will open a file for writing (\f(CW\*(Aq>\*(Aq\fR) +on it's first use, and appending (\f(CW\*(Aq>>\*(Aq\fR) thereafter. +.Sp +Returns \s-1EXPR\s0 on success for convenience. You may neglect the +return value and manipulate \s-1EXPR\s0 as the filehandle directly if you prefer. +.IP "cacheout \s-1MODE, EXPR\s0" 4 +.IX Item "cacheout MODE, EXPR" +The 2\-argument form of cacheout will use the supplied mode for the initial +and subsequent openings. Most valid modes for 3\-argument \f(CW\*(C`open\*(C'\fR are supported +namely; \f(CW\*(Aq>\*(Aq\fR, \f(CW\*(Aq+>\*(Aq\fR, \f(CW\*(Aq<\*(Aq\fR, \f(CW\*(Aq<+\*(Aq\fR, \f(CW\*(Aq>>\*(Aq\fR, +\&\f(CW \*(Aq|\-\*(Aq \fR and \f(CW \*(Aq\-|\*(Aq \fR +.Sp +To pass supplemental arguments to a program opened with \f(CW \*(Aq|\-\*(Aq \fR or \f(CW \*(Aq\-|\*(Aq \fR +append them to the command string as you would system \s-1EXPR.\s0 +.Sp +Returns \s-1EXPR\s0 on success for convenience. You may neglect the +return value and manipulate \s-1EXPR\s0 as the filehandle directly if you prefer. +.SH "CAVEATS" +.IX Header "CAVEATS" +While it is permissible to \f(CW\*(C`close\*(C'\fR a FileCache managed file, +do not do so if you are calling \f(CW\*(C`FileCache::cacheout\*(C'\fR from a package other +than which it was imported, or with another module which overrides \f(CW\*(C`close\*(C'\fR. +If you must, use \f(CW\*(C`FileCache::cacheout_close\*(C'\fR. +.PP +Although FileCache can be used with piped opens ('\-|' or '|\-') doing so is +strongly discouraged. If FileCache finds it necessary to close and then reopen +a pipe, the command at the far end of the pipe will be reexecuted \- the results +of performing \s-1IO\s0 on FileCache'd pipes is unlikely to be what you expect. The +ability to use FileCache on pipes may be removed in a future release. +.PP +FileCache does not store the current file offset if it finds it necessary to +close a file. When the file is reopened, the offset will be as specified by the +original \f(CW\*(C`open\*(C'\fR file mode. This could be construed to be a bug. +.PP +The module functionality relies on symbolic references, so things will break +under 'use strict' unless 'no strict \*(L"refs\*(R"' is also specified. +.SH "BUGS" +.IX Header "BUGS" +\&\fIsys/param.h\fR lies with its \f(CW\*(C`NOFILE\*(C'\fR define on some systems, +so you may have to set \fImaxopen\fR yourself. diff --git a/data/miniconda3/man/man3/FileHandle.3 b/data/miniconda3/man/man3/FileHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..f775aedf16eec8e0bf7529b17ee34e815d85fdef --- /dev/null +++ b/data/miniconda3/man/man3/FileHandle.3 @@ -0,0 +1,293 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "FileHandle 3" +.TH FileHandle 3 "2020-12-18" "perl v5.32.1" "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" +FileHandle \- supply object methods for filehandles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use FileHandle; +\& +\& $fh = FileHandle\->new; +\& if ($fh\->open("< file")) { +\& print <$fh>; +\& $fh\->close; +\& } +\& +\& $fh = FileHandle\->new("> FOO"); +\& if (defined $fh) { +\& print $fh "bar\en"; +\& $fh\->close; +\& } +\& +\& $fh = FileHandle\->new("file", "r"); +\& if (defined $fh) { +\& print <$fh>; +\& undef $fh; # automatically closes the file +\& } +\& +\& $fh = FileHandle\->new("file", O_WRONLY|O_APPEND); +\& if (defined $fh) { +\& print $fh "corge\en"; +\& undef $fh; # automatically closes the file +\& } +\& +\& $pos = $fh\->getpos; +\& $fh\->setpos($pos); +\& +\& $fh\->setvbuf($buffer_var, _IOLBF, 1024); +\& +\& ($readfh, $writefh) = FileHandle::pipe; +\& +\& autoflush STDOUT 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\s-1NOTE:\s0 This class is now a front-end to the IO::* classes. +.PP +\&\f(CW\*(C`FileHandle::new\*(C'\fR creates a \f(CW\*(C`FileHandle\*(C'\fR, which is a reference to a +newly created symbol (see the \f(CW\*(C`Symbol\*(C'\fR package). If it receives any +parameters, they are passed to \f(CW\*(C`FileHandle::open\*(C'\fR; if the open fails, +the \f(CW\*(C`FileHandle\*(C'\fR object is destroyed. Otherwise, it is returned to +the caller. +.PP +\&\f(CW\*(C`FileHandle::new_from_fd\*(C'\fR creates a \f(CW\*(C`FileHandle\*(C'\fR like \f(CW\*(C`new\*(C'\fR does. +It requires two parameters, which are passed to \f(CW\*(C`FileHandle::fdopen\*(C'\fR; +if the fdopen fails, the \f(CW\*(C`FileHandle\*(C'\fR object is destroyed. +Otherwise, it is returned to the caller. +.PP +\&\f(CW\*(C`FileHandle::open\*(C'\fR accepts one parameter or two. With one parameter, +it is just a front end for the built-in \f(CW\*(C`open\*(C'\fR function. With two +parameters, the first parameter is a filename that may include +whitespace or other special characters, and the second parameter is +the open mode, optionally followed by a file permission value. +.PP +If \f(CW\*(C`FileHandle::open\*(C'\fR receives a Perl mode string (\*(L">\*(R", \*(L"+<\*(R", etc.) +or a \s-1POSIX\s0 \fBfopen()\fR mode string (\*(L"w\*(R", \*(L"r+\*(R", etc.), it uses the basic +Perl \f(CW\*(C`open\*(C'\fR operator. +.PP +If \f(CW\*(C`FileHandle::open\*(C'\fR is given a numeric mode, it passes that mode +and the optional permissions value to the Perl \f(CW\*(C`sysopen\*(C'\fR operator. +For convenience, \f(CW\*(C`FileHandle::import\*(C'\fR tries to import the O_XXX +constants from the Fcntl module. If dynamic loading is not available, +this may fail, but the rest of FileHandle will still work. +.PP +\&\f(CW\*(C`FileHandle::fdopen\*(C'\fR is like \f(CW\*(C`open\*(C'\fR except that its first parameter +is not a filename but rather a file handle name, a FileHandle object, +or a file descriptor number. +.PP +If the C functions \fBfgetpos()\fR and \fBfsetpos()\fR are available, then +\&\f(CW\*(C`FileHandle::getpos\*(C'\fR returns an opaque value that represents the +current position of the FileHandle, and \f(CW\*(C`FileHandle::setpos\*(C'\fR uses +that value to return to a previously visited position. +.PP +If the C function \fBsetvbuf()\fR is available, then \f(CW\*(C`FileHandle::setvbuf\*(C'\fR +sets the buffering policy for the FileHandle. The calling sequence +for the Perl function is the same as its C counterpart, including the +macros \f(CW\*(C`_IOFBF\*(C'\fR, \f(CW\*(C`_IOLBF\*(C'\fR, and \f(CW\*(C`_IONBF\*(C'\fR, except that the buffer +parameter specifies a scalar variable to use as a buffer. \s-1WARNING: A\s0 +variable used as a buffer by \f(CW\*(C`FileHandle::setvbuf\*(C'\fR must not be +modified in any way until the FileHandle is closed or until +\&\f(CW\*(C`FileHandle::setvbuf\*(C'\fR is called again, or memory corruption may +result! +.PP +See perlfunc for complete descriptions of each of the following +supported \f(CW\*(C`FileHandle\*(C'\fR methods, which are just front ends for the +corresponding built-in functions: +.PP +.Vb 8 +\& close +\& fileno +\& getc +\& gets +\& eof +\& clearerr +\& seek +\& tell +.Ve +.PP +See perlvar for complete descriptions of each of the following +supported \f(CW\*(C`FileHandle\*(C'\fR methods: +.PP +.Vb 12 +\& autoflush +\& output_field_separator +\& output_record_separator +\& input_record_separator +\& input_line_number +\& format_page_number +\& format_lines_per_page +\& format_lines_left +\& format_name +\& format_top_name +\& format_line_break_characters +\& format_formfeed +.Ve +.PP +Furthermore, for doing normal I/O you might need these: +.ie n .IP "$fh\->print" 4 +.el .IP "\f(CW$fh\fR\->print" 4 +.IX Item "$fh->print" +See \*(L"print\*(R" in perlfunc. +.ie n .IP "$fh\->printf" 4 +.el .IP "\f(CW$fh\fR\->printf" 4 +.IX Item "$fh->printf" +See \*(L"printf\*(R" in perlfunc. +.ie n .IP "$fh\->getline" 4 +.el .IP "\f(CW$fh\fR\->getline" 4 +.IX Item "$fh->getline" +This works like <$fh> described in \*(L"I/O Operators\*(R" in perlop +except that it's more readable and can be safely called in a +list context but still returns just one line. +.ie n .IP "$fh\->getlines" 4 +.el .IP "\f(CW$fh\fR\->getlines" 4 +.IX Item "$fh->getlines" +This works like <$fh> when called in a list context to +read all the remaining lines in a file, except that it's more readable. +It will also \fBcroak()\fR if accidentally called in a scalar context. +.PP +There are many other functions available since FileHandle is descended +from IO::File, IO::Seekable, and IO::Handle. Please see those +respective pages for documentation on more functions. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The \fB\s-1IO\s0\fR extension, +perlfunc, +\&\*(L"I/O Operators\*(R" in perlop. diff --git a/data/miniconda3/man/man3/Filter%3A%3ASimple.3 b/data/miniconda3/man/man3/Filter%3A%3ASimple.3 new file mode 100644 index 0000000000000000000000000000000000000000..6502cf8a6e7c5a839c2a08ac49eb5959b6842b4d --- /dev/null +++ b/data/miniconda3/man/man3/Filter%3A%3ASimple.3 @@ -0,0 +1,704 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Filter::Simple 3" +.TH Filter::Simple 3 "2020-12-18" "perl v5.32.1" "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" +Filter::Simple \- Simplified source filtering +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # in MyFilter.pm: +\& +\& package MyFilter; +\& +\& use Filter::Simple; +\& +\& FILTER { ... }; +\& +\& # or just: +\& # +\& # use Filter::Simple sub { ... }; +\& +\& # in user\*(Aqs code: +\& +\& use MyFilter; +\& +\& # this code is filtered +\& +\& no MyFilter; +\& +\& # this code is not +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "The Problem" +.IX Subsection "The Problem" +Source filtering is an immensely powerful feature of recent versions of Perl. +It allows one to extend the language itself (e.g. the Switch module), to +simplify the language (e.g. Language::Pythonesque), or to completely recast the +language (e.g. Lingua::Romana::Perligata). Effectively, it allows one to use +the full power of Perl as its own, recursively applied, macro language. +.PP +The excellent Filter::Util::Call module (by Paul Marquess) provides a +usable Perl interface to source filtering, but it is often too powerful +and not nearly as simple as it could be. +.PP +To use the module it is necessary to do the following: +.IP "1." 4 +Download, build, and install the Filter::Util::Call module. +(If you have Perl 5.7.1 or later, this is already done for you.) +.IP "2." 4 +Set up a module that does a \f(CW\*(C`use Filter::Util::Call\*(C'\fR. +.IP "3." 4 +Within that module, create an \f(CW\*(C`import\*(C'\fR subroutine. +.IP "4." 4 +Within the \f(CW\*(C`import\*(C'\fR subroutine do a call to \f(CW\*(C`filter_add\*(C'\fR, passing +it either a subroutine reference. +.IP "5." 4 +Within the subroutine reference, call \f(CW\*(C`filter_read\*(C'\fR or \f(CW\*(C`filter_read_exact\*(C'\fR +to \*(L"prime\*(R" \f(CW$_\fR with source code data from the source file that will +\&\f(CW\*(C`use\*(C'\fR your module. Check the status value returned to see if any +source code was actually read in. +.IP "6." 4 +Process the contents of \f(CW$_\fR to change the source code in the desired manner. +.IP "7." 4 +Return the status value. +.IP "8." 4 +If the act of unimporting your module (via a \f(CW\*(C`no\*(C'\fR) should cause source +code filtering to cease, create an \f(CW\*(C`unimport\*(C'\fR subroutine, and have it call +\&\f(CW\*(C`filter_del\*(C'\fR. Make sure that the call to \f(CW\*(C`filter_read\*(C'\fR or +\&\f(CW\*(C`filter_read_exact\*(C'\fR in step 5 will not accidentally read past the +\&\f(CW\*(C`no\*(C'\fR. Effectively this limits source code filters to line-by-line +operation, unless the \f(CW\*(C`import\*(C'\fR subroutine does some fancy +pre-pre-parsing of the source code it's filtering. +.PP +For example, here is a minimal source code filter in a module named +\&\s-1BANG\s0.pm. It simply converts every occurrence of the sequence \f(CW\*(C`BANG\es+BANG\*(C'\fR +to the sequence \f(CW\*(C`die \*(AqBANG\*(Aq if $BANG\*(C'\fR in any piece of code following a +\&\f(CW\*(C`use BANG;\*(C'\fR statement (until the next \f(CW\*(C`no BANG;\*(C'\fR statement, if any): +.PP +.Vb 1 +\& package BANG; +\& +\& use Filter::Util::Call ; +\& +\& sub import { +\& filter_add( sub { +\& my $caller = caller; +\& my ($status, $no_seen, $data); +\& while ($status = filter_read()) { +\& if (/^\es*no\es+$caller\es*;\es*?$/) { +\& $no_seen=1; +\& last; +\& } +\& $data .= $_; +\& $_ = ""; +\& } +\& $_ = $data; +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g +\& unless $status < 0; +\& $_ .= "no $class;\en" if $no_seen; +\& return 1; +\& }) +\& } +\& +\& sub unimport { +\& filter_del(); +\& } +\& +\& 1 ; +.Ve +.PP +This level of sophistication puts filtering out of the reach of +many programmers. +.SS "A Solution" +.IX Subsection "A Solution" +The Filter::Simple module provides a simplified interface to +Filter::Util::Call; one that is sufficient for most common cases. +.PP +Instead of the above process, with Filter::Simple the task of setting up +a source code filter is reduced to: +.IP "1." 4 +Download and install the Filter::Simple module. +(If you have Perl 5.7.1 or later, this is already done for you.) +.IP "2." 4 +Set up a module that does a \f(CW\*(C`use Filter::Simple\*(C'\fR and then +calls \f(CW\*(C`FILTER { ... }\*(C'\fR. +.IP "3." 4 +Within the anonymous subroutine or block that is passed to +\&\f(CW\*(C`FILTER\*(C'\fR, process the contents of \f(CW$_\fR to change the source code in +the desired manner. +.PP +In other words, the previous example, would become: +.PP +.Vb 2 +\& package BANG; +\& use Filter::Simple; +\& +\& FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& }; +\& +\& 1 ; +.Ve +.PP +Note that the source code is passed as a single string, so any regex that +uses \f(CW\*(C`^\*(C'\fR or \f(CW\*(C`$\*(C'\fR to detect line boundaries will need the \f(CW\*(C`/m\*(C'\fR flag. +.SS "Disabling or changing behaviour" +.IX Subsection "Disabling or changing behaviour" +By default, the installed filter only filters up to a line consisting of one of +the three standard source \*(L"terminators\*(R": +.PP +.Vb 1 +\& no ModuleName; # optional comment +.Ve +.PP +or: +.PP +.Vb 1 +\& _\|_END_\|_ +.Ve +.PP +or: +.PP +.Vb 1 +\& _\|_DATA_\|_ +.Ve +.PP +but this can be altered by passing a second argument to \f(CW\*(C`use Filter::Simple\*(C'\fR +or \f(CW\*(C`FILTER\*(C'\fR (just remember: there's \fIno\fR comma after the initial block when +you use \f(CW\*(C`FILTER\*(C'\fR). +.PP +That second argument may be either a \f(CW\*(C`qr\*(C'\fR'd regular expression (which is then +used to match the terminator line), or a defined false value (which indicates +that no terminator line should be looked for), or a reference to a hash +(in which case the terminator is the value associated with the key +\&\f(CW\*(Aqterminator\*(Aq\fR. +.PP +For example, to cause the previous filter to filter only up to a line of the +form: +.PP +.Vb 1 +\& GNAB esu; +.Ve +.PP +you would write: +.PP +.Vb 2 +\& package BANG; +\& use Filter::Simple; +\& +\& FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& } +\& qr/^\es*GNAB\es+esu\es*;\es*?$/; +.Ve +.PP +or: +.PP +.Vb 4 +\& FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& } +\& { terminator => qr/^\es*GNAB\es+esu\es*;\es*?$/ }; +.Ve +.PP +and to prevent the filter's being turned off in any way: +.PP +.Vb 2 +\& package BANG; +\& use Filter::Simple; +\& +\& FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& } +\& ""; # or: 0 +.Ve +.PP +or: +.PP +.Vb 4 +\& FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& } +\& { terminator => "" }; +.Ve +.PP +\&\fBNote that, no matter what you set the terminator pattern to, +the actual terminator itself \f(BImust\fB be contained on a single source line.\fR +.SS "All-in-one interface" +.IX Subsection "All-in-one interface" +Separating the loading of Filter::Simple: +.PP +.Vb 1 +\& use Filter::Simple; +.Ve +.PP +from the setting up of the filtering: +.PP +.Vb 1 +\& FILTER { ... }; +.Ve +.PP +is useful because it allows other code (typically parser support code +or caching variables) to be defined before the filter is invoked. +However, there is often no need for such a separation. +.PP +In those cases, it is easier to just append the filtering subroutine and +any terminator specification directly to the \f(CW\*(C`use\*(C'\fR statement that loads +Filter::Simple, like so: +.PP +.Vb 3 +\& use Filter::Simple sub { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& }; +.Ve +.PP +This is exactly the same as: +.PP +.Vb 6 +\& use Filter::Simple; +\& BEGIN { +\& Filter::Simple::FILTER { +\& s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g; +\& }; +\& } +.Ve +.PP +except that the \f(CW\*(C`FILTER\*(C'\fR subroutine is not exported by Filter::Simple. +.SS "Filtering only specific components of source code" +.IX Subsection "Filtering only specific components of source code" +One of the problems with a filter like: +.PP +.Vb 1 +\& use Filter::Simple; +\& +\& FILTER { s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g }; +.Ve +.PP +is that it indiscriminately applies the specified transformation to +the entire text of your source program. So something like: +.PP +.Vb 2 +\& warn \*(AqBANG BANG, YOU\*(AqRE DEAD\*(Aq; +\& BANG BANG; +.Ve +.PP +will become: +.PP +.Vb 2 +\& warn \*(Aqdie \*(AqBANG\*(Aq if $BANG, YOU\*(AqRE DEAD\*(Aq; +\& die \*(AqBANG\*(Aq if $BANG; +.Ve +.PP +It is very common when filtering source to only want to apply the filter +to the non-character-string parts of the code, or alternatively to \fIonly\fR +the character strings. +.PP +Filter::Simple supports this type of filtering by automatically +exporting the \f(CW\*(C`FILTER_ONLY\*(C'\fR subroutine. +.PP +\&\f(CW\*(C`FILTER_ONLY\*(C'\fR takes a sequence of specifiers that install separate +(and possibly multiple) filters that act on only parts of the source code. +For example: +.PP +.Vb 1 +\& use Filter::Simple; +\& +\& FILTER_ONLY +\& code => sub { s/BANG\es+BANG/die \*(AqBANG\*(Aq if \e$BANG/g }, +\& quotelike => sub { s/BANG\es+BANG/CHITTY CHITTY/g }; +.Ve +.PP +The \f(CW"code"\fR subroutine will only be used to filter parts of the source +code that are not quotelikes, \s-1POD,\s0 or \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. The \f(CW\*(C`quotelike\*(C'\fR +subroutine only filters Perl quotelikes (including here documents). +.PP +The full list of alternatives is: +.ie n .IP """code""" 4 +.el .IP "\f(CW``code''\fR" 4 +.IX Item """code""" +Filters only those sections of the source code that are not quotelikes, \s-1POD,\s0 or +\&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR. +.ie n .IP """code_no_comments""" 4 +.el .IP "\f(CW``code_no_comments''\fR" 4 +.IX Item """code_no_comments""" +Filters only those sections of the source code that are not quotelikes, \s-1POD,\s0 +comments, or \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. +.ie n .IP """executable""" 4 +.el .IP "\f(CW``executable''\fR" 4 +.IX Item """executable""" +Filters only those sections of the source code that are not \s-1POD\s0 or \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. +.ie n .IP """executable_no_comments""" 4 +.el .IP "\f(CW``executable_no_comments''\fR" 4 +.IX Item """executable_no_comments""" +Filters only those sections of the source code that are not \s-1POD,\s0 comments, or \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. +.ie n .IP """quotelike""" 4 +.el .IP "\f(CW``quotelike''\fR" 4 +.IX Item """quotelike""" +Filters only Perl quotelikes (as interpreted by +\&\f(CW&Text::Balanced::extract_quotelike\fR). +.ie n .IP """string""" 4 +.el .IP "\f(CW``string''\fR" 4 +.IX Item """string""" +Filters only the string literal parts of a Perl quotelike (i.e. the +contents of a string literal, either half of a \f(CW\*(C`tr///\*(C'\fR, the second +half of an \f(CW\*(C`s///\*(C'\fR). +.ie n .IP """regex""" 4 +.el .IP "\f(CW``regex''\fR" 4 +.IX Item """regex""" +Filters only the pattern literal parts of a Perl quotelike (i.e. the +contents of a \f(CW\*(C`qr//\*(C'\fR or an \f(CW\*(C`m//\*(C'\fR, the first half of an \f(CW\*(C`s///\*(C'\fR). +.ie n .IP """all""" 4 +.el .IP "\f(CW``all''\fR" 4 +.IX Item """all""" +Filters everything. Identical in effect to \f(CW\*(C`FILTER\*(C'\fR. +.PP +Except for \f(CW\*(C`FILTER_ONLY code => sub {...}\*(C'\fR, each of +the component filters is called repeatedly, once for each component +found in the source code. +.PP +Note that you can also apply two or more of the same type of filter in +a single \f(CW\*(C`FILTER_ONLY\*(C'\fR. For example, here's a simple +macro-preprocessor that is only applied within regexes, +with a final debugging pass that prints the resulting source code: +.PP +.Vb 6 +\& use Regexp::Common; +\& FILTER_ONLY +\& regex => sub { s/!\e[/[^/g }, +\& regex => sub { s/%d/$RE{num}{int}/g }, +\& regex => sub { s/%f/$RE{num}{real}/g }, +\& all => sub { print if $::DEBUG }; +.Ve +.SS "Filtering only the code parts of source code" +.IX Subsection "Filtering only the code parts of source code" +Most source code ceases to be grammatically correct when it is broken up +into the pieces between string literals and regexes. So the \f(CW\*(Aqcode\*(Aq\fR +and \f(CW\*(Aqcode_no_comments\*(Aq\fR component filter behave slightly differently +from the other partial filters described in the previous section. +.PP +Rather than calling the specified processor on each individual piece of +code (i.e. on the bits between quotelikes), the \f(CW\*(Aqcode...\*(Aq\fR partial +filters operate on the entire source code, but with the quotelike bits +(and, in the case of \f(CW\*(Aqcode_no_comments\*(Aq\fR, the comments) \*(L"blanked out\*(R". +.PP +That is, a \f(CW\*(Aqcode...\*(Aq\fR filter \fIreplaces\fR each quoted string, quotelike, +regex, \s-1POD,\s0 and _\|_DATA_\|_ section with a placeholder. The +delimiters of this placeholder are the contents of the \f(CW$;\fR variable +at the time the filter is applied (normally \f(CW"\e034"\fR). The remaining +four bytes are a unique identifier for the component being replaced. +.PP +This approach makes it comparatively easy to write code preprocessors +without worrying about the form or contents of strings, regexes, etc. +.PP +For convenience, during a \f(CW\*(Aqcode...\*(Aq\fR filtering operation, Filter::Simple +provides a package variable (\f(CW$Filter::Simple::placeholder\fR) that +contains a pre-compiled regex that matches any placeholder...and +captures the identifier within the placeholder. Placeholders can be +moved and re-ordered within the source code as needed. +.PP +In addition, a second package variable (\f(CW@Filter::Simple::components\fR) +contains a list of the various pieces of \f(CW$_\fR, as they were originally split +up to allow placeholders to be inserted. +.PP +Once the filtering has been applied, the original strings, regexes, \s-1POD,\s0 +etc. are re-inserted into the code, by replacing each placeholder with +the corresponding original component (from \f(CW@components\fR). Note that +this means that the \f(CW@components\fR variable must be treated with extreme +care within the filter. The \f(CW@components\fR array stores the \*(L"back\- +translations\*(R" of each placeholder inserted into \f(CW$_\fR, as well as the +interstitial source code between placeholders. If the placeholder +backtranslations are altered in \f(CW@components\fR, they will be similarly +changed when the placeholders are removed from \f(CW$_\fR after the filter +is complete. +.PP +For example, the following filter detects concatenated pairs of +strings/quotelikes and reverses the order in which they are +concatenated: +.PP +.Vb 2 +\& package DemoRevCat; +\& use Filter::Simple; +\& +\& FILTER_ONLY code => sub { +\& my $ph = $Filter::Simple::placeholder; +\& s{ ($ph) \es* [.] \es* ($ph) }{ $2.$1 }gx +\& }; +.Ve +.PP +Thus, the following code: +.PP +.Vb 1 +\& use DemoRevCat; +\& +\& my $str = "abc" . q(def); +\& +\& print "$str\en"; +.Ve +.PP +would become: +.PP +.Vb 1 +\& my $str = q(def)."abc"; +\& +\& print "$str\en"; +.Ve +.PP +and hence print: +.PP +.Vb 1 +\& defabc +.Ve +.ie n .SS "Using Filter::Simple with an explicit ""import"" subroutine" +.el .SS "Using Filter::Simple with an explicit \f(CWimport\fP subroutine" +.IX Subsection "Using Filter::Simple with an explicit import subroutine" +Filter::Simple generates a special \f(CW\*(C`import\*(C'\fR subroutine for +your module (see \*(L"How it works\*(R") which would normally replace any +\&\f(CW\*(C`import\*(C'\fR subroutine you might have explicitly declared. +.PP +However, Filter::Simple is smart enough to notice your existing +\&\f(CW\*(C`import\*(C'\fR and Do The Right Thing with it. +That is, if you explicitly define an \f(CW\*(C`import\*(C'\fR subroutine in a package +that's using Filter::Simple, that \f(CW\*(C`import\*(C'\fR subroutine will still +be invoked immediately after any filter you install. +.PP +The only thing you have to remember is that the \f(CW\*(C`import\*(C'\fR subroutine +\&\fImust\fR be declared \fIbefore\fR the filter is installed. If you use \f(CW\*(C`FILTER\*(C'\fR +to install the filter: +.PP +.Vb 1 +\& package Filter::TurnItUpTo11; +\& +\& use Filter::Simple; +\& +\& FILTER { s/(\ew+)/\eU$1/ }; +.Ve +.PP +that will almost never be a problem, but if you install a filtering +subroutine by passing it directly to the \f(CW\*(C`use Filter::Simple\*(C'\fR +statement: +.PP +.Vb 1 +\& package Filter::TurnItUpTo11; +\& +\& use Filter::Simple sub{ s/(\ew+)/\eU$1/ }; +.Ve +.PP +then you must make sure that your \f(CW\*(C`import\*(C'\fR subroutine appears before +that \f(CW\*(C`use\*(C'\fR statement. +.SS "Using Filter::Simple and Exporter together" +.IX Subsection "Using Filter::Simple and Exporter together" +Likewise, Filter::Simple is also smart enough +to Do The Right Thing if you use Exporter: +.PP +.Vb 3 +\& package Switch; +\& use base Exporter; +\& use Filter::Simple; +\& +\& @EXPORT = qw(switch case); +\& @EXPORT_OK = qw(given when); +\& +\& FILTER { $_ = magic_Perl_filter($_) } +.Ve +.PP +Immediately after the filter has been applied to the source, +Filter::Simple will pass control to Exporter, so it can do its magic too. +.PP +Of course, here too, Filter::Simple has to know you're using Exporter +before it applies the filter. That's almost never a problem, but if you're +nervous about it, you can guarantee that things will work correctly by +ensuring that your \f(CW\*(C`use base Exporter\*(C'\fR always precedes your +\&\f(CW\*(C`use Filter::Simple\*(C'\fR. +.SS "How it works" +.IX Subsection "How it works" +The Filter::Simple module exports into the package that calls \f(CW\*(C`FILTER\*(C'\fR +(or \f(CW\*(C`use\*(C'\fRs it directly) \*(-- such as package \*(L"\s-1BANG\*(R"\s0 in the above example \*(-- +two automagically constructed +subroutines \*(-- \f(CW\*(C`import\*(C'\fR and \f(CW\*(C`unimport\*(C'\fR \*(-- which take care of all the +nasty details. +.PP +In addition, the generated \f(CW\*(C`import\*(C'\fR subroutine passes its own argument +list to the filtering subroutine, so the \s-1BANG\s0.pm filter could easily +be made parametric: +.PP +.Vb 1 +\& package BANG; +\& +\& use Filter::Simple; +\& +\& FILTER { +\& my ($die_msg, $var_name) = @_; +\& s/BANG\es+BANG/die \*(Aq$die_msg\*(Aq if \e${$var_name}/g; +\& }; +\& +\& # and in some user code: +\& +\& use BANG "BOOM", "BAM"; # "BANG BANG" becomes: die \*(AqBOOM\*(Aq if $BAM +.Ve +.PP +The specified filtering subroutine is called every time a \f(CW\*(C`use BANG\*(C'\fR is +encountered, and passed all the source code following that call, up to +either the next \f(CW\*(C`no BANG;\*(C'\fR (or whatever terminator you've set) or the +end of the source file, whichever occurs first. By default, any \f(CW\*(C`no +BANG;\*(C'\fR call must appear by itself on a separate line, or it is ignored. +.SH "AUTHOR" +.IX Header "AUTHOR" +Damian Conway +.SH "CONTACT" +.IX Header "CONTACT" +Filter::Simple is now maintained by the Perl5\-Porters. +Please submit bug via the \f(CW\*(C`perlbug\*(C'\fR tool that comes with your perl. +For usage instructions, read \f(CW\*(C`perldoc perlbug\*(C'\fR or possibly \f(CW\*(C`man perlbug\*(C'\fR. +For mostly anything else, please contact . +.PP +Maintainer of the \s-1CPAN\s0 release is Steffen Mueller . +Contact him with technical difficulties with respect to the packaging of the +\&\s-1CPAN\s0 module. +.PP +Praise of the module, flowers, and presents still go to the author, +Damian Conway . +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +.Vb 3 +\& Copyright (c) 2000\-2014, Damian Conway. All Rights Reserved. +\& This module is free software. It may be used, redistributed +\& and/or modified under the same terms as Perl itself. +.Ve diff --git a/data/miniconda3/man/man3/Filter%3A%3AUtil%3A%3ACall.3 b/data/miniconda3/man/man3/Filter%3A%3AUtil%3A%3ACall.3 new file mode 100644 index 0000000000000000000000000000000000000000..0f87d3587428aba8a90693086f4e7f8cdf5a7ef9 --- /dev/null +++ b/data/miniconda3/man/man3/Filter%3A%3AUtil%3A%3ACall.3 @@ -0,0 +1,616 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Filter::Util::Call 3" +.TH Filter::Util::Call 3 "2020-12-18" "perl v5.32.1" "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" +Filter::Util::Call \- Perl Source Filter Utility Module +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Filter::Util::Call ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides you with the framework to write \fISource Filters\fR +in Perl. +.PP +An alternate interface to Filter::Util::Call is now available. See +Filter::Simple for more details. +.PP +A \fIPerl Source Filter\fR is implemented as a Perl module. The structure +of the module can take one of two broadly similar formats. To +distinguish between them, the first will be referred to as \fImethod +filter\fR and the second as \fIclosure filter\fR. +.PP +Here is a skeleton for the \fImethod filter\fR: +.PP +.Vb 1 +\& package MyFilter ; +\& +\& use Filter::Util::Call ; +\& +\& sub import +\& { +\& my($type, @arguments) = @_ ; +\& filter_add([]) ; +\& } +\& +\& sub filter +\& { +\& my($self) = @_ ; +\& my($status) ; +\& +\& $status = filter_read() ; +\& $status ; +\& } +\& +\& 1 ; +.Ve +.PP +and this is the equivalent skeleton for the \fIclosure filter\fR: +.PP +.Vb 1 +\& package MyFilter ; +\& +\& use Filter::Util::Call ; +\& +\& sub import +\& { +\& my($type, @arguments) = @_ ; +\& +\& filter_add( +\& sub +\& { +\& my($status) ; +\& $status = filter_read() ; +\& $status ; +\& } ) +\& } +\& +\& 1 ; +.Ve +.PP +To make use of either of the two filter modules above, place the line +below in a Perl source file. +.PP +.Vb 1 +\& use MyFilter; +.Ve +.PP +In fact, the skeleton modules shown above are fully functional \fISource +Filters\fR, albeit fairly useless ones. All they does is filter the +source stream without modifying it at all. +.PP +As you can see both modules have a broadly similar structure. They both +make use of the \f(CW\*(C`Filter::Util::Call\*(C'\fR module and both have an \f(CW\*(C`import\*(C'\fR +method. The difference between them is that the \fImethod filter\fR +requires a \fIfilter\fR method, whereas the \fIclosure filter\fR gets the +equivalent of a \fIfilter\fR method with the anonymous sub passed to +\&\fIfilter_add\fR. +.PP +To make proper use of the \fIclosure filter\fR shown above you need to +have a good understanding of the concept of a \fIclosure\fR. See +perlref for more details on the mechanics of \fIclosures\fR. +.SS "\fBuse Filter::Util::Call\fP" +.IX Subsection "use Filter::Util::Call" +The following functions are exported by \f(CW\*(C`Filter::Util::Call\*(C'\fR: +.PP +.Vb 4 +\& filter_add() +\& filter_read() +\& filter_read_exact() +\& filter_del() +.Ve +.SS "\fBimport()\fP" +.IX Subsection "import()" +The \f(CW\*(C`import\*(C'\fR method is used to create an instance of the filter. It is +called indirectly by Perl when it encounters the \f(CW\*(C`use MyFilter\*(C'\fR line +in a source file (See \*(L"import\*(R" in perlfunc for more details on +\&\f(CW\*(C`import\*(C'\fR). +.PP +It will always have at least one parameter automatically passed by Perl +\&\- this corresponds to the name of the package. In the example above it +will be \f(CW"MyFilter"\fR. +.PP +Apart from the first parameter, import can accept an optional list of +parameters. These can be used to pass parameters to the filter. For +example: +.PP +.Vb 1 +\& use MyFilter qw(a b c) ; +.Ve +.PP +will result in the \f(CW@_\fR array having the following values: +.PP +.Vb 4 +\& @_ [0] => "MyFilter" +\& @_ [1] => "a" +\& @_ [2] => "b" +\& @_ [3] => "c" +.Ve +.PP +Before terminating, the \f(CW\*(C`import\*(C'\fR function must explicitly install the +filter by calling \f(CW\*(C`filter_add\*(C'\fR. +.SS "\fBfilter_add()\fP" +.IX Subsection "filter_add()" +The function, \f(CW\*(C`filter_add\*(C'\fR, actually installs the filter. It takes one +parameter which should be a reference. The kind of reference used will +dictate which of the two filter types will be used. +.PP +If a \s-1CODE\s0 reference is used then a \fIclosure filter\fR will be assumed. +.PP +If a \s-1CODE\s0 reference is not used, a \fImethod filter\fR will be assumed. +In a \fImethod filter\fR, the reference can be used to store context +information. The reference will be \fIblessed\fR into the package by +\&\f(CW\*(C`filter_add\*(C'\fR, unless the reference was already blessed. +.PP +See the filters at the end of this documents for examples of using +context information using both \fImethod filters\fR and \fIclosure +filters\fR. +.SS "\fBfilter() and anonymous sub\fP" +.IX Subsection "filter() and anonymous sub" +Both the \f(CW\*(C`filter\*(C'\fR method used with a \fImethod filter\fR and the +anonymous sub used with a \fIclosure filter\fR is where the main +processing for the filter is done. +.PP +The big difference between the two types of filter is that the \fImethod +filter\fR uses the object passed to the method to store any context data, +whereas the \fIclosure filter\fR uses the lexical variables that are +maintained by the closure. +.PP +Note that the single parameter passed to the \fImethod filter\fR, +\&\f(CW$self\fR, is the same reference that was passed to \f(CW\*(C`filter_add\*(C'\fR +blessed into the filter's package. See the example filters later on for +details of using \f(CW$self\fR. +.PP +Here is a list of the common features of the anonymous sub and the +\&\f(CW\*(C`filter()\*(C'\fR method. +.IP "\fB\f(CB$_\fB\fR" 5 +.IX Item "$_" +Although \f(CW$_\fR doesn't actually appear explicitly in the sample filters +above, it is implicitly used in a number of places. +.Sp +Firstly, when either \f(CW\*(C`filter\*(C'\fR or the anonymous sub are called, a local +copy of \f(CW$_\fR will automatically be created. It will always contain the +empty string at this point. +.Sp +Next, both \f(CW\*(C`filter_read\*(C'\fR and \f(CW\*(C`filter_read_exact\*(C'\fR will append any +source data that is read to the end of \f(CW$_\fR. +.Sp +Finally, when \f(CW\*(C`filter\*(C'\fR or the anonymous sub are finished processing, +they are expected to return the filtered source using \f(CW$_\fR. +.Sp +This implicit use of \f(CW$_\fR greatly simplifies the filter. +.IP "\fB\f(CB$status\fB\fR" 5 +.IX Item "$status" +The status value that is returned by the user's \f(CW\*(C`filter\*(C'\fR method or +anonymous sub and the \f(CW\*(C`filter_read\*(C'\fR and \f(CW\*(C`read_exact\*(C'\fR functions take +the same set of values, namely: +.Sp +.Vb 3 +\& < 0 Error +\& = 0 EOF +\& > 0 OK +.Ve +.IP "\fBfilter_read\fR and \fBfilter_read_exact\fR" 5 +.IX Item "filter_read and filter_read_exact" +These functions are used by the filter to obtain either a line or block +from the next filter in the chain or the actual source file if there +aren't any other filters. +.Sp +The function \f(CW\*(C`filter_read\*(C'\fR takes two forms: +.Sp +.Vb 2 +\& $status = filter_read() ; +\& $status = filter_read($size) ; +.Ve +.Sp +The first form is used to request a \fIline\fR, the second requests a +\&\fIblock\fR. +.Sp +In line mode, \f(CW\*(C`filter_read\*(C'\fR will append the next source line to the +end of the \f(CW$_\fR scalar. +.Sp +In block mode, \f(CW\*(C`filter_read\*(C'\fR will append a block of data which is <= +\&\f(CW$size\fR to the end of the \f(CW$_\fR scalar. It is important to emphasise +the that \f(CW\*(C`filter_read\*(C'\fR will not necessarily read a block which is +\&\fIprecisely\fR \f(CW$size\fR bytes. +.Sp +If you need to be able to read a block which has an exact size, you can +use the function \f(CW\*(C`filter_read_exact\*(C'\fR. It works identically to +\&\f(CW\*(C`filter_read\*(C'\fR in block mode, except it will try to read a block which +is exactly \f(CW$size\fR bytes in length. The only circumstances when it +will not return a block which is \f(CW$size\fR bytes long is on \s-1EOF\s0 or +error. +.Sp +It is \fIvery\fR important to check the value of \f(CW$status\fR after \fIevery\fR +call to \f(CW\*(C`filter_read\*(C'\fR or \f(CW\*(C`filter_read_exact\*(C'\fR. +.IP "\fBfilter_del\fR" 5 +.IX Item "filter_del" +The function, \f(CW\*(C`filter_del\*(C'\fR, is used to disable the current filter. It +does not affect the running of the filter. All it does is tell Perl not +to call filter any more. +.Sp +See \*(L"Example 4: Using filter_del\*(R" for details. +.IP "\fIreal_import\fR" 5 +.IX Item "real_import" +Internal function which adds the filter, based on the filter_add +argument type. +.IP "\fI\f(BIunimport()\fI\fR" 5 +.IX Item "unimport()" +May be used to disable a filter, but is rarely needed. See filter_del. +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +See \*(L"\s-1LIMITATIONS\*(R"\s0 in perlfilter for an overview of the general problems +filtering code in a textual line-level only. +.IP "_\|_DATA_\|_ is ignored" 4 +.IX Item "__DATA__ is ignored" +The content from the _\|_DATA_\|_ block is not filtered. +This is a serious limitation, e.g. for the Switch module. +See for more. +.IP "Max. codesize limited to 32\-bit" 4 +.IX Item "Max. codesize limited to 32-bit" +Currently internal buffer lengths are limited to 32\-bit only. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Here are a few examples which illustrate the key concepts \- as such +most of them are of little practical use. +.PP +The \f(CW\*(C`examples\*(C'\fR sub-directory has copies of all these filters +implemented both as \fImethod filters\fR and as \fIclosure filters\fR. +.SS "Example 1: A simple filter." +.IX Subsection "Example 1: A simple filter." +Below is a \fImethod filter\fR which is hard-wired to replace all +occurrences of the string \f(CW"Joe"\fR to \f(CW"Jim"\fR. Not particularly +Useful, but it is the first example and I wanted to keep it simple. +.PP +.Vb 1 +\& package Joe2Jim ; +\& +\& use Filter::Util::Call ; +\& +\& sub import +\& { +\& my($type) = @_ ; +\& +\& filter_add(bless []) ; +\& } +\& +\& sub filter +\& { +\& my($self) = @_ ; +\& my($status) ; +\& +\& s/Joe/Jim/g +\& if ($status = filter_read()) > 0 ; +\& $status ; +\& } +\& +\& 1 ; +.Ve +.PP +Here is an example of using the filter: +.PP +.Vb 2 +\& use Joe2Jim ; +\& print "Where is Joe?\en" ; +.Ve +.PP +And this is what the script above will print: +.PP +.Vb 1 +\& Where is Jim? +.Ve +.SS "Example 2: Using the context" +.IX Subsection "Example 2: Using the context" +The previous example was not particularly useful. To make it more +general purpose we will make use of the context data and allow any +arbitrary \fIfrom\fR and \fIto\fR strings to be used. This time we will use a +\&\fIclosure filter\fR. To reflect its enhanced role, the filter is called +\&\f(CW\*(C`Subst\*(C'\fR. +.PP +.Vb 1 +\& package Subst ; +\& +\& use Filter::Util::Call ; +\& use Carp ; +\& +\& sub import +\& { +\& croak("usage: use Subst qw(from to)") +\& unless @_ == 3 ; +\& my ($self, $from, $to) = @_ ; +\& filter_add( +\& sub +\& { +\& my ($status) ; +\& s/$from/$to/ +\& if ($status = filter_read()) > 0 ; +\& $status ; +\& }) +\& } +\& 1 ; +.Ve +.PP +and is used like this: +.PP +.Vb 2 +\& use Subst qw(Joe Jim) ; +\& print "Where is Joe?\en" ; +.Ve +.SS "Example 3: Using the context within the filter" +.IX Subsection "Example 3: Using the context within the filter" +Here is a filter which a variation of the \f(CW\*(C`Joe2Jim\*(C'\fR filter. As well as +substituting all occurrences of \f(CW"Joe"\fR to \f(CW"Jim"\fR it keeps a count +of the number of substitutions made in the context object. +.PP +Once \s-1EOF\s0 is detected (\f(CW$status\fR is zero) the filter will insert an +extra line into the source stream. When this extra line is executed it +will print a count of the number of substitutions actually made. +Note that \f(CW$status\fR is set to \f(CW1\fR in this case. +.PP +.Vb 1 +\& package Count ; +\& +\& use Filter::Util::Call ; +\& +\& sub filter +\& { +\& my ($self) = @_ ; +\& my ($status) ; +\& +\& if (($status = filter_read()) > 0 ) { +\& s/Joe/Jim/g ; +\& ++ $$self ; +\& } +\& elsif ($$self >= 0) { # EOF +\& $_ = "print q[Made ${$self} substitutions\en]" ; +\& $status = 1 ; +\& $$self = \-1 ; +\& } +\& +\& $status ; +\& } +\& +\& sub import +\& { +\& my ($self) = @_ ; +\& my ($count) = 0 ; +\& filter_add(\e$count) ; +\& } +\& +\& 1 ; +.Ve +.PP +Here is a script which uses it: +.PP +.Vb 3 +\& use Count ; +\& print "Hello Joe\en" ; +\& print "Where is Joe\en" ; +.Ve +.PP +Outputs: +.PP +.Vb 3 +\& Hello Jim +\& Where is Jim +\& Made 2 substitutions +.Ve +.SS "Example 4: Using filter_del" +.IX Subsection "Example 4: Using filter_del" +Another variation on a theme. This time we will modify the \f(CW\*(C`Subst\*(C'\fR +filter to allow a starting and stopping pattern to be specified as well +as the \fIfrom\fR and \fIto\fR patterns. If you know the \fIvi\fR editor, it is +the equivalent of this command: +.PP +.Vb 1 +\& :/start/,/stop/s/from/to/ +.Ve +.PP +When used as a filter we want to invoke it like this: +.PP +.Vb 1 +\& use NewSubst qw(start stop from to) ; +.Ve +.PP +Here is the module. +.PP +.Vb 1 +\& package NewSubst ; +\& +\& use Filter::Util::Call ; +\& use Carp ; +\& +\& sub import +\& { +\& my ($self, $start, $stop, $from, $to) = @_ ; +\& my ($found) = 0 ; +\& croak("usage: use Subst qw(start stop from to)") +\& unless @_ == 5 ; +\& +\& filter_add( +\& sub +\& { +\& my ($status) ; +\& +\& if (($status = filter_read()) > 0) { +\& +\& $found = 1 +\& if $found == 0 and /$start/ ; +\& +\& if ($found) { +\& s/$from/$to/ ; +\& filter_del() if /$stop/ ; +\& } +\& +\& } +\& $status ; +\& } ) +\& +\& } +\& +\& 1 ; +.Ve +.SH "Filter::Simple" +.IX Header "Filter::Simple" +If you intend using the Filter::Call functionality, I would strongly +recommend that you check out Damian Conway's excellent Filter::Simple +module. Damian's module provides a much cleaner interface than +Filter::Util::Call. Although it doesn't allow the fine control that +Filter::Util::Call does, it should be adequate for the majority of +applications. It's available at +.PP +.Vb 1 +\& http://search.cpan.org/dist/Filter\-Simple/ +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Marquess +.SH "DATE" +.IX Header "DATE" +26th January 1996 +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (c) 1995\-2011 Paul Marquess. All rights reserved. +Copyright (c) 2011\-2014 Reini Urban. All rights reserved. +Copyright (c) 2014\-2017 cPanel Inc. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/FindBin.3 b/data/miniconda3/man/man3/FindBin.3 new file mode 100644 index 0000000000000000000000000000000000000000..55336a834cb27fce7a27883fe10d819febacbe6d --- /dev/null +++ b/data/miniconda3/man/man3/FindBin.3 @@ -0,0 +1,210 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "FindBin 3" +.TH FindBin 3 "2020-12-18" "perl v5.32.1" "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" +FindBin \- Locate directory of original perl script +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use FindBin; +\& use lib "$FindBin::Bin/../lib"; +\& +\& or +\& +\& use FindBin qw($Bin); +\& use lib "$Bin/../lib"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Locates the full path to the script bin directory to allow the use +of paths relative to the bin directory. +.PP +This allows a user to setup a directory tree for some software with +directories \f(CW\*(C`/bin\*(C'\fR and \f(CW\*(C`/lib\*(C'\fR, and then the above +example will allow the use of modules in the lib directory without knowing +where the software tree is installed. +.PP +If perl is invoked using the \fB\-e\fR option or the perl script is read from +\&\f(CW\*(C`STDIN\*(C'\fR then FindBin sets both \f(CW$Bin\fR and \f(CW$RealBin\fR to the current +directory. +.SH "EXPORTABLE VARIABLES" +.IX Header "EXPORTABLE VARIABLES" +.Vb 4 +\& $Bin \- path to bin directory from where script was invoked +\& $Script \- basename of script from which perl was invoked +\& $RealBin \- $Bin with all links resolved +\& $RealScript \- $Script with all links resolved +.Ve +.SH "KNOWN ISSUES" +.IX Header "KNOWN ISSUES" +If there are two modules using \f(CW\*(C`FindBin\*(C'\fR from different directories +under the same interpreter, this won't work. Since \f(CW\*(C`FindBin\*(C'\fR uses a +\&\f(CW\*(C`BEGIN\*(C'\fR block, it'll be executed only once, and only the first caller +will get it right. This is a problem under mod_perl and other persistent +Perl environments, where you shouldn't use this module. Which also means +that you should avoid using \f(CW\*(C`FindBin\*(C'\fR in modules that you plan to put +on \s-1CPAN.\s0 To make sure that \f(CW\*(C`FindBin\*(C'\fR will work is to call the \f(CW\*(C`again\*(C'\fR +function: +.PP +.Vb 2 +\& use FindBin; +\& FindBin::again(); # or FindBin\->again; +.Ve +.PP +In former versions of FindBin there was no \f(CW\*(C`again\*(C'\fR function. The +workaround was to force the \f(CW\*(C`BEGIN\*(C'\fR block to be executed again: +.PP +.Vb 2 +\& delete $INC{\*(AqFindBin.pm\*(Aq}; +\& require FindBin; +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +FindBin is supported as part of the core perl distribution. Please send bug +reports to <\fIperlbug@perl.org\fR> using the perlbug program +included with perl. +.PP +Graham Barr <\fIgbarr@pobox.com\fR> +Nick Ing-Simmons <\fInik@tiuk.ti.com\fR> +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1995 Graham Barr & Nick Ing-Simmons. All rights reserved. +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Getopt%3A%3ALong.3 b/data/miniconda3/man/man3/Getopt%3A%3ALong.3 new file mode 100644 index 0000000000000000000000000000000000000000..40f7c3975f3263d48f2977996293bfbdea0f922b --- /dev/null +++ b/data/miniconda3/man/man3/Getopt%3A%3ALong.3 @@ -0,0 +1,1401 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Getopt::Long 3" +.TH Getopt::Long 3 "2020-12-18" "perl v5.32.1" "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" +Getopt::Long \- Extended processing of command line options +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 8 +\& use Getopt::Long; +\& my $data = "file.dat"; +\& my $length = 24; +\& my $verbose; +\& GetOptions ("length=i" => \e$length, # numeric +\& "file=s" => \e$data, # string +\& "verbose" => \e$verbose) # flag +\& or die("Error in command line arguments\en"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Getopt::Long module implements an extended getopt function called +\&\fBGetOptions()\fR. It parses the command line from \f(CW@ARGV\fR, recognizing +and removing specified options and their possible values. +.PP +This function adheres to the \s-1POSIX\s0 syntax for command +line options, with \s-1GNU\s0 extensions. In general, this means that options +have long names instead of single letters, and are introduced with a +double dash \*(L"\-\-\*(R". Support for bundling of command line options, as was +the case with the more traditional single-letter approach, is provided +but not enabled by default. +.SH "Command Line Options, an Introduction" +.IX Header "Command Line Options, an Introduction" +Command line operated programs traditionally take their arguments from +the command line, for example filenames or other information that the +program needs to know. Besides arguments, these programs often take +command line \fIoptions\fR as well. Options are not necessary for the +program to work, hence the name 'option', but are used to modify its +default behaviour. For example, a program could do its job quietly, +but with a suitable option it could provide verbose information about +what it did. +.PP +Command line options come in several flavours. Historically, they are +preceded by a single dash \f(CW\*(C`\-\*(C'\fR, and consist of a single letter. +.PP +.Vb 1 +\& \-l \-a \-c +.Ve +.PP +Usually, these single-character options can be bundled: +.PP +.Vb 1 +\& \-lac +.Ve +.PP +Options can have values, the value is placed after the option +character. Sometimes with whitespace in between, sometimes not: +.PP +.Vb 1 +\& \-s 24 \-s24 +.Ve +.PP +Due to the very cryptic nature of these options, another style was +developed that used long names. So instead of a cryptic \f(CW\*(C`\-l\*(C'\fR one +could use the more descriptive \f(CW\*(C`\-\-long\*(C'\fR. To distinguish between a +bundle of single-character options and a long one, two dashes are used +to precede the option name. Early implementations of long options used +a plus \f(CW\*(C`+\*(C'\fR instead. Also, option values could be specified either +like +.PP +.Vb 1 +\& \-\-size=24 +.Ve +.PP +or +.PP +.Vb 1 +\& \-\-size 24 +.Ve +.PP +The \f(CW\*(C`+\*(C'\fR form is now obsolete and strongly deprecated. +.SH "Getting Started with Getopt::Long" +.IX Header "Getting Started with Getopt::Long" +Getopt::Long is the Perl5 successor of \f(CW\*(C`newgetopt.pl\*(C'\fR. This was the +first Perl module that provided support for handling the new style of +command line options, in particular long option names, hence the Perl5 +name Getopt::Long. This module also supports single-character options +and bundling. +.PP +To use Getopt::Long from a Perl program, you must include the +following line in your Perl program: +.PP +.Vb 1 +\& use Getopt::Long; +.Ve +.PP +This will load the core of the Getopt::Long module and prepare your +program for using it. Most of the actual Getopt::Long code is not +loaded until you really call one of its functions. +.PP +In the default configuration, options names may be abbreviated to +uniqueness, case does not matter, and a single dash is sufficient, +even for long option names. Also, options may be placed between +non-option arguments. See \*(L"Configuring Getopt::Long\*(R" for more +details on how to configure Getopt::Long. +.SS "Simple options" +.IX Subsection "Simple options" +The most simple options are the ones that take no values. Their mere +presence on the command line enables the option. Popular examples are: +.PP +.Vb 1 +\& \-\-all \-\-verbose \-\-quiet \-\-debug +.Ve +.PP +Handling simple options is straightforward: +.PP +.Vb 3 +\& my $verbose = \*(Aq\*(Aq; # option variable with default value (false) +\& my $all = \*(Aq\*(Aq; # option variable with default value (false) +\& GetOptions (\*(Aqverbose\*(Aq => \e$verbose, \*(Aqall\*(Aq => \e$all); +.Ve +.PP +The call to \fBGetOptions()\fR parses the command line arguments that are +present in \f(CW@ARGV\fR and sets the option variable to the value \f(CW1\fR if +the option did occur on the command line. Otherwise, the option +variable is not touched. Setting the option value to true is often +called \fIenabling\fR the option. +.PP +The option name as specified to the \fBGetOptions()\fR function is called +the option \fIspecification\fR. Later we'll see that this specification +can contain more than just the option name. The reference to the +variable is called the option \fIdestination\fR. +.PP +\&\fBGetOptions()\fR will return a true value if the command line could be +processed successfully. Otherwise, it will write error messages using +\&\fBdie()\fR and \fBwarn()\fR, and return a false result. +.SS "A little bit less simple options" +.IX Subsection "A little bit less simple options" +Getopt::Long supports two useful variants of simple options: +\&\fInegatable\fR options and \fIincremental\fR options. +.PP +A negatable option is specified with an exclamation mark \f(CW\*(C`!\*(C'\fR after the +option name: +.PP +.Vb 2 +\& my $verbose = \*(Aq\*(Aq; # option variable with default value (false) +\& GetOptions (\*(Aqverbose!\*(Aq => \e$verbose); +.Ve +.PP +Now, using \f(CW\*(C`\-\-verbose\*(C'\fR on the command line will enable \f(CW$verbose\fR, +as expected. But it is also allowed to use \f(CW\*(C`\-\-noverbose\*(C'\fR, which will +disable \f(CW$verbose\fR by setting its value to \f(CW0\fR. Using a suitable +default value, the program can find out whether \f(CW$verbose\fR is false +by default, or disabled by using \f(CW\*(C`\-\-noverbose\*(C'\fR. +.PP +An incremental option is specified with a plus \f(CW\*(C`+\*(C'\fR after the +option name: +.PP +.Vb 2 +\& my $verbose = \*(Aq\*(Aq; # option variable with default value (false) +\& GetOptions (\*(Aqverbose+\*(Aq => \e$verbose); +.Ve +.PP +Using \f(CW\*(C`\-\-verbose\*(C'\fR on the command line will increment the value of +\&\f(CW$verbose\fR. This way the program can keep track of how many times the +option occurred on the command line. For example, each occurrence of +\&\f(CW\*(C`\-\-verbose\*(C'\fR could increase the verbosity level of the program. +.SS "Mixing command line option with other arguments" +.IX Subsection "Mixing command line option with other arguments" +Usually programs take command line options as well as other arguments, +for example, file names. It is good practice to always specify the +options first, and the other arguments last. Getopt::Long will, +however, allow the options and arguments to be mixed and 'filter out' +all the options before passing the rest of the arguments to the +program. To stop Getopt::Long from processing further arguments, +insert a double dash \f(CW\*(C`\-\-\*(C'\fR on the command line: +.PP +.Vb 1 +\& \-\-size 24 \-\- \-\-all +.Ve +.PP +In this example, \f(CW\*(C`\-\-all\*(C'\fR will \fInot\fR be treated as an option, but +passed to the program unharmed, in \f(CW@ARGV\fR. +.SS "Options with values" +.IX Subsection "Options with values" +For options that take values it must be specified whether the option +value is required or not, and what kind of value the option expects. +.PP +Three kinds of values are supported: integer numbers, floating point +numbers, and strings. +.PP +If the option value is required, Getopt::Long will take the +command line argument that follows the option and assign this to the +option variable. If, however, the option value is specified as +optional, this will only be done if that value does not look like a +valid command line option itself. +.PP +.Vb 2 +\& my $tag = \*(Aq\*(Aq; # option variable with default value +\& GetOptions (\*(Aqtag=s\*(Aq => \e$tag); +.Ve +.PP +In the option specification, the option name is followed by an equals +sign \f(CW\*(C`=\*(C'\fR and the letter \f(CW\*(C`s\*(C'\fR. The equals sign indicates that this +option requires a value. The letter \f(CW\*(C`s\*(C'\fR indicates that this value is +an arbitrary string. Other possible value types are \f(CW\*(C`i\*(C'\fR for integer +values, and \f(CW\*(C`f\*(C'\fR for floating point values. Using a colon \f(CW\*(C`:\*(C'\fR instead +of the equals sign indicates that the option value is optional. In +this case, if no suitable value is supplied, string valued options get +an empty string \f(CW\*(Aq\*(Aq\fR assigned, while numeric options are set to \f(CW0\fR. +.SS "Options with multiple values" +.IX Subsection "Options with multiple values" +Options sometimes take several values. For example, a program could +use multiple directories to search for library files: +.PP +.Vb 1 +\& \-\-library lib/stdlib \-\-library lib/extlib +.Ve +.PP +To accomplish this behaviour, simply specify an array reference as the +destination for the option: +.PP +.Vb 1 +\& GetOptions ("library=s" => \e@libfiles); +.Ve +.PP +Alternatively, you can specify that the option can have multiple +values by adding a \*(L"@\*(R", and pass a reference to a scalar as the +destination: +.PP +.Vb 1 +\& GetOptions ("library=s@" => \e$libfiles); +.Ve +.PP +Used with the example above, \f(CW@libfiles\fR c.q. \f(CW@$libfiles\fR would +contain two strings upon completion: \f(CW"lib/stdlib"\fR and +\&\f(CW"lib/extlib"\fR, in that order. It is also possible to specify that +only integer or floating point numbers are acceptable values. +.PP +Often it is useful to allow comma-separated lists of values as well as +multiple occurrences of the options. This is easy using Perl's \fBsplit()\fR +and \fBjoin()\fR operators: +.PP +.Vb 2 +\& GetOptions ("library=s" => \e@libfiles); +\& @libfiles = split(/,/,join(\*(Aq,\*(Aq,@libfiles)); +.Ve +.PP +Of course, it is important to choose the right separator string for +each purpose. +.PP +Warning: What follows is an experimental feature. +.PP +Options can take multiple values at once, for example +.PP +.Vb 1 +\& \-\-coordinates 52.2 16.4 \-\-rgbcolor 255 255 149 +.Ve +.PP +This can be accomplished by adding a repeat specifier to the option +specification. Repeat specifiers are very similar to the \f(CW\*(C`{...}\*(C'\fR +repeat specifiers that can be used with regular expression patterns. +For example, the above command line would be handled as follows: +.PP +.Vb 1 +\& GetOptions(\*(Aqcoordinates=f{2}\*(Aq => \e@coor, \*(Aqrgbcolor=i{3}\*(Aq => \e@color); +.Ve +.PP +The destination for the option must be an array or array reference. +.PP +It is also possible to specify the minimal and maximal number of +arguments an option takes. \f(CW\*(C`foo=s{2,4}\*(C'\fR indicates an option that +takes at least two and at most 4 arguments. \f(CW\*(C`foo=s{1,}\*(C'\fR indicates one +or more values; \f(CW\*(C`foo:s{,}\*(C'\fR indicates zero or more option values. +.SS "Options with hash values" +.IX Subsection "Options with hash values" +If the option destination is a reference to a hash, the option will +take, as value, strings of the form \fIkey\fR\f(CW\*(C`=\*(C'\fR\fIvalue\fR. The value will +be stored with the specified key in the hash. +.PP +.Vb 1 +\& GetOptions ("define=s" => \e%defines); +.Ve +.PP +Alternatively you can use: +.PP +.Vb 1 +\& GetOptions ("define=s%" => \e$defines); +.Ve +.PP +When used with command line options: +.PP +.Vb 1 +\& \-\-define os=linux \-\-define vendor=redhat +.Ve +.PP +the hash \f(CW%defines\fR (or \f(CW%$defines\fR) will contain two keys, \f(CW"os"\fR +with value \f(CW"linux"\fR and \f(CW"vendor"\fR with value \f(CW"redhat"\fR. It is +also possible to specify that only integer or floating point numbers +are acceptable values. The keys are always taken to be strings. +.SS "User-defined subroutines to handle options" +.IX Subsection "User-defined subroutines to handle options" +Ultimate control over what should be done when (actually: each time) +an option is encountered on the command line can be achieved by +designating a reference to a subroutine (or an anonymous subroutine) +as the option destination. When \fBGetOptions()\fR encounters the option, it +will call the subroutine with two or three arguments. The first +argument is the name of the option. (Actually, it is an object that +stringifies to the name of the option.) For a scalar or array destination, +the second argument is the value to be stored. For a hash destination, +the second argument is the key to the hash, and the third argument +the value to be stored. It is up to the subroutine to store the value, +or do whatever it thinks is appropriate. +.PP +A trivial application of this mechanism is to implement options that +are related to each other. For example: +.PP +.Vb 3 +\& my $verbose = \*(Aq\*(Aq; # option variable with default value (false) +\& GetOptions (\*(Aqverbose\*(Aq => \e$verbose, +\& \*(Aqquiet\*(Aq => sub { $verbose = 0 }); +.Ve +.PP +Here \f(CW\*(C`\-\-verbose\*(C'\fR and \f(CW\*(C`\-\-quiet\*(C'\fR control the same variable +\&\f(CW$verbose\fR, but with opposite values. +.PP +If the subroutine needs to signal an error, it should call \fBdie()\fR with +the desired error message as its argument. \fBGetOptions()\fR will catch the +\&\fBdie()\fR, issue the error message, and record that an error result must +be returned upon completion. +.PP +If the text of the error message starts with an exclamation mark \f(CW\*(C`!\*(C'\fR +it is interpreted specially by \fBGetOptions()\fR. There is currently one +special command implemented: \f(CW\*(C`die("!FINISH")\*(C'\fR will cause \fBGetOptions()\fR +to stop processing options, as if it encountered a double dash \f(CW\*(C`\-\-\*(C'\fR. +.PP +In version 2.37 the first argument to the callback function was +changed from string to object. This was done to make room for +extensions and more detailed control. The object stringifies to the +option name so this change should not introduce compatibility +problems. +.PP +Here is an example of how to access the option name and value from within +a subroutine: +.PP +.Vb 5 +\& GetOptions (\*(Aqopt=i\*(Aq => \e&handler); +\& sub handler { +\& my ($opt_name, $opt_value) = @_; +\& print("Option name is $opt_name and value is $opt_value\en"); +\& } +.Ve +.SS "Options with multiple names" +.IX Subsection "Options with multiple names" +Often it is user friendly to supply alternate mnemonic names for +options. For example \f(CW\*(C`\-\-height\*(C'\fR could be an alternate name for +\&\f(CW\*(C`\-\-length\*(C'\fR. Alternate names can be included in the option +specification, separated by vertical bar \f(CW\*(C`|\*(C'\fR characters. To implement +the above example: +.PP +.Vb 1 +\& GetOptions (\*(Aqlength|height=f\*(Aq => \e$length); +.Ve +.PP +The first name is called the \fIprimary\fR name, the other names are +called \fIaliases\fR. When using a hash to store options, the key will +always be the primary name. +.PP +Multiple alternate names are possible. +.SS "Case and abbreviations" +.IX Subsection "Case and abbreviations" +Without additional configuration, \fBGetOptions()\fR will ignore the case of +option names, and allow the options to be abbreviated to uniqueness. +.PP +.Vb 1 +\& GetOptions (\*(Aqlength|height=f\*(Aq => \e$length, "head" => \e$head); +.Ve +.PP +This call will allow \f(CW\*(C`\-\-l\*(C'\fR and \f(CW\*(C`\-\-L\*(C'\fR for the length option, but +requires a least \f(CW\*(C`\-\-hea\*(C'\fR and \f(CW\*(C`\-\-hei\*(C'\fR for the head and height options. +.SS "Summary of Option Specifications" +.IX Subsection "Summary of Option Specifications" +Each option specifier consists of two parts: the name specification +and the argument specification. +.PP +The name specification contains the name of the option, optionally +followed by a list of alternative names separated by vertical bar +characters. +.PP +.Vb 2 +\& length option name is "length" +\& length|size|l name is "length", aliases are "size" and "l" +.Ve +.PP +The argument specification is optional. If omitted, the option is +considered boolean, a value of 1 will be assigned when the option is +used on the command line. +.PP +The argument specification can be +.IP "!" 4 +The option does not take an argument and may be negated by prefixing +it with \*(L"no\*(R" or \*(L"no\-\*(R". E.g. \f(CW"foo!"\fR will allow \f(CW\*(C`\-\-foo\*(C'\fR (a value of +1 will be assigned) as well as \f(CW\*(C`\-\-nofoo\*(C'\fR and \f(CW\*(C`\-\-no\-foo\*(C'\fR (a value of +0 will be assigned). If the option has aliases, this applies to the +aliases as well. +.Sp +Using negation on a single letter option when bundling is in effect is +pointless and will result in a warning. +.IP "+" 4 +The option does not take an argument and will be incremented by 1 +every time it appears on the command line. E.g. \f(CW"more+"\fR, when used +with \f(CW\*(C`\-\-more \-\-more \-\-more\*(C'\fR, will increment the value three times, +resulting in a value of 3 (provided it was 0 or undefined at first). +.Sp +The \f(CW\*(C`+\*(C'\fR specifier is ignored if the option destination is not a scalar. +.IP "= \fItype\fR [ \fIdesttype\fR ] [ \fIrepeat\fR ]" 4 +.IX Item "= type [ desttype ] [ repeat ]" +The option requires an argument of the given type. Supported types +are: +.RS 4 +.IP "s" 4 +.IX Item "s" +String. An arbitrary sequence of characters. It is valid for the +argument to start with \f(CW\*(C`\-\*(C'\fR or \f(CW\*(C`\-\-\*(C'\fR. +.IP "i" 4 +.IX Item "i" +Integer. An optional leading plus or minus sign, followed by a +sequence of digits. +.IP "o" 4 +.IX Item "o" +Extended integer, Perl style. This can be either an optional leading +plus or minus sign, followed by a sequence of digits, or an octal +string (a zero, optionally followed by '0', '1', .. '7'), or a +hexadecimal string (\f(CW\*(C`0x\*(C'\fR followed by '0' .. '9', 'a' .. 'f', case +insensitive), or a binary string (\f(CW\*(C`0b\*(C'\fR followed by a series of '0' +and '1'). +.IP "f" 4 +.IX Item "f" +Real number. For example \f(CW3.14\fR, \f(CW\*(C`\-6.23E24\*(C'\fR and so on. +.RE +.RS 4 +.Sp +The \fIdesttype\fR can be \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR to specify that the option is +list or a hash valued. This is only needed when the destination for +the option value is not otherwise specified. It should be omitted when +not needed. +.Sp +The \fIrepeat\fR specifies the number of values this option takes per +occurrence on the command line. It has the format \f(CW\*(C`{\*(C'\fR [ \fImin\fR ] [ \f(CW\*(C`,\*(C'\fR [ \fImax\fR ] ] \f(CW\*(C`}\*(C'\fR. +.Sp +\&\fImin\fR denotes the minimal number of arguments. It defaults to 1 for +options with \f(CW\*(C`=\*(C'\fR and to 0 for options with \f(CW\*(C`:\*(C'\fR, see below. Note that +\&\fImin\fR overrules the \f(CW\*(C`=\*(C'\fR / \f(CW\*(C`:\*(C'\fR semantics. +.Sp +\&\fImax\fR denotes the maximum number of arguments. It must be at least +\&\fImin\fR. If \fImax\fR is omitted, \fIbut the comma is not\fR, there is no +upper bound to the number of argument values taken. +.RE +.IP ": \fItype\fR [ \fIdesttype\fR ]" 4 +.IX Item ": type [ desttype ]" +Like \f(CW\*(C`=\*(C'\fR, but designates the argument as optional. +If omitted, an empty string will be assigned to string values options, +and the value zero to numeric options. +.Sp +Note that if a string argument starts with \f(CW\*(C`\-\*(C'\fR or \f(CW\*(C`\-\-\*(C'\fR, it will be +considered an option on itself. +.IP ": \fInumber\fR [ \fIdesttype\fR ]" 4 +.IX Item ": number [ desttype ]" +Like \f(CW\*(C`:i\*(C'\fR, but if the value is omitted, the \fInumber\fR will be assigned. +.IP ": + [ \fIdesttype\fR ]" 4 +.IX Item ": + [ desttype ]" +Like \f(CW\*(C`:i\*(C'\fR, but if the value is omitted, the current value for the +option will be incremented. +.SH "Advanced Possibilities" +.IX Header "Advanced Possibilities" +.SS "Object oriented interface" +.IX Subsection "Object oriented interface" +Getopt::Long can be used in an object oriented way as well: +.PP +.Vb 5 +\& use Getopt::Long; +\& $p = Getopt::Long::Parser\->new; +\& $p\->configure(...configuration options...); +\& if ($p\->getoptions(...options descriptions...)) ... +\& if ($p\->getoptionsfromarray( \e@array, ...options descriptions...)) ... +.Ve +.PP +Configuration options can be passed to the constructor: +.PP +.Vb 2 +\& $p = new Getopt::Long::Parser +\& config => [...configuration options...]; +.Ve +.SS "Thread Safety" +.IX Subsection "Thread Safety" +Getopt::Long is thread safe when using ithreads as of Perl 5.8. It is +\&\fInot\fR thread safe when using the older (experimental and now +obsolete) threads implementation that was added to Perl 5.005. +.SS "Documentation and help texts" +.IX Subsection "Documentation and help texts" +Getopt::Long encourages the use of Pod::Usage to produce help +messages. For example: +.PP +.Vb 2 +\& use Getopt::Long; +\& use Pod::Usage; +\& +\& my $man = 0; +\& my $help = 0; +\& +\& GetOptions(\*(Aqhelp|?\*(Aq => \e$help, man => \e$man) or pod2usage(2); +\& pod2usage(1) if $help; +\& pod2usage(\-exitval => 0, \-verbose => 2) if $man; +\& +\& _\|_END_\|_ +\& +\& =head1 NAME +\& +\& sample \- Using Getopt::Long and Pod::Usage +\& +\& =head1 SYNOPSIS +\& +\& sample [options] [file ...] +\& +\& Options: +\& \-help brief help message +\& \-man full documentation +\& +\& =head1 OPTIONS +\& +\& =over 8 +\& +\& =item B<\-help> +\& +\& Print a brief help message and exits. +\& +\& =item B<\-man> +\& +\& Prints the manual page and exits. +\& +\& =back +\& +\& =head1 DESCRIPTION +\& +\& B will read the given input file(s) and do something +\& useful with the contents thereof. +\& +\& =cut +.Ve +.PP +See Pod::Usage for details. +.SS "Parsing options from an arbitrary array" +.IX Subsection "Parsing options from an arbitrary array" +By default, GetOptions parses the options that are present in the +global array \f(CW@ARGV\fR. A special entry \f(CW\*(C`GetOptionsFromArray\*(C'\fR can be +used to parse options from an arbitrary array. +.PP +.Vb 2 +\& use Getopt::Long qw(GetOptionsFromArray); +\& $ret = GetOptionsFromArray(\e@myopts, ...); +.Ve +.PP +When used like this, options and their possible values are removed +from \f(CW@myopts\fR, the global \f(CW@ARGV\fR is not touched at all. +.PP +The following two calls behave identically: +.PP +.Vb 2 +\& $ret = GetOptions( ... ); +\& $ret = GetOptionsFromArray(\e@ARGV, ... ); +.Ve +.PP +This also means that a first argument hash reference now becomes the +second argument: +.PP +.Vb 2 +\& $ret = GetOptions(\e%opts, ... ); +\& $ret = GetOptionsFromArray(\e@ARGV, \e%opts, ... ); +.Ve +.SS "Parsing options from an arbitrary string" +.IX Subsection "Parsing options from an arbitrary string" +A special entry \f(CW\*(C`GetOptionsFromString\*(C'\fR can be used to parse options +from an arbitrary string. +.PP +.Vb 2 +\& use Getopt::Long qw(GetOptionsFromString); +\& $ret = GetOptionsFromString($string, ...); +.Ve +.PP +The contents of the string are split into arguments using a call to +\&\f(CW\*(C`Text::ParseWords::shellwords\*(C'\fR. As with \f(CW\*(C`GetOptionsFromArray\*(C'\fR, the +global \f(CW@ARGV\fR is not touched. +.PP +It is possible that, upon completion, not all arguments in the string +have been processed. \f(CW\*(C`GetOptionsFromString\*(C'\fR will, when called in list +context, return both the return status and an array reference to any +remaining arguments: +.PP +.Vb 1 +\& ($ret, $args) = GetOptionsFromString($string, ... ); +.Ve +.PP +If any arguments remain, and \f(CW\*(C`GetOptionsFromString\*(C'\fR was not called in +list context, a message will be given and \f(CW\*(C`GetOptionsFromString\*(C'\fR will +return failure. +.PP +As with GetOptionsFromArray, a first argument hash reference now +becomes the second argument. +.SS "Storing options values in a hash" +.IX Subsection "Storing options values in a hash" +Sometimes, for example when there are a lot of options, having a +separate variable for each of them can be cumbersome. \fBGetOptions()\fR +supports, as an alternative mechanism, storing options values in a +hash. +.PP +To obtain this, a reference to a hash must be passed \fIas the first +argument\fR to \fBGetOptions()\fR. For each option that is specified on the +command line, the option value will be stored in the hash with the +option name as key. Options that are not actually used on the command +line will not be put in the hash, on other words, +\&\f(CW\*(C`exists($h{option})\*(C'\fR (or \fBdefined()\fR) can be used to test if an option +was used. The drawback is that warnings will be issued if the program +runs under \f(CW\*(C`use strict\*(C'\fR and uses \f(CW$h{option}\fR without testing with +\&\fBexists()\fR or \fBdefined()\fR first. +.PP +.Vb 2 +\& my %h = (); +\& GetOptions (\e%h, \*(Aqlength=i\*(Aq); # will store in $h{length} +.Ve +.PP +For options that take list or hash values, it is necessary to indicate +this by appending an \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR sign after the type: +.PP +.Vb 1 +\& GetOptions (\e%h, \*(Aqcolours=s@\*(Aq); # will push to @{$h{colours}} +.Ve +.PP +To make things more complicated, the hash may contain references to +the actual destinations, for example: +.PP +.Vb 3 +\& my $len = 0; +\& my %h = (\*(Aqlength\*(Aq => \e$len); +\& GetOptions (\e%h, \*(Aqlength=i\*(Aq); # will store in $len +.Ve +.PP +This example is fully equivalent with: +.PP +.Vb 2 +\& my $len = 0; +\& GetOptions (\*(Aqlength=i\*(Aq => \e$len); # will store in $len +.Ve +.PP +Any mixture is possible. For example, the most frequently used options +could be stored in variables while all other options get stored in the +hash: +.PP +.Vb 6 +\& my $verbose = 0; # frequently referred +\& my $debug = 0; # frequently referred +\& my %h = (\*(Aqverbose\*(Aq => \e$verbose, \*(Aqdebug\*(Aq => \e$debug); +\& GetOptions (\e%h, \*(Aqverbose\*(Aq, \*(Aqdebug\*(Aq, \*(Aqfilter\*(Aq, \*(Aqsize=i\*(Aq); +\& if ( $verbose ) { ... } +\& if ( exists $h{filter} ) { ... option \*(Aqfilter\*(Aq was specified ... } +.Ve +.SS "Bundling" +.IX Subsection "Bundling" +With bundling it is possible to set several single-character options +at once. For example if \f(CW\*(C`a\*(C'\fR, \f(CW\*(C`v\*(C'\fR and \f(CW\*(C`x\*(C'\fR are all valid options, +.PP +.Vb 1 +\& \-vax +.Ve +.PP +will set all three. +.PP +Getopt::Long supports three styles of bundling. To enable bundling, a +call to Getopt::Long::Configure is required. +.PP +The simplest style of bundling can be enabled with: +.PP +.Vb 1 +\& Getopt::Long::Configure ("bundling"); +.Ve +.PP +Configured this way, single-character options can be bundled but long +options \fBmust\fR always start with a double dash \f(CW\*(C`\-\-\*(C'\fR to avoid +ambiguity. For example, when \f(CW\*(C`vax\*(C'\fR, \f(CW\*(C`a\*(C'\fR, \f(CW\*(C`v\*(C'\fR and \f(CW\*(C`x\*(C'\fR are all valid +options, +.PP +.Vb 1 +\& \-vax +.Ve +.PP +will set \f(CW\*(C`a\*(C'\fR, \f(CW\*(C`v\*(C'\fR and \f(CW\*(C`x\*(C'\fR, but +.PP +.Vb 1 +\& \-\-vax +.Ve +.PP +will set \f(CW\*(C`vax\*(C'\fR. +.PP +The second style of bundling lifts this restriction. It can be enabled +with: +.PP +.Vb 1 +\& Getopt::Long::Configure ("bundling_override"); +.Ve +.PP +Now, \f(CW\*(C`\-vax\*(C'\fR will set the option \f(CW\*(C`vax\*(C'\fR. +.PP +In all of the above cases, option values may be inserted in the +bundle. For example: +.PP +.Vb 1 +\& \-h24w80 +.Ve +.PP +is equivalent to +.PP +.Vb 1 +\& \-h 24 \-w 80 +.Ve +.PP +A third style of bundling allows only values to be bundled with +options. It can be enabled with: +.PP +.Vb 1 +\& Getopt::Long::Configure ("bundling_values"); +.Ve +.PP +Now, \f(CW\*(C`\-h24\*(C'\fR will set the option \f(CW\*(C`h\*(C'\fR to \f(CW24\fR, but option bundles +like \f(CW\*(C`\-vxa\*(C'\fR and \f(CW\*(C`\-h24w80\*(C'\fR are flagged as errors. +.PP +Enabling \f(CW\*(C`bundling_values\*(C'\fR will disable the other two styles of +bundling. +.PP +When configured for bundling, single-character options are matched +case sensitive while long options are matched case insensitive. To +have the single-character options matched case insensitive as well, +use: +.PP +.Vb 1 +\& Getopt::Long::Configure ("bundling", "ignorecase_always"); +.Ve +.PP +It goes without saying that bundling can be quite confusing. +.SS "The lonesome dash" +.IX Subsection "The lonesome dash" +Normally, a lone dash \f(CW\*(C`\-\*(C'\fR on the command line will not be considered +an option. Option processing will terminate (unless \*(L"permute\*(R" is +configured) and the dash will be left in \f(CW@ARGV\fR. +.PP +It is possible to get special treatment for a lone dash. This can be +achieved by adding an option specification with an empty name, for +example: +.PP +.Vb 1 +\& GetOptions (\*(Aq\*(Aq => \e$stdio); +.Ve +.PP +A lone dash on the command line will now be a legal option, and using +it will set variable \f(CW$stdio\fR. +.SS "Argument callback" +.IX Subsection "Argument callback" +A special option 'name' \f(CW\*(C`<>\*(C'\fR can be used to designate a subroutine +to handle non-option arguments. When \fBGetOptions()\fR encounters an +argument that does not look like an option, it will immediately call this +subroutine and passes it one parameter: the argument name. +.PP +For example: +.PP +.Vb 3 +\& my $width = 80; +\& sub process { ... } +\& GetOptions (\*(Aqwidth=i\*(Aq => \e$width, \*(Aq<>\*(Aq => \e&process); +.Ve +.PP +When applied to the following command line: +.PP +.Vb 1 +\& arg1 \-\-width=72 arg2 \-\-width=60 arg3 +.Ve +.PP +This will call +\&\f(CW\*(C`process("arg1")\*(C'\fR while \f(CW$width\fR is \f(CW80\fR, +\&\f(CW\*(C`process("arg2")\*(C'\fR while \f(CW$width\fR is \f(CW72\fR, and +\&\f(CW\*(C`process("arg3")\*(C'\fR while \f(CW$width\fR is \f(CW60\fR. +.PP +This feature requires configuration option \fBpermute\fR, see section +\&\*(L"Configuring Getopt::Long\*(R". +.SH "Configuring Getopt::Long" +.IX Header "Configuring Getopt::Long" +Getopt::Long can be configured by calling subroutine +\&\fBGetopt::Long::Configure()\fR. This subroutine takes a list of quoted +strings, each specifying a configuration option to be enabled, e.g. +\&\f(CW\*(C`ignore_case\*(C'\fR, or disabled, e.g. \f(CW\*(C`no_ignore_case\*(C'\fR. Case does not +matter. Multiple calls to \fBConfigure()\fR are possible. +.PP +Alternatively, as of version 2.24, the configuration options may be +passed together with the \f(CW\*(C`use\*(C'\fR statement: +.PP +.Vb 1 +\& use Getopt::Long qw(:config no_ignore_case bundling); +.Ve +.PP +The following options are available: +.IP "default" 12 +.IX Item "default" +This option causes all configuration options to be reset to their +default values. +.IP "posix_default" 12 +.IX Item "posix_default" +This option causes all configuration options to be reset to their +default values as if the environment variable \s-1POSIXLY_CORRECT\s0 had +been set. +.IP "auto_abbrev" 12 +.IX Item "auto_abbrev" +Allow option names to be abbreviated to uniqueness. +Default is enabled unless environment variable +\&\s-1POSIXLY_CORRECT\s0 has been set, in which case \f(CW\*(C`auto_abbrev\*(C'\fR is disabled. +.IP "getopt_compat" 12 +.IX Item "getopt_compat" +Allow \f(CW\*(C`+\*(C'\fR to start options. +Default is enabled unless environment variable +\&\s-1POSIXLY_CORRECT\s0 has been set, in which case \f(CW\*(C`getopt_compat\*(C'\fR is disabled. +.IP "gnu_compat" 12 +.IX Item "gnu_compat" +\&\f(CW\*(C`gnu_compat\*(C'\fR controls whether \f(CW\*(C`\-\-opt=\*(C'\fR is allowed, and what it should +do. Without \f(CW\*(C`gnu_compat\*(C'\fR, \f(CW\*(C`\-\-opt=\*(C'\fR gives an error. With \f(CW\*(C`gnu_compat\*(C'\fR, +\&\f(CW\*(C`\-\-opt=\*(C'\fR will give option \f(CW\*(C`opt\*(C'\fR and empty value. +This is the way \s-1GNU\s0 \fBgetopt_long()\fR does it. +.Sp +Note that \f(CW\*(C`\-\-opt value\*(C'\fR is still accepted, even though \s-1GNU\s0 +\&\fBgetopt_long()\fR doesn't. +.IP "gnu_getopt" 12 +.IX Item "gnu_getopt" +This is a short way of setting \f(CW\*(C`gnu_compat\*(C'\fR \f(CW\*(C`bundling\*(C'\fR \f(CW\*(C`permute\*(C'\fR +\&\f(CW\*(C`no_getopt_compat\*(C'\fR. With \f(CW\*(C`gnu_getopt\*(C'\fR, command line handling should be +reasonably compatible with \s-1GNU\s0 \fBgetopt_long()\fR. +.IP "require_order" 12 +.IX Item "require_order" +Whether command line arguments are allowed to be mixed with options. +Default is disabled unless environment variable +\&\s-1POSIXLY_CORRECT\s0 has been set, in which case \f(CW\*(C`require_order\*(C'\fR is enabled. +.Sp +See also \f(CW\*(C`permute\*(C'\fR, which is the opposite of \f(CW\*(C`require_order\*(C'\fR. +.IP "permute" 12 +.IX Item "permute" +Whether command line arguments are allowed to be mixed with options. +Default is enabled unless environment variable +\&\s-1POSIXLY_CORRECT\s0 has been set, in which case \f(CW\*(C`permute\*(C'\fR is disabled. +Note that \f(CW\*(C`permute\*(C'\fR is the opposite of \f(CW\*(C`require_order\*(C'\fR. +.Sp +If \f(CW\*(C`permute\*(C'\fR is enabled, this means that +.Sp +.Vb 1 +\& \-\-foo arg1 \-\-bar arg2 arg3 +.Ve +.Sp +is equivalent to +.Sp +.Vb 1 +\& \-\-foo \-\-bar arg1 arg2 arg3 +.Ve +.Sp +If an argument callback routine is specified, \f(CW@ARGV\fR will always be +empty upon successful return of \fBGetOptions()\fR since all options have been +processed. The only exception is when \f(CW\*(C`\-\-\*(C'\fR is used: +.Sp +.Vb 1 +\& \-\-foo arg1 \-\-bar arg2 \-\- arg3 +.Ve +.Sp +This will call the callback routine for arg1 and arg2, and then +terminate \fBGetOptions()\fR leaving \f(CW"arg3"\fR in \f(CW@ARGV\fR. +.Sp +If \f(CW\*(C`require_order\*(C'\fR is enabled, options processing +terminates when the first non-option is encountered. +.Sp +.Vb 1 +\& \-\-foo arg1 \-\-bar arg2 arg3 +.Ve +.Sp +is equivalent to +.Sp +.Vb 1 +\& \-\-foo \-\- arg1 \-\-bar arg2 arg3 +.Ve +.Sp +If \f(CW\*(C`pass_through\*(C'\fR is also enabled, options processing will terminate +at the first unrecognized option, or non-option, whichever comes +first. +.IP "bundling (default: disabled)" 12 +.IX Item "bundling (default: disabled)" +Enabling this option will allow single-character options to be +bundled. To distinguish bundles from long option names, long options +\&\fImust\fR be introduced with \f(CW\*(C`\-\-\*(C'\fR and bundles with \f(CW\*(C`\-\*(C'\fR. +.Sp +Note that, if you have options \f(CW\*(C`a\*(C'\fR, \f(CW\*(C`l\*(C'\fR and \f(CW\*(C`all\*(C'\fR, and +auto_abbrev enabled, possible arguments and option settings are: +.Sp +.Vb 6 +\& using argument sets option(s) +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& \-a, \-\-a a +\& \-l, \-\-l l +\& \-al, \-la, \-ala, \-all,... a, l +\& \-\-al, \-\-all all +.Ve +.Sp +The surprising part is that \f(CW\*(C`\-\-a\*(C'\fR sets option \f(CW\*(C`a\*(C'\fR (due to auto +completion), not \f(CW\*(C`all\*(C'\fR. +.Sp +Note: disabling \f(CW\*(C`bundling\*(C'\fR also disables \f(CW\*(C`bundling_override\*(C'\fR. +.IP "bundling_override (default: disabled)" 12 +.IX Item "bundling_override (default: disabled)" +If \f(CW\*(C`bundling_override\*(C'\fR is enabled, bundling is enabled as with +\&\f(CW\*(C`bundling\*(C'\fR but now long option names override option bundles. +.Sp +Note: disabling \f(CW\*(C`bundling_override\*(C'\fR also disables \f(CW\*(C`bundling\*(C'\fR. +.Sp +\&\fBNote:\fR Using option bundling can easily lead to unexpected results, +especially when mixing long options and bundles. Caveat emptor. +.IP "ignore_case (default: enabled)" 12 +.IX Item "ignore_case (default: enabled)" +If enabled, case is ignored when matching option names. If, however, +bundling is enabled as well, single character options will be treated +case-sensitive. +.Sp +With \f(CW\*(C`ignore_case\*(C'\fR, option specifications for options that only +differ in case, e.g., \f(CW"foo"\fR and \f(CW"Foo"\fR, will be flagged as +duplicates. +.Sp +Note: disabling \f(CW\*(C`ignore_case\*(C'\fR also disables \f(CW\*(C`ignore_case_always\*(C'\fR. +.IP "ignore_case_always (default: disabled)" 12 +.IX Item "ignore_case_always (default: disabled)" +When bundling is in effect, case is ignored on single-character +options also. +.Sp +Note: disabling \f(CW\*(C`ignore_case_always\*(C'\fR also disables \f(CW\*(C`ignore_case\*(C'\fR. +.IP "auto_version (default:disabled)" 12 +.IX Item "auto_version (default:disabled)" +Automatically provide support for the \fB\-\-version\fR option if +the application did not specify a handler for this option itself. +.Sp +Getopt::Long will provide a standard version message that includes the +program name, its version (if \f(CW$main::VERSION\fR is defined), and the +versions of Getopt::Long and Perl. The message will be written to +standard output and processing will terminate. +.Sp +\&\f(CW\*(C`auto_version\*(C'\fR will be enabled if the calling program explicitly +specified a version number higher than 2.32 in the \f(CW\*(C`use\*(C'\fR or +\&\f(CW\*(C`require\*(C'\fR statement. +.IP "auto_help (default:disabled)" 12 +.IX Item "auto_help (default:disabled)" +Automatically provide support for the \fB\-\-help\fR and \fB\-?\fR options if +the application did not specify a handler for this option itself. +.Sp +Getopt::Long will provide a help message using module Pod::Usage. The +message, derived from the \s-1SYNOPSIS POD\s0 section, will be written to +standard output and processing will terminate. +.Sp +\&\f(CW\*(C`auto_help\*(C'\fR will be enabled if the calling program explicitly +specified a version number higher than 2.32 in the \f(CW\*(C`use\*(C'\fR or +\&\f(CW\*(C`require\*(C'\fR statement. +.IP "pass_through (default: disabled)" 12 +.IX Item "pass_through (default: disabled)" +With \f(CW\*(C`pass_through\*(C'\fR anything that is unknown, ambiguous or supplied with +an invalid option will not be flagged as an error. Instead the unknown +option(s) will be passed to the catchall \f(CW\*(C`<>\*(C'\fR if present, otherwise +through to \f(CW@ARGV\fR. This makes it possible to write wrapper scripts that +process only part of the user supplied command line arguments, and pass the +remaining options to some other program. +.Sp +If \f(CW\*(C`require_order\*(C'\fR is enabled, options processing will terminate at the +first unrecognized option, or non-option, whichever comes first and all +remaining arguments are passed to \f(CW@ARGV\fR instead of the catchall +\&\f(CW\*(C`<>\*(C'\fR if present. However, if \f(CW\*(C`permute\*(C'\fR is enabled instead, results +can become confusing. +.Sp +Note that the options terminator (default \f(CW\*(C`\-\-\*(C'\fR), if present, will +also be passed through in \f(CW@ARGV\fR. +.IP "prefix" 12 +.IX Item "prefix" +The string that starts options. If a constant string is not +sufficient, see \f(CW\*(C`prefix_pattern\*(C'\fR. +.IP "prefix_pattern" 12 +.IX Item "prefix_pattern" +A Perl pattern that identifies the strings that introduce options. +Default is \f(CW\*(C`\-\-|\-|\e+\*(C'\fR unless environment variable +\&\s-1POSIXLY_CORRECT\s0 has been set, in which case it is \f(CW\*(C`\-\-|\-\*(C'\fR. +.IP "long_prefix_pattern" 12 +.IX Item "long_prefix_pattern" +A Perl pattern that allows the disambiguation of long and short +prefixes. Default is \f(CW\*(C`\-\-\*(C'\fR. +.Sp +Typically you only need to set this if you are using nonstandard +prefixes and want some or all of them to have the same semantics as +\&'\-\-' does under normal circumstances. +.Sp +For example, setting prefix_pattern to \f(CW\*(C`\-\-|\-|\e+|\e/\*(C'\fR and +long_prefix_pattern to \f(CW\*(C`\-\-|\e/\*(C'\fR would add Win32 style argument +handling. +.IP "debug (default: disabled)" 12 +.IX Item "debug (default: disabled)" +Enable debugging output. +.SH "Exportable Methods" +.IX Header "Exportable Methods" +.IP "VersionMessage" 4 +.IX Item "VersionMessage" +This subroutine provides a standard version message. Its argument can be: +.RS 4 +.IP "\(bu" 4 +A string containing the text of a message to print \fIbefore\fR printing +the standard message. +.IP "\(bu" 4 +A numeric value corresponding to the desired exit status. +.IP "\(bu" 4 +A reference to a hash. +.RE +.RS 4 +.Sp +If more than one argument is given then the entire argument list is +assumed to be a hash. If a hash is supplied (either as a reference or +as a list) it should contain one or more elements with the following +keys: +.ie n .IP """\-message""" 4 +.el .IP "\f(CW\-message\fR" 4 +.IX Item "-message" +.PD 0 +.ie n .IP """\-msg""" 4 +.el .IP "\f(CW\-msg\fR" 4 +.IX Item "-msg" +.PD +The text of a message to print immediately prior to printing the +program's usage message. +.ie n .IP """\-exitval""" 4 +.el .IP "\f(CW\-exitval\fR" 4 +.IX Item "-exitval" +The desired exit status to pass to the \fB\fBexit()\fB\fR function. +This should be an integer, or else the string \*(L"\s-1NOEXIT\*(R"\s0 to +indicate that control should simply be returned without +terminating the invoking process. +.ie n .IP """\-output""" 4 +.el .IP "\f(CW\-output\fR" 4 +.IX Item "-output" +A reference to a filehandle, or the pathname of a file to which the +usage message should be written. The default is \f(CW\*(C`\e*STDERR\*(C'\fR unless the +exit value is less than 2 (in which case the default is \f(CW\*(C`\e*STDOUT\*(C'\fR). +.RE +.RS 4 +.Sp +You cannot tie this routine directly to an option, e.g.: +.Sp +.Vb 1 +\& GetOptions("version" => \e&VersionMessage); +.Ve +.Sp +Use this instead: +.Sp +.Vb 1 +\& GetOptions("version" => sub { VersionMessage() }); +.Ve +.RE +.IP "HelpMessage" 4 +.IX Item "HelpMessage" +This subroutine produces a standard help message, derived from the +program's \s-1POD\s0 section \s-1SYNOPSIS\s0 using Pod::Usage. It takes the same +arguments as \fBVersionMessage()\fR. In particular, you cannot tie it +directly to an option, e.g.: +.Sp +.Vb 1 +\& GetOptions("help" => \e&HelpMessage); +.Ve +.Sp +Use this instead: +.Sp +.Vb 1 +\& GetOptions("help" => sub { HelpMessage() }); +.Ve +.SH "Return values and Errors" +.IX Header "Return values and Errors" +Configuration errors and errors in the option definitions are +signalled using \fBdie()\fR and will terminate the calling program unless +the call to \fBGetopt::Long::GetOptions()\fR was embedded in \f(CW\*(C`eval { ... +}\*(C'\fR, or \fBdie()\fR was trapped using \f(CW$SIG{_\|_DIE_\|_}\fR. +.PP +GetOptions returns true to indicate success. +It returns false when the function detected one or more errors during +option parsing. These errors are signalled using \fBwarn()\fR and can be +trapped with \f(CW$SIG{_\|_WARN_\|_}\fR. +.SH "Legacy" +.IX Header "Legacy" +The earliest development of \f(CW\*(C`newgetopt.pl\*(C'\fR started in 1990, with Perl +version 4. As a result, its development, and the development of +Getopt::Long, has gone through several stages. Since backward +compatibility has always been extremely important, the current version +of Getopt::Long still supports a lot of constructs that nowadays are +no longer necessary or otherwise unwanted. This section describes +briefly some of these 'features'. +.SS "Default destinations" +.IX Subsection "Default destinations" +When no destination is specified for an option, GetOptions will store +the resultant value in a global variable named \f(CW\*(C`opt_\*(C'\fR\fI\s-1XXX\s0\fR, where +\&\fI\s-1XXX\s0\fR is the primary name of this option. When a program executes +under \f(CW\*(C`use strict\*(C'\fR (recommended), these variables must be +pre-declared with \fBour()\fR or \f(CW\*(C`use vars\*(C'\fR. +.PP +.Vb 2 +\& our $opt_length = 0; +\& GetOptions (\*(Aqlength=i\*(Aq); # will store in $opt_length +.Ve +.PP +To yield a usable Perl variable, characters that are not part of the +syntax for variables are translated to underscores. For example, +\&\f(CW\*(C`\-\-fpp\-struct\-return\*(C'\fR will set the variable +\&\f(CW$opt_fpp_struct_return\fR. Note that this variable resides in the +namespace of the calling program, not necessarily \f(CW\*(C`main\*(C'\fR. For +example: +.PP +.Vb 1 +\& GetOptions ("size=i", "sizes=i@"); +.Ve +.PP +with command line \*(L"\-size 10 \-sizes 24 \-sizes 48\*(R" will perform the +equivalent of the assignments +.PP +.Vb 2 +\& $opt_size = 10; +\& @opt_sizes = (24, 48); +.Ve +.SS "Alternative option starters" +.IX Subsection "Alternative option starters" +A string of alternative option starter characters may be passed as the +first argument (or the first argument after a leading hash reference +argument). +.PP +.Vb 2 +\& my $len = 0; +\& GetOptions (\*(Aq/\*(Aq, \*(Aqlength=i\*(Aq => $len); +.Ve +.PP +Now the command line may look like: +.PP +.Vb 1 +\& /length 24 \-\- arg +.Ve +.PP +Note that to terminate options processing still requires a double dash +\&\f(CW\*(C`\-\-\*(C'\fR. +.PP +\&\fBGetOptions()\fR will not interpret a leading \f(CW"<>"\fR as option starters +if the next argument is a reference. To force \f(CW"<"\fR and \f(CW">"\fR as +option starters, use \f(CW"><"\fR. Confusing? Well, \fBusing a starter +argument is strongly deprecated\fR anyway. +.SS "Configuration variables" +.IX Subsection "Configuration variables" +Previous versions of Getopt::Long used variables for the purpose of +configuring. Although manipulating these variables still work, it is +strongly encouraged to use the \f(CW\*(C`Configure\*(C'\fR routine that was introduced +in version 2.17. Besides, it is much easier. +.SH "Tips and Techniques" +.IX Header "Tips and Techniques" +.SS "Pushing multiple values in a hash option" +.IX Subsection "Pushing multiple values in a hash option" +Sometimes you want to combine the best of hashes and arrays. For +example, the command line: +.PP +.Vb 1 +\& \-\-list add=first \-\-list add=second \-\-list add=third +.Ve +.PP +where each successive 'list add' option will push the value of add +into array ref \f(CW$list\fR\->{'add'}. The result would be like +.PP +.Vb 1 +\& $list\->{add} = [qw(first second third)]; +.Ve +.PP +This can be accomplished with a destination routine: +.PP +.Vb 2 +\& GetOptions(\*(Aqlist=s%\*(Aq => +\& sub { push(@{$list{$_[1]}}, $_[2]) }); +.Ve +.SH "Troubleshooting" +.IX Header "Troubleshooting" +.SS "GetOptions does not return a false result when an option is not supplied" +.IX Subsection "GetOptions does not return a false result when an option is not supplied" +That's why they're called 'options'. +.SS "GetOptions does not split the command line correctly" +.IX Subsection "GetOptions does not split the command line correctly" +The command line is not split by GetOptions, but by the command line +interpreter (\s-1CLI\s0). On Unix, this is the shell. On Windows, it is +\&\s-1COMMAND.COM\s0 or \s-1CMD.EXE.\s0 Other operating systems have other CLIs. +.PP +It is important to know that these CLIs may behave different when the +command line contains special characters, in particular quotes or +backslashes. For example, with Unix shells you can use single quotes +(\f(CW\*(C`\*(Aq\*(C'\fR) and double quotes (\f(CW\*(C`"\*(C'\fR) to group words together. The following +alternatives are equivalent on Unix: +.PP +.Vb 3 +\& "two words" +\& \*(Aqtwo words\*(Aq +\& two\e words +.Ve +.PP +In case of doubt, insert the following statement in front of your Perl +program: +.PP +.Vb 1 +\& print STDERR (join("|",@ARGV),"\en"); +.Ve +.PP +to verify how your \s-1CLI\s0 passes the arguments to the program. +.SS "Undefined subroutine &main::GetOptions called" +.IX Subsection "Undefined subroutine &main::GetOptions called" +Are you running Windows, and did you write +.PP +.Vb 1 +\& use GetOpt::Long; +.Ve +.PP +(note the capital 'O')? +.ie n .SS "How do I put a ""\-?"" option into a Getopt::Long?" +.el .SS "How do I put a ``\-?'' option into a Getopt::Long?" +.IX Subsection "How do I put a -? option into a Getopt::Long?" +You can only obtain this using an alias, and Getopt::Long of at least +version 2.13. +.PP +.Vb 2 +\& use Getopt::Long; +\& GetOptions ("help|?"); # \-help and \-? will both set $opt_help +.Ve +.PP +Other characters that can't appear in Perl identifiers are also +supported in aliases with Getopt::Long of at version 2.39. Note that +the characters \f(CW\*(C`!\*(C'\fR, \f(CW\*(C`|\*(C'\fR, \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`=\*(C'\fR, and \f(CW\*(C`:\*(C'\fR can only appear as the +first (or only) character of an alias. +.PP +As of version 2.32 Getopt::Long provides auto-help, a quick and easy way +to add the options \-\-help and \-? to your program, and handle them. +.PP +See \f(CW\*(C`auto_help\*(C'\fR in section \*(L"Configuring Getopt::Long\*(R". +.SH "AUTHOR" +.IX Header "AUTHOR" +Johan Vromans +.SH "COPYRIGHT AND DISCLAIMER" +.IX Header "COPYRIGHT AND DISCLAIMER" +This program is Copyright 1990,2015 by Johan Vromans. +This program is free software; you can redistribute it and/or +modify it under the terms of the Perl Artistic License or the +\&\s-1GNU\s0 General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any +later version. +.PP +This program is distributed in the hope that it will be useful, +but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of +\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See the +\&\s-1GNU\s0 General Public License for more details. +.PP +If you do not have a copy of the \s-1GNU\s0 General Public License write to +the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +\&\s-1MA 02139, USA.\s0 diff --git a/data/miniconda3/man/man3/Getopt%3A%3AStd.3 b/data/miniconda3/man/man3/Getopt%3A%3AStd.3 new file mode 100644 index 0000000000000000000000000000000000000000..4f1c4bd567d475b2354c6abf405bc197777b9a54 --- /dev/null +++ b/data/miniconda3/man/man3/Getopt%3A%3AStd.3 @@ -0,0 +1,215 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Getopt::Std 3" +.TH Getopt::Std 3 "2020-12-18" "perl v5.32.1" "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" +Getopt::Std \- Process single\-character switches with switch clustering +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Getopt::Std; +\& +\& getopts(\*(Aqoif:\*(Aq); # \-o & \-i are boolean flags, \-f takes an argument +\& # Sets $opt_* as a side effect. +\& getopts(\*(Aqoif:\*(Aq, \e%opts); # options as above. Values in %opts +\& getopt(\*(AqoDI\*(Aq); # \-o, \-D & \-I take arg. +\& # Sets $opt_* as a side effect. +\& getopt(\*(AqoDI\*(Aq, \e%opts); # \-o, \-D & \-I take arg. Values in %opts +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`getopts()\*(C'\fR function processes single-character switches with switch +clustering. Pass one argument which is a string containing all switches to be +recognized. For each switch found, if an argument is expected and provided, +\&\f(CW\*(C`getopts()\*(C'\fR sets \f(CW$opt_x\fR (where \f(CW\*(C`x\*(C'\fR is the switch name) to the value of +the argument. If an argument is expected but none is provided, \f(CW$opt_x\fR is +set to an undefined value. If a switch does not take an argument, \f(CW$opt_x\fR +is set to \f(CW1\fR. +.PP +Switches which take an argument don't care whether there is a space between +the switch and the argument. If unspecified switches are found on the +command-line, the user will be warned that an unknown option was given. +.PP +The \f(CW\*(C`getopts()\*(C'\fR function returns true unless an invalid option was found. +.PP +The \f(CW\*(C`getopt()\*(C'\fR function is similar, but its argument is a string containing +all switches that take an argument. If no argument is provided for a switch, +say, \f(CW\*(C`y\*(C'\fR, the corresponding \f(CW$opt_y\fR will be set to an undefined value. +Unspecified switches are silently accepted. Use of \f(CW\*(C`getopt()\*(C'\fR is not +recommended. +.PP +Note that, if your code is running under the recommended \f(CW\*(C`use strict +vars\*(C'\fR pragma, you will need to declare these package variables +with \f(CW\*(C`our\*(C'\fR: +.PP +.Vb 1 +\& our($opt_x, $opt_y); +.Ve +.PP +For those of you who don't like additional global variables being created, +\&\f(CW\*(C`getopt()\*(C'\fR and \f(CW\*(C`getopts()\*(C'\fR will also accept a hash reference as an optional +second argument. Hash keys will be \f(CW\*(C`x\*(C'\fR (where \f(CW\*(C`x\*(C'\fR is the switch name) with +key values the value of the argument or \f(CW1\fR if no argument is specified. +.PP +To allow programs to process arguments that look like switches, but aren't, +both functions will stop processing switches when they see the argument +\&\f(CW\*(C`\-\-\*(C'\fR. The \f(CW\*(C`\-\-\*(C'\fR will be removed from \f(CW@ARGV\fR. +.ie n .SH """\-\-help"" and ""\-\-version""" +.el .SH "\f(CW\-\-help\fP and \f(CW\-\-version\fP" +.IX Header "--help and --version" +If \f(CW\*(C`\-\*(C'\fR is not a recognized switch letter, \fBgetopts()\fR supports arguments +\&\f(CW\*(C`\-\-help\*(C'\fR and \f(CW\*(C`\-\-version\*(C'\fR. If \f(CW\*(C`main::HELP_MESSAGE()\*(C'\fR and/or +\&\f(CW\*(C`main::VERSION_MESSAGE()\*(C'\fR are defined, they are called; the arguments are +the output file handle, the name of option-processing package, its version, +and the switches string. If the subroutines are not defined, an attempt is +made to generate intelligent messages; for best results, define \f(CW$main::VERSION\fR. +.PP +If embedded documentation (in pod format, see perlpod) is detected +in the script, \f(CW\*(C`\-\-help\*(C'\fR will also show how to access the documentation. +.PP +Note that due to excessive paranoia, if \f(CW$Getopt::Std::STANDARD_HELP_VERSION\fR +isn't true (the default is false), then the messages are printed on \s-1STDERR,\s0 +and the processing continues after the messages are printed. This being +the opposite of the standard-conforming behaviour, it is strongly recommended +to set \f(CW$Getopt::Std::STANDARD_HELP_VERSION\fR to true. +.PP +One can change the output file handle of the messages by setting +\&\f(CW$Getopt::Std::OUTPUT_HELP_VERSION\fR. One can print the messages of \f(CW\*(C`\-\-help\*(C'\fR +(without the \f(CW\*(C`Usage:\*(C'\fR line) and \f(CW\*(C`\-\-version\*(C'\fR by calling functions \fBhelp_mess()\fR +and \fBversion_mess()\fR with the switches string as an argument. diff --git a/data/miniconda3/man/man3/HTTP%3A%3ATiny.3 b/data/miniconda3/man/man3/HTTP%3A%3ATiny.3 new file mode 100644 index 0000000000000000000000000000000000000000..bca46da5967fecf993e9d95cfaaa4b4d4e6008b8 --- /dev/null +++ b/data/miniconda3/man/man3/HTTP%3A%3ATiny.3 @@ -0,0 +1,691 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "HTTP::Tiny 3" +.TH HTTP::Tiny 3 "2020-12-18" "perl v5.32.1" "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" +HTTP::Tiny \- A small, simple, correct HTTP/1.1 client +.SH "VERSION" +.IX Header "VERSION" +version 0.076 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use HTTP::Tiny; +\& +\& my $response = HTTP::Tiny\->new\->get(\*(Aqhttp://example.com/\*(Aq); +\& +\& die "Failed!\en" unless $response\->{success}; +\& +\& print "$response\->{status} $response\->{reason}\en"; +\& +\& while (my ($k, $v) = each %{$response\->{headers}}) { +\& for (ref $v eq \*(AqARRAY\*(Aq ? @$v : $v) { +\& print "$k: $_\en"; +\& } +\& } +\& +\& print $response\->{content} if length $response\->{content}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a very simple \s-1HTTP/1.1\s0 client, designed for doing simple +requests without the overhead of a large framework like LWP::UserAgent. +.PP +It is more correct and more complete than HTTP::Lite. It supports +proxies and redirection. It also correctly resumes after \s-1EINTR.\s0 +.PP +If IO::Socket::IP 0.25 or later is installed, HTTP::Tiny will use it instead +of IO::Socket::INET for transparent support for both IPv4 and IPv6. +.PP +Cookie support requires HTTP::CookieJar or an equivalent class. +.SH "METHODS" +.IX Header "METHODS" +.SS "new" +.IX Subsection "new" +.Vb 1 +\& $http = HTTP::Tiny\->new( %attributes ); +.Ve +.PP +This constructor returns a new HTTP::Tiny object. Valid attributes include: +.IP "\(bu" 4 +\&\f(CW\*(C`agent\*(C'\fR X A user-agent string (defaults to 'HTTP\-Tiny/$VERSION'). If \f(CW\*(C`agent\*(C'\fR X ends in a space character, the default user-agent string is appended. +.IP "\(bu" 4 +\&\f(CW\*(C`cookie_jar\*(C'\fR X An instance of HTTP::CookieJar X or equivalent class that supports the \f(CW\*(C`add\*(C'\fR and \f(CW\*(C`cookie_header\*(C'\fR methods +.IP "\(bu" 4 +\&\f(CW\*(C`default_headers\*(C'\fR X A hashref of default headers to apply to requests +.IP "\(bu" 4 +\&\f(CW\*(C`local_address\*(C'\fR X The local \s-1IP\s0 address to bind to +.IP "\(bu" 4 +\&\f(CW\*(C`keep_alive\*(C'\fR X Whether to reuse the last connection (if for the same scheme, host and port) (defaults to 1) +.IP "\(bu" 4 +\&\f(CW\*(C`max_redirect\*(C'\fR X Maximum number of redirects allowed (defaults to 5) +.IP "\(bu" 4 +\&\f(CW\*(C`max_size\*(C'\fR X Maximum response size in bytes (only when not using a data callback). If defined, responses larger than this will return an exception. +.IP "\(bu" 4 +\&\f(CW\*(C`http_proxy\*(C'\fR X \s-1URL\s0 of a proxy server to use for \s-1HTTP\s0 connections (default is \f(CW$ENV{http_proxy}\fR X if set) +.IP "\(bu" 4 +\&\f(CW\*(C`https_proxy\*(C'\fR X \s-1URL\s0 of a proxy server to use for \s-1HTTPS\s0 connections (default is \f(CW$ENV{https_proxy}\fR X if set) +.IP "\(bu" 4 +\&\f(CW\*(C`proxy\*(C'\fR X \s-1URL\s0 of a generic proxy server for both \s-1HTTP\s0 and \s-1HTTPS\s0 connections (default is \f(CW$ENV{all_proxy}\fR X if set) +.IP "\(bu" 4 +\&\f(CW\*(C`no_proxy\*(C'\fR X List of domain suffixes that should not be proxied. Must be a comma-separated string or an array reference. (default is \f(CW$ENV{no_proxy}\fR X) +.IP "\(bu" 4 +\&\f(CW\*(C`timeout\*(C'\fR X Request timeout in seconds (default is 60) If a socket open, read or write takes longer than the timeout, an exception is thrown. +.IP "\(bu" 4 +\&\f(CW\*(C`verify_SSL\*(C'\fR X A boolean that indicates whether to validate the \s-1SSL\s0 certificate of an \f(CW\*(C`https\*(C'\fR X connection (default is false) +.IP "\(bu" 4 +\&\f(CW\*(C`SSL_options\*(C'\fR X A hashref of \f(CW\*(C`SSL_*\*(C'\fR X options to pass through to IO::Socket::SSL +.PP +Passing an explicit \f(CW\*(C`undef\*(C'\fR for \f(CW\*(C`proxy\*(C'\fR, \f(CW\*(C`http_proxy\*(C'\fR or \f(CW\*(C`https_proxy\*(C'\fR will +prevent getting the corresponding proxies from the environment. +.PP +Exceptions from \f(CW\*(C`max_size\*(C'\fR, \f(CW\*(C`timeout\*(C'\fR or other errors will result in a +pseudo-HTTP status code of 599 and a reason of \*(L"Internal Exception\*(R". The +content field in the response will contain the text of the exception. +.PP +The \f(CW\*(C`keep_alive\*(C'\fR parameter enables a persistent connection, but only to a +single destination scheme, host and port. Also, if any connection-relevant +attributes are modified, or if the process \s-1ID\s0 or thread \s-1ID\s0 change, the +persistent connection will be dropped. If you want persistent connections +across multiple destinations, use multiple HTTP::Tiny objects. +.PP +See \*(L"\s-1SSL SUPPORT\*(R"\s0 for more on the \f(CW\*(C`verify_SSL\*(C'\fR and \f(CW\*(C`SSL_options\*(C'\fR attributes. +.SS "get|head|put|post|delete" +.IX Subsection "get|head|put|post|delete" +.Vb 3 +\& $response = $http\->get($url); +\& $response = $http\->get($url, \e%options); +\& $response = $http\->head($url); +.Ve +.PP +These methods are shorthand for calling \f(CW\*(C`request()\*(C'\fR for the given method. The +\&\s-1URL\s0 must have unsafe characters escaped and international domain names encoded. +See \f(CW\*(C`request()\*(C'\fR for valid options and a description of the response. +.PP +The \f(CW\*(C`success\*(C'\fR field of the response will be true if the status code is 2XX. +.SS "post_form" +.IX Subsection "post_form" +.Vb 2 +\& $response = $http\->post_form($url, $form_data); +\& $response = $http\->post_form($url, $form_data, \e%options); +.Ve +.PP +This method executes a \f(CW\*(C`POST\*(C'\fR request and sends the key/value pairs from a +form data hash or array reference to the given \s-1URL\s0 with a \f(CW\*(C`content\-type\*(C'\fR of +\&\f(CW\*(C`application/x\-www\-form\-urlencoded\*(C'\fR. If data is provided as an array +reference, the order is preserved; if provided as a hash reference, the terms +are sorted on key and value for consistency. See documentation for the +\&\f(CW\*(C`www_form_urlencode\*(C'\fR method for details on the encoding. +.PP +The \s-1URL\s0 must have unsafe characters escaped and international domain names +encoded. See \f(CW\*(C`request()\*(C'\fR for valid options and a description of the response. +Any \f(CW\*(C`content\-type\*(C'\fR header or content in the options hashref will be ignored. +.PP +The \f(CW\*(C`success\*(C'\fR field of the response will be true if the status code is 2XX. +.SS "mirror" +.IX Subsection "mirror" +.Vb 4 +\& $response = $http\->mirror($url, $file, \e%options) +\& if ( $response\->{success} ) { +\& print "$file is up to date\en"; +\& } +.Ve +.PP +Executes a \f(CW\*(C`GET\*(C'\fR request for the \s-1URL\s0 and saves the response body to the file +name provided. The \s-1URL\s0 must have unsafe characters escaped and international +domain names encoded. If the file already exists, the request will include an +\&\f(CW\*(C`If\-Modified\-Since\*(C'\fR header with the modification timestamp of the file. You +may specify a different \f(CW\*(C`If\-Modified\-Since\*(C'\fR header yourself in the \f(CW\*(C`$options\->{headers}\*(C'\fR hash. +.PP +The \f(CW\*(C`success\*(C'\fR field of the response will be true if the status code is 2XX +or if the status code is 304 (unmodified). +.PP +If the file was modified and the server response includes a properly +formatted \f(CW\*(C`Last\-Modified\*(C'\fR header, the file modification time will +be updated accordingly. +.SS "request" +.IX Subsection "request" +.Vb 2 +\& $response = $http\->request($method, $url); +\& $response = $http\->request($method, $url, \e%options); +.Ve +.PP +Executes an \s-1HTTP\s0 request of the given method type ('\s-1GET\s0', '\s-1HEAD\s0', '\s-1POST\s0', +\&'\s-1PUT\s0', etc.) on the given \s-1URL.\s0 The \s-1URL\s0 must have unsafe characters escaped and +international domain names encoded. +.PP +\&\fB\s-1NOTE\s0\fR: Method names are \fBcase-sensitive\fR per the \s-1HTTP/1.1\s0 specification. +Don't use \f(CW\*(C`get\*(C'\fR when you really want \f(CW\*(C`GET\*(C'\fR. See \s-1LIMITATIONS\s0 for +how this applies to redirection. +.PP +If the \s-1URL\s0 includes a \*(L"user:password\*(R" stanza, they will be used for Basic-style +authorization headers. (Authorization headers will not be included in a +redirected request.) For example: +.PP +.Vb 1 +\& $http\->request(\*(AqGET\*(Aq, \*(Aqhttp://Aladdin:open sesame@example.com/\*(Aq); +.Ve +.PP +If the \*(L"user:password\*(R" stanza contains reserved characters, they must +be percent-escaped: +.PP +.Vb 1 +\& $http\->request(\*(AqGET\*(Aq, \*(Aqhttp://john%40example.com:password@example.com/\*(Aq); +.Ve +.PP +A hashref of options may be appended to modify the request. +.PP +Valid options are: +.IP "\(bu" 4 +\&\f(CW\*(C`headers\*(C'\fR X A hashref containing headers to include with the request. If the value for a header is an array reference, the header will be output multiple times with each value in the array. These headers over-write any default headers. +.IP "\(bu" 4 +\&\f(CW\*(C`content\*(C'\fR X A scalar to include as the body of the request \s-1OR\s0 a code reference that will be called iteratively to produce the body of the request +.IP "\(bu" 4 +\&\f(CW\*(C`trailer_callback\*(C'\fR X A code reference that will be called if it exists to provide a hashref of trailing headers (only used with chunked transfer-encoding) +.IP "\(bu" 4 +\&\f(CW\*(C`data_callback\*(C'\fR X A code reference that will be called for each chunks of the response body received. +.IP "\(bu" 4 +\&\f(CW\*(C`peer\*(C'\fR X Override host resolution and force all connections to go only to a specific peer address, regardless of the \s-1URL\s0 of the request. This will include any redirections! This options should be used with extreme caution (e.g. debugging or very special circumstances). It can be given as either a scalar or a code reference that will receive the hostname and whose response will be taken as the address. +.PP +The \f(CW\*(C`Host\*(C'\fR header is generated from the \s-1URL\s0 in accordance with \s-1RFC 2616.\s0 It +is a fatal error to specify \f(CW\*(C`Host\*(C'\fR in the \f(CW\*(C`headers\*(C'\fR option. Other headers +may be ignored or overwritten if necessary for transport compliance. +.PP +If the \f(CW\*(C`content\*(C'\fR option is a code reference, it will be called iteratively +to provide the content body of the request. It should return the empty +string or undef when the iterator is exhausted. +.PP +If the \f(CW\*(C`content\*(C'\fR option is the empty string, no \f(CW\*(C`content\-type\*(C'\fR or +\&\f(CW\*(C`content\-length\*(C'\fR headers will be generated. +.PP +If the \f(CW\*(C`data_callback\*(C'\fR option is provided, it will be called iteratively until +the entire response body is received. The first argument will be a string +containing a chunk of the response body, the second argument will be the +in-progress response hash reference, as described below. (This allows +customizing the action of the callback based on the \f(CW\*(C`status\*(C'\fR or \f(CW\*(C`headers\*(C'\fR +received prior to the content body.) +.PP +The \f(CW\*(C`request\*(C'\fR method returns a hashref containing the response. The hashref +will have the following keys: +.IP "\(bu" 4 +\&\f(CW\*(C`success\*(C'\fR X Boolean indicating whether the operation returned a 2XX status code +.IP "\(bu" 4 +\&\f(CW\*(C`url\*(C'\fR X \s-1URL\s0 that provided the response. This is the \s-1URL\s0 of the request unless there were redirections, in which case it is the last \s-1URL\s0 queried in a redirection chain +.IP "\(bu" 4 +\&\f(CW\*(C`status\*(C'\fR X The \s-1HTTP\s0 status code of the response +.IP "\(bu" 4 +\&\f(CW\*(C`reason\*(C'\fR X The response phrase returned by the server +.IP "\(bu" 4 +\&\f(CW\*(C`content\*(C'\fR X The body of the response. If the response does not have any content or if a data callback is provided to consume the response body, this will be the empty string +.IP "\(bu" 4 +\&\f(CW\*(C`headers\*(C'\fR X A hashref of header fields. All header field names will be normalized to be lower case. If a header is repeated, the value will be an arrayref; it will otherwise be a scalar string containing the value +.IP "\(bu" 4 +\&\f(CW\*(C`protocol\*(C'\fR \- If this field exists, it is the protocol of the response such as \s-1HTTP/1.0\s0 or \s-1HTTP/1.1\s0 +.IP "\(bu" 4 +\&\f(CW\*(C`redirects\*(C'\fR If this field exists, it is an arrayref of response hash references from redirects in the same order that redirections occurred. If it does not exist, then no redirections occurred. +.PP +On an exception during the execution of the request, the \f(CW\*(C`status\*(C'\fR field will +contain 599, and the \f(CW\*(C`content\*(C'\fR field will contain the text of the exception. +.SS "www_form_urlencode" +.IX Subsection "www_form_urlencode" +.Vb 2 +\& $params = $http\->www_form_urlencode( $data ); +\& $response = $http\->get("http://example.com/query?$params"); +.Ve +.PP +This method converts the key/value pairs from a data hash or array reference +into a \f(CW\*(C`x\-www\-form\-urlencoded\*(C'\fR string. The keys and values from the data +reference will be \s-1UTF\-8\s0 encoded and escaped per \s-1RFC 3986.\s0 If a value is an +array reference, the key will be repeated with each of the values of the array +reference. If data is provided as a hash reference, the key/value pairs in the +resulting string will be sorted by key and value for consistent ordering. +.SS "can_ssl" +.IX Subsection "can_ssl" +.Vb 3 +\& $ok = HTTP::Tiny\->can_ssl; +\& ($ok, $why) = HTTP::Tiny\->can_ssl; +\& ($ok, $why) = $http\->can_ssl; +.Ve +.PP +Indicates if \s-1SSL\s0 support is available. When called as a class object, it +checks for the correct version of Net::SSLeay and IO::Socket::SSL. +When called as an object methods, if \f(CW\*(C`SSL_verify\*(C'\fR is true or if \f(CW\*(C`SSL_verify_mode\*(C'\fR +is set in \f(CW\*(C`SSL_options\*(C'\fR, it checks that a \s-1CA\s0 file is available. +.PP +In scalar context, returns a boolean indicating if \s-1SSL\s0 is available. +In list context, returns the boolean and a (possibly multi-line) string of +errors indicating why \s-1SSL\s0 isn't available. +.SS "connected" +.IX Subsection "connected" +.Vb 2 +\& $host = $http\->connected; +\& ($host, $port) = $http\->connected; +.Ve +.PP +Indicates if a connection to a peer is being kept alive, per the \f(CW\*(C`keep_alive\*(C'\fR +option. +.PP +In scalar context, returns the peer host and port, joined with a colon, or +\&\f(CW\*(C`undef\*(C'\fR (if no peer is connected). +In list context, returns the peer host and port or an empty list (if no peer +is connected). +.PP +\&\fBNote\fR: This method cannot reliably be used to discover whether the remote +host has closed its end of the socket. +.SH "SSL SUPPORT" +.IX Header "SSL SUPPORT" +Direct \f(CW\*(C`https\*(C'\fR connections are supported only if IO::Socket::SSL 1.56 or +greater and Net::SSLeay 1.49 or greater are installed. An exception will be +thrown if new enough versions of these modules are not installed or if the \s-1SSL\s0 +encryption fails. You can also use \f(CW\*(C`HTTP::Tiny::can_ssl()\*(C'\fR utility function +that returns boolean to see if the required modules are installed. +.PP +An \f(CW\*(C`https\*(C'\fR connection may be made via an \f(CW\*(C`http\*(C'\fR proxy that supports the \s-1CONNECT\s0 +command (i.e. \s-1RFC 2817\s0). You may not proxy \f(CW\*(C`https\*(C'\fR via a proxy that itself +requires \f(CW\*(C`https\*(C'\fR to communicate. +.PP +\&\s-1SSL\s0 provides two distinct capabilities: +.IP "\(bu" 4 +Encrypted communication channel +.IP "\(bu" 4 +Verification of server identity +.PP +\&\fBBy default, HTTP::Tiny does not verify server identity\fR. +.PP +Server identity verification is controversial and potentially tricky because it +depends on a (usually paid) third-party Certificate Authority (\s-1CA\s0) trust model +to validate a certificate as legitimate. This discriminates against servers +with self-signed certificates or certificates signed by free, community-driven +\&\s-1CA\s0's such as CAcert.org . +.PP +By default, HTTP::Tiny does not make any assumptions about your trust model, +threat level or risk tolerance. It just aims to give you an encrypted channel +when you need one. +.PP +Setting the \f(CW\*(C`verify_SSL\*(C'\fR attribute to a true value will make HTTP::Tiny verify +that an \s-1SSL\s0 connection has a valid \s-1SSL\s0 certificate corresponding to the host +name of the connection and that the \s-1SSL\s0 certificate has been verified by a \s-1CA.\s0 +Assuming you trust the \s-1CA,\s0 this will protect against a man-in-the-middle +attack . If you are +concerned about security, you should enable this option. +.PP +Certificate verification requires a file containing trusted \s-1CA\s0 certificates. +.PP +If the environment variable \f(CW\*(C`SSL_CERT_FILE\*(C'\fR is present, HTTP::Tiny +will try to find a \s-1CA\s0 certificate file in that location. +.PP +If the Mozilla::CA module is installed, HTTP::Tiny will use the \s-1CA\s0 file +included with it as a source of trusted \s-1CA\s0's. (This means you trust Mozilla, +the author of Mozilla::CA, the \s-1CPAN\s0 mirror where you got Mozilla::CA, the +toolchain used to install it, and your operating system security, right?) +.PP +If that module is not available, then HTTP::Tiny will search several +system-specific default locations for a \s-1CA\s0 certificate file: +.IP "\(bu" 4 +/etc/ssl/certs/ca\-certificates.crt +.IP "\(bu" 4 +/etc/pki/tls/certs/ca\-bundle.crt +.IP "\(bu" 4 +/etc/ssl/ca\-bundle.pem +.PP +An exception will be raised if \f(CW\*(C`verify_SSL\*(C'\fR is true and no \s-1CA\s0 certificate file +is available. +.PP +If you desire complete control over \s-1SSL\s0 connections, the \f(CW\*(C`SSL_options\*(C'\fR attribute +lets you provide a hash reference that will be passed through to +\&\f(CW\*(C`IO::Socket::SSL::start_SSL()\*(C'\fR, overriding any options set by HTTP::Tiny. For +example, to provide your own trusted \s-1CA\s0 file: +.PP +.Vb 3 +\& SSL_options => { +\& SSL_ca_file => $file_path, +\& } +.Ve +.PP +The \f(CW\*(C`SSL_options\*(C'\fR attribute could also be used for such things as providing a +client certificate for authentication to a server or controlling the choice of +cipher used for the \s-1SSL\s0 connection. See IO::Socket::SSL documentation for +details. +.SH "PROXY SUPPORT" +.IX Header "PROXY SUPPORT" +HTTP::Tiny can proxy both \f(CW\*(C`http\*(C'\fR and \f(CW\*(C`https\*(C'\fR requests. Only Basic proxy +authorization is supported and it must be provided as part of the proxy \s-1URL:\s0 +\&\f(CW\*(C`http://user:pass@proxy.example.com/\*(C'\fR. +.PP +HTTP::Tiny supports the following proxy environment variables: +.IP "\(bu" 4 +http_proxy or \s-1HTTP_PROXY\s0 +.IP "\(bu" 4 +https_proxy or \s-1HTTPS_PROXY\s0 +.IP "\(bu" 4 +all_proxy or \s-1ALL_PROXY\s0 +.PP +If the \f(CW\*(C`REQUEST_METHOD\*(C'\fR environment variable is set, then this might be a \s-1CGI\s0 +process and \f(CW\*(C`HTTP_PROXY\*(C'\fR would be set from the \f(CW\*(C`Proxy:\*(C'\fR header, which is a +security risk. If \f(CW\*(C`REQUEST_METHOD\*(C'\fR is set, \f(CW\*(C`HTTP_PROXY\*(C'\fR (the upper case +variant only) is ignored. +.PP +Tunnelling \f(CW\*(C`https\*(C'\fR over an \f(CW\*(C`http\*(C'\fR proxy using the \s-1CONNECT\s0 method is +supported. If your proxy uses \f(CW\*(C`https\*(C'\fR itself, you can not tunnel \f(CW\*(C`https\*(C'\fR +over it. +.PP +Be warned that proxying an \f(CW\*(C`https\*(C'\fR connection opens you to the risk of a +man-in-the-middle attack by the proxy server. +.PP +The \f(CW\*(C`no_proxy\*(C'\fR environment variable is supported in the format of a +comma-separated list of domain extensions proxy should not be used for. +.PP +Proxy arguments passed to \f(CW\*(C`new\*(C'\fR will override their corresponding +environment variables. +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +HTTP::Tiny is \fIconditionally compliant\fR with the +\&\s-1HTTP/1.1\s0 specifications : +.IP "\(bu" 4 +\&\*(L"Message Syntax and Routing\*(R" [\s-1RFC7230\s0] +.IP "\(bu" 4 +\&\*(L"Semantics and Content\*(R" [\s-1RFC7231\s0] +.IP "\(bu" 4 +\&\*(L"Conditional Requests\*(R" [\s-1RFC7232\s0] +.IP "\(bu" 4 +\&\*(L"Range Requests\*(R" [\s-1RFC7233\s0] +.IP "\(bu" 4 +\&\*(L"Caching\*(R" [\s-1RFC7234\s0] +.IP "\(bu" 4 +\&\*(L"Authentication\*(R" [\s-1RFC7235\s0] +.PP +It attempts to meet all \*(L"\s-1MUST\*(R"\s0 requirements of the specification, but does not +implement all \*(L"\s-1SHOULD\*(R"\s0 requirements. (Note: it was developed against the +earlier \s-1RFC 2616\s0 specification and may not yet meet the revised \s-1RFC 7230\-7235\s0 +spec.) +.PP +Some particular limitations of note include: +.IP "\(bu" 4 +HTTP::Tiny focuses on correct transport. Users are responsible for ensuring +that user-defined headers and content are compliant with the \s-1HTTP/1.1\s0 +specification. +.IP "\(bu" 4 +Users must ensure that URLs are properly escaped for unsafe characters and that +international domain names are properly encoded to \s-1ASCII.\s0 See URI::Escape, +URI::_punycode and Net::IDN::Encode. +.IP "\(bu" 4 +Redirection is very strict against the specification. Redirection is only +automatic for response codes 301, 302, 307 and 308 if the request method is +\&'\s-1GET\s0' or '\s-1HEAD\s0'. Response code 303 is always converted into a '\s-1GET\s0' +redirection, as mandated by the specification. There is no automatic support +for status 305 (\*(L"Use proxy\*(R") redirections. +.IP "\(bu" 4 +There is no provision for delaying a request body using an \f(CW\*(C`Expect\*(C'\fR header. +Unexpected \f(CW\*(C`1XX\*(C'\fR responses are silently ignored as per the specification. +.IP "\(bu" 4 +Only 'chunked' \f(CW\*(C`Transfer\-Encoding\*(C'\fR is supported. +.IP "\(bu" 4 +There is no support for a Request-URI of '*' for the '\s-1OPTIONS\s0' request. +.IP "\(bu" 4 +Headers mentioned in the RFCs and some other, well-known headers are +generated with their canonical case. Other headers are sent in the +case provided by the user. Except for control headers (which are sent first), +headers are sent in arbitrary order. +.PP +Despite the limitations listed above, HTTP::Tiny is considered +feature-complete. New feature requests should be directed to +HTTP::Tiny::UA. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\(bu" 4 +HTTP::Tiny::UA \- Higher level \s-1UA\s0 features for HTTP::Tiny +.IP "\(bu" 4 +HTTP::Thin \- HTTP::Tiny wrapper with HTTP::Request/HTTP::Response compatibility +.IP "\(bu" 4 +HTTP::Tiny::Mech \- Wrap WWW::Mechanize instance in HTTP::Tiny compatible interface +.IP "\(bu" 4 +IO::Socket::IP \- Required for IPv6 support +.IP "\(bu" 4 +IO::Socket::SSL \- Required for \s-1SSL\s0 support +.IP "\(bu" 4 +LWP::UserAgent \- If HTTP::Tiny isn't enough for you, this is the \*(L"standard\*(R" way to do things +.IP "\(bu" 4 +Mozilla::CA \- Required if you want to validate \s-1SSL\s0 certificates +.IP "\(bu" 4 +Net::SSLeay \- Required for \s-1SSL\s0 support +.SH "SUPPORT" +.IX Header "SUPPORT" +.SS "Bugs / Feature Requests" +.IX Subsection "Bugs / Feature Requests" +Please report any bugs or feature requests through the issue tracker +at . +You will be notified automatically of any progress on your issue. +.SS "Source Code" +.IX Subsection "Source Code" +This is open source software. The code repository is available for +public review and contribution under the terms of the license. +.PP + +.PP +.Vb 1 +\& git clone https://github.com/chansen/p5\-http\-tiny.git +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +Christian Hansen +.IP "\(bu" 4 +David Golden +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Alan Gardner +.IP "\(bu" 4 +Alessandro Ghedini +.IP "\(bu" 4 +A. Sinan Unur +.IP "\(bu" 4 +Brad Gilbert +.IP "\(bu" 4 +brian m. carlson +.IP "\(bu" 4 +Chris Nehren +.IP "\(bu" 4 +Chris Weyl +.IP "\(bu" 4 +Claes Jakobsson +.IP "\(bu" 4 +Clinton Gormley +.IP "\(bu" 4 +Craig A. Berry +.IP "\(bu" 4 +Craig Berry +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +David Mitchell +.IP "\(bu" 4 +Dean Pearce +.IP "\(bu" 4 +Edward Zborowski +.IP "\(bu" 4 +Felipe Gasper +.IP "\(bu" 4 +James Raspass +.IP "\(bu" 4 +Jeremy Mates +.IP "\(bu" 4 +Jess Robinson +.IP "\(bu" 4 +Karen Etheridge +.IP "\(bu" 4 +Lukas Eklund +.IP "\(bu" 4 +Martin J. Evans +.IP "\(bu" 4 +Martin-Louis Bright +.IP "\(bu" 4 +Mike Doherty +.IP "\(bu" 4 +Nicolas Rochelemagne +.IP "\(bu" 4 +Olaf Alders +.IP "\(bu" 4 +Olivier Mengue\*' +.IP "\(bu" 4 +Petr Pi\*'saX +.IP "\(bu" 4 +Serguei Trouchelle +.IP "\(bu" 4 +Shoichi Kaji +.IP "\(bu" 4 +SkyMarshal +.IP "\(bu" 4 +So\*:ren Kornetzki +.IP "\(bu" 4 +Steve Grazzini +.IP "\(bu" 4 +Syohei \s-1YOSHIDA\s0 +.IP "\(bu" 4 +Tatsuhiko Miyagawa +.IP "\(bu" 4 +Tom Hukins +.IP "\(bu" 4 +Tony Cook +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2018 by Christian Hansen. +.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. diff --git a/data/miniconda3/man/man3/Hash%3A%3AUtil%3A%3AFieldHash.3 b/data/miniconda3/man/man3/Hash%3A%3AUtil%3A%3AFieldHash.3 new file mode 100644 index 0000000000000000000000000000000000000000..d89ecb77a6b6f8a2a3634ab3948b7258fabfb2b9 --- /dev/null +++ b/data/miniconda3/man/man3/Hash%3A%3AUtil%3A%3AFieldHash.3 @@ -0,0 +1,938 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Hash::Util::FieldHash 3" +.TH Hash::Util::FieldHash 3 "2020-12-18" "perl v5.32.1" "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" +Hash::Util::FieldHash \- Support for Inside\-Out Classes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& ### Create fieldhashes +\& use Hash::Util qw(fieldhash fieldhashes); +\& +\& # Create a single field hash +\& fieldhash my %foo; +\& +\& # Create three at once... +\& fieldhashes \e my(%foo, %bar, %baz); +\& # ...or any number +\& fieldhashes @hashrefs; +\& +\& ### Create an idhash and register it for garbage collection +\& use Hash::Util::FieldHash qw(idhash register); +\& idhash my %name; +\& my $object = \e do { my $o }; +\& # register the idhash for garbage collection with $object +\& register($object, \e %name); +\& # the following entry will be deleted when $object goes out of scope +\& $name{$object} = \*(AqJohn Doe\*(Aq; +\& +\& ### Register an ordinary hash for garbage collection +\& use Hash::Util::FieldHash qw(id register); +\& my %name; +\& my $object = \e do { my $o }; +\& # register the hash %name for garbage collection of $object\*(Aqs id +\& register $object, \e %name; +\& # the following entry will be deleted when $object goes out of scope +\& $name{id $object} = \*(AqJohn Doe\*(Aq; +.Ve +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +\&\f(CW\*(C`Hash::Util::FieldHash\*(C'\fR offers a number of functions in support of +\&\*(L"The Inside-out Technique\*(R" of class construction. +.IP "id" 4 +.IX Item "id" +.Vb 1 +\& id($obj) +.Ve +.Sp +Returns the reference address of a reference \f(CW$obj\fR. If \f(CW$obj\fR is +not a reference, returns \f(CW$obj\fR. +.Sp +This function is a stand-in replacement for +Scalar::Util::refaddr, +that is, it returns +the reference address of its argument as a numeric value. The only +difference is that \f(CW\*(C`refaddr()\*(C'\fR returns \f(CW\*(C`undef\*(C'\fR when given a +non-reference while \f(CW\*(C`id()\*(C'\fR returns its argument unchanged. +.Sp +\&\f(CW\*(C`id()\*(C'\fR also uses a caching technique that makes it faster when +the id of an object is requested often, but slower if it is needed +only once or twice. +.IP "id_2obj" 4 +.IX Item "id_2obj" +.Vb 1 +\& $obj = id_2obj($id) +.Ve +.Sp +If \f(CW$id\fR is the id of a registered object (see \*(L"register\*(R"), returns +the object, otherwise an undefined value. For registered objects this +is the inverse function of \f(CW\*(C`id()\*(C'\fR. +.IP "register" 4 +.IX Item "register" +.Vb 2 +\& register($obj) +\& register($obj, @hashrefs) +.Ve +.Sp +In the first form, registers an object to work with for the function +\&\f(CW\*(C`id_2obj()\*(C'\fR. In the second form, it additionally marks the given +hashrefs down for garbage collection. This means that when the object +goes out of scope, any entries in the given hashes under the key of +\&\f(CW\*(C`id($obj)\*(C'\fR will be deleted from the hashes. +.Sp +It is a fatal error to register a non-reference \f(CW$obj\fR. Any non-hashrefs +among the following arguments are silently ignored. +.Sp +It is \fInot\fR an error to register the same object multiple times with +varying sets of hashrefs. Any hashrefs that are not registered yet +will be added, others ignored. +.Sp +Registry also implies thread support. When a new thread is created, +all references are replaced with new ones, including all objects. +If a hash uses the reference address of an object as a key, that +connection would be broken. With a registered object, its id will +be updated in all hashes registered with it. +.IP "idhash" 4 +.IX Item "idhash" +.Vb 1 +\& idhash my %hash +.Ve +.Sp +Makes an idhash from the argument, which must be a hash. +.Sp +An \fIidhash\fR works like a normal hash, except that it stringifies a +\&\fIreference used as a key\fR differently. A reference is stringified +as if the \f(CW\*(C`id()\*(C'\fR function had been invoked on it, that is, its +reference address in decimal is used as the key. +.IP "idhashes" 4 +.IX Item "idhashes" +.Vb 2 +\& idhashes \e my(%hash, %gnash, %trash) +\& idhashes \e @hashrefs +.Ve +.Sp +Creates many idhashes from its hashref arguments. Returns those +arguments that could be converted or their number in scalar context. +.IP "fieldhash" 4 +.IX Item "fieldhash" +.Vb 1 +\& fieldhash %hash; +.Ve +.Sp +Creates a single fieldhash. The argument must be a hash. Returns +a reference to the given hash if successful, otherwise nothing. +.Sp +A \fIfieldhash\fR is, in short, an idhash with auto-registry. When an +object (or, indeed, any reference) is used as a fieldhash key, the +fieldhash is automatically registered for garbage collection with +the object, as if \f(CW\*(C`register $obj, \e %fieldhash\*(C'\fR had been called. +.IP "fieldhashes" 4 +.IX Item "fieldhashes" +.Vb 1 +\& fieldhashes @hashrefs; +.Ve +.Sp +Creates any number of field hashes. Arguments must be hash references. +Returns the converted hashrefs in list context, their number in scalar +context. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A word on terminology: I shall use the term \fIfield\fR for a scalar +piece of data that a class associates with an object. Other terms that +have been used for this concept are \*(L"object variable\*(R", \*(L"(object) property\*(R", +\&\*(L"(object) attribute\*(R" and more. Especially \*(L"attribute\*(R" has some currency +among Perl programmer, but that clashes with the \f(CW\*(C`attributes\*(C'\fR pragma. The +term \*(L"field\*(R" also has some currency in this sense and doesn't seem +to conflict with other Perl terminology. +.PP +In Perl, an object is a blessed reference. The standard way of associating +data with an object is to store the data inside the object's body, that is, +the piece of data pointed to by the reference. +.PP +In consequence, if two or more classes want to access an object they +\&\fImust\fR agree on the type of reference and also on the organization of +data within the object body. Failure to agree on the type results in +immediate death when the wrong method tries to access an object. Failure +to agree on data organization may lead to one class trampling over the +data of another. +.PP +This object model leads to a tight coupling between subclasses. +If one class wants to inherit from another (and both classes access +object data), the classes must agree about implementation details. +Inheritance can only be used among classes that are maintained together, +in a single source or not. +.PP +In particular, it is not possible to write general-purpose classes +in this technique, classes that can advertise themselves as \*(L"Put me +on your \f(CW@ISA\fR list and use my methods\*(R". If the other class has different +ideas about how the object body is used, there is trouble. +.PP +For reference \f(CW\*(C`Name_hash\*(C'\fR in \*(L"Example 1\*(R" shows the standard implementation of +a simple class \f(CW\*(C`Name\*(C'\fR in the well-known hash based way. It also demonstrates +the predictable failure to construct a common subclass \f(CW\*(C`NamedFile\*(C'\fR +of \f(CW\*(C`Name\*(C'\fR and the class \f(CW\*(C`IO::File\*(C'\fR (whose objects \fImust\fR be globrefs). +.PP +Thus, techniques are of interest that store object data \fInot\fR in +the object body but some other place. +.SS "The Inside-out Technique" +.IX Subsection "The Inside-out Technique" +With \fIinside-out\fR classes, each class declares a (typically lexical) +hash for each field it wants to use. The reference address of an +object is used as the hash key. By definition, the reference address +is unique to each object so this guarantees a place for each field that +is private to the class and unique to each object. See \f(CW\*(C`Name_id\*(C'\fR +in \*(L"Example 1\*(R" for a simple example. +.PP +In comparison to the standard implementation where the object is a +hash and the fields correspond to hash keys, here the fields correspond +to hashes, and the object determines the hash key. Thus the hashes +appear to be turned \fIinside out\fR. +.PP +The body of an object is never examined by an inside-out class, only +its reference address is used. This allows for the body of an actual +object to be \fIanything at all\fR while the object methods of the class +still work as designed. This is a key feature of inside-out classes. +.SS "Problems of Inside-out" +.IX Subsection "Problems of Inside-out" +Inside-out classes give us freedom of inheritance, but as usual there +is a price. +.PP +Most obviously, there is the necessity of retrieving the reference +address of an object for each data access. It's a minor inconvenience, +but it does clutter the code. +.PP +More important (and less obvious) is the necessity of garbage +collection. When a normal object dies, anything stored in the +object body is garbage-collected by perl. With inside-out objects, +Perl knows nothing about the data stored in field hashes by a class, +but these must be deleted when the object goes out of scope. Thus +the class must provide a \f(CW\*(C`DESTROY\*(C'\fR method to take care of that. +.PP +In the presence of multiple classes it can be non-trivial +to make sure that every relevant destructor is called for +every object. Perl calls the first one it finds on the +inheritance tree (if any) and that's it. +.PP +A related issue is thread-safety. When a new thread is created, +the Perl interpreter is cloned, which implies that all reference +addresses in use will be replaced with new ones. Thus, if a class +tries to access a field of a cloned object its (cloned) data will +still be stored under the now invalid reference address of the +original in the parent thread. A general \f(CW\*(C`CLONE\*(C'\fR method must +be provided to re-establish the association. +.SS "Solutions" +.IX Subsection "Solutions" +\&\f(CW\*(C`Hash::Util::FieldHash\*(C'\fR addresses these issues on several +levels. +.PP +The \f(CW\*(C`id()\*(C'\fR function is provided in addition to the +existing \f(CW\*(C`Scalar::Util::refaddr()\*(C'\fR. Besides its short name +it can be a little faster under some circumstances (and a +bit slower under others). Benchmark if it matters. The +working of \f(CW\*(C`id()\*(C'\fR also allows the use of the class name +as a \fIgeneric object\fR as described further down. +.PP +The \f(CW\*(C`id()\*(C'\fR function is incorporated in \fIid hashes\fR in the sense +that it is called automatically on every key that is used with +the hash. No explicit call is necessary. +.PP +The problems of garbage collection and thread safety are both +addressed by the function \f(CW\*(C`register()\*(C'\fR. It registers an object +together with any number of hashes. Registry means that when the +object dies, an entry in any of the hashes under the reference +address of this object will be deleted. This guarantees garbage +collection in these hashes. It also means that on thread +cloning the object's entries in registered hashes will be +replaced with updated entries whose key is the cloned object's +reference address. Thus the object-data association becomes +thread-safe. +.PP +Object registry is best done when the object is initialized +for use with a class. That way, garbage collection and thread +safety are established for every object and every field that is +initialized. +.PP +Finally, \fIfield hashes\fR incorporate all these functions in one +package. Besides automatically calling the \f(CW\*(C`id()\*(C'\fR function +on every object used as a key, the object is registered with +the field hash on first use. Classes based on field hashes +are fully garbage-collected and thread safe without further +measures. +.SS "More Problems" +.IX Subsection "More Problems" +Another problem that occurs with inside-out classes is serialization. +Since the object data is not in its usual place, standard routines +like \f(CW\*(C`Storable::freeze()\*(C'\fR, \f(CW\*(C`Storable::thaw()\*(C'\fR and +\&\f(CW\*(C`Data::Dumper::Dumper()\*(C'\fR can't deal with it on their own. Both +\&\f(CW\*(C`Data::Dumper\*(C'\fR and \f(CW\*(C`Storable\*(C'\fR provide the necessary hooks to +make things work, but the functions or methods used by the hooks +must be provided by each inside-out class. +.PP +A general solution to the serialization problem would require another +level of registry, one that associates \fIclasses\fR and fields. +So far, the functions of \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR are unaware of +any classes, which I consider a feature. Therefore \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR +doesn't address the serialization problems. +.SS "The Generic Object" +.IX Subsection "The Generic Object" +Classes based on the \f(CW\*(C`id()\*(C'\fR function (and hence classes based on +\&\f(CW\*(C`idhash()\*(C'\fR and \f(CW\*(C`fieldhash()\*(C'\fR) show a peculiar behavior in that +the class name can be used like an object. Specifically, methods +that set or read data associated with an object continue to work as +class methods, just as if the class name were an object, distinct from +all other objects, with its own data. This object may be called +the \fIgeneric object\fR of the class. +.PP +This works because field hashes respond to keys that are not references +like a normal hash would and use the string offered as the hash key. +Thus, if a method is called as a class method, the field hash is presented +with the class name instead of an object and blithely uses it as a key. +Since the keys of real objects are decimal numbers, there is no +conflict and the slot in the field hash can be used like any other. +The \f(CW\*(C`id()\*(C'\fR function behaves correspondingly with respect to non-reference +arguments. +.PP +Two possible uses (besides ignoring the property) come to mind. +A singleton class could be implemented this using the generic object. +If necessary, an \f(CW\*(C`init()\*(C'\fR method could die or ignore calls with +actual objects (references), so only the generic object will ever exist. +.PP +Another use of the generic object would be as a template. It is +a convenient place to store class-specific defaults for various +fields to be used in actual object initialization. +.PP +Usually, the feature can be entirely ignored. Calling \fIobject +methods\fR as \fIclass methods\fR normally leads to an error and isn't used +routinely anywhere. It may be a problem that this error isn't +indicated by a class with a generic object. +.SS "How to use Field Hashes" +.IX Subsection "How to use Field Hashes" +Traditionally, the definition of an inside-out class contains a bare +block inside which a number of lexical hashes are declared and the +basic accessor methods defined, usually through \f(CW\*(C`Scalar::Util::refaddr\*(C'\fR. +Further methods may be defined outside this block. There has to be +a \s-1DESTROY\s0 method and, for thread support, a \s-1CLONE\s0 method. +.PP +When field hashes are used, the basic structure remains the same. +Each lexical hash will be made a field hash. The call to \f(CW\*(C`refaddr\*(C'\fR +can be omitted from the accessor methods. \s-1DESTROY\s0 and \s-1CLONE\s0 methods +are not necessary. +.PP +If you have an existing inside-out class, simply making all hashes +field hashes with no other change should make no difference. Through +the calls to \f(CW\*(C`refaddr\*(C'\fR or equivalent, the field hashes never get to +see a reference and work like normal hashes. Your \s-1DESTROY\s0 (and +\&\s-1CLONE\s0) methods are still needed. +.PP +To make the field hashes kick in, it is easiest to redefine \f(CW\*(C`refaddr\*(C'\fR +as +.PP +.Vb 1 +\& sub refaddr { shift } +.Ve +.PP +instead of importing it from \f(CW\*(C`Scalar::Util\*(C'\fR. It should now be possible +to disable \s-1DESTROY\s0 and \s-1CLONE.\s0 Note that while it isn't disabled, +\&\s-1DESTROY\s0 will be called before the garbage collection of field hashes, +so it will be invoked with a functional object and will continue to +function. +.PP +It is not desirable to import the functions \f(CW\*(C`fieldhash\*(C'\fR and/or +\&\f(CW\*(C`fieldhashes\*(C'\fR into every class that is going to use them. They +are only used once to set up the class. When the class is up and running, +these functions serve no more purpose. +.PP +If there are only a few field hashes to declare, it is simplest to +.PP +.Vb 1 +\& use Hash::Util::FieldHash; +.Ve +.PP +early and call the functions qualified: +.PP +.Vb 1 +\& Hash::Util::FieldHash::fieldhash my %foo; +.Ve +.PP +Otherwise, import the functions into a convenient package like +\&\f(CW\*(C`HUF\*(C'\fR or, more general, \f(CW\*(C`Aux\*(C'\fR +.PP +.Vb 4 +\& { +\& package Aux; +\& use Hash::Util::FieldHash \*(Aq:all\*(Aq; +\& } +.Ve +.PP +and call +.PP +.Vb 1 +\& Aux::fieldhash my %foo; +.Ve +.PP +as needed. +.SS "Garbage-Collected Hashes" +.IX Subsection "Garbage-Collected Hashes" +Garbage collection in a field hash means that entries will \*(L"spontaneously\*(R" +disappear when the object that created them disappears. That must be +borne in mind, especially when looping over a field hash. If anything +you do inside the loop could cause an object to go out of scope, a +random key may be deleted from the hash you are looping over. That +can throw the loop iterator, so it's best to cache a consistent snapshot +of the keys and/or values and loop over that. You will still have to +check that a cached entry still exists when you get to it. +.PP +Garbage collection can be confusing when keys are created in a field hash +from normal scalars as well as references. Once a reference is \fIused\fR with +a field hash, the entry will be collected, even if it was later overwritten +with a plain scalar key (every positive integer is a candidate). This +is true even if the original entry was deleted in the meantime. In fact, +deletion from a field hash, and also a test for existence constitute +\&\fIuse\fR in this sense and create a liability to delete the entry when +the reference goes out of scope. If you happen to create an entry +with an identical key from a string or integer, that will be collected +instead. Thus, mixed use of references and plain scalars as field hash +keys is not entirely supported. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The examples show a very simple class that implements a \fIname\fR, consisting +of a first and last name (no middle initial). The name class has four +methods: +.IP "\(bu" 4 +\&\f(CW\*(C`init()\*(C'\fR +.Sp +An object method that initializes the first and last name to its +two arguments. If called as a class method, \f(CW\*(C`init()\*(C'\fR creates an +object in the given class and initializes that. +.IP "\(bu" 4 +\&\f(CW\*(C`first()\*(C'\fR +.Sp +Retrieve the first name +.IP "\(bu" 4 +\&\f(CW\*(C`last()\*(C'\fR +.Sp +Retrieve the last name +.IP "\(bu" 4 +\&\f(CW\*(C`name()\*(C'\fR +.Sp +Retrieve the full name, the first and last name joined by a blank. +.PP +The examples show this class implemented with different levels of +support by \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR. All supported combinations +are shown. The difference between implementations is often quite +small. The implementations are: +.IP "\(bu" 4 +\&\f(CW\*(C`Name_hash\*(C'\fR +.Sp +A conventional (not inside-out) implementation where an object is +a hash that stores the field values, without support by +\&\f(CW\*(C`Hash::Util::FieldHash\*(C'\fR. This implementation doesn't allow +arbitrary inheritance. +.IP "\(bu" 4 +\&\f(CW\*(C`Name_id\*(C'\fR +.Sp +Inside-out implementation based on the \f(CW\*(C`id()\*(C'\fR function. It needs +a \f(CW\*(C`DESTROY\*(C'\fR method. For thread support a \f(CW\*(C`CLONE\*(C'\fR method (not shown) +would also be needed. Instead of \f(CW\*(C`Hash::Util::FieldHash::id()\*(C'\fR the +function \f(CW\*(C`Scalar::Util::refaddr\*(C'\fR could be used with very little +functional difference. This is the basic pattern of an inside-out +class. +.IP "\(bu" 4 +\&\f(CW\*(C`Name_idhash\*(C'\fR +.Sp +Idhash-based inside-out implementation. Like \f(CW\*(C`Name_id\*(C'\fR it needs +a \f(CW\*(C`DESTROY\*(C'\fR method and would need \f(CW\*(C`CLONE\*(C'\fR for thread support. +.IP "\(bu" 4 +\&\f(CW\*(C`Name_id_reg\*(C'\fR +.Sp +Inside-out implementation based on the \f(CW\*(C`id()\*(C'\fR function with explicit +object registry. No destructor is needed and objects are thread safe. +.IP "\(bu" 4 +\&\f(CW\*(C`Name_idhash_reg\*(C'\fR +.Sp +Idhash-based inside-out implementation with explicit object registry. +No destructor is needed and objects are thread safe. +.IP "\(bu" 4 +\&\f(CW\*(C`Name_fieldhash\*(C'\fR +.Sp +FieldHash-based inside-out implementation. Object registry happens +automatically. No destructor is needed and objects are thread safe. +.PP +These examples are realized in the code below, which could be copied +to a file \fIExample.pm\fR. +.SS "Example 1" +.IX Subsection "Example 1" +.Vb 1 +\& use strict; use warnings; +\& +\& { +\& package Name_hash; # standard implementation: the +\& # object is a hash +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless {}, $obj unless ref $obj; +\& $obj\->{ first} = $first; +\& $obj\->{ last} = $last; +\& $obj; +\& } +\& +\& sub first { shift()\->{ first} } +\& sub last { shift()\->{ last} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& +\& } +\& +\& { +\& package Name_id; +\& use Hash::Util::FieldHash qw(id); +\& +\& my (%first, %last); +\& +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless \e my $o, $obj unless ref $obj; +\& $first{ id $obj} = $first; +\& $last{ id $obj} = $last; +\& $obj; +\& } +\& +\& sub first { $first{ id shift()} } +\& sub last { $last{ id shift()} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& +\& sub DESTROY { +\& my $id = id shift; +\& delete $first{ $id}; +\& delete $last{ $id}; +\& } +\& +\& } +\& +\& { +\& package Name_idhash; +\& use Hash::Util::FieldHash; +\& +\& Hash::Util::FieldHash::idhashes( \e my (%first, %last) ); +\& +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless \e my $o, $obj unless ref $obj; +\& $first{ $obj} = $first; +\& $last{ $obj} = $last; +\& $obj; +\& } +\& +\& sub first { $first{ shift()} } +\& sub last { $last{ shift()} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& +\& sub DESTROY { +\& my $n = shift; +\& delete $first{ $n}; +\& delete $last{ $n}; +\& } +\& +\& } +\& +\& { +\& package Name_id_reg; +\& use Hash::Util::FieldHash qw(id register); +\& +\& my (%first, %last); +\& +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless \e my $o, $obj unless ref $obj; +\& register( $obj, \e (%first, %last) ); +\& $first{ id $obj} = $first; +\& $last{ id $obj} = $last; +\& $obj; +\& } +\& +\& sub first { $first{ id shift()} } +\& sub last { $last{ id shift()} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& } +\& +\& { +\& package Name_idhash_reg; +\& use Hash::Util::FieldHash qw(register); +\& +\& Hash::Util::FieldHash::idhashes \e my (%first, %last); +\& +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless \e my $o, $obj unless ref $obj; +\& register( $obj, \e (%first, %last) ); +\& $first{ $obj} = $first; +\& $last{ $obj} = $last; +\& $obj; +\& } +\& +\& sub first { $first{ shift()} } +\& sub last { $last{ shift()} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& } +\& +\& { +\& package Name_fieldhash; +\& use Hash::Util::FieldHash; +\& +\& Hash::Util::FieldHash::fieldhashes \e my (%first, %last); +\& +\& sub init { +\& my $obj = shift; +\& my ($first, $last) = @_; +\& # create an object if called as class method +\& $obj = bless \e my $o, $obj unless ref $obj; +\& $first{ $obj} = $first; +\& $last{ $obj} = $last; +\& $obj; +\& } +\& +\& sub first { $first{ shift()} } +\& sub last { $last{ shift()} } +\& +\& sub name { +\& my $n = shift; +\& join \*(Aq \*(Aq => $n\->first, $n\->last; +\& } +\& } +\& +\& 1; +.Ve +.PP +To exercise the various implementations the script below can +be used. +.PP +It sets up a class \f(CW\*(C`Name\*(C'\fR that is a mirror of one of the implementation +classes \f(CW\*(C`Name_hash\*(C'\fR, \f(CW\*(C`Name_id\*(C'\fR, ..., \f(CW\*(C`Name_fieldhash\*(C'\fR. That determines +which implementation is run. +.PP +The script first verifies the function of the \f(CW\*(C`Name\*(C'\fR class. +.PP +In the second step, the free inheritability of the implementation +(or lack thereof) is demonstrated. For this purpose it constructs +a class called \f(CW\*(C`NamedFile\*(C'\fR which is a common subclass of \f(CW\*(C`Name\*(C'\fR and +the standard class \f(CW\*(C`IO::File\*(C'\fR. This puts inheritability to the test +because objects of \f(CW\*(C`IO::File\*(C'\fR \fImust\fR be globrefs. Objects of \f(CW\*(C`NamedFile\*(C'\fR +should behave like a file opened for reading and also support the \f(CW\*(C`name()\*(C'\fR +method. This class juncture works with exception of the \f(CW\*(C`Name_hash\*(C'\fR +implementation, where object initialization fails because of the +incompatibility of object bodies. +.SS "Example 2" +.IX Subsection "Example 2" +.Vb 1 +\& use strict; use warnings; $| = 1; +\& +\& use Example; +\& +\& { +\& package Name; +\& use parent \*(AqName_id\*(Aq; # define here which implementation to run +\& } +\& +\& +\& # Verify that the base package works +\& my $n = Name\->init(qw(Albert Einstein)); +\& print $n\->name, "\en"; +\& print "\en"; +\& +\& # Create a named file handle (See definition below) +\& my $nf = NamedFile\->init(qw(/tmp/x Filomena File)); +\& # use as a file handle... +\& for ( 1 .. 3 ) { +\& my $l = <$nf>; +\& print "line $_: $l"; +\& } +\& # ...and as a Name object +\& print "...brought to you by ", $nf\->name, "\en"; +\& exit; +\& +\& +\& # Definition of NamedFile +\& package NamedFile; +\& use parent \*(AqName\*(Aq; +\& use parent \*(AqIO::File\*(Aq; +\& +\& sub init { +\& my $obj = shift; +\& my ($file, $first, $last) = @_; +\& $obj = $obj\->IO::File::new() unless ref $obj; +\& $obj\->open($file) or die "Can\*(Aqt read \*(Aq$file\*(Aq: $!"; +\& $obj\->Name::init($first, $last); +\& } +\& _\|_END_\|_ +.Ve +.SH "GUTS" +.IX Header "GUTS" +To make \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR work, there were two changes to +\&\fIperl\fR itself. \f(CW\*(C`PERL_MAGIC_uvar\*(C'\fR was made available for hashes, +and weak references now call uvar \f(CW\*(C`get\*(C'\fR magic after a weakref has been +cleared. The first feature is used to make field hashes intercept +their keys upon access. The second one triggers garbage collection. +.ie n .SS "The ""PERL_MAGIC_uvar"" interface for hashes" +.el .SS "The \f(CWPERL_MAGIC_uvar\fP interface for hashes" +.IX Subsection "The PERL_MAGIC_uvar interface for hashes" +\&\f(CW\*(C`PERL_MAGIC_uvar\*(C'\fR \fIget\fR magic is called from \f(CW\*(C`hv_fetch_common\*(C'\fR and +\&\f(CW\*(C`hv_delete_common\*(C'\fR through the function \f(CW\*(C`hv_magic_uvar_xkey\*(C'\fR, which +defines the interface. The call happens for hashes with \*(L"uvar\*(R" magic +if the \f(CW\*(C`ufuncs\*(C'\fR structure has equal values in the \f(CW\*(C`uf_val\*(C'\fR and \f(CW\*(C`uf_set\*(C'\fR +fields. Hashes are unaffected if (and as long as) these fields +hold different values. +.PP +Upon the call, the \f(CW\*(C`mg_obj\*(C'\fR field will hold the hash key to be accessed. +Upon return, the \f(CW\*(C`SV*\*(C'\fR value in \f(CW\*(C`mg_obj\*(C'\fR will be used in place of the +original key in the hash access. The integer index value in the first +parameter will be the \f(CW\*(C`action\*(C'\fR value from \f(CW\*(C`hv_fetch_common\*(C'\fR, or \-1 +if the call is from \f(CW\*(C`hv_delete_common\*(C'\fR. +.PP +This is a template for a function suitable for the \f(CW\*(C`uf_val\*(C'\fR field in +a \f(CW\*(C`ufuncs\*(C'\fR structure for this call. The \f(CW\*(C`uf_set\*(C'\fR and \f(CW\*(C`uf_index\*(C'\fR +fields are irrelevant. +.PP +.Vb 10 +\& IV watch_key(pTHX_ IV action, SV* field) { +\& MAGIC* mg = mg_find(field, PERL_MAGIC_uvar); +\& SV* keysv = mg\->mg_obj; +\& /* Do whatever you need to. If you decide to +\& supply a different key newkey, return it like this +\& */ +\& sv_2mortal(newkey); +\& mg\->mg_obj = newkey; +\& return 0; +\& } +.Ve +.SS "Weakrefs call uvar magic" +.IX Subsection "Weakrefs call uvar magic" +When a weak reference is stored in an \f(CW\*(C`SV\*(C'\fR that has \*(L"uvar\*(R" magic, \f(CW\*(C`set\*(C'\fR +magic is called after the reference has gone stale. This hook can be +used to trigger further garbage-collection activities associated with +the referenced object. +.SS "How field hashes work" +.IX Subsection "How field hashes work" +The three features of key hashes, \fIkey replacement\fR, \fIthread support\fR, +and \fIgarbage collection\fR are supported by a data structure called +the \fIobject registry\fR. This is a private hash where every object +is stored. An \*(L"object\*(R" in this sense is any reference (blessed or +unblessed) that has been used as a field hash key. +.PP +The object registry keeps track of references that have been used as +field hash keys. The keys are generated from the reference address +like in a field hash (though the registry isn't a field hash). Each +value is a weak copy of the original reference, stored in an \f(CW\*(C`SV\*(C'\fR that +is itself magical (\f(CW\*(C`PERL_MAGIC_uvar\*(C'\fR again). The magical structure +holds a list (another hash, really) of field hashes that the reference +has been used with. When the weakref becomes stale, the magic is +activated and uses the list to delete the reference from all field +hashes it has been used with. After that, the entry is removed from +the object registry itself. Implicitly, that frees the magic structure +and the storage it has been using. +.PP +Whenever a reference is used as a field hash key, the object registry +is checked and a new entry is made if necessary. The field hash is +then added to the list of fields this reference has used. +.PP +The object registry is also used to repair a field hash after thread +cloning. Here, the entire object registry is processed. For every +reference found there, the field hashes it has used are visited and +the entry is updated. +.SS "Internal function Hash::Util::FieldHash::_fieldhash" +.IX Subsection "Internal function Hash::Util::FieldHash::_fieldhash" +.Vb 2 +\& # test if %hash is a field hash +\& my $result = _fieldhash \e %hash, 0; +\& +\& # make %hash a field hash +\& my $result = _fieldhash \e %hash, 1; +.Ve +.PP +\&\f(CW\*(C`_fieldhash\*(C'\fR is the internal function used to create field hashes. +It takes two arguments, a hashref and a mode. If the mode is boolean +false, the hash is not changed but tested if it is a field hash. If +the hash isn't a field hash the return value is boolean false. If it +is, the return value indicates the mode of field hash. When called with +a boolean true mode, it turns the given hash into a field hash of this +mode, returning the mode of the created field hash. \f(CW\*(C`_fieldhash\*(C'\fR +does not erase the given hash. +.PP +Currently there is only one type of field hash, and only the boolean +value of the mode makes a difference, but that may change. +.SH "AUTHOR" +.IX Header "AUTHOR" +Anno Siegel (\s-1ANNO\s0) wrote the xs code and the changes in perl proper +Jerry Hedden (\s-1JDHEDDEN\s0) made it faster +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (C) 2006\-2007 by (Anno Siegel) +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.8.7 or, +at your option, any later version of Perl 5 you may have available. diff --git a/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3ADetect.3 b/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3ADetect.3 new file mode 100644 index 0000000000000000000000000000000000000000..c5416473c03646b87b5eb1eb7394baf768b6ed7a --- /dev/null +++ b/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3ADetect.3 @@ -0,0 +1,205 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "I18N::LangTags::Detect 3" +.TH I18N::LangTags::Detect 3 "2020-12-18" "perl v5.32.1" "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" +I18N::LangTags::Detect \- detect the user's language preferences +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use I18N::LangTags::Detect; +\& my @user_wants = I18N::LangTags::Detect::detect(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +It is a common problem to want to detect what language(s) the user would +prefer output in. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +This module defines one public function, +\&\f(CW\*(C`I18N::LangTags::Detect::detect()\*(C'\fR. This function is not exported +(nor is even exportable), and it takes no parameters. +.PP +In scalar context, the function returns the most preferred language +tag (or undef if no preference was seen). +.PP +In list context (which is usually what you want), +the function returns a +(possibly empty) list of language tags representing (best first) what +languages the user apparently would accept output in. You will +probably want to pass the output of this through +\&\f(CW\*(C`I18N::LangTags::implicate_supers_tightly(...)\*(C'\fR +or +\&\f(CW\*(C`I18N::LangTags::implicate_supers(...)\*(C'\fR, like so: +.PP +.Vb 4 +\& my @languages = +\& I18N::LangTags::implicate_supers_tightly( +\& I18N::LangTags::Detect::detect() +\& ); +.Ve +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +This module looks at several environment variables: +\&\s-1REQUEST_METHOD, HTTP_ACCEPT_LANGUAGE, +LANGUAGE, LC_ALL, LC_MESSAGES,\s0 and \s-1LANG.\s0 +.PP +It will also use the Win32::Locale module, if it's installed +and \s-1IGNORE_WIN32_LOCALE\s0 is not set to a true value in the +environment. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +I18N::LangTags, Win32::Locale, Locale::Maketext. +.PP +(This module's core code started out as a routine in Locale::Maketext; +but I moved it here once I realized it was more generally useful.) +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1998\-2004 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +The programs and documentation in this dist are distributed in +the hope that they will be useful, but without any warranty; without +even the implied warranty of merchantability or fitness for a +particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Sean M. Burke \f(CW\*(C`sburke@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3AList.3 b/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3AList.3 new file mode 100644 index 0000000000000000000000000000000000000000..0ef7c3ac3b3e55a460d9de8a235a79b06a75f56b --- /dev/null +++ b/data/miniconda3/man/man3/I18N%3A%3ALangTags%3A%3AList.3 @@ -0,0 +1,1742 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "I18N::LangTags::List 3" +.TH I18N::LangTags::List 3 "2020-12-18" "perl v5.32.1" "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" +I18N::LangTags::List \-\- tags and names for human languages +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& use I18N::LangTags::List; +\& print "Parlez\-vous... ", join(\*(Aq, \*(Aq, +\& I18N::LangTags::List::name(\*(Aqelx\*(Aq) || \*(Aqunknown_language\*(Aq, +\& I18N::LangTags::List::name(\*(Aqar\-Kw\*(Aq) || \*(Aqunknown_language\*(Aq, +\& I18N::LangTags::List::name(\*(Aqen\*(Aq) || \*(Aqunknown_language\*(Aq, +\& I18N::LangTags::List::name(\*(Aqen\-CA\*(Aq) || \*(Aqunknown_language\*(Aq, +\& ), "?\en"; +.Ve +.PP +prints: +.PP +.Vb 1 +\& Parlez\-vous... Elamite, Kuwait Arabic, English, Canadian English? +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a function +\&\f(CW\*(C`I18N::LangTags::List::name( \f(CIlangtag\f(CW ) \*(C'\fR that takes +a language tag (see I18N::LangTags) +and returns the best attempt at an English name for it, or +undef if it can't make sense of the tag. +.PP +The function I18N::LangTags::List::name(...) is not exported. +.PP +This module also provides a function +\&\f(CW\*(C`I18N::LangTags::List::is_decent( \f(CIlangtag\f(CW )\*(C'\fR that returns true iff +the language tag is syntactically valid and is for general use (like +\&\*(L"fr\*(R" or \*(L"fr-ca\*(R", below). That is, it returns false for tags that are +syntactically invalid and for tags, like \*(L"aus\*(R", that are listed in +brackets below. This function is not exported. +.PP +The map of tags-to-names that it uses is accessible as +\&\f(CW%I18N::LangTags::List::Name\fR, and it's the same as the list +that follows in this documentation, which should be useful +to you even if you don't use this module. +.SH "ABOUT LANGUAGE TAGS" +.IX Header "ABOUT LANGUAGE TAGS" +Internet language tags, as defined in \s-1RFC 3066,\s0 are a formalism +for denoting human languages. The two-letter \s-1ISO 639\-1\s0 language +codes are well known (as \*(L"en\*(R" for English), as are their forms +when qualified by a country code (\*(L"en-US\*(R"). Less well-known are the +arbitrary-length non-ISO codes (like \*(L"i\-mingo\*(R"), and the +recently (in 2001) introduced three-letter \s-1ISO\-639\-2\s0 codes. +.PP +Remember these important facts: +.IP "\(bu" 4 +Language tags are not locale IDs. A locale \s-1ID\s0 is written with a \*(L"_\*(R" +instead of a \*(L"\-\*(R", (almost?) always matches \f(CW\*(C`m/^\ew\ew_\ew\ew\eb/\*(C'\fR, and +\&\fImeans\fR something different than a language tag. A language tag +denotes a language. A locale \s-1ID\s0 denotes a language \fIas used in\fR +a particular place, in combination with non-linguistic +location-specific information such as what currency is used +there. Locales \fIalso\fR often denote character set information, +as in \*(L"en_US.ISO8859\-1\*(R". +.IP "\(bu" 4 +Language tags are not for computer languages. +.IP "\(bu" 4 +\&\*(L"Dialect\*(R" is not a useful term, since there is no objective +criterion for establishing when two language-forms are +dialects of eachother, or are separate languages. +.IP "\(bu" 4 +Language tags are not case-sensitive. en-US, en-us, En-Us, etc., +are all the same tag, and denote the same language. +.IP "\(bu" 4 +Not every language tag really refers to a single language. Some +language tags refer to conditions: i\-default (system-message text +in English plus maybe other languages), und (undetermined +language). Others (notably lots of the three-letter codes) are +bibliographic tags that classify whole groups of languages, as +with cus \*(L"Cushitic (Other)\*(R" (i.e., a +language that has been classed as Cushtic, but which has no more +specific code) or the even less linguistically coherent +sai for \*(L"South American Indian (Other)\*(R". Though useful in +bibliography, \fB\s-1SUCH TAGS ARE NOT +FOR GENERAL USE\s0\fR. For further guidance, email me. +.IP "\(bu" 4 +Language tags are not country codes. In fact, they are often +distinct codes, as with language tag ja for Japanese, and +\&\s-1ISO 3166\s0 country code \f(CW\*(C`.jp\*(C'\fR for Japan. +.SH "LIST OF LANGUAGES" +.IX Header "LIST OF LANGUAGES" +The first part of each item is the language tag, between +{...}. It +is followed by an English name for the language or language-group. +Language tags that I judge to be not for general use, are bracketed. +.PP +This list is in alphabetical order by English name of the language. +.IP "{ab} : Abkhazian" 4 +.IX Item "{ab} : Abkhazian" +eq Abkhaz +.IP "{ace} : Achinese" 4 +.IX Item "{ace} : Achinese" +.PD 0 +.IP "{ach} : Acoli" 4 +.IX Item "{ach} : Acoli" +.IP "{ada} : Adangme" 4 +.IX Item "{ada} : Adangme" +.IP "{ady} : Adyghe" 4 +.IX Item "{ady} : Adyghe" +.PD +eq Adygei +.IP "{aa} : Afar" 4 +.IX Item "{aa} : Afar" +.PD 0 +.IP "{afh} : Afrihili" 4 +.IX Item "{afh} : Afrihili" +.PD +(Artificial) +.IP "{af} : Afrikaans" 4 +.IX Item "{af} : Afrikaans" +.PD 0 +.IP "[{afa} : Afro-Asiatic (Other)]" 4 +.IX Item "[{afa} : Afro-Asiatic (Other)]" +.IP "{ak} : Akan" 4 +.IX Item "{ak} : Akan" +.PD +(Formerly \*(L"aka\*(R".) +.IP "{akk} : Akkadian" 4 +.IX Item "{akk} : Akkadian" +(Historical) +.IP "{sq} : Albanian" 4 +.IX Item "{sq} : Albanian" +.PD 0 +.IP "{ale} : Aleut" 4 +.IX Item "{ale} : Aleut" +.IP "[{alg} : Algonquian languages]" 4 +.IX Item "[{alg} : Algonquian languages]" +.PD +\&\s-1NOT\s0 Algonquin! +.IP "[{tut} : Altaic (Other)]" 4 +.IX Item "[{tut} : Altaic (Other)]" +.PD 0 +.IP "{am} : Amharic" 4 +.IX Item "{am} : Amharic" +.PD +\&\s-1NOT\s0 Aramaic! +.IP "{i\-ami} : Ami" 4 +.IX Item "{i-ami} : Ami" +eq Amis. eq 'Amis. eq Pangca. +.IP "[{apa} : Apache languages]" 4 +.IX Item "[{apa} : Apache languages]" +.PD 0 +.IP "{ar} : Arabic" 4 +.IX Item "{ar} : Arabic" +.PD +Many forms are mutually un-intelligible in spoken media. +Notable forms: +{ar\-ae} \s-1UAE\s0 Arabic; +{ar\-bh} Bahrain Arabic; +{ar\-dz} Algerian Arabic; +{ar\-eg} Egyptian Arabic; +{ar\-iq} Iraqi Arabic; +{ar\-jo} Jordanian Arabic; +{ar\-kw} Kuwait Arabic; +{ar\-lb} Lebanese Arabic; +{ar\-ly} Libyan Arabic; +{ar\-ma} Moroccan Arabic; +{ar\-om} Omani Arabic; +{ar\-qa} Qatari Arabic; +{ar\-sa} Sauda Arabic; +{ar\-sy} Syrian Arabic; +{ar\-tn} Tunisian Arabic; +{ar\-ye} Yemen Arabic. +.IP "{arc} : Aramaic" 4 +.IX Item "{arc} : Aramaic" +\&\s-1NOT\s0 Amharic! \s-1NOT\s0 Samaritan Aramaic! +.IP "{arp} : Arapaho" 4 +.IX Item "{arp} : Arapaho" +.PD 0 +.IP "{arn} : Araucanian" 4 +.IX Item "{arn} : Araucanian" +.IP "{arw} : Arawak" 4 +.IX Item "{arw} : Arawak" +.IP "{hy} : Armenian" 4 +.IX Item "{hy} : Armenian" +.IP "{an} : Aragonese" 4 +.IX Item "{an} : Aragonese" +.IP "[{art} : Artificial (Other)]" 4 +.IX Item "[{art} : Artificial (Other)]" +.IP "{ast} : Asturian" 4 +.IX Item "{ast} : Asturian" +.PD +eq Bable. +.IP "{as} : Assamese" 4 +.IX Item "{as} : Assamese" +.PD 0 +.IP "[{ath} : Athapascan languages]" 4 +.IX Item "[{ath} : Athapascan languages]" +.PD +eq Athabaskan. eq Athapaskan. eq Athabascan. +.IP "[{aus} : Australian languages]" 4 +.IX Item "[{aus} : Australian languages]" +.PD 0 +.IP "[{map} : Austronesian (Other)]" 4 +.IX Item "[{map} : Austronesian (Other)]" +.IP "{av} : Avaric" 4 +.IX Item "{av} : Avaric" +.PD +(Formerly \*(L"ava\*(R".) +.IP "{ae} : Avestan" 4 +.IX Item "{ae} : Avestan" +eq Zend +.IP "{awa} : Awadhi" 4 +.IX Item "{awa} : Awadhi" +.PD 0 +.IP "{ay} : Aymara" 4 +.IX Item "{ay} : Aymara" +.IP "{az} : Azerbaijani" 4 +.IX Item "{az} : Azerbaijani" +.PD +eq Azeri +.Sp +Notable forms: +{az\-Arab} Azerbaijani in Arabic script; +{az\-Cyrl} Azerbaijani in Cyrillic script; +{az\-Latn} Azerbaijani in Latin script. +.IP "{ban} : Balinese" 4 +.IX Item "{ban} : Balinese" +.PD 0 +.IP "[{bat} : Baltic (Other)]" 4 +.IX Item "[{bat} : Baltic (Other)]" +.IP "{bal} : Baluchi" 4 +.IX Item "{bal} : Baluchi" +.IP "{bm} : Bambara" 4 +.IX Item "{bm} : Bambara" +.PD +(Formerly \*(L"bam\*(R".) +.IP "[{bai} : Bamileke languages]" 4 +.IX Item "[{bai} : Bamileke languages]" +.PD 0 +.IP "{bad} : Banda" 4 +.IX Item "{bad} : Banda" +.IP "[{bnt} : Bantu (Other)]" 4 +.IX Item "[{bnt} : Bantu (Other)]" +.IP "{bas} : Basa" 4 +.IX Item "{bas} : Basa" +.IP "{ba} : Bashkir" 4 +.IX Item "{ba} : Bashkir" +.IP "{eu} : Basque" 4 +.IX Item "{eu} : Basque" +.IP "{btk} : Batak (Indonesia)" 4 +.IX Item "{btk} : Batak (Indonesia)" +.IP "{bej} : Beja" 4 +.IX Item "{bej} : Beja" +.IP "{be} : Belarusian" 4 +.IX Item "{be} : Belarusian" +.PD +eq Belarussian. eq Byelarussian. +eq Belorussian. eq Byelorussian. +eq White Russian. eq White Ruthenian. +\&\s-1NOT\s0 Ruthenian! +.IP "{bem} : Bemba" 4 +.IX Item "{bem} : Bemba" +.PD 0 +.IP "{bn} : Bengali" 4 +.IX Item "{bn} : Bengali" +.PD +eq Bangla. +.IP "[{ber} : Berber (Other)]" 4 +.IX Item "[{ber} : Berber (Other)]" +.PD 0 +.IP "{bho} : Bhojpuri" 4 +.IX Item "{bho} : Bhojpuri" +.IP "{bh} : Bihari" 4 +.IX Item "{bh} : Bihari" +.IP "{bik} : Bikol" 4 +.IX Item "{bik} : Bikol" +.IP "{bin} : Bini" 4 +.IX Item "{bin} : Bini" +.IP "{bi} : Bislama" 4 +.IX Item "{bi} : Bislama" +.PD +eq Bichelamar. +.IP "{bs} : Bosnian" 4 +.IX Item "{bs} : Bosnian" +.PD 0 +.IP "{bra} : Braj" 4 +.IX Item "{bra} : Braj" +.IP "{br} : Breton" 4 +.IX Item "{br} : Breton" +.IP "{bug} : Buginese" 4 +.IX Item "{bug} : Buginese" +.IP "{bg} : Bulgarian" 4 +.IX Item "{bg} : Bulgarian" +.IP "{i\-bnn} : Bunun" 4 +.IX Item "{i-bnn} : Bunun" +.IP "{bua} : Buriat" 4 +.IX Item "{bua} : Buriat" +.IP "{my} : Burmese" 4 +.IX Item "{my} : Burmese" +.IP "{cad} : Caddo" 4 +.IX Item "{cad} : Caddo" +.IP "{car} : Carib" 4 +.IX Item "{car} : Carib" +.IP "{ca} : Catalan" 4 +.IX Item "{ca} : Catalan" +.PD +eq Catala\*'n. eq Catalonian. +.IP "[{cau} : Caucasian (Other)]" 4 +.IX Item "[{cau} : Caucasian (Other)]" +.PD 0 +.IP "{ceb} : Cebuano" 4 +.IX Item "{ceb} : Cebuano" +.IP "[{cel} : Celtic (Other)]" 4 +.IX Item "[{cel} : Celtic (Other)]" +.PD +Notable forms: +{cel\-gaulish} Gaulish (Historical) +.IP "[{cai} : Central American Indian (Other)]" 4 +.IX Item "[{cai} : Central American Indian (Other)]" +.PD 0 +.IP "{chg} : Chagatai" 4 +.IX Item "{chg} : Chagatai" +.PD +(Historical?) +.IP "[{cmc} : Chamic languages]" 4 +.IX Item "[{cmc} : Chamic languages]" +.PD 0 +.IP "{ch} : Chamorro" 4 +.IX Item "{ch} : Chamorro" +.IP "{ce} : Chechen" 4 +.IX Item "{ce} : Chechen" +.IP "{chr} : Cherokee" 4 +.IX Item "{chr} : Cherokee" +.PD +eq Tsalagi +.IP "{chy} : Cheyenne" 4 +.IX Item "{chy} : Cheyenne" +.PD 0 +.IP "{chb} : Chibcha" 4 +.IX Item "{chb} : Chibcha" +.PD +(Historical) \s-1NOT\s0 Chibchan (which is a language family). +.IP "{ny} : Chichewa" 4 +.IX Item "{ny} : Chichewa" +eq Nyanja. eq Chinyanja. +.IP "{zh} : Chinese" 4 +.IX Item "{zh} : Chinese" +Many forms are mutually un-intelligible in spoken media. +Notable forms: +{zh\-Hans} Chinese, in simplified script; +{zh\-Hant} Chinese, in traditional script; +{zh\-tw} Taiwan Chinese; +{zh\-cn} \s-1PRC\s0 Chinese; +{zh\-sg} Singapore Chinese; +{zh\-mo} Macau Chinese; +{zh\-hk} Hong Kong Chinese; +{zh\-guoyu} Mandarin [Putonghua/Guoyu]; +{zh\-hakka} Hakka [formerly \*(L"i\-hakka\*(R"]; +{zh\-min} Hokkien; +{zh\-min\-nan} Southern Hokkien; +{zh\-wuu} Shanghaiese; +{zh\-xiang} Hunanese; +{zh\-gan} Gan; +{zh\-yue} Cantonese. +.IP "{chn} : Chinook Jargon" 4 +.IX Item "{chn} : Chinook Jargon" +eq Chinook Wawa. +.IP "{chp} : Chipewyan" 4 +.IX Item "{chp} : Chipewyan" +.PD 0 +.IP "{cho} : Choctaw" 4 +.IX Item "{cho} : Choctaw" +.IP "{cu} : Church Slavic" 4 +.IX Item "{cu} : Church Slavic" +.PD +eq Old Church Slavonic. +.IP "{chk} : Chuukese" 4 +.IX Item "{chk} : Chuukese" +eq Trukese. eq Chuuk. eq Truk. eq Ruk. +.IP "{cv} : Chuvash" 4 +.IX Item "{cv} : Chuvash" +.PD 0 +.IP "{cop} : Coptic" 4 +.IX Item "{cop} : Coptic" +.IP "{kw} : Cornish" 4 +.IX Item "{kw} : Cornish" +.IP "{co} : Corsican" 4 +.IX Item "{co} : Corsican" +.PD +eq Corse. +.IP "{cr} : Cree" 4 +.IX Item "{cr} : Cree" +\&\s-1NOT\s0 Creek! (Formerly \*(L"cre\*(R".) +.IP "{mus} : Creek" 4 +.IX Item "{mus} : Creek" +\&\s-1NOT\s0 Cree! +.IP "[{cpe} : English-based Creoles and pidgins (Other)]" 4 +.IX Item "[{cpe} : English-based Creoles and pidgins (Other)]" +.PD 0 +.IP "[{cpf} : French-based Creoles and pidgins (Other)]" 4 +.IX Item "[{cpf} : French-based Creoles and pidgins (Other)]" +.IP "[{cpp} : Portuguese-based Creoles and pidgins (Other)]" 4 +.IX Item "[{cpp} : Portuguese-based Creoles and pidgins (Other)]" +.IP "[{crp} : Creoles and pidgins (Other)]" 4 +.IX Item "[{crp} : Creoles and pidgins (Other)]" +.IP "{hr} : Croatian" 4 +.IX Item "{hr} : Croatian" +.PD +eq Croat. +.IP "[{cus} : Cushitic (Other)]" 4 +.IX Item "[{cus} : Cushitic (Other)]" +.PD 0 +.IP "{cs} : Czech" 4 +.IX Item "{cs} : Czech" +.IP "{dak} : Dakota" 4 +.IX Item "{dak} : Dakota" +.PD +eq Nakota. eq Latoka. +.IP "{da} : Danish" 4 +.IX Item "{da} : Danish" +.PD 0 +.IP "{dar} : Dargwa" 4 +.IX Item "{dar} : Dargwa" +.IP "{day} : Dayak" 4 +.IX Item "{day} : Dayak" +.IP "{i\-default} : Default (Fallthru) Language" 4 +.IX Item "{i-default} : Default (Fallthru) Language" +.PD +Defined in \s-1RFC 2277,\s0 this is for tagging text +(which must include English text, and might/should include text +in other appropriate languages) that is emitted in a context +where language-negotiation wasn't possible \*(-- in \s-1SMTP\s0 mail failure +messages, for example. +.IP "{del} : Delaware" 4 +.IX Item "{del} : Delaware" +.PD 0 +.IP "{din} : Dinka" 4 +.IX Item "{din} : Dinka" +.IP "{dv} : Divehi" 4 +.IX Item "{dv} : Divehi" +.PD +eq Maldivian. (Formerly \*(L"div\*(R".) +.IP "{doi} : Dogri" 4 +.IX Item "{doi} : Dogri" +\&\s-1NOT\s0 Dogrib! +.IP "{dgr} : Dogrib" 4 +.IX Item "{dgr} : Dogrib" +\&\s-1NOT\s0 Dogri! +.IP "[{dra} : Dravidian (Other)]" 4 +.IX Item "[{dra} : Dravidian (Other)]" +.PD 0 +.IP "{dua} : Duala" 4 +.IX Item "{dua} : Duala" +.IP "{nl} : Dutch" 4 +.IX Item "{nl} : Dutch" +.PD +eq Netherlander. Notable forms: +{nl\-nl} Netherlands Dutch; +{nl\-be} Belgian Dutch. +.IP "{dum} : Middle Dutch (ca.1050\-1350)" 4 +.IX Item "{dum} : Middle Dutch (ca.1050-1350)" +(Historical) +.IP "{dyu} : Dyula" 4 +.IX Item "{dyu} : Dyula" +.PD 0 +.IP "{dz} : Dzongkha" 4 +.IX Item "{dz} : Dzongkha" +.IP "{efi} : Efik" 4 +.IX Item "{efi} : Efik" +.IP "{egy} : Ancient Egyptian" 4 +.IX Item "{egy} : Ancient Egyptian" +.PD +(Historical) +.IP "{eka} : Ekajuk" 4 +.IX Item "{eka} : Ekajuk" +.PD 0 +.IP "{elx} : Elamite" 4 +.IX Item "{elx} : Elamite" +.PD +(Historical) +.IP "{en} : English" 4 +.IX Item "{en} : English" +Notable forms: +{en\-au} Australian English; +{en\-bz} Belize English; +{en\-ca} Canadian English; +{en\-gb} \s-1UK\s0 English; +{en\-ie} Irish English; +{en\-jm} Jamaican English; +{en\-nz} New Zealand English; +{en\-ph} Philippine English; +{en\-tt} Trinidad English; +{en\-us} \s-1US\s0 English; +{en\-za} South African English; +{en\-zw} Zimbabwe English. +.IP "{enm} : Old English (1100\-1500)" 4 +.IX Item "{enm} : Old English (1100-1500)" +(Historical) +.IP "{ang} : Old English (ca.450\-1100)" 4 +.IX Item "{ang} : Old English (ca.450-1100)" +eq Anglo-Saxon. (Historical) +.IP "{i\-enochian} : Enochian (Artificial)" 4 +.IX Item "{i-enochian} : Enochian (Artificial)" +.PD 0 +.IP "{myv} : Erzya" 4 +.IX Item "{myv} : Erzya" +.IP "{eo} : Esperanto" 4 +.IX Item "{eo} : Esperanto" +.PD +(Artificial) +.IP "{et} : Estonian" 4 +.IX Item "{et} : Estonian" +.PD 0 +.IP "{ee} : Ewe" 4 +.IX Item "{ee} : Ewe" +.PD +(Formerly \*(L"ewe\*(R".) +.IP "{ewo} : Ewondo" 4 +.IX Item "{ewo} : Ewondo" +.PD 0 +.IP "{fan} : Fang" 4 +.IX Item "{fan} : Fang" +.IP "{fat} : Fanti" 4 +.IX Item "{fat} : Fanti" +.IP "{fo} : Faroese" 4 +.IX Item "{fo} : Faroese" +.IP "{fj} : Fijian" 4 +.IX Item "{fj} : Fijian" +.IP "{fi} : Finnish" 4 +.IX Item "{fi} : Finnish" +.IP "[{fiu} : Finno-Ugrian (Other)]" 4 +.IX Item "[{fiu} : Finno-Ugrian (Other)]" +.PD +eq Finno-Ugric. \s-1NOT\s0 Ugaritic! +.IP "{fon} : Fon" 4 +.IX Item "{fon} : Fon" +.PD 0 +.IP "{fr} : French" 4 +.IX Item "{fr} : French" +.PD +Notable forms: +{fr\-fr} France French; +{fr\-be} Belgian French; +{fr\-ca} Canadian French; +{fr\-ch} Swiss French; +{fr\-lu} Luxembourg French; +{fr\-mc} Monaco French. +.IP "{frm} : Middle French (ca.1400\-1600)" 4 +.IX Item "{frm} : Middle French (ca.1400-1600)" +(Historical) +.IP "{fro} : Old French (842\-ca.1400)" 4 +.IX Item "{fro} : Old French (842-ca.1400)" +(Historical) +.IP "{fy} : Frisian" 4 +.IX Item "{fy} : Frisian" +.PD 0 +.IP "{fur} : Friulian" 4 +.IX Item "{fur} : Friulian" +.IP "{ff} : Fulah" 4 +.IX Item "{ff} : Fulah" +.PD +(Formerly \*(L"ful\*(R".) +.IP "{gaa} : Ga" 4 +.IX Item "{gaa} : Ga" +.PD 0 +.IP "{gd} : Scots Gaelic" 4 +.IX Item "{gd} : Scots Gaelic" +.PD +\&\s-1NOT\s0 Scots! +.IP "{gl} : Gallegan" 4 +.IX Item "{gl} : Gallegan" +eq Galician +.IP "{lg} : Ganda" 4 +.IX Item "{lg} : Ganda" +(Formerly \*(L"lug\*(R".) +.IP "{gay} : Gayo" 4 +.IX Item "{gay} : Gayo" +.PD 0 +.IP "{gba} : Gbaya" 4 +.IX Item "{gba} : Gbaya" +.IP "{gez} : Geez" 4 +.IX Item "{gez} : Geez" +.PD +eq Ge'ez +.IP "{ka} : Georgian" 4 +.IX Item "{ka} : Georgian" +.PD 0 +.IP "{de} : German" 4 +.IX Item "{de} : German" +.PD +Notable forms: +{de\-at} Austrian German; +{de\-be} Belgian German; +{de\-ch} Swiss German; +{de\-de} Germany German; +{de\-li} Liechtenstein German; +{de\-lu} Luxembourg German. +.IP "{gmh} : Middle High German (ca.1050\-1500)" 4 +.IX Item "{gmh} : Middle High German (ca.1050-1500)" +(Historical) +.IP "{goh} : Old High German (ca.750\-1050)" 4 +.IX Item "{goh} : Old High German (ca.750-1050)" +(Historical) +.IP "[{gem} : Germanic (Other)]" 4 +.IX Item "[{gem} : Germanic (Other)]" +.PD 0 +.IP "{gil} : Gilbertese" 4 +.IX Item "{gil} : Gilbertese" +.IP "{gon} : Gondi" 4 +.IX Item "{gon} : Gondi" +.IP "{gor} : Gorontalo" 4 +.IX Item "{gor} : Gorontalo" +.IP "{got} : Gothic" 4 +.IX Item "{got} : Gothic" +.PD +(Historical) +.IP "{grb} : Grebo" 4 +.IX Item "{grb} : Grebo" +.PD 0 +.IP "{grc} : Ancient Greek" 4 +.IX Item "{grc} : Ancient Greek" +.PD +(Historical) (Until 15th century or so.) +.IP "{el} : Modern Greek" 4 +.IX Item "{el} : Modern Greek" +(Since 15th century or so.) +.IP "{gn} : Guarani" 4 +.IX Item "{gn} : Guarani" +Guarani\*' +.IP "{gu} : Gujarati" 4 +.IX Item "{gu} : Gujarati" +.PD 0 +.IP "{gwi} : Gwich'in" 4 +.IX Item "{gwi} : Gwich'in" +.PD +eq Gwichin +.IP "{hai} : Haida" 4 +.IX Item "{hai} : Haida" +.PD 0 +.IP "{ht} : Haitian" 4 +.IX Item "{ht} : Haitian" +.PD +eq Haitian Creole +.IP "{ha} : Hausa" 4 +.IX Item "{ha} : Hausa" +.PD 0 +.IP "{haw} : Hawaiian" 4 +.IX Item "{haw} : Hawaiian" +.PD +Hawai'ian +.IP "{he} : Hebrew" 4 +.IX Item "{he} : Hebrew" +(Formerly \*(L"iw\*(R".) +.IP "{hz} : Herero" 4 +.IX Item "{hz} : Herero" +.PD 0 +.IP "{hil} : Hiligaynon" 4 +.IX Item "{hil} : Hiligaynon" +.IP "{him} : Himachali" 4 +.IX Item "{him} : Himachali" +.IP "{hi} : Hindi" 4 +.IX Item "{hi} : Hindi" +.IP "{ho} : Hiri Motu" 4 +.IX Item "{ho} : Hiri Motu" +.IP "{hit} : Hittite" 4 +.IX Item "{hit} : Hittite" +.PD +(Historical) +.IP "{hmn} : Hmong" 4 +.IX Item "{hmn} : Hmong" +.PD 0 +.IP "{hu} : Hungarian" 4 +.IX Item "{hu} : Hungarian" +.IP "{hup} : Hupa" 4 +.IX Item "{hup} : Hupa" +.IP "{iba} : Iban" 4 +.IX Item "{iba} : Iban" +.IP "{is} : Icelandic" 4 +.IX Item "{is} : Icelandic" +.IP "{io} : Ido" 4 +.IX Item "{io} : Ido" +.PD +(Artificial) +.IP "{ig} : Igbo" 4 +.IX Item "{ig} : Igbo" +(Formerly \*(L"ibo\*(R".) +.IP "{ijo} : Ijo" 4 +.IX Item "{ijo} : Ijo" +.PD 0 +.IP "{ilo} : Iloko" 4 +.IX Item "{ilo} : Iloko" +.IP "[{inc} : Indic (Other)]" 4 +.IX Item "[{inc} : Indic (Other)]" +.IP "[{ine} : Indo-European (Other)]" 4 +.IX Item "[{ine} : Indo-European (Other)]" +.IP "{id} : Indonesian" 4 +.IX Item "{id} : Indonesian" +.PD +(Formerly \*(L"in\*(R".) +.IP "{inh} : Ingush" 4 +.IX Item "{inh} : Ingush" +.PD 0 +.IP "{ia} : Interlingua (International Auxiliary Language Association)" 4 +.IX Item "{ia} : Interlingua (International Auxiliary Language Association)" +.PD +(Artificial) \s-1NOT\s0 Interlingue! +.IP "{ie} : Interlingue" 4 +.IX Item "{ie} : Interlingue" +(Artificial) \s-1NOT\s0 Interlingua! +.IP "{iu} : Inuktitut" 4 +.IX Item "{iu} : Inuktitut" +A subform of \*(L"Eskimo\*(R". +.IP "{ik} : Inupiaq" 4 +.IX Item "{ik} : Inupiaq" +A subform of \*(L"Eskimo\*(R". +.IP "[{ira} : Iranian (Other)]" 4 +.IX Item "[{ira} : Iranian (Other)]" +.PD 0 +.IP "{ga} : Irish" 4 +.IX Item "{ga} : Irish" +.IP "{mga} : Middle Irish (900\-1200)" 4 +.IX Item "{mga} : Middle Irish (900-1200)" +.PD +(Historical) +.IP "{sga} : Old Irish (to 900)" 4 +.IX Item "{sga} : Old Irish (to 900)" +(Historical) +.IP "[{iro} : Iroquoian languages]" 4 +.IX Item "[{iro} : Iroquoian languages]" +.PD 0 +.IP "{it} : Italian" 4 +.IX Item "{it} : Italian" +.PD +Notable forms: +{it\-it} Italy Italian; +{it\-ch} Swiss Italian. +.IP "{ja} : Japanese" 4 +.IX Item "{ja} : Japanese" +(\s-1NOT\s0 \*(L"jp\*(R"!) +.IP "{jv} : Javanese" 4 +.IX Item "{jv} : Javanese" +(Formerly \*(L"jw\*(R" because of a typo.) +.IP "{jrb} : Judeo-Arabic" 4 +.IX Item "{jrb} : Judeo-Arabic" +.PD 0 +.IP "{jpr} : Judeo-Persian" 4 +.IX Item "{jpr} : Judeo-Persian" +.IP "{kbd} : Kabardian" 4 +.IX Item "{kbd} : Kabardian" +.IP "{kab} : Kabyle" 4 +.IX Item "{kab} : Kabyle" +.IP "{kac} : Kachin" 4 +.IX Item "{kac} : Kachin" +.IP "{kl} : Kalaallisut" 4 +.IX Item "{kl} : Kalaallisut" +.PD +eq Greenlandic \*(L"Eskimo\*(R" +.IP "{xal} : Kalmyk" 4 +.IX Item "{xal} : Kalmyk" +.PD 0 +.IP "{kam} : Kamba" 4 +.IX Item "{kam} : Kamba" +.IP "{kn} : Kannada" 4 +.IX Item "{kn} : Kannada" +.PD +eq Kanarese. \s-1NOT\s0 Canadian! +.IP "{kr} : Kanuri" 4 +.IX Item "{kr} : Kanuri" +(Formerly \*(L"kau\*(R".) +.IP "{krc} : Karachay-Balkar" 4 +.IX Item "{krc} : Karachay-Balkar" +.PD 0 +.IP "{kaa} : Kara-Kalpak" 4 +.IX Item "{kaa} : Kara-Kalpak" +.IP "{kar} : Karen" 4 +.IX Item "{kar} : Karen" +.IP "{ks} : Kashmiri" 4 +.IX Item "{ks} : Kashmiri" +.IP "{csb} : Kashubian" 4 +.IX Item "{csb} : Kashubian" +.PD +eq Kashub +.IP "{kaw} : Kawi" 4 +.IX Item "{kaw} : Kawi" +.PD 0 +.IP "{kk} : Kazakh" 4 +.IX Item "{kk} : Kazakh" +.IP "{kha} : Khasi" 4 +.IX Item "{kha} : Khasi" +.IP "{km} : Khmer" 4 +.IX Item "{km} : Khmer" +.PD +eq Cambodian. eq Kampuchean. +.IP "[{khi} : Khoisan (Other)]" 4 +.IX Item "[{khi} : Khoisan (Other)]" +.PD 0 +.IP "{kho} : Khotanese" 4 +.IX Item "{kho} : Khotanese" +.IP "{ki} : Kikuyu" 4 +.IX Item "{ki} : Kikuyu" +.PD +eq Gikuyu. +.IP "{kmb} : Kimbundu" 4 +.IX Item "{kmb} : Kimbundu" +.PD 0 +.IP "{rw} : Kinyarwanda" 4 +.IX Item "{rw} : Kinyarwanda" +.IP "{ky} : Kirghiz" 4 +.IX Item "{ky} : Kirghiz" +.IP "{i\-klingon} : Klingon" 4 +.IX Item "{i-klingon} : Klingon" +.IP "{kv} : Komi" 4 +.IX Item "{kv} : Komi" +.IP "{kg} : Kongo" 4 +.IX Item "{kg} : Kongo" +.PD +(Formerly \*(L"kon\*(R".) +.IP "{kok} : Konkani" 4 +.IX Item "{kok} : Konkani" +.PD 0 +.IP "{ko} : Korean" 4 +.IX Item "{ko} : Korean" +.IP "{kos} : Kosraean" 4 +.IX Item "{kos} : Kosraean" +.IP "{kpe} : Kpelle" 4 +.IX Item "{kpe} : Kpelle" +.IP "{kro} : Kru" 4 +.IX Item "{kro} : Kru" +.IP "{kj} : Kuanyama" 4 +.IX Item "{kj} : Kuanyama" +.IP "{kum} : Kumyk" 4 +.IX Item "{kum} : Kumyk" +.IP "{ku} : Kurdish" 4 +.IX Item "{ku} : Kurdish" +.IP "{kru} : Kurukh" 4 +.IX Item "{kru} : Kurukh" +.IP "{kut} : Kutenai" 4 +.IX Item "{kut} : Kutenai" +.IP "{lad} : Ladino" 4 +.IX Item "{lad} : Ladino" +.PD +eq Judeo-Spanish. \s-1NOT\s0 Ladin (a minority language in Italy). +.IP "{lah} : Lahnda" 4 +.IX Item "{lah} : Lahnda" +\&\s-1NOT\s0 Lamba! +.IP "{lam} : Lamba" 4 +.IX Item "{lam} : Lamba" +\&\s-1NOT\s0 Lahnda! +.IP "{lo} : Lao" 4 +.IX Item "{lo} : Lao" +eq Laotian. +.IP "{la} : Latin" 4 +.IX Item "{la} : Latin" +(Historical) \s-1NOT\s0 Ladin! \s-1NOT\s0 Ladino! +.IP "{lv} : Latvian" 4 +.IX Item "{lv} : Latvian" +eq Lettish. +.IP "{lb} : Letzeburgesch" 4 +.IX Item "{lb} : Letzeburgesch" +eq Luxemburgian, eq Luxemburger. (Formerly \*(L"i\-lux\*(R".) +.IP "{lez} : Lezghian" 4 +.IX Item "{lez} : Lezghian" +.PD 0 +.IP "{li} : Limburgish" 4 +.IX Item "{li} : Limburgish" +.PD +eq Limburger, eq Limburgan. \s-1NOT\s0 Letzeburgesch! +.IP "{ln} : Lingala" 4 +.IX Item "{ln} : Lingala" +.PD 0 +.IP "{lt} : Lithuanian" 4 +.IX Item "{lt} : Lithuanian" +.IP "{nds} : Low German" 4 +.IX Item "{nds} : Low German" +.PD +eq Low Saxon. eq Low German. eq Low Saxon. +.IP "{art\-lojban} : Lojban (Artificial)" 4 +.IX Item "{art-lojban} : Lojban (Artificial)" +.PD 0 +.IP "{loz} : Lozi" 4 +.IX Item "{loz} : Lozi" +.IP "{lu} : Luba-Katanga" 4 +.IX Item "{lu} : Luba-Katanga" +.PD +(Formerly \*(L"lub\*(R".) +.IP "{lua} : Luba-Lulua" 4 +.IX Item "{lua} : Luba-Lulua" +.PD 0 +.IP "{lui} : Luiseno" 4 +.IX Item "{lui} : Luiseno" +.PD +eq Luisen\*~o. +.IP "{lun} : Lunda" 4 +.IX Item "{lun} : Lunda" +.PD 0 +.IP "{luo} : Luo (Kenya and Tanzania)" 4 +.IX Item "{luo} : Luo (Kenya and Tanzania)" +.IP "{lus} : Lushai" 4 +.IX Item "{lus} : Lushai" +.IP "{mk} : Macedonian" 4 +.IX Item "{mk} : Macedonian" +.PD +eq the modern Slavic language spoken in what was Yugoslavia. +\&\s-1NOT\s0 the form of Greek spoken in Greek Macedonia! +.IP "{mad} : Madurese" 4 +.IX Item "{mad} : Madurese" +.PD 0 +.IP "{mag} : Magahi" 4 +.IX Item "{mag} : Magahi" +.IP "{mai} : Maithili" 4 +.IX Item "{mai} : Maithili" +.IP "{mak} : Makasar" 4 +.IX Item "{mak} : Makasar" +.IP "{mg} : Malagasy" 4 +.IX Item "{mg} : Malagasy" +.IP "{ms} : Malay" 4 +.IX Item "{ms} : Malay" +.PD +\&\s-1NOT\s0 Malayalam! +.IP "{ml} : Malayalam" 4 +.IX Item "{ml} : Malayalam" +\&\s-1NOT\s0 Malay! +.IP "{mt} : Maltese" 4 +.IX Item "{mt} : Maltese" +.PD 0 +.IP "{mnc} : Manchu" 4 +.IX Item "{mnc} : Manchu" +.IP "{mdr} : Mandar" 4 +.IX Item "{mdr} : Mandar" +.PD +\&\s-1NOT\s0 Mandarin! +.IP "{man} : Mandingo" 4 +.IX Item "{man} : Mandingo" +.PD 0 +.IP "{mni} : Manipuri" 4 +.IX Item "{mni} : Manipuri" +.PD +eq Meithei. +.IP "[{mno} : Manobo languages]" 4 +.IX Item "[{mno} : Manobo languages]" +.PD 0 +.IP "{gv} : Manx" 4 +.IX Item "{gv} : Manx" +.IP "{mi} : Maori" 4 +.IX Item "{mi} : Maori" +.PD +\&\s-1NOT\s0 Mari! +.IP "{mr} : Marathi" 4 +.IX Item "{mr} : Marathi" +.PD 0 +.IP "{chm} : Mari" 4 +.IX Item "{chm} : Mari" +.PD +\&\s-1NOT\s0 Maori! +.IP "{mh} : Marshall" 4 +.IX Item "{mh} : Marshall" +eq Marshallese. +.IP "{mwr} : Marwari" 4 +.IX Item "{mwr} : Marwari" +.PD 0 +.IP "{mas} : Masai" 4 +.IX Item "{mas} : Masai" +.IP "[{myn} : Mayan languages]" 4 +.IX Item "[{myn} : Mayan languages]" +.IP "{men} : Mende" 4 +.IX Item "{men} : Mende" +.IP "{mic} : Micmac" 4 +.IX Item "{mic} : Micmac" +.IP "{min} : Minangkabau" 4 +.IX Item "{min} : Minangkabau" +.IP "{i\-mingo} : Mingo" 4 +.IX Item "{i-mingo} : Mingo" +.PD +eq the Irquoian language West Virginia Seneca. \s-1NOT\s0 New York Seneca! +.IP "[{mis} : Miscellaneous languages]" 4 +.IX Item "[{mis} : Miscellaneous languages]" +Don't use this. +.IP "{moh} : Mohawk" 4 +.IX Item "{moh} : Mohawk" +.PD 0 +.IP "{mdf} : Moksha" 4 +.IX Item "{mdf} : Moksha" +.IP "{mo} : Moldavian" 4 +.IX Item "{mo} : Moldavian" +.PD +eq Moldovan. +.IP "[{mkh} : Mon-Khmer (Other)]" 4 +.IX Item "[{mkh} : Mon-Khmer (Other)]" +.PD 0 +.IP "{lol} : Mongo" 4 +.IX Item "{lol} : Mongo" +.IP "{mn} : Mongolian" 4 +.IX Item "{mn} : Mongolian" +.PD +eq Mongol. +.IP "{mos} : Mossi" 4 +.IX Item "{mos} : Mossi" +.PD 0 +.IP "[{mul} : Multiple languages]" 4 +.IX Item "[{mul} : Multiple languages]" +.PD +Not for normal use. +.IP "[{mun} : Munda languages]" 4 +.IX Item "[{mun} : Munda languages]" +.PD 0 +.IP "{nah} : Nahuatl" 4 +.IX Item "{nah} : Nahuatl" +.IP "{nap} : Neapolitan" 4 +.IX Item "{nap} : Neapolitan" +.IP "{na} : Nauru" 4 +.IX Item "{na} : Nauru" +.IP "{nv} : Navajo" 4 +.IX Item "{nv} : Navajo" +.PD +eq Navaho. (Formerly \*(L"i\-navajo\*(R".) +.IP "{nd} : North Ndebele" 4 +.IX Item "{nd} : North Ndebele" +.PD 0 +.IP "{nr} : South Ndebele" 4 +.IX Item "{nr} : South Ndebele" +.IP "{ng} : Ndonga" 4 +.IX Item "{ng} : Ndonga" +.IP "{ne} : Nepali" 4 +.IX Item "{ne} : Nepali" +.PD +eq Nepalese. Notable forms: +{ne\-np} Nepal Nepali; +{ne\-in} India Nepali. +.IP "{new} : Newari" 4 +.IX Item "{new} : Newari" +.PD 0 +.IP "{nia} : Nias" 4 +.IX Item "{nia} : Nias" +.IP "[{nic} : Niger-Kordofanian (Other)]" 4 +.IX Item "[{nic} : Niger-Kordofanian (Other)]" +.IP "[{ssa} : Nilo-Saharan (Other)]" 4 +.IX Item "[{ssa} : Nilo-Saharan (Other)]" +.IP "{niu} : Niuean" 4 +.IX Item "{niu} : Niuean" +.IP "{nog} : Nogai" 4 +.IX Item "{nog} : Nogai" +.IP "{non} : Old Norse" 4 +.IX Item "{non} : Old Norse" +.PD +(Historical) +.IP "[{nai} : North American Indian]" 4 +.IX Item "[{nai} : North American Indian]" +Do not use this. +.IP "{no} : Norwegian" 4 +.IX Item "{no} : Norwegian" +Note the two following forms: +.IP "{nb} : Norwegian Bokmal" 4 +.IX Item "{nb} : Norwegian Bokmal" +eq Bokma\*ol, (A form of Norwegian.) (Formerly \*(L"no-bok\*(R".) +.IP "{nn} : Norwegian Nynorsk" 4 +.IX Item "{nn} : Norwegian Nynorsk" +(A form of Norwegian.) (Formerly \*(L"no-nyn\*(R".) +.IP "[{nub} : Nubian languages]" 4 +.IX Item "[{nub} : Nubian languages]" +.PD 0 +.IP "{nym} : Nyamwezi" 4 +.IX Item "{nym} : Nyamwezi" +.IP "{nyn} : Nyankole" 4 +.IX Item "{nyn} : Nyankole" +.IP "{nyo} : Nyoro" 4 +.IX Item "{nyo} : Nyoro" +.IP "{nzi} : Nzima" 4 +.IX Item "{nzi} : Nzima" +.IP "{oc} : Occitan (post 1500)" 4 +.IX Item "{oc} : Occitan (post 1500)" +.PD +eq Provenc\*,al, eq Provencal +.IP "{oj} : Ojibwa" 4 +.IX Item "{oj} : Ojibwa" +eq Ojibwe. (Formerly \*(L"oji\*(R".) +.IP "{or} : Oriya" 4 +.IX Item "{or} : Oriya" +.PD 0 +.IP "{om} : Oromo" 4 +.IX Item "{om} : Oromo" +.IP "{osa} : Osage" 4 +.IX Item "{osa} : Osage" +.IP "{os} : Ossetian; Ossetic" 4 +.IX Item "{os} : Ossetian; Ossetic" +.IP "[{oto} : Otomian languages]" 4 +.IX Item "[{oto} : Otomian languages]" +.PD +Group of languages collectively called \*(L"Otomi\*'\*(R". +.IP "{pal} : Pahlavi" 4 +.IX Item "{pal} : Pahlavi" +eq Pahlevi +.IP "{i\-pwn} : Paiwan" 4 +.IX Item "{i-pwn} : Paiwan" +eq Pariwan +.IP "{pau} : Palauan" 4 +.IX Item "{pau} : Palauan" +.PD 0 +.IP "{pi} : Pali" 4 +.IX Item "{pi} : Pali" +.PD +(Historical?) +.IP "{pam} : Pampanga" 4 +.IX Item "{pam} : Pampanga" +.PD 0 +.IP "{pag} : Pangasinan" 4 +.IX Item "{pag} : Pangasinan" +.IP "{pa} : Panjabi" 4 +.IX Item "{pa} : Panjabi" +.PD +eq Punjabi +.IP "{pap} : Papiamento" 4 +.IX Item "{pap} : Papiamento" +eq Papiamentu. +.IP "[{paa} : Papuan (Other)]" 4 +.IX Item "[{paa} : Papuan (Other)]" +.PD 0 +.IP "{fa} : Persian" 4 +.IX Item "{fa} : Persian" +.PD +eq Farsi. eq Iranian. +.IP "{peo} : Old Persian (ca.600\-400 B.C.)" 4 +.IX Item "{peo} : Old Persian (ca.600-400 B.C.)" +.PD 0 +.IP "[{phi} : Philippine (Other)]" 4 +.IX Item "[{phi} : Philippine (Other)]" +.IP "{phn} : Phoenician" 4 +.IX Item "{phn} : Phoenician" +.PD +(Historical) +.IP "{pon} : Pohnpeian" 4 +.IX Item "{pon} : Pohnpeian" +\&\s-1NOT\s0 Pompeiian! +.IP "{pl} : Polish" 4 +.IX Item "{pl} : Polish" +.PD 0 +.IP "{pt} : Portuguese" 4 +.IX Item "{pt} : Portuguese" +.PD +eq Portugese. Notable forms: +{pt\-pt} Portugal Portuguese; +{pt\-br} Brazilian Portuguese. +.IP "[{pra} : Prakrit languages]" 4 +.IX Item "[{pra} : Prakrit languages]" +.PD 0 +.IP "{pro} : Old Provencal (to 1500)" 4 +.IX Item "{pro} : Old Provencal (to 1500)" +.PD +eq Old Provenc\*,al. (Historical.) +.IP "{ps} : Pushto" 4 +.IX Item "{ps} : Pushto" +eq Pashto. eq Pushtu. +.IP "{qu} : Quechua" 4 +.IX Item "{qu} : Quechua" +eq Quecha. +.IP "{rm} : Raeto-Romance" 4 +.IX Item "{rm} : Raeto-Romance" +eq Romansh. +.IP "{raj} : Rajasthani" 4 +.IX Item "{raj} : Rajasthani" +.PD 0 +.IP "{rap} : Rapanui" 4 +.IX Item "{rap} : Rapanui" +.IP "{rar} : Rarotongan" 4 +.IX Item "{rar} : Rarotongan" +.IP "[{qaa \- qtz} : Reserved for local use.]" 4 +.IX Item "[{qaa - qtz} : Reserved for local use.]" +.IP "[{roa} : Romance (Other)]" 4 +.IX Item "[{roa} : Romance (Other)]" +.PD +\&\s-1NOT\s0 Romanian! \s-1NOT\s0 Romany! \s-1NOT\s0 Romansh! +.IP "{ro} : Romanian" 4 +.IX Item "{ro} : Romanian" +eq Rumanian. \s-1NOT\s0 Romany! +.IP "{rom} : Romany" 4 +.IX Item "{rom} : Romany" +eq Rom. \s-1NOT\s0 Romanian! +.IP "{rn} : Rundi" 4 +.IX Item "{rn} : Rundi" +.PD 0 +.IP "{ru} : Russian" 4 +.IX Item "{ru} : Russian" +.PD +\&\s-1NOT\s0 White Russian! \s-1NOT\s0 Rusyn! +.IP "[{sal} : Salishan languages]" 4 +.IX Item "[{sal} : Salishan languages]" +Large language group. +.IP "{sam} : Samaritan Aramaic" 4 +.IX Item "{sam} : Samaritan Aramaic" +\&\s-1NOT\s0 Aramaic! +.IP "{se} : Northern Sami" 4 +.IX Item "{se} : Northern Sami" +eq Lappish. eq Lapp. eq (Northern) Saami. +.IP "{sma} : Southern Sami" 4 +.IX Item "{sma} : Southern Sami" +.PD 0 +.IP "{smn} : Inari Sami" 4 +.IX Item "{smn} : Inari Sami" +.IP "{smj} : Lule Sami" 4 +.IX Item "{smj} : Lule Sami" +.IP "{sms} : Skolt Sami" 4 +.IX Item "{sms} : Skolt Sami" +.IP "[{smi} : Sami languages (Other)]" 4 +.IX Item "[{smi} : Sami languages (Other)]" +.IP "{sm} : Samoan" 4 +.IX Item "{sm} : Samoan" +.IP "{sad} : Sandawe" 4 +.IX Item "{sad} : Sandawe" +.IP "{sg} : Sango" 4 +.IX Item "{sg} : Sango" +.IP "{sa} : Sanskrit" 4 +.IX Item "{sa} : Sanskrit" +.PD +(Historical) +.IP "{sat} : Santali" 4 +.IX Item "{sat} : Santali" +.PD 0 +.IP "{sc} : Sardinian" 4 +.IX Item "{sc} : Sardinian" +.PD +eq Sard. +.IP "{sas} : Sasak" 4 +.IX Item "{sas} : Sasak" +.PD 0 +.IP "{sco} : Scots" 4 +.IX Item "{sco} : Scots" +.PD +\&\s-1NOT\s0 Scots Gaelic! +.IP "{sel} : Selkup" 4 +.IX Item "{sel} : Selkup" +.PD 0 +.IP "[{sem} : Semitic (Other)]" 4 +.IX Item "[{sem} : Semitic (Other)]" +.IP "{sr} : Serbian" 4 +.IX Item "{sr} : Serbian" +.PD +eq Serb. \s-1NOT\s0 Sorbian. +.Sp +Notable forms: +{sr\-Cyrl} : Serbian in Cyrillic script; +{sr\-Latn} : Serbian in Latin script. +.IP "{srr} : Serer" 4 +.IX Item "{srr} : Serer" +.PD 0 +.IP "{shn} : Shan" 4 +.IX Item "{shn} : Shan" +.IP "{sn} : Shona" 4 +.IX Item "{sn} : Shona" +.IP "{sid} : Sidamo" 4 +.IX Item "{sid} : Sidamo" +.IP "{sgn\-...} : Sign Languages" 4 +.IX Item "{sgn-...} : Sign Languages" +.PD +Always use with a subtag. Notable forms: +{sgn\-gb} British Sign Language (\s-1BSL\s0); +{sgn\-ie} Irish Sign Language (\s-1ESL\s0); +{sgn\-ni} Nicaraguan Sign Language (\s-1ISN\s0); +{sgn\-us} American Sign Language (\s-1ASL\s0). +.Sp +(And so on with other country codes as the subtag.) +.IP "{bla} : Siksika" 4 +.IX Item "{bla} : Siksika" +eq Blackfoot. eq Pikanii. +.IP "{sd} : Sindhi" 4 +.IX Item "{sd} : Sindhi" +.PD 0 +.IP "{si} : Sinhalese" 4 +.IX Item "{si} : Sinhalese" +.PD +eq Sinhala. +.IP "[{sit} : Sino-Tibetan (Other)]" 4 +.IX Item "[{sit} : Sino-Tibetan (Other)]" +.PD 0 +.IP "[{sio} : Siouan languages]" 4 +.IX Item "[{sio} : Siouan languages]" +.IP "{den} : Slave (Athapascan)" 4 +.IX Item "{den} : Slave (Athapascan)" +.PD +(\*(L"Slavey\*(R" is a subform.) +.IP "[{sla} : Slavic (Other)]" 4 +.IX Item "[{sla} : Slavic (Other)]" +.PD 0 +.IP "{sk} : Slovak" 4 +.IX Item "{sk} : Slovak" +.PD +eq Slovakian. +.IP "{sl} : Slovenian" 4 +.IX Item "{sl} : Slovenian" +eq Slovene. +.IP "{sog} : Sogdian" 4 +.IX Item "{sog} : Sogdian" +.PD 0 +.IP "{so} : Somali" 4 +.IX Item "{so} : Somali" +.IP "{son} : Songhai" 4 +.IX Item "{son} : Songhai" +.IP "{snk} : Soninke" 4 +.IX Item "{snk} : Soninke" +.IP "{wen} : Sorbian languages" 4 +.IX Item "{wen} : Sorbian languages" +.PD +eq Wendish. eq Sorb. eq Lusatian. eq Wend. \s-1NOT\s0 Venda! \s-1NOT\s0 Serbian! +.IP "{nso} : Northern Sotho" 4 +.IX Item "{nso} : Northern Sotho" +.PD 0 +.IP "{st} : Southern Sotho" 4 +.IX Item "{st} : Southern Sotho" +.PD +eq Sutu. eq Sesotho. +.IP "[{sai} : South American Indian (Other)]" 4 +.IX Item "[{sai} : South American Indian (Other)]" +.PD 0 +.IP "{es} : Spanish" 4 +.IX Item "{es} : Spanish" +.PD +Notable forms: +{es\-ar} Argentine Spanish; +{es\-bo} Bolivian Spanish; +{es\-cl} Chilean Spanish; +{es\-co} Colombian Spanish; +{es\-do} Dominican Spanish; +{es\-ec} Ecuadorian Spanish; +{es\-es} Spain Spanish; +{es\-gt} Guatemalan Spanish; +{es\-hn} Honduran Spanish; +{es\-mx} Mexican Spanish; +{es\-pa} Panamanian Spanish; +{es\-pe} Peruvian Spanish; +{es\-pr} Puerto Rican Spanish; +{es\-py} Paraguay Spanish; +{es\-sv} Salvadoran Spanish; +{es\-us} \s-1US\s0 Spanish; +{es\-uy} Uruguayan Spanish; +{es\-ve} Venezuelan Spanish. +.IP "{suk} : Sukuma" 4 +.IX Item "{suk} : Sukuma" +.PD 0 +.IP "{sux} : Sumerian" 4 +.IX Item "{sux} : Sumerian" +.PD +(Historical) +.IP "{su} : Sundanese" 4 +.IX Item "{su} : Sundanese" +.PD 0 +.IP "{sus} : Susu" 4 +.IX Item "{sus} : Susu" +.IP "{sw} : Swahili" 4 +.IX Item "{sw} : Swahili" +.PD +eq Kiswahili +.IP "{ss} : Swati" 4 +.IX Item "{ss} : Swati" +.PD 0 +.IP "{sv} : Swedish" 4 +.IX Item "{sv} : Swedish" +.PD +Notable forms: +{sv\-se} Sweden Swedish; +{sv\-fi} Finland Swedish. +.IP "{syr} : Syriac" 4 +.IX Item "{syr} : Syriac" +.PD 0 +.IP "{tl} : Tagalog" 4 +.IX Item "{tl} : Tagalog" +.IP "{ty} : Tahitian" 4 +.IX Item "{ty} : Tahitian" +.IP "[{tai} : Tai (Other)]" 4 +.IX Item "[{tai} : Tai (Other)]" +.PD +\&\s-1NOT\s0 Thai! +.IP "{tg} : Tajik" 4 +.IX Item "{tg} : Tajik" +.PD 0 +.IP "{tmh} : Tamashek" 4 +.IX Item "{tmh} : Tamashek" +.IP "{ta} : Tamil" 4 +.IX Item "{ta} : Tamil" +.IP "{i\-tao} : Tao" 4 +.IX Item "{i-tao} : Tao" +.PD +eq Yami. +.IP "{tt} : Tatar" 4 +.IX Item "{tt} : Tatar" +.PD 0 +.IP "{i\-tay} : Tayal" 4 +.IX Item "{i-tay} : Tayal" +.PD +eq Atayal. eq Atayan. +.IP "{te} : Telugu" 4 +.IX Item "{te} : Telugu" +.PD 0 +.IP "{ter} : Tereno" 4 +.IX Item "{ter} : Tereno" +.IP "{tet} : Tetum" 4 +.IX Item "{tet} : Tetum" +.IP "{th} : Thai" 4 +.IX Item "{th} : Thai" +.PD +\&\s-1NOT\s0 Tai! +.IP "{bo} : Tibetan" 4 +.IX Item "{bo} : Tibetan" +.PD 0 +.IP "{tig} : Tigre" 4 +.IX Item "{tig} : Tigre" +.IP "{ti} : Tigrinya" 4 +.IX Item "{ti} : Tigrinya" +.IP "{tem} : Timne" 4 +.IX Item "{tem} : Timne" +.PD +eq Themne. eq Timene. +.IP "{tiv} : Tiv" 4 +.IX Item "{tiv} : Tiv" +.PD 0 +.IP "{tli} : Tlingit" 4 +.IX Item "{tli} : Tlingit" +.IP "{tpi} : Tok Pisin" 4 +.IX Item "{tpi} : Tok Pisin" +.IP "{tkl} : Tokelau" 4 +.IX Item "{tkl} : Tokelau" +.IP "{tog} : Tonga (Nyasa)" 4 +.IX Item "{tog} : Tonga (Nyasa)" +.PD +\&\s-1NOT\s0 Tsonga! +.IP "{to} : Tonga (Tonga Islands)" 4 +.IX Item "{to} : Tonga (Tonga Islands)" +(Pronounced \*(L"Tong-a\*(R", not \*(L"Tong-ga\*(R") +.Sp +\&\s-1NOT\s0 Tsonga! +.IP "{tsi} : Tsimshian" 4 +.IX Item "{tsi} : Tsimshian" +eq Sm'algyax +.IP "{ts} : Tsonga" 4 +.IX Item "{ts} : Tsonga" +\&\s-1NOT\s0 Tonga! +.IP "{i\-tsu} : Tsou" 4 +.IX Item "{i-tsu} : Tsou" +.PD 0 +.IP "{tn} : Tswana" 4 +.IX Item "{tn} : Tswana" +.PD +Same as Setswana. +.IP "{tum} : Tumbuka" 4 +.IX Item "{tum} : Tumbuka" +.PD 0 +.IP "[{tup} : Tupi languages]" 4 +.IX Item "[{tup} : Tupi languages]" +.IP "{tr} : Turkish" 4 +.IX Item "{tr} : Turkish" +.PD +(Typically in Roman script) +.IP "{ota} : Ottoman Turkish (1500\-1928)" 4 +.IX Item "{ota} : Ottoman Turkish (1500-1928)" +(Typically in Arabic script) (Historical) +.IP "{crh} : Crimean Turkish" 4 +.IX Item "{crh} : Crimean Turkish" +eq Crimean Tatar +.IP "{tk} : Turkmen" 4 +.IX Item "{tk} : Turkmen" +eq Turkmeni. +.IP "{tvl} : Tuvalu" 4 +.IX Item "{tvl} : Tuvalu" +.PD 0 +.IP "{tyv} : Tuvinian" 4 +.IX Item "{tyv} : Tuvinian" +.PD +eq Tuvan. eq Tuvin. +.IP "{tw} : Twi" 4 +.IX Item "{tw} : Twi" +.PD 0 +.IP "{udm} : Udmurt" 4 +.IX Item "{udm} : Udmurt" +.IP "{uga} : Ugaritic" 4 +.IX Item "{uga} : Ugaritic" +.PD +\&\s-1NOT\s0 Ugric! +.IP "{ug} : Uighur" 4 +.IX Item "{ug} : Uighur" +.PD 0 +.IP "{uk} : Ukrainian" 4 +.IX Item "{uk} : Ukrainian" +.IP "{umb} : Umbundu" 4 +.IX Item "{umb} : Umbundu" +.IP "{und} : Undetermined" 4 +.IX Item "{und} : Undetermined" +.PD +Not a tag for normal use. +.IP "{ur} : Urdu" 4 +.IX Item "{ur} : Urdu" +.PD 0 +.IP "{uz} : Uzbek" 4 +.IX Item "{uz} : Uzbek" +.PD +eq O\*:zbek +.Sp +Notable forms: +{uz\-Cyrl} Uzbek in Cyrillic script; +{uz\-Latn} Uzbek in Latin script. +.IP "{vai} : Vai" 4 +.IX Item "{vai} : Vai" +.PD 0 +.IP "{ve} : Venda" 4 +.IX Item "{ve} : Venda" +.PD +\&\s-1NOT\s0 Wendish! \s-1NOT\s0 Wend! \s-1NOT\s0 Avestan! (Formerly \*(L"ven\*(R".) +.IP "{vi} : Vietnamese" 4 +.IX Item "{vi} : Vietnamese" +eq Viet. +.IP "{vo} : Volapuk" 4 +.IX Item "{vo} : Volapuk" +eq Volapu\*:k. (Artificial) +.IP "{vot} : Votic" 4 +.IX Item "{vot} : Votic" +eq Votian. eq Vod. +.IP "[{wak} : Wakashan languages]" 4 +.IX Item "[{wak} : Wakashan languages]" +.PD 0 +.IP "{wa} : Walloon" 4 +.IX Item "{wa} : Walloon" +.IP "{wal} : Walamo" 4 +.IX Item "{wal} : Walamo" +.PD +eq Wolaytta. +.IP "{war} : Waray" 4 +.IX Item "{war} : Waray" +Presumably the Philippine language Waray-Waray (Samaren\*~o), +not the smaller Philippine language Waray Sorsogon, nor the extinct +Australian language Waray. +.IP "{was} : Washo" 4 +.IX Item "{was} : Washo" +eq Washoe +.IP "{cy} : Welsh" 4 +.IX Item "{cy} : Welsh" +.PD 0 +.IP "{wo} : Wolof" 4 +.IX Item "{wo} : Wolof" +.IP "{x\-...} : Unregistered (Semi-Private Use)" 4 +.IX Item "{x-...} : Unregistered (Semi-Private Use)" +.PD +\&\*(L"x\-\*(R" is a prefix for language tags that are not registered with \s-1ISO\s0 +or \s-1IANA.\s0 Example, x\-double-dutch +.IP "{xh} : Xhosa" 4 +.IX Item "{xh} : Xhosa" +.PD 0 +.IP "{sah} : Yakut" 4 +.IX Item "{sah} : Yakut" +.IP "{yao} : Yao" 4 +.IX Item "{yao} : Yao" +.PD +(The Yao in Malawi?) +.IP "{yap} : Yapese" 4 +.IX Item "{yap} : Yapese" +eq Yap +.IP "{ii} : Sichuan Yi" 4 +.IX Item "{ii} : Sichuan Yi" +.PD 0 +.IP "{yi} : Yiddish" 4 +.IX Item "{yi} : Yiddish" +.PD +Formerly \*(L"ji\*(R". Usually in Hebrew script. +.Sp +Notable forms: +{yi\-latn} Yiddish in Latin script +.IP "{yo} : Yoruba" 4 +.IX Item "{yo} : Yoruba" +.PD 0 +.IP "[{ypk} : Yupik languages]" 4 +.IX Item "[{ypk} : Yupik languages]" +.PD +Several \*(L"Eskimo\*(R" languages. +.IP "{znd} : Zande" 4 +.IX Item "{znd} : Zande" +.PD 0 +.IP "[{zap} : Zapotec]" 4 +.IX Item "[{zap} : Zapotec]" +.PD +(A group of languages.) +.IP "{zen} : Zenaga" 4 +.IX Item "{zen} : Zenaga" +\&\s-1NOT\s0 Zend. +.IP "{za} : Zhuang" 4 +.IX Item "{za} : Zhuang" +.PD 0 +.IP "{zu} : Zulu" 4 +.IX Item "{zu} : Zulu" +.IP "{zun} : Zuni" 4 +.IX Item "{zun} : Zuni" +.PD +eq Zun\*~i +.SH "SEE ALSO" +.IX Header "SEE ALSO" +I18N::LangTags and its \*(L"See Also\*(R" section. +.SH "COPYRIGHT AND DISCLAIMER" +.IX Header "COPYRIGHT AND DISCLAIMER" +Copyright (c) 2001+ Sean M. Burke. All rights reserved. +.PP +You can redistribute and/or +modify this document under the same terms as Perl itself. +.PP +This document is provided in the hope that it will be +useful, but without any warranty; +without even the implied warranty of accuracy, authoritativeness, +completeness, merchantability, or fitness for a particular purpose. +.PP +Email any corrections or questions to me. +.SH "AUTHOR" +.IX Header "AUTHOR" +Sean M. Burke, sburke@cpan.org diff --git a/data/miniconda3/man/man3/I18N%3A%3ALangTags.3 b/data/miniconda3/man/man3/I18N%3A%3ALangTags.3 new file mode 100644 index 0000000000000000000000000000000000000000..49ef14ac8308066f17f7b06264acd72d655d881f --- /dev/null +++ b/data/miniconda3/man/man3/I18N%3A%3ALangTags.3 @@ -0,0 +1,663 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "I18N::LangTags 3" +.TH I18N::LangTags 3 "2020-12-18" "perl v5.32.1" "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" +I18N::LangTags \- functions for dealing with RFC3066\-style language tags +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use I18N::LangTags(); +.Ve +.PP +\&...or specify whichever of those functions you want to import, like so: +.PP +.Vb 1 +\& use I18N::LangTags qw(implicate_supers similarity_language_tag); +.Ve +.PP +All the exportable functions are listed below \*(-- you're free to import +only some, or none at all. By default, none are imported. If you +say: +.PP +.Vb 1 +\& use I18N::LangTags qw(:ALL) +.Ve +.PP +\&...then all are exported. (This saves you from having to use +something less obvious like \f(CW\*(C`use I18N::LangTags qw(/./)\*(C'\fR.) +.PP +If you don't import any of these functions, assume a \f(CW&I18N::LangTags::\fR +in front of all the function names in the following examples. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Language tags are a formalism, described in \s-1RFC 3066\s0 (obsoleting +1766), for declaring what language form (language and possibly +dialect) a given chunk of information is in. +.PP +This library provides functions for common tasks involving language +tags as they are needed in a variety of protocols and applications. +.PP +Please see the \*(L"See Also\*(R" references for a thorough explanation +of how to correctly use language tags. +.IP "\(bu" 4 +the function is_language_tag($lang1) +.Sp +Returns true iff \f(CW$lang1\fR is a formally valid language tag. +.Sp +.Vb 3 +\& is_language_tag("fr") is TRUE +\& is_language_tag("x\-jicarilla") is FALSE +\& (Subtags can be 8 chars long at most \-\- \*(Aqjicarilla\*(Aq is 9) +\& +\& is_language_tag("sgn\-US") is TRUE +\& (That\*(Aqs American Sign Language) +\& +\& is_language_tag("i\-Klikitat") is TRUE +\& (True without regard to the fact noone has actually +\& registered Klikitat \-\- it\*(Aqs a formally valid tag) +\& +\& is_language_tag("fr\-patois") is TRUE +\& (Formally valid \-\- altho descriptively weak!) +\& +\& is_language_tag("Spanish") is FALSE +\& is_language_tag("french\-patois") is FALSE +\& (No good \-\- first subtag has to match +\& /^([xXiI]|[a\-zA\-Z]{2,3})$/ \-\- see RFC3066) +\& +\& is_language_tag("x\-borg\-prot2532") is TRUE +\& (Yes, subtags can contain digits, as of RFC3066) +.Ve +.IP "\(bu" 4 +the function extract_language_tags($whatever) +.Sp +Returns a list of whatever looks like formally valid language tags +in \f(CW$whatever\fR. Not very smart, so don't get too creative with +what you want to feed it. +.Sp +.Vb 2 +\& extract_language_tags("fr, fr\-ca, i\-mingo") +\& returns: (\*(Aqfr\*(Aq, \*(Aqfr\-ca\*(Aq, \*(Aqi\-mingo\*(Aq) +\& +\& extract_language_tags("It\*(Aqs like this: I\*(Aqm in fr \-\- French!") +\& returns: (\*(AqIt\*(Aq, \*(Aqin\*(Aq, \*(Aqfr\*(Aq) +\& (So don\*(Aqt just feed it any old thing.) +.Ve +.Sp +The output is untainted. If you don't know what tainting is, +don't worry about it. +.IP "\(bu" 4 +the function same_language_tag($lang1, \f(CW$lang2\fR) +.Sp +Returns true iff \f(CW$lang1\fR and \f(CW$lang2\fR are acceptable variant tags +representing the same language-form. +.Sp +.Vb 10 +\& same_language_tag(\*(Aqx\-kadara\*(Aq, \*(Aqi\-kadara\*(Aq) is TRUE +\& (The x/i\- alternation doesn\*(Aqt matter) +\& same_language_tag(\*(AqX\-KADARA\*(Aq, \*(Aqi\-kadara\*(Aq) is TRUE +\& (...and neither does case) +\& same_language_tag(\*(Aqen\*(Aq, \*(Aqen\-US\*(Aq) is FALSE +\& (all\-English is not the SAME as US English) +\& same_language_tag(\*(Aqx\-kadara\*(Aq, \*(Aqx\-kadar\*(Aq) is FALSE +\& (these are totally unrelated tags) +\& same_language_tag(\*(Aqno\-bok\*(Aq, \*(Aqnb\*(Aq) is TRUE +\& (no\-bok is a legacy tag for nb (Norwegian Bokmal)) +.Ve +.Sp +\&\f(CW\*(C`same_language_tag\*(C'\fR works by just seeing whether +\&\f(CW\*(C`encode_language_tag($lang1)\*(C'\fR is the same as +\&\f(CW\*(C`encode_language_tag($lang2)\*(C'\fR. +.Sp +(Yes, I know this function is named a bit oddly. Call it historic +reasons.) +.IP "\(bu" 4 +the function similarity_language_tag($lang1, \f(CW$lang2\fR) +.Sp +Returns an integer representing the degree of similarity between +tags \f(CW$lang1\fR and \f(CW$lang2\fR (the order of which does not matter), where +similarity is the number of common elements on the left, +without regard to case and to x/i\- alternation. +.Sp +.Vb 4 +\& similarity_language_tag(\*(Aqfr\*(Aq, \*(Aqfr\-ca\*(Aq) is 1 +\& (one element in common) +\& similarity_language_tag(\*(Aqfr\-ca\*(Aq, \*(Aqfr\-FR\*(Aq) is 1 +\& (one element in common) +\& +\& similarity_language_tag(\*(Aqfr\-CA\-joual\*(Aq, +\& \*(Aqfr\-CA\-PEI\*(Aq) is 2 +\& similarity_language_tag(\*(Aqfr\-CA\-joual\*(Aq, \*(Aqfr\-CA\*(Aq) is 2 +\& (two elements in common) +\& +\& similarity_language_tag(\*(Aqx\-kadara\*(Aq, \*(Aqi\-kadara\*(Aq) is 1 +\& (x/i\- doesn\*(Aqt matter) +\& +\& similarity_language_tag(\*(Aqen\*(Aq, \*(Aqx\-kadar\*(Aq) is 0 +\& similarity_language_tag(\*(Aqx\-kadara\*(Aq, \*(Aqx\-kadar\*(Aq) is 0 +\& (unrelated tags \-\- no similarity) +\& +\& similarity_language_tag(\*(Aqi\-cree\-syllabic\*(Aq, +\& \*(Aqi\-cherokee\-syllabic\*(Aq) is 0 +\& (no B elements in common!) +.Ve +.IP "\(bu" 4 +the function is_dialect_of($lang1, \f(CW$lang2\fR) +.Sp +Returns true iff language tag \f(CW$lang1\fR represents a subform of +language tag \f(CW$lang2\fR. +.Sp +\&\fBGet the order right! It doesn't work the other way around!\fR +.Sp +.Vb 2 +\& is_dialect_of(\*(Aqen\-US\*(Aq, \*(Aqen\*(Aq) is TRUE +\& (American English IS a dialect of all\-English) +\& +\& is_dialect_of(\*(Aqfr\-CA\-joual\*(Aq, \*(Aqfr\-CA\*(Aq) is TRUE +\& is_dialect_of(\*(Aqfr\-CA\-joual\*(Aq, \*(Aqfr\*(Aq) is TRUE +\& (Joual is a dialect of (a dialect of) French) +\& +\& is_dialect_of(\*(Aqen\*(Aq, \*(Aqen\-US\*(Aq) is FALSE +\& (all\-English is a NOT dialect of American English) +\& +\& is_dialect_of(\*(Aqfr\*(Aq, \*(Aqen\-CA\*(Aq) is FALSE +\& +\& is_dialect_of(\*(Aqen\*(Aq, \*(Aqen\*(Aq ) is TRUE +\& is_dialect_of(\*(Aqen\-US\*(Aq, \*(Aqen\-US\*(Aq) is TRUE +\& (B these are degenerate cases) +\& +\& is_dialect_of(\*(Aqi\-mingo\-tom\*(Aq, \*(Aqx\-Mingo\*(Aq) is TRUE +\& (the x/i thing doesn\*(Aqt matter, nor does case) +\& +\& is_dialect_of(\*(Aqnn\*(Aq, \*(Aqno\*(Aq) is TRUE +\& (because \*(Aqnn\*(Aq (New Norse) is aliased to \*(Aqno\-nyn\*(Aq, +\& as a special legacy case, and \*(Aqno\-nyn\*(Aq is a +\& subform of \*(Aqno\*(Aq (Norwegian)) +.Ve +.IP "\(bu" 4 +the function super_languages($lang1) +.Sp +Returns a list of language tags that are superordinate tags to \f(CW$lang1\fR +\&\*(-- it gets this by removing subtags from the end of \f(CW$lang1\fR until +nothing (or just \*(L"i\*(R" or \*(L"x\*(R") is left. +.Sp +.Vb 1 +\& super_languages("fr\-CA\-joual") is ("fr\-CA", "fr") +\& +\& super_languages("en\-AU") is ("en") +\& +\& super_languages("en") is empty\-list, () +\& +\& super_languages("i\-cherokee") is empty\-list, () +\& ...not ("i"), which would be illegal as well as pointless. +.Ve +.Sp +If \f(CW$lang1\fR is not a valid language tag, returns empty-list in +a list context, undef in a scalar context. +.Sp +A notable and rather unavoidable problem with this method: +\&\*(L"x\-mingo-tom\*(R" has an \*(L"x\*(R" because the whole tag isn't an +IANA-registered tag \*(-- but super_languages('x\-mingo\-tom') is +('x\-mingo') \*(-- which isn't really right, since 'i\-mingo' is +registered. But this module has no way of knowing that. (But note +that same_language_tag('x\-mingo', 'i\-mingo') is \s-1TRUE.\s0) +.Sp +More importantly, you assume \fIat your peril\fR that superordinates of +\&\f(CW$lang1\fR are mutually intelligible with \f(CW$lang1\fR. Consider this +carefully. +.IP "\(bu" 4 +the function locale2language_tag($locale_identifier) +.Sp +This takes a locale name (like \*(L"en\*(R", \*(L"en_US\*(R", or \*(L"en_US.ISO8859\-1\*(R") +and maps it to a language tag. If it's not mappable (as with, +notably, \*(L"C\*(R" and \*(L"\s-1POSIX\*(R"\s0), this returns empty-list in a list context, +or undef in a scalar context. +.Sp +.Vb 1 +\& locale2language_tag("en") is "en" +\& +\& locale2language_tag("en_US") is "en\-US" +\& +\& locale2language_tag("en_US.ISO8859\-1") is "en\-US" +\& +\& locale2language_tag("C") is undef or () +\& +\& locale2language_tag("POSIX") is undef or () +\& +\& locale2language_tag("POSIX") is undef or () +.Ve +.Sp +I'm not totally sure that locale names map satisfactorily to language +tags. Think \s-1REAL\s0 hard about how you use this. \s-1YOU HAVE BEEN WARNED.\s0 +.Sp +The output is untainted. If you don't know what tainting is, +don't worry about it. +.IP "\(bu" 4 +the function encode_language_tag($lang1) +.Sp +This function, if given a language tag, returns an encoding of it such +that: +.Sp +* tags representing different languages never get the same encoding. +.Sp +* tags representing the same language always get the same encoding. +.Sp +* an encoding of a formally valid language tag always is a string +value that is defined, has length, and is true if considered as a +boolean. +.Sp +Note that the encoding itself is \fBnot\fR a formally valid language tag. +Note also that you cannot, currently, go from an encoding back to a +language tag that it's an encoding of. +.Sp +Note also that you \fBmust\fR consider the encoded value as atomic; i.e., +you should not consider it as anything but an opaque, unanalysable +string value. (The internals of the encoding method may change in +future versions, as the language tagging standard changes over time.) +.Sp +\&\f(CW\*(C`encode_language_tag\*(C'\fR returns undef if given anything other than a +formally valid language tag. +.Sp +The reason \f(CW\*(C`encode_language_tag\*(C'\fR exists is because different language +tags may represent the same language; this is normally treatable with +\&\f(CW\*(C`same_language_tag\*(C'\fR, but consider this situation: +.Sp +You have a data file that expresses greetings in different languages. +Its format is \*(L"[language tag]=[how to say 'Hello']\*(R", like: +.Sp +.Vb 3 +\& en\-US=Hiho +\& fr=Bonjour +\& i\-mingo=Hau\*(Aq +.Ve +.Sp +And suppose you write a program that reads that file and then runs as +a daemon, answering client requests that specify a language tag and +then expect the string that says how to greet in that language. So an +interaction looks like: +.Sp +.Vb 2 +\& greeting\-client asks: fr +\& greeting\-server answers: Bonjour +.Ve +.Sp +So far so good. But suppose the way you're implementing this is: +.Sp +.Vb 9 +\& my %greetings; +\& die unless open(IN, "<", "in.dat"); +\& while() { +\& chomp; +\& next unless /^([^=]+)=(.+)/s; +\& my($lang, $expr) = ($1, $2); +\& $greetings{$lang} = $expr; +\& } +\& close(IN); +.Ve +.Sp +at which point \f(CW%greetings\fR has the contents: +.Sp +.Vb 3 +\& "en\-US" => "Hiho" +\& "fr" => "Bonjour" +\& "i\-mingo" => "Hau\*(Aq" +.Ve +.Sp +And suppose then that you answer client requests for language \f(CW$wanted\fR +by just looking up \f(CW$greetings\fR{$wanted}. +.Sp +If the client asks for \*(L"fr\*(R", that will look up successfully in +\&\f(CW%greetings\fR, to the value \*(L"Bonjour\*(R". And if the client asks for +\&\*(L"i\-mingo\*(R", that will look up successfully in \f(CW%greetings\fR, to the value +\&\*(L"Hau'\*(R". +.Sp +But if the client asks for \*(L"i\-Mingo\*(R" or \*(L"x\-mingo\*(R", or \*(L"Fr\*(R", then the +lookup in \f(CW%greetings\fR fails. That's the Wrong Thing. +.Sp +You could instead do lookups on \f(CW$wanted\fR with: +.Sp +.Vb 8 +\& use I18N::LangTags qw(same_language_tag); +\& my $response = \*(Aq\*(Aq; +\& foreach my $l2 (keys %greetings) { +\& if(same_language_tag($wanted, $l2)) { +\& $response = $greetings{$l2}; +\& last; +\& } +\& } +.Ve +.Sp +But that's rather inefficient. A better way to do it is to start your +program with: +.Sp +.Vb 12 +\& use I18N::LangTags qw(encode_language_tag); +\& my %greetings; +\& die unless open(IN, "<", "in.dat"); +\& while() { +\& chomp; +\& next unless /^([^=]+)=(.+)/s; +\& my($lang, $expr) = ($1, $2); +\& $greetings{ +\& encode_language_tag($lang) +\& } = $expr; +\& } +\& close(IN); +.Ve +.Sp +and then just answer client requests for language \f(CW$wanted\fR by just +looking up +.Sp +.Vb 1 +\& $greetings{encode_language_tag($wanted)} +.Ve +.Sp +And that does the Right Thing. +.IP "\(bu" 4 +the function alternate_language_tags($lang1) +.Sp +This function, if given a language tag, returns all language tags that +are alternate forms of this language tag. (I.e., tags which refer to +the same language.) This is meant to handle legacy tags caused by +the minor changes in language tag standards over the years; and +the x\-/i\- alternation is also dealt with. +.Sp +Note that this function does \fInot\fR try to equate new (and never-used, +and unusable) +\&\s-1ISO639\-2\s0 three-letter tags to old (and still in use) \s-1ISO639\-1\s0 +two-letter equivalents \*(-- like \*(L"ara\*(R" \-> \*(L"ar\*(R" \*(-- because +\&\*(L"ara\*(R" has \fInever\fR been in use as an Internet language tag, +and \s-1RFC 3066\s0 stipulates that it never should be, since a shorter +tag (\*(L"ar\*(R") exists. +.Sp +Examples: +.Sp +.Vb 10 +\& alternate_language_tags(\*(Aqno\-bok\*(Aq) is (\*(Aqnb\*(Aq) +\& alternate_language_tags(\*(Aqnb\*(Aq) is (\*(Aqno\-bok\*(Aq) +\& alternate_language_tags(\*(Aqhe\*(Aq) is (\*(Aqiw\*(Aq) +\& alternate_language_tags(\*(Aqiw\*(Aq) is (\*(Aqhe\*(Aq) +\& alternate_language_tags(\*(Aqi\-hakka\*(Aq) is (\*(Aqzh\-hakka\*(Aq, \*(Aqx\-hakka\*(Aq) +\& alternate_language_tags(\*(Aqzh\-hakka\*(Aq) is (\*(Aqi\-hakka\*(Aq, \*(Aqx\-hakka\*(Aq) +\& alternate_language_tags(\*(Aqen\*(Aq) is () +\& alternate_language_tags(\*(Aqx\-mingo\-tom\*(Aq) is (\*(Aqi\-mingo\-tom\*(Aq) +\& alternate_language_tags(\*(Aqx\-klikitat\*(Aq) is (\*(Aqi\-klikitat\*(Aq) +\& alternate_language_tags(\*(Aqi\-klikitat\*(Aq) is (\*(Aqx\-klikitat\*(Aq) +.Ve +.Sp +This function returns empty-list if given anything other than a formally +valid language tag. +.IP "\(bu" 4 +the function \f(CW@langs\fR = panic_languages(@accept_languages) +.Sp +This function takes a list of 0 or more language +tags that constitute a given user's Accept-Language list, and +returns a list of tags for \fIother\fR (non-super) +languages that are probably acceptable to the user, to be +used \fIif all else fails\fR. +.Sp +For example, if a user accepts only 'ca' (Catalan) and +\&'es' (Spanish), and the documents/interfaces you have +available are just in German, Italian, and Chinese, then +the user will most likely want the Italian one (and not +the Chinese or German one!), instead of getting +nothing. So \f(CW\*(C`panic_languages(\*(Aqca\*(Aq, \*(Aqes\*(Aq)\*(C'\fR returns +a list containing 'it' (Italian). +.Sp +English ('en') is \fIalways\fR in the return list, but +whether it's at the very end or not depends +on the input languages. This function works by consulting +an internal table that stipulates what common +languages are \*(L"close\*(R" to each other. +.Sp +A useful construct you might consider using is: +.Sp +.Vb 4 +\& @fallbacks = super_languages(@accept_languages); +\& push @fallbacks, panic_languages( +\& @accept_languages, @fallbacks, +\& ); +.Ve +.IP "\(bu" 4 +the function implicate_supers( ...languages... ) +.Sp +This takes a list of strings (which are presumed to be language-tags; +strings that aren't, are ignored); and after each one, this function +inserts super-ordinate forms that don't already appear in the list. +The original list, plus these insertions, is returned. +.Sp +In other words, it takes this: +.Sp +.Vb 1 +\& pt\-br de\-DE en\-US fr pt\-br\-janeiro +.Ve +.Sp +and returns this: +.Sp +.Vb 1 +\& pt\-br pt de\-DE de en\-US en fr pt\-br\-janeiro +.Ve +.Sp +This function is most useful in the idiom +.Sp +.Vb 1 +\& implicate_supers( I18N::LangTags::Detect::detect() ); +.Ve +.Sp +(See I18N::LangTags::Detect.) +.IP "\(bu" 4 +the function implicate_supers_strictly( ...languages... ) +.Sp +This works like \f(CW\*(C`implicate_supers\*(C'\fR except that the implicated +forms are added to the end of the return list. +.Sp +In other words, implicate_supers_strictly takes a list of strings +(which are presumed to be language-tags; strings that aren't, are +ignored) and after the whole given list, it inserts the super-ordinate forms +of all given tags, minus any tags that already appear in the input list. +.Sp +In other words, it takes this: +.Sp +.Vb 1 +\& pt\-br de\-DE en\-US fr pt\-br\-janeiro +.Ve +.Sp +and returns this: +.Sp +.Vb 1 +\& pt\-br de\-DE en\-US fr pt\-br\-janeiro pt de en +.Ve +.Sp +The reason this function has \*(L"_strictly\*(R" in its name is that when +you're processing an Accept-Language list according to the RFCs, if +you interpret the RFCs quite strictly, then you would use +implicate_supers_strictly, but for normal use (i.e., common-sense use, +as far as I'm concerned) you'd use implicate_supers. +.SH "ABOUT LOWERCASING" +.IX Header "ABOUT LOWERCASING" +I've considered making all the above functions that output language +tags return all those tags strictly in lowercase. Having all your +language tags in lowercase does make some things easier. But you +might as well just lowercase as you like, or call +\&\f(CW\*(C`encode_language_tag($lang1)\*(C'\fR where appropriate. +.SH "ABOUT UNICODE PLAINTEXT LANGUAGE TAGS" +.IX Header "ABOUT UNICODE PLAINTEXT LANGUAGE TAGS" +In some future version of I18N::LangTags, I plan to include support +for RFC2482\-style language tags \*(-- which are basically just normal +language tags with their \s-1ASCII\s0 characters shifted into Plane 14. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +* I18N::LangTags::List +.PP +* \s-1RFC 3066,\s0 \f(CW\*(C`\*(C'\fR, \*(L"Tags for the +Identification of Languages\*(R". (Obsoletes \s-1RFC 1766\s0) +.PP +* \s-1RFC 2277,\s0 \f(CW\*(C`\*(C'\fR, \*(L"\s-1IETF\s0 Policy on +Character Sets and Languages\*(R". +.PP +* \s-1RFC 2231,\s0 \f(CW\*(C`\*(C'\fR, \*(L"\s-1MIME\s0 Parameter +Value and Encoded Word Extensions: Character Sets, Languages, and +Continuations\*(R". +.PP +* \s-1RFC 2482,\s0 \f(CW\*(C`\*(C'\fR, +\&\*(L"Language Tagging in Unicode Plain Text\*(R". +.PP +* Locale::Codes, in +\&\f(CW\*(C`\*(C'\fR +.PP +* \s-1ISO 639\-2,\s0 \*(L"Codes for the representation of names of languages\*(R", +including two-letter and three-letter codes, +\&\f(CW\*(C`\*(C'\fR +.PP +* The \s-1IANA\s0 list of registered languages (hopefully up-to-date), +\&\f(CW\*(C`\*(C'\fR +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1998+ Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +The programs and documentation in this dist are distributed in +the hope that they will be useful, but without any warranty; without +even the implied warranty of merchantability or fitness for a +particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Sean M. Burke \f(CW\*(C`sburke@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/I18N%3A%3ALanginfo.3 b/data/miniconda3/man/man3/I18N%3A%3ALanginfo.3 new file mode 100644 index 0000000000000000000000000000000000000000..41c7c3b18fcbe8621f67c478bc5c7cd74d58e67c --- /dev/null +++ b/data/miniconda3/man/man3/I18N%3A%3ALanginfo.3 @@ -0,0 +1,350 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "I18N::Langinfo 3" +.TH I18N::Langinfo 3 "2020-12-18" "perl v5.32.1" "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" +I18N::Langinfo \- query locale information +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use I18N::Langinfo; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBlanginfo()\fR function queries various locale information that can be +used to localize output and user interfaces. It uses the current underlying +locale, regardless of whether or not it was called from within the scope of +\&\f(CW\*(C`use\ locale\*(C'\fR. The \fBlanginfo()\fR function requires +one numeric argument that identifies the locale constant to query: +if no argument is supplied, \f(CW$_\fR is used. The numeric constants +appropriate to be used as arguments are exportable from I18N::Langinfo. +.PP +The following example will import the \fBlanginfo()\fR function itself and +three constants to be used as arguments to \fBlanginfo()\fR: a constant for +the abbreviated first day of the week (the numbering starts from +Sunday = 1) and two more constants for the affirmative and negative +answers for a yes/no question in the current locale. +.PP +.Vb 1 +\& use I18N::Langinfo qw(langinfo ABDAY_1 YESSTR NOSTR); +\& +\& my ($abday_1, $yesstr, $nostr) = +\& map { langinfo($_) } (ABDAY_1, YESSTR, NOSTR); +\& +\& print "$abday_1? [$yesstr/$nostr] "; +.Ve +.PP +In other words, in the \*(L"C\*(R" (or English) locale the above will probably +print something like: +.PP +.Vb 1 +\& Sun? [yes/no] +.Ve +.PP +but under a French locale +.PP +.Vb 1 +\& dim? [oui/non] +.Ve +.PP +The usually available constants are as follows. +.IP "\(bu" 4 +For abbreviated and full length days of the week and months of the year: +.Sp +.Vb 6 +\& ABDAY_1 ABDAY_2 ABDAY_3 ABDAY_4 ABDAY_5 ABDAY_6 ABDAY_7 +\& ABMON_1 ABMON_2 ABMON_3 ABMON_4 ABMON_5 ABMON_6 +\& ABMON_7 ABMON_8 ABMON_9 ABMON_10 ABMON_11 ABMON_12 +\& DAY_1 DAY_2 DAY_3 DAY_4 DAY_5 DAY_6 DAY_7 +\& MON_1 MON_2 MON_3 MON_4 MON_5 MON_6 +\& MON_7 MON_8 MON_9 MON_10 MON_11 MON_12 +.Ve +.IP "\(bu" 4 +For the date-time, date, and time formats used by the \fBstrftime()\fR function +(see \s-1POSIX\s0): +.Sp +.Vb 1 +\& D_T_FMT D_FMT T_FMT +.Ve +.IP "\(bu" 4 +For the locales for which it makes sense to have ante meridiem and post +meridiem time formats: +.Sp +.Vb 1 +\& AM_STR PM_STR T_FMT_AMPM +.Ve +.IP "\(bu" 4 +For the character code set being used (such as \*(L"\s-1ISO8859\-1\*(R",\s0 \*(L"cp850\*(R", +\&\*(L"koi8\-r\*(R", \*(L"sjis\*(R", \*(L"utf8\*(R", etc.), and for the currency string: +.Sp +.Vb 1 +\& CODESET CRNCYSTR +.Ve +.IP "\(bu" 4 +For an alternate representation of digits, for the +radix character used between the integer and the fractional part +of decimal numbers, the group separator string for large-ish floating point +numbers (yes, the final two are redundant with +\&\fBPOSIX::localeconv()\fR): +.Sp +.Vb 1 +\& ALT_DIGITS RADIXCHAR THOUSEP +.Ve +.IP "\(bu" 4 +For the affirmative and negative responses and expressions: +.Sp +.Vb 1 +\& YESSTR YESEXPR NOSTR NOEXPR +.Ve +.IP "\(bu" 4 +For the eras based on typically some ruler, such as the Japanese Emperor +(naturally only defined in the appropriate locales): +.Sp +.Vb 1 +\& ERA ERA_D_FMT ERA_D_T_FMT ERA_T_FMT +.Ve +.ie n .SS "For systems without ""nl_langinfo""" +.el .SS "For systems without \f(CWnl_langinfo\fP" +.IX Subsection "For systems without nl_langinfo" +Starting in Perl 5.28, this module is available even on systems that lack a +native \f(CW\*(C`nl_langinfo\*(C'\fR. On such systems, it uses various methods to construct +what that function, if present, would return. But there are potential +glitches. These are the items that could be different: +.ie n .IP """ERA""" 4 +.el .IP "\f(CWERA\fR" 4 +.IX Item "ERA" +Unimplemented, so returns \f(CW""\fR. +.ie n .IP """CODESET""" 4 +.el .IP "\f(CWCODESET\fR" 4 +.IX Item "CODESET" +Unimplemented, except on Windows, due to the vagaries of vendor locale names, +returning \f(CW""\fR on non-Windows. +.ie n .IP """YESEXPR""" 4 +.el .IP "\f(CWYESEXPR\fR" 4 +.IX Item "YESEXPR" +.PD 0 +.ie n .IP """YESSTR""" 4 +.el .IP "\f(CWYESSTR\fR" 4 +.IX Item "YESSTR" +.ie n .IP """NOEXPR""" 4 +.el .IP "\f(CWNOEXPR\fR" 4 +.IX Item "NOEXPR" +.ie n .IP """NOSTR""" 4 +.el .IP "\f(CWNOSTR\fR" 4 +.IX Item "NOSTR" +.PD +Only the values for English are returned. \f(CW\*(C`YESSTR\*(C'\fR and \f(CW\*(C`NOSTR\*(C'\fR have been +removed from \s-1POSIX 2008,\s0 and are retained here for backwards compatibility. +Your platform's \f(CW\*(C`nl_langinfo\*(C'\fR may not support them. +.ie n .IP """D_FMT""" 4 +.el .IP "\f(CWD_FMT\fR" 4 +.IX Item "D_FMT" +Always evaluates to \f(CW%x\fR, the locale's appropriate date representation. +.ie n .IP """T_FMT""" 4 +.el .IP "\f(CWT_FMT\fR" 4 +.IX Item "T_FMT" +Always evaluates to \f(CW%X\fR, the locale's appropriate time representation. +.ie n .IP """D_T_FMT""" 4 +.el .IP "\f(CWD_T_FMT\fR" 4 +.IX Item "D_T_FMT" +Always evaluates to \f(CW%c\fR, the locale's appropriate date and time +representation. +.ie n .IP """CRNCYSTR""" 4 +.el .IP "\f(CWCRNCYSTR\fR" 4 +.IX Item "CRNCYSTR" +The return may be incorrect for those rare locales where the currency symbol +replaces the radix character. +Send email to if you have examples of it needing +to work differently. +.ie n .IP """ALT_DIGITS""" 4 +.el .IP "\f(CWALT_DIGITS\fR" 4 +.IX Item "ALT_DIGITS" +Currently this gives the same results as Linux does. +Send email to if you have examples of it needing +to work differently. +.ie n .IP """ERA_D_FMT""" 4 +.el .IP "\f(CWERA_D_FMT\fR" 4 +.IX Item "ERA_D_FMT" +.PD 0 +.ie n .IP """ERA_T_FMT""" 4 +.el .IP "\f(CWERA_T_FMT\fR" 4 +.IX Item "ERA_T_FMT" +.ie n .IP """ERA_D_T_FMT""" 4 +.el .IP "\f(CWERA_D_T_FMT\fR" 4 +.IX Item "ERA_D_T_FMT" +.ie n .IP """T_FMT_AMPM""" 4 +.el .IP "\f(CWT_FMT_AMPM\fR" 4 +.IX Item "T_FMT_AMPM" +.PD +These are derived by using \f(CW\*(C`strftime()\*(C'\fR, and not all versions of that function +know about them. \f(CW""\fR is returned for these on such systems. +.PP +See your \fBnl_langinfo\fR\|(3) for more information about the available +constants. (Often this means having to look directly at the +\&\fIlanginfo.h\fR C header file.) +.SS "\s-1EXPORT\s0" +.IX Subsection "EXPORT" +By default only the \f(CW\*(C`langinfo()\*(C'\fR function is exported. +.SH "BUGS" +.IX Header "BUGS" +Before Perl 5.28, the returned values are unreliable for the \f(CW\*(C`RADIXCHAR\*(C'\fR and +\&\f(CW\*(C`THOUSEP\*(C'\fR locale constants. +.PP +Starting in 5.28, changing locales on threaded builds is supported on systems +that offer thread-safe locale functions. These include \s-1POSIX 2008\s0 systems and +Windows starting with Visual Studio 2005, and this module will work properly +in such situations. However, on threaded builds on Windows prior to Visual +Studio 2015, retrieving the items \f(CW\*(C`CRNCYSTR\*(C'\fR and \f(CW\*(C`THOUSEP\*(C'\fR can result in a +race with a thread that has converted to use the global locale. It is quite +uncommon for a thread to have done this. It would be possible to construct a +workaround for this; patches welcome: see \*(L"switch_to_global_locale\*(R" in perlapi. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perllocale, \*(L"localeconv\*(R" in \s-1POSIX\s0, \*(L"setlocale\*(R" in \s-1POSIX\s0, \fBnl_langinfo\fR\|(3). +.PP +The \fBlanginfo()\fR function is just a wrapper for the C \fBnl_langinfo()\fR interface. +.SH "AUTHOR" +.IX Header "AUTHOR" +Jarkko Hietaniemi, . Now maintained by Perl 5 porters. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2001 by Jarkko Hietaniemi +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABase.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABase.3 new file mode 100644 index 0000000000000000000000000000000000000000..694f7fb740fafe59eff5bd03e188d351576d3cd5 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABase.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::Base 3" +.TH IO::Compress::Base 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::Base \- Base Class for IO::Compress modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::Base ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is not intended for direct use in application code. Its sole +purpose is to be sub-classed by IO::Compress modules. +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABzip2.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABzip2.3 new file mode 100644 index 0000000000000000000000000000000000000000..e85beda2b526942c82553bc71a962a0760d57816 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ABzip2.3 @@ -0,0 +1,809 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::Bzip2 3" +.TH IO::Compress::Bzip2 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::Bzip2 \- Write bzip2 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& +\& my $status = bzip2 $input => $output [,OPTS] +\& or die "bzip2 failed: $Bzip2Error\en"; +\& +\& my $z = new IO::Compress::Bzip2 $output [,OPTS] +\& or die "bzip2 failed: $Bzip2Error\en"; +\& +\& $z\->print($string); +\& $z\->printf($format, $string); +\& $z\->write($string); +\& $z\->syswrite($string [, $length, $offset]); +\& $z\->flush(); +\& $z\->tell(); +\& $z\->eof(); +\& $z\->seek($position, $whence); +\& $z\->binmode(); +\& $z\->fileno(); +\& $z\->opened(); +\& $z\->autoflush(); +\& $z\->input_line_number(); +\& $z\->newStream( [OPTS] ); +\& +\& $z\->close() ; +\& +\& $Bzip2Error ; +\& +\& # IO::File mode +\& +\& print $z $string; +\& printf $z $format, $string; +\& tell $z +\& eof $z +\& seek $z, $position, $whence +\& binmode $z +\& fileno $z +\& close $z ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows writing bzip2 +compressed data to files or buffer. +.PP +For reading bzip2 files/buffers, see the companion module +IO::Uncompress::Bunzip2. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`bzip2\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" compression between buffers and/or files. For finer +control over the compression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& +\& bzip2 $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "bzip2 failed: $Bzip2Error\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "bzip2 $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "bzip2 \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "bzip2 $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`bzip2\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the uncompressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is compressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`bzip2\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the compressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +compressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +compressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +compressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the compressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`bzip2\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple files/buffers and +\&\f(CW$output_filename_or_reference\fR is a single +file/buffer the input files/buffers will be stored +in \f(CW$output_filename_or_reference\fR as a concatenated series of compressed data streams. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`bzip2\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`bzip2\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`bzip2\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeIn => 0|1""" 5 +.el .IP "\f(CWBinModeIn => 0|1\fR" 5 +.IX Item "BinModeIn => 0|1" +This option is now a no-op. All files will be read in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +compressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any compressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all compressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any compressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all compressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any compressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any compressed data is output. +.Sp +Defaults to 0. +.RE +.SS "Examples" +.IX Subsection "Examples" +Here are a few example that show the capabilities of the module. +.PP +\fIStreaming\fR +.IX Subsection "Streaming" +.PP +This very simple command line example demonstrates the streaming capabilities of the module. +The code reads data from \s-1STDIN,\s0 compresses it, and writes the compressed data to \s-1STDOUT.\s0 +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Bzip2=bzip2 \-e \*(Aqbzip2 \e*STDIN => \e*STDOUT\*(Aq >output.bz2 +.Ve +.PP +The special filename \*(L"\-\*(R" can be used as a standin for both \f(CW\*(C`\e*STDIN\*(C'\fR and \f(CW\*(C`\e*STDOUT\*(C'\fR, +so the above can be rewritten as +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Bzip2=bzip2 \-e \*(Aqbzip2 "\-" => "\-"\*(Aq >output.bz2 +.Ve +.PP +\fICompressing a file from the filesystem\fR +.IX Subsection "Compressing a file from the filesystem" +.PP +To read the contents of the file \f(CW\*(C`file1.txt\*(C'\fR and write the compressed +data to the file \f(CW\*(C`file1.txt.bz2\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& +\& my $input = "file1.txt"; +\& bzip2 $input => "$input.bz2" +\& or die "bzip2 failed: $Bzip2Error\en"; +.Ve +.PP +\fIReading from a Filehandle and writing to an in-memory buffer\fR +.IX Subsection "Reading from a Filehandle and writing to an in-memory buffer" +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +compressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "bzip2 failed: $Bzip2Error\en"; +.Ve +.PP +\fICompressing multiple files\fR +.IX Subsection "Compressing multiple files" +.PP +To compress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt\*(R" +and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& +\& bzip2 \*(Aq\*(Aq => \*(Aq<*.bz2>\*(Aq +\& or die "bzip2 failed: $Bzip2Error\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +\& +\& for my $input ( glob "/my/home/*.txt" ) +\& { +\& my $output = "$input.bz2" ; +\& bzip2 $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $Bzip2Error\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR is shown below +.PP +.Vb 2 +\& my $z = new IO::Compress::Bzip2 $output [,OPTS] +\& or die "IO::Compress::Bzip2 failed: $Bzip2Error\en"; +.Ve +.PP +It returns an \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR object on success and undef on failure. +The variable \f(CW$Bzip2Error\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Compress::Bzip2 can be used exactly like an IO::File filehandle. +This means that all normal output file operations can be carried out +with \f(CW$z\fR. +For example, to write to a compressed file/buffer you can use either of +these forms +.PP +.Vb 2 +\& $z\->print("hello world\en"); +\& print $z "hello world\en"; +.Ve +.PP +The mandatory parameter \f(CW$output\fR is used to control the destination +of the compressed data. This parameter can take one of these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output\fR parameter is a simple scalar, it is assumed to be a +filename. This file will be opened for writing and the compressed data +will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output\fR parameter is a filehandle, the compressed data will be +written to it. +The string '\-' can be used as an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output\fR is a scalar reference, the compressed data will be stored +in \f(CW$$output\fR. +.PP +If the \f(CW$output\fR parameter is any other type, \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR::new will +return undef. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +\&\f(CW\*(C`OPTS\*(C'\fR is any combination of zero or more the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$output\fR parameter is a filehandle. If +specified, and the value is true, it will result in the \f(CW$output\fR being +closed once either the \f(CW\*(C`close\*(C'\fR method is called or the \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR +object is destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +Opens \f(CW$output\fR in append mode. +.Sp +The behaviour of this option is dependent on the type of \f(CW$output\fR. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW$output\fR is a buffer and \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data +will be append to the end of \f(CW$output\fR. Otherwise \f(CW$output\fR will be +cleared before any data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW$output\fR is a filename and \f(CW\*(C`Append\*(C'\fR is enabled, the file will be +opened in append mode. Otherwise the contents of the file, if any, will be +truncated before any compressed data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW$output\fR is a filehandle, the file pointer will be positioned to the +end of the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is written +to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.ie n .IP """BlockSize100K => number""" 5 +.el .IP "\f(CWBlockSize100K => number\fR" 5 +.IX Item "BlockSize100K => number" +Specify the number of 100K blocks bzip2 uses during compression. +.Sp +Valid values are from 1 to 9, where 9 is best compression. +.Sp +The default is 1. +.ie n .IP """WorkFactor => number""" 5 +.el .IP "\f(CWWorkFactor => number\fR" 5 +.IX Item "WorkFactor => number" +Specifies how much effort bzip2 should take before resorting to a slower +fallback compression algorithm. +.Sp +Valid values range from 0 to 250, where 0 means use the default value 30. +.Sp +The default is 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This is a placeholder option. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "print" +.IX Subsection "print" +Usage is +.PP +.Vb 2 +\& $z\->print($data) +\& print $z $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. This +has the same behaviour as the \f(CW\*(C`print\*(C'\fR built-in. +.PP +Returns true if successful. +.SS "printf" +.IX Subsection "printf" +Usage is +.PP +.Vb 2 +\& $z\->printf($format, $data) +\& printf $z $format, $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns true if successful. +.SS "syswrite" +.IX Subsection "syswrite" +Usage is +.PP +.Vb 3 +\& $z\->syswrite $data +\& $z\->syswrite $data, $length +\& $z\->syswrite $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "write" +.IX Subsection "write" +Usage is +.PP +.Vb 3 +\& $z\->write $data +\& $z\->write $data, $length +\& $z\->write $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "flush" +.IX Subsection "flush" +Usage is +.PP +.Vb 1 +\& $z\->flush; +.Ve +.PP +Flushes any pending compressed data to the output file/buffer. +.PP +\&\s-1TODO\s0 +.PP +Returns true on success. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the \f(CW\*(C`close\*(C'\fR method has been called. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the output file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Empty parts of the file/buffer will have \s-1NULL\s0 (0x00) bytes written to them. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +This method always returns \f(CW\*(C`undef\*(C'\fR when compressing. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Flushes any pending compressed data and then closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Compress::Bzip2 object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Compress::Bzip2 +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "newStream([\s-1OPTS\s0])" +.IX Subsection "newStream([OPTS])" +Usage is +.PP +.Vb 1 +\& $z\->newStream( [OPTS] ) +.Ve +.PP +Closes the current compressed data stream and starts a new one. +.PP +\&\s-1OPTS\s0 consists of any of the options that are available when creating +the \f(CW$z\fR object. +.PP +See the \*(L"Constructor Options\*(R" section for more details. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Compress::Bzip2 at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`bzip2\*(C'\fR and \f(CW$Bzip2Error\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +See IO::Compress::FAQ +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +The primary site for the bzip2 program is . +.PP +See the module Compress::Bzip2 +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ADeflate.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ADeflate.3 new file mode 100644 index 0000000000000000000000000000000000000000..1f9cef0154538b138dad40a5088ba3cddac7e80a --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ADeflate.3 @@ -0,0 +1,920 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::Deflate 3" +.TH IO::Compress::Deflate 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::Deflate \- Write RFC 1950 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& +\& my $status = deflate $input => $output [,OPTS] +\& or die "deflate failed: $DeflateError\en"; +\& +\& my $z = new IO::Compress::Deflate $output [,OPTS] +\& or die "deflate failed: $DeflateError\en"; +\& +\& $z\->print($string); +\& $z\->printf($format, $string); +\& $z\->write($string); +\& $z\->syswrite($string [, $length, $offset]); +\& $z\->flush(); +\& $z\->tell(); +\& $z\->eof(); +\& $z\->seek($position, $whence); +\& $z\->binmode(); +\& $z\->fileno(); +\& $z\->opened(); +\& $z\->autoflush(); +\& $z\->input_line_number(); +\& $z\->newStream( [OPTS] ); +\& +\& $z\->deflateParams(); +\& +\& $z\->close() ; +\& +\& $DeflateError ; +\& +\& # IO::File mode +\& +\& print $z $string; +\& printf $z $format, $string; +\& tell $z +\& eof $z +\& seek $z, $position, $whence +\& binmode $z +\& fileno $z +\& close $z ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows writing compressed +data to files or buffer as defined in \s-1RFC 1950.\s0 +.PP +For reading \s-1RFC 1950\s0 files/buffers, see the companion module +IO::Uncompress::Inflate. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`deflate\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" compression between buffers and/or files. For finer +control over the compression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& +\& deflate $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "deflate failed: $DeflateError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "deflate $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "deflate \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "deflate $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`deflate\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the uncompressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is compressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`deflate\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the compressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +compressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +compressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +compressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the compressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`deflate\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple files/buffers and +\&\f(CW$output_filename_or_reference\fR is a single +file/buffer the input files/buffers will be stored +in \f(CW$output_filename_or_reference\fR as a concatenated series of compressed data streams. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`deflate\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`deflate\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`deflate\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeIn => 0|1""" 5 +.el .IP "\f(CWBinModeIn => 0|1\fR" 5 +.IX Item "BinModeIn => 0|1" +This option is now a no-op. All files will be read in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +compressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any compressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all compressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any compressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all compressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any compressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any compressed data is output. +.Sp +Defaults to 0. +.RE +.SS "Examples" +.IX Subsection "Examples" +Here are a few example that show the capabilities of the module. +.PP +\fIStreaming\fR +.IX Subsection "Streaming" +.PP +This very simple command line example demonstrates the streaming capabilities of the module. +The code reads data from \s-1STDIN,\s0 compresses it, and writes the compressed data to \s-1STDOUT.\s0 +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Deflate=deflate \-e \*(Aqdeflate \e*STDIN => \e*STDOUT\*(Aq >output.1950 +.Ve +.PP +The special filename \*(L"\-\*(R" can be used as a standin for both \f(CW\*(C`\e*STDIN\*(C'\fR and \f(CW\*(C`\e*STDOUT\*(C'\fR, +so the above can be rewritten as +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Deflate=deflate \-e \*(Aqdeflate "\-" => "\-"\*(Aq >output.1950 +.Ve +.PP +\fICompressing a file from the filesystem\fR +.IX Subsection "Compressing a file from the filesystem" +.PP +To read the contents of the file \f(CW\*(C`file1.txt\*(C'\fR and write the compressed +data to the file \f(CW\*(C`file1.txt.1950\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& +\& my $input = "file1.txt"; +\& deflate $input => "$input.1950" +\& or die "deflate failed: $DeflateError\en"; +.Ve +.PP +\fIReading from a Filehandle and writing to an in-memory buffer\fR +.IX Subsection "Reading from a Filehandle and writing to an in-memory buffer" +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +compressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "deflate failed: $DeflateError\en"; +.Ve +.PP +\fICompressing multiple files\fR +.IX Subsection "Compressing multiple files" +.PP +To compress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt\*(R" +and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& +\& deflate \*(Aq\*(Aq => \*(Aq<*.1950>\*(Aq +\& or die "deflate failed: $DeflateError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Deflate qw(deflate $DeflateError) ; +\& +\& for my $input ( glob "/my/home/*.txt" ) +\& { +\& my $output = "$input.1950" ; +\& deflate $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $DeflateError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for \f(CW\*(C`IO::Compress::Deflate\*(C'\fR is shown below +.PP +.Vb 2 +\& my $z = new IO::Compress::Deflate $output [,OPTS] +\& or die "IO::Compress::Deflate failed: $DeflateError\en"; +.Ve +.PP +It returns an \f(CW\*(C`IO::Compress::Deflate\*(C'\fR object on success and undef on failure. +The variable \f(CW$DeflateError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Compress::Deflate can be used exactly like an IO::File filehandle. +This means that all normal output file operations can be carried out +with \f(CW$z\fR. +For example, to write to a compressed file/buffer you can use either of +these forms +.PP +.Vb 2 +\& $z\->print("hello world\en"); +\& print $z "hello world\en"; +.Ve +.PP +The mandatory parameter \f(CW$output\fR is used to control the destination +of the compressed data. This parameter can take one of these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output\fR parameter is a simple scalar, it is assumed to be a +filename. This file will be opened for writing and the compressed data +will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output\fR parameter is a filehandle, the compressed data will be +written to it. +The string '\-' can be used as an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output\fR is a scalar reference, the compressed data will be stored +in \f(CW$$output\fR. +.PP +If the \f(CW$output\fR parameter is any other type, \f(CW\*(C`IO::Compress::Deflate\*(C'\fR::new will +return undef. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +\&\f(CW\*(C`OPTS\*(C'\fR is any combination of zero or more the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$output\fR parameter is a filehandle. If +specified, and the value is true, it will result in the \f(CW$output\fR being +closed once either the \f(CW\*(C`close\*(C'\fR method is called or the \f(CW\*(C`IO::Compress::Deflate\*(C'\fR +object is destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +Opens \f(CW$output\fR in append mode. +.Sp +The behaviour of this option is dependent on the type of \f(CW$output\fR. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW$output\fR is a buffer and \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data +will be append to the end of \f(CW$output\fR. Otherwise \f(CW$output\fR will be +cleared before any data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW$output\fR is a filename and \f(CW\*(C`Append\*(C'\fR is enabled, the file will be +opened in append mode. Otherwise the contents of the file, if any, will be +truncated before any compressed data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW$output\fR is a filehandle, the file pointer will be positioned to the +end of the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is written +to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.ie n .IP """Merge => 0|1""" 5 +.el .IP "\f(CWMerge => 0|1\fR" 5 +.IX Item "Merge => 0|1" +This option is used to compress input data and append it to an existing +compressed data stream in \f(CW$output\fR. The end result is a single compressed +data stream stored in \f(CW$output\fR. +.Sp +It is a fatal error to attempt to use this option when \f(CW$output\fR is not an +\&\s-1RFC 1950\s0 data stream. +.Sp +There are a number of other limitations with the \f(CW\*(C`Merge\*(C'\fR option: +.RS 5 +.IP "1." 5 +This module needs to have been built with zlib 1.2.1 or better to work. A +fatal error will be thrown if \f(CW\*(C`Merge\*(C'\fR is used with an older version of +zlib. +.IP "2." 5 +If \f(CW$output\fR is a file or a filehandle, it must be seekable. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.IP "\-Level" 5 +.IX Item "-Level" +Defines the compression level used by zlib. The value should either be +a number between 0 and 9 (0 means no compression and 9 is maximum +compression), or one of the symbolic constants defined below. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.Sp +The default is Z_DEFAULT_COMPRESSION. +.Sp +Note, these constants are not imported by \f(CW\*(C`IO::Compress::Deflate\*(C'\fR by default. +.Sp +.Vb 3 +\& use IO::Compress::Deflate qw(:strategy); +\& use IO::Compress::Deflate qw(:constants); +\& use IO::Compress::Deflate qw(:all); +.Ve +.IP "\-Strategy" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. Use one of the symbolic +constants defined below. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.Sp +The default is Z_DEFAULT_STRATEGY. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This is a placeholder option. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "print" +.IX Subsection "print" +Usage is +.PP +.Vb 2 +\& $z\->print($data) +\& print $z $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. This +has the same behaviour as the \f(CW\*(C`print\*(C'\fR built-in. +.PP +Returns true if successful. +.SS "printf" +.IX Subsection "printf" +Usage is +.PP +.Vb 2 +\& $z\->printf($format, $data) +\& printf $z $format, $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns true if successful. +.SS "syswrite" +.IX Subsection "syswrite" +Usage is +.PP +.Vb 3 +\& $z\->syswrite $data +\& $z\->syswrite $data, $length +\& $z\->syswrite $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "write" +.IX Subsection "write" +Usage is +.PP +.Vb 3 +\& $z\->write $data +\& $z\->write $data, $length +\& $z\->write $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "flush" +.IX Subsection "flush" +Usage is +.PP +.Vb 2 +\& $z\->flush; +\& $z\->flush($flush_type); +.Ve +.PP +Flushes any pending compressed data to the output file/buffer. +.PP +This method takes an optional parameter, \f(CW$flush_type\fR, that controls +how the flushing will be carried out. By default the \f(CW$flush_type\fR +used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are +\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is +strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if +you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR +can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR +documentation for details. +.PP +Returns true on success. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the \f(CW\*(C`close\*(C'\fR method has been called. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the output file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Empty parts of the file/buffer will have \s-1NULL\s0 (0x00) bytes written to them. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +This method always returns \f(CW\*(C`undef\*(C'\fR when compressing. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Flushes any pending compressed data and then closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Compress::Deflate object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Compress::Deflate +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "newStream([\s-1OPTS\s0])" +.IX Subsection "newStream([OPTS])" +Usage is +.PP +.Vb 1 +\& $z\->newStream( [OPTS] ) +.Ve +.PP +Closes the current compressed data stream and starts a new one. +.PP +\&\s-1OPTS\s0 consists of any of the options that are available when creating +the \f(CW$z\fR object. +.PP +See the \*(L"Constructor Options\*(R" section for more details. +.SS "deflateParams" +.IX Subsection "deflateParams" +Usage is +.PP +.Vb 1 +\& $z\->deflateParams +.Ve +.PP +\&\s-1TODO\s0 +.SH "Importing" +.IX Header "Importing" +A number of symbolic constants are required by some methods in +\&\f(CW\*(C`IO::Compress::Deflate\*(C'\fR. None are imported by default. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`deflate\*(C'\fR, \f(CW$DeflateError\fR and all symbolic +constants that can be used by \f(CW\*(C`IO::Compress::Deflate\*(C'\fR. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Deflate qw(deflate $DeflateError :constants) ; +.Ve +.IP ":constants" 5 +.IX Item ":constants" +Import all symbolic constants. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Deflate qw(:flush :level :strategy) ; +.Ve +.IP ":flush" 5 +.IX Item ":flush" +These symbolic constants are used by the \f(CW\*(C`flush\*(C'\fR method. +.Sp +.Vb 6 +\& Z_NO_FLUSH +\& Z_PARTIAL_FLUSH +\& Z_SYNC_FLUSH +\& Z_FULL_FLUSH +\& Z_FINISH +\& Z_BLOCK +.Ve +.IP ":level" 5 +.IX Item ":level" +These symbolic constants are used by the \f(CW\*(C`Level\*(C'\fR option in the constructor. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.IP ":strategy" 5 +.IX Item ":strategy" +These symbolic constants are used by the \f(CW\*(C`Strategy\*(C'\fR option in the constructor. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +See IO::Compress::FAQ +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AFAQ.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AFAQ.3 new file mode 100644 index 0000000000000000000000000000000000000000..6f4a3d79c24d407a4fb20ddb100216aca9c4e704 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AFAQ.3 @@ -0,0 +1,846 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::FAQ 3" +.TH IO::Compress::FAQ 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::FAQ \-\- Frequently Asked Questions about IO::Compress +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Common questions answered. +.SH "GENERAL" +.IX Header "GENERAL" +.SS "Compatibility with Unix compress/uncompress." +.IX Subsection "Compatibility with Unix compress/uncompress." +Although \f(CW\*(C`Compress::Zlib\*(C'\fR has a pair of functions called \f(CW\*(C`compress\*(C'\fR and +\&\f(CW\*(C`uncompress\*(C'\fR, they are \fInot\fR related to the Unix programs of the same +name. The \f(CW\*(C`Compress::Zlib\*(C'\fR module is not compatible with Unix +\&\f(CW\*(C`compress\*(C'\fR. +.PP +If you have the \f(CW\*(C`uncompress\*(C'\fR program available, you can use this to read +compressed files +.PP +.Vb 4 +\& open F, "uncompress \-c $filename |"; +\& while () +\& { +\& ... +.Ve +.PP +Alternatively, if you have the \f(CW\*(C`gunzip\*(C'\fR program available, you can use +this to read compressed files +.PP +.Vb 4 +\& open F, "gunzip \-c $filename |"; +\& while () +\& { +\& ... +.Ve +.PP +and this to write compress files, if you have the \f(CW\*(C`compress\*(C'\fR program +available +.PP +.Vb 4 +\& open F, "| compress \-c $filename "; +\& print F "data"; +\& ... +\& close F ; +.Ve +.SS "Accessing .tar.Z files" +.IX Subsection "Accessing .tar.Z files" +The \f(CW\*(C`Archive::Tar\*(C'\fR module can optionally use \f(CW\*(C`Compress::Zlib\*(C'\fR (via the +\&\f(CW\*(C`IO::Zlib\*(C'\fR module) to access tar files that have been compressed with +\&\f(CW\*(C`gzip\*(C'\fR. Unfortunately tar files compressed with the Unix \f(CW\*(C`compress\*(C'\fR +utility cannot be read by \f(CW\*(C`Compress::Zlib\*(C'\fR and so cannot be directly +accessed by \f(CW\*(C`Archive::Tar\*(C'\fR. +.PP +If the \f(CW\*(C`uncompress\*(C'\fR or \f(CW\*(C`gunzip\*(C'\fR programs are available, you can use one +of these workarounds to read \f(CW\*(C`.tar.Z\*(C'\fR files from \f(CW\*(C`Archive::Tar\*(C'\fR +.PP +Firstly with \f(CW\*(C`uncompress\*(C'\fR +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& +\& open F, "uncompress \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.PP +and this with \f(CW\*(C`gunzip\*(C'\fR +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& +\& open F, "gunzip \-c $filename |"; +\& my $tar = Archive::Tar\->new(*F); +\& ... +.Ve +.PP +Similarly, if the \f(CW\*(C`compress\*(C'\fR program is available, you can use this to +write a \f(CW\*(C`.tar.Z\*(C'\fR file +.PP +.Vb 4 +\& use strict; +\& use warnings; +\& use Archive::Tar; +\& use IO::File; +\& +\& my $fh = new IO::File "| compress \-c >$filename"; +\& my $tar = Archive::Tar\->new(); +\& ... +\& $tar\->write($fh); +\& $fh\->close ; +.Ve +.SS "How do I recompress using a different compression?" +.IX Subsection "How do I recompress using a different compression?" +This is easier that you might expect if you realise that all the +\&\f(CW\*(C`IO::Compress::*\*(C'\fR objects are derived from \f(CW\*(C`IO::File\*(C'\fR and that all the +\&\f(CW\*(C`IO::Uncompress::*\*(C'\fR modules can read from an \f(CW\*(C`IO::File\*(C'\fR filehandle. +.PP +So, for example, say you have a file compressed with gzip that you want to +recompress with bzip2. Here is all that is needed to carry out the +recompression. +.PP +.Vb 2 +\& use IO::Uncompress::Gunzip \*(Aq:all\*(Aq; +\& use IO::Compress::Bzip2 \*(Aq:all\*(Aq; +\& +\& my $gzipFile = "somefile.gz"; +\& my $bzipFile = "somefile.bz2"; +\& +\& my $gunzip = new IO::Uncompress::Gunzip $gzipFile +\& or die "Cannot gunzip $gzipFile: $GunzipError\en" ; +\& +\& bzip2 $gunzip => $bzipFile +\& or die "Cannot bzip2 to $bzipFile: $Bzip2Error\en" ; +.Ve +.PP +Note, there is a limitation of this technique. Some compression file +formats store extra information along with the compressed data payload. For +example, gzip can optionally store the original filename and Zip stores a +lot of information about the original file. If the original compressed file +contains any of this extra information, it will not be transferred to the +new compressed file using the technique above. +.SH "ZIP" +.IX Header "ZIP" +.SS "What Compression Types do IO::Compress::Zip & IO::Uncompress::Unzip support?" +.IX Subsection "What Compression Types do IO::Compress::Zip & IO::Uncompress::Unzip support?" +The following compression formats are supported by \f(CW\*(C`IO::Compress::Zip\*(C'\fR and +\&\f(CW\*(C`IO::Uncompress::Unzip\*(C'\fR +.IP "\(bu" 5 +Store (method 0) +.Sp +No compression at all. +.IP "\(bu" 5 +Deflate (method 8) +.Sp +This is the default compression used when creating a zip file with +\&\f(CW\*(C`IO::Compress::Zip\*(C'\fR. +.IP "\(bu" 5 +Bzip2 (method 12) +.Sp +Only supported if the \f(CW\*(C`IO\-Compress\-Bzip2\*(C'\fR module is installed. +.IP "\(bu" 5 +Lzma (method 14) +.Sp +Only supported if the \f(CW\*(C`IO\-Compress\-Lzma\*(C'\fR module is installed. +.SS "Can I Read/Write Zip files larger the 4 Gig?" +.IX Subsection "Can I Read/Write Zip files larger the 4 Gig?" +Yes, both the \f(CW\*(C`IO\-Compress\-Zip\*(C'\fR and \f(CW\*(C`IO\-Uncompress\-Unzip\*(C'\fR modules +support the zip feature called \fIZip64\fR. That allows them to read/write +files/buffers larger than 4Gig. +.PP +If you are creating a Zip file using the one-shot interface, and any of the +input files is greater than 4Gig, a zip64 complaint zip file will be +created. +.PP +.Vb 1 +\& zip "really\-large\-file" => "my.zip"; +.Ve +.PP +Similarly with the one-shot interface, if the input is a buffer larger than +4 Gig, a zip64 complaint zip file will be created. +.PP +.Vb 1 +\& zip \e$really_large_buffer => "my.zip"; +.Ve +.PP +The one-shot interface allows you to force the creation of a zip64 zip file +by including the \f(CW\*(C`Zip64\*(C'\fR option. +.PP +.Vb 1 +\& zip $filehandle => "my.zip", Zip64 => 1; +.Ve +.PP +If you want to create a zip64 zip file with the \s-1OO\s0 interface you must +specify the \f(CW\*(C`Zip64\*(C'\fR option. +.PP +.Vb 1 +\& my $zip = new IO::Compress::Zip "whatever", Zip64 => 1; +.Ve +.PP +When uncompressing with \f(CW\*(C`IO\-Uncompress\-Unzip\*(C'\fR, it will automatically +detect if the zip file is zip64. +.PP +If you intend to manipulate the Zip64 zip files created with +\&\f(CW\*(C`IO\-Compress\-Zip\*(C'\fR using an external zip/unzip, make sure that it supports +Zip64. +.PP +In particular, if you are using Info-Zip you need to have zip version 3.x +or better to update a Zip64 archive and unzip version 6.x to read a zip64 +archive. +.SS "Can I write more that 64K entries is a Zip files?" +.IX Subsection "Can I write more that 64K entries is a Zip files?" +Yes. Zip64 allows this. See previous question. +.SS "Zip Resources" +.IX Subsection "Zip Resources" +The primary reference for zip files is the \*(L"appnote\*(R" document available at + +.PP +An alternatively is the Info-Zip appnote. This is available from + +.SH "GZIP" +.IX Header "GZIP" +.SS "Gzip Resources" +.IX Subsection "Gzip Resources" +The primary reference for gzip files is \s-1RFC 1952\s0 + +.PP +The primary site for gzip is . +.SS "Dealing with concatenated gzip files" +.IX Subsection "Dealing with concatenated gzip files" +If the gunzip program encounters a file containing multiple gzip files +concatenated together it will automatically uncompress them all. +The example below illustrates this behaviour +.PP +.Vb 5 +\& $ echo abc | gzip \-c >x.gz +\& $ echo def | gzip \-c >>x.gz +\& $ gunzip \-c x.gz +\& abc +\& def +.Ve +.PP +By default \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR will \fInot\fR behave like the gunzip +program. It will only uncompress the first gzip data stream in the file, as +shown below +.PP +.Vb 2 +\& $ perl \-MIO::Uncompress::Gunzip=:all \-e \*(Aqgunzip "x.gz" => \e*STDOUT\*(Aq +\& abc +.Ve +.PP +To force \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR to uncompress all the gzip data streams, +include the \f(CW\*(C`MultiStream\*(C'\fR option, as shown below +.PP +.Vb 3 +\& $ perl \-MIO::Uncompress::Gunzip=:all \-e \*(Aqgunzip "x.gz" => \e*STDOUT, MultiStream => 1\*(Aq +\& abc +\& def +.Ve +.SS "Reading bgzip files with IO::Uncompress::Gunzip" +.IX Subsection "Reading bgzip files with IO::Uncompress::Gunzip" +A \f(CW\*(C`bgzip\*(C'\fR file consists of a series of valid gzip-compliant data streams +concatenated together. To read a file created by \f(CW\*(C`bgzip\*(C'\fR with +\&\f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR use the \f(CW\*(C`MultiStream\*(C'\fR option as shown in the +previous section. +.PP +See the section titled \*(L"The \s-1BGZF\s0 compression format\*(R" in + for a definition of +\&\f(CW\*(C`bgzip\*(C'\fR. +.SH "ZLIB" +.IX Header "ZLIB" +.SS "Zlib Resources" +.IX Subsection "Zlib Resources" +The primary site for the \fIzlib\fR compression library is +. +.SH "Bzip2" +.IX Header "Bzip2" +.SS "Bzip2 Resources" +.IX Subsection "Bzip2 Resources" +The primary site for bzip2 is . +.SS "Dealing with Concatenated bzip2 files" +.IX Subsection "Dealing with Concatenated bzip2 files" +If the bunzip2 program encounters a file containing multiple bzip2 files +concatenated together it will automatically uncompress them all. +The example below illustrates this behaviour +.PP +.Vb 5 +\& $ echo abc | bzip2 \-c >x.bz2 +\& $ echo def | bzip2 \-c >>x.bz2 +\& $ bunzip2 \-c x.bz2 +\& abc +\& def +.Ve +.PP +By default \f(CW\*(C`IO::Uncompress::Bunzip2\*(C'\fR will \fInot\fR behave like the bunzip2 +program. It will only uncompress the first bunzip2 data stream in the file, as +shown below +.PP +.Vb 2 +\& $ perl \-MIO::Uncompress::Bunzip2=:all \-e \*(Aqbunzip2 "x.bz2" => \e*STDOUT\*(Aq +\& abc +.Ve +.PP +To force \f(CW\*(C`IO::Uncompress::Bunzip2\*(C'\fR to uncompress all the bzip2 data streams, +include the \f(CW\*(C`MultiStream\*(C'\fR option, as shown below +.PP +.Vb 3 +\& $ perl \-MIO::Uncompress::Bunzip2=:all \-e \*(Aqbunzip2 "x.bz2" => \e*STDOUT, MultiStream => 1\*(Aq +\& abc +\& def +.Ve +.SS "Interoperating with Pbzip2" +.IX Subsection "Interoperating with Pbzip2" +Pbzip2 () is a parallel implementation of +bzip2. The output from pbzip2 consists of a series of concatenated bzip2 +data streams. +.PP +By default \f(CW\*(C`IO::Uncompress::Bzip2\*(C'\fR will only uncompress the first bzip2 +data stream in a pbzip2 file. To uncompress the complete pbzip2 file you +must include the \f(CW\*(C`MultiStream\*(C'\fR option, like this. +.PP +.Vb 2 +\& bunzip2 $input => \e$output, MultiStream => 1 +\& or die "bunzip2 failed: $Bunzip2Error\en"; +.Ve +.SH "HTTP & NETWORK" +.IX Header "HTTP & NETWORK" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +Below is a mod_perl Apache compression module, called \f(CW\*(C`Apache::GZip\*(C'\fR, +taken from + +.PP +.Vb 2 +\& package Apache::GZip; +\& #File: Apache::GZip.pm +\& +\& use strict vars; +\& use Apache::Constants \*(Aq:common\*(Aq; +\& use Compress::Zlib; +\& use IO::File; +\& use constant GZIP_MAGIC => 0x1f8b; +\& use constant OS_MAGIC => 0x03; +\& +\& sub handler { +\& my $r = shift; +\& my ($fh,$gz); +\& my $file = $r\->filename; +\& return DECLINED unless $fh=IO::File\->new($file); +\& $r\->header_out(\*(AqContent\-Encoding\*(Aq=>\*(Aqgzip\*(Aq); +\& $r\->send_http_header; +\& return OK if $r\->header_only; +\& +\& tie *STDOUT,\*(AqApache::GZip\*(Aq,$r; +\& print($_) while <$fh>; +\& untie *STDOUT; +\& return OK; +\& } +\& +\& sub TIEHANDLE { +\& my($class,$r) = @_; +\& # initialize a deflation stream +\& my $d = deflateInit(\-WindowBits=>\-MAX_WBITS()) || return undef; +\& +\& # gzip header \-\- don\*(Aqt ask how I found out +\& $r\->print(pack("nccVcc",GZIP_MAGIC,Z_DEFLATED,0,time(),0,OS_MAGIC)); +\& +\& return bless { r => $r, +\& crc => crc32(undef), +\& d => $d, +\& l => 0 +\& },$class; +\& } +\& +\& sub PRINT { +\& my $self = shift; +\& foreach (@_) { +\& # deflate the data +\& my $data = $self\->{d}\->deflate($_); +\& $self\->{r}\->print($data); +\& # keep track of its length and crc +\& $self\->{l} += length($_); +\& $self\->{crc} = crc32($_,$self\->{crc}); +\& } +\& } +\& +\& sub DESTROY { +\& my $self = shift; +\& +\& # flush the output buffers +\& my $data = $self\->{d}\->flush; +\& $self\->{r}\->print($data); +\& +\& # print the CRC and the total length (uncompressed) +\& $self\->{r}\->print(pack("LL",@{$self}{qw/crc l/})); +\& } +\& +\& 1; +.Ve +.PP +Here's the Apache configuration entry you'll need to make use of it. Once +set it will result in everything in the /compressed directory will be +compressed automagically. +.PP +.Vb 4 +\& +\& SetHandler perl\-script +\& PerlHandler Apache::GZip +\& +.Ve +.PP +Although at first sight there seems to be quite a lot going on in +\&\f(CW\*(C`Apache::GZip\*(C'\fR, you could sum up what the code was doing as follows \*(-- +read the contents of the file in \f(CW\*(C`$r\->filename\*(C'\fR, compress it and write +the compressed data to standard output. That's all. +.PP +This code has to jump through a few hoops to achieve this because +.IP "1." 4 +The gzip support in \f(CW\*(C`Compress::Zlib\*(C'\fR version 1.x can only work with a real +filesystem filehandle. The filehandles used by Apache modules are not +associated with the filesystem. +.IP "2." 4 +That means all the gzip support has to be done by hand \- in this case by +creating a tied filehandle to deal with creating the gzip header and +trailer. +.PP +\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR doesn't have that filehandle limitation (this was one +of the reasons for writing it in the first place). So if +\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR is used instead of \f(CW\*(C`Compress::Zlib\*(C'\fR the whole tied +filehandle code can be removed. Here is the rewritten code. +.PP +.Vb 1 +\& package Apache::GZip; +\& +\& use strict vars; +\& use Apache::Constants \*(Aq:common\*(Aq; +\& use IO::Compress::Gzip; +\& use IO::File; +\& +\& sub handler { +\& my $r = shift; +\& my ($fh,$gz); +\& my $file = $r\->filename; +\& return DECLINED unless $fh=IO::File\->new($file); +\& $r\->header_out(\*(AqContent\-Encoding\*(Aq=>\*(Aqgzip\*(Aq); +\& $r\->send_http_header; +\& return OK if $r\->header_only; +\& +\& my $gz = new IO::Compress::Gzip \*(Aq\-\*(Aq, Minimal => 1 +\& or return DECLINED ; +\& +\& print $gz $_ while <$fh>; +\& +\& return OK; +\& } +.Ve +.PP +or even more succinctly, like this, using a one-shot gzip +.PP +.Vb 1 +\& package Apache::GZip; +\& +\& use strict vars; +\& use Apache::Constants \*(Aq:common\*(Aq; +\& use IO::Compress::Gzip qw(gzip); +\& +\& sub handler { +\& my $r = shift; +\& $r\->header_out(\*(AqContent\-Encoding\*(Aq=>\*(Aqgzip\*(Aq); +\& $r\->send_http_header; +\& return OK if $r\->header_only; +\& +\& gzip $r\->filename => \*(Aq\-\*(Aq, Minimal => 1 +\& or return DECLINED ; +\& +\& return OK; +\& } +\& +\& 1; +.Ve +.PP +The use of one-shot \f(CW\*(C`gzip\*(C'\fR above just reads from \f(CW\*(C`$r\->filename\*(C'\fR and +writes the compressed data to standard output. +.PP +Note the use of the \f(CW\*(C`Minimal\*(C'\fR option in the code above. When using gzip +for Content-Encoding you should \fIalways\fR use this option. In the example +above it will prevent the filename being included in the gzip header and +make the size of the gzip data stream a slight bit smaller. +.SS "Compressed files and Net::FTP" +.IX Subsection "Compressed files and Net::FTP" +The \f(CW\*(C`Net::FTP\*(C'\fR module provides two low-level methods called \f(CW\*(C`stor\*(C'\fR and +\&\f(CW\*(C`retr\*(C'\fR that both return filehandles. These filehandles can used with the +\&\f(CW\*(C`IO::Compress/Uncompress\*(C'\fR modules to compress or uncompress files read +from or written to an \s-1FTP\s0 Server on the fly, without having to create a +temporary file. +.PP +Firstly, here is code that uses \f(CW\*(C`retr\*(C'\fR to uncompressed a file as it is +read from the \s-1FTP\s0 Server. +.PP +.Vb 2 +\& use Net::FTP; +\& use IO::Uncompress::Gunzip qw(:all); +\& +\& my $ftp = new Net::FTP ... +\& +\& my $retr_fh = $ftp\->retr($compressed_filename); +\& gunzip $retr_fh => $outFilename, AutoClose => 1 +\& or die "Cannot uncompress \*(Aq$compressed_file\*(Aq: $GunzipError\en"; +.Ve +.PP +and this to compress a file as it is written to the \s-1FTP\s0 Server +.PP +.Vb 2 +\& use Net::FTP; +\& use IO::Compress::Gzip qw(:all); +\& +\& my $stor_fh = $ftp\->stor($filename); +\& gzip "filename" => $stor_fh, AutoClose => 1 +\& or die "Cannot compress \*(Aq$filename\*(Aq: $GzipError\en"; +.Ve +.SH "MISC" +.IX Header "MISC" +.ie n .SS "Using ""InputLength"" to uncompress data embedded in a larger file/buffer." +.el .SS "Using \f(CWInputLength\fP to uncompress data embedded in a larger file/buffer." +.IX Subsection "Using InputLength to uncompress data embedded in a larger file/buffer." +A fairly common use-case is where compressed data is embedded in a larger +file/buffer and you want to read both. +.PP +As an example consider the structure of a zip file. This is a well-defined +file format that mixes both compressed and uncompressed sections of data in +a single file. +.PP +For the purposes of this discussion you can think of a zip file as sequence +of compressed data streams, each of which is prefixed by an uncompressed +local header. The local header contains information about the compressed +data stream, including the name of the compressed file and, in particular, +the length of the compressed data stream. +.PP +To illustrate how to use \f(CW\*(C`InputLength\*(C'\fR here is a script that walks a zip +file and prints out how many lines are in each compressed file (if you +intend write code to walking through a zip file for real see +\&\*(L"Walking through a zip file\*(R" in IO::Uncompress::Unzip ). Also, although +this example uses the zlib-based compression, the technique can be used by +the other \f(CW\*(C`IO::Uncompress::*\*(C'\fR modules. +.PP +.Vb 2 +\& use strict; +\& use warnings; +\& +\& use IO::File; +\& use IO::Uncompress::RawInflate qw(:all); +\& +\& use constant ZIP_LOCAL_HDR_SIG => 0x04034b50; +\& use constant ZIP_LOCAL_HDR_LENGTH => 30; +\& +\& my $file = $ARGV[0] ; +\& +\& my $fh = new IO::File "<$file" +\& or die "Cannot open \*(Aq$file\*(Aq: $!\en"; +\& +\& while (1) +\& { +\& my $sig; +\& my $buffer; +\& +\& my $x ; +\& ($x = $fh\->read($buffer, ZIP_LOCAL_HDR_LENGTH)) == ZIP_LOCAL_HDR_LENGTH +\& or die "Truncated file: $!\en"; +\& +\& my $signature = unpack ("V", substr($buffer, 0, 4)); +\& +\& last unless $signature == ZIP_LOCAL_HDR_SIG; +\& +\& # Read Local Header +\& my $gpFlag = unpack ("v", substr($buffer, 6, 2)); +\& my $compressedMethod = unpack ("v", substr($buffer, 8, 2)); +\& my $compressedLength = unpack ("V", substr($buffer, 18, 4)); +\& my $uncompressedLength = unpack ("V", substr($buffer, 22, 4)); +\& my $filename_length = unpack ("v", substr($buffer, 26, 2)); +\& my $extra_length = unpack ("v", substr($buffer, 28, 2)); +\& +\& my $filename ; +\& $fh\->read($filename, $filename_length) == $filename_length +\& or die "Truncated file\en"; +\& +\& $fh\->read($buffer, $extra_length) == $extra_length +\& or die "Truncated file\en"; +\& +\& if ($compressedMethod != 8 && $compressedMethod != 0) +\& { +\& warn "Skipping file \*(Aq$filename\*(Aq \- not deflated $compressedMethod\en"; +\& $fh\->read($buffer, $compressedLength) == $compressedLength +\& or die "Truncated file\en"; +\& next; +\& } +\& +\& if ($compressedMethod == 0 && $gpFlag & 8 == 8) +\& { +\& die "Streamed Stored not supported for \*(Aq$filename\*(Aq\en"; +\& } +\& +\& next if $compressedLength == 0; +\& +\& # Done reading the Local Header +\& +\& my $inf = new IO::Uncompress::RawInflate $fh, +\& Transparent => 1, +\& InputLength => $compressedLength +\& or die "Cannot uncompress $file [$filename]: $RawInflateError\en" ; +\& +\& my $line_count = 0; +\& +\& while (<$inf>) +\& { +\& ++ $line_count; +\& } +\& +\& print "$filename: $line_count\en"; +\& } +.Ve +.PP +The majority of the code above is concerned with reading the zip local +header data. The code that I want to focus on is at the bottom. +.PP +.Vb 1 +\& while (1) { +\& +\& # read local zip header data +\& # get $filename +\& # get $compressedLength +\& +\& my $inf = new IO::Uncompress::RawInflate $fh, +\& Transparent => 1, +\& InputLength => $compressedLength +\& or die "Cannot uncompress $file [$filename]: $RawInflateError\en" ; +\& +\& my $line_count = 0; +\& +\& while (<$inf>) +\& { +\& ++ $line_count; +\& } +\& +\& print "$filename: $line_count\en"; +\& } +.Ve +.PP +The call to \f(CW\*(C`IO::Uncompress::RawInflate\*(C'\fR creates a new filehandle \f(CW$inf\fR +that can be used to read from the parent filehandle \f(CW$fh\fR, uncompressing +it as it goes. The use of the \f(CW\*(C`InputLength\*(C'\fR option will guarantee that +\&\fIat most\fR \f(CW$compressedLength\fR bytes of compressed data will be read from +the \f(CW$fh\fR filehandle (The only exception is for an error case like a +truncated file or a corrupt data stream). +.PP +This means that once RawInflate is finished \f(CW$fh\fR will be left at the +byte directly after the compressed data stream. +.PP +Now consider what the code looks like without \f(CW\*(C`InputLength\*(C'\fR +.PP +.Vb 1 +\& while (1) { +\& +\& # read local zip header data +\& # get $filename +\& # get $compressedLength +\& +\& # read all the compressed data into $data +\& read($fh, $data, $compressedLength); +\& +\& my $inf = new IO::Uncompress::RawInflate \e$data, +\& Transparent => 1, +\& or die "Cannot uncompress $file [$filename]: $RawInflateError\en" ; +\& +\& my $line_count = 0; +\& +\& while (<$inf>) +\& { +\& ++ $line_count; +\& } +\& +\& print "$filename: $line_count\en"; +\& } +.Ve +.PP +The difference here is the addition of the temporary variable \f(CW$data\fR. +This is used to store a copy of the compressed data while it is being +uncompressed. +.PP +If you know that \f(CW$compressedLength\fR isn't that big then using temporary +storage won't be a problem. But if \f(CW$compressedLength\fR is very large or +you are writing an application that other people will use, and so have no +idea how big \f(CW$compressedLength\fR will be, it could be an issue. +.PP +Using \f(CW\*(C`InputLength\*(C'\fR avoids the use of temporary storage and means the +application can cope with large compressed data streams. +.PP +One final point \*(-- obviously \f(CW\*(C`InputLength\*(C'\fR can only be used whenever you +know the length of the compressed data beforehand, like here with a zip +file. +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AGzip.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AGzip.3 new file mode 100644 index 0000000000000000000000000000000000000000..b9439dd11552373c59acb35c7f145e92262cdf60 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AGzip.3 @@ -0,0 +1,1107 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::Gzip 3" +.TH IO::Compress::Gzip 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::Gzip \- Write RFC 1952 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& +\& my $status = gzip $input => $output [,OPTS] +\& or die "gzip failed: $GzipError\en"; +\& +\& my $z = new IO::Compress::Gzip $output [,OPTS] +\& or die "gzip failed: $GzipError\en"; +\& +\& $z\->print($string); +\& $z\->printf($format, $string); +\& $z\->write($string); +\& $z\->syswrite($string [, $length, $offset]); +\& $z\->flush(); +\& $z\->tell(); +\& $z\->eof(); +\& $z\->seek($position, $whence); +\& $z\->binmode(); +\& $z\->fileno(); +\& $z\->opened(); +\& $z\->autoflush(); +\& $z\->input_line_number(); +\& $z\->newStream( [OPTS] ); +\& +\& $z\->deflateParams(); +\& +\& $z\->close() ; +\& +\& $GzipError ; +\& +\& # IO::File mode +\& +\& print $z $string; +\& printf $z $format, $string; +\& tell $z +\& eof $z +\& seek $z, $position, $whence +\& binmode $z +\& fileno $z +\& close $z ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows writing compressed +data to files or buffer as defined in \s-1RFC 1952.\s0 +.PP +All the gzip headers defined in \s-1RFC 1952\s0 can be created using +this module. +.PP +For reading \s-1RFC 1952\s0 files/buffers, see the companion module +IO::Uncompress::Gunzip. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`gzip\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" compression between buffers and/or files. For finer +control over the compression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& +\& gzip $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "gzip failed: $GzipError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "gzip $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "gzip \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "gzip $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`gzip\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the uncompressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is compressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gzip\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +In addition, if \f(CW$input_filename_or_reference\fR is a simple filename, +the default values for +the \f(CW\*(C`Name\*(C'\fR and \f(CW\*(C`Time\*(C'\fR options will be sourced from that file. +.PP +If you do not want to use these defaults they can be overridden by +explicitly setting the \f(CW\*(C`Name\*(C'\fR and \f(CW\*(C`Time\*(C'\fR options or by setting the +\&\f(CW\*(C`Minimal\*(C'\fR parameter. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the compressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +compressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +compressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +compressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the compressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gzip\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple files/buffers and +\&\f(CW$output_filename_or_reference\fR is a single +file/buffer the input files/buffers will be stored +in \f(CW$output_filename_or_reference\fR as a concatenated series of compressed data streams. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`gzip\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`gzip\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`gzip\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeIn => 0|1""" 5 +.el .IP "\f(CWBinModeIn => 0|1\fR" 5 +.IX Item "BinModeIn => 0|1" +This option is now a no-op. All files will be read in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +compressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any compressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all compressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any compressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all compressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any compressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any compressed data is output. +.Sp +Defaults to 0. +.RE +.SS "Examples" +.IX Subsection "Examples" +Here are a few example that show the capabilities of the module. +.PP +\fIStreaming\fR +.IX Subsection "Streaming" +.PP +This very simple command line example demonstrates the streaming capabilities of the module. +The code reads data from \s-1STDIN,\s0 compresses it, and writes the compressed data to \s-1STDOUT.\s0 +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Gzip=gzip \-e \*(Aqgzip \e*STDIN => \e*STDOUT\*(Aq >output.gz +.Ve +.PP +The special filename \*(L"\-\*(R" can be used as a standin for both \f(CW\*(C`\e*STDIN\*(C'\fR and \f(CW\*(C`\e*STDOUT\*(C'\fR, +so the above can be rewritten as +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Gzip=gzip \-e \*(Aqgzip "\-" => "\-"\*(Aq >output.gz +.Ve +.PP +\fICompressing a file from the filesystem\fR +.IX Subsection "Compressing a file from the filesystem" +.PP +To read the contents of the file \f(CW\*(C`file1.txt\*(C'\fR and write the compressed +data to the file \f(CW\*(C`file1.txt.gz\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& +\& my $input = "file1.txt"; +\& gzip $input => "$input.gz" +\& or die "gzip failed: $GzipError\en"; +.Ve +.PP +\fIReading from a Filehandle and writing to an in-memory buffer\fR +.IX Subsection "Reading from a Filehandle and writing to an in-memory buffer" +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +compressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "gzip failed: $GzipError\en"; +.Ve +.PP +\fICompressing multiple files\fR +.IX Subsection "Compressing multiple files" +.PP +To compress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt\*(R" +and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& +\& gzip \*(Aq\*(Aq => \*(Aq<*.gz>\*(Aq +\& or die "gzip failed: $GzipError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Gzip qw(gzip $GzipError) ; +\& +\& for my $input ( glob "/my/home/*.txt" ) +\& { +\& my $output = "$input.gz" ; +\& gzip $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $GzipError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for \f(CW\*(C`IO::Compress::Gzip\*(C'\fR is shown below +.PP +.Vb 2 +\& my $z = new IO::Compress::Gzip $output [,OPTS] +\& or die "IO::Compress::Gzip failed: $GzipError\en"; +.Ve +.PP +It returns an \f(CW\*(C`IO::Compress::Gzip\*(C'\fR object on success and undef on failure. +The variable \f(CW$GzipError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Compress::Gzip can be used exactly like an IO::File filehandle. +This means that all normal output file operations can be carried out +with \f(CW$z\fR. +For example, to write to a compressed file/buffer you can use either of +these forms +.PP +.Vb 2 +\& $z\->print("hello world\en"); +\& print $z "hello world\en"; +.Ve +.PP +The mandatory parameter \f(CW$output\fR is used to control the destination +of the compressed data. This parameter can take one of these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output\fR parameter is a simple scalar, it is assumed to be a +filename. This file will be opened for writing and the compressed data +will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output\fR parameter is a filehandle, the compressed data will be +written to it. +The string '\-' can be used as an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output\fR is a scalar reference, the compressed data will be stored +in \f(CW$$output\fR. +.PP +If the \f(CW$output\fR parameter is any other type, \f(CW\*(C`IO::Compress::Gzip\*(C'\fR::new will +return undef. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +\&\f(CW\*(C`OPTS\*(C'\fR is any combination of zero or more the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$output\fR parameter is a filehandle. If +specified, and the value is true, it will result in the \f(CW$output\fR being +closed once either the \f(CW\*(C`close\*(C'\fR method is called or the \f(CW\*(C`IO::Compress::Gzip\*(C'\fR +object is destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +Opens \f(CW$output\fR in append mode. +.Sp +The behaviour of this option is dependent on the type of \f(CW$output\fR. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW$output\fR is a buffer and \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data +will be append to the end of \f(CW$output\fR. Otherwise \f(CW$output\fR will be +cleared before any data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW$output\fR is a filename and \f(CW\*(C`Append\*(C'\fR is enabled, the file will be +opened in append mode. Otherwise the contents of the file, if any, will be +truncated before any compressed data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW$output\fR is a filehandle, the file pointer will be positioned to the +end of the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is written +to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.ie n .IP """Merge => 0|1""" 5 +.el .IP "\f(CWMerge => 0|1\fR" 5 +.IX Item "Merge => 0|1" +This option is used to compress input data and append it to an existing +compressed data stream in \f(CW$output\fR. The end result is a single compressed +data stream stored in \f(CW$output\fR. +.Sp +It is a fatal error to attempt to use this option when \f(CW$output\fR is not an +\&\s-1RFC 1952\s0 data stream. +.Sp +There are a number of other limitations with the \f(CW\*(C`Merge\*(C'\fR option: +.RS 5 +.IP "1." 5 +This module needs to have been built with zlib 1.2.1 or better to work. A +fatal error will be thrown if \f(CW\*(C`Merge\*(C'\fR is used with an older version of +zlib. +.IP "2." 5 +If \f(CW$output\fR is a file or a filehandle, it must be seekable. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.IP "\-Level" 5 +.IX Item "-Level" +Defines the compression level used by zlib. The value should either be +a number between 0 and 9 (0 means no compression and 9 is maximum +compression), or one of the symbolic constants defined below. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.Sp +The default is Z_DEFAULT_COMPRESSION. +.Sp +Note, these constants are not imported by \f(CW\*(C`IO::Compress::Gzip\*(C'\fR by default. +.Sp +.Vb 3 +\& use IO::Compress::Gzip qw(:strategy); +\& use IO::Compress::Gzip qw(:constants); +\& use IO::Compress::Gzip qw(:all); +.Ve +.IP "\-Strategy" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. Use one of the symbolic +constants defined below. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.Sp +The default is Z_DEFAULT_STRATEGY. +.ie n .IP """Minimal => 0|1""" 5 +.el .IP "\f(CWMinimal => 0|1\fR" 5 +.IX Item "Minimal => 0|1" +If specified, this option will force the creation of the smallest possible +compliant gzip header (which is exactly 10 bytes long) as defined in +\&\s-1RFC 1952.\s0 +.Sp +See the section titled \*(L"Compliance\*(R" in \s-1RFC 1952\s0 for a definition +of the values used for the fields in the gzip header. +.Sp +All other parameters that control the content of the gzip header will +be ignored if this parameter is set to 1. +.Sp +This parameter defaults to 0. +.ie n .IP """Comment => $comment""" 5 +.el .IP "\f(CWComment => $comment\fR" 5 +.IX Item "Comment => $comment" +Stores the contents of \f(CW$comment\fR in the \s-1COMMENT\s0 field in +the gzip header. +By default, no comment field is written to the gzip file. +.Sp +If the \f(CW\*(C`\-Strict\*(C'\fR option is enabled, the comment can only consist of \s-1ISO +8859\-1\s0 characters plus line feed. +.Sp +If the \f(CW\*(C`\-Strict\*(C'\fR option is disabled, the comment field can contain any +character except \s-1NULL.\s0 If any null characters are present, the field +will be truncated at the first \s-1NULL.\s0 +.ie n .IP """Name => $string""" 5 +.el .IP "\f(CWName => $string\fR" 5 +.IX Item "Name => $string" +Stores the contents of \f(CW$string\fR in the gzip \s-1NAME\s0 header field. If +\&\f(CW\*(C`Name\*(C'\fR is not specified, no gzip \s-1NAME\s0 field will be created. +.Sp +If the \f(CW\*(C`\-Strict\*(C'\fR option is enabled, \f(CW$string\fR can only consist of \s-1ISO +8859\-1\s0 characters. +.Sp +If \f(CW\*(C`\-Strict\*(C'\fR is disabled, then \f(CW$string\fR can contain any character +except \s-1NULL.\s0 If any null characters are present, the field will be +truncated at the first \s-1NULL.\s0 +.ie n .IP """Time => $number""" 5 +.el .IP "\f(CWTime => $number\fR" 5 +.IX Item "Time => $number" +Sets the \s-1MTIME\s0 field in the gzip header to \f(CW$number\fR. +.Sp +This field defaults to the time the \f(CW\*(C`IO::Compress::Gzip\*(C'\fR object was created +if this option is not specified. +.ie n .IP """TextFlag => 0|1""" 5 +.el .IP "\f(CWTextFlag => 0|1\fR" 5 +.IX Item "TextFlag => 0|1" +This parameter controls the setting of the \s-1FLG.FTEXT\s0 bit in the gzip +header. It is used to signal that the data stored in the gzip file/buffer +is probably text. +.Sp +The default is 0. +.ie n .IP """HeaderCRC => 0|1""" 5 +.el .IP "\f(CWHeaderCRC => 0|1\fR" 5 +.IX Item "HeaderCRC => 0|1" +When true this parameter will set the \s-1FLG.FHCRC\s0 bit to 1 in the gzip header +and set the \s-1CRC16\s0 header field to the \s-1CRC\s0 of the complete gzip header +except the \s-1CRC16\s0 field itself. +.Sp +\&\fBNote\fR that gzip files created with the \f(CW\*(C`HeaderCRC\*(C'\fR flag set to 1 cannot +be read by most, if not all, of the standard gunzip utilities, most +notably gzip version 1.2.4. You should therefore avoid using this option if +you want to maximize the portability of your gzip files. +.Sp +This parameter defaults to 0. +.ie n .IP """OS_Code => $value""" 5 +.el .IP "\f(CWOS_Code => $value\fR" 5 +.IX Item "OS_Code => $value" +Stores \f(CW$value\fR in the gzip \s-1OS\s0 header field. A number between 0 and 255 is +valid. +.Sp +If not specified, this parameter defaults to the \s-1OS\s0 code of the Operating +System this module was built on. The value 3 is used as a catch-all for all +Unix variants and unknown Operating Systems. +.ie n .IP """ExtraField => $data""" 5 +.el .IP "\f(CWExtraField => $data\fR" 5 +.IX Item "ExtraField => $data" +This parameter allows additional metadata to be stored in the ExtraField in +the gzip header. An \s-1RFC 1952\s0 compliant ExtraField consists of zero or more +subfields. Each subfield consists of a two byte header followed by the +subfield data. +.Sp +The list of subfields can be supplied in any of the following formats +.Sp +.Vb 12 +\& \-ExtraField => [$id1, $data1, +\& $id2, $data2, +\& ... +\& ] +\& \-ExtraField => [ [$id1 => $data1], +\& [$id2 => $data2], +\& ... +\& ] +\& \-ExtraField => { $id1 => $data1, +\& $id2 => $data2, +\& ... +\& } +.Ve +.Sp +Where \f(CW$id1\fR, \f(CW$id2\fR are two byte subfield \s-1ID\s0's. The second byte of +the \s-1ID\s0 cannot be 0, unless the \f(CW\*(C`Strict\*(C'\fR option has been disabled. +.Sp +If you use the hash syntax, you have no control over the order in which +the ExtraSubFields are stored, plus you cannot have SubFields with +duplicate \s-1ID.\s0 +.Sp +Alternatively the list of subfields can by supplied as a scalar, thus +.Sp +.Vb 1 +\& \-ExtraField => $rawdata +.Ve +.Sp +If you use the raw format, and the \f(CW\*(C`Strict\*(C'\fR option is enabled, +\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR will check that \f(CW$rawdata\fR consists of zero or more +conformant sub-fields. When \f(CW\*(C`Strict\*(C'\fR is disabled, \f(CW$rawdata\fR can +consist of any arbitrary byte stream. +.Sp +The maximum size of the Extra Field 65535 bytes. +.ie n .IP """ExtraFlags => $value""" 5 +.el .IP "\f(CWExtraFlags => $value\fR" 5 +.IX Item "ExtraFlags => $value" +Sets the \s-1XFL\s0 byte in the gzip header to \f(CW$value\fR. +.Sp +If this option is not present, the value stored in \s-1XFL\s0 field will be +determined by the setting of the \f(CW\*(C`Level\*(C'\fR option. +.Sp +If \f(CW\*(C`Level => Z_BEST_SPEED\*(C'\fR has been specified then \s-1XFL\s0 is set to 2. +If \f(CW\*(C`Level => Z_BEST_COMPRESSION\*(C'\fR has been specified then \s-1XFL\s0 is set to 4. +Otherwise \s-1XFL\s0 is set to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +\&\f(CW\*(C`Strict\*(C'\fR will optionally police the values supplied with other options +to ensure they are compliant with \s-1RFC1952.\s0 +.Sp +This option is enabled by default. +.Sp +If \f(CW\*(C`Strict\*(C'\fR is enabled the following behaviour will be policed: +.RS 5 +.IP "\(bu" 5 +The value supplied with the \f(CW\*(C`Name\*(C'\fR option can only contain \s-1ISO 8859\-1\s0 +characters. +.IP "\(bu" 5 +The value supplied with the \f(CW\*(C`Comment\*(C'\fR option can only contain \s-1ISO 8859\-1\s0 +characters plus line-feed. +.IP "\(bu" 5 +The values supplied with the \f(CW\*(C`\-Name\*(C'\fR and \f(CW\*(C`\-Comment\*(C'\fR options cannot +contain multiple embedded nulls. +.IP "\(bu" 5 +If an \f(CW\*(C`ExtraField\*(C'\fR option is specified and it is a simple scalar, +it must conform to the sub-field structure as defined in \s-1RFC 1952.\s0 +.IP "\(bu" 5 +If an \f(CW\*(C`ExtraField\*(C'\fR option is specified the second byte of the \s-1ID\s0 will be +checked in each subfield to ensure that it does not contain the reserved +value 0x00. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Strict\*(C'\fR is disabled the following behaviour will be policed: +.IP "\(bu" 5 +The value supplied with \f(CW\*(C`\-Name\*(C'\fR option can contain +any character except \s-1NULL.\s0 +.IP "\(bu" 5 +The value supplied with \f(CW\*(C`\-Comment\*(C'\fR option can contain any character +except \s-1NULL.\s0 +.IP "\(bu" 5 +The values supplied with the \f(CW\*(C`\-Name\*(C'\fR and \f(CW\*(C`\-Comment\*(C'\fR options can contain +multiple embedded nulls. The string written to the gzip header will +consist of the characters up to, but not including, the first embedded +\&\s-1NULL.\s0 +.IP "\(bu" 5 +If an \f(CW\*(C`ExtraField\*(C'\fR option is specified and it is a simple scalar, the +structure will not be checked. The only error is if the length is too big. +.IP "\(bu" 5 +The \s-1ID\s0 header in an \f(CW\*(C`ExtraField\*(C'\fR sub-field can consist of any two bytes. +.RE +.RS 5 +.RE +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "print" +.IX Subsection "print" +Usage is +.PP +.Vb 2 +\& $z\->print($data) +\& print $z $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. This +has the same behaviour as the \f(CW\*(C`print\*(C'\fR built-in. +.PP +Returns true if successful. +.SS "printf" +.IX Subsection "printf" +Usage is +.PP +.Vb 2 +\& $z\->printf($format, $data) +\& printf $z $format, $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns true if successful. +.SS "syswrite" +.IX Subsection "syswrite" +Usage is +.PP +.Vb 3 +\& $z\->syswrite $data +\& $z\->syswrite $data, $length +\& $z\->syswrite $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "write" +.IX Subsection "write" +Usage is +.PP +.Vb 3 +\& $z\->write $data +\& $z\->write $data, $length +\& $z\->write $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "flush" +.IX Subsection "flush" +Usage is +.PP +.Vb 2 +\& $z\->flush; +\& $z\->flush($flush_type); +.Ve +.PP +Flushes any pending compressed data to the output file/buffer. +.PP +This method takes an optional parameter, \f(CW$flush_type\fR, that controls +how the flushing will be carried out. By default the \f(CW$flush_type\fR +used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are +\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is +strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if +you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR +can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR +documentation for details. +.PP +Returns true on success. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the \f(CW\*(C`close\*(C'\fR method has been called. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the output file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Empty parts of the file/buffer will have \s-1NULL\s0 (0x00) bytes written to them. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +This method always returns \f(CW\*(C`undef\*(C'\fR when compressing. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Flushes any pending compressed data and then closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Compress::Gzip object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Compress::Gzip +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "newStream([\s-1OPTS\s0])" +.IX Subsection "newStream([OPTS])" +Usage is +.PP +.Vb 1 +\& $z\->newStream( [OPTS] ) +.Ve +.PP +Closes the current compressed data stream and starts a new one. +.PP +\&\s-1OPTS\s0 consists of any of the options that are available when creating +the \f(CW$z\fR object. +.PP +See the \*(L"Constructor Options\*(R" section for more details. +.SS "deflateParams" +.IX Subsection "deflateParams" +Usage is +.PP +.Vb 1 +\& $z\->deflateParams +.Ve +.PP +\&\s-1TODO\s0 +.SH "Importing" +.IX Header "Importing" +A number of symbolic constants are required by some methods in +\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR. None are imported by default. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`gzip\*(C'\fR, \f(CW$GzipError\fR and all symbolic +constants that can be used by \f(CW\*(C`IO::Compress::Gzip\*(C'\fR. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Gzip qw(gzip $GzipError :constants) ; +.Ve +.IP ":constants" 5 +.IX Item ":constants" +Import all symbolic constants. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Gzip qw(:flush :level :strategy) ; +.Ve +.IP ":flush" 5 +.IX Item ":flush" +These symbolic constants are used by the \f(CW\*(C`flush\*(C'\fR method. +.Sp +.Vb 6 +\& Z_NO_FLUSH +\& Z_PARTIAL_FLUSH +\& Z_SYNC_FLUSH +\& Z_FULL_FLUSH +\& Z_FINISH +\& Z_BLOCK +.Ve +.IP ":level" 5 +.IX Item ":level" +These symbolic constants are used by the \f(CW\*(C`Level\*(C'\fR option in the constructor. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.IP ":strategy" 5 +.IX Item ":strategy" +These symbolic constants are used by the \f(CW\*(C`Strategy\*(C'\fR option in the constructor. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +See IO::Compress::FAQ +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ARawDeflate.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ARawDeflate.3 new file mode 100644 index 0000000000000000000000000000000000000000..19c3222a02c51a208a25c2424bf5f7129607658e --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3ARawDeflate.3 @@ -0,0 +1,923 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::RawDeflate 3" +.TH IO::Compress::RawDeflate 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::RawDeflate \- Write RFC 1951 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& +\& my $status = rawdeflate $input => $output [,OPTS] +\& or die "rawdeflate failed: $RawDeflateError\en"; +\& +\& my $z = new IO::Compress::RawDeflate $output [,OPTS] +\& or die "rawdeflate failed: $RawDeflateError\en"; +\& +\& $z\->print($string); +\& $z\->printf($format, $string); +\& $z\->write($string); +\& $z\->syswrite($string [, $length, $offset]); +\& $z\->flush(); +\& $z\->tell(); +\& $z\->eof(); +\& $z\->seek($position, $whence); +\& $z\->binmode(); +\& $z\->fileno(); +\& $z\->opened(); +\& $z\->autoflush(); +\& $z\->input_line_number(); +\& $z\->newStream( [OPTS] ); +\& +\& $z\->deflateParams(); +\& +\& $z\->close() ; +\& +\& $RawDeflateError ; +\& +\& # IO::File mode +\& +\& print $z $string; +\& printf $z $format, $string; +\& tell $z +\& eof $z +\& seek $z, $position, $whence +\& binmode $z +\& fileno $z +\& close $z ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows writing compressed +data to files or buffer as defined in \s-1RFC 1951.\s0 +.PP +Note that \s-1RFC 1951\s0 data is not a good choice of compression format +to use in isolation, especially if you want to auto-detect it. +.PP +For reading \s-1RFC 1951\s0 files/buffers, see the companion module +IO::Uncompress::RawInflate. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`rawdeflate\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" compression between buffers and/or files. For finer +control over the compression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& +\& rawdeflate $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "rawdeflate failed: $RawDeflateError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "rawdeflate $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "rawdeflate \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "rawdeflate $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`rawdeflate\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the uncompressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is compressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`rawdeflate\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the compressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +compressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +compressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +compressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the compressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`rawdeflate\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple files/buffers and +\&\f(CW$output_filename_or_reference\fR is a single +file/buffer the input files/buffers will be stored +in \f(CW$output_filename_or_reference\fR as a concatenated series of compressed data streams. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`rawdeflate\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`rawdeflate\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`rawdeflate\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeIn => 0|1""" 5 +.el .IP "\f(CWBinModeIn => 0|1\fR" 5 +.IX Item "BinModeIn => 0|1" +This option is now a no-op. All files will be read in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +compressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any compressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all compressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any compressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all compressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any compressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any compressed data is output. +.Sp +Defaults to 0. +.RE +.SS "Examples" +.IX Subsection "Examples" +Here are a few example that show the capabilities of the module. +.PP +\fIStreaming\fR +.IX Subsection "Streaming" +.PP +This very simple command line example demonstrates the streaming capabilities of the module. +The code reads data from \s-1STDIN,\s0 compresses it, and writes the compressed data to \s-1STDOUT.\s0 +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::RawDeflate=rawdeflate \-e \*(Aqrawdeflate \e*STDIN => \e*STDOUT\*(Aq >output.1951 +.Ve +.PP +The special filename \*(L"\-\*(R" can be used as a standin for both \f(CW\*(C`\e*STDIN\*(C'\fR and \f(CW\*(C`\e*STDOUT\*(C'\fR, +so the above can be rewritten as +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::RawDeflate=rawdeflate \-e \*(Aqrawdeflate "\-" => "\-"\*(Aq >output.1951 +.Ve +.PP +\fICompressing a file from the filesystem\fR +.IX Subsection "Compressing a file from the filesystem" +.PP +To read the contents of the file \f(CW\*(C`file1.txt\*(C'\fR and write the compressed +data to the file \f(CW\*(C`file1.txt.1951\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& +\& my $input = "file1.txt"; +\& rawdeflate $input => "$input.1951" +\& or die "rawdeflate failed: $RawDeflateError\en"; +.Ve +.PP +\fIReading from a Filehandle and writing to an in-memory buffer\fR +.IX Subsection "Reading from a Filehandle and writing to an in-memory buffer" +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +compressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "rawdeflate failed: $RawDeflateError\en"; +.Ve +.PP +\fICompressing multiple files\fR +.IX Subsection "Compressing multiple files" +.PP +To compress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt\*(R" +and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& +\& rawdeflate \*(Aq\*(Aq => \*(Aq<*.1951>\*(Aq +\& or die "rawdeflate failed: $RawDeflateError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError) ; +\& +\& for my $input ( glob "/my/home/*.txt" ) +\& { +\& my $output = "$input.1951" ; +\& rawdeflate $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $RawDeflateError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR is shown below +.PP +.Vb 2 +\& my $z = new IO::Compress::RawDeflate $output [,OPTS] +\& or die "IO::Compress::RawDeflate failed: $RawDeflateError\en"; +.Ve +.PP +It returns an \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR object on success and undef on failure. +The variable \f(CW$RawDeflateError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Compress::RawDeflate can be used exactly like an IO::File filehandle. +This means that all normal output file operations can be carried out +with \f(CW$z\fR. +For example, to write to a compressed file/buffer you can use either of +these forms +.PP +.Vb 2 +\& $z\->print("hello world\en"); +\& print $z "hello world\en"; +.Ve +.PP +The mandatory parameter \f(CW$output\fR is used to control the destination +of the compressed data. This parameter can take one of these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output\fR parameter is a simple scalar, it is assumed to be a +filename. This file will be opened for writing and the compressed data +will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output\fR parameter is a filehandle, the compressed data will be +written to it. +The string '\-' can be used as an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output\fR is a scalar reference, the compressed data will be stored +in \f(CW$$output\fR. +.PP +If the \f(CW$output\fR parameter is any other type, \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR::new will +return undef. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +\&\f(CW\*(C`OPTS\*(C'\fR is any combination of zero or more the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$output\fR parameter is a filehandle. If +specified, and the value is true, it will result in the \f(CW$output\fR being +closed once either the \f(CW\*(C`close\*(C'\fR method is called or the \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR +object is destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +Opens \f(CW$output\fR in append mode. +.Sp +The behaviour of this option is dependent on the type of \f(CW$output\fR. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW$output\fR is a buffer and \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data +will be append to the end of \f(CW$output\fR. Otherwise \f(CW$output\fR will be +cleared before any data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW$output\fR is a filename and \f(CW\*(C`Append\*(C'\fR is enabled, the file will be +opened in append mode. Otherwise the contents of the file, if any, will be +truncated before any compressed data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW$output\fR is a filehandle, the file pointer will be positioned to the +end of the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is written +to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.ie n .IP """Merge => 0|1""" 5 +.el .IP "\f(CWMerge => 0|1\fR" 5 +.IX Item "Merge => 0|1" +This option is used to compress input data and append it to an existing +compressed data stream in \f(CW$output\fR. The end result is a single compressed +data stream stored in \f(CW$output\fR. +.Sp +It is a fatal error to attempt to use this option when \f(CW$output\fR is not an +\&\s-1RFC 1951\s0 data stream. +.Sp +There are a number of other limitations with the \f(CW\*(C`Merge\*(C'\fR option: +.RS 5 +.IP "1." 5 +This module needs to have been built with zlib 1.2.1 or better to work. A +fatal error will be thrown if \f(CW\*(C`Merge\*(C'\fR is used with an older version of +zlib. +.IP "2." 5 +If \f(CW$output\fR is a file or a filehandle, it must be seekable. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.IP "\-Level" 5 +.IX Item "-Level" +Defines the compression level used by zlib. The value should either be +a number between 0 and 9 (0 means no compression and 9 is maximum +compression), or one of the symbolic constants defined below. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.Sp +The default is Z_DEFAULT_COMPRESSION. +.Sp +Note, these constants are not imported by \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR by default. +.Sp +.Vb 3 +\& use IO::Compress::RawDeflate qw(:strategy); +\& use IO::Compress::RawDeflate qw(:constants); +\& use IO::Compress::RawDeflate qw(:all); +.Ve +.IP "\-Strategy" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. Use one of the symbolic +constants defined below. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.Sp +The default is Z_DEFAULT_STRATEGY. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This is a placeholder option. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "print" +.IX Subsection "print" +Usage is +.PP +.Vb 2 +\& $z\->print($data) +\& print $z $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. This +has the same behaviour as the \f(CW\*(C`print\*(C'\fR built-in. +.PP +Returns true if successful. +.SS "printf" +.IX Subsection "printf" +Usage is +.PP +.Vb 2 +\& $z\->printf($format, $data) +\& printf $z $format, $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns true if successful. +.SS "syswrite" +.IX Subsection "syswrite" +Usage is +.PP +.Vb 3 +\& $z\->syswrite $data +\& $z\->syswrite $data, $length +\& $z\->syswrite $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "write" +.IX Subsection "write" +Usage is +.PP +.Vb 3 +\& $z\->write $data +\& $z\->write $data, $length +\& $z\->write $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "flush" +.IX Subsection "flush" +Usage is +.PP +.Vb 2 +\& $z\->flush; +\& $z\->flush($flush_type); +.Ve +.PP +Flushes any pending compressed data to the output file/buffer. +.PP +This method takes an optional parameter, \f(CW$flush_type\fR, that controls +how the flushing will be carried out. By default the \f(CW$flush_type\fR +used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are +\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is +strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if +you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR +can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR +documentation for details. +.PP +Returns true on success. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the \f(CW\*(C`close\*(C'\fR method has been called. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the output file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Empty parts of the file/buffer will have \s-1NULL\s0 (0x00) bytes written to them. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +This method always returns \f(CW\*(C`undef\*(C'\fR when compressing. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Flushes any pending compressed data and then closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Compress::RawDeflate object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Compress::RawDeflate +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "newStream([\s-1OPTS\s0])" +.IX Subsection "newStream([OPTS])" +Usage is +.PP +.Vb 1 +\& $z\->newStream( [OPTS] ) +.Ve +.PP +Closes the current compressed data stream and starts a new one. +.PP +\&\s-1OPTS\s0 consists of any of the options that are available when creating +the \f(CW$z\fR object. +.PP +See the \*(L"Constructor Options\*(R" section for more details. +.SS "deflateParams" +.IX Subsection "deflateParams" +Usage is +.PP +.Vb 1 +\& $z\->deflateParams +.Ve +.PP +\&\s-1TODO\s0 +.SH "Importing" +.IX Header "Importing" +A number of symbolic constants are required by some methods in +\&\f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR. None are imported by default. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`rawdeflate\*(C'\fR, \f(CW$RawDeflateError\fR and all symbolic +constants that can be used by \f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::RawDeflate qw(rawdeflate $RawDeflateError :constants) ; +.Ve +.IP ":constants" 5 +.IX Item ":constants" +Import all symbolic constants. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::RawDeflate qw(:flush :level :strategy) ; +.Ve +.IP ":flush" 5 +.IX Item ":flush" +These symbolic constants are used by the \f(CW\*(C`flush\*(C'\fR method. +.Sp +.Vb 6 +\& Z_NO_FLUSH +\& Z_PARTIAL_FLUSH +\& Z_SYNC_FLUSH +\& Z_FULL_FLUSH +\& Z_FINISH +\& Z_BLOCK +.Ve +.IP ":level" 5 +.IX Item ":level" +These symbolic constants are used by the \f(CW\*(C`Level\*(C'\fR option in the constructor. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.IP ":strategy" 5 +.IX Item ":strategy" +These symbolic constants are used by the \f(CW\*(C`Strategy\*(C'\fR option in the constructor. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +See IO::Compress::FAQ +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AZip.3 b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AZip.3 new file mode 100644 index 0000000000000000000000000000000000000000..5e77cb943eea9ef928e9127bad108846d557759c --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ACompress%3A%3AZip.3 @@ -0,0 +1,1364 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Compress::Zip 3" +.TH IO::Compress::Zip 3 "2020-12-18" "perl v5.32.1" "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" +IO::Compress::Zip \- Write zip files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& +\& my $status = zip $input => $output [,OPTS] +\& or die "zip failed: $ZipError\en"; +\& +\& my $z = new IO::Compress::Zip $output [,OPTS] +\& or die "zip failed: $ZipError\en"; +\& +\& $z\->print($string); +\& $z\->printf($format, $string); +\& $z\->write($string); +\& $z\->syswrite($string [, $length, $offset]); +\& $z\->flush(); +\& $z\->tell(); +\& $z\->eof(); +\& $z\->seek($position, $whence); +\& $z\->binmode(); +\& $z\->fileno(); +\& $z\->opened(); +\& $z\->autoflush(); +\& $z\->input_line_number(); +\& $z\->newStream( [OPTS] ); +\& +\& $z\->deflateParams(); +\& +\& $z\->close() ; +\& +\& $ZipError ; +\& +\& # IO::File mode +\& +\& print $z $string; +\& printf $z $format, $string; +\& tell $z +\& eof $z +\& seek $z, $position, $whence +\& binmode $z +\& fileno $z +\& close $z ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows writing zip +compressed data to files or buffer. +.PP +The primary purpose of this module is to provide streaming write access to +zip files and buffers. It is not a general-purpose file archiver. If that +is what you want, check out \f(CW\*(C`Archive::Zip\*(C'\fR or \f(CW\*(C`Archive::Zip::SimpleZip\*(C'\fR. +.PP +At present the following compression methods are supported by IO::Compress::Zip, +namely Store (no compression at all), Deflate, Bzip2 and \s-1LZMA.\s0 +.PP +\&\fBNote\fR +.IP "\(bu" 5 +To use Bzip2 compression, the module \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR must be installed. +.IP "\(bu" 5 +To use \s-1LZMA\s0 compression, the module \f(CW\*(C`IO::Compress::Lzma\*(C'\fR must be installed. +.PP +For reading zip files/buffers, see the companion module +IO::Uncompress::Unzip. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`zip\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" compression between buffers and/or files. For finer +control over the compression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& +\& zip $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "zip failed: $ZipError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "zip $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "zip \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "zip $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`zip\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the uncompressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is compressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`zip\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +In addition, if \f(CW$input_filename_or_reference\fR is a simple filename, +the default values for +the \f(CW\*(C`Name\*(C'\fR, \f(CW\*(C`Time\*(C'\fR, \f(CW\*(C`TextFlag\*(C'\fR, \f(CW\*(C`ExtAttr\*(C'\fR, \f(CW\*(C`exUnixN\*(C'\fR and \f(CW\*(C`exTime\*(C'\fR options will be sourced from that file. +.PP +If you do not want to use these defaults they can be overridden by +explicitly setting the \f(CW\*(C`Name\*(C'\fR, \f(CW\*(C`Time\*(C'\fR, \f(CW\*(C`TextFlag\*(C'\fR, \f(CW\*(C`ExtAttr\*(C'\fR, \f(CW\*(C`exUnixN\*(C'\fR and \f(CW\*(C`exTime\*(C'\fR options or by setting the +\&\f(CW\*(C`Minimal\*(C'\fR parameter. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the compressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +compressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +compressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +compressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the compressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`zip\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple files/buffers and +\&\f(CW$output_filename_or_reference\fR is a single +file/buffer the input files/buffers will each be stored +in \f(CW$output_filename_or_reference\fR as a distinct entry. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`zip\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`zip\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`zip\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeIn => 0|1""" 5 +.el .IP "\f(CWBinModeIn => 0|1\fR" 5 +.IX Item "BinModeIn => 0|1" +This option is now a no-op. All files will be read in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +compressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any compressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all compressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any compressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all compressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any compressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any compressed data is output. +.Sp +Defaults to 0. +.RE +.SS "Examples" +.IX Subsection "Examples" +Here are a few example that show the capabilities of the module. +.PP +\fIStreaming\fR +.IX Subsection "Streaming" +.PP +This very simple command line example demonstrates the streaming capabilities of the module. +The code reads data from \s-1STDIN,\s0 compresses it, and writes the compressed data to \s-1STDOUT.\s0 +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Zip=zip \-e \*(Aqzip \e*STDIN => \e*STDOUT\*(Aq >output.zip +.Ve +.PP +The special filename \*(L"\-\*(R" can be used as a standin for both \f(CW\*(C`\e*STDIN\*(C'\fR and \f(CW\*(C`\e*STDOUT\*(C'\fR, +so the above can be rewritten as +.PP +.Vb 1 +\& $ echo hello world | perl \-MIO::Compress::Zip=zip \-e \*(Aqzip "\-" => "\-"\*(Aq >output.zip +.Ve +.PP +One problem with creating a zip archive directly from \s-1STDIN\s0 can be demonstrated by looking at +the contents of the zip file, output.zip, that we have just created. +.PP +.Vb 7 +\& $ unzip \-l output.zip +\& Archive: output.zip +\& Length Date Time Name +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\- +\& 12 2019\-08\-16 22:21 +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\- +\& 12 1 file +.Ve +.PP +The archive member (filename) used is the empty string. +.PP +If that doesn't suit your needs, you can explicitly set the filename used +in the zip archive by specifying the Name option, like so +.PP +.Vb 1 +\& echo hello world | perl \-MIO::Compress::Zip=zip \-e \*(Aqzip "\-" => "\-", Name => "hello.txt"\*(Aq >output.zip +.Ve +.PP +Now the contents of the zip file looks like this +.PP +.Vb 7 +\& $ unzip \-l output.zip +\& Archive: output.zip +\& Length Date Time Name +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\- +\& 12 2019\-08\-16 22:22 hello.txt +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\- +\& 12 1 file +.Ve +.PP +\fICompressing a file from the filesystem\fR +.IX Subsection "Compressing a file from the filesystem" +.PP +To read the contents of the file \f(CW\*(C`file1.txt\*(C'\fR and write the compressed +data to the file \f(CW\*(C`file1.txt.zip\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& +\& my $input = "file1.txt"; +\& zip $input => "$input.zip" +\& or die "zip failed: $ZipError\en"; +.Ve +.PP +\fIReading from a Filehandle and writing to an in-memory buffer\fR +.IX Subsection "Reading from a Filehandle and writing to an in-memory buffer" +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +compressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "zip failed: $ZipError\en"; +.Ve +.PP +\fICompressing multiple files\fR +.IX Subsection "Compressing multiple files" +.PP +To create a zip file, \f(CW\*(C`output.zip\*(C'\fR, that contains the compressed contents +of the files \f(CW\*(C`alpha.txt\*(C'\fR and \f(CW\*(C`beta.txt\*(C'\fR +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& +\& zip [ \*(Aqalpha.txt\*(Aq, \*(Aqbeta.txt\*(Aq ] => \*(Aqoutput.zip\*(Aq +\& or die "zip failed: $ZipError\en"; +.Ve +.PP +Alternatively, rather than having to explicitly name each of the files that +you want to compress, you could use a fileglob to select all the \f(CW\*(C`txt\*(C'\fR +files in the current directory, as follows +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Compress::Zip qw(zip $ZipError) ; +\& +\& my @files = <*.txt>; +\& zip \e@files => \*(Aqoutput.zip\*(Aq +\& or die "zip failed: $ZipError\en"; +.Ve +.PP +or more succinctly +.PP +.Vb 2 +\& zip [ <*.txt> ] => \*(Aqoutput.zip\*(Aq +\& or die "zip failed: $ZipError\en"; +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for \f(CW\*(C`IO::Compress::Zip\*(C'\fR is shown below +.PP +.Vb 2 +\& my $z = new IO::Compress::Zip $output [,OPTS] +\& or die "IO::Compress::Zip failed: $ZipError\en"; +.Ve +.PP +It returns an \f(CW\*(C`IO::Compress::Zip\*(C'\fR object on success and undef on failure. +The variable \f(CW$ZipError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Compress::Zip can be used exactly like an IO::File filehandle. +This means that all normal output file operations can be carried out +with \f(CW$z\fR. +For example, to write to a compressed file/buffer you can use either of +these forms +.PP +.Vb 2 +\& $z\->print("hello world\en"); +\& print $z "hello world\en"; +.Ve +.PP +The mandatory parameter \f(CW$output\fR is used to control the destination +of the compressed data. This parameter can take one of these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output\fR parameter is a simple scalar, it is assumed to be a +filename. This file will be opened for writing and the compressed data +will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output\fR parameter is a filehandle, the compressed data will be +written to it. +The string '\-' can be used as an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output\fR is a scalar reference, the compressed data will be stored +in \f(CW$$output\fR. +.PP +If the \f(CW$output\fR parameter is any other type, \f(CW\*(C`IO::Compress::Zip\*(C'\fR::new will +return undef. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +\&\f(CW\*(C`OPTS\*(C'\fR is any combination of zero or more the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$output\fR parameter is a filehandle. If +specified, and the value is true, it will result in the \f(CW$output\fR being +closed once either the \f(CW\*(C`close\*(C'\fR method is called or the \f(CW\*(C`IO::Compress::Zip\*(C'\fR +object is destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +Opens \f(CW$output\fR in append mode. +.Sp +The behaviour of this option is dependent on the type of \f(CW$output\fR. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW$output\fR is a buffer and \f(CW\*(C`Append\*(C'\fR is enabled, all compressed data +will be append to the end of \f(CW$output\fR. Otherwise \f(CW$output\fR will be +cleared before any data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW$output\fR is a filename and \f(CW\*(C`Append\*(C'\fR is enabled, the file will be +opened in append mode. Otherwise the contents of the file, if any, will be +truncated before any compressed data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW$output\fR is a filehandle, the file pointer will be positioned to the +end of the file via a call to \f(CW\*(C`seek\*(C'\fR before any compressed data is written +to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +This parameter defaults to 0. +.RE +.PP +\fIFile Naming Options\fR +.IX Subsection "File Naming Options" +.PP +A quick bit of zip file terminology \*(-- A zip archive consists of one or more \fIarchive members\fR, where each member has an associated +filename, known as the \fIarchive member name\fR. +.PP +The options listed in this section control how the \fIarchive member name\fR (or filename) is stored the zip archive. +.ie n .IP """Name => $string""" 5 +.el .IP "\f(CWName => $string\fR" 5 +.IX Item "Name => $string" +This option is used to explicitly set the \fIarchive member name\fR in +the zip archive to \f(CW$string\fR. +Most of the time you don't need to make use of this option. +By default when adding a filename to the zip archive, the \fIarchive member name\fR will match the filename. +.Sp +You should only need to use this option if you want the \fIarchive member name\fR +to be different from the uncompressed filename or when the input is a filehandle or a buffer. +.Sp +The default behaviour for what \fIarchive member name\fR is used when the \f(CW\*(C`Name\*(C'\fR option +is \fInot\fR specified depends on the form of the \f(CW$input\fR parameter: +.RS 5 +.IP "\(bu" 5 +If the \f(CW$input\fR parameter is a filename, the +value of \f(CW$input\fR will be used for the \fIarchive member name\fR . +.IP "\(bu" 5 +If the \f(CW$input\fR parameter is not a filename, +the \fIarchive member name\fR will be an empty string. +.RE +.RS 5 +.Sp +Note that both the \f(CW\*(C`CanonicalName\*(C'\fR and \f(CW\*(C`FilterName\*(C'\fR options +can modify the value used for the \fIarchive member name\fR. +.Sp +Also note that you should set the \f(CW\*(C`Efs\*(C'\fR option to true if you are working +with \s-1UTF8\s0 filenames. +.RE +.ie n .IP """CanonicalName => 0|1""" 5 +.el .IP "\f(CWCanonicalName => 0|1\fR" 5 +.IX Item "CanonicalName => 0|1" +This option controls whether the \fIarchive member name\fR is +\&\fInormalized\fR into Unix format before being written to the zip file. +.Sp +It is recommended that you enable this option unless you really need +to create a non-standard Zip file. +.Sp +This is what \s-1APPNOTE.TXT\s0 has to say on what should be stored in the zip +filename header field. +.Sp +.Vb 6 +\& The name of the file, with optional relative path. +\& The path stored should not contain a drive or +\& device letter, or a leading slash. All slashes +\& should be forward slashes \*(Aq/\*(Aq as opposed to +\& backwards slashes \*(Aq\e\*(Aq for compatibility with Amiga +\& and UNIX file systems etc. +.Ve +.Sp +This option defaults to \fBfalse\fR. +.ie n .IP """FilterName => sub { ... }""" 5 +.el .IP "\f(CWFilterName => sub { ... }\fR" 5 +.IX Item "FilterName => sub { ... }" +This option allow the \fIarchive member\fR name to be modified +before it is written to the zip file. +.Sp +This option takes a parameter that must be a reference to a sub. On entry +to the sub the \f(CW$_\fR variable will contain the name to be filtered. If no +filename is available \f(CW$_\fR will contain an empty string. +.Sp +The value of \f(CW$_\fR when the sub returns will be used as the \fIarchive member name\fR. +.Sp +Note that if \f(CW\*(C`CanonicalName\*(C'\fR is enabled, a +normalized filename will be passed to the sub. +.Sp +If you use \f(CW\*(C`FilterName\*(C'\fR to modify the filename, it is your responsibility +to keep the filename in Unix format. +.Sp +Although this option can be used with the \s-1OO\s0 interface, it is of most use +with the one-shot interface. For example, the code below shows how +\&\f(CW\*(C`FilterName\*(C'\fR can be used to remove the path component from a series of +filenames before they are stored in \f(CW$zipfile\fR. +.Sp +.Vb 4 +\& sub compressTxtFiles +\& { +\& my $zipfile = shift ; +\& my $dir = shift ; +\& +\& zip [ <$dir/*.txt> ] => $zipfile, +\& FilterName => sub { s[^$dir/][] } ; +\& } +.Ve +.ie n .IP """Efs => 0|1""" 5 +.el .IP "\f(CWEfs => 0|1\fR" 5 +.IX Item "Efs => 0|1" +This option controls setting of the \*(L"Language Encoding Flag\*(R" (\s-1EFS\s0) in the zip +archive. When set, the filename and comment fields for the zip archive \s-1MUST\s0 +be valid \s-1UTF\-8.\s0 +.Sp +If the string used for the filename and/or comment is not valid \s-1UTF\-8\s0 when this option +is true, the script will die with a \*(L"wide character\*(R" error. +.Sp +Note that this option only works with Perl 5.8.4 or better. +.Sp +This option defaults to \fBfalse\fR. +.PP +\fIOverall Zip Archive Structure\fR +.IX Subsection "Overall Zip Archive Structure" +.ie n .IP """Minimal => 1|0""" 5 +.el .IP "\f(CWMinimal => 1|0\fR" 5 +.IX Item "Minimal => 1|0" +If specified, this option will disable the creation of all extra fields +in the zip local and central headers. So the \f(CW\*(C`exTime\*(C'\fR, \f(CW\*(C`exUnix2\*(C'\fR, +\&\f(CW\*(C`exUnixN\*(C'\fR, \f(CW\*(C`ExtraFieldLocal\*(C'\fR and \f(CW\*(C`ExtraFieldCentral\*(C'\fR options will +be ignored. +.Sp +This parameter defaults to 0. +.ie n .IP """Stream => 0|1""" 5 +.el .IP "\f(CWStream => 0|1\fR" 5 +.IX Item "Stream => 0|1" +This option controls whether the zip file/buffer output is created in +streaming mode. +.Sp +Note that when outputting to a file with streaming mode disabled (\f(CW\*(C`Stream\*(C'\fR +is 0), the output file must be seekable. +.Sp +The default is 1. +.ie n .IP """Zip64 => 0|1""" 5 +.el .IP "\f(CWZip64 => 0|1\fR" 5 +.IX Item "Zip64 => 0|1" +Create a Zip64 zip file/buffer. This option is used if you want +to store files larger than 4 Gig or store more than 64K files in a single +zip archive. +.Sp +\&\f(CW\*(C`Zip64\*(C'\fR will be automatically set, as needed, if working with the one-shot +interface when the input is either a filename or a scalar reference. +.Sp +If you intend to manipulate the Zip64 zip files created with this module +using an external zip/unzip, make sure that it supports Zip64. +.Sp +In particular, if you are using Info-Zip you need to have zip version 3.x +or better to update a Zip64 archive and unzip version 6.x to read a zip64 +archive. +.Sp +The default is 0. +.PP +\fIDeflate Compression Options\fR +.IX Subsection "Deflate Compression Options" +.IP "\-Level" 5 +.IX Item "-Level" +Defines the compression level used by zlib. The value should either be +a number between 0 and 9 (0 means no compression and 9 is maximum +compression), or one of the symbolic constants defined below. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.Sp +The default is Z_DEFAULT_COMPRESSION. +.Sp +Note, these constants are not imported by \f(CW\*(C`IO::Compress::Zip\*(C'\fR by default. +.Sp +.Vb 3 +\& use IO::Compress::Zip qw(:strategy); +\& use IO::Compress::Zip qw(:constants); +\& use IO::Compress::Zip qw(:all); +.Ve +.IP "\-Strategy" 5 +.IX Item "-Strategy" +Defines the strategy used to tune the compression. Use one of the symbolic +constants defined below. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.Sp +The default is Z_DEFAULT_STRATEGY. +.PP +\fIBzip2 Compression Options\fR +.IX Subsection "Bzip2 Compression Options" +.ie n .IP """BlockSize100K => number""" 5 +.el .IP "\f(CWBlockSize100K => number\fR" 5 +.IX Item "BlockSize100K => number" +Specify the number of 100K blocks bzip2 uses during compression. +.Sp +Valid values are from 1 to 9, where 9 is best compression. +.Sp +This option is only valid if the \f(CW\*(C`Method\*(C'\fR is \s-1ZIP_CM_BZIP2.\s0 It is ignored +otherwise. +.Sp +The default is 1. +.ie n .IP """WorkFactor => number""" 5 +.el .IP "\f(CWWorkFactor => number\fR" 5 +.IX Item "WorkFactor => number" +Specifies how much effort bzip2 should take before resorting to a slower +fallback compression algorithm. +.Sp +Valid values range from 0 to 250, where 0 means use the default value 30. +.Sp +This option is only valid if the \f(CW\*(C`Method\*(C'\fR is \s-1ZIP_CM_BZIP2.\s0 It is ignored +otherwise. +.Sp +The default is 0. +.PP +\fILzma Compression Options\fR +.IX Subsection "Lzma Compression Options" +.ie n .IP """Preset => number""" 5 +.el .IP "\f(CWPreset => number\fR" 5 +.IX Item "Preset => number" +Used to choose the \s-1LZMA\s0 compression preset. +.Sp +Valid values are 0\-9 and \f(CW\*(C`LZMA_PRESET_DEFAULT\*(C'\fR. +.Sp +0 is the fastest compression with the lowest memory usage and the lowest +compression. +.Sp +9 is the slowest compression with the highest memory usage but with the best +compression. +.Sp +This option is only valid if the \f(CW\*(C`Method\*(C'\fR is \s-1ZIP_CM_LZMA.\s0 It is ignored +otherwise. +.Sp +Defaults to \f(CW\*(C`LZMA_PRESET_DEFAULT\*(C'\fR (6). +.ie n .IP """Extreme => 0|1""" 5 +.el .IP "\f(CWExtreme => 0|1\fR" 5 +.IX Item "Extreme => 0|1" +Makes \s-1LZMA\s0 compression a lot slower, but a small compression gain. +.Sp +This option is only valid if the \f(CW\*(C`Method\*(C'\fR is \s-1ZIP_CM_LZMA.\s0 It is ignored +otherwise. +.Sp +Defaults to 0. +.PP +\fIOther Options\fR +.IX Subsection "Other Options" +.ie n .IP """Time => $number""" 5 +.el .IP "\f(CWTime => $number\fR" 5 +.IX Item "Time => $number" +Sets the last modified time field in the zip header to \f(CW$number\fR. +.Sp +This field defaults to the time the \f(CW\*(C`IO::Compress::Zip\*(C'\fR object was created +if this option is not specified and the \f(CW$input\fR parameter is not a +filename. +.ie n .IP """ExtAttr => $attr""" 5 +.el .IP "\f(CWExtAttr => $attr\fR" 5 +.IX Item "ExtAttr => $attr" +This option controls the \*(L"external file attributes\*(R" field in the central +header of the zip file. This is a 4 byte field. +.Sp +If you are running a Unix derivative this value defaults to +.Sp +.Vb 1 +\& 0100644 << 16 +.Ve +.Sp +This should allow read/write access to any files that are extracted from +the zip file/buffer`. +.Sp +For all other systems it defaults to 0. +.ie n .IP """exTime => [$atime, $mtime, $ctime]""" 5 +.el .IP "\f(CWexTime => [$atime, $mtime, $ctime]\fR" 5 +.IX Item "exTime => [$atime, $mtime, $ctime]" +This option expects an array reference with exactly three elements: +\&\f(CW$atime\fR, \f(CW\*(C`mtime\*(C'\fR and \f(CW$ctime\fR. These correspond to the last access +time, last modification time and creation time respectively. +.Sp +It uses these values to set the extended timestamp field (\s-1ID\s0 is \*(L"\s-1UT\*(R"\s0) in +the local zip header using the three values, \f(CW$atime\fR, \f(CW$mtime\fR, \f(CW$ctime\fR. In +addition it sets the extended timestamp field in the central zip header +using \f(CW$mtime\fR. +.Sp +If any of the three values is \f(CW\*(C`undef\*(C'\fR that time value will not be used. +So, for example, to set only the \f(CW$mtime\fR you would use this +.Sp +.Vb 1 +\& exTime => [undef, $mtime, undef] +.Ve +.Sp +If the \f(CW\*(C`Minimal\*(C'\fR option is set to true, this option will be ignored. +.Sp +By default no extended time field is created. +.ie n .IP """exUnix2 => [$uid, $gid]""" 5 +.el .IP "\f(CWexUnix2 => [$uid, $gid]\fR" 5 +.IX Item "exUnix2 => [$uid, $gid]" +This option expects an array reference with exactly two elements: \f(CW$uid\fR +and \f(CW$gid\fR. These values correspond to the numeric User \s-1ID\s0 (\s-1UID\s0) and Group \s-1ID\s0 +(\s-1GID\s0) of the owner of the files respectively. +.Sp +When the \f(CW\*(C`exUnix2\*(C'\fR option is present it will trigger the creation of a +Unix2 extra field (\s-1ID\s0 is \*(L"Ux\*(R") in the local zip header. This will be populated +with \f(CW$uid\fR and \f(CW$gid\fR. An empty Unix2 extra field will also +be created in the central zip header. +.Sp +Note \- The \s-1UID & GID\s0 are stored as 16\-bit +integers in the \*(L"Ux\*(R" field. Use \f(CW\*(C`exUnixN\*(C'\fR if your \s-1UID\s0 or \s-1GID\s0 are +32\-bit. +.Sp +If the \f(CW\*(C`Minimal\*(C'\fR option is set to true, this option will be ignored. +.Sp +By default no Unix2 extra field is created. +.ie n .IP """exUnixN => [$uid, $gid]""" 5 +.el .IP "\f(CWexUnixN => [$uid, $gid]\fR" 5 +.IX Item "exUnixN => [$uid, $gid]" +This option expects an array reference with exactly two elements: \f(CW$uid\fR +and \f(CW$gid\fR. These values correspond to the numeric User \s-1ID\s0 (\s-1UID\s0) and Group \s-1ID\s0 +(\s-1GID\s0) of the owner of the files respectively. +.Sp +When the \f(CW\*(C`exUnixN\*(C'\fR option is present it will trigger the creation of a +UnixN extra field (\s-1ID\s0 is \*(L"ux\*(R") in both the local and central zip headers. +This will be populated with \f(CW$uid\fR and \f(CW$gid\fR. +The \s-1UID & GID\s0 are stored as 32\-bit integers. +.Sp +If the \f(CW\*(C`Minimal\*(C'\fR option is set to true, this option will be ignored. +.Sp +By default no UnixN extra field is created. +.ie n .IP """Comment => $comment""" 5 +.el .IP "\f(CWComment => $comment\fR" 5 +.IX Item "Comment => $comment" +Stores the contents of \f(CW$comment\fR in the Central File Header of +the zip file. +.Sp +Set the \f(CW\*(C`Efs\*(C'\fR option to true if you want to store a \s-1UTF8\s0 comment. +.Sp +By default, no comment field is written to the zip file. +.ie n .IP """ZipComment => $comment""" 5 +.el .IP "\f(CWZipComment => $comment\fR" 5 +.IX Item "ZipComment => $comment" +Stores the contents of \f(CW$comment\fR in the End of Central Directory record +of the zip file. +.Sp +By default, no comment field is written to the zip file. +.ie n .IP """Method => $method""" 5 +.el .IP "\f(CWMethod => $method\fR" 5 +.IX Item "Method => $method" +Controls which compression method is used. At present four compression +methods are supported, namely Store (no compression at all), Deflate, +Bzip2 and Lzma. +.Sp +The symbols, \s-1ZIP_CM_STORE, ZIP_CM_DEFLATE, ZIP_CM_BZIP2\s0 and \s-1ZIP_CM_LZMA\s0 +are used to select the compression method. +.Sp +These constants are not imported by \f(CW\*(C`IO::Compress::Zip\*(C'\fR by default. +.Sp +.Vb 3 +\& use IO::Compress::Zip qw(:zip_method); +\& use IO::Compress::Zip qw(:constants); +\& use IO::Compress::Zip qw(:all); +.Ve +.Sp +Note that to create Bzip2 content, the module \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR must +be installed. A fatal error will be thrown if you attempt to create Bzip2 +content when \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR is not available. +.Sp +Note that to create Lzma content, the module \f(CW\*(C`IO::Compress::Lzma\*(C'\fR must +be installed. A fatal error will be thrown if you attempt to create Lzma +content when \f(CW\*(C`IO::Compress::Lzma\*(C'\fR is not available. +.Sp +The default method is \s-1ZIP_CM_DEFLATE.\s0 +.ie n .IP """TextFlag => 0|1""" 5 +.el .IP "\f(CWTextFlag => 0|1\fR" 5 +.IX Item "TextFlag => 0|1" +This parameter controls the setting of a bit in the zip central header. It +is used to signal that the data stored in the zip file/buffer is probably +text. +.Sp +In one-shot mode this flag will be set to true if the Perl \f(CW\*(C`\-T\*(C'\fR operator thinks +the file contains text. +.Sp +The default is 0. +.ie n .IP """ExtraFieldLocal => $data""" 5 +.el .IP "\f(CWExtraFieldLocal => $data\fR" 5 +.IX Item "ExtraFieldLocal => $data" +.PD 0 +.ie n .IP """ExtraFieldCentral => $data""" 5 +.el .IP "\f(CWExtraFieldCentral => $data\fR" 5 +.IX Item "ExtraFieldCentral => $data" +.PD +The \f(CW\*(C`ExtraFieldLocal\*(C'\fR option is used to store additional metadata in the +local header for the zip file/buffer. The \f(CW\*(C`ExtraFieldCentral\*(C'\fR does the +same for the matching central header. +.Sp +An extra field consists of zero or more subfields. Each subfield consists +of a two byte header followed by the subfield data. +.Sp +The list of subfields can be supplied in any of the following formats +.Sp +.Vb 4 +\& ExtraFieldLocal => [$id1, $data1, +\& $id2, $data2, +\& ... +\& ] +\& +\& ExtraFieldLocal => [ [$id1 => $data1], +\& [$id2 => $data2], +\& ... +\& ] +\& +\& ExtraFieldLocal => { $id1 => $data1, +\& $id2 => $data2, +\& ... +\& } +.Ve +.Sp +Where \f(CW$id1\fR, \f(CW$id2\fR are two byte subfield \s-1ID\s0's. +.Sp +If you use the hash syntax, you have no control over the order in which +the ExtraSubFields are stored, plus you cannot have SubFields with +duplicate \s-1ID.\s0 +.Sp +Alternatively the list of subfields can by supplied as a scalar, thus +.Sp +.Vb 1 +\& ExtraField => $rawdata +.Ve +.Sp +In this case \f(CW\*(C`IO::Compress::Zip\*(C'\fR will check that \f(CW$rawdata\fR consists of +zero or more conformant sub-fields. +.Sp +The Extended Time field (\s-1ID \*(L"UT\*(R"\s0), set using the \f(CW\*(C`exTime\*(C'\fR option, and the +Unix2 extra field (\s-1ID\s0 "Ux), set using the \f(CW\*(C`exUnix2\*(C'\fR option, are examples +of extra fields. +.Sp +If the \f(CW\*(C`Minimal\*(C'\fR option is set to true, this option will be ignored. +.Sp +The maximum size of an extra field 65535 bytes. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This is a placeholder option. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "print" +.IX Subsection "print" +Usage is +.PP +.Vb 2 +\& $z\->print($data) +\& print $z $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. This +has the same behaviour as the \f(CW\*(C`print\*(C'\fR built-in. +.PP +Returns true if successful. +.SS "printf" +.IX Subsection "printf" +Usage is +.PP +.Vb 2 +\& $z\->printf($format, $data) +\& printf $z $format, $data +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns true if successful. +.SS "syswrite" +.IX Subsection "syswrite" +Usage is +.PP +.Vb 3 +\& $z\->syswrite $data +\& $z\->syswrite $data, $length +\& $z\->syswrite $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "write" +.IX Subsection "write" +Usage is +.PP +.Vb 3 +\& $z\->write $data +\& $z\->write $data, $length +\& $z\->write $data, $length, $offset +.Ve +.PP +Compresses and outputs the contents of the \f(CW$data\fR parameter. +.PP +Returns the number of uncompressed bytes written, or \f(CW\*(C`undef\*(C'\fR if +unsuccessful. +.SS "flush" +.IX Subsection "flush" +Usage is +.PP +.Vb 2 +\& $z\->flush; +\& $z\->flush($flush_type); +.Ve +.PP +Flushes any pending compressed data to the output file/buffer. +.PP +This method takes an optional parameter, \f(CW$flush_type\fR, that controls +how the flushing will be carried out. By default the \f(CW$flush_type\fR +used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are +\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is +strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if +you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR +can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR +documentation for details. +.PP +Returns true on success. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the \f(CW\*(C`close\*(C'\fR method has been called. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the output file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Empty parts of the file/buffer will have \s-1NULL\s0 (0x00) bytes written to them. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +This method always returns \f(CW\*(C`undef\*(C'\fR when compressing. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Flushes any pending compressed data and then closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Compress::Zip object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Compress::Zip +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "newStream([\s-1OPTS\s0])" +.IX Subsection "newStream([OPTS])" +Usage is +.PP +.Vb 1 +\& $z\->newStream( [OPTS] ) +.Ve +.PP +Closes the current compressed data stream and starts a new one. +.PP +\&\s-1OPTS\s0 consists of any of the options that are available when creating +the \f(CW$z\fR object. +.PP +See the \*(L"Constructor Options\*(R" section for more details. +.SS "deflateParams" +.IX Subsection "deflateParams" +Usage is +.PP +.Vb 1 +\& $z\->deflateParams +.Ve +.PP +\&\s-1TODO\s0 +.SH "Importing" +.IX Header "Importing" +A number of symbolic constants are required by some methods in +\&\f(CW\*(C`IO::Compress::Zip\*(C'\fR. None are imported by default. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`zip\*(C'\fR, \f(CW$ZipError\fR and all symbolic +constants that can be used by \f(CW\*(C`IO::Compress::Zip\*(C'\fR. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Zip qw(zip $ZipError :constants) ; +.Ve +.IP ":constants" 5 +.IX Item ":constants" +Import all symbolic constants. Same as doing this +.Sp +.Vb 1 +\& use IO::Compress::Zip qw(:flush :level :strategy :zip_method) ; +.Ve +.IP ":flush" 5 +.IX Item ":flush" +These symbolic constants are used by the \f(CW\*(C`flush\*(C'\fR method. +.Sp +.Vb 6 +\& Z_NO_FLUSH +\& Z_PARTIAL_FLUSH +\& Z_SYNC_FLUSH +\& Z_FULL_FLUSH +\& Z_FINISH +\& Z_BLOCK +.Ve +.IP ":level" 5 +.IX Item ":level" +These symbolic constants are used by the \f(CW\*(C`Level\*(C'\fR option in the constructor. +.Sp +.Vb 4 +\& Z_NO_COMPRESSION +\& Z_BEST_SPEED +\& Z_BEST_COMPRESSION +\& Z_DEFAULT_COMPRESSION +.Ve +.IP ":strategy" 5 +.IX Item ":strategy" +These symbolic constants are used by the \f(CW\*(C`Strategy\*(C'\fR option in the constructor. +.Sp +.Vb 5 +\& Z_FILTERED +\& Z_HUFFMAN_ONLY +\& Z_RLE +\& Z_FIXED +\& Z_DEFAULT_STRATEGY +.Ve +.IP ":zip_method" 5 +.IX Item ":zip_method" +These symbolic constants are used by the \f(CW\*(C`Method\*(C'\fR option in the +constructor. +.Sp +.Vb 3 +\& ZIP_CM_STORE +\& ZIP_CM_DEFLATE +\& ZIP_CM_BZIP2 +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Apache::GZip Revisited" +.IX Subsection "Apache::GZip Revisited" +See IO::Compress::FAQ +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AFile.3 b/data/miniconda3/man/man3/IO%3A%3AFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..beee08a15b0c9b6b5c09c6a802123709ff200478 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AFile.3 @@ -0,0 +1,245 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::File 3" +.TH IO::File 3 "2020-12-18" "perl v5.32.1" "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" +IO::File \- supply object methods for filehandles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::File; +\& +\& $fh = IO::File\->new(); +\& if ($fh\->open("< file")) { +\& print <$fh>; +\& $fh\->close; +\& } +\& +\& $fh = IO::File\->new("> file"); +\& if (defined $fh) { +\& print $fh "bar\en"; +\& $fh\->close; +\& } +\& +\& $fh = IO::File\->new("file", "r"); +\& if (defined $fh) { +\& print <$fh>; +\& undef $fh; # automatically closes the file +\& } +\& +\& $fh = IO::File\->new("file", O_WRONLY|O_APPEND); +\& if (defined $fh) { +\& print $fh "corge\en"; +\& +\& $pos = $fh\->getpos; +\& $fh\->setpos($pos); +\& +\& undef $fh; # automatically closes the file +\& } +\& +\& autoflush STDOUT 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::File\*(C'\fR inherits from \f(CW\*(C`IO::Handle\*(C'\fR and \f(CW\*(C`IO::Seekable\*(C'\fR. It extends +these classes with methods that are specific to file handles. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( \s-1FILENAME\s0 [,MODE [,PERMS]] )" 4 +.IX Item "new ( FILENAME [,MODE [,PERMS]] )" +Creates an \f(CW\*(C`IO::File\*(C'\fR. If it receives any parameters, they are passed to +the method \f(CW\*(C`open\*(C'\fR; if the open fails, the object is destroyed. Otherwise, +it is returned to the caller. +.IP "new_tmpfile" 4 +.IX Item "new_tmpfile" +Creates an \f(CW\*(C`IO::File\*(C'\fR opened for read/write on a newly created temporary +file. On systems where this is possible, the temporary file is anonymous +(i.e. it is unlinked after creation, but held open). If the temporary +file cannot be created or opened, the \f(CW\*(C`IO::File\*(C'\fR object is destroyed. +Otherwise, it is returned to the caller. +.SH "METHODS" +.IX Header "METHODS" +.IP "open( \s-1FILENAME\s0 [,MODE [,PERMS]] )" 4 +.IX Item "open( FILENAME [,MODE [,PERMS]] )" +.PD 0 +.IP "open( \s-1FILENAME, IOLAYERS\s0 )" 4 +.IX Item "open( FILENAME, IOLAYERS )" +.PD +\&\f(CW\*(C`open\*(C'\fR accepts one, two or three parameters. With one parameter, +it is just a front end for the built-in \f(CW\*(C`open\*(C'\fR function. With two or three +parameters, the first parameter is a filename that may include +whitespace or other special characters, and the second parameter is +the open mode, optionally followed by a file permission value. +.Sp +If \f(CW\*(C`IO::File::open\*(C'\fR receives a Perl mode string (\*(L">\*(R", \*(L"+<\*(R", etc.) +or an \s-1ANSI C\s0 \fBfopen()\fR mode string (\*(L"w\*(R", \*(L"r+\*(R", etc.), it uses the basic +Perl \f(CW\*(C`open\*(C'\fR operator (but protects any special characters). +.Sp +If \f(CW\*(C`IO::File::open\*(C'\fR is given a numeric mode, it passes that mode +and the optional permissions value to the Perl \f(CW\*(C`sysopen\*(C'\fR operator. +The permissions default to 0666. +.Sp +If \f(CW\*(C`IO::File::open\*(C'\fR is given a mode that includes the \f(CW\*(C`:\*(C'\fR character, +it passes all the three arguments to the three-argument \f(CW\*(C`open\*(C'\fR operator. +.Sp +For convenience, \f(CW\*(C`IO::File\*(C'\fR exports the O_XXX constants from the +Fcntl module, if this module is available. +.IP "binmode( [\s-1LAYER\s0] )" 4 +.IX Item "binmode( [LAYER] )" +\&\f(CW\*(C`binmode\*(C'\fR sets \f(CW\*(C`binmode\*(C'\fR on the underlying \f(CW\*(C`IO\*(C'\fR object, as documented +in \f(CW\*(C`perldoc \-f binmode\*(C'\fR. +.Sp +\&\f(CW\*(C`binmode\*(C'\fR accepts one optional parameter, which is the layer to be +passed on to the \f(CW\*(C`binmode\*(C'\fR call. +.SH "NOTE" +.IX Header "NOTE" +Some operating systems may perform \f(CW\*(C`IO::File::new()\*(C'\fR or \f(CW\*(C`IO::File::open()\*(C'\fR +on a directory without errors. This behavior is not portable and not +suggested for use. Using \f(CW\*(C`opendir()\*(C'\fR and \f(CW\*(C`readdir()\*(C'\fR or \f(CW\*(C`IO::Dir\*(C'\fR are +suggested instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlfunc, +\&\*(L"I/O Operators\*(R" in perlop, +IO::Handle, +IO::Seekable, +IO::Dir +.SH "HISTORY" +.IX Header "HISTORY" +Derived from FileHandle.pm by Graham Barr <\fIgbarr@pobox.com\fR>. diff --git a/data/miniconda3/man/man3/IO%3A%3AHandle.3 b/data/miniconda3/man/man3/IO%3A%3AHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..8ecb27e3344e80f615816a78381d4e135a9cb547 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AHandle.3 @@ -0,0 +1,382 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Handle 3" +.TH IO::Handle 3 "2020-12-18" "perl v5.32.1" "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" +IO::Handle \- supply object methods for I/O handles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Handle; +\& +\& $io = IO::Handle\->new(); +\& if ($io\->fdopen(fileno(STDIN),"r")) { +\& print $io\->getline; +\& $io\->close; +\& } +\& +\& $io = IO::Handle\->new(); +\& if ($io\->fdopen(fileno(STDOUT),"w")) { +\& $io\->print("Some text\en"); +\& } +\& +\& # setvbuf is not available by default on Perls 5.8.0 and later. +\& use IO::Handle \*(Aq_IOLBF\*(Aq; +\& $io\->setvbuf($buffer_var, _IOLBF, 1024); +\& +\& undef $io; # automatically closes the file if it\*(Aqs open +\& +\& autoflush STDOUT 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Handle\*(C'\fR is the base class for all other \s-1IO\s0 handle classes. It is +not intended that objects of \f(CW\*(C`IO::Handle\*(C'\fR would be created directly, +but instead \f(CW\*(C`IO::Handle\*(C'\fR is inherited from by several other classes +in the \s-1IO\s0 hierarchy. +.PP +If you are reading this documentation, looking for a replacement for +the \f(CW\*(C`FileHandle\*(C'\fR package, then I suggest you read the documentation +for \f(CW\*(C`IO::File\*(C'\fR too. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ()" 4 +.IX Item "new ()" +Creates a new \f(CW\*(C`IO::Handle\*(C'\fR object. +.IP "new_from_fd ( \s-1FD, MODE\s0 )" 4 +.IX Item "new_from_fd ( FD, MODE )" +Creates an \f(CW\*(C`IO::Handle\*(C'\fR like \f(CW\*(C`new\*(C'\fR does. +It requires two parameters, which are passed to the method \f(CW\*(C`fdopen\*(C'\fR; +if the fdopen fails, the object is destroyed. Otherwise, it is returned +to the caller. +.SH "METHODS" +.IX Header "METHODS" +See perlfunc for complete descriptions of each of the following +supported \f(CW\*(C`IO::Handle\*(C'\fR methods, which are just front ends for the +corresponding built-in functions: +.PP +.Vb 10 +\& $io\->close +\& $io\->eof +\& $io\->fcntl( FUNCTION, SCALAR ) +\& $io\->fileno +\& $io\->format_write( [FORMAT_NAME] ) +\& $io\->getc +\& $io\->ioctl( FUNCTION, SCALAR ) +\& $io\->read ( BUF, LEN, [OFFSET] ) +\& $io\->print ( ARGS ) +\& $io\->printf ( FMT, [ARGS] ) +\& $io\->say ( ARGS ) +\& $io\->stat +\& $io\->sysread ( BUF, LEN, [OFFSET] ) +\& $io\->syswrite ( BUF, [LEN, [OFFSET]] ) +\& $io\->truncate ( LEN ) +.Ve +.PP +See perlvar for complete descriptions of each of the following +supported \f(CW\*(C`IO::Handle\*(C'\fR methods. All of them return the previous +value of the attribute and takes an optional single argument that when +given will set the value. If no argument is given the previous value +is unchanged (except for \f(CW$io\fR\->autoflush will actually turn \s-1ON\s0 +autoflush by default). +.PP +.Vb 7 +\& $io\->autoflush ( [BOOL] ) $| +\& $io\->format_page_number( [NUM] ) $% +\& $io\->format_lines_per_page( [NUM] ) $= +\& $io\->format_lines_left( [NUM] ) $\- +\& $io\->format_name( [STR] ) $~ +\& $io\->format_top_name( [STR] ) $^ +\& $io\->input_line_number( [NUM]) $. +.Ve +.PP +The following methods are not supported on a per-filehandle basis. +.PP +.Vb 4 +\& IO::Handle\->format_line_break_characters( [STR] ) $: +\& IO::Handle\->format_formfeed( [STR]) $^L +\& IO::Handle\->output_field_separator( [STR] ) $, +\& IO::Handle\->output_record_separator( [STR] ) $\e +\& +\& IO::Handle\->input_record_separator( [STR] ) $/ +.Ve +.PP +Furthermore, for doing normal I/O you might need these: +.ie n .IP "$io\->fdopen ( \s-1FD, MODE\s0 )" 4 +.el .IP "\f(CW$io\fR\->fdopen ( \s-1FD, MODE\s0 )" 4 +.IX Item "$io->fdopen ( FD, MODE )" +\&\f(CW\*(C`fdopen\*(C'\fR is like an ordinary \f(CW\*(C`open\*(C'\fR except that its first parameter +is not a filename but rather a file handle name, an IO::Handle object, +or a file descriptor number. (For the documentation of the \f(CW\*(C`open\*(C'\fR +method, see IO::File.) +.ie n .IP "$io\->opened" 4 +.el .IP "\f(CW$io\fR\->opened" 4 +.IX Item "$io->opened" +Returns true if the object is currently a valid file descriptor, false +otherwise. +.ie n .IP "$io\->getline" 4 +.el .IP "\f(CW$io\fR\->getline" 4 +.IX Item "$io->getline" +This works like <$io> described in \*(L"I/O Operators\*(R" in perlop +except that it's more readable and can be safely called in a +list context but still returns just one line. If used as the conditional +within a \f(CW\*(C`while\*(C'\fR or C\-style \f(CW\*(C`for\*(C'\fR loop, however, you will need to +emulate the functionality of <$io> with \f(CW\*(C`defined($_ = $io\->getline)\*(C'\fR. +.ie n .IP "$io\->getlines" 4 +.el .IP "\f(CW$io\fR\->getlines" 4 +.IX Item "$io->getlines" +This works like <$io> when called in a list context to read all +the remaining lines in a file, except that it's more readable. +It will also \fBcroak()\fR if accidentally called in a scalar context. +.ie n .IP "$io\->ungetc ( \s-1ORD\s0 )" 4 +.el .IP "\f(CW$io\fR\->ungetc ( \s-1ORD\s0 )" 4 +.IX Item "$io->ungetc ( ORD )" +Pushes a character with the given ordinal value back onto the given +handle's input stream. Only one character of pushback per handle is +guaranteed. +.ie n .IP "$io\->write ( \s-1BUF, LEN\s0 [, \s-1OFFSET\s0 ] )" 4 +.el .IP "\f(CW$io\fR\->write ( \s-1BUF, LEN\s0 [, \s-1OFFSET\s0 ] )" 4 +.IX Item "$io->write ( BUF, LEN [, OFFSET ] )" +This \f(CW\*(C`write\*(C'\fR is somewhat like \f(CW\*(C`write\*(C'\fR found in C, in that it is the +opposite of read. The wrapper for the perl \f(CW\*(C`write\*(C'\fR function is +called \f(CW\*(C`format_write\*(C'\fR. However, whilst the C \f(CW\*(C`write\*(C'\fR function returns +the number of bytes written, this \f(CW\*(C`write\*(C'\fR function simply returns true +if successful (like \f(CW\*(C`print\*(C'\fR). A more C\-like \f(CW\*(C`write\*(C'\fR is \f(CW\*(C`syswrite\*(C'\fR +(see above). +.ie n .IP "$io\->error" 4 +.el .IP "\f(CW$io\fR\->error" 4 +.IX Item "$io->error" +Returns a true value if the given handle has experienced any errors +since it was opened or since the last call to \f(CW\*(C`clearerr\*(C'\fR, or if the +handle is invalid. It only returns false for a valid handle with no +outstanding errors. +.ie n .IP "$io\->clearerr" 4 +.el .IP "\f(CW$io\fR\->clearerr" 4 +.IX Item "$io->clearerr" +Clear the given handle's error indicator. Returns \-1 if the handle is +invalid, 0 otherwise. +.ie n .IP "$io\->sync" 4 +.el .IP "\f(CW$io\fR\->sync" 4 +.IX Item "$io->sync" +\&\f(CW\*(C`sync\*(C'\fR synchronizes a file's in-memory state with that on the +physical medium. \f(CW\*(C`sync\*(C'\fR does not operate at the perlio api level, but +operates on the file descriptor (similar to sysread, sysseek and +systell). This means that any data held at the perlio api level will not +be synchronized. To synchronize data that is buffered at the perlio api +level you must use the flush method. \f(CW\*(C`sync\*(C'\fR is not implemented on all +platforms. Returns \*(L"0 but true\*(R" on success, \f(CW\*(C`undef\*(C'\fR on error, \f(CW\*(C`undef\*(C'\fR +for an invalid handle. See \fBfsync\fR\|(3c). +.ie n .IP "$io\->flush" 4 +.el .IP "\f(CW$io\fR\->flush" 4 +.IX Item "$io->flush" +\&\f(CW\*(C`flush\*(C'\fR causes perl to flush any buffered data at the perlio api level. +Any unread data in the buffer will be discarded, and any unwritten data +will be written to the underlying file descriptor. Returns \*(L"0 but true\*(R" +on success, \f(CW\*(C`undef\*(C'\fR on error. +.ie n .IP "$io\->printflush ( \s-1ARGS\s0 )" 4 +.el .IP "\f(CW$io\fR\->printflush ( \s-1ARGS\s0 )" 4 +.IX Item "$io->printflush ( ARGS )" +Turns on autoflush, print \s-1ARGS\s0 and then restores the autoflush status of the +\&\f(CW\*(C`IO::Handle\*(C'\fR object. Returns the return value from print. +.ie n .IP "$io\->blocking ( [ \s-1BOOL\s0 ] )" 4 +.el .IP "\f(CW$io\fR\->blocking ( [ \s-1BOOL\s0 ] )" 4 +.IX Item "$io->blocking ( [ BOOL ] )" +If called with an argument \f(CW\*(C`blocking\*(C'\fR will turn on non-blocking \s-1IO\s0 if +\&\f(CW\*(C`BOOL\*(C'\fR is false, and turn it off if \f(CW\*(C`BOOL\*(C'\fR is true. +.Sp +\&\f(CW\*(C`blocking\*(C'\fR will return the value of the previous setting, or the +current setting if \f(CW\*(C`BOOL\*(C'\fR is not given. +.Sp +If an error occurs \f(CW\*(C`blocking\*(C'\fR will return undef and \f(CW$!\fR will be set. +.PP +If the C functions \fBsetbuf()\fR and/or \fBsetvbuf()\fR are available, then +\&\f(CW\*(C`IO::Handle::setbuf\*(C'\fR and \f(CW\*(C`IO::Handle::setvbuf\*(C'\fR set the buffering +policy for an IO::Handle. The calling sequences for the Perl functions +are the same as their C counterparts\*(--including the constants \f(CW\*(C`_IOFBF\*(C'\fR, +\&\f(CW\*(C`_IOLBF\*(C'\fR, and \f(CW\*(C`_IONBF\*(C'\fR for \fBsetvbuf()\fR\-\-except that the buffer parameter +specifies a scalar variable to use as a buffer. You should only +change the buffer before any I/O, or immediately after calling flush. +.PP +\&\s-1WARNING:\s0 The \fBIO::Handle::setvbuf()\fR is not available by default on +Perls 5.8.0 and later because \fBsetvbuf()\fR is rather specific to using +the stdio library, while Perl prefers the new perlio subsystem instead. +.PP +\&\s-1WARNING: A\s0 variable used as a buffer by \f(CW\*(C`setbuf\*(C'\fR or \f(CW\*(C`setvbuf\*(C'\fR \fBmust not +be modified\fR in any way until the IO::Handle is closed or \f(CW\*(C`setbuf\*(C'\fR or +\&\f(CW\*(C`setvbuf\*(C'\fR is called again, or memory corruption may result! Remember that +the order of global destruction is undefined, so even if your buffer +variable remains in scope until program termination, it may be undefined +before the file IO::Handle is closed. Note that you need to import the +constants \f(CW\*(C`_IOFBF\*(C'\fR, \f(CW\*(C`_IOLBF\*(C'\fR, and \f(CW\*(C`_IONBF\*(C'\fR explicitly. Like C, setbuf +returns nothing. setvbuf returns \*(L"0 but true\*(R", on success, \f(CW\*(C`undef\*(C'\fR on +failure. +.PP +Lastly, there is a special method for working under \fB\-T\fR and setuid/gid +scripts: +.ie n .IP "$io\->untaint" 4 +.el .IP "\f(CW$io\fR\->untaint" 4 +.IX Item "$io->untaint" +Marks the object as taint-clean, and as such data read from it will also +be considered taint-clean. Note that this is a very trusting action to +take, and appropriate consideration for the data source and potential +vulnerability should be kept in mind. Returns 0 on success, \-1 if setting +the taint-clean flag failed. (eg invalid handle) +.SH "NOTE" +.IX Header "NOTE" +An \f(CW\*(C`IO::Handle\*(C'\fR object is a reference to a symbol/GLOB reference (see +the \f(CW\*(C`Symbol\*(C'\fR package). Some modules that +inherit from \f(CW\*(C`IO::Handle\*(C'\fR may want to keep object related variables +in the hash table part of the \s-1GLOB.\s0 In an attempt to prevent modules +trampling on each other I propose the that any such module should prefix +its variables with its own name separated by _'s. For example the IO::Socket +module keeps a \f(CW\*(C`timeout\*(C'\fR variable in 'io_socket_timeout'. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlfunc, +\&\*(L"I/O Operators\*(R" in perlop, +IO::File +.SH "BUGS" +.IX Header "BUGS" +Due to backwards compatibility, all filehandles resemble objects +of class \f(CW\*(C`IO::Handle\*(C'\fR, or actually classes derived from that class. +They actually aren't. Which means you can't derive your own +class from \f(CW\*(C`IO::Handle\*(C'\fR and inherit those methods. +.SH "HISTORY" +.IX Header "HISTORY" +Derived from FileHandle.pm by Graham Barr <\fIgbarr@pobox.com\fR> diff --git a/data/miniconda3/man/man3/IO%3A%3APoll.3 b/data/miniconda3/man/man3/IO%3A%3APoll.3 new file mode 100644 index 0000000000000000000000000000000000000000..4016c8a1d00baabbaa0610a679fee9518b562723 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3APoll.3 @@ -0,0 +1,200 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Poll 3" +.TH IO::Poll 3 "2020-12-18" "perl v5.32.1" "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" +IO::Poll \- Object interface to system poll call +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Poll qw(POLLRDNORM POLLWRNORM POLLIN POLLHUP); +\& +\& $poll = IO::Poll\->new(); +\& +\& $poll\->mask($input_handle => POLLIN); +\& $poll\->mask($output_handle => POLLOUT); +\& +\& $poll\->poll($timeout); +\& +\& $ev = $poll\->events($input); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Poll\*(C'\fR is a simple interface to the system level poll routine. +.SH "METHODS" +.IX Header "METHODS" +.IP "mask ( \s-1IO\s0 [, \s-1EVENT_MASK\s0 ] )" 4 +.IX Item "mask ( IO [, EVENT_MASK ] )" +If \s-1EVENT_MASK\s0 is given, then, if \s-1EVENT_MASK\s0 is non-zero, \s-1IO\s0 is added to the +list of file descriptors and the next call to poll will check for +any event specified in \s-1EVENT_MASK.\s0 If \s-1EVENT_MASK\s0 is zero then \s-1IO\s0 will be +removed from the list of file descriptors. +.Sp +If \s-1EVENT_MASK\s0 is not given then the return value will be the current +event mask value for \s-1IO.\s0 +.IP "poll ( [ \s-1TIMEOUT\s0 ] )" 4 +.IX Item "poll ( [ TIMEOUT ] )" +Call the system level poll routine. If \s-1TIMEOUT\s0 is not specified then the +call will block. Returns the number of handles which had events +happen, or \-1 on error. +.IP "events ( \s-1IO\s0 )" 4 +.IX Item "events ( IO )" +Returns the event mask which represents the events that happened on \s-1IO\s0 +during the last call to \f(CW\*(C`poll\*(C'\fR. +.IP "remove ( \s-1IO\s0 )" 4 +.IX Item "remove ( IO )" +Remove \s-1IO\s0 from the list of file descriptors for the next poll. +.IP "handles( [ \s-1EVENT_MASK\s0 ] )" 4 +.IX Item "handles( [ EVENT_MASK ] )" +Returns a list of handles. If \s-1EVENT_MASK\s0 is not given then a list of all +handles known will be returned. If \s-1EVENT_MASK\s0 is given then a list +of handles will be returned which had one of the events specified by +\&\s-1EVENT_MASK\s0 happen during the last call ti \f(CW\*(C`poll\*(C'\fR +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBpoll\fR\|(2), IO::Handle, IO::Select +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ASeekable.3 b/data/miniconda3/man/man3/IO%3A%3ASeekable.3 new file mode 100644 index 0000000000000000000000000000000000000000..b62a987db9cf98821958ee1c79152eca12e23bb3 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASeekable.3 @@ -0,0 +1,215 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Seekable 3" +.TH IO::Seekable 3 "2020-12-18" "perl v5.32.1" "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" +IO::Seekable \- supply seek based methods for I/O objects +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use IO::Seekable; +\& package IO::Something; +\& @ISA = qw(IO::Seekable); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Seekable\*(C'\fR does not have a constructor of its own as it is intended to +be inherited by other \f(CW\*(C`IO::Handle\*(C'\fR based objects. It provides methods +which allow seeking of the file descriptors. +.ie n .IP "$io\->getpos" 4 +.el .IP "\f(CW$io\fR\->getpos" 4 +.IX Item "$io->getpos" +Returns an opaque value that represents the current position of the +IO::File, or \f(CW\*(C`undef\*(C'\fR if this is not possible (eg an unseekable stream such +as a terminal, pipe or socket). If the \fBfgetpos()\fR function is available in +your C library it is used to implements getpos, else perl emulates getpos +using C's \fBftell()\fR function. +.ie n .IP "$io\->setpos" 4 +.el .IP "\f(CW$io\fR\->setpos" 4 +.IX Item "$io->setpos" +Uses the value of a previous getpos call to return to a previously visited +position. Returns \*(L"0 but true\*(R" on success, \f(CW\*(C`undef\*(C'\fR on failure. +.PP +See perlfunc for complete descriptions of each of the following +supported \f(CW\*(C`IO::Seekable\*(C'\fR methods, which are just front ends for the +corresponding built-in functions: +.ie n .IP "$io\->seek ( \s-1POS, WHENCE\s0 )" 4 +.el .IP "\f(CW$io\fR\->seek ( \s-1POS, WHENCE\s0 )" 4 +.IX Item "$io->seek ( POS, WHENCE )" +Seek the IO::File to position \s-1POS,\s0 relative to \s-1WHENCE:\s0 +.RS 4 +.IP "WHENCE=0 (\s-1SEEK_SET\s0)" 8 +.IX Item "WHENCE=0 (SEEK_SET)" +\&\s-1POS\s0 is absolute position. (Seek relative to the start of the file) +.IP "WHENCE=1 (\s-1SEEK_CUR\s0)" 8 +.IX Item "WHENCE=1 (SEEK_CUR)" +\&\s-1POS\s0 is an offset from the current position. (Seek relative to current) +.IP "WHENCE=2 (\s-1SEEK_END\s0)" 8 +.IX Item "WHENCE=2 (SEEK_END)" +\&\s-1POS\s0 is an offset from the end of the file. (Seek relative to end) +.RE +.RS 4 +.Sp +The SEEK_* constants can be imported from the \f(CW\*(C`Fcntl\*(C'\fR module if you +don't wish to use the numbers \f(CW0\fR \f(CW1\fR or \f(CW2\fR in your code. +.Sp +Returns \f(CW1\fR upon success, \f(CW0\fR otherwise. +.RE +.ie n .IP "$io\->sysseek( \s-1POS, WHENCE\s0 )" 4 +.el .IP "\f(CW$io\fR\->sysseek( \s-1POS, WHENCE\s0 )" 4 +.IX Item "$io->sysseek( POS, WHENCE )" +Similar to \f(CW$io\fR\->seek, but sets the IO::File's position using the system +call \fBlseek\fR\|(2) directly, so will confuse most perl \s-1IO\s0 operators except +sysread and syswrite (see perlfunc for full details) +.Sp +Returns the new position, or \f(CW\*(C`undef\*(C'\fR on failure. A position +of zero is returned as the string \f(CW"0 but true"\fR +.ie n .IP "$io\->tell" 4 +.el .IP "\f(CW$io\fR\->tell" 4 +.IX Item "$io->tell" +Returns the IO::File's current position, or \-1 on error. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlfunc, +\&\*(L"I/O Operators\*(R" in perlop, +IO::Handle +IO::File +.SH "HISTORY" +.IX Header "HISTORY" +Derived from FileHandle.pm by Graham Barr diff --git a/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AINET.3 b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AINET.3 new file mode 100644 index 0000000000000000000000000000000000000000..da66fd4a37d2cedd109be8763b1e90274c6ecf05 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AINET.3 @@ -0,0 +1,277 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Socket::INET 3" +.TH IO::Socket::INET 3 "2020-12-18" "perl v5.32.1" "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" +IO::Socket::INET \- Object interface for AF_INET domain sockets +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Socket::INET; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Socket::INET\*(C'\fR provides an object interface to creating and using sockets +in the \s-1AF_INET\s0 domain. It is built upon the IO::Socket interface and +inherits all the methods defined by IO::Socket. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [\s-1ARGS\s0] )" 4 +.IX Item "new ( [ARGS] )" +Creates an \f(CW\*(C`IO::Socket::INET\*(C'\fR object, which is a reference to a +newly created symbol (see the \f(CW\*(C`Symbol\*(C'\fR package). \f(CW\*(C`new\*(C'\fR +optionally takes arguments, these arguments are in key-value pairs. +.Sp +In addition to the key-value pairs accepted by IO::Socket, +\&\f(CW\*(C`IO::Socket::INET\*(C'\fR provides. +.Sp +.Vb 10 +\& PeerAddr Remote host address [:] +\& PeerHost Synonym for PeerAddr +\& PeerPort Remote port or service [()] | +\& LocalAddr Local host bind address hostname[:port] +\& LocalHost Synonym for LocalAddr +\& LocalPort Local host bind port [()] | +\& Proto Protocol name (or number) "tcp" | "udp" | ... +\& Type Socket type SOCK_STREAM | SOCK_DGRAM | ... +\& Listen Queue size for listen +\& ReuseAddr Set SO_REUSEADDR before binding +\& Reuse Set SO_REUSEADDR before binding (deprecated, +\& prefer ReuseAddr) +\& ReusePort Set SO_REUSEPORT before binding +\& Broadcast Set SO_BROADCAST before binding +\& Timeout Timeout value for various operations +\& MultiHomed Try all addresses for multi\-homed hosts +\& Blocking Determine if connection will be blocking mode +.Ve +.Sp +If \f(CW\*(C`Listen\*(C'\fR is defined then a listen socket is created, else if the +socket type, which is derived from the protocol, is \s-1SOCK_STREAM\s0 then +\&\fBconnect()\fR is called. If the \f(CW\*(C`Listen\*(C'\fR argument is given, but false, +the queue size will be set to 5. +.Sp +Although it is not illegal, the use of \f(CW\*(C`MultiHomed\*(C'\fR on a socket +which is in non-blocking mode is of little use. This is because the +first connect will never fail with a timeout as the connect call +will not block. +.Sp +The \f(CW\*(C`PeerAddr\*(C'\fR can be a hostname or the IP-address on the +\&\*(L"xx.xx.xx.xx\*(R" form. The \f(CW\*(C`PeerPort\*(C'\fR can be a number or a symbolic +service name. The service name might be followed by a number in +parenthesis which is used if the service is not known by the system. +The \f(CW\*(C`PeerPort\*(C'\fR specification can also be embedded in the \f(CW\*(C`PeerAddr\*(C'\fR +by preceding it with a \*(L":\*(R". +.Sp +If \f(CW\*(C`Proto\*(C'\fR is not given and you specify a symbolic \f(CW\*(C`PeerPort\*(C'\fR port, +then the constructor will try to derive \f(CW\*(C`Proto\*(C'\fR from the service +name. As a last resort \f(CW\*(C`Proto\*(C'\fR \*(L"tcp\*(R" is assumed. The \f(CW\*(C`Type\*(C'\fR +parameter will be deduced from \f(CW\*(C`Proto\*(C'\fR if not specified. +.Sp +If the constructor is only passed a single argument, it is assumed to +be a \f(CW\*(C`PeerAddr\*(C'\fR specification. +.Sp +If \f(CW\*(C`Blocking\*(C'\fR is set to 0, the connection will be in nonblocking mode. +If not specified it defaults to 1 (blocking mode). +.Sp +Examples: +.Sp +.Vb 3 +\& $sock = IO::Socket::INET\->new(PeerAddr => \*(Aqwww.perl.org\*(Aq, +\& PeerPort => \*(Aqhttp(80)\*(Aq, +\& Proto => \*(Aqtcp\*(Aq); +\& +\& $sock = IO::Socket::INET\->new(PeerAddr => \*(Aqlocalhost:smtp(25)\*(Aq); +\& +\& $sock = IO::Socket::INET\->new(Listen => 5, +\& LocalAddr => \*(Aqlocalhost\*(Aq, +\& LocalPort => 9000, +\& Proto => \*(Aqtcp\*(Aq); +\& +\& $sock = IO::Socket::INET\->new(\*(Aq127.0.0.1:25\*(Aq); +\& +\& $sock = IO::Socket::INET\->new( +\& PeerPort => 9999, +\& PeerAddr => inet_ntoa(INADDR_BROADCAST), +\& Proto => udp, +\& LocalAddr => \*(Aqlocalhost\*(Aq, +\& Broadcast => 1 ) +\& or die "Can\*(Aqt bind : $@\en"; +.Ve +.Sp +\&\fB\s-1NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE\s0\fR +.Sp +As of \s-1VERSION 1.18\s0 all IO::Socket objects have autoflush turned on +by default. This was not the case with earlier releases. +.Sp +\&\fB\s-1NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE\s0\fR +.SS "\s-1METHODS\s0" +.IX Subsection "METHODS" +.IP "sockaddr ()" 4 +.IX Item "sockaddr ()" +Return the address part of the sockaddr structure for the socket +.IP "sockport ()" 4 +.IX Item "sockport ()" +Return the port number that the socket is using on the local host +.IP "sockhost ()" 4 +.IX Item "sockhost ()" +Return the address part of the sockaddr structure for the socket in a +text form xx.xx.xx.xx +.IP "peeraddr ()" 4 +.IX Item "peeraddr ()" +Return the address part of the sockaddr structure for the socket on +the peer host +.IP "peerport ()" 4 +.IX Item "peerport ()" +Return the port number for the socket on the peer host. +.IP "peerhost ()" 4 +.IX Item "peerhost ()" +Return the address part of the sockaddr structure for the socket on the +peer host in a text form xx.xx.xx.xx +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Socket, IO::Socket +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1996\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AIP.3 b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AIP.3 new file mode 100644 index 0000000000000000000000000000000000000000..b9af76629af6744761c3625b84391ef54e4219ff --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AIP.3 @@ -0,0 +1,650 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Socket::IP 3" +.TH IO::Socket::IP 3 "2020-12-18" "perl v5.32.1" "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" +"IO::Socket::IP" \- Family\-neutral IP socket supporting both IPv4 and IPv6 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Socket::IP; +\& +\& my $sock = IO::Socket::IP\->new( +\& PeerHost => "www.google.com", +\& PeerPort => "http", +\& Type => SOCK_STREAM, +\& ) or die "Cannot construct socket \- $@"; +\& +\& my $familyname = ( $sock\->sockdomain == PF_INET6 ) ? "IPv6" : +\& ( $sock\->sockdomain == PF_INET ) ? "IPv4" : +\& "unknown"; +\& +\& printf "Connected to google via %s\en", $familyname; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a protocol-independent way to use IPv4 and IPv6 sockets, +intended as a replacement for IO::Socket::INET. Most constructor arguments +and methods are provided in a backward-compatible way. For a list of known +differences, see the \f(CW\*(C`IO::Socket::INET\*(C'\fR \s-1INCOMPATIBILITES\s0 section below. +.PP +It uses the \f(CWgetaddrinfo(3)\fR function to convert hostnames and service names +or port numbers into sets of possible addresses to connect to or listen on. +This allows it to work for IPv6 where the system supports it, while still +falling back to IPv4\-only on systems which don't. +.ie n .SH "REPLACING ""IO::Socket"" DEFAULT BEHAVIOUR" +.el .SH "REPLACING \f(CWIO::Socket\fP DEFAULT BEHAVIOUR" +.IX Header "REPLACING IO::Socket DEFAULT BEHAVIOUR" +By placing \f(CW\*(C`\-register\*(C'\fR in the import list, IO::Socket uses +\&\f(CW\*(C`IO::Socket::IP\*(C'\fR rather than \f(CW\*(C`IO::Socket::INET\*(C'\fR as the class that handles +\&\f(CW\*(C`PF_INET\*(C'\fR. \f(CW\*(C`IO::Socket\*(C'\fR will also use \f(CW\*(C`IO::Socket::IP\*(C'\fR rather than +\&\f(CW\*(C`IO::Socket::INET6\*(C'\fR to handle \f(CW\*(C`PF_INET6\*(C'\fR, provided that the \f(CW\*(C`AF_INET6\*(C'\fR +constant is available. +.PP +Changing \f(CW\*(C`IO::Socket\*(C'\fR's default behaviour means that calling the +\&\f(CW\*(C`IO::Socket\*(C'\fR constructor with either \f(CW\*(C`PF_INET\*(C'\fR or \f(CW\*(C`PF_INET6\*(C'\fR as the +\&\f(CW\*(C`Domain\*(C'\fR parameter will yield an \f(CW\*(C`IO::Socket::IP\*(C'\fR object. +.PP +.Vb 1 +\& use IO::Socket::IP \-register; +\& +\& my $sock = IO::Socket\->new( +\& Domain => PF_INET6, +\& LocalHost => "::1", +\& Listen => 1, +\& ) or die "Cannot create socket \- $@\en"; +\& +\& print "Created a socket of type " . ref($sock) . "\en"; +.Ve +.PP +Note that \f(CW\*(C`\-register\*(C'\fR is a global setting that applies to the entire program; +it cannot be applied only for certain callers, removed, or limited by lexical +scope. +.SH "CONSTRUCTORS" +.IX Header "CONSTRUCTORS" +.ie n .SS "$sock = IO::Socket::IP\->new( %args )" +.el .SS "\f(CW$sock\fP = IO::Socket::IP\->new( \f(CW%args\fP )" +.IX Subsection "$sock = IO::Socket::IP->new( %args )" +Creates a new \f(CW\*(C`IO::Socket::IP\*(C'\fR object, containing a newly created socket +handle according to the named arguments passed. The recognised arguments are: +.IP "PeerHost => \s-1STRING\s0" 8 +.IX Item "PeerHost => STRING" +.PD 0 +.IP "PeerService => \s-1STRING\s0" 8 +.IX Item "PeerService => STRING" +.PD +Hostname and service name for the peer to \f(CW\*(C`connect()\*(C'\fR to. The service name +may be given as a port number, as a decimal string. +.IP "PeerAddr => \s-1STRING\s0" 8 +.IX Item "PeerAddr => STRING" +.PD 0 +.IP "PeerPort => \s-1STRING\s0" 8 +.IX Item "PeerPort => STRING" +.PD +For symmetry with the accessor methods and compatibility with +\&\f(CW\*(C`IO::Socket::INET\*(C'\fR, these are accepted as synonyms for \f(CW\*(C`PeerHost\*(C'\fR and +\&\f(CW\*(C`PeerService\*(C'\fR respectively. +.IP "PeerAddrInfo => \s-1ARRAY\s0" 8 +.IX Item "PeerAddrInfo => ARRAY" +Alternate form of specifying the peer to \f(CW\*(C`connect()\*(C'\fR to. This should be an +array of the form returned by \f(CW\*(C`Socket::getaddrinfo\*(C'\fR. +.Sp +This parameter takes precedence over the \f(CW\*(C`Peer*\*(C'\fR, \f(CW\*(C`Family\*(C'\fR, \f(CW\*(C`Type\*(C'\fR and +\&\f(CW\*(C`Proto\*(C'\fR arguments. +.IP "LocalHost => \s-1STRING\s0" 8 +.IX Item "LocalHost => STRING" +.PD 0 +.IP "LocalService => \s-1STRING\s0" 8 +.IX Item "LocalService => STRING" +.PD +Hostname and service name for the local address to \f(CW\*(C`bind()\*(C'\fR to. +.IP "LocalAddr => \s-1STRING\s0" 8 +.IX Item "LocalAddr => STRING" +.PD 0 +.IP "LocalPort => \s-1STRING\s0" 8 +.IX Item "LocalPort => STRING" +.PD +For symmetry with the accessor methods and compatibility with +\&\f(CW\*(C`IO::Socket::INET\*(C'\fR, these are accepted as synonyms for \f(CW\*(C`LocalHost\*(C'\fR and +\&\f(CW\*(C`LocalService\*(C'\fR respectively. +.IP "LocalAddrInfo => \s-1ARRAY\s0" 8 +.IX Item "LocalAddrInfo => ARRAY" +Alternate form of specifying the local address to \f(CW\*(C`bind()\*(C'\fR to. This should be +an array of the form returned by \f(CW\*(C`Socket::getaddrinfo\*(C'\fR. +.Sp +This parameter takes precedence over the \f(CW\*(C`Local*\*(C'\fR, \f(CW\*(C`Family\*(C'\fR, \f(CW\*(C`Type\*(C'\fR and +\&\f(CW\*(C`Proto\*(C'\fR arguments. +.IP "Family => \s-1INT\s0" 8 +.IX Item "Family => INT" +The address family to pass to \f(CW\*(C`getaddrinfo\*(C'\fR (e.g. \f(CW\*(C`AF_INET\*(C'\fR, \f(CW\*(C`AF_INET6\*(C'\fR). +Normally this will be left undefined, and \f(CW\*(C`getaddrinfo\*(C'\fR will search using any +address family supported by the system. +.IP "Type => \s-1INT\s0" 8 +.IX Item "Type => INT" +The socket type to pass to \f(CW\*(C`getaddrinfo\*(C'\fR (e.g. \f(CW\*(C`SOCK_STREAM\*(C'\fR, +\&\f(CW\*(C`SOCK_DGRAM\*(C'\fR). Normally defined by the caller; if left undefined +\&\f(CW\*(C`getaddrinfo\*(C'\fR may attempt to infer the type from the service name. +.IP "Proto => \s-1STRING\s0 or \s-1INT\s0" 8 +.IX Item "Proto => STRING or INT" +The \s-1IP\s0 protocol to use for the socket (e.g. \f(CW\*(Aqtcp\*(Aq\fR, \f(CW\*(C`IPPROTO_TCP\*(C'\fR, +\&\f(CW\*(Aqudp\*(Aq\fR,\f(CW\*(C`IPPROTO_UDP\*(C'\fR). Normally this will be left undefined, and either +\&\f(CW\*(C`getaddrinfo\*(C'\fR or the kernel will choose an appropriate value. May be given +either in string name or numeric form. +.IP "GetAddrInfoFlags => \s-1INT\s0" 8 +.IX Item "GetAddrInfoFlags => INT" +More flags to pass to the \f(CW\*(C`getaddrinfo()\*(C'\fR function. If not supplied, a +default of \f(CW\*(C`AI_ADDRCONFIG\*(C'\fR will be used. +.Sp +These flags will be combined with \f(CW\*(C`AI_PASSIVE\*(C'\fR if the \f(CW\*(C`Listen\*(C'\fR argument is +given. For more information see the documentation about \f(CW\*(C`getaddrinfo()\*(C'\fR in +the Socket module. +.IP "Listen => \s-1INT\s0" 8 +.IX Item "Listen => INT" +If defined, puts the socket into listening mode where new connections can be +accepted using the \f(CW\*(C`accept\*(C'\fR method. The value given is used as the +\&\f(CWlisten(2)\fR queue size. +.IP "ReuseAddr => \s-1BOOL\s0" 8 +.IX Item "ReuseAddr => BOOL" +If true, set the \f(CW\*(C`SO_REUSEADDR\*(C'\fR sockopt +.IP "ReusePort => \s-1BOOL\s0" 8 +.IX Item "ReusePort => BOOL" +If true, set the \f(CW\*(C`SO_REUSEPORT\*(C'\fR sockopt (not all OSes implement this sockopt) +.IP "Broadcast => \s-1BOOL\s0" 8 +.IX Item "Broadcast => BOOL" +If true, set the \f(CW\*(C`SO_BROADCAST\*(C'\fR sockopt +.IP "Sockopts => \s-1ARRAY\s0" 8 +.IX Item "Sockopts => ARRAY" +An optional array of other socket options to apply after the three listed +above. The value is an \s-1ARRAY\s0 containing 2\- or 3\-element ARRAYrefs. Each inner +array relates to a single option, giving the level and option name, and an +optional value. If the value element is missing, it will be given the value of +a platform-sized integer 1 constant (i.e. suitable to enable most of the +common boolean options). +.Sp +For example, both options given below are equivalent to setting \f(CW\*(C`ReuseAddr\*(C'\fR. +.Sp +.Vb 4 +\& Sockopts => [ +\& [ SOL_SOCKET, SO_REUSEADDR ], +\& [ SOL_SOCKET, SO_REUSEADDR, pack( "i", 1 ) ], +\& ] +.Ve +.IP "V6Only => \s-1BOOL\s0" 8 +.IX Item "V6Only => BOOL" +If defined, set the \f(CW\*(C`IPV6_V6ONLY\*(C'\fR sockopt when creating \f(CW\*(C`PF_INET6\*(C'\fR sockets +to the given value. If true, a listening-mode socket will only listen on the +\&\f(CW\*(C`AF_INET6\*(C'\fR addresses; if false it will also accept connections from +\&\f(CW\*(C`AF_INET\*(C'\fR addresses. +.Sp +If not defined, the socket option will not be changed, and default value set +by the operating system will apply. For repeatable behaviour across platforms +it is recommended this value always be defined for listening-mode sockets. +.Sp +Note that not all platforms support disabling this option. Some, at least +OpenBSD and MirBSD, will fail with \f(CW\*(C`EINVAL\*(C'\fR if you attempt to disable it. +To determine whether it is possible to disable, you may use the class method +.Sp +.Vb 6 +\& if( IO::Socket::IP\->CAN_DISABLE_V6ONLY ) { +\& ... +\& } +\& else { +\& ... +\& } +.Ve +.Sp +If your platform does not support disabling this option but you still want to +listen for both \f(CW\*(C`AF_INET\*(C'\fR and \f(CW\*(C`AF_INET6\*(C'\fR connections you will have to create +two listening sockets, one bound to each protocol. +.IP "MultiHomed" 8 +.IX Item "MultiHomed" +This \f(CW\*(C`IO::Socket::INET\*(C'\fR\-style argument is ignored, except if it is defined +but false. See the \f(CW\*(C`IO::Socket::INET\*(C'\fR \s-1INCOMPATIBILITES\s0 section below. +.Sp +However, the behaviour it enables is always performed by \f(CW\*(C`IO::Socket::IP\*(C'\fR. +.IP "Blocking => \s-1BOOL\s0" 8 +.IX Item "Blocking => BOOL" +If defined but false, the socket will be set to non-blocking mode. Otherwise +it will default to blocking mode. See the NON-BLOCKING section below for more +detail. +.IP "Timeout => \s-1NUM\s0" 8 +.IX Item "Timeout => NUM" +If defined, gives a maximum time in seconds to block per \f(CW\*(C`connect()\*(C'\fR call +when in blocking mode. If missing, no timeout is applied other than that +provided by the underlying operating system. When in non-blocking mode this +parameter is ignored. +.Sp +Note that if the hostname resolves to multiple address candidates, the same +timeout will apply to each connection attempt individually, rather than to the +operation as a whole. Further note that the timeout does not apply to the +initial hostname resolve operation, if connecting by hostname. +.Sp +This behviour is copied inspired by \f(CW\*(C`IO::Socket::INET\*(C'\fR; for more fine grained +control over connection timeouts, consider performing a nonblocking connect +directly. +.PP +If neither \f(CW\*(C`Type\*(C'\fR nor \f(CW\*(C`Proto\*(C'\fR hints are provided, a default of +\&\f(CW\*(C`SOCK_STREAM\*(C'\fR and \f(CW\*(C`IPPROTO_TCP\*(C'\fR respectively will be set, to maintain +compatibility with \f(CW\*(C`IO::Socket::INET\*(C'\fR. Other named arguments that are not +recognised are ignored. +.PP +If neither \f(CW\*(C`Family\*(C'\fR nor any hosts or addresses are passed, nor any +\&\f(CW*AddrInfo\fR, then the constructor has no information on which to decide a +socket family to create. In this case, it performs a \f(CW\*(C`getaddinfo\*(C'\fR call with +the \f(CW\*(C`AI_ADDRCONFIG\*(C'\fR flag, no host name, and a service name of \f(CW"0"\fR, and +uses the family of the first returned result. +.PP +If the constructor fails, it will set \f(CW$@\fR to an appropriate error message; +this may be from \f(CW$!\fR or it may be some other string; not every failure +necessarily has an associated \f(CW\*(C`errno\*(C'\fR value. +.ie n .SS "$sock = IO::Socket::IP\->new( $peeraddr )" +.el .SS "\f(CW$sock\fP = IO::Socket::IP\->new( \f(CW$peeraddr\fP )" +.IX Subsection "$sock = IO::Socket::IP->new( $peeraddr )" +As a special case, if the constructor is passed a single argument (as +opposed to an even-sized list of key/value pairs), it is taken to be the value +of the \f(CW\*(C`PeerAddr\*(C'\fR parameter. This is parsed in the same way, according to the +behaviour given in the \f(CW\*(C`PeerHost\*(C'\fR \s-1AND\s0 \f(CW\*(C`LocalHost\*(C'\fR \s-1PARSING\s0 section below. +.SH "METHODS" +.IX Header "METHODS" +As well as the following methods, this class inherits all the methods in +IO::Socket and IO::Handle. +.ie n .SS "( $host, $service ) = $sock\->sockhost_service( $numeric )" +.el .SS "( \f(CW$host\fP, \f(CW$service\fP ) = \f(CW$sock\fP\->sockhost_service( \f(CW$numeric\fP )" +.IX Subsection "( $host, $service ) = $sock->sockhost_service( $numeric )" +Returns the hostname and service name of the local address (that is, the +socket address given by the \f(CW\*(C`sockname\*(C'\fR method). +.PP +If \f(CW$numeric\fR is true, these will be given in numeric form rather than being +resolved into names. +.PP +The following four convenience wrappers may be used to obtain one of the two +values returned here. If both host and service names are required, this method +is preferable to the following wrappers, because it will call +\&\f(CWgetnameinfo(3)\fR only once. +.ie n .SS "$addr = $sock\->sockhost" +.el .SS "\f(CW$addr\fP = \f(CW$sock\fP\->sockhost" +.IX Subsection "$addr = $sock->sockhost" +Return the numeric form of the local address as a textual representation +.ie n .SS "$port = $sock\->sockport" +.el .SS "\f(CW$port\fP = \f(CW$sock\fP\->sockport" +.IX Subsection "$port = $sock->sockport" +Return the numeric form of the local port number +.ie n .SS "$host = $sock\->sockhostname" +.el .SS "\f(CW$host\fP = \f(CW$sock\fP\->sockhostname" +.IX Subsection "$host = $sock->sockhostname" +Return the resolved name of the local address +.ie n .SS "$service = $sock\->sockservice" +.el .SS "\f(CW$service\fP = \f(CW$sock\fP\->sockservice" +.IX Subsection "$service = $sock->sockservice" +Return the resolved name of the local port number +.ie n .SS "$addr = $sock\->sockaddr" +.el .SS "\f(CW$addr\fP = \f(CW$sock\fP\->sockaddr" +.IX Subsection "$addr = $sock->sockaddr" +Return the local address as a binary octet string +.ie n .SS "( $host, $service ) = $sock\->peerhost_service( $numeric )" +.el .SS "( \f(CW$host\fP, \f(CW$service\fP ) = \f(CW$sock\fP\->peerhost_service( \f(CW$numeric\fP )" +.IX Subsection "( $host, $service ) = $sock->peerhost_service( $numeric )" +Returns the hostname and service name of the peer address (that is, the +socket address given by the \f(CW\*(C`peername\*(C'\fR method), similar to the +\&\f(CW\*(C`sockhost_service\*(C'\fR method. +.PP +The following four convenience wrappers may be used to obtain one of the two +values returned here. If both host and service names are required, this method +is preferable to the following wrappers, because it will call +\&\f(CWgetnameinfo(3)\fR only once. +.ie n .SS "$addr = $sock\->peerhost" +.el .SS "\f(CW$addr\fP = \f(CW$sock\fP\->peerhost" +.IX Subsection "$addr = $sock->peerhost" +Return the numeric form of the peer address as a textual representation +.ie n .SS "$port = $sock\->peerport" +.el .SS "\f(CW$port\fP = \f(CW$sock\fP\->peerport" +.IX Subsection "$port = $sock->peerport" +Return the numeric form of the peer port number +.ie n .SS "$host = $sock\->peerhostname" +.el .SS "\f(CW$host\fP = \f(CW$sock\fP\->peerhostname" +.IX Subsection "$host = $sock->peerhostname" +Return the resolved name of the peer address +.ie n .SS "$service = $sock\->peerservice" +.el .SS "\f(CW$service\fP = \f(CW$sock\fP\->peerservice" +.IX Subsection "$service = $sock->peerservice" +Return the resolved name of the peer port number +.ie n .SS "$addr = $peer\->peeraddr" +.el .SS "\f(CW$addr\fP = \f(CW$peer\fP\->peeraddr" +.IX Subsection "$addr = $peer->peeraddr" +Return the peer address as a binary octet string +.ie n .SS "$inet = $sock\->as_inet" +.el .SS "\f(CW$inet\fP = \f(CW$sock\fP\->as_inet" +.IX Subsection "$inet = $sock->as_inet" +Returns a new IO::Socket::INET instance wrapping the same filehandle. This +may be useful in cases where it is required, for backward-compatibility, to +have a real object of \f(CW\*(C`IO::Socket::INET\*(C'\fR type instead of \f(CW\*(C`IO::Socket::IP\*(C'\fR. +The new object will wrap the same underlying socket filehandle as the +original, so care should be taken not to continue to use both objects +concurrently. Ideally the original \f(CW$sock\fR should be discarded after this +method is called. +.PP +This method checks that the socket domain is \f(CW\*(C`PF_INET\*(C'\fR and will throw an +exception if it isn't. +.SH "NON-BLOCKING" +.IX Header "NON-BLOCKING" +If the constructor is passed a defined but false value for the \f(CW\*(C`Blocking\*(C'\fR +argument then the socket is put into non-blocking mode. When in non-blocking +mode, the socket will not be set up by the time the constructor returns, +because the underlying \f(CWconnect(2)\fR syscall would otherwise have to block. +.PP +The non-blocking behaviour is an extension of the \f(CW\*(C`IO::Socket::INET\*(C'\fR \s-1API,\s0 +unique to \f(CW\*(C`IO::Socket::IP\*(C'\fR, because the former does not support multi-homed +non-blocking connect. +.PP +When using non-blocking mode, the caller must repeatedly check for +writeability on the filehandle (for instance using \f(CW\*(C`select\*(C'\fR or \f(CW\*(C`IO::Poll\*(C'\fR). +Each time the filehandle is ready to write, the \f(CW\*(C`connect\*(C'\fR method must be +called, with no arguments. Note that some operating systems, most notably +\&\f(CW\*(C`MSWin32\*(C'\fR do not report a \f(CW\*(C`connect()\*(C'\fR failure using write-ready; so you must +also \f(CW\*(C`select()\*(C'\fR for exceptional status. +.PP +While \f(CW\*(C`connect\*(C'\fR returns false, the value of \f(CW$!\fR indicates whether it should +be tried again (by being set to the value \f(CW\*(C`EINPROGRESS\*(C'\fR, or \f(CW\*(C`EWOULDBLOCK\*(C'\fR on +MSWin32), or whether a permanent error has occurred (e.g. \f(CW\*(C`ECONNREFUSED\*(C'\fR). +.PP +Once the socket has been connected to the peer, \f(CW\*(C`connect\*(C'\fR will return true +and the socket will now be ready to use. +.PP +Note that calls to the platform's underlying \f(CWgetaddrinfo(3)\fR function may +block. If \f(CW\*(C`IO::Socket::IP\*(C'\fR has to perform this lookup, the constructor will +block even when in non-blocking mode. +.PP +To avoid this blocking behaviour, the caller should pass in the result of such +a lookup using the \f(CW\*(C`PeerAddrInfo\*(C'\fR or \f(CW\*(C`LocalAddrInfo\*(C'\fR arguments. This can be +achieved by using Net::LibAsyncNS, or the \f(CWgetaddrinfo(3)\fR function can be +called in a child process. +.PP +.Vb 2 +\& use IO::Socket::IP; +\& use Errno qw( EINPROGRESS EWOULDBLOCK ); +\& +\& my @peeraddrinfo = ... # Caller must obtain the getaddinfo result here +\& +\& my $socket = IO::Socket::IP\->new( +\& PeerAddrInfo => \e@peeraddrinfo, +\& Blocking => 0, +\& ) or die "Cannot construct socket \- $@"; +\& +\& while( !$socket\->connect and ( $! == EINPROGRESS || $! == EWOULDBLOCK ) ) { +\& my $wvec = \*(Aq\*(Aq; +\& vec( $wvec, fileno $socket, 1 ) = 1; +\& my $evec = \*(Aq\*(Aq; +\& vec( $evec, fileno $socket, 1 ) = 1; +\& +\& select( undef, $wvec, $evec, undef ) or die "Cannot select \- $!"; +\& } +\& +\& die "Cannot connect \- $!" if $!; +\& +\& ... +.Ve +.PP +The example above uses \f(CW\*(C`select()\*(C'\fR, but any similar mechanism should work +analogously. \f(CW\*(C`IO::Socket::IP\*(C'\fR takes care when creating new socket filehandles +to preserve the actual file descriptor number, so such techniques as \f(CW\*(C`poll\*(C'\fR +or \f(CW\*(C`epoll\*(C'\fR should be transparent to its reallocation of a different socket +underneath, perhaps in order to switch protocol family between \f(CW\*(C`PF_INET\*(C'\fR and +\&\f(CW\*(C`PF_INET6\*(C'\fR. +.PP +For another example using \f(CW\*(C`IO::Poll\*(C'\fR and \f(CW\*(C`Net::LibAsyncNS\*(C'\fR, see the +\&\fIexamples/nonblocking_libasyncns.pl\fR file in the module distribution. +.ie n .SH """PeerHost"" AND ""LocalHost"" PARSING" +.el .SH "\f(CWPeerHost\fP AND \f(CWLocalHost\fP PARSING" +.IX Header "PeerHost AND LocalHost PARSING" +To support the \f(CW\*(C`IO::Socket::INET\*(C'\fR \s-1API,\s0 the host and port information may be +passed in a single string rather than as two separate arguments. +.PP +If either \f(CW\*(C`LocalHost\*(C'\fR or \f(CW\*(C`PeerHost\*(C'\fR (or their \f(CW\*(C`...Addr\*(C'\fR synonyms) have any +of the following special forms then special parsing is applied. +.PP +The value of the \f(CW\*(C`...Host\*(C'\fR argument will be split to give both the hostname +and port (or service name): +.PP +.Vb 3 +\& hostname.example.org:http # Host name +\& 192.0.2.1:80 # IPv4 address +\& [2001:db8::1]:80 # IPv6 address +.Ve +.PP +In each case, the port or service name (e.g. \f(CW80\fR) is passed as the +\&\f(CW\*(C`LocalService\*(C'\fR or \f(CW\*(C`PeerService\*(C'\fR argument. +.PP +Either of \f(CW\*(C`LocalService\*(C'\fR or \f(CW\*(C`PeerService\*(C'\fR (or their \f(CW\*(C`...Port\*(C'\fR synonyms) can +be either a service name, a decimal number, or a string containing both a +service name and number, in a form such as +.PP +.Vb 1 +\& http(80) +.Ve +.PP +In this case, the name (\f(CW\*(C`http\*(C'\fR) will be tried first, but if the resolver does +not understand it then the port number (\f(CW80\fR) will be used instead. +.PP +If the \f(CW\*(C`...Host\*(C'\fR argument is in this special form and the corresponding +\&\f(CW\*(C`...Service\*(C'\fR or \f(CW\*(C`...Port\*(C'\fR argument is also defined, the one parsed from +the \f(CW\*(C`...Host\*(C'\fR argument will take precedence and the other will be ignored. +.ie n .SS "( $host, $port ) = IO::Socket::IP\->split_addr( $addr )" +.el .SS "( \f(CW$host\fP, \f(CW$port\fP ) = IO::Socket::IP\->split_addr( \f(CW$addr\fP )" +.IX Subsection "( $host, $port ) = IO::Socket::IP->split_addr( $addr )" +Utility method that provides the parsing functionality described above. +Returns a 2\-element list, containing either the split hostname and port +description if it could be parsed, or the given address and \f(CW\*(C`undef\*(C'\fR if it was +not recognised. +.PP +.Vb 2 +\& IO::Socket::IP\->split_addr( "hostname:http" ) +\& # ( "hostname", "http" ) +\& +\& IO::Socket::IP\->split_addr( "192.0.2.1:80" ) +\& # ( "192.0.2.1", "80" ) +\& +\& IO::Socket::IP\->split_addr( "[2001:db8::1]:80" ) +\& # ( "2001:db8::1", "80" ) +\& +\& IO::Socket::IP\->split_addr( "something.else" ) +\& # ( "something.else", undef ) +.Ve +.ie n .SS "$addr = IO::Socket::IP\->join_addr( $host, $port )" +.el .SS "\f(CW$addr\fP = IO::Socket::IP\->join_addr( \f(CW$host\fP, \f(CW$port\fP )" +.IX Subsection "$addr = IO::Socket::IP->join_addr( $host, $port )" +Utility method that performs the reverse of \f(CW\*(C`split_addr\*(C'\fR, returning a string +formed by joining the specified host address and port number. The host address +will be wrapped in \f(CW\*(C`[]\*(C'\fR brackets if required (because it is a raw IPv6 +numeric address). +.PP +This can be especially useful when combined with the \f(CW\*(C`sockhost_service\*(C'\fR or +\&\f(CW\*(C`peerhost_service\*(C'\fR methods. +.PP +.Vb 1 +\& say "Connected to ", IO::Socket::IP\->join_addr( $sock\->peerhost_service ); +.Ve +.ie n .SH """IO::Socket::INET"" INCOMPATIBILITES" +.el .SH "\f(CWIO::Socket::INET\fP INCOMPATIBILITES" +.IX Header "IO::Socket::INET INCOMPATIBILITES" +.IP "\(bu" 4 +The behaviour enabled by \f(CW\*(C`MultiHomed\*(C'\fR is in fact implemented by +\&\f(CW\*(C`IO::Socket::IP\*(C'\fR as it is required to correctly support searching for a +useable address from the results of the \f(CWgetaddrinfo(3)\fR call. The +constructor will ignore the value of this argument, except if it is defined +but false. An exception is thrown in this case, because that would request it +disable the \f(CWgetaddrinfo(3)\fR search behaviour in the first place. +.IP "\(bu" 4 +\&\f(CW\*(C`IO::Socket::IP\*(C'\fR implements both the \f(CW\*(C`Blocking\*(C'\fR and \f(CW\*(C`Timeout\*(C'\fR parameters, +but it implements the interaction of both in a different way. +.Sp +In \f(CW\*(C`::INET\*(C'\fR, supplying a timeout overrides the non-blocking behaviour, +meaning that the \f(CW\*(C`connect()\*(C'\fR operation will still block despite that the +caller asked for a non-blocking socket. This is not explicitly specified in +its documentation, nor does this author believe that is a useful behaviour \- +it appears to come from a quirk of implementation. +.Sp +In \f(CW\*(C`::IP\*(C'\fR therefore, the \f(CW\*(C`Blocking\*(C'\fR parameter takes precedence \- if a +non-blocking socket is requested, no operation will block. The \f(CW\*(C`Timeout\*(C'\fR +parameter here simply defines the maximum time that a blocking \f(CW\*(C`connect()\*(C'\fR +call will wait, if it blocks at all. +.Sp +In order to specifically obtain the \*(L"blocking connect then non-blocking send +and receive\*(R" behaviour of specifying this combination of options to \f(CW\*(C`::INET\*(C'\fR +when using \f(CW\*(C`::IP\*(C'\fR, perform first a blocking connect, then afterwards turn the +socket into nonblocking mode. +.Sp +.Vb 4 +\& my $sock = IO::Socket::IP\->new( +\& PeerHost => $peer, +\& Timeout => 20, +\& ) or die "Cannot connect \- $@"; +\& +\& $sock\->blocking( 0 ); +.Ve +.Sp +This code will behave identically under both \f(CW\*(C`IO::Socket::INET\*(C'\fR and +\&\f(CW\*(C`IO::Socket::IP\*(C'\fR. +.SH "TODO" +.IX Header "TODO" +.IP "\(bu" 4 +Investigate whether \f(CW\*(C`POSIX::dup2\*(C'\fR upsets \s-1BSD\s0's \f(CW\*(C`kqueue\*(C'\fR watchers, and if so, +consider what possible workarounds might be applied. +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Evans diff --git a/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AUNIX.3 b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AUNIX.3 new file mode 100644 index 0000000000000000000000000000000000000000..6fd26e32dd7f9b48248a56c3a15153e50786b2bc --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASocket%3A%3AUNIX.3 @@ -0,0 +1,216 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Socket::UNIX 3" +.TH IO::Socket::UNIX 3 "2020-12-18" "perl v5.32.1" "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" +IO::Socket::UNIX \- Object interface for AF_UNIX domain sockets +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Socket::UNIX; +\& +\& my $SOCK_PATH = "$ENV{HOME}/unix\-domain\-socket\-test.sock"; +\& +\& # Server: +\& my $server = IO::Socket::UNIX\->new( +\& Type => SOCK_STREAM(), +\& Local => $SOCK_PATH, +\& Listen => 1, +\& ); +\& +\& my $count = 1; +\& while (my $conn = $server\->accept()) { +\& $conn\->print("Hello " . ($count++) . "\en"); +\& } +\& +\& # Client: +\& my $client = IO::Socket::UNIX\->new( +\& Type => SOCK_STREAM(), +\& Peer => $SOCK_PATH, +\& ); +\& +\& # Now read and write from $client +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Socket::UNIX\*(C'\fR provides an object interface to creating and using sockets +in the \s-1AF_UNIX\s0 domain. It is built upon the IO::Socket interface and +inherits all the methods defined by IO::Socket. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [\s-1ARGS\s0] )" 4 +.IX Item "new ( [ARGS] )" +Creates an \f(CW\*(C`IO::Socket::UNIX\*(C'\fR object, which is a reference to a +newly created symbol (see the \f(CW\*(C`Symbol\*(C'\fR package). \f(CW\*(C`new\*(C'\fR +optionally takes arguments, these arguments are in key-value pairs. +.Sp +In addition to the key-value pairs accepted by IO::Socket, +\&\f(CW\*(C`IO::Socket::UNIX\*(C'\fR provides. +.Sp +.Vb 4 +\& Type Type of socket (eg SOCK_STREAM or SOCK_DGRAM) +\& Local Path to local fifo +\& Peer Path to peer fifo +\& Listen Queue size for listen +.Ve +.Sp +If the constructor is only passed a single argument, it is assumed to +be a \f(CW\*(C`Peer\*(C'\fR specification. +.Sp +If the \f(CW\*(C`Listen\*(C'\fR argument is given, but false, the queue size will be set to 5. +.SH "METHODS" +.IX Header "METHODS" +.IP "\fBhostpath()\fR" 4 +.IX Item "hostpath()" +Returns the pathname to the fifo at the local end +.IP "\fBpeerpath()\fR" 4 +.IX Item "peerpath()" +Returns the pathanme to the fifo at the peer end +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Socket, IO::Socket +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1996\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyInflate.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyInflate.3 new file mode 100644 index 0000000000000000000000000000000000000000..78f5849e594de61cc774319d676a408c54c9831c --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyInflate.3 @@ -0,0 +1,979 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::AnyInflate 3" +.TH IO::Uncompress::AnyInflate 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::AnyInflate \- Uncompress zlib\-based (zip, gzip) file/buffer +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& +\& my $status = anyinflate $input => $output [,OPTS] +\& or die "anyinflate failed: $AnyInflateError\en"; +\& +\& my $z = new IO::Uncompress::AnyInflate $input [OPTS] +\& or die "anyinflate failed: $AnyInflateError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $status = $z\->inflateSync() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $AnyInflateError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +files/buffers that have been compressed in a number of formats that use the +zlib compression library. +.PP +The formats supported are +.IP "\s-1RFC 1950\s0" 5 +.IX Item "RFC 1950" +.PD 0 +.IP "\s-1RFC 1951\s0 (optionally)" 5 +.IX Item "RFC 1951 (optionally)" +.IP "gzip (\s-1RFC 1952\s0)" 5 +.IX Item "gzip (RFC 1952)" +.IP "zip" 5 +.IX Item "zip" +.PD +.PP +The module will auto-detect which, if any, of the supported +compression formats is being used. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`anyinflate\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& +\& anyinflate $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "anyinflate failed: $AnyInflateError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "anyinflate $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "anyinflate \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "anyinflate $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`anyinflate\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`anyinflate\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`anyinflate\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`anyinflate\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`anyinflate\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`anyinflate\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.Compressed\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& +\& my $input = "file1.txt.Compressed"; +\& my $output = "file1.txt"; +\& anyinflate $input => $output +\& or die "anyinflate failed: $AnyInflateError\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "anyinflate failed: $AnyInflateError\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.Compressed\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& +\& anyinflate \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "anyinflate failed: $AnyInflateError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +\& +\& for my $input ( glob "/my/home/*.txt.Compressed" ) +\& { +\& my $output = $input; +\& $output =~ s/.Compressed// ; +\& anyinflate $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $AnyInflateError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::AnyInflate is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::AnyInflate $input [OPTS] +\& or die "IO::Uncompress::AnyInflate failed: $AnyInflateError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::AnyInflate\*(C'\fR object on success and undef on failure. +The variable \f(CW$AnyInflateError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::AnyInflate can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::AnyInflate object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::AnyInflate will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option controls whether the extra checks defined below are used when +carrying out the decompression. When Strict is on, the extra tests are +carried out, when Strict is off they are not. +.Sp +The default for this option is off. +.Sp +If the input is an \s-1RFC 1950\s0 data stream, the following will be checked: +.RS 5 +.IP "1." 5 +The \s-1ADLER32\s0 checksum field must be present. +.IP "2." 5 +The value of the \s-1ADLER32\s0 field read must match the adler32 value of the +uncompressed data actually contained in the file. +.RE +.RS 5 +.Sp +If the input is a gzip (\s-1RFC 1952\s0) data stream, the following will be checked: +.IP "1." 5 +If the \s-1FHCRC\s0 bit is set in the gzip \s-1FLG\s0 header byte, the \s-1CRC16\s0 bytes in the +header must match the crc16 value of the gzip header actually read. +.IP "2." 5 +If the gzip header contains a name field (\s-1FNAME\s0) it consists solely of \s-1ISO +8859\-1\s0 characters. +.IP "3." 5 +If the gzip header contains a comment field (\s-1FCOMMENT\s0) it consists solely +of \s-1ISO 8859\-1\s0 characters plus line-feed. +.IP "4." 5 +If the gzip \s-1FEXTRA\s0 header field is present it must conform to the sub-field +structure as defined in \s-1RFC 1952.\s0 +.IP "5." 5 +The \s-1CRC32\s0 and \s-1ISIZE\s0 trailer fields must be present. +.IP "6." 5 +The value of the \s-1CRC32\s0 field read must match the crc32 value of the +uncompressed data actually contained in the gzip file. +.IP "7." 5 +The value of the \s-1ISIZE\s0 fields read must match the length of the +uncompressed data actually read from the file. +.RE +.RS 5 +.RE +.ie n .IP """RawInflate => 0|1""" 5 +.el .IP "\f(CWRawInflate => 0|1\fR" 5 +.IX Item "RawInflate => 0|1" +When auto-detecting the compressed format, try to test for raw-deflate (\s-1RFC +1951\s0) content using the \f(CW\*(C`IO::Uncompress::RawInflate\*(C'\fR module. +.Sp +The reason this is not default behaviour is because \s-1RFC 1951\s0 content can +only be detected by attempting to uncompress it. This process is error +prone and can result is false positives. +.Sp +Defaults to 0. +.ie n .IP """ParseExtra => 0|1"" If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5 +.el .IP "\f(CWParseExtra => 0|1\fR If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5 +.IX Item "ParseExtra => 0|1 If the gzip FEXTRA header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in RFC 1952." +If the \f(CW\*(C`Strict\*(C'\fR is on it will automatically enable this option. +.Sp +Defaults to 0. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "inflateSync" +.IX Subsection "inflateSync" +Usage is +.PP +.Vb 1 +\& $status = $z\->inflateSync() +.Ve +.PP +\&\s-1TODO\s0 +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::AnyInflate object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::AnyInflate +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::AnyInflate at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`anyinflate\*(C'\fR and \f(CW$AnyInflateError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::AnyInflate qw(anyinflate $AnyInflateError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyUncompress.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyUncompress.3 new file mode 100644 index 0000000000000000000000000000000000000000..67e0383b7ba356e3be6d7d6dc1766881cb6b4e24 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AAnyUncompress.3 @@ -0,0 +1,934 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::AnyUncompress 3" +.TH IO::Uncompress::AnyUncompress 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::AnyUncompress \- Uncompress gzip, zip, bzip2, xz, lzma, lzip, lzf or lzop file/buffer +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& +\& my $status = anyuncompress $input => $output [,OPTS] +\& or die "anyuncompress failed: $AnyUncompressError\en"; +\& +\& my $z = new IO::Uncompress::AnyUncompress $input [OPTS] +\& or die "anyuncompress failed: $AnyUncompressError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $AnyUncompressError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +files/buffers that have been compressed with a variety of compression +libraries. +.PP +The formats supported are: +.IP "\s-1RFC 1950\s0" 5 +.IX Item "RFC 1950" +.PD 0 +.IP "\s-1RFC 1951\s0 (optionally)" 5 +.IX Item "RFC 1951 (optionally)" +.IP "gzip (\s-1RFC 1952\s0)" 5 +.IX Item "gzip (RFC 1952)" +.IP "zip" 5 +.IX Item "zip" +.IP "bzip2" 5 +.IX Item "bzip2" +.IP "lzop" 5 +.IX Item "lzop" +.IP "lzf" 5 +.IX Item "lzf" +.IP "lzma" 5 +.IX Item "lzma" +.IP "lzip" 5 +.IX Item "lzip" +.IP "xz" 5 +.IX Item "xz" +.PD +.PP +The module will auto-detect which, if any, of the supported +compression formats is being used. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`anyuncompress\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& +\& anyuncompress $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "anyuncompress failed: $AnyUncompressError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "anyuncompress $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "anyuncompress \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "anyuncompress $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`anyuncompress\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`anyuncompress\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`anyuncompress\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`anyuncompress\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`anyuncompress\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`anyuncompress\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.Compressed\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& +\& my $input = "file1.txt.Compressed"; +\& my $output = "file1.txt"; +\& anyuncompress $input => $output +\& or die "anyuncompress failed: $AnyUncompressError\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "anyuncompress failed: $AnyUncompressError\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.Compressed\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& +\& anyuncompress \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "anyuncompress failed: $AnyUncompressError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +\& +\& for my $input ( glob "/my/home/*.txt.Compressed" ) +\& { +\& my $output = $input; +\& $output =~ s/.Compressed// ; +\& anyuncompress $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $AnyUncompressError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::AnyUncompress is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::AnyUncompress $input [OPTS] +\& or die "IO::Uncompress::AnyUncompress failed: $AnyUncompressError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::AnyUncompress\*(C'\fR object on success and undef on failure. +The variable \f(CW$AnyUncompressError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::AnyUncompress can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::AnyUncompress object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::AnyUncompress will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option controls whether the extra checks defined below are used when +carrying out the decompression. When Strict is on, the extra tests are +carried out, when Strict is off they are not. +.Sp +The default for this option is off. +.ie n .IP """RawInflate => 0|1""" 5 +.el .IP "\f(CWRawInflate => 0|1\fR" 5 +.IX Item "RawInflate => 0|1" +When auto-detecting the compressed format, try to test for raw-deflate (\s-1RFC +1951\s0) content using the \f(CW\*(C`IO::Uncompress::RawInflate\*(C'\fR module. +.Sp +The reason this is not default behaviour is because \s-1RFC 1951\s0 content can +only be detected by attempting to uncompress it. This process is error +prone and can result is false positives. +.Sp +Defaults to 0. +.ie n .IP """UnLzma => 0|1""" 5 +.el .IP "\f(CWUnLzma => 0|1\fR" 5 +.IX Item "UnLzma => 0|1" +When auto-detecting the compressed format, try to test for lzma_alone +content using the \f(CW\*(C`IO::Uncompress::UnLzma\*(C'\fR module. +.Sp +The reason this is not default behaviour is because lzma_alone content can +only be detected by attempting to uncompress it. This process is error +prone and can result is false positives. +.Sp +Defaults to 0. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::AnyUncompress object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::AnyUncompress +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::AnyUncompress at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`anyuncompress\*(C'\fR and \f(CW$AnyUncompressError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABase.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABase.3 new file mode 100644 index 0000000000000000000000000000000000000000..e1650c29fc83ea7e39847b141380b748a54a4a4f --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABase.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::Base 3" +.TH IO::Uncompress::Base 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::Base \- Base Class for IO::Uncompress modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::Base ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is not intended for direct use in application code. Its sole +purpose is to be sub-classed by IO::Uncompress modules. +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABunzip2.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABunzip2.3 new file mode 100644 index 0000000000000000000000000000000000000000..dc56bc963734dca191aeffba9a7696fea2ab421b --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ABunzip2.3 @@ -0,0 +1,897 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::Bunzip2 3" +.TH IO::Uncompress::Bunzip2 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::Bunzip2 \- Read bzip2 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& +\& my $status = bunzip2 $input => $output [,OPTS] +\& or die "bunzip2 failed: $Bunzip2Error\en"; +\& +\& my $z = new IO::Uncompress::Bunzip2 $input [OPTS] +\& or die "bunzip2 failed: $Bunzip2Error\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $Bunzip2Error ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +bzip2 files/buffers. +.PP +For writing bzip2 files/buffers, see the companion module IO::Compress::Bzip2. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`bunzip2\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& +\& bunzip2 $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "bunzip2 failed: $Bunzip2Error\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "bunzip2 $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "bunzip2 \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "bunzip2 $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`bunzip2\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`bunzip2\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`bunzip2\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`bunzip2\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`bunzip2\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`bunzip2\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.bz2\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& +\& my $input = "file1.txt.bz2"; +\& my $output = "file1.txt"; +\& bunzip2 $input => $output +\& or die "bunzip2 failed: $Bunzip2Error\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "bunzip2 failed: $Bunzip2Error\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.bz2\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& +\& bunzip2 \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "bunzip2 failed: $Bunzip2Error\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +\& +\& for my $input ( glob "/my/home/*.txt.bz2" ) +\& { +\& my $output = $input; +\& $output =~ s/.bz2// ; +\& bunzip2 $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $Bunzip2Error\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::Bunzip2 is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::Bunzip2 $input [OPTS] +\& or die "IO::Uncompress::Bunzip2 failed: $Bunzip2Error\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::Bunzip2\*(C'\fR object on success and undef on failure. +The variable \f(CW$Bunzip2Error\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::Bunzip2 can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::Bunzip2 object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::Bunzip2 will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option is a no-op. +.ie n .IP """Small => 0|1""" 5 +.el .IP "\f(CWSmall => 0|1\fR" 5 +.IX Item "Small => 0|1" +When non-zero this options will make bzip2 use a decompression algorithm +that uses less memory at the expense of increasing the amount of time +taken for decompression. +.Sp +Default is 0. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::Bunzip2 object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::Bunzip2 +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::Bunzip2 at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`bunzip2\*(C'\fR and \f(CW$Bunzip2Error\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +The primary site for the bzip2 program is . +.PP +See the module Compress::Bzip2 +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AInflate.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AInflate.3 new file mode 100644 index 0000000000000000000000000000000000000000..48c88d54f398cffb9b3db2ef5ce49c4232b3fdac --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AInflate.3 @@ -0,0 +1,922 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::Inflate 3" +.TH IO::Uncompress::Inflate 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::Inflate \- Read RFC 1950 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& +\& my $status = inflate $input => $output [,OPTS] +\& or die "inflate failed: $InflateError\en"; +\& +\& my $z = new IO::Uncompress::Inflate $input [OPTS] +\& or die "inflate failed: $InflateError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $status = $z\->inflateSync() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $InflateError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +files/buffers that conform to \s-1RFC 1950.\s0 +.PP +For writing \s-1RFC 1950\s0 files/buffers, see the companion module IO::Compress::Deflate. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`inflate\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& +\& inflate $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "inflate failed: $InflateError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "inflate $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "inflate \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "inflate $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`inflate\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`inflate\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`inflate\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`inflate\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`inflate\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`inflate\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.1950\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& +\& my $input = "file1.txt.1950"; +\& my $output = "file1.txt"; +\& inflate $input => $output +\& or die "inflate failed: $InflateError\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "inflate failed: $InflateError\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.1950\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& +\& inflate \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "inflate failed: $InflateError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +\& +\& for my $input ( glob "/my/home/*.txt.1950" ) +\& { +\& my $output = $input; +\& $output =~ s/.1950// ; +\& inflate $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $InflateError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::Inflate is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::Inflate $input [OPTS] +\& or die "IO::Uncompress::Inflate failed: $InflateError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::Inflate\*(C'\fR object on success and undef on failure. +The variable \f(CW$InflateError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::Inflate can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::Inflate object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::Inflate will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option controls whether the extra checks defined below are used when +carrying out the decompression. When Strict is on, the extra tests are +carried out, when Strict is off they are not. +.Sp +The default for this option is off. +.RS 5 +.IP "1." 5 +The \s-1ADLER32\s0 checksum field must be present. +.IP "2." 5 +The value of the \s-1ADLER32\s0 field read must match the adler32 value of the +uncompressed data actually contained in the file. +.RE +.RS 5 +.RE +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "inflateSync" +.IX Subsection "inflateSync" +Usage is +.PP +.Vb 1 +\& $status = $z\->inflateSync() +.Ve +.PP +\&\s-1TODO\s0 +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::Inflate object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::Inflate +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::Inflate at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`inflate\*(C'\fR and \f(CW$InflateError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::Inflate qw(inflate $InflateError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ARawInflate.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ARawInflate.3 new file mode 100644 index 0000000000000000000000000000000000000000..5a030022956cdc36d0a892d44c019224ef945783 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3ARawInflate.3 @@ -0,0 +1,906 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::RawInflate 3" +.TH IO::Uncompress::RawInflate 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::RawInflate \- Read RFC 1951 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& +\& my $status = rawinflate $input => $output [,OPTS] +\& or die "rawinflate failed: $RawInflateError\en"; +\& +\& my $z = new IO::Uncompress::RawInflate $input [OPTS] +\& or die "rawinflate failed: $RawInflateError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $status = $z\->inflateSync() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $RawInflateError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +files/buffers that conform to \s-1RFC 1951.\s0 +.PP +For writing \s-1RFC 1951\s0 files/buffers, see the companion module IO::Compress::RawDeflate. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`rawinflate\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& +\& rawinflate $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "rawinflate failed: $RawInflateError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "rawinflate $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "rawinflate \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "rawinflate $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`rawinflate\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`rawinflate\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`rawinflate\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`rawinflate\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`rawinflate\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`rawinflate\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +This option is a no-op. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.1951\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& +\& my $input = "file1.txt.1951"; +\& my $output = "file1.txt"; +\& rawinflate $input => $output +\& or die "rawinflate failed: $RawInflateError\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "rawinflate failed: $RawInflateError\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.1951\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& +\& rawinflate \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "rawinflate failed: $RawInflateError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +\& +\& for my $input ( glob "/my/home/*.txt.1951" ) +\& { +\& my $output = $input; +\& $output =~ s/.1951// ; +\& rawinflate $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $RawInflateError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::RawInflate is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::RawInflate $input [OPTS] +\& or die "IO::Uncompress::RawInflate failed: $RawInflateError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::RawInflate\*(C'\fR object on success and undef on failure. +The variable \f(CW$RawInflateError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::RawInflate can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::RawInflate object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::RawInflate will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option is a no-op. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "inflateSync" +.IX Subsection "inflateSync" +Usage is +.PP +.Vb 1 +\& $status = $z\->inflateSync() +.Ve +.PP +\&\s-1TODO\s0 +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::RawInflate object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::RawInflate +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::RawInflate at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`rawinflate\*(C'\fR and \f(CW$RawInflateError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::RawInflate qw(rawinflate $RawInflateError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AUnzip.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AUnzip.3 new file mode 100644 index 0000000000000000000000000000000000000000..2ddf9237bebbd0374ec895721b27b3849b653f09 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AUnzip.3 @@ -0,0 +1,979 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Uncompress::Unzip 3" +.TH IO::Uncompress::Unzip 3 "2020-12-18" "perl v5.32.1" "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" +IO::Uncompress::Unzip \- Read zip files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& +\& my $status = unzip $input => $output [,OPTS] +\& or die "unzip failed: $UnzipError\en"; +\& +\& my $z = new IO::Uncompress::Unzip $input [OPTS] +\& or die "unzip failed: $UnzipError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $status = $z\->inflateSync() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $UnzipError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +zlib files/buffers. +.PP +For writing zip files/buffers, see the companion module IO::Compress::Zip. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`unzip\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& +\& unzip $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "unzip failed: $UnzipError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "unzip $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "unzip \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "unzip $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`unzip\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`unzip\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`unzip\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`unzip\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`unzip\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`unzip\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +Say you have a zip file, \f(CW\*(C`file1.zip\*(C'\fR, that only contains a +single member, you can read it and write the uncompressed data to the +file \f(CW\*(C`file1.txt\*(C'\fR like this. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& +\& my $input = "file1.zip"; +\& my $output = "file1.txt"; +\& unzip $input => $output +\& or die "unzip failed: $UnzipError\en"; +.Ve +.PP +If you have a zip file that contains multiple members and want to read a +specific member from the file, say \f(CW"data1"\fR, use the \f(CW\*(C`Name\*(C'\fR option +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& +\& my $input = "file1.zip"; +\& my $output = "file1.txt"; +\& unzip $input => $output, Name => "data1" +\& or die "unzip failed: $UnzipError\en"; +.Ve +.PP +Alternatively, if you want to read the \f(CW"data1"\fR member into memory, use +a scalar reference for the \f(CW\*(C`output\*(C'\fR parameter. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& +\& my $input = "file1.zip"; +\& my $output ; +\& unzip $input => \e$output, Name => "data1" +\& or die "unzip failed: $UnzipError\en"; +\& # $output now contains the uncompressed data +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "unzip failed: $UnzipError\en"; +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::Unzip is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::Unzip $input [OPTS] +\& or die "IO::Uncompress::Unzip failed: $UnzipError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::Unzip\*(C'\fR object on success and undef on failure. +The variable \f(CW$UnzipError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::Unzip can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """Name => ""membername""""" 5 +.el .IP "\f(CWName => ``membername''\fR" 5 +.IX Item "Name => ""membername""" +Open \*(L"membername\*(R" from the zip file for reading. +.ie n .IP """Efs => 0| 1""" 5 +.el .IP "\f(CWEfs => 0| 1\fR" 5 +.IX Item "Efs => 0| 1" +When this option is set to true \s-1AND\s0 the zip archive being read has +the \*(L"Language Encoding Flag\*(R" (\s-1EFS\s0) set, the member name is assumed to be encoded in \s-1UTF\-8.\s0 +.Sp +If the member name in the zip archive is not valid \s-1UTF\-8\s0 when this optionn is true, +the script will die with an error message. +.Sp +Note that this option only works with Perl 5.8.4 or better. +.Sp +This option defaults to \fBfalse\fR. +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::Unzip object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Treats the complete zip file/buffer as a single compressed data +stream. When reading in multi-stream mode each member of the zip +file/buffer will be uncompressed in turn until the end of the file/buffer +is encountered. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::Unzip will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option controls whether the extra checks defined below are used when +carrying out the decompression. When Strict is on, the extra tests are +carried out, when Strict is off they are not. +.Sp +The default for this option is off. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "inflateSync" +.IX Subsection "inflateSync" +Usage is +.PP +.Vb 1 +\& $status = $z\->inflateSync() +.Ve +.PP +\&\s-1TODO\s0 +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::Unzip object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::Unzip +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +If trailing data is present immediately after the zip archive and the +\&\f(CW\*(C`Transparent\*(C'\fR option is enabled, this method will consider that trailing +data to be another member of the zip archive. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::Unzip at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`unzip\*(C'\fR and \f(CW$UnzipError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::Unzip qw(unzip $UnzipError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SS "Walking through a zip file" +.IX Subsection "Walking through a zip file" +The code below can be used to traverse a zip file, one compressed data +stream at a time. +.PP +.Vb 1 +\& use IO::Uncompress::Unzip qw($UnzipError); +\& +\& my $zipfile = "somefile.zip"; +\& my $u = new IO::Uncompress::Unzip $zipfile +\& or die "Cannot open $zipfile: $UnzipError"; +\& +\& my $status; +\& for ($status = 1; $status > 0; $status = $u\->nextStream()) +\& { +\& +\& my $name = $u\->getHeaderInfo()\->{Name}; +\& warn "Processing member $name\en" ; +\& +\& my $buff; +\& while (($status = $u\->read($buff)) > 0) { +\& # Do something here +\& } +\& +\& last if $status < 0; +\& } +\& +\& die "Error processing $zipfile: $!\en" +\& if $status < 0 ; +.Ve +.PP +Each individual compressed data stream is read until the logical +end-of-file is reached. Then \f(CW\*(C`nextStream\*(C'\fR is called. This will skip to the +start of the next compressed data stream and clear the end-of-file flag. +.PP +It is also worth noting that \f(CW\*(C`nextStream\*(C'\fR can be called at any time \*(-- you +don't have to wait until you have exhausted a compressed data stream before +skipping to the next one. +.SS "Unzipping a complete zip file to disk" +.IX Subsection "Unzipping a complete zip file to disk" +Daniel S. Sterling has written a script that uses \f(CW\*(C`IO::Uncompress::UnZip\*(C'\fR +to read a zip file and unzip its contents to disk. +.PP +The script is available from +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3AZlib.3 b/data/miniconda3/man/man3/IO%3A%3AZlib.3 new file mode 100644 index 0000000000000000000000000000000000000000..9b544cad2114d71c62509ca74fa0248e1e46f491 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AZlib.3 @@ -0,0 +1,370 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IO::Zlib 3" +.TH IO::Zlib 3 "2020-12-18" "perl v5.32.1" "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" +IO::Zlib \- IO:: style interface to Compress::Zlib +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +With any version of Perl 5 you can use the basic \s-1OO\s0 interface: +.PP +.Vb 1 +\& use IO::Zlib; +\& +\& $fh = new IO::Zlib; +\& if ($fh\->open("file.gz", "rb")) { +\& print <$fh>; +\& $fh\->close; +\& } +\& +\& $fh = IO::Zlib\->new("file.gz", "wb9"); +\& if (defined $fh) { +\& print $fh "bar\en"; +\& $fh\->close; +\& } +\& +\& $fh = IO::Zlib\->new("file.gz", "rb"); +\& if (defined $fh) { +\& print <$fh>; +\& undef $fh; # automatically closes the file +\& } +.Ve +.PP +With Perl 5.004 you can also use the \s-1TIEHANDLE\s0 interface to access +compressed files just like ordinary files: +.PP +.Vb 1 +\& use IO::Zlib; +\& +\& tie *FILE, \*(AqIO::Zlib\*(Aq, "file.gz", "wb"; +\& print FILE "line 1\enline2\en"; +\& +\& tie *FILE, \*(AqIO::Zlib\*(Aq, "file.gz", "rb"; +\& while () { print "LINE: ", $_ }; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Zlib\*(C'\fR provides an \s-1IO::\s0 style interface to Compress::Zlib and +hence to gzip/zlib compressed files. It provides many of the same methods +as the IO::Handle interface. +.PP +Starting from IO::Zlib version 1.02, IO::Zlib can also use an +external \fIgzip\fR command. The default behaviour is to try to use +an external \fIgzip\fR if no \f(CW\*(C`Compress::Zlib\*(C'\fR can be loaded, unless +explicitly disabled by +.PP +.Vb 1 +\& use IO::Zlib qw(:gzip_external 0); +.Ve +.PP +If explicitly enabled by +.PP +.Vb 1 +\& use IO::Zlib qw(:gzip_external 1); +.Ve +.PP +then the external \fIgzip\fR is used \fBinstead\fR of \f(CW\*(C`Compress::Zlib\*(C'\fR. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [\s-1ARGS\s0] )" 4 +.IX Item "new ( [ARGS] )" +Creates an \f(CW\*(C`IO::Zlib\*(C'\fR object. If it receives any parameters, they are +passed to the method \f(CW\*(C`open\*(C'\fR; if the open fails, the object is destroyed. +Otherwise, it is returned to the caller. +.SH "OBJECT METHODS" +.IX Header "OBJECT METHODS" +.IP "open ( \s-1FILENAME, MODE\s0 )" 4 +.IX Item "open ( FILENAME, MODE )" +\&\f(CW\*(C`open\*(C'\fR takes two arguments. The first is the name of the file to open +and the second is the open mode. The mode can be anything acceptable to +Compress::Zlib and by extension anything acceptable to \fIzlib\fR (that +basically means \s-1POSIX\s0 \fBfopen()\fR style mode strings plus an optional number +to indicate the compression level). +.IP "opened" 4 +.IX Item "opened" +Returns true if the object currently refers to a opened file. +.IP "close" 4 +.IX Item "close" +Close the file associated with the object and disassociate +the file from the handle. +Done automatically on destroy. +.IP "getc" 4 +.IX Item "getc" +Return the next character from the file, or undef if none remain. +.IP "getline" 4 +.IX Item "getline" +Return the next line from the file, or undef on end of string. +Can safely be called in an array context. +Currently ignores $/ ($INPUT_RECORD_SEPARATOR or \f(CW$RS\fR when English +is in use) and treats lines as delimited by \*(L"\en\*(R". +.IP "getlines" 4 +.IX Item "getlines" +Get all remaining lines from the file. +It will \fBcroak()\fR if accidentally called in a scalar context. +.IP "print ( \s-1ARGS...\s0 )" 4 +.IX Item "print ( ARGS... )" +Print \s-1ARGS\s0 to the file. +.IP "read ( \s-1BUF, NBYTES,\s0 [\s-1OFFSET\s0] )" 4 +.IX Item "read ( BUF, NBYTES, [OFFSET] )" +Read some bytes from the file. +Returns the number of bytes actually read, 0 on end-of-file, undef on error. +.IP "eof" 4 +.IX Item "eof" +Returns true if the handle is currently positioned at end of file? +.IP "seek ( \s-1OFFSET, WHENCE\s0 )" 4 +.IX Item "seek ( OFFSET, WHENCE )" +Seek to a given position in the stream. +Not yet supported. +.IP "tell" 4 +.IX Item "tell" +Return the current position in the stream, as a numeric offset. +Not yet supported. +.IP "setpos ( \s-1POS\s0 )" 4 +.IX Item "setpos ( POS )" +Set the current position, using the opaque value returned by \f(CW\*(C`getpos()\*(C'\fR. +Not yet supported. +.IP "getpos ( \s-1POS\s0 )" 4 +.IX Item "getpos ( POS )" +Return the current position in the string, as an opaque object. +Not yet supported. +.SH "USING THE EXTERNAL GZIP" +.IX Header "USING THE EXTERNAL GZIP" +If the external \fIgzip\fR is used, the following \f(CW\*(C`open\*(C'\fRs are used: +.PP +.Vb 2 +\& open(FH, "gzip \-dc $filename |") # for read opens +\& open(FH, " | gzip > $filename") # for write opens +.Ve +.PP +You can modify the 'commands' for example to hardwire +an absolute path by e.g. +.PP +.Vb 2 +\& use IO::Zlib \*(Aq:gzip_read_open\*(Aq => \*(Aq/some/where/gunzip \-c %s |\*(Aq; +\& use IO::Zlib \*(Aq:gzip_write_open\*(Aq => \*(Aq| /some/where/gzip.exe > %s\*(Aq; +.Ve +.PP +The \f(CW%s\fR is expanded to be the filename (\f(CW\*(C`sprintf\*(C'\fR is used, so be +careful to escape any other \f(CW\*(C`%\*(C'\fR signs). The 'commands' are checked +for sanity \- they must contain the \f(CW%s\fR, and the read open must end +with the pipe sign, and the write open must begin with the pipe sign. +.SH "CLASS METHODS" +.IX Header "CLASS METHODS" +.IP "has_Compress_Zlib" 4 +.IX Item "has_Compress_Zlib" +Returns true if \f(CW\*(C`Compress::Zlib\*(C'\fR is available. Note that this does +not mean that \f(CW\*(C`Compress::Zlib\*(C'\fR is being used: see \*(L"gzip_external\*(R" +and gzip_used. +.IP "gzip_external" 4 +.IX Item "gzip_external" +Undef if an external \fIgzip\fR \fBcan\fR be used if \f(CW\*(C`Compress::Zlib\*(C'\fR is +not available (see \*(L"has_Compress_Zlib\*(R"), true if an external \fIgzip\fR +is explicitly used, false if an external \fIgzip\fR must not be used. +See \*(L"gzip_used\*(R". +.IP "gzip_used" 4 +.IX Item "gzip_used" +True if an external \fIgzip\fR is being used, false if not. +.IP "gzip_read_open" 4 +.IX Item "gzip_read_open" +Return the 'command' being used for opening a file for reading using an +external \fIgzip\fR. +.IP "gzip_write_open" 4 +.IX Item "gzip_write_open" +Return the 'command' being used for opening a file for writing using an +external \fIgzip\fR. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.IP "IO::Zlib::getlines: must be called in list context" 4 +.IX Item "IO::Zlib::getlines: must be called in list context" +If you want read lines, you must read in list context. +.IP "IO::Zlib::gzopen_external: mode '...' is illegal" 4 +.IX Item "IO::Zlib::gzopen_external: mode '...' is illegal" +Use only modes 'rb' or 'wb' or /wb[1\-9]/. +.IP "IO::Zlib::import: '...' is illegal" 4 +.IX Item "IO::Zlib::import: '...' is illegal" +The known import symbols are the \f(CW\*(C`:gzip_external\*(C'\fR, \f(CW\*(C`:gzip_read_open\*(C'\fR, +and \f(CW\*(C`:gzip_write_open\*(C'\fR. Anything else is not recognized. +.IP "IO::Zlib::import: ':gzip_external' requires an argument" 4 +.IX Item "IO::Zlib::import: ':gzip_external' requires an argument" +The \f(CW\*(C`:gzip_external\*(C'\fR requires one boolean argument. +.IP "IO::Zlib::import: 'gzip_read_open' requires an argument" 4 +.IX Item "IO::Zlib::import: 'gzip_read_open' requires an argument" +The \f(CW\*(C`:gzip_external\*(C'\fR requires one string argument. +.IP "IO::Zlib::import: 'gzip_read' '...' is illegal" 4 +.IX Item "IO::Zlib::import: 'gzip_read' '...' is illegal" +The \f(CW\*(C`:gzip_read_open\*(C'\fR argument must end with the pipe sign (|) +and have the \f(CW%s\fR for the filename. See \*(L"\s-1USING THE EXTERNAL GZIP\*(R"\s0. +.IP "IO::Zlib::import: 'gzip_write_open' requires an argument" 4 +.IX Item "IO::Zlib::import: 'gzip_write_open' requires an argument" +The \f(CW\*(C`:gzip_external\*(C'\fR requires one string argument. +.IP "IO::Zlib::import: 'gzip_write_open' '...' is illegal" 4 +.IX Item "IO::Zlib::import: 'gzip_write_open' '...' is illegal" +The \f(CW\*(C`:gzip_write_open\*(C'\fR argument must begin with the pipe sign (|) +and have the \f(CW%s\fR for the filename. An output redirect (>) is also +often a good idea, depending on your operating system shell syntax. +See \*(L"\s-1USING THE EXTERNAL GZIP\*(R"\s0. +.IP "IO::Zlib::import: no Compress::Zlib and no external gzip" 4 +.IX Item "IO::Zlib::import: no Compress::Zlib and no external gzip" +Given that we failed to load \f(CW\*(C`Compress::Zlib\*(C'\fR and that the use of + an external \fIgzip\fR was disabled, IO::Zlib has not much chance of working. +.IP "IO::Zlib::open: needs a filename" 4 +.IX Item "IO::Zlib::open: needs a filename" +No filename, no open. +.IP "IO::Zlib::READ: \s-1NBYTES\s0 must be specified" 4 +.IX Item "IO::Zlib::READ: NBYTES must be specified" +We must know how much to read. +.IP "IO::Zlib::WRITE: too long \s-1LENGTH\s0" 4 +.IX Item "IO::Zlib::WRITE: too long LENGTH" +The \s-1LENGTH\s0 must be less than or equal to the buffer size. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlfunc, +\&\*(L"I/O Operators\*(R" in perlop, +IO::Handle, +Compress::Zlib +.SH "HISTORY" +.IX Header "HISTORY" +Created by Tom Hughes <\fItom@compton.nu\fR>. +.PP +Support for external gzip added by Jarkko Hietaniemi <\fIjhi@iki.fi\fR>. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1998\-2004 Tom Hughes <\fItom@compton.nu\fR>. +All rights reserved. This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IPC%3A%3ACmd.3 b/data/miniconda3/man/man3/IPC%3A%3ACmd.3 new file mode 100644 index 0000000000000000000000000000000000000000..542ffd1ea6aa67a065b25ec0c2e094982e9c8990 --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3ACmd.3 @@ -0,0 +1,618 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::Cmd 3" +.TH IPC::Cmd 3 "2020-12-18" "perl v5.32.1" "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" +IPC::Cmd \- finding and running system commands made easy +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IPC::Cmd qw[can_run run run_forked]; +\& +\& my $full_path = can_run(\*(Aqwget\*(Aq) or warn \*(Aqwget is not installed!\*(Aq; +\& +\& ### commands can be arrayrefs or strings ### +\& my $cmd = "$full_path \-b theregister.co.uk"; +\& my $cmd = [$full_path, \*(Aq\-b\*(Aq, \*(Aqtheregister.co.uk\*(Aq]; +\& +\& ### in scalar context ### +\& my $buffer; +\& if( scalar run( command => $cmd, +\& verbose => 0, +\& buffer => \e$buffer, +\& timeout => 20 ) +\& ) { +\& print "fetched webpage successfully: $buffer\en"; +\& } +\& +\& +\& ### in list context ### +\& my( $success, $error_message, $full_buf, $stdout_buf, $stderr_buf ) = +\& run( command => $cmd, verbose => 0 ); +\& +\& if( $success ) { +\& print "this is what the command printed:\en"; +\& print join "", @$full_buf; +\& } +\& +\& ### run_forked example ### +\& my $result = run_forked("$full_path \-q \-O \- theregister.co.uk", {\*(Aqtimeout\*(Aq => 20}); +\& if ($result\->{\*(Aqexit_code\*(Aq} eq 0 && !$result\->{\*(Aqtimeout\*(Aq}) { +\& print "this is what wget returned:\en"; +\& print $result\->{\*(Aqstdout\*(Aq}; +\& } +\& +\& ### check for features +\& print "IPC::Open3 available: " . IPC::Cmd\->can_use_ipc_open3; +\& print "IPC::Run available: " . IPC::Cmd\->can_use_ipc_run; +\& print "Can capture buffer: " . IPC::Cmd\->can_capture_buffer; +\& +\& ### don\*(Aqt have IPC::Cmd be verbose, ie don\*(Aqt print to stdout or +\& ### stderr when running commands \-\- default is \*(Aq0\*(Aq +\& $IPC::Cmd::VERBOSE = 0; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +IPC::Cmd allows you to run commands platform independently, +interactively if desired, but have them still work. +.PP +The \f(CW\*(C`can_run\*(C'\fR function can tell you if a certain binary is installed +and if so where, whereas the \f(CW\*(C`run\*(C'\fR function can actually execute any +of the commands you give it and give you a clear return value, as well +as adhere to your verbosity settings. +.SH "CLASS METHODS" +.IX Header "CLASS METHODS" +.ie n .SS "$ipc_run_version = IPC::Cmd\->can_use_ipc_run( [\s-1VERBOSE\s0] )" +.el .SS "\f(CW$ipc_run_version\fP = IPC::Cmd\->can_use_ipc_run( [\s-1VERBOSE\s0] )" +.IX Subsection "$ipc_run_version = IPC::Cmd->can_use_ipc_run( [VERBOSE] )" +Utility function that tells you if \f(CW\*(C`IPC::Run\*(C'\fR is available. +If the \f(CW\*(C`verbose\*(C'\fR flag is passed, it will print diagnostic messages +if IPC::Run can not be found or loaded. +.ie n .SS "$ipc_open3_version = IPC::Cmd\->can_use_ipc_open3( [\s-1VERBOSE\s0] )" +.el .SS "\f(CW$ipc_open3_version\fP = IPC::Cmd\->can_use_ipc_open3( [\s-1VERBOSE\s0] )" +.IX Subsection "$ipc_open3_version = IPC::Cmd->can_use_ipc_open3( [VERBOSE] )" +Utility function that tells you if \f(CW\*(C`IPC::Open3\*(C'\fR is available. +If the verbose flag is passed, it will print diagnostic messages +if \f(CW\*(C`IPC::Open3\*(C'\fR can not be found or loaded. +.ie n .SS "$bool = IPC::Cmd\->can_capture_buffer" +.el .SS "\f(CW$bool\fP = IPC::Cmd\->can_capture_buffer" +.IX Subsection "$bool = IPC::Cmd->can_capture_buffer" +Utility function that tells you if \f(CW\*(C`IPC::Cmd\*(C'\fR is capable of +capturing buffers in it's current configuration. +.ie n .SS "$bool = IPC::Cmd\->can_use_run_forked" +.el .SS "\f(CW$bool\fP = IPC::Cmd\->can_use_run_forked" +.IX Subsection "$bool = IPC::Cmd->can_use_run_forked" +Utility function that tells you if \f(CW\*(C`IPC::Cmd\*(C'\fR is capable of +providing \f(CW\*(C`run_forked\*(C'\fR on the current platform. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .SS "$path = can_run( \s-1PROGRAM\s0 );" +.el .SS "\f(CW$path\fP = can_run( \s-1PROGRAM\s0 );" +.IX Subsection "$path = can_run( PROGRAM );" +\&\f(CW\*(C`can_run\*(C'\fR takes only one argument: the name of a binary you wish +to locate. \f(CW\*(C`can_run\*(C'\fR works much like the unix binary \f(CW\*(C`which\*(C'\fR or the bash +command \f(CW\*(C`type\*(C'\fR, which scans through your path, looking for the requested +binary. +.PP +Unlike \f(CW\*(C`which\*(C'\fR and \f(CW\*(C`type\*(C'\fR, this function is platform independent and +will also work on, for example, Win32. +.PP +If called in a scalar context it will return the full path to the binary +you asked for if it was found, or \f(CW\*(C`undef\*(C'\fR if it was not. +.PP +If called in a list context and the global variable \f(CW$INSTANCES\fR is a true +value, it will return a list of the full paths to instances +of the binary where found in \f(CW\*(C`PATH\*(C'\fR, or an empty list if it was not found. +.ie n .SS "$ok | ($ok, $err, $full_buf, $stdout_buff, $stderr_buff) = run( command => \s-1COMMAND,\s0 [verbose => \s-1BOOL,\s0 buffer => \e$SCALAR, timeout => \s-1DIGIT\s0] );" +.el .SS "\f(CW$ok\fP | ($ok, \f(CW$err\fP, \f(CW$full_buf\fP, \f(CW$stdout_buff\fP, \f(CW$stderr_buff\fP) = run( command => \s-1COMMAND,\s0 [verbose => \s-1BOOL,\s0 buffer => \e$SCALAR, timeout => \s-1DIGIT\s0] );" +.IX Subsection "$ok | ($ok, $err, $full_buf, $stdout_buff, $stderr_buff) = run( command => COMMAND, [verbose => BOOL, buffer => $SCALAR, timeout => DIGIT] );" +\&\f(CW\*(C`run\*(C'\fR takes 4 arguments: +.IP "command" 4 +.IX Item "command" +This is the command to execute. It may be either a string or an array +reference. +This is a required argument. +.Sp +See \*(L"Caveats\*(R" for remarks on how commands are parsed and their +limitations. +.IP "verbose" 4 +.IX Item "verbose" +This controls whether all output of a command should also be printed +to \s-1STDOUT/STDERR\s0 or should only be trapped in buffers (\s-1NOTE:\s0 buffers +require IPC::Run to be installed, or your system able to work with +IPC::Open3). +.Sp +It will default to the global setting of \f(CW$IPC::Cmd::VERBOSE\fR, +which by default is 0. +.IP "buffer" 4 +.IX Item "buffer" +This will hold all the output of a command. It needs to be a reference +to a scalar. +Note that this will hold both the \s-1STDOUT\s0 and \s-1STDERR\s0 messages, and you +have no way of telling which is which. +If you require this distinction, run the \f(CW\*(C`run\*(C'\fR command in list context +and inspect the individual buffers. +.Sp +Of course, this requires that the underlying call supports buffers. See +the note on buffers above. +.IP "timeout" 4 +.IX Item "timeout" +Sets the maximum time the command is allowed to run before aborting, +using the built-in \f(CW\*(C`alarm()\*(C'\fR call. If the timeout is triggered, the +\&\f(CW\*(C`errorcode\*(C'\fR in the return value will be set to an object of the +\&\f(CW\*(C`IPC::Cmd::TimeOut\*(C'\fR class. See the \*(L"error message\*(R" section below for +details. +.Sp +Defaults to \f(CW0\fR, meaning no timeout is set. +.PP +\&\f(CW\*(C`run\*(C'\fR will return a simple \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR when called in scalar +context. +In list context, you will be returned a list of the following items: +.IP "success" 4 +.IX Item "success" +A simple boolean indicating if the command executed without errors or +not. +.IP "error message" 4 +.IX Item "error message" +If the first element of the return value (\f(CW\*(C`success\*(C'\fR) was 0, then some +error occurred. This second element is the error message the command +you requested exited with, if available. This is generally a pretty +printed value of \f(CW$?\fR or \f(CW$@\fR. See \f(CW\*(C`perldoc perlvar\*(C'\fR for details on +what they can contain. +If the error was a timeout, the \f(CW\*(C`error message\*(C'\fR will be prefixed with +the string \f(CW\*(C`IPC::Cmd::TimeOut\*(C'\fR, the timeout class. +.IP "full_buffer" 4 +.IX Item "full_buffer" +This is an array reference containing all the output the command +generated. +Note that buffers are only available if you have IPC::Run installed, +or if your system is able to work with IPC::Open3 \*(-- see below). +Otherwise, this element will be \f(CW\*(C`undef\*(C'\fR. +.IP "out_buffer" 4 +.IX Item "out_buffer" +This is an array reference containing all the output sent to \s-1STDOUT\s0 the +command generated. The notes from \*(L"full_buffer\*(R" apply. +.IP "error_buffer" 4 +.IX Item "error_buffer" +This is an arrayreference containing all the output sent to \s-1STDERR\s0 the +command generated. The notes from \*(L"full_buffer\*(R" apply. +.PP +See the \*(L"\s-1HOW IT WORKS\*(R"\s0 section below to see how \f(CW\*(C`IPC::Cmd\*(C'\fR decides +what modules or function calls to use when issuing a command. +.ie n .SS "$hashref = run_forked( \s-1COMMAND,\s0 { child_stdin => \s-1SCALAR,\s0 timeout => \s-1DIGIT,\s0 stdout_handler => \s-1CODEREF,\s0 stderr_handler => \s-1CODEREF\s0} );" +.el .SS "\f(CW$hashref\fP = run_forked( \s-1COMMAND,\s0 { child_stdin => \s-1SCALAR,\s0 timeout => \s-1DIGIT,\s0 stdout_handler => \s-1CODEREF,\s0 stderr_handler => \s-1CODEREF\s0} );" +.IX Subsection "$hashref = run_forked( COMMAND, { child_stdin => SCALAR, timeout => DIGIT, stdout_handler => CODEREF, stderr_handler => CODEREF} );" +\&\f(CW\*(C`run_forked\*(C'\fR is used to execute some program or a coderef, +optionally feed it with some input, get its return code +and output (both stdout and stderr into separate buffers). +In addition, it allows to terminate the program +if it takes too long to finish. +.PP +The important and distinguishing feature of run_forked +is execution timeout which at first seems to be +quite a simple task but if you think +that the program which you're spawning +might spawn some children itself (which +in their turn could do the same and so on) +it turns out to be not a simple issue. +.PP +\&\f(CW\*(C`run_forked\*(C'\fR is designed to survive and +successfully terminate almost any long running task, +even a fork bomb in case your system has the resources +to survive during given timeout. +.PP +This is achieved by creating separate watchdog process +which spawns the specified program in a separate +process session and supervises it: optionally +feeds it with input, stores its exit code, +stdout and stderr, terminates it in case +it runs longer than specified. +.PP +Invocation requires the command to be executed or a coderef and optionally a hashref of options: +.ie n .IP """timeout""" 4 +.el .IP "\f(CWtimeout\fR" 4 +.IX Item "timeout" +Specify in seconds how long to run the command before it is killed with \s-1SIG_KILL\s0 (9), +which effectively terminates it and all of its children (direct or indirect). +.ie n .IP """child_stdin""" 4 +.el .IP "\f(CWchild_stdin\fR" 4 +.IX Item "child_stdin" +Specify some text that will be passed into the \f(CW\*(C`STDIN\*(C'\fR of the executed program. +.ie n .IP """stdout_handler""" 4 +.el .IP "\f(CWstdout_handler\fR" 4 +.IX Item "stdout_handler" +Coderef of a subroutine to call when a portion of data is received on +\&\s-1STDOUT\s0 from the executing program. +.ie n .IP """stderr_handler""" 4 +.el .IP "\f(CWstderr_handler\fR" 4 +.IX Item "stderr_handler" +Coderef of a subroutine to call when a portion of data is received on +\&\s-1STDERR\s0 from the executing program. +.ie n .IP """wait_loop_callback""" 4 +.el .IP "\f(CWwait_loop_callback\fR" 4 +.IX Item "wait_loop_callback" +Coderef of a subroutine to call inside of the main waiting loop +(while \f(CW\*(C`run_forked\*(C'\fR waits for the external to finish or fail). +It is useful to stop running external process before it ends +by itself, e.g. +.Sp +.Vb 8 +\& my $r = run_forked("some external command", { +\& \*(Aqwait_loop_callback\*(Aq => sub { +\& if (condition) { +\& kill(1, $$); +\& } +\& }, +\& \*(Aqterminate_on_signal\*(Aq => \*(AqHUP\*(Aq, +\& }); +.Ve +.Sp +Combined with \f(CW\*(C`stdout_handler\*(C'\fR and \f(CW\*(C`stderr_handler\*(C'\fR allows terminating +external command based on its output. Could also be used as a timer +without engaging with alarm (signals). +.Sp +Remember that this code could be called every millisecond (depending +on the output which external command generates), so try to make it +as lightweight as possible. +.ie n .IP """discard_output""" 4 +.el .IP "\f(CWdiscard_output\fR" 4 +.IX Item "discard_output" +Discards the buffering of the standard output and standard errors for return by \fBrun_forked()\fR. +With this option you have to use the std*_handlers to read what the command outputs. +Useful for commands that send a lot of output. +.ie n .IP """terminate_on_parent_sudden_death""" 4 +.el .IP "\f(CWterminate_on_parent_sudden_death\fR" 4 +.IX Item "terminate_on_parent_sudden_death" +Enable this option if you wish all spawned processes to be killed if the initially spawned +process (the parent) is killed or dies without waiting for child processes. +.PP +\&\f(CW\*(C`run_forked\*(C'\fR will return a \s-1HASHREF\s0 with the following keys: +.ie n .IP """exit_code""" 4 +.el .IP "\f(CWexit_code\fR" 4 +.IX Item "exit_code" +The exit code of the executed program. +.ie n .IP """timeout""" 4 +.el .IP "\f(CWtimeout\fR" 4 +.IX Item "timeout" +The number of seconds the program ran for before being terminated, or 0 if no timeout occurred. +.ie n .IP """stdout""" 4 +.el .IP "\f(CWstdout\fR" 4 +.IX Item "stdout" +Holds the standard output of the executed command (or empty string if +there was no \s-1STDOUT\s0 output or if \f(CW\*(C`discard_output\*(C'\fR was used; it's always defined!) +.ie n .IP """stderr""" 4 +.el .IP "\f(CWstderr\fR" 4 +.IX Item "stderr" +Holds the standard error of the executed command (or empty string if +there was no \s-1STDERR\s0 output or if \f(CW\*(C`discard_output\*(C'\fR was used; it's always defined!) +.ie n .IP """merged""" 4 +.el .IP "\f(CWmerged\fR" 4 +.IX Item "merged" +Holds the standard output and error of the executed command merged into one stream +(or empty string if there was no output at all or if \f(CW\*(C`discard_output\*(C'\fR was used; it's always defined!) +.ie n .IP """err_msg""" 4 +.el .IP "\f(CWerr_msg\fR" 4 +.IX Item "err_msg" +Holds some explanation in the case of an error. +.ie n .SS "$q = \s-1QUOTE\s0" +.el .SS "\f(CW$q\fP = \s-1QUOTE\s0" +.IX Subsection "$q = QUOTE" +Returns the character used for quoting strings on this platform. This is +usually a \f(CW\*(C`\*(Aq\*(C'\fR (single quote) on most systems, but some systems use different +quotes. For example, \f(CW\*(C`Win32\*(C'\fR uses \f(CW\*(C`"\*(C'\fR (double quote). +.PP +You can use it as follows: +.PP +.Vb 2 +\& use IPC::Cmd qw[run QUOTE]; +\& my $cmd = q[echo ] . QUOTE . q[foo bar] . QUOTE; +.Ve +.PP +This makes sure that \f(CW\*(C`foo bar\*(C'\fR is treated as a string, rather than two +separate arguments to the \f(CW\*(C`echo\*(C'\fR function. +.SH "HOW IT WORKS" +.IX Header "HOW IT WORKS" +\&\f(CW\*(C`run\*(C'\fR will try to execute your command using the following logic: +.IP "\(bu" 4 +If you have \f(CW\*(C`IPC::Run\*(C'\fR installed, and the variable \f(CW$IPC::Cmd::USE_IPC_RUN\fR +is set to true (See the \*(L"Global Variables\*(R" section) use that to execute +the command. You will have the full output available in buffers, interactive commands +are sure to work and you are guaranteed to have your verbosity +settings honored cleanly. +.IP "\(bu" 4 +Otherwise, if the variable \f(CW$IPC::Cmd::USE_IPC_OPEN3\fR is set to true +(See the \*(L"Global Variables\*(R" section), try to execute the command using +IPC::Open3. Buffers will be available on all platforms, +interactive commands will still execute cleanly, and also your verbosity +settings will be adhered to nicely; +.IP "\(bu" 4 +Otherwise, if you have the \f(CW\*(C`verbose\*(C'\fR argument set to true, we fall back +to a simple \f(CW\*(C`system()\*(C'\fR call. We cannot capture any buffers, but +interactive commands will still work. +.IP "\(bu" 4 +Otherwise we will try and temporarily redirect \s-1STDERR\s0 and \s-1STDOUT,\s0 do a +\&\f(CW\*(C`system()\*(C'\fR call with your command and then re-open \s-1STDERR\s0 and \s-1STDOUT.\s0 +This is the method of last resort and will still allow you to execute +your commands cleanly. However, no buffers will be available. +.SH "Global Variables" +.IX Header "Global Variables" +The behaviour of IPC::Cmd can be altered by changing the following +global variables: +.ie n .SS "$IPC::Cmd::VERBOSE" +.el .SS "\f(CW$IPC::Cmd::VERBOSE\fP" +.IX Subsection "$IPC::Cmd::VERBOSE" +This controls whether IPC::Cmd will print any output from the +commands to the screen or not. The default is 0. +.ie n .SS "$IPC::Cmd::USE_IPC_RUN" +.el .SS "\f(CW$IPC::Cmd::USE_IPC_RUN\fP" +.IX Subsection "$IPC::Cmd::USE_IPC_RUN" +This variable controls whether IPC::Cmd will try to use IPC::Run +when available and suitable. +.ie n .SS "$IPC::Cmd::USE_IPC_OPEN3" +.el .SS "\f(CW$IPC::Cmd::USE_IPC_OPEN3\fP" +.IX Subsection "$IPC::Cmd::USE_IPC_OPEN3" +This variable controls whether IPC::Cmd will try to use IPC::Open3 +when available and suitable. Defaults to true. +.ie n .SS "$IPC::Cmd::WARN" +.el .SS "\f(CW$IPC::Cmd::WARN\fP" +.IX Subsection "$IPC::Cmd::WARN" +This variable controls whether run-time warnings should be issued, like +the failure to load an \f(CW\*(C`IPC::*\*(C'\fR module you explicitly requested. +.PP +Defaults to true. Turn this off at your own risk. +.ie n .SS "$IPC::Cmd::INSTANCES" +.el .SS "\f(CW$IPC::Cmd::INSTANCES\fP" +.IX Subsection "$IPC::Cmd::INSTANCES" +This variable controls whether \f(CW\*(C`can_run\*(C'\fR will return all instances of +the binary it finds in the \f(CW\*(C`PATH\*(C'\fR when called in a list context. +.PP +Defaults to false, set to true to enable the described behaviour. +.ie n .SS "$IPC::Cmd::ALLOW_NULL_ARGS" +.el .SS "\f(CW$IPC::Cmd::ALLOW_NULL_ARGS\fP" +.IX Subsection "$IPC::Cmd::ALLOW_NULL_ARGS" +This variable controls whether \f(CW\*(C`run\*(C'\fR will remove any empty/null arguments +it finds in command arguments. +.PP +Defaults to false, so it will remove null arguments. Set to true to allow +them. +.SH "Caveats" +.IX Header "Caveats" +.IP "Whitespace and IPC::Open3 / \fBsystem()\fR" 4 +.IX Item "Whitespace and IPC::Open3 / system()" +When using \f(CW\*(C`IPC::Open3\*(C'\fR or \f(CW\*(C`system\*(C'\fR, if you provide a string as the +\&\f(CW\*(C`command\*(C'\fR argument, it is assumed to be appropriately escaped. You can +use the \f(CW\*(C`QUOTE\*(C'\fR constant to use as a portable quote character (see above). +However, if you provide an array reference, special rules apply: +.Sp +If your command contains \fBspecial characters\fR (< > | &), it will +be internally stringified before executing the command, to avoid that these +special characters are escaped and passed as arguments instead of retaining +their special meaning. +.Sp +However, if the command contained arguments that contained whitespace, +stringifying the command would lose the significance of the whitespace. +Therefore, \f(CW\*(C`IPC::Cmd\*(C'\fR will quote any arguments containing whitespace in your +command if the command is passed as an arrayref and contains special characters. +.IP "Whitespace and IPC::Run" 4 +.IX Item "Whitespace and IPC::Run" +When using \f(CW\*(C`IPC::Run\*(C'\fR, if you provide a string as the \f(CW\*(C`command\*(C'\fR argument, +the string will be split on whitespace to determine the individual elements +of your command. Although this will usually just Do What You Mean, it may +break if you have files or commands with whitespace in them. +.Sp +If you do not wish this to happen, you should provide an array +reference, where all parts of your command are already separated out. +Note however, if there are extra or spurious whitespaces in these parts, +the parser or underlying code may not interpret it correctly, and +cause an error. +.Sp +Example: +The following code +.Sp +.Vb 1 +\& gzip \-cdf foo.tar.gz | tar \-xf \- +.Ve +.Sp +should either be passed as +.Sp +.Vb 1 +\& "gzip \-cdf foo.tar.gz | tar \-xf \-" +.Ve +.Sp +or as +.Sp +.Vb 1 +\& [\*(Aqgzip\*(Aq, \*(Aq\-cdf\*(Aq, \*(Aqfoo.tar.gz\*(Aq, \*(Aq|\*(Aq, \*(Aqtar\*(Aq, \*(Aq\-xf\*(Aq, \*(Aq\-\*(Aq] +.Ve +.Sp +But take care not to pass it as, for example +.Sp +.Vb 1 +\& [\*(Aqgzip \-cdf foo.tar.gz\*(Aq, \*(Aq|\*(Aq, \*(Aqtar \-xf \-\*(Aq] +.Ve +.Sp +Since this will lead to issues as described above. +.IP "\s-1IO\s0 Redirect" 4 +.IX Item "IO Redirect" +Currently it is too complicated to parse your command for \s-1IO\s0 +redirections. For capturing \s-1STDOUT\s0 or \s-1STDERR\s0 there is a work around +however, since you can just inspect your buffers for the contents. +.IP "Interleaving \s-1STDOUT/STDERR\s0" 4 +.IX Item "Interleaving STDOUT/STDERR" +Neither IPC::Run nor IPC::Open3 can interleave \s-1STDOUT\s0 and \s-1STDERR.\s0 For short +bursts of output from a program, e.g. this sample, +.Sp +.Vb 3 +\& for ( 1..4 ) { +\& $_ % 2 ? print STDOUT $_ : print STDERR $_; +\& } +.Ve +.Sp +IPC::[Run|Open3] will first read all of \s-1STDOUT,\s0 then all of \s-1STDERR,\s0 meaning +the output looks like '13' on \s-1STDOUT\s0 and '24' on \s-1STDERR,\s0 instead of +.Sp +.Vb 4 +\& 1 +\& 2 +\& 3 +\& 4 +.Ve +.Sp +This has been recorded in rt.cpan.org as bug #37532: Unable to interleave +\&\s-1STDOUT\s0 and \s-1STDERR.\s0 +.SH "See Also" +.IX Header "See Also" +IPC::Run, IPC::Open3 +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Thanks to James Mastros and Martijn van der Streek for their +help in getting IPC::Open3 to behave nicely. +.PP +Thanks to Petya Kohts for the \f(CW\*(C`run_forked\*(C'\fR code. +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +Original author: Jos Boumans . +Current maintainer: Chris Williams . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IPC%3A%3AMsg.3 b/data/miniconda3/man/man3/IPC%3A%3AMsg.3 new file mode 100644 index 0000000000000000000000000000000000000000..3a364eaf4d5229f5e3d612dc2d98521346aac05b --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3AMsg.3 @@ -0,0 +1,248 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::Msg 3" +.TH IPC::Msg 3 "2020-12-18" "perl v5.32.1" "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" +IPC::Msg \- SysV Msg IPC object class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use IPC::SysV qw(IPC_PRIVATE S_IRUSR S_IWUSR); +\& use IPC::Msg; +\& +\& $msg = IPC::Msg\->new(IPC_PRIVATE, S_IRUSR | S_IWUSR); +\& +\& $msg\->snd($msgtype, $msgdata); +\& +\& $msg\->rcv($buf, 256); +\& +\& $ds = $msg\->stat; +\& +\& $msg\->remove; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A class providing an object based interface to SysV \s-1IPC\s0 message queues. +.SH "METHODS" +.IX Header "METHODS" +.IP "new ( \s-1KEY , FLAGS\s0 )" 4 +.IX Item "new ( KEY , FLAGS )" +Creates a new message queue associated with \f(CW\*(C`KEY\*(C'\fR. A new queue is +created if +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR is equal to \f(CW\*(C`IPC_PRIVATE\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR does not already have a message queue associated with +it, and \f(CW\*(C`\f(CIFLAGS\f(CW & IPC_CREAT\*(C'\fR is true. +.RE +.RS 4 +.Sp +On creation of a new message queue \f(CW\*(C`FLAGS\*(C'\fR is used to set the +permissions. Be careful not to set any flags that the Sys V +\&\s-1IPC\s0 implementation does not allow: in some systems setting +execute bits makes the operations fail. +.RE +.IP "id" 4 +.IX Item "id" +Returns the system message queue identifier. +.IP "rcv ( \s-1BUF, LEN\s0 [, \s-1TYPE\s0 [, \s-1FLAGS\s0 ]] )" 4 +.IX Item "rcv ( BUF, LEN [, TYPE [, FLAGS ]] )" +Read a message from the queue. Returns the type of the message read. +See \fBmsgrcv\fR\|(2). The \s-1BUF\s0 becomes tainted. +.IP "remove" 4 +.IX Item "remove" +Remove and destroy the message queue from the system. +.IP "set ( \s-1STAT\s0 )" 4 +.IX Item "set ( STAT )" +.PD 0 +.IP "set ( \s-1NAME\s0 => \s-1VALUE\s0 [, \s-1NAME\s0 => \s-1VALUE ...\s0] )" 4 +.IX Item "set ( NAME => VALUE [, NAME => VALUE ...] )" +.PD +\&\f(CW\*(C`set\*(C'\fR will set the following values of the \f(CW\*(C`stat\*(C'\fR structure associated +with the message queue. +.Sp +.Vb 4 +\& uid +\& gid +\& mode (oly the permission bits) +\& qbytes +.Ve +.Sp +\&\f(CW\*(C`set\*(C'\fR accepts either a stat object, as returned by the \f(CW\*(C`stat\*(C'\fR method, +or a list of \fIname\fR\-\fIvalue\fR pairs. +.IP "snd ( \s-1TYPE, MSG\s0 [, \s-1FLAGS\s0 ] )" 4 +.IX Item "snd ( TYPE, MSG [, FLAGS ] )" +Place a message on the queue with the data from \f(CW\*(C`MSG\*(C'\fR and with type \f(CW\*(C`TYPE\*(C'\fR. +See \fBmsgsnd\fR\|(2). +.IP "stat" 4 +.IX Item "stat" +Returns an object of type \f(CW\*(C`IPC::Msg::stat\*(C'\fR which is a sub-class of +\&\f(CW\*(C`Class::Struct\*(C'\fR. It provides the following fields. For a description +of these fields see you system documentation. +.Sp +.Vb 12 +\& uid +\& gid +\& cuid +\& cgid +\& mode +\& qnum +\& qbytes +\& lspid +\& lrpid +\& stime +\& rtime +\& ctime +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IPC::SysV, Class::Struct +.SH "AUTHORS" +.IX Header "AUTHORS" +Graham Barr , +Marcus Holland-Moritz +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Version 2.x, Copyright (C) 2007\-2013, Marcus Holland-Moritz. +.PP +Version 1.x, Copyright (c) 1997, Graham Barr. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IPC%3A%3AOpen2.3 b/data/miniconda3/man/man3/IPC%3A%3AOpen2.3 new file mode 100644 index 0000000000000000000000000000000000000000..dc8cfd82b59ffb026959cd618046ad5cb8b8f717 --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3AOpen2.3 @@ -0,0 +1,222 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::Open2 3" +.TH IPC::Open2 3 "2020-12-18" "perl v5.32.1" "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" +IPC::Open2 \- open a process for both reading and writing using open2() +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IPC::Open2; +\& +\& my $pid = open2(my $chld_out, my $chld_in, +\& \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& # or passing the command through the shell +\& my $pid = open2(my $chld_out, my $chld_in, \*(Aqsome cmd and args\*(Aq); +\& +\& # read from parent STDIN and write to already open handle +\& open my $outfile, \*(Aq>\*(Aq, \*(Aqoutfile.txt\*(Aq or die "open failed: $!"; +\& my $pid = open2($outfile, \*(Aq<&STDIN\*(Aq, \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& +\& # read from already open handle and write to parent STDOUT +\& open my $infile, \*(Aq<\*(Aq, \*(Aqinfile.txt\*(Aq or die "open failed: $!"; +\& my $pid = open2(\*(Aq>&STDOUT\*(Aq, $infile, \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& +\& # reap zombie and retrieve exit status +\& waitpid( $pid, 0 ); +\& my $child_exit_status = $? >> 8; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBopen2()\fR function runs the given command and connects \f(CW$chld_out\fR for +reading and \f(CW$chld_in\fR for writing. It's what you think should work +when you try +.PP +.Vb 1 +\& my $pid = open(my $fh, "|cmd args|"); +.Ve +.PP +The \f(CW$chld_in\fR filehandle will have autoflush turned on. +.PP +If \f(CW$chld_out\fR is a string (that is, a bareword filehandle rather than a glob +or a reference) and it begins with \f(CW\*(C`>&\*(C'\fR, then the child will send output +directly to that file handle. If \f(CW$chld_in\fR is a string that begins with +\&\f(CW\*(C`<&\*(C'\fR, then \f(CW$chld_in\fR will be closed in the parent, and the child will +read from it directly. In both cases, there will be a \fBdup\fR\|(2) instead of a +\&\fBpipe\fR\|(2) made. +.PP +If either reader or writer is the empty string or undefined, this will be +replaced by an autogenerated filehandle. If so, you must pass a valid lvalue +in the parameter slot so it can be overwritten in the caller, or +an exception will be raised. +.PP +\&\fBopen2()\fR returns the process \s-1ID\s0 of the child process. It doesn't return on +failure: it just raises an exception matching \f(CW\*(C`/^open2:/\*(C'\fR. However, +\&\f(CW\*(C`exec\*(C'\fR failures in the child are not detected. You'll have to +trap \s-1SIGPIPE\s0 yourself. +.PP +\&\fBopen2()\fR does not wait for and reap the child process after it exits. +Except for short programs where it's acceptable to let the operating system +take care of this, you need to do this yourself. This is normally as +simple as calling \f(CW\*(C`waitpid $pid, 0\*(C'\fR when you're done with the process. +Failing to do this can result in an accumulation of defunct or \*(L"zombie\*(R" +processes. See \*(L"waitpid\*(R" in perlfunc for more information. +.PP +This whole affair is quite dangerous, as you may block forever. It +assumes it's going to talk to something like \fBbc\fR\|(1), both writing +to it and reading from it. This is presumably safe because you +\&\*(L"know\*(R" that commands like \fBbc\fR\|(1) will read a line at a time and +output a line at a time. Programs like \fBsort\fR\|(1) that read their +entire input stream first, however, are quite apt to cause deadlock. +.PP +The big problem with this approach is that if you don't have control +over source code being run in the child process, you can't control +what it does with pipe buffering. Thus you can't just open a pipe to +\&\f(CW\*(C`cat \-v\*(C'\fR and continually read and write a line from it. +.PP +The IO::Pty and Expect modules from \s-1CPAN\s0 can help with this, as +they provide a real tty (well, a pseudo-tty, actually), which gets you +back to line buffering in the invoked command again. +.SH "WARNING" +.IX Header "WARNING" +The order of arguments differs from that of \fBopen3()\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See IPC::Open3 for an alternative that handles \s-1STDERR\s0 as well. This +function is really just a wrapper around \fBopen3()\fR. diff --git a/data/miniconda3/man/man3/IPC%3A%3AOpen3.3 b/data/miniconda3/man/man3/IPC%3A%3AOpen3.3 new file mode 100644 index 0000000000000000000000000000000000000000..d09bf63ff9c691cce62fd23489dd15d919cedbbb --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3AOpen3.3 @@ -0,0 +1,241 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::Open3 3" +.TH IPC::Open3 3 "2020-12-18" "perl v5.32.1" "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" +IPC::Open3 \- open a process for reading, writing, and error handling using open3() +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use Symbol \*(Aqgensym\*(Aq; # vivify a separate handle for STDERR +\& my $pid = open3(my $chld_in, my $chld_out, my $chld_err = gensym, +\& \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& # or pass the command through the shell +\& my $pid = open3(my $chld_in, my $chld_out, my $chld_err = gensym, +\& \*(Aqsome cmd and args\*(Aq); +\& +\& # read from parent STDIN +\& # send STDOUT and STDERR to already open handle +\& open my $outfile, \*(Aq>>\*(Aq, \*(Aqoutput.txt\*(Aq or die "open failed: $!"; +\& my $pid = open3(\*(Aq<&STDIN\*(Aq, $outfile, undef, +\& \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& +\& # write to parent STDOUT and STDERR +\& my $pid = open3(my $chld_in, \*(Aq>&STDOUT\*(Aq, \*(Aq>&STDERR\*(Aq, +\& \*(Aqsome\*(Aq, \*(Aqcmd\*(Aq, \*(Aqand\*(Aq, \*(Aqargs\*(Aq); +\& +\& # reap zombie and retrieve exit status +\& waitpid( $pid, 0 ); +\& my $child_exit_status = $? >> 8; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Extremely similar to \fBopen2()\fR, \fBopen3()\fR spawns the given command and +connects \f(CW$chld_out\fR for reading from the child, \f(CW$chld_in\fR for writing to +the child, and \f(CW$chld_err\fR for errors. If \f(CW$chld_err\fR is false, or the +same file descriptor as \f(CW$chld_out\fR, then \s-1STDOUT\s0 and \s-1STDERR\s0 of the child +are on the same filehandle. This means that an autovivified lexical +cannot be used for the \s-1STDERR\s0 filehandle, but gensym from Symbol can +be used to vivify a new glob reference, see \*(L"\s-1SYNOPSIS\*(R"\s0. The \f(CW$chld_in\fR +will have autoflush turned on. +.PP +If \f(CW$chld_in\fR begins with \f(CW\*(C`<&\*(C'\fR, then \f(CW$chld_in\fR will be closed in the +parent, and the child will read from it directly. If \f(CW$chld_out\fR or +\&\f(CW$chld_err\fR begins with \f(CW\*(C`>&\*(C'\fR, then the child will send output +directly to that filehandle. In both cases, there will be a \fBdup\fR\|(2) +instead of a \fBpipe\fR\|(2) made. +.PP +If either reader or writer is the empty string or undefined, this will +be replaced by an autogenerated filehandle. If so, you must pass a +valid lvalue in the parameter slot so it can be overwritten in the +caller, or an exception will be raised. +.PP +The filehandles may also be integers, in which case they are understood +as file descriptors. +.PP +\&\fBopen3()\fR returns the process \s-1ID\s0 of the child process. It doesn't return on +failure: it just raises an exception matching \f(CW\*(C`/^open3:/\*(C'\fR. However, +\&\f(CW\*(C`exec\*(C'\fR failures in the child (such as no such file or permission denied), +are just reported to \f(CW$chld_err\fR under Windows and \s-1OS/2,\s0 as it is not possible +to trap them. +.PP +If the child process dies for any reason, the next write to \f(CW$chld_in\fR is +likely to generate a \s-1SIGPIPE\s0 in the parent, which is fatal by default. +So you may wish to handle this signal. +.PP +Note if you specify \f(CW\*(C`\-\*(C'\fR as the command, in an analogous fashion to +\&\f(CW\*(C`open(my $fh, "\-|")\*(C'\fR the child process will just be the forked Perl +process rather than an external command. This feature isn't yet +supported on Win32 platforms. +.PP +\&\fBopen3()\fR does not wait for and reap the child process after it exits. +Except for short programs where it's acceptable to let the operating system +take care of this, you need to do this yourself. This is normally as +simple as calling \f(CW\*(C`waitpid $pid, 0\*(C'\fR when you're done with the process. +Failing to do this can result in an accumulation of defunct or \*(L"zombie\*(R" +processes. See \*(L"waitpid\*(R" in perlfunc for more information. +.PP +If you try to read from the child's stdout writer and their stderr +writer, you'll have problems with blocking, which means you'll want +to use \fBselect()\fR or IO::Select, which means you'd best use +\&\fBsysread()\fR instead of \fBreadline()\fR for normal stuff. +.PP +This is very dangerous, as you may block forever. It assumes it's +going to talk to something like \fBbc\fR\|(1), both writing to it and reading +from it. This is presumably safe because you \*(L"know\*(R" that commands +like \fBbc\fR\|(1) will read a line at a time and output a line at a time. +Programs like \fBsort\fR\|(1) that read their entire input stream first, +however, are quite apt to cause deadlock. +.PP +The big problem with this approach is that if you don't have control +over source code being run in the child process, you can't control +what it does with pipe buffering. Thus you can't just open a pipe to +\&\f(CW\*(C`cat \-v\*(C'\fR and continually read and write a line from it. +.SH "See Also" +.IX Header "See Also" +.IP "IPC::Open2" 4 +.IX Item "IPC::Open2" +Like Open3 but without \s-1STDERR\s0 capture. +.IP "IPC::Run" 4 +.IX Item "IPC::Run" +This is a \s-1CPAN\s0 module that has better error handling and more facilities +than Open3. +.SH "WARNING" +.IX Header "WARNING" +The order of arguments differs from that of \fBopen2()\fR. diff --git a/data/miniconda3/man/man3/IPC%3A%3ASemaphore.3 b/data/miniconda3/man/man3/IPC%3A%3ASemaphore.3 new file mode 100644 index 0000000000000000000000000000000000000000..eacdf625b1c66da971a1bc5931ed2ee67bc4f788 --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3ASemaphore.3 @@ -0,0 +1,277 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::Semaphore 3" +.TH IPC::Semaphore 3 "2020-12-18" "perl v5.32.1" "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" +IPC::Semaphore \- SysV Semaphore IPC object class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use IPC::SysV qw(IPC_PRIVATE S_IRUSR S_IWUSR IPC_CREAT); +\& use IPC::Semaphore; +\& +\& $sem = IPC::Semaphore\->new(IPC_PRIVATE, 10, S_IRUSR | S_IWUSR | IPC_CREAT); +\& +\& $sem\->setall( (0) x 10); +\& +\& @sem = $sem\->getall; +\& +\& $ncnt = $sem\->getncnt; +\& +\& $zcnt = $sem\->getzcnt; +\& +\& $ds = $sem\->stat; +\& +\& $sem\->remove; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A class providing an object based interface to SysV \s-1IPC\s0 semaphores. +.SH "METHODS" +.IX Header "METHODS" +.IP "new ( \s-1KEY , NSEMS , FLAGS\s0 )" 4 +.IX Item "new ( KEY , NSEMS , FLAGS )" +Create a new semaphore set associated with \f(CW\*(C`KEY\*(C'\fR. \f(CW\*(C`NSEMS\*(C'\fR is the number +of semaphores in the set. A new set is created if +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR is equal to \f(CW\*(C`IPC_PRIVATE\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR does not already have a semaphore identifier +associated with it, and \f(CW\*(C`\f(CIFLAGS\f(CW & IPC_CREAT\*(C'\fR is true. +.RE +.RS 4 +.Sp +On creation of a new semaphore set \f(CW\*(C`FLAGS\*(C'\fR is used to set the +permissions. Be careful not to set any flags that the Sys V +\&\s-1IPC\s0 implementation does not allow: in some systems setting +execute bits makes the operations fail. +.RE +.IP "getall" 4 +.IX Item "getall" +Returns the values of the semaphore set as an array. +.IP "getncnt ( \s-1SEM\s0 )" 4 +.IX Item "getncnt ( SEM )" +Returns the number of processes waiting for the semaphore \f(CW\*(C`SEM\*(C'\fR to +become greater than its current value +.IP "getpid ( \s-1SEM\s0 )" 4 +.IX Item "getpid ( SEM )" +Returns the process id of the last process that performed an operation +on the semaphore \f(CW\*(C`SEM\*(C'\fR. +.IP "getval ( \s-1SEM\s0 )" 4 +.IX Item "getval ( SEM )" +Returns the current value of the semaphore \f(CW\*(C`SEM\*(C'\fR. +.IP "getzcnt ( \s-1SEM\s0 )" 4 +.IX Item "getzcnt ( SEM )" +Returns the number of processes waiting for the semaphore \f(CW\*(C`SEM\*(C'\fR to +become zero. +.IP "id" 4 +.IX Item "id" +Returns the system identifier for the semaphore set. +.IP "op ( \s-1OPLIST\s0 )" 4 +.IX Item "op ( OPLIST )" +\&\f(CW\*(C`OPLIST\*(C'\fR is a list of operations to pass to \f(CW\*(C`semop\*(C'\fR. \f(CW\*(C`OPLIST\*(C'\fR is +a concatenation of smaller lists, each which has three values. The +first is the semaphore number, the second is the operation and the last +is a flags value. See \fBsemop\fR\|(2) for more details. For example +.Sp +.Vb 4 +\& $sem\->op( +\& 0, \-1, IPC_NOWAIT, +\& 1, 1, IPC_NOWAIT +\& ); +.Ve +.IP "remove" 4 +.IX Item "remove" +Remove and destroy the semaphore set from the system. +.IP "set ( \s-1STAT\s0 )" 4 +.IX Item "set ( STAT )" +.PD 0 +.IP "set ( \s-1NAME\s0 => \s-1VALUE\s0 [, \s-1NAME\s0 => \s-1VALUE ...\s0] )" 4 +.IX Item "set ( NAME => VALUE [, NAME => VALUE ...] )" +.PD +\&\f(CW\*(C`set\*(C'\fR will set the following values of the \f(CW\*(C`stat\*(C'\fR structure associated +with the semaphore set. +.Sp +.Vb 3 +\& uid +\& gid +\& mode (only the permission bits) +.Ve +.Sp +\&\f(CW\*(C`set\*(C'\fR accepts either a stat object, as returned by the \f(CW\*(C`stat\*(C'\fR method, +or a list of \fIname\fR\-\fIvalue\fR pairs. +.IP "setall ( \s-1VALUES\s0 )" 4 +.IX Item "setall ( VALUES )" +Sets all values in the semaphore set to those given on the \f(CW\*(C`VALUES\*(C'\fR list. +\&\f(CW\*(C`VALUES\*(C'\fR must contain the correct number of values. +.IP "setval ( N , \s-1VALUE\s0 )" 4 +.IX Item "setval ( N , VALUE )" +Set the \f(CW\*(C`N\*(C'\fRth value in the semaphore set to \f(CW\*(C`VALUE\*(C'\fR +.IP "stat" 4 +.IX Item "stat" +Returns an object of type \f(CW\*(C`IPC::Semaphore::stat\*(C'\fR which is a sub-class of +\&\f(CW\*(C`Class::Struct\*(C'\fR. It provides the following fields. For a description +of these fields see your system documentation. +.Sp +.Vb 8 +\& uid +\& gid +\& cuid +\& cgid +\& mode +\& ctime +\& otime +\& nsems +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IPC::SysV, Class::Struct, \fBsemget\fR\|(2), \fBsemctl\fR\|(2), \fBsemop\fR\|(2) +.SH "AUTHORS" +.IX Header "AUTHORS" +Graham Barr , +Marcus Holland-Moritz +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Version 2.x, Copyright (C) 2007\-2013, Marcus Holland-Moritz. +.PP +Version 1.x, Copyright (c) 1997, Graham Barr. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IPC%3A%3ASharedMem.3 b/data/miniconda3/man/man3/IPC%3A%3ASharedMem.3 new file mode 100644 index 0000000000000000000000000000000000000000..41ad90e0fe04741ad88cf03dc44ec249bb64dcf3 --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3ASharedMem.3 @@ -0,0 +1,250 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::SharedMem 3" +.TH IPC::SharedMem 3 "2020-12-18" "perl v5.32.1" "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" +IPC::SharedMem \- SysV Shared Memory IPC object class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use IPC::SysV qw(IPC_PRIVATE S_IRUSR S_IWUSR); +\& use IPC::SharedMem; +\& +\& $shm = IPC::SharedMem\->new(IPC_PRIVATE, 8, S_IRWXU); +\& +\& $shm\->write(pack("S", 4711), 2, 2); +\& +\& $data = $shm\->read(0, 2); +\& +\& $ds = $shm\->stat; +\& +\& $shm\->remove; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A class providing an object based interface to SysV \s-1IPC\s0 shared memory. +.SH "METHODS" +.IX Header "METHODS" +.IP "new ( \s-1KEY , SIZE , FLAGS\s0 )" 4 +.IX Item "new ( KEY , SIZE , FLAGS )" +Creates a new shared memory segment of \f(CW\*(C`SIZE\*(C'\fR bytes size associated +with \f(CW\*(C`KEY\*(C'\fR. A new segment is created if +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR is equal to \f(CW\*(C`IPC_PRIVATE\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`KEY\*(C'\fR does not already have a shared memory segment associated +with it, and \f(CW\*(C`\f(CIFLAGS\f(CW & IPC_CREAT\*(C'\fR is true. +.RE +.RS 4 +.Sp +On creation of a new shared memory segment \f(CW\*(C`FLAGS\*(C'\fR is used to +set the permissions. Be careful not to set any flags that the +Sys V \s-1IPC\s0 implementation does not allow: in some systems setting +execute bits makes the operations fail. +.RE +.IP "id" 4 +.IX Item "id" +Returns the shared memory identifier. +.IP "read ( \s-1POS, SIZE\s0 )" 4 +.IX Item "read ( POS, SIZE )" +Read \f(CW\*(C`SIZE\*(C'\fR bytes from the shared memory segment at \f(CW\*(C`POS\*(C'\fR. Returns +the string read, or \f(CW\*(C`undef\*(C'\fR if there was an error. The return value +becomes tainted. See shmread. +.IP "write ( \s-1STRING, POS, SIZE\s0 )" 4 +.IX Item "write ( STRING, POS, SIZE )" +Write \f(CW\*(C`SIZE\*(C'\fR bytes to the shared memory segment at \f(CW\*(C`POS\*(C'\fR. Returns +true if successful, or false if there is an error. See shmwrite. +.IP "remove" 4 +.IX Item "remove" +Remove the shared memory segment from the system or mark it as +removed as long as any processes are still attached to it. +.IP "is_removed" 4 +.IX Item "is_removed" +Returns true if the shared memory segment has been removed or +marked for removal. +.IP "stat" 4 +.IX Item "stat" +Returns an object of type \f(CW\*(C`IPC::SharedMem::stat\*(C'\fR which is a sub-class +of \f(CW\*(C`Class::Struct\*(C'\fR. It provides the following fields. For a description +of these fields see you system documentation. +.Sp +.Vb 12 +\& uid +\& gid +\& cuid +\& cgid +\& mode +\& segsz +\& lpid +\& cpid +\& nattch +\& atime +\& dtime +\& ctime +.Ve +.IP "attach ( [\s-1FLAG\s0] )" 4 +.IX Item "attach ( [FLAG] )" +Permanently attach to the shared memory segment. When a \f(CW\*(C`IPC::SharedMem\*(C'\fR +object is attached, it will use memread and memwrite instead of +shmread and shmwrite for accessing the shared memory segment. +Returns true if successful, or false on error. See \fBshmat\fR\|(2). +.IP "detach" 4 +.IX Item "detach" +Detach from the shared memory segment that previously has been attached +to. Returns true if successful, or false on error. See \fBshmdt\fR\|(2). +.IP "addr" 4 +.IX Item "addr" +Returns the address of the shared memory that has been attached to in a +format suitable for use with \f(CW\*(C`pack(\*(AqP\*(Aq)\*(C'\fR. Returns \f(CW\*(C`undef\*(C'\fR if the shared +memory has not been attached. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IPC::SysV, Class::Struct +.SH "AUTHORS" +.IX Header "AUTHORS" +Marcus Holland-Moritz +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Version 2.x, Copyright (C) 2007\-2013, Marcus Holland-Moritz. +.PP +Version 1.x, Copyright (c) 1997, Graham Barr. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IPC%3A%3ASysV.3 b/data/miniconda3/man/man3/IPC%3A%3ASysV.3 new file mode 100644 index 0000000000000000000000000000000000000000..e6d4915b8f77a6d90ce59741dc0f571bf766d747 --- /dev/null +++ b/data/miniconda3/man/man3/IPC%3A%3ASysV.3 @@ -0,0 +1,217 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "IPC::SysV 3" +.TH IPC::SysV 3 "2020-12-18" "perl v5.32.1" "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" +IPC::SysV \- System V IPC constants and system calls +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IPC::SysV qw(IPC_STAT IPC_PRIVATE); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IPC::SysV\*(C'\fR defines and conditionally exports all the constants +defined in your system include files which are needed by the SysV +\&\s-1IPC\s0 calls. Common ones include +.PP +.Vb 4 +\& IPC_CREAT IPC_EXCL IPC_NOWAIT IPC_PRIVATE IPC_RMID IPC_SET IPC_STAT +\& GETVAL SETVAL GETPID GETNCNT GETZCNT GETALL SETALL +\& SEM_A SEM_R SEM_UNDO +\& SHM_RDONLY SHM_RND SHMLBA +.Ve +.PP +and auxiliary ones +.PP +.Vb 3 +\& S_IRUSR S_IWUSR S_IRWXU +\& S_IRGRP S_IWGRP S_IRWXG +\& S_IROTH S_IWOTH S_IRWXO +.Ve +.PP +but your system might have more. +.IP "ftok( \s-1PATH\s0 )" 4 +.IX Item "ftok( PATH )" +.PD 0 +.IP "ftok( \s-1PATH, ID\s0 )" 4 +.IX Item "ftok( PATH, ID )" +.PD +Return a key based on \s-1PATH\s0 and \s-1ID,\s0 which can be used as a key for +\&\f(CW\*(C`msgget\*(C'\fR, \f(CW\*(C`semget\*(C'\fR and \f(CW\*(C`shmget\*(C'\fR. See \fBftok\fR\|(3). +.Sp +If \s-1ID\s0 is omitted, it defaults to \f(CW1\fR. If a single character is +given for \s-1ID,\s0 the numeric value of that character is used. +.IP "shmat( \s-1ID, ADDR, FLAG\s0 )" 4 +.IX Item "shmat( ID, ADDR, FLAG )" +Attach the shared memory segment identified by \s-1ID\s0 to the address +space of the calling process. See \fBshmat\fR\|(2). +.Sp +\&\s-1ADDR\s0 should be \f(CW\*(C`undef\*(C'\fR unless you really know what you're doing. +.IP "shmdt( \s-1ADDR\s0 )" 4 +.IX Item "shmdt( ADDR )" +Detach the shared memory segment located at the address specified +by \s-1ADDR\s0 from the address space of the calling process. See \fBshmdt\fR\|(2). +.IP "memread( \s-1ADDR, VAR, POS, SIZE\s0 )" 4 +.IX Item "memread( ADDR, VAR, POS, SIZE )" +Reads \s-1SIZE\s0 bytes from a memory segment at \s-1ADDR\s0 starting at position \s-1POS. +VAR\s0 must be a variable that will hold the data read. Returns true if +successful, or false if there is an error. \fBmemread()\fR taints the variable. +.IP "memwrite( \s-1ADDR, STRING, POS, SIZE\s0 )" 4 +.IX Item "memwrite( ADDR, STRING, POS, SIZE )" +Writes \s-1SIZE\s0 bytes from \s-1STRING\s0 to a memory segment at \s-1ADDR\s0 starting at +position \s-1POS.\s0 If \s-1STRING\s0 is too long, only \s-1SIZE\s0 bytes are used; if \s-1STRING\s0 +is too short, nulls are written to fill out \s-1SIZE\s0 bytes. Returns true if +successful, or false if there is an error. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IPC::Msg, IPC::Semaphore, IPC::SharedMem, \fBftok\fR\|(3), \fBshmat\fR\|(2), \fBshmdt\fR\|(2) +.SH "AUTHORS" +.IX Header "AUTHORS" +Graham Barr , +Jarkko Hietaniemi , +Marcus Holland-Moritz +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Version 2.x, Copyright (C) 2007\-2013, Marcus Holland-Moritz. +.PP +Version 1.x, Copyright (c) 1997, Graham Barr. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Internals.3 b/data/miniconda3/man/man3/Internals.3 new file mode 100644 index 0000000000000000000000000000000000000000..1c10072bba236e5a9168941ecb93ca0b5904e7ad --- /dev/null +++ b/data/miniconda3/man/man3/Internals.3 @@ -0,0 +1,208 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Internals 3" +.TH Internals 3 "2020-12-18" "perl v5.32.1" "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" +Internals \- Reserved special namespace for internals related functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& $is_ro= Internals::SvREADONLY($x) +\& $refcnt= Internals::SvREFCNT($x) +\& hv_clear_placeholders(%hash); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Internals namespace is used by the core Perl development team to +expose certain low level internals routines for testing and other purposes. +.PP +In theory these routines were not and are not intended to be used outside +of the perl core, and are subject to change and removal at any time. +.PP +In practice people have come to depend on these over the years, despite +being historically undocumented, so we will provide some level of +forward compatibility for some time. Nevertheless you can assume that any +routine documented here is experimental or deprecated and you should find +alternatives to their use. +.SS "\s-1FUNCTIONS\s0" +.IX Subsection "FUNCTIONS" +.ie n .IP "SvREFCNT(\s-1THING\s0 [, $value])" 4 +.el .IP "SvREFCNT(\s-1THING\s0 [, \f(CW$value\fR])" 4 +.IX Item "SvREFCNT(THING [, $value])" +Historically Perl has been a refcounted language. This means that each +variable tracks how many things reference it, and when the variable is no +longer referenced it will automatically free itself. In theory Perl code +should not have to care about this, and in a future version Perl might +change to some other strategy, although in practice this is unlikely. +.Sp +This function allows one to violate the abstraction of variables and get +or set the refcount of a variable, and in generally is really only useful +in code that is testing refcount behavior. +.Sp +*NOTE* You are strongly discouraged from using this function in non-test +code and especially discouraged from using the set form of this function. +The results of doing so may result in segmentation faults or other undefined +behavior. +.ie n .IP "SvREADONLY(\s-1THING,\s0 [, $value])" 4 +.el .IP "SvREADONLY(\s-1THING,\s0 [, \f(CW$value\fR])" 4 +.IX Item "SvREADONLY(THING, [, $value])" +Set or get whether a variable is readonly or not. Exactly what the +readonly flag means depend on the type of the variable affected and the +version of perl used. +.Sp +You are strongly discouraged from using this function directly. It is used +by various core modules, like \f(CW\*(C`Hash::Util\*(C'\fR, and the \f(CW\*(C`constant\*(C'\fR pragma +to implement higher-level behavior which should be used instead. +.Sp +See the core implementation for the exact meaning of the readonly flag for +each internal variable type. +.IP "hv_clear_placeholders(%hash)" 4 +.IX Item "hv_clear_placeholders(%hash)" +Clear any placeholders from a locked hash. Should not be used directly. +You should use the wrapper functions provided by Hash::Util instead. +As of 5.25 also available as \f(CW\*(C` Hash::Util::_clear_placeholders(%hash) \*(C'\fR +.SH "AUTHOR" +.IX Header "AUTHOR" +Perl core development team. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlguts +Hash::Util +constant +universal.c diff --git a/data/miniconda3/man/man3/JSON%3A%3APP%3A%3ABoolean.3 b/data/miniconda3/man/man3/JSON%3A%3APP%3A%3ABoolean.3 new file mode 100644 index 0000000000000000000000000000000000000000..257e17524291003592a1a725ed7bd19771599f57 --- /dev/null +++ b/data/miniconda3/man/man3/JSON%3A%3APP%3A%3ABoolean.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "JSON::PP::Boolean 3" +.TH JSON::PP::Boolean 3 "2020-12-18" "perl v5.32.1" "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" +JSON::PP::Boolean \- dummy module providing JSON::PP::Boolean +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # do not "use" yourself +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module exists only to provide overload resolution for Storable and similar modules. See +\&\s-1JSON::PP\s0 for more info about this class. +.SH "AUTHOR" +.IX Header "AUTHOR" +This idea is from JSON::XS::Boolean written by Marc Lehmann +.SH "LICENSE" +.IX Header "LICENSE" +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/JSON%3A%3APP.3 b/data/miniconda3/man/man3/JSON%3A%3APP.3 new file mode 100644 index 0000000000000000000000000000000000000000..a362e4c83d30dc30d700a0ba2bbae4678612a5d7 --- /dev/null +++ b/data/miniconda3/man/man3/JSON%3A%3APP.3 @@ -0,0 +1,1597 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "JSON::PP 3" +.TH JSON::PP 3 "2020-12-18" "perl v5.32.1" "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" +JSON::PP \- JSON::XS compatible pure\-Perl module. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use JSON::PP; +\& +\& # exported functions, they croak on error +\& # and expect/generate UTF\-8 +\& +\& $utf8_encoded_json_text = encode_json $perl_hash_or_arrayref; +\& $perl_hash_or_arrayref = decode_json $utf8_encoded_json_text; +\& +\& # OO\-interface +\& +\& $json = JSON::PP\->new\->ascii\->pretty\->allow_nonref; +\& +\& $pretty_printed_json_text = $json\->encode( $perl_scalar ); +\& $perl_scalar = $json\->decode( $json_text ); +\& +\& # Note that JSON version 2.0 and above will automatically use +\& # JSON::XS or JSON::PP, so you should be able to just: +\& +\& use JSON; +.Ve +.SH "VERSION" +.IX Header "VERSION" +.Vb 1 +\& 4.04 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\s-1JSON::PP\s0 is a pure perl \s-1JSON\s0 decoder/encoder, and (almost) compatible to much +faster \s-1JSON::XS\s0 written by Marc Lehmann in C. \s-1JSON::PP\s0 works as +a fallback module when you use \s-1JSON\s0 module without having +installed \s-1JSON::XS.\s0 +.PP +Because of this fallback feature of \s-1JSON\s0.pm, \s-1JSON::PP\s0 tries not to +be more JavaScript-friendly than \s-1JSON::XS\s0 (i.e. not to escape extra +characters such as U+2028 and U+2029, etc), +in order for you not to lose such JavaScript-friendliness silently +when you use \s-1JSON\s0.pm and install \s-1JSON::XS\s0 for speed or by accident. +If you need JavaScript-friendly RFC7159\-compliant pure perl module, +try JSON::Tiny, which is derived from Mojolicious web +framework and is also smaller and faster than \s-1JSON::PP.\s0 +.PP +\&\s-1JSON::PP\s0 has been in the Perl core since Perl 5.14, mainly for +\&\s-1CPAN\s0 toolchain modules to parse \s-1META\s0.json. +.SH "FUNCTIONAL INTERFACE" +.IX Header "FUNCTIONAL INTERFACE" +This section is taken from \s-1JSON::XS\s0 almost verbatim. \f(CW\*(C`encode_json\*(C'\fR +and \f(CW\*(C`decode_json\*(C'\fR are exported by default. +.SS "encode_json" +.IX Subsection "encode_json" +.Vb 1 +\& $json_text = encode_json $perl_scalar +.Ve +.PP +Converts the given Perl data structure to a \s-1UTF\-8\s0 encoded, binary string +(that is, the string contains octets only). Croaks on error. +.PP +This function call is functionally identical to: +.PP +.Vb 1 +\& $json_text = JSON::PP\->new\->utf8\->encode($perl_scalar) +.Ve +.PP +Except being faster. +.SS "decode_json" +.IX Subsection "decode_json" +.Vb 1 +\& $perl_scalar = decode_json $json_text +.Ve +.PP +The opposite of \f(CW\*(C`encode_json\*(C'\fR: expects an \s-1UTF\-8\s0 (binary) string and tries +to parse that as an \s-1UTF\-8\s0 encoded \s-1JSON\s0 text, returning the resulting +reference. Croaks on error. +.PP +This function call is functionally identical to: +.PP +.Vb 1 +\& $perl_scalar = JSON::PP\->new\->utf8\->decode($json_text) +.Ve +.PP +Except being faster. +.SS "JSON::PP::is_bool" +.IX Subsection "JSON::PP::is_bool" +.Vb 1 +\& $is_boolean = JSON::PP::is_bool($scalar) +.Ve +.PP +Returns true if the passed scalar represents either JSON::PP::true or +JSON::PP::false, two constants that act like \f(CW1\fR and \f(CW0\fR respectively +and are also used to represent \s-1JSON\s0 \f(CW\*(C`true\*(C'\fR and \f(CW\*(C`false\*(C'\fR in Perl strings. +.PP +See \s-1MAPPING\s0, below, for more information on how \s-1JSON\s0 values are mapped to +Perl. +.SH "OBJECT-ORIENTED INTERFACE" +.IX Header "OBJECT-ORIENTED INTERFACE" +This section is also taken from \s-1JSON::XS.\s0 +.PP +The object oriented interface lets you configure your own encoding or +decoding style, within the limits of supported formats. +.SS "new" +.IX Subsection "new" +.Vb 1 +\& $json = JSON::PP\->new +.Ve +.PP +Creates a new \s-1JSON::PP\s0 object that can be used to de/encode \s-1JSON\s0 +strings. All boolean flags described below are by default \fIdisabled\fR +(with the exception of \f(CW\*(C`allow_nonref\*(C'\fR, which defaults to \fIenabled\fR since +version \f(CW4.0\fR). +.PP +The mutators for flags all return the \s-1JSON::PP\s0 object again and thus calls can +be chained: +.PP +.Vb 2 +\& my $json = JSON::PP\->new\->utf8\->space_after\->encode({a => [1,2]}) +\& => {"a": [1, 2]} +.Ve +.SS "ascii" +.IX Subsection "ascii" +.Vb 1 +\& $json = $json\->ascii([$enable]) +\& +\& $enabled = $json\->get_ascii +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will not +generate characters outside the code range \f(CW0..127\fR (which is \s-1ASCII\s0). Any +Unicode characters outside that range will be escaped using either a +single \euXXXX (\s-1BMP\s0 characters) or a double \euHHHH\euLLLLL escape sequence, +as per \s-1RFC4627.\s0 The resulting encoded \s-1JSON\s0 text can be treated as a native +Unicode string, an ascii-encoded, latin1\-encoded or \s-1UTF\-8\s0 encoded string, +or any other superset of \s-1ASCII.\s0 +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will not escape Unicode +characters unless required by the \s-1JSON\s0 syntax or other flags. This results +in a faster and more compact format. +.PP +See also the section \fI\s-1ENCODING/CODESET FLAG NOTES\s0\fR later in this document. +.PP +The main use for this flag is to produce \s-1JSON\s0 texts that can be +transmitted over a 7\-bit channel, as the encoded \s-1JSON\s0 texts will not +contain any 8 bit characters. +.PP +.Vb 2 +\& JSON::PP\->new\->ascii(1)\->encode([chr 0x10401]) +\& => ["\eud801\eudc01"] +.Ve +.SS "latin1" +.IX Subsection "latin1" +.Vb 1 +\& $json = $json\->latin1([$enable]) +\& +\& $enabled = $json\->get_latin1 +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will encode +the resulting \s-1JSON\s0 text as latin1 (or iso\-8859\-1), escaping any characters +outside the code range \f(CW0..255\fR. The resulting string can be treated as a +latin1\-encoded \s-1JSON\s0 text or a native Unicode string. The \f(CW\*(C`decode\*(C'\fR method +will not be affected in any way by this flag, as \f(CW\*(C`decode\*(C'\fR by default +expects Unicode, which is a strict superset of latin1. +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will not escape Unicode +characters unless required by the \s-1JSON\s0 syntax or other flags. +.PP +See also the section \fI\s-1ENCODING/CODESET FLAG NOTES\s0\fR later in this document. +.PP +The main use for this flag is efficiently encoding binary data as \s-1JSON\s0 +text, as most octets will not be escaped, resulting in a smaller encoded +size. The disadvantage is that the resulting \s-1JSON\s0 text is encoded +in latin1 (and must correctly be treated as such when storing and +transferring), a rare encoding for \s-1JSON.\s0 It is therefore most useful when +you want to store data structures known to contain binary data efficiently +in files or databases, not when talking to other \s-1JSON\s0 encoders/decoders. +.PP +.Vb 2 +\& JSON::PP\->new\->latin1\->encode (["\ex{89}\ex{abc}"] +\& => ["\ex{89}\e\eu0abc"] # (perl syntax, U+abc escaped, U+89 not) +.Ve +.SS "utf8" +.IX Subsection "utf8" +.Vb 1 +\& $json = $json\->utf8([$enable]) +\& +\& $enabled = $json\->get_utf8 +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will encode +the \s-1JSON\s0 result into \s-1UTF\-8,\s0 as required by many protocols, while the +\&\f(CW\*(C`decode\*(C'\fR method expects to be handled an UTF\-8\-encoded string. Please +note that UTF\-8\-encoded strings do not contain any characters outside the +range \f(CW0..255\fR, they are thus useful for bytewise/binary I/O. In future +versions, enabling this option might enable autodetection of the \s-1UTF\-16\s0 +and \s-1UTF\-32\s0 encoding families, as described in \s-1RFC4627.\s0 +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will return the \s-1JSON\s0 +string as a (non-encoded) Unicode string, while \f(CW\*(C`decode\*(C'\fR expects thus a +Unicode string. Any decoding or encoding (e.g. to \s-1UTF\-8\s0 or \s-1UTF\-16\s0) needs +to be done yourself, e.g. using the Encode module. +.PP +See also the section \fI\s-1ENCODING/CODESET FLAG NOTES\s0\fR later in this document. +.PP +Example, output UTF\-16BE\-encoded \s-1JSON:\s0 +.PP +.Vb 2 +\& use Encode; +\& $jsontext = encode "UTF\-16BE", JSON::PP\->new\->encode ($object); +.Ve +.PP +Example, decode UTF\-32LE\-encoded \s-1JSON:\s0 +.PP +.Vb 2 +\& use Encode; +\& $object = JSON::PP\->new\->decode (decode "UTF\-32LE", $jsontext); +.Ve +.SS "pretty" +.IX Subsection "pretty" +.Vb 1 +\& $json = $json\->pretty([$enable]) +.Ve +.PP +This enables (or disables) all of the \f(CW\*(C`indent\*(C'\fR, \f(CW\*(C`space_before\*(C'\fR and +\&\f(CW\*(C`space_after\*(C'\fR (and in the future possibly more) flags in one call to +generate the most readable (or most compact) form possible. +.SS "indent" +.IX Subsection "indent" +.Vb 1 +\& $json = $json\->indent([$enable]) +\& +\& $enabled = $json\->get_indent +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will use a multiline +format as output, putting every array member or object/hash key-value pair +into its own line, indenting them properly. +.PP +If \f(CW$enable\fR is false, no newlines or indenting will be produced, and the +resulting \s-1JSON\s0 text is guaranteed not to contain any \f(CW\*(C`newlines\*(C'\fR. +.PP +This setting has no effect when decoding \s-1JSON\s0 texts. +.PP +The default indent space length is three. +You can use \f(CW\*(C`indent_length\*(C'\fR to change the length. +.SS "space_before" +.IX Subsection "space_before" +.Vb 1 +\& $json = $json\->space_before([$enable]) +\& +\& $enabled = $json\->get_space_before +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will add an extra +optional space before the \f(CW\*(C`:\*(C'\fR separating keys from values in \s-1JSON\s0 objects. +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will not add any extra +space at those places. +.PP +This setting has no effect when decoding \s-1JSON\s0 texts. You will also +most likely combine this setting with \f(CW\*(C`space_after\*(C'\fR. +.PP +Example, space_before enabled, space_after and indent disabled: +.PP +.Vb 1 +\& {"key" :"value"} +.Ve +.SS "space_after" +.IX Subsection "space_after" +.Vb 1 +\& $json = $json\->space_after([$enable]) +\& +\& $enabled = $json\->get_space_after +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will add an extra +optional space after the \f(CW\*(C`:\*(C'\fR separating keys from values in \s-1JSON\s0 objects +and extra whitespace after the \f(CW\*(C`,\*(C'\fR separating key-value pairs and array +members. +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will not add any extra +space at those places. +.PP +This setting has no effect when decoding \s-1JSON\s0 texts. +.PP +Example, space_before and indent disabled, space_after enabled: +.PP +.Vb 1 +\& {"key": "value"} +.Ve +.SS "relaxed" +.IX Subsection "relaxed" +.Vb 1 +\& $json = $json\->relaxed([$enable]) +\& +\& $enabled = $json\->get_relaxed +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`decode\*(C'\fR will accept some +extensions to normal \s-1JSON\s0 syntax (see below). \f(CW\*(C`encode\*(C'\fR will not be +affected in anyway. \fIBe aware that this option makes you accept invalid +\&\s-1JSON\s0 texts as if they were valid!\fR. I suggest only to use this option to +parse application-specific files written by humans (configuration files, +resource files etc.) +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`decode\*(C'\fR will only accept +valid \s-1JSON\s0 texts. +.PP +Currently accepted extensions are: +.IP "\(bu" 4 +list items can have an end-comma +.Sp +\&\s-1JSON\s0 \fIseparates\fR array elements and key-value pairs with commas. This +can be annoying if you write \s-1JSON\s0 texts manually and want to be able to +quickly append elements, so this extension accepts comma at the end of +such items not just between them: +.Sp +.Vb 8 +\& [ +\& 1, +\& 2, <\- this comma not normally allowed +\& ] +\& { +\& "k1": "v1", +\& "k2": "v2", <\- this comma not normally allowed +\& } +.Ve +.IP "\(bu" 4 +shell-style '#'\-comments +.Sp +Whenever \s-1JSON\s0 allows whitespace, shell-style comments are additionally +allowed. They are terminated by the first carriage-return or line-feed +character, after which more white-space and comments are allowed. +.Sp +.Vb 4 +\& [ +\& 1, # this comment not allowed in JSON +\& # neither this one... +\& ] +.Ve +.IP "\(bu" 4 +C\-style multiple-line '/* */'\-comments (\s-1JSON::PP\s0 only) +.Sp +Whenever \s-1JSON\s0 allows whitespace, C\-style multiple-line comments are additionally +allowed. Everything between \f(CW\*(C`/*\*(C'\fR and \f(CW\*(C`*/\*(C'\fR is a comment, after which +more white-space and comments are allowed. +.Sp +.Vb 4 +\& [ +\& 1, /* this comment not allowed in JSON */ +\& /* neither this one... */ +\& ] +.Ve +.IP "\(bu" 4 +\&\*(C+\-style one-line '//'\-comments (\s-1JSON::PP\s0 only) +.Sp +Whenever \s-1JSON\s0 allows whitespace, \*(C+\-style one-line comments are additionally +allowed. They are terminated by the first carriage-return or line-feed +character, after which more white-space and comments are allowed. +.Sp +.Vb 4 +\& [ +\& 1, // this comment not allowed in JSON +\& // neither this one... +\& ] +.Ve +.IP "\(bu" 4 +literal \s-1ASCII TAB\s0 characters in strings +.Sp +Literal \s-1ASCII TAB\s0 characters are now allowed in strings (and treated as +\&\f(CW\*(C`\et\*(C'\fR). +.Sp +.Vb 4 +\& [ +\& "Hello\etWorld", +\& "HelloWorld", # literal would not normally be allowed +\& ] +.Ve +.SS "canonical" +.IX Subsection "canonical" +.Vb 1 +\& $json = $json\->canonical([$enable]) +\& +\& $enabled = $json\->get_canonical +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will output \s-1JSON\s0 objects +by sorting their keys. This is adding a comparatively high overhead. +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will output key-value +pairs in the order Perl stores them (which will likely change between runs +of the same script, and can change even within the same run from 5.18 +onwards). +.PP +This option is useful if you want the same data structure to be encoded as +the same \s-1JSON\s0 text (given the same overall settings). If it is disabled, +the same hash might be encoded differently even if contains the same data, +as key-value pairs have no inherent ordering in Perl. +.PP +This setting has no effect when decoding \s-1JSON\s0 texts. +.PP +This setting has currently no effect on tied hashes. +.SS "allow_nonref" +.IX Subsection "allow_nonref" +.Vb 1 +\& $json = $json\->allow_nonref([$enable]) +\& +\& $enabled = $json\->get_allow_nonref +.Ve +.PP +Unlike other boolean options, this opotion is enabled by default beginning +with version \f(CW4.0\fR. +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method can convert a +non-reference into its corresponding string, number or null \s-1JSON\s0 value, +which is an extension to \s-1RFC4627.\s0 Likewise, \f(CW\*(C`decode\*(C'\fR will accept those \s-1JSON\s0 +values instead of croaking. +.PP +If \f(CW$enable\fR is false, then the \f(CW\*(C`encode\*(C'\fR method will croak if it isn't +passed an arrayref or hashref, as \s-1JSON\s0 texts must either be an object +or array. Likewise, \f(CW\*(C`decode\*(C'\fR will croak if given something that is not a +\&\s-1JSON\s0 object or array. +.PP +Example, encode a Perl scalar as \s-1JSON\s0 value without enabled \f(CW\*(C`allow_nonref\*(C'\fR, +resulting in an error: +.PP +.Vb 2 +\& JSON::PP\->new\->allow_nonref(0)\->encode ("Hello, World!") +\& => hash\- or arrayref expected... +.Ve +.SS "allow_unknown" +.IX Subsection "allow_unknown" +.Vb 1 +\& $json = $json\->allow_unknown([$enable]) +\& +\& $enabled = $json\->get_allow_unknown +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`encode\*(C'\fR will \fInot\fR throw an +exception when it encounters values it cannot represent in \s-1JSON\s0 (for +example, filehandles) but instead will encode a \s-1JSON\s0 \f(CW\*(C`null\*(C'\fR value. Note +that blessed objects are not included here and are handled separately by +c. +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`encode\*(C'\fR will throw an +exception when it encounters anything it cannot encode as \s-1JSON.\s0 +.PP +This option does not affect \f(CW\*(C`decode\*(C'\fR in any way, and it is recommended to +leave it off unless you know your communications partner. +.SS "allow_blessed" +.IX Subsection "allow_blessed" +.Vb 1 +\& $json = $json\->allow_blessed([$enable]) +\& +\& $enabled = $json\->get_allow_blessed +.Ve +.PP +See \*(L"\s-1OBJECT SERIALISATION\*(R"\s0 for details. +.PP +If \f(CW$enable\fR is true (or missing), then the \f(CW\*(C`encode\*(C'\fR method will not +barf when it encounters a blessed reference that it cannot convert +otherwise. Instead, a \s-1JSON\s0 \f(CW\*(C`null\*(C'\fR value is encoded instead of the object. +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`encode\*(C'\fR will throw an +exception when it encounters a blessed object that it cannot convert +otherwise. +.PP +This setting has no effect on \f(CW\*(C`decode\*(C'\fR. +.SS "convert_blessed" +.IX Subsection "convert_blessed" +.Vb 1 +\& $json = $json\->convert_blessed([$enable]) +\& +\& $enabled = $json\->get_convert_blessed +.Ve +.PP +See \*(L"\s-1OBJECT SERIALISATION\*(R"\s0 for details. +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`encode\*(C'\fR, upon encountering a +blessed object, will check for the availability of the \f(CW\*(C`TO_JSON\*(C'\fR method +on the object's class. If found, it will be called in scalar context and +the resulting scalar will be encoded instead of the object. +.PP +The \f(CW\*(C`TO_JSON\*(C'\fR method may safely call die if it wants. If \f(CW\*(C`TO_JSON\*(C'\fR +returns other blessed objects, those will be handled in the same +way. \f(CW\*(C`TO_JSON\*(C'\fR must take care of not causing an endless recursion cycle +(== crash) in this case. The name of \f(CW\*(C`TO_JSON\*(C'\fR was chosen because other +methods called by the Perl core (== not by the user of the object) are +usually in upper case letters and to avoid collisions with any \f(CW\*(C`to_json\*(C'\fR +function or method. +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`encode\*(C'\fR will not consider +this type of conversion. +.PP +This setting has no effect on \f(CW\*(C`decode\*(C'\fR. +.SS "allow_tags" +.IX Subsection "allow_tags" +.Vb 1 +\& $json = $json\->allow_tags([$enable]) +\& +\& $enabled = $json\->get_allow_tags +.Ve +.PP +See \*(L"\s-1OBJECT SERIALISATION\*(R"\s0 for details. +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`encode\*(C'\fR, upon encountering a +blessed object, will check for the availability of the \f(CW\*(C`FREEZE\*(C'\fR method on +the object's class. If found, it will be used to serialise the object into +a nonstandard tagged \s-1JSON\s0 value (that \s-1JSON\s0 decoders cannot decode). +.PP +It also causes \f(CW\*(C`decode\*(C'\fR to parse such tagged \s-1JSON\s0 values and deserialise +them via a call to the \f(CW\*(C`THAW\*(C'\fR method. +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`encode\*(C'\fR will not consider +this type of conversion, and tagged \s-1JSON\s0 values will cause a parse error +in \f(CW\*(C`decode\*(C'\fR, as if tags were not part of the grammar. +.SS "boolean_values" +.IX Subsection "boolean_values" +.Vb 1 +\& $json\->boolean_values([$false, $true]) +\& +\& ($false, $true) = $json\->get_boolean_values +.Ve +.PP +By default, \s-1JSON\s0 booleans will be decoded as overloaded +\&\f(CW$JSON::PP::false\fR and \f(CW$JSON::PP::true\fR objects. +.PP +With this method you can specify your own boolean values for decoding \- +on decode, \s-1JSON\s0 \f(CW\*(C`false\*(C'\fR will be decoded as a copy of \f(CW$false\fR, and \s-1JSON\s0 +\&\f(CW\*(C`true\*(C'\fR will be decoded as \f(CW$true\fR (\*(L"copy\*(R" here is the same thing as +assigning a value to another variable, i.e. \f(CW\*(C`$copy = $false\*(C'\fR). +.PP +This is useful when you want to pass a decoded data structure directly +to other serialisers like \s-1YAML,\s0 Data::MessagePack and so on. +.PP +Note that this works only when you \f(CW\*(C`decode\*(C'\fR. You can set incompatible +boolean objects (like boolean), but when you \f(CW\*(C`encode\*(C'\fR a data structure +with such boolean objects, you still need to enable \f(CW\*(C`convert_blessed\*(C'\fR +(and add a \f(CW\*(C`TO_JSON\*(C'\fR method if necessary). +.PP +Calling this method without any arguments will reset the booleans +to their default values. +.PP +\&\f(CW\*(C`get_boolean_values\*(C'\fR will return both \f(CW$false\fR and \f(CW$true\fR values, or +the empty list when they are set to the default. +.SS "filter_json_object" +.IX Subsection "filter_json_object" +.Vb 1 +\& $json = $json\->filter_json_object([$coderef]) +.Ve +.PP +When \f(CW$coderef\fR is specified, it will be called from \f(CW\*(C`decode\*(C'\fR each +time it decodes a \s-1JSON\s0 object. The only argument is a reference to +the newly-created hash. If the code references returns a single scalar +(which need not be a reference), this value (or rather a copy of it) is +inserted into the deserialised data structure. If it returns an empty +list (\s-1NOTE:\s0 \fInot\fR \f(CW\*(C`undef\*(C'\fR, which is a valid scalar), the original +deserialised hash will be inserted. This setting can slow down decoding +considerably. +.PP +When \f(CW$coderef\fR is omitted or undefined, any existing callback will +be removed and \f(CW\*(C`decode\*(C'\fR will not change the deserialised hash in any +way. +.PP +Example, convert all \s-1JSON\s0 objects into the integer 5: +.PP +.Vb 5 +\& my $js = JSON::PP\->new\->filter_json_object(sub { 5 }); +\& # returns [5] +\& $js\->decode(\*(Aq[{}]\*(Aq); +\& # returns 5 +\& $js\->decode(\*(Aq{"a":1, "b":2}\*(Aq); +.Ve +.SS "filter_json_single_key_object" +.IX Subsection "filter_json_single_key_object" +.Vb 1 +\& $json = $json\->filter_json_single_key_object($key [=> $coderef]) +.Ve +.PP +Works remotely similar to \f(CW\*(C`filter_json_object\*(C'\fR, but is only called for +\&\s-1JSON\s0 objects having a single key named \f(CW$key\fR. +.PP +This \f(CW$coderef\fR is called before the one specified via +\&\f(CW\*(C`filter_json_object\*(C'\fR, if any. It gets passed the single value in the \s-1JSON\s0 +object. If it returns a single value, it will be inserted into the data +structure. If it returns nothing (not even \f(CW\*(C`undef\*(C'\fR but the empty list), +the callback from \f(CW\*(C`filter_json_object\*(C'\fR will be called next, as if no +single-key callback were specified. +.PP +If \f(CW$coderef\fR is omitted or undefined, the corresponding callback will be +disabled. There can only ever be one callback for a given key. +.PP +As this callback gets called less often then the \f(CW\*(C`filter_json_object\*(C'\fR +one, decoding speed will not usually suffer as much. Therefore, single-key +objects make excellent targets to serialise Perl objects into, especially +as single-key \s-1JSON\s0 objects are as close to the type-tagged value concept +as \s-1JSON\s0 gets (it's basically an \s-1ID/VALUE\s0 tuple). Of course, \s-1JSON\s0 does not +support this in any way, so you need to make sure your data never looks +like a serialised Perl hash. +.PP +Typical names for the single object key are \f(CW\*(C`_\|_class_whatever_\|_\*(C'\fR, or +\&\f(CW\*(C`$_\|_dollars_are_rarely_used_\|_$\*(C'\fR or \f(CW\*(C`}ugly_brace_placement\*(C'\fR, or even +things like \f(CW\*(C`_\|_class_md5sum(classname)_\|_\*(C'\fR, to reduce the risk of clashing +with real hashes. +.PP +Example, decode \s-1JSON\s0 objects of the form \f(CW\*(C`{ "_\|_widget_\|_" => }\*(C'\fR +into the corresponding \f(CW$WIDGET{}\fR object: +.PP +.Vb 7 +\& # return whatever is in $WIDGET{5}: +\& JSON::PP +\& \->new +\& \->filter_json_single_key_object (_\|_widget_\|_ => sub { +\& $WIDGET{ $_[0] } +\& }) +\& \->decode (\*(Aq{"_\|_widget_\|_": 5\*(Aq) +\& +\& # this can be used with a TO_JSON method in some "widget" class +\& # for serialisation to json: +\& sub WidgetBase::TO_JSON { +\& my ($self) = @_; +\& +\& unless ($self\->{id}) { +\& $self\->{id} = ..get..some..id..; +\& $WIDGET{$self\->{id}} = $self; +\& } +\& +\& { _\|_widget_\|_ => $self\->{id} } +\& } +.Ve +.SS "shrink" +.IX Subsection "shrink" +.Vb 1 +\& $json = $json\->shrink([$enable]) +\& +\& $enabled = $json\->get_shrink +.Ve +.PP +If \f(CW$enable\fR is true (or missing), the string returned by \f(CW\*(C`encode\*(C'\fR will +be shrunk (i.e. downgraded if possible). +.PP +The actual definition of what shrink does might change in future versions, +but it will always try to save space at the expense of time. +.PP +If \f(CW$enable\fR is false, then \s-1JSON::PP\s0 does nothing. +.SS "max_depth" +.IX Subsection "max_depth" +.Vb 1 +\& $json = $json\->max_depth([$maximum_nesting_depth]) +\& +\& $max_depth = $json\->get_max_depth +.Ve +.PP +Sets the maximum nesting level (default \f(CW512\fR) accepted while encoding +or decoding. If a higher nesting level is detected in \s-1JSON\s0 text or a Perl +data structure, then the encoder and decoder will stop and croak at that +point. +.PP +Nesting level is defined by number of hash\- or arrayrefs that the encoder +needs to traverse to reach a given point or the number of \f(CW\*(C`{\*(C'\fR or \f(CW\*(C`[\*(C'\fR +characters without their matching closing parenthesis crossed to reach a +given character in a string. +.PP +Setting the maximum depth to one disallows any nesting, so that ensures +that the object is only a single hash/object or array. +.PP +If no argument is given, the highest possible setting will be used, which +is rarely useful. +.PP +See \*(L"\s-1SECURITY CONSIDERATIONS\*(R"\s0 in \s-1JSON::XS\s0 for more info on why this is useful. +.SS "max_size" +.IX Subsection "max_size" +.Vb 1 +\& $json = $json\->max_size([$maximum_string_size]) +\& +\& $max_size = $json\->get_max_size +.Ve +.PP +Set the maximum length a \s-1JSON\s0 text may have (in bytes) where decoding is +being attempted. The default is \f(CW0\fR, meaning no limit. When \f(CW\*(C`decode\*(C'\fR +is called on a string that is longer then this many bytes, it will not +attempt to decode the string but throw an exception. This setting has no +effect on \f(CW\*(C`encode\*(C'\fR (yet). +.PP +If no argument is given, the limit check will be deactivated (same as when +\&\f(CW0\fR is specified). +.PP +See \*(L"\s-1SECURITY CONSIDERATIONS\*(R"\s0 in \s-1JSON::XS\s0 for more info on why this is useful. +.SS "encode" +.IX Subsection "encode" +.Vb 1 +\& $json_text = $json\->encode($perl_scalar) +.Ve +.PP +Converts the given Perl value or data structure to its \s-1JSON\s0 +representation. Croaks on error. +.SS "decode" +.IX Subsection "decode" +.Vb 1 +\& $perl_scalar = $json\->decode($json_text) +.Ve +.PP +The opposite of \f(CW\*(C`encode\*(C'\fR: expects a \s-1JSON\s0 text and tries to parse it, +returning the resulting simple scalar or reference. Croaks on error. +.SS "decode_prefix" +.IX Subsection "decode_prefix" +.Vb 1 +\& ($perl_scalar, $characters) = $json\->decode_prefix($json_text) +.Ve +.PP +This works like the \f(CW\*(C`decode\*(C'\fR method, but instead of raising an exception +when there is trailing garbage after the first \s-1JSON\s0 object, it will +silently stop parsing there and return the number of characters consumed +so far. +.PP +This is useful if your \s-1JSON\s0 texts are not delimited by an outer protocol +and you need to know where the \s-1JSON\s0 text ends. +.PP +.Vb 2 +\& JSON::PP\->new\->decode_prefix ("[1] the tail") +\& => ([1], 3) +.Ve +.SH "FLAGS FOR JSON::PP ONLY" +.IX Header "FLAGS FOR JSON::PP ONLY" +The following flags and properties are for \s-1JSON::PP\s0 only. If you use +any of these, you can't make your application run faster by replacing +\&\s-1JSON::PP\s0 with \s-1JSON::XS.\s0 If you need these and also speed boost, +you might want to try Cpanel::JSON::XS, a fork of \s-1JSON::XS\s0 by +Reini Urban, which supports some of these (with a different set of +incompatibilities). Most of these historical flags are only kept +for backward compatibility, and should not be used in a new application. +.SS "allow_singlequote" +.IX Subsection "allow_singlequote" +.Vb 2 +\& $json = $json\->allow_singlequote([$enable]) +\& $enabled = $json\->get_allow_singlequote +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`decode\*(C'\fR will accept +invalid \s-1JSON\s0 texts that contain strings that begin and end with +single quotation marks. \f(CW\*(C`encode\*(C'\fR will not be affected in any way. +\&\fIBe aware that this option makes you accept invalid \s-1JSON\s0 texts +as if they were valid!\fR. I suggest only to use this option to +parse application-specific files written by humans (configuration +files, resource files etc.) +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`decode\*(C'\fR will only accept +valid \s-1JSON\s0 texts. +.PP +.Vb 3 +\& $json\->allow_singlequote\->decode(qq|{"foo":\*(Aqbar\*(Aq}|); +\& $json\->allow_singlequote\->decode(qq|{\*(Aqfoo\*(Aq:"bar"}|); +\& $json\->allow_singlequote\->decode(qq|{\*(Aqfoo\*(Aq:\*(Aqbar\*(Aq}|); +.Ve +.SS "allow_barekey" +.IX Subsection "allow_barekey" +.Vb 2 +\& $json = $json\->allow_barekey([$enable]) +\& $enabled = $json\->get_allow_barekey +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`decode\*(C'\fR will accept +invalid \s-1JSON\s0 texts that contain \s-1JSON\s0 objects whose names don't +begin and end with quotation marks. \f(CW\*(C`encode\*(C'\fR will not be affected +in any way. \fIBe aware that this option makes you accept invalid \s-1JSON\s0 +texts as if they were valid!\fR. I suggest only to use this option to +parse application-specific files written by humans (configuration +files, resource files etc.) +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`decode\*(C'\fR will only accept +valid \s-1JSON\s0 texts. +.PP +.Vb 1 +\& $json\->allow_barekey\->decode(qq|{foo:"bar"}|); +.Ve +.SS "allow_bignum" +.IX Subsection "allow_bignum" +.Vb 2 +\& $json = $json\->allow_bignum([$enable]) +\& $enabled = $json\->get_allow_bignum +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`decode\*(C'\fR will convert +big integers Perl cannot handle as integer into Math::BigInt +objects and convert floating numbers into Math::BigFloat +objects. \f(CW\*(C`encode\*(C'\fR will convert \f(CW\*(C`Math::BigInt\*(C'\fR and \f(CW\*(C`Math::BigFloat\*(C'\fR +objects into \s-1JSON\s0 numbers. +.PP +.Vb 4 +\& $json\->allow_nonref\->allow_bignum; +\& $bigfloat = $json\->decode(\*(Aq2.000000000000000000000000001\*(Aq); +\& print $json\->encode($bigfloat); +\& # => 2.000000000000000000000000001 +.Ve +.PP +See also \s-1MAPPING\s0. +.SS "loose" +.IX Subsection "loose" +.Vb 2 +\& $json = $json\->loose([$enable]) +\& $enabled = $json\->get_loose +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`decode\*(C'\fR will accept +invalid \s-1JSON\s0 texts that contain unescaped [\ex00\-\ex1f\ex22\ex5c] +characters. \f(CW\*(C`encode\*(C'\fR will not be affected in any way. +\&\fIBe aware that this option makes you accept invalid \s-1JSON\s0 texts +as if they were valid!\fR. I suggest only to use this option to +parse application-specific files written by humans (configuration +files, resource files etc.) +.PP +If \f(CW$enable\fR is false (the default), then \f(CW\*(C`decode\*(C'\fR will only accept +valid \s-1JSON\s0 texts. +.PP +.Vb 2 +\& $json\->loose\->decode(qq|["abc +\& def"]|); +.Ve +.SS "escape_slash" +.IX Subsection "escape_slash" +.Vb 2 +\& $json = $json\->escape_slash([$enable]) +\& $enabled = $json\->get_escape_slash +.Ve +.PP +If \f(CW$enable\fR is true (or missing), then \f(CW\*(C`encode\*(C'\fR will explicitly +escape \fIslash\fR (solidus; \f(CW\*(C`U+002F\*(C'\fR) characters to reduce the risk of +\&\s-1XSS\s0 (cross site scripting) that may be caused by \f(CW\*(C`\*(C'\fR +in a \s-1JSON\s0 text, with the cost of bloating the size of \s-1JSON\s0 texts. +.PP +This option may be useful when you embed \s-1JSON\s0 in \s-1HTML,\s0 but embedding +arbitrary \s-1JSON\s0 in \s-1HTML\s0 (by some \s-1HTML\s0 template toolkit or by string +interpolation) is risky in general. You must escape necessary +characters in correct order, depending on the context. +.PP +\&\f(CW\*(C`decode\*(C'\fR will not be affected in any way. +.SS "indent_length" +.IX Subsection "indent_length" +.Vb 2 +\& $json = $json\->indent_length($number_of_spaces) +\& $length = $json\->get_indent_length +.Ve +.PP +This option is only useful when you also enable \f(CW\*(C`indent\*(C'\fR or \f(CW\*(C`pretty\*(C'\fR. +.PP +\&\s-1JSON::XS\s0 indents with three spaces when you \f(CW\*(C`encode\*(C'\fR (if requested +by \f(CW\*(C`indent\*(C'\fR or \f(CW\*(C`pretty\*(C'\fR), and the number cannot be changed. +\&\s-1JSON::PP\s0 allows you to change/get the number of indent spaces with these +mutator/accessor. The default number of spaces is three (the same as +\&\s-1JSON::XS\s0), and the acceptable range is from \f(CW0\fR (no indentation; +it'd be better to disable indentation by \f(CWindent(0)\fR) to \f(CW15\fR. +.SS "sort_by" +.IX Subsection "sort_by" +.Vb 2 +\& $json = $json\->sort_by($code_ref) +\& $json = $json\->sort_by($subroutine_name) +.Ve +.PP +If you just want to sort keys (names) in \s-1JSON\s0 objects when you +\&\f(CW\*(C`encode\*(C'\fR, enable \f(CW\*(C`canonical\*(C'\fR option (see above) that allows you to +sort object keys alphabetically. +.PP +If you do need to sort non-alphabetically for whatever reasons, +you can give a code reference (or a subroutine name) to \f(CW\*(C`sort_by\*(C'\fR, +then the argument will be passed to Perl's \f(CW\*(C`sort\*(C'\fR built-in function. +.PP +As the sorting is done in the \s-1JSON::PP\s0 scope, you usually need to +prepend \f(CW\*(C`JSON::PP::\*(C'\fR to the subroutine name, and the special variables +\&\f(CW$a\fR and \f(CW$b\fR used in the subrontine used by \f(CW\*(C`sort\*(C'\fR function. +.PP +Example: +.PP +.Vb 9 +\& my %ORDER = (id => 1, class => 2, name => 3); +\& $json\->sort_by(sub { +\& ($ORDER{$JSON::PP::a} // 999) <=> ($ORDER{$JSON::PP::b} // 999) +\& or $JSON::PP::a cmp $JSON::PP::b +\& }); +\& print $json\->encode([ +\& {name => \*(AqCPAN\*(Aq, id => 1, href => \*(Aqhttp://cpan.org\*(Aq} +\& ]); +\& # [{"id":1,"name":"CPAN","href":"http://cpan.org"}] +.Ve +.PP +Note that \f(CW\*(C`sort_by\*(C'\fR affects all the plain hashes in the data structure. +If you need finer control, \f(CW\*(C`tie\*(C'\fR necessary hashes with a module that +implements ordered hash (such as Hash::Ordered and Tie::IxHash). +\&\f(CW\*(C`canonical\*(C'\fR and \f(CW\*(C`sort_by\*(C'\fR don't affect the key order in \f(CW\*(C`tie\*(C'\fRd +hashes. +.PP +.Vb 5 +\& use Hash::Ordered; +\& tie my %hash, \*(AqHash::Ordered\*(Aq, +\& (name => \*(AqCPAN\*(Aq, id => 1, href => \*(Aqhttp://cpan.org\*(Aq); +\& print $json\->encode([\e%hash]); +\& # [{"name":"CPAN","id":1,"href":"http://cpan.org"}] # order is kept +.Ve +.SH "INCREMENTAL PARSING" +.IX Header "INCREMENTAL PARSING" +This section is also taken from \s-1JSON::XS.\s0 +.PP +In some cases, there is the need for incremental parsing of \s-1JSON\s0 +texts. While this module always has to keep both \s-1JSON\s0 text and resulting +Perl data structure in memory at one time, it does allow you to parse a +\&\s-1JSON\s0 stream incrementally. It does so by accumulating text until it has +a full \s-1JSON\s0 object, which it then can decode. This process is similar to +using \f(CW\*(C`decode_prefix\*(C'\fR to see if a full \s-1JSON\s0 object is available, but +is much more efficient (and can be implemented with a minimum of method +calls). +.PP +\&\s-1JSON::PP\s0 will only attempt to parse the \s-1JSON\s0 text once it is sure it +has enough text to get a decisive result, using a very simple but +truly incremental parser. This means that it sometimes won't stop as +early as the full parser, for example, it doesn't detect mismatched +parentheses. The only thing it guarantees is that it starts decoding as +soon as a syntactically valid \s-1JSON\s0 text has been seen. This means you need +to set resource limits (e.g. \f(CW\*(C`max_size\*(C'\fR) to ensure the parser will stop +parsing in the presence if syntax errors. +.PP +The following methods implement this incremental parser. +.SS "incr_parse" +.IX Subsection "incr_parse" +.Vb 1 +\& $json\->incr_parse( [$string] ) # void context +\& +\& $obj_or_undef = $json\->incr_parse( [$string] ) # scalar context +\& +\& @obj_or_empty = $json\->incr_parse( [$string] ) # list context +.Ve +.PP +This is the central parsing function. It can both append new text and +extract objects from the stream accumulated so far (both of these +functions are optional). +.PP +If \f(CW$string\fR is given, then this string is appended to the already +existing \s-1JSON\s0 fragment stored in the \f(CW$json\fR object. +.PP +After that, if the function is called in void context, it will simply +return without doing anything further. This can be used to add more text +in as many chunks as you want. +.PP +If the method is called in scalar context, then it will try to extract +exactly \fIone\fR \s-1JSON\s0 object. If that is successful, it will return this +object, otherwise it will return \f(CW\*(C`undef\*(C'\fR. If there is a parse error, +this method will croak just as \f(CW\*(C`decode\*(C'\fR would do (one can then use +\&\f(CW\*(C`incr_skip\*(C'\fR to skip the erroneous part). This is the most common way of +using the method. +.PP +And finally, in list context, it will try to extract as many objects +from the stream as it can find and return them, or the empty list +otherwise. For this to work, there must be no separators (other than +whitespace) between the \s-1JSON\s0 objects or arrays, instead they must be +concatenated back-to-back. If an error occurs, an exception will be +raised as in the scalar context case. Note that in this case, any +previously-parsed \s-1JSON\s0 texts will be lost. +.PP +Example: Parse some \s-1JSON\s0 arrays/objects in a given string and return +them. +.PP +.Vb 1 +\& my @objs = JSON::PP\->new\->incr_parse ("[5][7][1,2]"); +.Ve +.SS "incr_text" +.IX Subsection "incr_text" +.Vb 1 +\& $lvalue_string = $json\->incr_text +.Ve +.PP +This method returns the currently stored \s-1JSON\s0 fragment as an lvalue, that +is, you can manipulate it. This \fIonly\fR works when a preceding call to +\&\f(CW\*(C`incr_parse\*(C'\fR in \fIscalar context\fR successfully returned an object. Under +all other circumstances you must not call this function (I mean it. +although in simple tests it might actually work, it \fIwill\fR fail under +real world conditions). As a special exception, you can also call this +method before having parsed anything. +.PP +That means you can only use this function to look at or manipulate text +before or after complete \s-1JSON\s0 objects, not while the parser is in the +middle of parsing a \s-1JSON\s0 object. +.PP +This function is useful in two cases: a) finding the trailing text after a +\&\s-1JSON\s0 object or b) parsing multiple \s-1JSON\s0 objects separated by non-JSON text +(such as commas). +.SS "incr_skip" +.IX Subsection "incr_skip" +.Vb 1 +\& $json\->incr_skip +.Ve +.PP +This will reset the state of the incremental parser and will remove +the parsed text from the input buffer so far. This is useful after +\&\f(CW\*(C`incr_parse\*(C'\fR died, in which case the input buffer and incremental parser +state is left unchanged, to skip the text parsed so far and to reset the +parse state. +.PP +The difference to \f(CW\*(C`incr_reset\*(C'\fR is that only text until the parse error +occurred is removed. +.SS "incr_reset" +.IX Subsection "incr_reset" +.Vb 1 +\& $json\->incr_reset +.Ve +.PP +This completely resets the incremental parser, that is, after this call, +it will be as if the parser had never parsed anything. +.PP +This is useful if you want to repeatedly parse \s-1JSON\s0 objects and want to +ignore any trailing data, which means you have to reset the parser after +each successful decode. +.SH "MAPPING" +.IX Header "MAPPING" +Most of this section is also taken from \s-1JSON::XS.\s0 +.PP +This section describes how \s-1JSON::PP\s0 maps Perl values to \s-1JSON\s0 values and +vice versa. These mappings are designed to \*(L"do the right thing\*(R" in most +circumstances automatically, preserving round-tripping characteristics +(what you put in comes out as something equivalent). +.PP +For the more enlightened: note that in the following descriptions, +lowercase \fIperl\fR refers to the Perl interpreter, while uppercase \fIPerl\fR +refers to the abstract Perl language itself. +.SS "\s-1JSON\s0 \-> \s-1PERL\s0" +.IX Subsection "JSON -> PERL" +.IP "object" 4 +.IX Item "object" +A \s-1JSON\s0 object becomes a reference to a hash in Perl. No ordering of object +keys is preserved (\s-1JSON\s0 does not preserve object key ordering itself). +.IP "array" 4 +.IX Item "array" +A \s-1JSON\s0 array becomes a reference to an array in Perl. +.IP "string" 4 +.IX Item "string" +A \s-1JSON\s0 string becomes a string scalar in Perl \- Unicode codepoints in \s-1JSON\s0 +are represented by the same codepoints in the Perl string, so no manual +decoding is necessary. +.IP "number" 4 +.IX Item "number" +A \s-1JSON\s0 number becomes either an integer, numeric (floating point) or +string scalar in perl, depending on its range and any fractional parts. On +the Perl level, there is no difference between those as Perl handles all +the conversion details, but an integer may take slightly less memory and +might represent more values exactly than floating point numbers. +.Sp +If the number consists of digits only, \s-1JSON::PP\s0 will try to represent +it as an integer value. If that fails, it will try to represent it as +a numeric (floating point) value if that is possible without loss of +precision. Otherwise it will preserve the number as a string value (in +which case you lose roundtripping ability, as the \s-1JSON\s0 number will be +re-encoded to a \s-1JSON\s0 string). +.Sp +Numbers containing a fractional or exponential part will always be +represented as numeric (floating point) values, possibly at a loss of +precision (in which case you might lose perfect roundtripping ability, but +the \s-1JSON\s0 number will still be re-encoded as a \s-1JSON\s0 number). +.Sp +Note that precision is not accuracy \- binary floating point values cannot +represent most decimal fractions exactly, and when converting from and to +floating point, \s-1JSON::PP\s0 only guarantees precision up to but not including +the least significant bit. +.Sp +When \f(CW\*(C`allow_bignum\*(C'\fR is enabled, big integer values and any numeric +values will be converted into Math::BigInt and Math::BigFloat +objects respectively, without becoming string scalars or losing +precision. +.IP "true, false" 4 +.IX Item "true, false" +These \s-1JSON\s0 atoms become \f(CW\*(C`JSON::PP::true\*(C'\fR and \f(CW\*(C`JSON::PP::false\*(C'\fR, +respectively. They are overloaded to act almost exactly like the numbers +\&\f(CW1\fR and \f(CW0\fR. You can check whether a scalar is a \s-1JSON\s0 boolean by using +the \f(CW\*(C`JSON::PP::is_bool\*(C'\fR function. +.IP "null" 4 +.IX Item "null" +A \s-1JSON\s0 null atom becomes \f(CW\*(C`undef\*(C'\fR in Perl. +.ie n .IP "shell-style comments (""# \fItext\fP"")" 4 +.el .IP "shell-style comments (\f(CW# \f(CItext\f(CW\fR)" 4 +.IX Item "shell-style comments (# text)" +As a nonstandard extension to the \s-1JSON\s0 syntax that is enabled by the +\&\f(CW\*(C`relaxed\*(C'\fR setting, shell-style comments are allowed. They can start +anywhere outside strings and go till the end of the line. +.ie n .IP "tagged values (""(\fItag\fP)\fIvalue\fP"")." 4 +.el .IP "tagged values (\f(CW(\f(CItag\f(CW)\f(CIvalue\f(CW\fR)." 4 +.IX Item "tagged values ((tag)value)." +Another nonstandard extension to the \s-1JSON\s0 syntax, enabled with the +\&\f(CW\*(C`allow_tags\*(C'\fR setting, are tagged values. In this implementation, the +\&\fItag\fR must be a perl package/class name encoded as a \s-1JSON\s0 string, and the +\&\fIvalue\fR must be a \s-1JSON\s0 array encoding optional constructor arguments. +.Sp +See \*(L"\s-1OBJECT SERIALISATION\*(R"\s0, below, for details. +.SS "\s-1PERL\s0 \-> \s-1JSON\s0" +.IX Subsection "PERL -> JSON" +The mapping from Perl to \s-1JSON\s0 is slightly more difficult, as Perl is a +truly typeless language, so we can only guess which \s-1JSON\s0 type is meant by +a Perl value. +.IP "hash references" 4 +.IX Item "hash references" +Perl hash references become \s-1JSON\s0 objects. As there is no inherent +ordering in hash keys (or \s-1JSON\s0 objects), they will usually be encoded +in a pseudo-random order. \s-1JSON::PP\s0 can optionally sort the hash keys +(determined by the \fIcanonical\fR flag and/or \fIsort_by\fR property), so +the same data structure will serialise to the same \s-1JSON\s0 text (given +same settings and version of \s-1JSON::PP\s0), but this incurs a runtime +overhead and is only rarely useful, e.g. when you want to compare some +\&\s-1JSON\s0 text against another for equality. +.IP "array references" 4 +.IX Item "array references" +Perl array references become \s-1JSON\s0 arrays. +.IP "other references" 4 +.IX Item "other references" +Other unblessed references are generally not allowed and will cause an +exception to be thrown, except for references to the integers \f(CW0\fR and +\&\f(CW1\fR, which get turned into \f(CW\*(C`false\*(C'\fR and \f(CW\*(C`true\*(C'\fR atoms in \s-1JSON.\s0 You can +also use \f(CW\*(C`JSON::PP::false\*(C'\fR and \f(CW\*(C`JSON::PP::true\*(C'\fR to improve +readability. +.Sp +.Vb 1 +\& to_json [\e0, JSON::PP::true] # yields [false,true] +.Ve +.IP "JSON::PP::true, JSON::PP::false" 4 +.IX Item "JSON::PP::true, JSON::PP::false" +These special values become \s-1JSON\s0 true and \s-1JSON\s0 false values, +respectively. You can also use \f(CW\*(C`\e1\*(C'\fR and \f(CW\*(C`\e0\*(C'\fR directly if you want. +.IP "JSON::PP::null" 4 +.IX Item "JSON::PP::null" +This special value becomes \s-1JSON\s0 null. +.IP "blessed objects" 4 +.IX Item "blessed objects" +Blessed objects are not directly representable in \s-1JSON,\s0 but \f(CW\*(C`JSON::PP\*(C'\fR +allows various ways of handling objects. See \*(L"\s-1OBJECT SERIALISATION\*(R"\s0, +below, for details. +.IP "simple scalars" 4 +.IX Item "simple scalars" +Simple Perl scalars (any scalar that is not a reference) are the most +difficult objects to encode: \s-1JSON::PP\s0 will encode undefined scalars as +\&\s-1JSON\s0 \f(CW\*(C`null\*(C'\fR values, scalars that have last been used in a string context +before encoding as \s-1JSON\s0 strings, and anything else as number value: +.Sp +.Vb 4 +\& # dump as number +\& encode_json [2] # yields [2] +\& encode_json [\-3.0e17] # yields [\-3e+17] +\& my $value = 5; encode_json [$value] # yields [5] +\& +\& # used as string, so dump as string +\& print $value; +\& encode_json [$value] # yields ["5"] +\& +\& # undef becomes null +\& encode_json [undef] # yields [null] +.Ve +.Sp +You can force the type to be a \s-1JSON\s0 string by stringifying it: +.Sp +.Vb 5 +\& my $x = 3.1; # some variable containing a number +\& "$x"; # stringified +\& $x .= ""; # another, more awkward way to stringify +\& print $x; # perl does it for you, too, quite often +\& # (but for older perls) +.Ve +.Sp +You can force the type to be a \s-1JSON\s0 number by numifying it: +.Sp +.Vb 3 +\& my $x = "3"; # some variable containing a string +\& $x += 0; # numify it, ensuring it will be dumped as a number +\& $x *= 1; # same thing, the choice is yours. +.Ve +.Sp +You can not currently force the type in other, less obscure, ways. +.Sp +Since version 2.91_01, \s-1JSON::PP\s0 uses a different number detection logic +that converts a scalar that is possible to turn into a number safely. +The new logic is slightly faster, and tends to help people who use older +perl or who want to encode complicated data structure. However, this may +results in a different \s-1JSON\s0 text from the one \s-1JSON::XS\s0 encodes (and +thus may break tests that compare entire \s-1JSON\s0 texts). If you do +need the previous behavior for compatibility or for finer control, +set \s-1PERL_JSON_PP_USE_B\s0 environmental variable to true before you +\&\f(CW\*(C`use\*(C'\fR \s-1JSON::PP\s0 (or \s-1JSON\s0.pm). +.Sp +Note that numerical precision has the same meaning as under Perl (so +binary to decimal conversion follows the same rules as in Perl, which +can differ to other languages). Also, your perl interpreter might expose +extensions to the floating point numbers of your platform, such as +infinities or NaN's \- these cannot be represented in \s-1JSON,\s0 and it is an +error to pass those in. +.Sp +\&\s-1JSON::PP\s0 (and \s-1JSON::XS\s0) trusts what you pass to \f(CW\*(C`encode\*(C'\fR method +(or \f(CW\*(C`encode_json\*(C'\fR function) is a clean, validated data structure with +values that can be represented as valid \s-1JSON\s0 values only, because it's +not from an external data source (as opposed to \s-1JSON\s0 texts you pass to +\&\f(CW\*(C`decode\*(C'\fR or \f(CW\*(C`decode_json\*(C'\fR, which \s-1JSON::PP\s0 considers tainted and +doesn't trust). As \s-1JSON::PP\s0 doesn't know exactly what you and consumers +of your \s-1JSON\s0 texts want the unexpected values to be (you may want to +convert them into null, or to stringify them with or without +normalisation (string representation of infinities/NaN may vary +depending on platforms), or to croak without conversion), you're advised +to do what you and your consumers need before you encode, and also not +to numify values that may start with values that look like a number +(including infinities/NaN), without validating. +.SS "\s-1OBJECT SERIALISATION\s0" +.IX Subsection "OBJECT SERIALISATION" +As \s-1JSON\s0 cannot directly represent Perl objects, you have to choose between +a pure \s-1JSON\s0 representation (without the ability to deserialise the object +automatically again), and a nonstandard extension to the \s-1JSON\s0 syntax, +tagged values. +.PP +\fI\s-1SERIALISATION\s0\fR +.IX Subsection "SERIALISATION" +.PP +What happens when \f(CW\*(C`JSON::PP\*(C'\fR encounters a Perl object depends on the +\&\f(CW\*(C`allow_blessed\*(C'\fR, \f(CW\*(C`convert_blessed\*(C'\fR, \f(CW\*(C`allow_tags\*(C'\fR and \f(CW\*(C`allow_bignum\*(C'\fR +settings, which are used in this order: +.ie n .IP "1. ""allow_tags"" is enabled and the object has a ""FREEZE"" method." 4 +.el .IP "1. \f(CWallow_tags\fR is enabled and the object has a \f(CWFREEZE\fR method." 4 +.IX Item "1. allow_tags is enabled and the object has a FREEZE method." +In this case, \f(CW\*(C`JSON::PP\*(C'\fR creates a tagged \s-1JSON\s0 value, using a nonstandard +extension to the \s-1JSON\s0 syntax. +.Sp +This works by invoking the \f(CW\*(C`FREEZE\*(C'\fR method on the object, with the first +argument being the object to serialise, and the second argument being the +constant string \f(CW\*(C`JSON\*(C'\fR to distinguish it from other serialisers. +.Sp +The \f(CW\*(C`FREEZE\*(C'\fR method can return any number of values (i.e. zero or +more). These values and the paclkage/classname of the object will then be +encoded as a tagged \s-1JSON\s0 value in the following format: +.Sp +.Vb 1 +\& ("classname")[FREEZE return values...] +.Ve +.Sp +e.g.: +.Sp +.Vb 3 +\& ("URI")["http://www.google.com/"] +\& ("MyDate")[2013,10,29] +\& ("ImageData::JPEG")["Z3...VlCg=="] +.Ve +.Sp +For example, the hypothetical \f(CW\*(C`My::Object\*(C'\fR \f(CW\*(C`FREEZE\*(C'\fR method might use the +objects \f(CW\*(C`type\*(C'\fR and \f(CW\*(C`id\*(C'\fR members to encode the object: +.Sp +.Vb 2 +\& sub My::Object::FREEZE { +\& my ($self, $serialiser) = @_; +\& +\& ($self\->{type}, $self\->{id}) +\& } +.Ve +.ie n .IP "2. ""convert_blessed"" is enabled and the object has a ""TO_JSON"" method." 4 +.el .IP "2. \f(CWconvert_blessed\fR is enabled and the object has a \f(CWTO_JSON\fR method." 4 +.IX Item "2. convert_blessed is enabled and the object has a TO_JSON method." +In this case, the \f(CW\*(C`TO_JSON\*(C'\fR method of the object is invoked in scalar +context. It must return a single scalar that can be directly encoded into +\&\s-1JSON.\s0 This scalar replaces the object in the \s-1JSON\s0 text. +.Sp +For example, the following \f(CW\*(C`TO_JSON\*(C'\fR method will convert all \s-1URI\s0 +objects to \s-1JSON\s0 strings when serialised. The fact that these values +originally were \s-1URI\s0 objects is lost. +.Sp +.Vb 4 +\& sub URI::TO_JSON { +\& my ($uri) = @_; +\& $uri\->as_string +\& } +.Ve +.ie n .IP "3. ""allow_bignum"" is enabled and the object is a ""Math::BigInt"" or ""Math::BigFloat""." 4 +.el .IP "3. \f(CWallow_bignum\fR is enabled and the object is a \f(CWMath::BigInt\fR or \f(CWMath::BigFloat\fR." 4 +.IX Item "3. allow_bignum is enabled and the object is a Math::BigInt or Math::BigFloat." +The object will be serialised as a \s-1JSON\s0 number value. +.ie n .IP "4. ""allow_blessed"" is enabled." 4 +.el .IP "4. \f(CWallow_blessed\fR is enabled." 4 +.IX Item "4. allow_blessed is enabled." +The object will be serialised as a \s-1JSON\s0 null value. +.IP "5. none of the above" 4 +.IX Item "5. none of the above" +If none of the settings are enabled or the respective methods are missing, +\&\f(CW\*(C`JSON::PP\*(C'\fR throws an exception. +.PP +\fI\s-1DESERIALISATION\s0\fR +.IX Subsection "DESERIALISATION" +.PP +For deserialisation there are only two cases to consider: either +nonstandard tagging was used, in which case \f(CW\*(C`allow_tags\*(C'\fR decides, +or objects cannot be automatically be deserialised, in which +case you can use postprocessing or the \f(CW\*(C`filter_json_object\*(C'\fR or +\&\f(CW\*(C`filter_json_single_key_object\*(C'\fR callbacks to get some real objects our of +your \s-1JSON.\s0 +.PP +This section only considers the tagged value case: a tagged \s-1JSON\s0 object +is encountered during decoding and \f(CW\*(C`allow_tags\*(C'\fR is disabled, a parse +error will result (as if tagged values were not part of the grammar). +.PP +If \f(CW\*(C`allow_tags\*(C'\fR is enabled, \f(CW\*(C`JSON::PP\*(C'\fR will look up the \f(CW\*(C`THAW\*(C'\fR method +of the package/classname used during serialisation (it will not attempt +to load the package as a Perl module). If there is no such method, the +decoding will fail with an error. +.PP +Otherwise, the \f(CW\*(C`THAW\*(C'\fR method is invoked with the classname as first +argument, the constant string \f(CW\*(C`JSON\*(C'\fR as second argument, and all the +values from the \s-1JSON\s0 array (the values originally returned by the +\&\f(CW\*(C`FREEZE\*(C'\fR method) as remaining arguments. +.PP +The method must then return the object. While technically you can return +any Perl scalar, you might have to enable the \f(CW\*(C`allow_nonref\*(C'\fR setting to +make that work in all cases, so better return an actual blessed reference. +.PP +As an example, let's implement a \f(CW\*(C`THAW\*(C'\fR function that regenerates the +\&\f(CW\*(C`My::Object\*(C'\fR from the \f(CW\*(C`FREEZE\*(C'\fR example earlier: +.PP +.Vb 2 +\& sub My::Object::THAW { +\& my ($class, $serialiser, $type, $id) = @_; +\& +\& $class\->new (type => $type, id => $id) +\& } +.Ve +.SH "ENCODING/CODESET FLAG NOTES" +.IX Header "ENCODING/CODESET FLAG NOTES" +This section is taken from \s-1JSON::XS.\s0 +.PP +The interested reader might have seen a number of flags that signify +encodings or codesets \- \f(CW\*(C`utf8\*(C'\fR, \f(CW\*(C`latin1\*(C'\fR and \f(CW\*(C`ascii\*(C'\fR. There seems to be +some confusion on what these do, so here is a short comparison: +.PP +\&\f(CW\*(C`utf8\*(C'\fR controls whether the \s-1JSON\s0 text created by \f(CW\*(C`encode\*(C'\fR (and expected +by \f(CW\*(C`decode\*(C'\fR) is \s-1UTF\-8\s0 encoded or not, while \f(CW\*(C`latin1\*(C'\fR and \f(CW\*(C`ascii\*(C'\fR only +control whether \f(CW\*(C`encode\*(C'\fR escapes character values outside their respective +codeset range. Neither of these flags conflict with each other, although +some combinations make less sense than others. +.PP +Care has been taken to make all flags symmetrical with respect to +\&\f(CW\*(C`encode\*(C'\fR and \f(CW\*(C`decode\*(C'\fR, that is, texts encoded with any combination of +these flag values will be correctly decoded when the same flags are used +\&\- in general, if you use different flag settings while encoding vs. when +decoding you likely have a bug somewhere. +.PP +Below comes a verbose discussion of these flags. Note that a \*(L"codeset\*(R" is +simply an abstract set of character-codepoint pairs, while an encoding +takes those codepoint numbers and \fIencodes\fR them, in our case into +octets. Unicode is (among other things) a codeset, \s-1UTF\-8\s0 is an encoding, +and \s-1ISO\-8859\-1\s0 (= latin 1) and \s-1ASCII\s0 are both codesets \fIand\fR encodings at +the same time, which can be confusing. +.ie n .IP """utf8"" flag disabled" 4 +.el .IP "\f(CWutf8\fR flag disabled" 4 +.IX Item "utf8 flag disabled" +When \f(CW\*(C`utf8\*(C'\fR is disabled (the default), then \f(CW\*(C`encode\*(C'\fR/\f(CW\*(C`decode\*(C'\fR generate +and expect Unicode strings, that is, characters with high ordinal Unicode +values (> 255) will be encoded as such characters, and likewise such +characters are decoded as-is, no changes to them will be done, except +\&\*(L"(re\-)interpreting\*(R" them as Unicode codepoints or Unicode characters, +respectively (to Perl, these are the same thing in strings unless you do +funny/weird/dumb stuff). +.Sp +This is useful when you want to do the encoding yourself (e.g. when you +want to have \s-1UTF\-16\s0 encoded \s-1JSON\s0 texts) or when some other layer does +the encoding for you (for example, when printing to a terminal using a +filehandle that transparently encodes to \s-1UTF\-8\s0 you certainly do \s-1NOT\s0 want +to \s-1UTF\-8\s0 encode your data first and have Perl encode it another time). +.ie n .IP """utf8"" flag enabled" 4 +.el .IP "\f(CWutf8\fR flag enabled" 4 +.IX Item "utf8 flag enabled" +If the \f(CW\*(C`utf8\*(C'\fR\-flag is enabled, \f(CW\*(C`encode\*(C'\fR/\f(CW\*(C`decode\*(C'\fR will encode all +characters using the corresponding \s-1UTF\-8\s0 multi-byte sequence, and will +expect your input strings to be encoded as \s-1UTF\-8,\s0 that is, no \*(L"character\*(R" +of the input string must have any value > 255, as \s-1UTF\-8\s0 does not allow +that. +.Sp +The \f(CW\*(C`utf8\*(C'\fR flag therefore switches between two modes: disabled means you +will get a Unicode string in Perl, enabled means you get an \s-1UTF\-8\s0 encoded +octet/binary string in Perl. +.ie n .IP """latin1"" or ""ascii"" flags enabled" 4 +.el .IP "\f(CWlatin1\fR or \f(CWascii\fR flags enabled" 4 +.IX Item "latin1 or ascii flags enabled" +With \f(CW\*(C`latin1\*(C'\fR (or \f(CW\*(C`ascii\*(C'\fR) enabled, \f(CW\*(C`encode\*(C'\fR will escape characters +with ordinal values > 255 (> 127 with \f(CW\*(C`ascii\*(C'\fR) and encode the remaining +characters as specified by the \f(CW\*(C`utf8\*(C'\fR flag. +.Sp +If \f(CW\*(C`utf8\*(C'\fR is disabled, then the result is also correctly encoded in those +character sets (as both are proper subsets of Unicode, meaning that a +Unicode string with all character values < 256 is the same thing as a +\&\s-1ISO\-8859\-1\s0 string, and a Unicode string with all character values < 128 is +the same thing as an \s-1ASCII\s0 string in Perl). +.Sp +If \f(CW\*(C`utf8\*(C'\fR is enabled, you still get a correct UTF\-8\-encoded string, +regardless of these flags, just some more characters will be escaped using +\&\f(CW\*(C`\euXXXX\*(C'\fR then before. +.Sp +Note that \s-1ISO\-8859\-1\-\s0\fIencoded\fR strings are not compatible with \s-1UTF\-8\s0 +encoding, while ASCII-encoded strings are. That is because the \s-1ISO\-8859\-1\s0 +encoding is \s-1NOT\s0 a subset of \s-1UTF\-8\s0 (despite the \s-1ISO\-8859\-1\s0 \fIcodeset\fR being +a subset of Unicode), while \s-1ASCII\s0 is. +.Sp +Surprisingly, \f(CW\*(C`decode\*(C'\fR will ignore these flags and so treat all input +values as governed by the \f(CW\*(C`utf8\*(C'\fR flag. If it is disabled, this allows you +to decode \s-1ISO\-8859\-1\-\s0 and ASCII-encoded strings, as both strict subsets of +Unicode. If it is enabled, you can correctly decode \s-1UTF\-8\s0 encoded strings. +.Sp +So neither \f(CW\*(C`latin1\*(C'\fR nor \f(CW\*(C`ascii\*(C'\fR are incompatible with the \f(CW\*(C`utf8\*(C'\fR flag \- +they only govern when the \s-1JSON\s0 output engine escapes a character or not. +.Sp +The main use for \f(CW\*(C`latin1\*(C'\fR is to relatively efficiently store binary data +as \s-1JSON,\s0 at the expense of breaking compatibility with most \s-1JSON\s0 decoders. +.Sp +The main use for \f(CW\*(C`ascii\*(C'\fR is to force the output to not contain characters +with values > 127, which means you can interpret the resulting string +as \s-1UTF\-8, ISO\-8859\-1, ASCII, KOI8\-R\s0 or most about any character set and +8\-bit\-encoding, and still get the same data structure back. This is useful +when your channel for \s-1JSON\s0 transfer is not 8\-bit clean or the encoding +might be mangled in between (e.g. in mail), and works because \s-1ASCII\s0 is a +proper subset of most 8\-bit and multibyte encodings in use in the world. +.SH "BUGS" +.IX Header "BUGS" +Please report bugs on a specific behavior of this module to \s-1RT\s0 or GitHub +issues (preferred): +.PP + +.PP + +.PP +As for new features and requests to change common behaviors, please +ask the author of \s-1JSON::XS\s0 (Marc Lehmann, ) +first, by email (important!), to keep compatibility among \s-1JSON\s0.pm backends. +.PP +Generally speaking, if you need something special for you, you are advised +to create a new module, maybe based on JSON::Tiny, which is smaller and +written in a much cleaner way than this module. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The \fIjson_pp\fR command line utility for quick experiments. +.PP +\&\s-1JSON::XS\s0, Cpanel::JSON::XS, and JSON::Tiny for faster alternatives. +\&\s-1JSON\s0 and JSON::MaybeXS for easy migration. +.PP +JSON::PP::Compat5005 and JSON::PP::Compat5006 for older perl users. +.PP +\&\s-1RFC4627\s0 () +.PP +\&\s-1RFC7159\s0 () +.PP +\&\s-1RFC8259\s0 () +.SH "AUTHOR" +.IX Header "AUTHOR" +Makamaka Hannyaharamitu, +.SH "CURRENT MAINTAINER" +.IX Header "CURRENT MAINTAINER" +Kenichi Ishigaki, +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2007\-2016 by Makamaka Hannyaharamitu +.PP +Most of the documentation is taken from \s-1JSON::XS\s0 by Marc Lehmann +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/List%3A%3AUtil%3A%3AXS.3 b/data/miniconda3/man/man3/List%3A%3AUtil%3A%3AXS.3 new file mode 100644 index 0000000000000000000000000000000000000000..1a8b6f0c5290f9a5fc42c93b8ba9dbe4dfad561c --- /dev/null +++ b/data/miniconda3/man/man3/List%3A%3AUtil%3A%3AXS.3 @@ -0,0 +1,166 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "List::Util::XS 3" +.TH List::Util::XS 3 "2020-12-18" "perl v5.32.1" "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" +List::Util::XS \- Indicate if List::Util was compiled with a C compiler +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use List::Util::XS 1.20; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`List::Util::XS\*(C'\fR can be used as a dependency to ensure List::Util was +installed using a C compiler and that the \s-1XS\s0 version is installed. +.PP +During installation \f(CW$List::Util::XS::VERSION\fR will be set to +\&\f(CW\*(C`undef\*(C'\fR if the \s-1XS\s0 was not compiled. +.PP +Starting with release 1.23_03, Scalar-List-Util is \fBalways\fR using +the \s-1XS\s0 implementation, but for backwards compatibility, we still +ship the \f(CW\*(C`List::Util::XS\*(C'\fR module which just loads \f(CW\*(C`List::Util\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Scalar::Util, List::Util, List::MoreUtils +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2008 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/List%3A%3AUtil.3 b/data/miniconda3/man/man3/List%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..4c13c6d2cc5a3daaca16dfcc1dc33c4c3cbb8444 --- /dev/null +++ b/data/miniconda3/man/man3/List%3A%3AUtil.3 @@ -0,0 +1,931 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "List::Util 3" +.TH List::Util 3 "2020-12-18" "perl v5.32.1" "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" +List::Util \- A selection of general\-utility list subroutines +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use List::Util qw( +\& reduce any all none notall first reductions +\& +\& max maxstr min minstr product sum sum0 +\& +\& pairs unpairs pairkeys pairvalues pairfirst pairgrep pairmap +\& +\& shuffle uniq uniqint uniqnum uniqstr +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`List::Util\*(C'\fR contains a selection of subroutines that people have expressed +would be nice to have in the perl core, but the usage would not really be high +enough to warrant the use of a keyword, and the size so small such that being +individual extensions would be wasteful. +.PP +By default \f(CW\*(C`List::Util\*(C'\fR does not export any subroutines. +.SH "LIST-REDUCTION FUNCTIONS" +.IX Header "LIST-REDUCTION FUNCTIONS" +The following set of functions all apply a given block of code to a list of +values. +.SS "reduce" +.IX Subsection "reduce" +.Vb 1 +\& $result = reduce { BLOCK } @list +.Ve +.PP +Reduces \f(CW@list\fR by calling \f(CW\*(C`BLOCK\*(C'\fR in a scalar context multiple times, +setting \f(CW$a\fR and \f(CW$b\fR each time. The first call will be with \f(CW$a\fR and \f(CW$b\fR +set to the first two elements of the list, subsequent calls will be done by +setting \f(CW$a\fR to the result of the previous call and \f(CW$b\fR to the next element +in the list. +.PP +Returns the result of the last call to the \f(CW\*(C`BLOCK\*(C'\fR. If \f(CW@list\fR is empty then +\&\f(CW\*(C`undef\*(C'\fR is returned. If \f(CW@list\fR only contains one element then that element +is returned and \f(CW\*(C`BLOCK\*(C'\fR is not executed. +.PP +The following examples all demonstrate how \f(CW\*(C`reduce\*(C'\fR could be used to implement +the other list-reduction functions in this module. (They are not in fact +implemented like this, but instead in a more efficient manner in individual C +functions). +.PP +.Vb 3 +\& $foo = reduce { defined($a) ? $a : +\& $code\->(local $_ = $b) ? $b : +\& undef } undef, @list # first +\& +\& $foo = reduce { $a > $b ? $a : $b } 1..10 # max +\& $foo = reduce { $a gt $b ? $a : $b } \*(AqA\*(Aq..\*(AqZ\*(Aq # maxstr +\& $foo = reduce { $a < $b ? $a : $b } 1..10 # min +\& $foo = reduce { $a lt $b ? $a : $b } \*(Aqaa\*(Aq..\*(Aqzz\*(Aq # minstr +\& $foo = reduce { $a + $b } 1 .. 10 # sum +\& $foo = reduce { $a . $b } @bar # concat +\& +\& $foo = reduce { $a || $code\->(local $_ = $b) } 0, @bar # any +\& $foo = reduce { $a && $code\->(local $_ = $b) } 1, @bar # all +\& $foo = reduce { $a && !$code\->(local $_ = $b) } 1, @bar # none +\& $foo = reduce { $a || !$code\->(local $_ = $b) } 0, @bar # notall +\& # Note that these implementations do not fully short\-circuit +.Ve +.PP +If your algorithm requires that \f(CW\*(C`reduce\*(C'\fR produce an identity value, then make +sure that you always pass that identity value as the first argument to prevent +\&\f(CW\*(C`undef\*(C'\fR being returned +.PP +.Vb 1 +\& $foo = reduce { $a + $b } 0, @values; # sum with 0 identity value +.Ve +.PP +The above example code blocks also suggest how to use \f(CW\*(C`reduce\*(C'\fR to build a +more efficient combined version of one of these basic functions and a \f(CW\*(C`map\*(C'\fR +block. For example, to find the total length of all the strings in a list, +we could use +.PP +.Vb 1 +\& $total = sum map { length } @strings; +.Ve +.PP +However, this produces a list of temporary integer values as long as the +original list of strings, only to reduce it down to a single value again. We +can compute the same result more efficiently by using \f(CW\*(C`reduce\*(C'\fR with a code +block that accumulates lengths by writing this instead as: +.PP +.Vb 1 +\& $total = reduce { $a + length $b } 0, @strings +.Ve +.PP +The other scalar-returning list reduction functions are all specialisations of +this generic idea. +.SS "reductions" +.IX Subsection "reductions" +.Vb 1 +\& @results = reductions { BLOCK } @list +.Ve +.PP +\&\fISince version 1.54.\fR +.PP +Similar to \f(CW\*(C`reduce\*(C'\fR except that it also returns the intermediate values along +with the final result. As before, \f(CW$a\fR is set to the first element of the +given list, and the \f(CW\*(C`BLOCK\*(C'\fR is then called once for remaining item in the +list set into \f(CW$b\fR, with the result being captured for return as well as +becoming the new value for \f(CW$a\fR. +.PP +The returned list will begin with the initial value for \f(CW$a\fR, followed by +each return value from the block in order. The final value of the result will +be identical to what the \f(CW\*(C`reduce\*(C'\fR function would have returned given the same +block and list. +.PP +.Vb 2 +\& reduce { "$a\-$b" } "a".."d" # "a\-b\-c\-d" +\& reductions { "$a\-$b" } "a".."d" # "a", "a\-b", "a\-b\-c", "a\-b\-c\-d" +.Ve +.SS "any" +.IX Subsection "any" +.Vb 1 +\& my $bool = any { BLOCK } @list; +.Ve +.PP +\&\fISince version 1.33.\fR +.PP +Similar to \f(CW\*(C`grep\*(C'\fR in that it evaluates \f(CW\*(C`BLOCK\*(C'\fR setting \f(CW$_\fR to each element +of \f(CW@list\fR in turn. \f(CW\*(C`any\*(C'\fR returns true if any element makes the \f(CW\*(C`BLOCK\*(C'\fR +return a true value. If \f(CW\*(C`BLOCK\*(C'\fR never returns true or \f(CW@list\fR was empty then +it returns false. +.PP +Many cases of using \f(CW\*(C`grep\*(C'\fR in a conditional can be written using \f(CW\*(C`any\*(C'\fR +instead, as it can short-circuit after the first true result. +.PP +.Vb 3 +\& if( any { length > 10 } @strings ) { +\& # at least one string has more than 10 characters +\& } +.Ve +.PP +Note: Due to \s-1XS\s0 issues the block passed may be able to access the outer \f(CW@_\fR +directly. This is not intentional and will break under debugger. +.SS "all" +.IX Subsection "all" +.Vb 1 +\& my $bool = all { BLOCK } @list; +.Ve +.PP +\&\fISince version 1.33.\fR +.PP +Similar to \*(L"any\*(R", except that it requires all elements of the \f(CW@list\fR to +make the \f(CW\*(C`BLOCK\*(C'\fR return true. If any element returns false, then it returns +false. If the \f(CW\*(C`BLOCK\*(C'\fR never returns false or the \f(CW@list\fR was empty then it +returns true. +.PP +Note: Due to \s-1XS\s0 issues the block passed may be able to access the outer \f(CW@_\fR +directly. This is not intentional and will break under debugger. +.SS "none" +.IX Subsection "none" +.SS "notall" +.IX Subsection "notall" +.Vb 1 +\& my $bool = none { BLOCK } @list; +\& +\& my $bool = notall { BLOCK } @list; +.Ve +.PP +\&\fISince version 1.33.\fR +.PP +Similar to \*(L"any\*(R" and \*(L"all\*(R", but with the return sense inverted. \f(CW\*(C`none\*(C'\fR +returns true only if no value in the \f(CW@list\fR causes the \f(CW\*(C`BLOCK\*(C'\fR to return +true, and \f(CW\*(C`notall\*(C'\fR returns true only if not all of the values do. +.PP +Note: Due to \s-1XS\s0 issues the block passed may be able to access the outer \f(CW@_\fR +directly. This is not intentional and will break under debugger. +.SS "first" +.IX Subsection "first" +.Vb 1 +\& my $val = first { BLOCK } @list; +.Ve +.PP +Similar to \f(CW\*(C`grep\*(C'\fR in that it evaluates \f(CW\*(C`BLOCK\*(C'\fR setting \f(CW$_\fR to each element +of \f(CW@list\fR in turn. \f(CW\*(C`first\*(C'\fR returns the first element where the result from +\&\f(CW\*(C`BLOCK\*(C'\fR is a true value. If \f(CW\*(C`BLOCK\*(C'\fR never returns true or \f(CW@list\fR was empty +then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = first { defined($_) } @list # first defined value in @list +\& $foo = first { $_ > $value } @list # first value in @list which +\& # is greater than $value +.Ve +.SS "max" +.IX Subsection "max" +.Vb 1 +\& my $num = max @list; +.Ve +.PP +Returns the entry in the list with the highest numerical value. If the list is +empty then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = max 1..10 # 10 +\& $foo = max 3,9,12 # 12 +\& $foo = max @bar, @baz # whatever +.Ve +.SS "maxstr" +.IX Subsection "maxstr" +.Vb 1 +\& my $str = maxstr @list; +.Ve +.PP +Similar to \*(L"max\*(R", but treats all the entries in the list as strings and +returns the highest string as defined by the \f(CW\*(C`gt\*(C'\fR operator. If the list is +empty then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = maxstr \*(AqA\*(Aq..\*(AqZ\*(Aq # \*(AqZ\*(Aq +\& $foo = maxstr "hello","world" # "world" +\& $foo = maxstr @bar, @baz # whatever +.Ve +.SS "min" +.IX Subsection "min" +.Vb 1 +\& my $num = min @list; +.Ve +.PP +Similar to \*(L"max\*(R" but returns the entry in the list with the lowest numerical +value. If the list is empty then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = min 1..10 # 1 +\& $foo = min 3,9,12 # 3 +\& $foo = min @bar, @baz # whatever +.Ve +.SS "minstr" +.IX Subsection "minstr" +.Vb 1 +\& my $str = minstr @list; +.Ve +.PP +Similar to \*(L"min\*(R", but treats all the entries in the list as strings and +returns the lowest string as defined by the \f(CW\*(C`lt\*(C'\fR operator. If the list is +empty then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = minstr \*(AqA\*(Aq..\*(AqZ\*(Aq # \*(AqA\*(Aq +\& $foo = minstr "hello","world" # "hello" +\& $foo = minstr @bar, @baz # whatever +.Ve +.SS "product" +.IX Subsection "product" +.Vb 1 +\& my $num = product @list; +.Ve +.PP +\&\fISince version 1.35.\fR +.PP +Returns the numerical product of all the elements in \f(CW@list\fR. If \f(CW@list\fR is +empty then \f(CW1\fR is returned. +.PP +.Vb 2 +\& $foo = product 1..10 # 3628800 +\& $foo = product 3,9,12 # 324 +.Ve +.SS "sum" +.IX Subsection "sum" +.Vb 1 +\& my $num_or_undef = sum @list; +.Ve +.PP +Returns the numerical sum of all the elements in \f(CW@list\fR. For backwards +compatibility, if \f(CW@list\fR is empty then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $foo = sum 1..10 # 55 +\& $foo = sum 3,9,12 # 24 +\& $foo = sum @bar, @baz # whatever +.Ve +.SS "sum0" +.IX Subsection "sum0" +.Vb 1 +\& my $num = sum0 @list; +.Ve +.PP +\&\fISince version 1.26.\fR +.PP +Similar to \*(L"sum\*(R", except this returns 0 when given an empty list, rather +than \f(CW\*(C`undef\*(C'\fR. +.SH "KEY/VALUE PAIR LIST FUNCTIONS" +.IX Header "KEY/VALUE PAIR LIST FUNCTIONS" +The following set of functions, all inspired by List::Pairwise, consume an +even-sized list of pairs. The pairs may be key/value associations from a hash, +or just a list of values. The functions will all preserve the original ordering +of the pairs, and will not be confused by multiple pairs having the same \*(L"key\*(R" +value \- nor even do they require that the first of each pair be a plain string. +.PP +\&\fB\s-1NOTE\s0\fR: At the time of writing, the following \f(CW\*(C`pair*\*(C'\fR functions that take a +block do not modify the value of \f(CW$_\fR within the block, and instead operate +using the \f(CW$a\fR and \f(CW$b\fR globals instead. This has turned out to be a poor +design, as it precludes the ability to provide a \f(CW\*(C`pairsort\*(C'\fR function. Better +would be to pass pair-like objects as 2\-element array references in \f(CW$_\fR, in +a style similar to the return value of the \f(CW\*(C`pairs\*(C'\fR function. At some future +version this behaviour may be added. +.PP +Until then, users are alerted \fB\s-1NOT\s0\fR to rely on the value of \f(CW$_\fR remaining +unmodified between the outside and the inside of the control block. In +particular, the following example is \fB\s-1UNSAFE\s0\fR: +.PP +.Vb 1 +\& my @kvlist = ... +\& +\& foreach (qw( some keys here )) { +\& my @items = pairgrep { $a eq $_ } @kvlist; +\& ... +\& } +.Ve +.PP +Instead, write this using a lexical variable: +.PP +.Vb 4 +\& foreach my $key (qw( some keys here )) { +\& my @items = pairgrep { $a eq $key } @kvlist; +\& ... +\& } +.Ve +.SS "pairs" +.IX Subsection "pairs" +.Vb 1 +\& my @pairs = pairs @kvlist; +.Ve +.PP +\&\fISince version 1.29.\fR +.PP +A convenient shortcut to operating on even-sized lists of pairs, this function +returns a list of \f(CW\*(C`ARRAY\*(C'\fR references, each containing two items from the +given list. It is a more efficient version of +.PP +.Vb 1 +\& @pairs = pairmap { [ $a, $b ] } @kvlist +.Ve +.PP +It is most convenient to use in a \f(CW\*(C`foreach\*(C'\fR loop, for example: +.PP +.Vb 4 +\& foreach my $pair ( pairs @kvlist ) { +\& my ( $key, $value ) = @$pair; +\& ... +\& } +.Ve +.PP +Since version \f(CW1.39\fR these \f(CW\*(C`ARRAY\*(C'\fR references are blessed objects, +recognising the two methods \f(CW\*(C`key\*(C'\fR and \f(CW\*(C`value\*(C'\fR. The following code is +equivalent: +.PP +.Vb 5 +\& foreach my $pair ( pairs @kvlist ) { +\& my $key = $pair\->key; +\& my $value = $pair\->value; +\& ... +\& } +.Ve +.PP +Since version \f(CW1.51\fR they also have a \f(CW\*(C`TO_JSON\*(C'\fR method to ease +serialisation. +.SS "unpairs" +.IX Subsection "unpairs" +.Vb 1 +\& my @kvlist = unpairs @pairs +.Ve +.PP +\&\fISince version 1.42.\fR +.PP +The inverse function to \f(CW\*(C`pairs\*(C'\fR; this function takes a list of \f(CW\*(C`ARRAY\*(C'\fR +references containing two elements each, and returns a flattened list of the +two values from each of the pairs, in order. This is notionally equivalent to +.PP +.Vb 1 +\& my @kvlist = map { @{$_}[0,1] } @pairs +.Ve +.PP +except that it is implemented more efficiently internally. Specifically, for +any input item it will extract exactly two values for the output list; using +\&\f(CW\*(C`undef\*(C'\fR if the input array references are short. +.PP +Between \f(CW\*(C`pairs\*(C'\fR and \f(CW\*(C`unpairs\*(C'\fR, a higher-order list function can be used to +operate on the pairs as single scalars; such as the following near-equivalents +of the other \f(CW\*(C`pair*\*(C'\fR higher-order functions: +.PP +.Vb 2 +\& @kvlist = unpairs grep { FUNC } pairs @kvlist +\& # Like pairgrep, but takes $_ instead of $a and $b +\& +\& @kvlist = unpairs map { FUNC } pairs @kvlist +\& # Like pairmap, but takes $_ instead of $a and $b +.Ve +.PP +Note however that these versions will not behave as nicely in scalar context. +.PP +Finally, this technique can be used to implement a sort on a keyvalue pair +list; e.g.: +.PP +.Vb 1 +\& @kvlist = unpairs sort { $a\->key cmp $b\->key } pairs @kvlist +.Ve +.SS "pairkeys" +.IX Subsection "pairkeys" +.Vb 1 +\& my @keys = pairkeys @kvlist; +.Ve +.PP +\&\fISince version 1.29.\fR +.PP +A convenient shortcut to operating on even-sized lists of pairs, this function +returns a list of the the first values of each of the pairs in the given list. +It is a more efficient version of +.PP +.Vb 1 +\& @keys = pairmap { $a } @kvlist +.Ve +.SS "pairvalues" +.IX Subsection "pairvalues" +.Vb 1 +\& my @values = pairvalues @kvlist; +.Ve +.PP +\&\fISince version 1.29.\fR +.PP +A convenient shortcut to operating on even-sized lists of pairs, this function +returns a list of the the second values of each of the pairs in the given list. +It is a more efficient version of +.PP +.Vb 1 +\& @values = pairmap { $b } @kvlist +.Ve +.SS "pairgrep" +.IX Subsection "pairgrep" +.Vb 1 +\& my @kvlist = pairgrep { BLOCK } @kvlist; +\& +\& my $count = pairgrep { BLOCK } @kvlist; +.Ve +.PP +\&\fISince version 1.29.\fR +.PP +Similar to perl's \f(CW\*(C`grep\*(C'\fR keyword, but interprets the given list as an +even-sized list of pairs. It invokes the \f(CW\*(C`BLOCK\*(C'\fR multiple times, in scalar +context, with \f(CW$a\fR and \f(CW$b\fR set to successive pairs of values from the +\&\f(CW@kvlist\fR. +.PP +Returns an even-sized list of those pairs for which the \f(CW\*(C`BLOCK\*(C'\fR returned true +in list context, or the count of the \fBnumber of pairs\fR in scalar context. +(Note, therefore, in scalar context that it returns a number half the size of +the count of items it would have returned in list context). +.PP +.Vb 1 +\& @subset = pairgrep { $a =~ m/^[[:upper:]]+$/ } @kvlist +.Ve +.PP +As with \f(CW\*(C`grep\*(C'\fR aliasing \f(CW$_\fR to list elements, \f(CW\*(C`pairgrep\*(C'\fR aliases \f(CW$a\fR and +\&\f(CW$b\fR to elements of the given list. Any modifications of it by the code block +will be visible to the caller. +.SS "pairfirst" +.IX Subsection "pairfirst" +.Vb 1 +\& my ( $key, $val ) = pairfirst { BLOCK } @kvlist; +\& +\& my $found = pairfirst { BLOCK } @kvlist; +.Ve +.PP +\&\fISince version 1.30.\fR +.PP +Similar to the \*(L"first\*(R" function, but interprets the given list as an +even-sized list of pairs. It invokes the \f(CW\*(C`BLOCK\*(C'\fR multiple times, in scalar +context, with \f(CW$a\fR and \f(CW$b\fR set to successive pairs of values from the +\&\f(CW@kvlist\fR. +.PP +Returns the first pair of values from the list for which the \f(CW\*(C`BLOCK\*(C'\fR returned +true in list context, or an empty list of no such pair was found. In scalar +context it returns a simple boolean value, rather than either the key or the +value found. +.PP +.Vb 1 +\& ( $key, $value ) = pairfirst { $a =~ m/^[[:upper:]]+$/ } @kvlist +.Ve +.PP +As with \f(CW\*(C`grep\*(C'\fR aliasing \f(CW$_\fR to list elements, \f(CW\*(C`pairfirst\*(C'\fR aliases \f(CW$a\fR and +\&\f(CW$b\fR to elements of the given list. Any modifications of it by the code block +will be visible to the caller. +.SS "pairmap" +.IX Subsection "pairmap" +.Vb 1 +\& my @list = pairmap { BLOCK } @kvlist; +\& +\& my $count = pairmap { BLOCK } @kvlist; +.Ve +.PP +\&\fISince version 1.29.\fR +.PP +Similar to perl's \f(CW\*(C`map\*(C'\fR keyword, but interprets the given list as an +even-sized list of pairs. It invokes the \f(CW\*(C`BLOCK\*(C'\fR multiple times, in list +context, with \f(CW$a\fR and \f(CW$b\fR set to successive pairs of values from the +\&\f(CW@kvlist\fR. +.PP +Returns the concatenation of all the values returned by the \f(CW\*(C`BLOCK\*(C'\fR in list +context, or the count of the number of items that would have been returned in +scalar context. +.PP +.Vb 1 +\& @result = pairmap { "The key $a has value $b" } @kvlist +.Ve +.PP +As with \f(CW\*(C`map\*(C'\fR aliasing \f(CW$_\fR to list elements, \f(CW\*(C`pairmap\*(C'\fR aliases \f(CW$a\fR and +\&\f(CW$b\fR to elements of the given list. Any modifications of it by the code block +will be visible to the caller. +.PP +See \*(L"\s-1KNOWN BUGS\*(R"\s0 for a known-bug with \f(CW\*(C`pairmap\*(C'\fR, and a workaround. +.SH "OTHER FUNCTIONS" +.IX Header "OTHER FUNCTIONS" +.SS "shuffle" +.IX Subsection "shuffle" +.Vb 1 +\& my @values = shuffle @values; +.Ve +.PP +Returns the values of the input in a random order +.PP +.Vb 1 +\& @cards = shuffle 0..51 # 0..51 in a random order +.Ve +.PP +This function is affected by the \f(CW$RAND\fR variable. +.SS "sample" +.IX Subsection "sample" +.Vb 1 +\& my @items = sample $count, @values +.Ve +.PP +\&\fISince version 1.54.\fR +.PP +Randomly select the given number of elements from the input list. Any given +position in the input list will be selected at most once. +.PP +If there are fewer than \f(CW$count\fR items in the list then the function will +return once all of them have been randomly selected; effectively the function +behaves similarly to \*(L"shuffle\*(R". +.PP +This function is affected by the \f(CW$RAND\fR variable. +.SS "uniq" +.IX Subsection "uniq" +.Vb 1 +\& my @subset = uniq @values +.Ve +.PP +\&\fISince version 1.45.\fR +.PP +Filters a list of values to remove subsequent duplicates, as judged by a +DWIM-ish string equality or \f(CW\*(C`undef\*(C'\fR test. Preserves the order of unique +elements, and retains the first value of any duplicate set. +.PP +.Vb 1 +\& my $count = uniq @values +.Ve +.PP +In scalar context, returns the number of elements that would have been +returned as a list. +.PP +The \f(CW\*(C`undef\*(C'\fR value is treated by this function as distinct from the empty +string, and no warning will be produced. It is left as-is in the returned +list. Subsequent \f(CW\*(C`undef\*(C'\fR values are still considered identical to the first, +and will be removed. +.SS "uniqint" +.IX Subsection "uniqint" +.Vb 1 +\& my @subset = uniqint @values +.Ve +.PP +\&\fISince version 1.55.\fR +.PP +Filters a list of values to remove subsequent duplicates, as judged by an +integer numerical equality test. Preserves the order of unique elements, and +retains the first value of any duplicate set. Values in the returned list will +be coerced into integers. +.PP +.Vb 1 +\& my $count = uniqint @values +.Ve +.PP +In scalar context, returns the number of elements that would have been +returned as a list. +.PP +Note that \f(CW\*(C`undef\*(C'\fR is treated much as other numerical operations treat it; it +compares equal to zero but additionally produces a warning if such warnings +are enabled (\f(CW\*(C`use warnings \*(Aquninitialized\*(Aq;\*(C'\fR). In addition, an \f(CW\*(C`undef\*(C'\fR in +the returned list is coerced into a numerical zero, so that the entire list of +values returned by \f(CW\*(C`uniqint\*(C'\fR are well-behaved as integers. +.SS "uniqnum" +.IX Subsection "uniqnum" +.Vb 1 +\& my @subset = uniqnum @values +.Ve +.PP +\&\fISince version 1.44.\fR +.PP +Filters a list of values to remove subsequent duplicates, as judged by a +numerical equality test. Preserves the order of unique elements, and retains +the first value of any duplicate set. +.PP +.Vb 1 +\& my $count = uniqnum @values +.Ve +.PP +In scalar context, returns the number of elements that would have been +returned as a list. +.PP +Note that \f(CW\*(C`undef\*(C'\fR is treated much as other numerical operations treat it; it +compares equal to zero but additionally produces a warning if such warnings +are enabled (\f(CW\*(C`use warnings \*(Aquninitialized\*(Aq;\*(C'\fR). In addition, an \f(CW\*(C`undef\*(C'\fR in +the returned list is coerced into a numerical zero, so that the entire list of +values returned by \f(CW\*(C`uniqnum\*(C'\fR are well-behaved as numbers. +.PP +Note also that multiple \s-1IEEE\s0 \f(CW\*(C`NaN\*(C'\fR values are treated as duplicates of +each other, regardless of any differences in their payloads, and despite +the fact that \f(CW\*(C`0+\*(AqNaN\*(Aq == 0+\*(AqNaN\*(Aq\*(C'\fR yields false. +.SS "uniqstr" +.IX Subsection "uniqstr" +.Vb 1 +\& my @subset = uniqstr @values +.Ve +.PP +\&\fISince version 1.45.\fR +.PP +Filters a list of values to remove subsequent duplicates, as judged by a +string equality test. Preserves the order of unique elements, and retains the +first value of any duplicate set. +.PP +.Vb 1 +\& my $count = uniqstr @values +.Ve +.PP +In scalar context, returns the number of elements that would have been +returned as a list. +.PP +Note that \f(CW\*(C`undef\*(C'\fR is treated much as other string operations treat it; it +compares equal to the empty string but additionally produces a warning if such +warnings are enabled (\f(CW\*(C`use warnings \*(Aquninitialized\*(Aq;\*(C'\fR). In addition, an +\&\f(CW\*(C`undef\*(C'\fR in the returned list is coerced into an empty string, so that the +entire list of values returned by \f(CW\*(C`uniqstr\*(C'\fR are well-behaved as strings. +.SS "head" +.IX Subsection "head" +.Vb 1 +\& my @values = head $size, @list; +.Ve +.PP +\&\fISince version 1.50.\fR +.PP +Returns the first \f(CW$size\fR elements from \f(CW@list\fR. If \f(CW$size\fR is negative, returns +all but the last \f(CW$size\fR elements from \f(CW@list\fR. +.PP +.Vb 2 +\& @result = head 2, qw( foo bar baz ); +\& # foo, bar +\& +\& @result = head \-2, qw( foo bar baz ); +\& # foo +.Ve +.SS "tail" +.IX Subsection "tail" +.Vb 1 +\& my @values = tail $size, @list; +.Ve +.PP +\&\fISince version 1.50.\fR +.PP +Returns the last \f(CW$size\fR elements from \f(CW@list\fR. If \f(CW$size\fR is negative, returns +all but the first \f(CW$size\fR elements from \f(CW@list\fR. +.PP +.Vb 2 +\& @result = tail 2, qw( foo bar baz ); +\& # bar, baz +\& +\& @result = tail \-2, qw( foo bar baz ); +\& # baz +.Ve +.SH "CONFIGURATION VARIABLES" +.IX Header "CONFIGURATION VARIABLES" +.ie n .SS "$RAND" +.el .SS "\f(CW$RAND\fP" +.IX Subsection "$RAND" +.Vb 1 +\& local $List::Util::RAND = sub { ... }; +.Ve +.PP +\&\fISince version 1.54.\fR +.PP +This package variable is used by code which needs to generate random numbers +(such as the \*(L"shuffle\*(R" and \*(L"sample\*(R" functions). If set to a \s-1CODE\s0 reference +it provides an alternative to perl's builtin \f(CW\*(C`rand()\*(C'\fR function. When a new +random number is needed this function will be invoked with no arguments and is +expected to return a floating-point value, of which only the fractional part +will be used. +.SH "KNOWN BUGS" +.IX Header "KNOWN BUGS" +.SS "\s-1RT\s0 #95409" +.IX Subsection "RT #95409" + +.PP +If the block of code given to \*(L"pairmap\*(R" contains lexical variables that are +captured by a returned closure, and the closure is executed after the block +has been re-used for the next iteration, these lexicals will not see the +correct values. For example: +.PP +.Vb 4 +\& my @subs = pairmap { +\& my $var = "$a is $b"; +\& sub { print "$var\en" }; +\& } one => 1, two => 2, three => 3; +\& +\& $_\->() for @subs; +.Ve +.PP +Will incorrectly print +.PP +.Vb 3 +\& three is 3 +\& three is 3 +\& three is 3 +.Ve +.PP +This is due to the performance optimisation of using \f(CW\*(C`MULTICALL\*(C'\fR for the code +block, which means that fresh SVs do not get allocated for each call to the +block. Instead, the same \s-1SV\s0 is re-assigned for each iteration, and all the +closures will share the value seen on the final iteration. +.PP +To work around this bug, surround the code with a second set of braces. This +creates an inner block that defeats the \f(CW\*(C`MULTICALL\*(C'\fR logic, and does get fresh +SVs allocated each time: +.PP +.Vb 6 +\& my @subs = pairmap { +\& { +\& my $var = "$a is $b"; +\& sub { print "$var\en"; } +\& } +\& } one => 1, two => 2, three => 3; +.Ve +.PP +This bug only affects closures that are generated by the block but used +afterwards. Lexical variables that are only used during the lifetime of the +block's execution will take their individual values for each invocation, as +normal. +.SS "\fBuniqnum()\fP on oversized bignums" +.IX Subsection "uniqnum() on oversized bignums" +Due to the way that \f(CW\*(C`uniqnum()\*(C'\fR compares numbers, it cannot distinguish +differences between bignums (especially bigints) that are too large to fit in +the native platform types. For example, +.PP +.Vb 2 +\& my $x = Math::BigInt\->new( "1" x 100 ); +\& my $y = $x + 1; +\& +\& say for uniqnum( $x, $y ); +.Ve +.PP +Will print just the value of \f(CW$x\fR, believing that \f(CW$y\fR is a numerically\- +equivalent value. This bug does not affect \f(CW\*(C`uniqstr()\*(C'\fR, which will correctly +observe that the two values stringify to different strings. +.SH "SUGGESTED ADDITIONS" +.IX Header "SUGGESTED ADDITIONS" +The following are additions that have been requested, but I have been reluctant +to add due to them being very simple to implement in perl +.PP +.Vb 1 +\& # How many elements are true +\& +\& sub true { scalar grep { $_ } @_ } +\& +\& # How many elements are false +\& +\& sub false { scalar grep { !$_ } @_ } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Scalar::Util, List::MoreUtils +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-2007 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +Recent additions and current maintenance by +Paul Evans, . diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ACookbook.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ACookbook.3 new file mode 100644 index 0000000000000000000000000000000000000000..24dbb3b0efcbcea1c6d71897fdd9aed45616d2c7 --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ACookbook.3 @@ -0,0 +1,295 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext::Cookbook 3" +.TH Locale::Maketext::Cookbook 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext::Cookbook \- recipes for using Locale::Maketext +.SH "INTRODUCTION" +.IX Header "INTRODUCTION" +This is a work in progress. Not much progress by now :\-) +.SH "ONESIDED LEXICONS" +.IX Header "ONESIDED LEXICONS" +\&\fIAdapted from a suggestion by Dan Muey\fR +.PP +It may be common (for example at your main lexicon) that +the hash keys and values coincide. Like that +.PP +.Vb 2 +\& q{Hello, tell me your name} +\& => q{Hello, tell me your name} +.Ve +.PP +It would be nice to just write: +.PP +.Vb 1 +\& q{Hello, tell me your name} => \*(Aq\*(Aq +.Ve +.PP +and have this magically inflated to the first form. +Among the advantages of such representation, that would +lead to +smaller files, less prone to mistyping or mispasting, +and handy to someone translating it which can simply +copy the main lexicon and enter the translation +instead of having to remove the value first. +.PP +That can be achieved by overriding \f(CW\*(C`init\*(C'\fR +in your class and working on the main lexicon +with code like that: +.PP +.Vb 2 +\& package My::I18N; +\& ... +\& +\& sub init { +\& my $lh = shift; # a newborn handle +\& $lh\->SUPER::init(); +\& inflate_lexicon(\e%My::I18N::en::Lexicon); +\& return; +\& } +\& +\& sub inflate_lexicon { +\& my $lex = shift; +\& while (my ($k, $v) = each %$lex) { +\& $v = $k if !defined $v || $v eq \*(Aq\*(Aq; +\& } +\& } +.Ve +.PP +Here we are assuming \f(CW\*(C`My::I18N::en\*(C'\fR to own the +main lexicon. +.PP +There are some downsides here: the size economy +will not stand at runtime after this \f(CW\*(C`init()\*(C'\fR +runs. But it should not be that critical, since +if you don't have space for that, you won't have +space for any other language besides the main one +as well. You could do that too with ties, +expanding the value at lookup time which +should be more time expensive as an option. +.SH "DECIMAL PLACES IN NUMBER FORMATTING" +.IX Header "DECIMAL PLACES IN NUMBER FORMATTING" +\&\fIAfter \s-1CPAN RT\s0 #36136 ()\fR +.PP +The documentation of Locale::Maketext advises that +the standard bracket method \f(CW\*(C`numf\*(C'\fR is limited and that +you must override that for better results. It even +suggests the use of Number::Format. +.PP +One such defect of standard \f(CW\*(C`numf\*(C'\fR is to not be +able to use a certain decimal precision. +For example, +.PP +.Vb 1 +\& $lh\->maketext(\*(Aqpi is [numf,_1]\*(Aq, 355/113); +.Ve +.PP +outputs +.PP +.Vb 1 +\& pi is 3.14159292035398 +.Ve +.PP +Since pi X 355/116 is only accurate +to 6 decimal places, you would want to say: +.PP +.Vb 1 +\& $lh\->maketext(\*(Aqpi is [numf,_1,6]\*(Aq, 355/113); +.Ve +.PP +and get \*(L"pi is 3.141592\*(R". +.PP +One solution for that could use \f(CW\*(C`Number::Format\*(C'\fR +like that: +.PP +.Vb 1 +\& package Wuu; +\& +\& use base qw(Locale::Maketext); +\& +\& use Number::Format; +\& +\& # can be overridden according to language conventions +\& sub _numf_params { +\& return ( +\& \-thousands_sep => \*(Aq.\*(Aq, +\& \-decimal_point => \*(Aq,\*(Aq, +\& \-decimal_digits => 2, +\& ); +\& } +\& +\& # builds a Number::Format +\& sub _numf_formatter { +\& my ($lh, $scale) = @_; +\& my @params = $lh\->_numf_params; +\& if ($scale) { # use explicit scale rather than default +\& push @params, (\-decimal_digits => $scale); +\& } +\& return Number::Format\->new(@params); +\& } +\& +\& sub numf { +\& my ($lh, $n, $scale) = @_; +\& # get the (cached) formatter +\& my $nf = $lh\->{_\|_nf}{$scale} ||= $lh\->_numf_formatter($scale); +\& # format the number itself +\& return $nf\->format_number($n); +\& } +\& +\& package Wuu::pt; +\& +\& use base qw(Wuu); +.Ve +.PP +and then +.PP +.Vb 2 +\& my $lh = Wuu\->get_handle(\*(Aqpt\*(Aq); +\& $lh\->maketext(\*(AqA [numf,_1,3] km de dista\*^ncia\*(Aq, 1550.2222); +.Ve +.PP +would return \*(L"A 1.550,222 km de dista\*^ncia\*(R". +.PP +Notice that the standard utility methods of +\&\f(CW\*(C`Locale::Maketext\*(C'\fR are irremediably limited +because they could not aim to do everything +that could be expected from them in different languages, +cultures and applications. So extending \f(CW\*(C`numf\*(C'\fR, +\&\f(CW\*(C`quant\*(C'\fR, and \f(CW\*(C`sprintf\*(C'\fR is natural as soon +as your needs exceed what the standard ones do. diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGuts.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGuts.3 new file mode 100644 index 0000000000000000000000000000000000000000..c929b77de41a1e8ab6ccae628baa2eec8a3eff87 --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGuts.3 @@ -0,0 +1,153 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext::Guts 3" +.TH Locale::Maketext::Guts 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext::Guts \- Deprecated module to load Locale::Maketext utf8 code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Do this instead please +\& use Locale::Maketext +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Previously Local::Maketext::GutsLoader performed some magic to load +Locale::Maketext when utf8 was unavailable. The subs this module provided +were merged back into Locale::Maketext diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGutsLoader.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGutsLoader.3 new file mode 100644 index 0000000000000000000000000000000000000000..23d619be2540e47340b41e13d9ae22db10111efb --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3AGutsLoader.3 @@ -0,0 +1,153 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext::GutsLoader 3" +.TH Locale::Maketext::GutsLoader 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext::GutsLoader \- Deprecated module to load Locale::Maketext utf8 code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Do this instead please +\& use Locale::Maketext +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Previously Locale::Maketext::Guts performed some magic to load +Locale::Maketext when utf8 was unavailable. The subs this module provided +were merged back into Locale::Maketext. diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ASimple.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ASimple.3 new file mode 100644 index 0000000000000000000000000000000000000000..ce4dba768f1f90afd6141331de3ae0a0f36272ff --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ASimple.3 @@ -0,0 +1,271 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext::Simple 3" +.TH Locale::Maketext::Simple 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext::Simple \- Simple interface to Locale::Maketext::Lexicon +.SH "VERSION" +.IX Header "VERSION" +This document describes version 0.18 of Locale::Maketext::Simple, +released Septermber 8, 2006. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Minimal setup (looks for \fIauto/Foo/*.po\fR and \fIauto/Foo/*.mo\fR): +.PP +.Vb 6 +\& package Foo; +\& use Locale::Maketext::Simple; # exports \*(Aqloc\*(Aq +\& loc_lang(\*(Aqfr\*(Aq); # set language to French +\& sub hello { +\& print loc("Hello, [_1]!", "World"); +\& } +.Ve +.PP +More sophisticated example: +.PP +.Vb 10 +\& package Foo::Bar; +\& use Locale::Maketext::Simple ( +\& Class => \*(AqFoo\*(Aq, # search in auto/Foo/ +\& Style => \*(Aqgettext\*(Aq, # %1 instead of [_1] +\& Export => \*(Aqmaketext\*(Aq, # maketext() instead of loc() +\& Subclass => \*(AqL10N\*(Aq, # Foo::L10N instead of Foo::I18N +\& Decode => 1, # decode entries to unicode\-strings +\& Encoding => \*(Aqlocale\*(Aq, # but encode lexicons in current locale +\& # (needs Locale::Maketext::Lexicon 0.36) +\& ); +\& sub japh { +\& print maketext("Just another %1 hacker", "Perl"); +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is a simple wrapper around \fBLocale::Maketext::Lexicon\fR, +designed to alleviate the need of creating \fILanguage Classes\fR for +module authors. +.PP +The language used is chosen from the loc_lang call. If a lookup is not +possible, the i\-default language will be used. If the lookup is not in the +i\-default language, then the key will be returned. +.PP +If \fBLocale::Maketext::Lexicon\fR is not present, it implements a +minimal localization function by simply interpolating \f(CW\*(C`[_1]\*(C'\fR with +the first argument, \f(CW\*(C`[_2]\*(C'\fR with the second, etc. Interpolated +function like \f(CW\*(C`[quant,_1]\*(C'\fR are treated as \f(CW\*(C`[_1]\*(C'\fR, with the sole +exception of \f(CW\*(C`[tense,_1,X]\*(C'\fR, which will append \f(CW\*(C`ing\*(C'\fR to \f(CW\*(C`_1\*(C'\fR when +X is \f(CW\*(C`present\*(C'\fR, or appending \f(CW\*(C`ed\*(C'\fR to <_1> otherwise. +.SH "OPTIONS" +.IX Header "OPTIONS" +All options are passed either via the \f(CW\*(C`use\*(C'\fR statement, or via an +explicit \f(CW\*(C`import\*(C'\fR. +.SS "Class" +.IX Subsection "Class" +By default, \fBLocale::Maketext::Simple\fR draws its source from the +calling package's \fIauto/\fR directory; you can override this behaviour +by explicitly specifying another package as \f(CW\*(C`Class\*(C'\fR. +.SS "Path" +.IX Subsection "Path" +If your \s-1PO\s0 and \s-1MO\s0 files are under a path elsewhere than \f(CW\*(C`auto/\*(C'\fR, +you may specify it using the \f(CW\*(C`Path\*(C'\fR option. +.SS "Style" +.IX Subsection "Style" +By default, this module uses the \f(CW\*(C`maketext\*(C'\fR style of \f(CW\*(C`[_1]\*(C'\fR and +\&\f(CW\*(C`[quant,_1]\*(C'\fR for interpolation. Alternatively, you can specify the +\&\f(CW\*(C`gettext\*(C'\fR style, which uses \f(CW%1\fR and \f(CW\*(C`%quant(%1)\*(C'\fR for interpolation. +.PP +This option is case-insensitive. +.SS "Export" +.IX Subsection "Export" +By default, this module exports a single function, \f(CW\*(C`loc\*(C'\fR, into its +caller's namespace. You can set it to another name, or set it to +an empty string to disable exporting. +.SS "Subclass" +.IX Subsection "Subclass" +By default, this module creates an \f(CW\*(C`::I18N\*(C'\fR subclass under the +caller's package (or the package specified by \f(CW\*(C`Class\*(C'\fR), and stores +lexicon data in its subclasses. You can assign a name other than +\&\f(CW\*(C`I18N\*(C'\fR via this option. +.SS "Decode" +.IX Subsection "Decode" +If set to a true value, source entries will be converted into +utf8\-strings (available in Perl 5.6.1 or later). This feature +needs the \fBEncode\fR or \fBEncode::compat\fR module. +.SS "Encoding" +.IX Subsection "Encoding" +Specifies an encoding to store lexicon entries, instead of +utf8\-strings. If set to \f(CW\*(C`locale\*(C'\fR, the encoding from the current +locale setting is used. Implies a true value for \f(CW\*(C`Decode\*(C'\fR. +.SH "ACKNOWLEDGMENTS" +.IX Header "ACKNOWLEDGMENTS" +Thanks to Jos I. Boumans for suggesting this module to be written. +.PP +Thanks to Chia-Liang Kao for suggesting \f(CW\*(C`Path\*(C'\fR and \f(CW\*(C`loc_lang\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Locale::Maketext, Locale::Maketext::Lexicon +.SH "AUTHORS" +.IX Header "AUTHORS" +Audrey Tang +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2003, 2004, 2005, 2006 by Audrey Tang . +.PP +This software is released under the \s-1MIT\s0 license cited below. Additionally, +when this software is distributed with \fBPerl Kit, Version 5\fR, you may also +redistribute it and/or modify it under the same terms as Perl itself. +.ie n .SS "The ""\s-1MIT""\s0 License" +.el .SS "The ``\s-1MIT''\s0 License" +.IX Subsection "The MIT License" +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the \*(L"Software\*(R"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ATPJ13.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ATPJ13.3 new file mode 100644 index 0000000000000000000000000000000000000000..cc0cb51dcf5dfd2ec57dbecf105b36b01e657b20 --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext%3A%3ATPJ13.3 @@ -0,0 +1,933 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext::TPJ13 3" +.TH Locale::Maketext::TPJ13 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext::TPJ13 \-\- article about software localization +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # This an article, not a module. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The following article by Sean M. Burke and Jordan Lachler +first appeared in \fIThe Perl Journal\fR #13 +and is copyright 1999 The Perl Journal. It appears +courtesy of Jon Orwant and The Perl Journal. This document may be +distributed under the same terms as Perl itself. +.SH "Localization and Perl: gettext breaks, Maketext fixes" +.IX Header "Localization and Perl: gettext breaks, Maketext fixes" +by Sean M. Burke and Jordan Lachler +.PP +This article points out cases where gettext (a common system for +localizing software interfaces \*(-- i.e., making them work in the user's +language of choice) fails because of basic differences between human +languages. This article then describes Maketext, a new system capable +of correctly treating these differences. +.SS "A Localization Horror Story: It Could Happen To You" +.IX Subsection "A Localization Horror Story: It Could Happen To You" +.RS 4 +\&\*(L"There are a number of languages spoken by human beings in this +world.\*(R" +.Sp +\&\-\- Harald Tveit Alvestrand, in \s-1RFC 1766,\s0 \*(L"Tags for the +Identification of Languages\*(R" +.RE +.PP +Imagine that your task for the day is to localize a piece of software +\&\*(-- and luckily for you, the only output the program emits is two +messages, like this: +.PP +.Vb 1 +\& I scanned 12 directories. +\& +\& Your query matched 10 files in 4 directories. +.Ve +.PP +So how hard could that be? You look at the code that +produces the first item, and it reads: +.PP +.Vb 2 +\& printf("I scanned %g directories.", +\& $directory_count); +.Ve +.PP +You think about that, and realize that it doesn't even work right for +English, as it can produce this output: +.PP +.Vb 1 +\& I scanned 1 directories. +.Ve +.PP +So you rewrite it to read: +.PP +.Vb 5 +\& printf("I scanned %g %s.", +\& $directory_count, +\& $directory_count == 1 ? +\& "directory" : "directories", +\& ); +.Ve +.PP +\&...which does the Right Thing. (In case you don't recall, \*(L"%g\*(R" is for +locale-specific number interpolation, and \*(L"%s\*(R" is for string +interpolation.) +.PP +But you still have to localize it for all the languages you're +producing this software for, so you pull Locale::gettext off of \s-1CPAN\s0 +so you can access the \f(CW\*(C`gettext\*(C'\fR C functions you've heard are standard +for localization tasks. +.PP +And you write: +.PP +.Vb 5 +\& printf(gettext("I scanned %g %s."), +\& $dir_scan_count, +\& $dir_scan_count == 1 ? +\& gettext("directory") : gettext("directories"), +\& ); +.Ve +.PP +But you then read in the gettext manual (Drepper, Miller, and Pinard 1995) +that this is not a good idea, since how a single word like \*(L"directory\*(R" +or \*(L"directories\*(R" is translated may depend on context \*(-- and this is +true, since in a case language like German or Russian, you'd may need +these words with a different case ending in the first instance (where the +word is the object of a verb) than in the second instance, which you haven't even +gotten to yet (where the word is the object of a preposition, \*(L"in \f(CW%g\fR +directories\*(R") \*(-- assuming these keep the same syntax when translated +into those languages. +.PP +So, on the advice of the gettext manual, you rewrite: +.PP +.Vb 4 +\& printf( $dir_scan_count == 1 ? +\& gettext("I scanned %g directory.") : +\& gettext("I scanned %g directories."), +\& $dir_scan_count ); +.Ve +.PP +So, you email your various translators (the boss decides that the +languages du jour are Chinese, Arabic, Russian, and Italian, so you +have one translator for each), asking for translations for \*(L"I scanned +\&\f(CW%g\fR directory.\*(R" and \*(L"I scanned \f(CW%g\fR directories.\*(R". When they reply, +you'll put that in the lexicons for gettext to use when it localizes +your software, so that when the user is running under the \*(L"zh\*(R" +(Chinese) locale, gettext(\*(L"I scanned \f(CW%g\fR directory.\*(R") will return the +appropriate Chinese text, with a \*(L"%g\*(R" in there where printf can then +interpolate \f(CW$dir_scan\fR. +.PP +Your Chinese translator emails right back \*(-- he says both of these +phrases translate to the same thing in Chinese, because, in linguistic +jargon, Chinese \*(L"doesn't have number as a grammatical category\*(R" \*(-- +whereas English does. That is, English has grammatical rules that +refer to \*(L"number\*(R", i.e., whether something is grammatically singular +or plural; and one of these rules is the one that forces nouns to take +a plural suffix (generally \*(L"s\*(R") when in a plural context, as they are when +they follow a number other than \*(L"one\*(R" (including, oddly enough, \*(L"zero\*(R"). +Chinese has no such rules, and so has just the one phrase where English +has two. But, no problem, you can have this one Chinese phrase appear +as the translation for the two English phrases in the \*(L"zh\*(R" gettext +lexicon for your program. +.PP +Emboldened by this, you dive into the second phrase that your software +needs to output: \*(L"Your query matched 10 files in 4 directories.\*(R". You notice +that if you want to treat phrases as indivisible, as the gettext +manual wisely advises, you need four cases now, instead of two, to +cover the permutations of singular and plural on the two items, +\&\f(CW$dir_count\fR and \f(CW$file_count\fR. So you try this: +.PP +.Vb 9 +\& printf( $file_count == 1 ? +\& ( $directory_count == 1 ? +\& gettext("Your query matched %g file in %g directory.") : +\& gettext("Your query matched %g file in %g directories.") ) : +\& ( $directory_count == 1 ? +\& gettext("Your query matched %g files in %g directory.") : +\& gettext("Your query matched %g files in %g directories.") ), +\& $file_count, $directory_count, +\& ); +.Ve +.PP +(The case of \*(L"1 file in 2 [or more] directories\*(R" could, I suppose, +occur in the case of symlinking or something of the sort.) +.PP +It occurs to you that this is not the prettiest code you've ever +written, but this seems the way to go. You mail off to the +translators asking for translations for these four cases. The +Chinese guy replies with the one phrase that these all translate to in +Chinese, and that phrase has two \*(L"%g\*(R"s in it, as it should \*(-- but +there's a problem. He translates it word-for-word back: \*(L"In \f(CW%g\fR +directories contains \f(CW%g\fR files match your query.\*(R" The \f(CW%g\fR +slots are in an order reverse to what they are in English. You wonder +how you'll get gettext to handle that. +.PP +But you put it aside for the moment, and optimistically hope that the +other translators won't have this problem, and that their languages +will be better behaved \*(-- i.e., that they will be just like English. +.PP +But the Arabic translator is the next to write back. First off, your +code for \*(L"I scanned \f(CW%g\fR directory.\*(R" or \*(L"I scanned \f(CW%g\fR directories.\*(R" +assumes there's only singular or plural. But, to use linguistic +jargon again, Arabic has grammatical number, like English (but unlike +Chinese), but it's a three-term category: singular, dual, and plural. +In other words, the way you say \*(L"directory\*(R" depends on whether there's +one directory, or \fItwo\fR of them, or \fImore than two\fR of them. Your +test of \f(CW\*(C`($directory == 1)\*(C'\fR no longer does the job. And it means +that where English's grammatical category of number necessitates +only the two permutations of the first sentence based on \*(L"directory +[singular]\*(R" and \*(L"directories [plural]\*(R", Arabic has three \*(-- and, +worse, in the second sentence (\*(L"Your query matched \f(CW%g\fR file in \f(CW%g\fR +directory.\*(R"), where English has four, Arabic has nine. You sense +an unwelcome, exponential trend taking shape. +.PP +Your Italian translator emails you back and says that \*(L"I searched 0 +directories\*(R" (a possible English output of your program) is stilted, +and if you think that's fine English, that's your problem, but that +\&\fIjust will not do\fR in the language of Dante. He insists that where +\&\f(CW$directory_count\fR is 0, your program should produce the Italian text +for "I \fIdidn't\fR scan \fIany\fR directories.\*(L". And ditto for \*(R"I didn't +match any files in any directories\*(L", although he says the last part +about \*(R"in any directories" should probably just be left off. +.PP +You wonder how you'll get gettext to handle this; to accommodate the +ways Arabic, Chinese, and Italian deal with numbers in just these few +very simple phrases, you need to write code that will ask gettext for +different queries depending on whether the numerical values in +question are 1, 2, more than 2, or in some cases 0, and you still haven't +figured out the problem with the different word order in Chinese. +.PP +Then your Russian translator calls on the phone, to \fIpersonally\fR tell +you the bad news about how really unpleasant your life is about to +become: +.PP +Russian, like German or Latin, is an inflectional language; that is, nouns +and adjectives have to take endings that depend on their case +(i.e., nominative, accusative, genitive, etc...) \*(-- which is roughly a matter of +what role they have in syntax of the sentence \*(-- +as well as on the grammatical gender (i.e., masculine, feminine, neuter) +and number (i.e., singular or plural) of the noun, as well as on the +declension class of the noun. But unlike with most other inflected languages, +putting a number-phrase (like \*(L"ten\*(R" or \*(L"forty-three\*(R", or their Arabic +numeral equivalents) in front of noun in Russian can change the case and +number that noun is, and therefore the endings you have to put on it. +.PP +He elaborates: In \*(L"I scanned \f(CW%g\fR directories\*(R", you'd \fIexpect\fR +\&\*(L"directories\*(R" to be in the accusative case (since it is the direct +object in the sentence) and the plural number, +except where \f(CW$directory_count\fR is 1, then you'd expect the singular, of +course. Just like Latin or German. \fIBut!\fR Where \f(CW$directory_count\fR % +10 is 1 (\*(L"%\*(R" for modulo, remember), assuming \f(CW$directory\fR count is an +integer, and except where \f(CW$directory_count\fR % 100 is 11, \*(L"directories\*(R" +is forced to become grammatically singular, which means it gets the +ending for the accusative singular... You begin to visualize the code +it'd take to test for the problem so far, \fIand still work for Chinese +and Arabic and Italian\fR, and how many gettext items that'd take, but +he keeps going... But where \f(CW$directory_count\fR % 10 is 2, 3, or 4 +(except where \f(CW$directory_count\fR % 100 is 12, 13, or 14), the word for +\&\*(L"directories\*(R" is forced to be genitive singular \*(-- which means another +ending... The room begins to spin around you, slowly at first... But +with \fIall other\fR integer values, since \*(L"directory\*(R" is an inanimate +noun, when preceded by a number and in the nominative or accusative +cases (as it is here, just your luck!), it does stay plural, but it is +forced into the genitive case \*(-- yet another ending... And +you never hear him get to the part about how you're going to run into +similar (but maybe subtly different) problems with other Slavic +languages like Polish, because the floor comes up to meet you, and you +fade into unconsciousness. +.PP +The above cautionary tale relates how an attempt at localization can +lead from programmer consternation, to program obfuscation, to a need +for sedation. But careful evaluation shows that your choice of tools +merely needed further consideration. +.SS "The Linguistic View" +.IX Subsection "The Linguistic View" +.RS 4 +\&\*(L"It is more complicated than you think.\*(R" +.Sp +\&\-\- The Eighth Networking Truth, from \s-1RFC 1925\s0 +.RE +.PP +The field of Linguistics has expended a great deal of effort over the +past century trying to find grammatical patterns which hold across +languages; it's been a constant process +of people making generalizations that should apply to all languages, +only to find out that, all too often, these generalizations fail \*(-- +sometimes failing for just a few languages, sometimes whole classes of +languages, and sometimes nearly every language in the world except +English. Broad statistical trends are evident in what the \*(L"average +language\*(R" is like as far as what its rules can look like, must look +like, and cannot look like. But the \*(L"average language\*(R" is just as +unreal a concept as the \*(L"average person\*(R" \*(-- it runs up against the +fact no language (or person) is, in fact, average. The wisdom of past +experience leads us to believe that any given language can do whatever +it wants, in any order, with appeal to any kind of grammatical +categories wants \*(-- case, number, tense, real or metaphoric +characteristics of the things that words refer to, arbitrary or +predictable classifications of words based on what endings or prefixes +they can take, degree or means of certainty about the truth of +statements expressed, and so on, ad infinitum. +.PP +Mercifully, most localization tasks are a matter of finding ways to +translate whole phrases, generally sentences, where the context is +relatively set, and where the only variation in content is \fIusually\fR +in a number being expressed \*(-- as in the example sentences above. +Translating specific, fully-formed sentences is, in practice, fairly +foolproof \*(-- which is good, because that's what's in the phrasebooks +that so many tourists rely on. Now, a given phrase (whether in a +phrasebook or in a gettext lexicon) in one language \fImight\fR have a +greater or lesser applicability than that phrase's translation into +another language \*(-- for example, strictly speaking, in Arabic, the +\&\*(L"your\*(R" in \*(L"Your query matched...\*(R" would take a different form +depending on whether the user is male or female; so the Arabic +translation \*(L"your[feminine] query\*(R" is applicable in fewer cases than +the corresponding English phrase, which doesn't distinguish the user's +gender. (In practice, it's not feasible to have a program know the +user's gender, so the masculine \*(L"you\*(R" in Arabic is usually used, by +default.) +.PP +But in general, such surprises are rare when entire sentences are +being translated, especially when the functional context is restricted +to that of a computer interacting with a user either to convey a fact +or to prompt for a piece of information. So, for purposes of +localization, translation by phrase (generally by sentence) is both the +simplest and the least problematic. +.SS "Breaking gettext" +.IX Subsection "Breaking gettext" +.RS 4 +\&\*(L"It Has To Work.\*(R" +.Sp +\&\-\- First Networking Truth, \s-1RFC 1925\s0 +.RE +.PP +Consider that sentences in a tourist phrasebook are of two types: ones +like \*(L"How do I get to the marketplace?\*(R" that don't have any blanks to +fill in, and ones like \*(L"How much do these _\|_\|_ cost?\*(R", where there's +one or more blanks to fill in (and these are usually linked to a +list of words that you can put in that blank: \*(L"fish\*(R", \*(L"potatoes\*(R", +\&\*(L"tomatoes\*(R", etc.). The ones with no blanks are no problem, but the +fill-in-the-blank ones may not be really straightforward. If it's a +Swahili phrasebook, for example, the authors probably didn't bother to +tell you the complicated ways that the verb \*(L"cost\*(R" changes its +inflectional prefix depending on the noun you're putting in the blank. +The trader in the marketplace will still understand what you're saying if +you say \*(L"how much do these potatoes cost?\*(R" with the wrong +inflectional prefix on \*(L"cost\*(R". After all, \fIyou\fR can't speak proper Swahili, +\&\fIyou're\fR just a tourist. But while tourists can be stupid, computers +are supposed to be smart; the computer should be able to fill in the +blank, and still have the results be grammatical. +.PP +In other words, a phrasebook entry takes some values as parameters +(the things that you fill in the blank or blanks), and provides a value +based on these parameters, where the way you get that final value from +the given values can, properly speaking, involve an arbitrarily +complex series of operations. (In the case of Chinese, it'd be not at +all complex, at least in cases like the examples at the beginning of +this article; whereas in the case of Russian it'd be a rather complex +series of operations. And in some languages, the +complexity could be spread around differently: while the act of +putting a number-expression in front of a noun phrase might not be +complex by itself, it may change how you have to, for example, inflect +a verb elsewhere in the sentence. This is what in syntax is called +\&\*(L"long-distance dependencies\*(R".) +.PP +This talk of parameters and arbitrary complexity is just another way +to say that an entry in a phrasebook is what in a programming language +would be called a \*(L"function\*(R". Just so you don't miss it, this is the +crux of this article: \fIA phrase is a function; a phrasebook is a +bunch of functions.\fR +.PP +The reason that using gettext runs into walls (as in the above +second-person horror story) is that you're trying to use a string (or +worse, a choice among a bunch of strings) to do what you really need a +function for \*(-- which is futile. Preforming (s)printf interpolation +on the strings which you get back from gettext does allow you to do \fIsome\fR +common things passably well... sometimes... sort of; but, to paraphrase +what some people say about \f(CW\*(C`csh\*(C'\fR script programming, \*(L"it fools you +into thinking you can use it for real things, but you can't, and you +don't discover this until you've already spent too much time trying, +and by then it's too late.\*(R" +.SS "Replacing gettext" +.IX Subsection "Replacing gettext" +So, what needs to replace gettext is a system that supports lexicons +of functions instead of lexicons of strings. An entry in a lexicon +from such a system should \fInot\fR look like this: +.PP +.Vb 1 +\& "J\*(Aqai trouv\exE9 %g fichiers dans %g r\exE9pertoires" +.Ve +.PP +[\exE9 is e\-acute in Latin\-1. Some pod renderers would +scream if I used the actual character here. \*(-- \s-1SB\s0] +.PP +but instead like this, bearing in mind that this is just a first stab: +.PP +.Vb 8 +\& sub I_found_X1_files_in_X2_directories { +\& my( $files, $dirs ) = @_[0,1]; +\& $files = sprintf("%g %s", $files, +\& $files == 1 ? \*(Aqfichier\*(Aq : \*(Aqfichiers\*(Aq); +\& $dirs = sprintf("%g %s", $dirs, +\& $dirs == 1 ? "r\exE9pertoire" : "r\exE9pertoires"); +\& return "J\*(Aqai trouv\exE9 $files dans $dirs."; +\& } +.Ve +.PP +Now, there's no particularly obvious way to store anything but strings +in a gettext lexicon; so it looks like we just have to start over and +make something better, from scratch. I call my shot at a +gettext-replacement system \*(L"Maketext\*(R", or, in \s-1CPAN\s0 terms, +Locale::Maketext. +.PP +When designing Maketext, I chose to plan its main features in terms of +\&\*(L"buzzword compliance\*(R". And here are the buzzwords: +.SS "Buzzwords: Abstraction and Encapsulation" +.IX Subsection "Buzzwords: Abstraction and Encapsulation" +The complexity of the language you're trying to output a phrase in is +entirely abstracted inside (and encapsulated within) the Maketext module +for that interface. When you call: +.PP +.Vb 2 +\& print $lang\->maketext("You have [quant,_1,piece] of new mail.", +\& scalar(@messages)); +.Ve +.PP +you don't know (and in fact can't easily find out) whether this will +involve lots of figuring, as in Russian (if \f(CW$lang\fR is a handle to the +Russian module), or relatively little, as in Chinese. That kind of +abstraction and encapsulation may encourage other pleasant buzzwords +like modularization and stratification, depending on what design +decisions you make. +.SS "Buzzword: Isomorphism" +.IX Subsection "Buzzword: Isomorphism" +\&\*(L"Isomorphism\*(R" means \*(L"having the same structure or form\*(R"; in discussions +of program design, the word takes on the special, specific meaning that +your implementation of a solution to a problem \fIhas the same +structure\fR as, say, an informal verbal description of the solution, or +maybe of the problem itself. Isomorphism is, all things considered, +a good thing \*(-- it's what problem-solving (and solution-implementing) +should look like. +.PP +What's wrong the with gettext-using code like this... +.PP +.Vb 9 +\& printf( $file_count == 1 ? +\& ( $directory_count == 1 ? +\& "Your query matched %g file in %g directory." : +\& "Your query matched %g file in %g directories." ) : +\& ( $directory_count == 1 ? +\& "Your query matched %g files in %g directory." : +\& "Your query matched %g files in %g directories." ), +\& $file_count, $directory_count, +\& ); +.Ve +.PP +is first off that it's not well abstracted \*(-- these ways of testing +for grammatical number (as in the expressions like \f(CW\*(C`foo == 1 ? +singular_form : plural_form\*(C'\fR) should be abstracted to each language +module, since how you get grammatical number is language-specific. +.PP +But second off, it's not isomorphic \*(-- the \*(L"solution\*(R" (i.e., the +phrasebook entries) for Chinese maps from these four English phrases to +the one Chinese phrase that fits for all of them. In other words, the +informal solution would be \*(L"The way to say what you want in Chinese is +with the one phrase 'For your question, in Y directories you would +find X files'\*(R" \*(-- and so the implemented solution should be, +isomorphically, just a straightforward way to spit out that one +phrase, with numerals properly interpolated. It shouldn't have to map +from the complexity of other languages to the simplicity of this one. +.SS "Buzzword: Inheritance" +.IX Subsection "Buzzword: Inheritance" +There's a great deal of reuse possible for sharing of phrases between +modules for related dialects, or for sharing of auxiliary functions +between related languages. (By \*(L"auxiliary functions\*(R", I mean +functions that don't produce phrase-text, but which, say, return an +answer to \*(L"does this number require a plural noun after it?\*(R". Such +auxiliary functions would be used in the internal logic of functions +that actually do produce phrase-text.) +.PP +In the case of sharing phrases, consider that you have an interface +already localized for American English (probably by having been +written with that as the native locale, but that's incidental). +Localizing it for \s-1UK\s0 English should, in practical terms, be just a +matter of running it past a British person with the instructions to +indicate what few phrases would benefit from a change in spelling or +possibly minor rewording. In that case, you should be able to put in +the \s-1UK\s0 English localization module \fIonly\fR those phrases that are +UK-specific, and for all the rest, \fIinherit\fR from the American +English module. (And I expect this same situation would apply with +Brazilian and Continental Portugese, possibly with some \fIvery\fR +closely related languages like Czech and Slovak, and possibly with the +slightly different \*(L"versions\*(R" of written Mandarin Chinese, as I hear exist in +Taiwan and mainland China.) +.PP +As to sharing of auxiliary functions, consider the problem of Russian +numbers from the beginning of this article; obviously, you'd want to +write only once the hairy code that, given a numeric value, would +return some specification of which case and number a given quantified +noun should use. But suppose that you discover, while localizing an +interface for, say, Ukranian (a Slavic language related to Russian, +spoken by several million people, many of whom would be relieved to +find that your Web site's or software's interface is available in +their language), that the rules in Ukranian are the same as in Russian +for quantification, and probably for many other grammatical functions. +While there may well be no phrases in common between Russian and +Ukranian, you could still choose to have the Ukranian module inherit +from the Russian module, just for the sake of inheriting all the +various grammatical methods. Or, probably better organizationally, +you could move those functions to a module called \f(CW\*(C`_E_Slavic\*(C'\fR or +something, which Russian and Ukrainian could inherit useful functions +from, but which would (presumably) provide no lexicon. +.SS "Buzzword: Concision" +.IX Subsection "Buzzword: Concision" +Okay, concision isn't a buzzword. But it should be, so I decree that +as a new buzzword, \*(L"concision\*(R" means that simple common things should +be expressible in very few lines (or maybe even just a few characters) +of code \*(-- call it a special case of \*(L"making simple things easy and +hard things possible\*(R", and see also the role it played in the +MIDI::Simple language, discussed elsewhere in this issue [TPJ#13]. +.PP +Consider our first stab at an entry in our \*(L"phrasebook of functions\*(R": +.PP +.Vb 8 +\& sub I_found_X1_files_in_X2_directories { +\& my( $files, $dirs ) = @_[0,1]; +\& $files = sprintf("%g %s", $files, +\& $files == 1 ? \*(Aqfichier\*(Aq : \*(Aqfichiers\*(Aq); +\& $dirs = sprintf("%g %s", $dirs, +\& $dirs == 1 ? "r\exE9pertoire" : "r\exE9pertoires"); +\& return "J\*(Aqai trouv\exE9 $files dans $dirs."; +\& } +.Ve +.PP +You may sense that a lexicon (to use a non-committal catch-all term for a +collection of things you know how to say, regardless of whether they're +phrases or words) consisting of functions \fIexpressed\fR as above would +make for rather long-winded and repetitive code \*(-- even if you wisely +rewrote this to have quantification (as we call adding a number +expression to a noun phrase) be a function called like: +.PP +.Vb 6 +\& sub I_found_X1_files_in_X2_directories { +\& my( $files, $dirs ) = @_[0,1]; +\& $files = quant($files, "fichier"); +\& $dirs = quant($dirs, "r\exE9pertoire"); +\& return "J\*(Aqai trouv\exE9 $files dans $dirs."; +\& } +.Ve +.PP +And you may also sense that you do not want to bother your translators +with having to write Perl code \*(-- you'd much rather that they spend +their \fIvery costly time\fR on just translation. And this is to say +nothing of the near impossibility of finding a commercial translator +who would know even simple Perl. +.PP +In a first-hack implementation of Maketext, each language-module's +lexicon looked like this: +.PP +.Vb 10 +\& %Lexicon = ( +\& "I found %g files in %g directories" +\& => sub { +\& my( $files, $dirs ) = @_[0,1]; +\& $files = quant($files, "fichier"); +\& $dirs = quant($dirs, "r\exE9pertoire"); +\& return "J\*(Aqai trouv\exE9 $files dans $dirs."; +\& }, +\& ... and so on with other phrase => sub mappings ... +\& ); +.Ve +.PP +but I immediately went looking for some more concise way to basically +denote the same phrase-function \*(-- a way that would also serve to +concisely denote \fImost\fR phrase-functions in the lexicon for \fImost\fR +languages. After much time and even some actual thought, I decided on +this system: +.PP +* Where a value in a \f(CW%Lexicon\fR hash is a contentful string instead of +an anonymous sub (or, conceivably, a coderef), it would be interpreted +as a sort of shorthand expression of what the sub does. When accessed +for the first time in a session, it is parsed, turned into Perl code, +and then eval'd into an anonymous sub; then that sub replaces the +original string in that lexicon. (That way, the work of parsing and +evaling the shorthand form for a given phrase is done no more than +once per session.) +.PP +* Calls to \f(CW\*(C`maketext\*(C'\fR (as Maketext's main function is called) happen +thru a \*(L"language session handle\*(R", notionally very much like an \s-1IO\s0 +handle, in that you open one at the start of the session, and use it +for \*(L"sending signals\*(R" to an object in order to have it return the text +you want. +.PP +So, this: +.PP +.Vb 2 +\& $lang\->maketext("You have [quant,_1,piece] of new mail.", +\& scalar(@messages)); +.Ve +.PP +basically means this: look in the lexicon for \f(CW$lang\fR (which may inherit +from any number of other lexicons), and find the function that we +happen to associate with the string \*(L"You have [quant,_1,piece] of new +mail\*(R" (which is, and should be, a functioning \*(L"shorthand\*(R" for this +function in the native locale \*(-- English in this case). If you find +such a function, call it with \f(CW$lang\fR as its first parameter (as if it +were a method), and then a copy of scalar(@messages) as its second, +and then return that value. If that function was found, but was in +string shorthand instead of being a fully specified function, parse it +and make it into a function before calling it the first time. +.PP +* The shorthand uses code in brackets to indicate method calls that +should be performed. A full explanation is not in order here, but a +few examples will suffice: +.PP +.Vb 1 +\& "You have [quant,_1,piece] of new mail." +.Ve +.PP +The above code is shorthand for, and will be interpreted as, +this: +.PP +.Vb 8 +\& sub { +\& my $handle = $_[0]; +\& my(@params) = @_; +\& return join \*(Aq\*(Aq, +\& "You have ", +\& $handle\->quant($params[1], \*(Aqpiece\*(Aq), +\& "of new mail."; +\& } +.Ve +.PP +where \*(L"quant\*(R" is the name of a method you're using to quantify the +noun \*(L"piece\*(R" with the number \f(CW$params\fR[0]. +.PP +A string with no brackety calls, like this: +.PP +.Vb 1 +\& "Your search expression was malformed." +.Ve +.PP +is somewhat of a degenerate case, and just gets turned into: +.PP +.Vb 1 +\& sub { return "Your search expression was malformed." } +.Ve +.PP +However, not everything you can write in Perl code can be written in +the above shorthand system \*(-- not by a long shot. For example, consider +the Italian translator from the beginning of this article, who wanted +the Italian for \*(L"I didn't find any files\*(R" as a special case, instead +of \*(L"I found 0 files\*(R". That couldn't be specified (at least not easily +or simply) in our shorthand system, and it would have to be written +out in full, like this: +.PP +.Vb 10 +\& sub { # pretend the English strings are in Italian +\& my($handle, $files, $dirs) = @_[0,1,2]; +\& return "I didn\*(Aqt find any files" unless $files; +\& return join \*(Aq\*(Aq, +\& "I found ", +\& $handle\->quant($files, \*(Aqfile\*(Aq), +\& " in ", +\& $handle\->quant($dirs, \*(Aqdirectory\*(Aq), +\& "."; +\& } +.Ve +.PP +Next to a lexicon full of shorthand code, that sort of sticks out like a +sore thumb \*(-- but this \fIis\fR a special case, after all; and at least +it's possible, if not as concise as usual. +.PP +As to how you'd implement the Russian example from the beginning of +the article, well, There's More Than One Way To Do It, but it could be +something like this (using English words for Russian, just so you know +what's going on): +.PP +.Vb 1 +\& "I [quant,_1,directory,accusative] scanned." +.Ve +.PP +This shifts the burden of complexity off to the quant method. That +method's parameters are: the numeric value it's going to use to +quantify something; the Russian word it's going to quantify; and the +parameter \*(L"accusative\*(R", which you're using to mean that this +sentence's syntax wants a noun in the accusative case there, although +that quantification method may have to overrule, for grammatical +reasons you may recall from the beginning of this article. +.PP +Now, the Russian quant method here is responsible not only for +implementing the strange logic necessary for figuring out how Russian +number-phrases impose case and number on their noun-phrases, but also +for inflecting the Russian word for \*(L"directory\*(R". How that inflection +is to be carried out is no small issue, and among the solutions I've +seen, some (like variations on a simple lookup in a hash where all +possible forms are provided for all necessary words) are +straightforward but \fIcan\fR become cumbersome when you need to inflect +more than a few dozen words; and other solutions (like using +algorithms to model the inflections, storing only root forms and +irregularities) \fIcan\fR involve more overhead than is justifiable for +all but the largest lexicons. +.PP +Mercifully, this design decision becomes crucial only in the hairiest +of inflected languages, of which Russian is by no means the \fIworst\fR case +scenario, but is worse than most. Most languages have simpler +inflection systems; for example, in English or Swahili, there are +generally no more than two possible inflected forms for a given noun +(\*(L"error/errors\*(R"; \*(L"kosa/makosa\*(R"), and the +rules for producing these forms are fairly simple \*(-- or at least, +simple rules can be formulated that work for most words, and you can +then treat the exceptions as just \*(L"irregular\*(R", at least relative to +your ad hoc rules. A simpler inflection system (simpler rules, fewer +forms) means that design decisions are less crucial to maintaining +sanity, whereas the same decisions could incur +overhead-versus-scalability problems in languages like Russian. It +may \fIalso\fR be likely that code (possibly in Perl, as with +Lingua::EN::Inflect, for English nouns) has already +been written for the language in question, whether simple or complex. +.PP +Moreover, a third possibility may even be simpler than anything +discussed above: \*(L"Just require that all possible (or at least +applicable) forms be provided in the call to the given language's quant +method, as in:\*(R" +.PP +.Vb 1 +\& "I found [quant,_1,file,files]." +.Ve +.PP +That way, quant just has to chose which form it needs, without having +to look up or generate anything. While possibly not optimal for +Russian, this should work well for most other languages, where +quantification is not as complicated an operation. +.SS "The Devil in the Details" +.IX Subsection "The Devil in the Details" +There's plenty more to Maketext than described above \*(-- for example, +there's the details of how language tags (\*(L"en-US\*(R", \*(L"i\-pwn\*(R", \*(L"fi\*(R", +etc.) or locale IDs (\*(L"en_US\*(R") interact with actual module naming +(\*(L"BogoQuery/Locale/en_us.pm\*(R"), and what magic can ensue; there's the +details of how to record (and possibly negotiate) what character +encoding Maketext will return text in (\s-1UTF8\s0? Latin\-1? \s-1KOI8\s0?). There's +the interesting fact that Maketext is for localization, but nowhere +actually has a "\f(CW\*(C`use locale;\*(C'\fR" anywhere in it. For the curious, +there's the somewhat frightening details of how I actually +implement something like data inheritance so that searches across +modules' \f(CW%Lexicon\fR hashes can parallel how Perl implements method +inheritance. +.PP +And, most importantly, there's all the practical details of how to +actually go about deriving from Maketext so you can use it for your +interfaces, and the various tools and conventions for starting out and +maintaining individual language modules. +.PP +That is all covered in the documentation for Locale::Maketext and the +modules that come with it, available in \s-1CPAN.\s0 After having read this +article, which covers the why's of Maketext, the documentation, +which covers the how's of it, should be quite straightforward. +.SS "The Proof in the Pudding: Localizing Web Sites" +.IX Subsection "The Proof in the Pudding: Localizing Web Sites" +Maketext and gettext have a notable difference: gettext is in C, +accessible thru C library calls, whereas Maketext is in Perl, and +really can't work without a Perl interpreter (although I suppose +something like it could be written for C). Accidents of history (and +not necessarily lucky ones) have made \*(C+ the most common language for +the implementation of applications like word processors, Web browsers, +and even many in-house applications like custom query systems. Current +conditions make it somewhat unlikely that the next one of any of these +kinds of applications will be written in Perl, albeit clearly more for +reasons of custom and inertia than out of consideration of what is the +right tool for the job. +.PP +However, other accidents of history have made Perl a well-accepted +language for design of server-side programs (generally in \s-1CGI\s0 form) +for Web site interfaces. Localization of static pages in Web sites is +trivial, feasible either with simple language-negotiation features in +servers like Apache, or with some kind of server-side inclusions of +language-appropriate text into layout templates. However, I think +that the localization of Perl-based search systems (or other kinds of +dynamic content) in Web sites, be they public or access-restricted, +is where Maketext will see the greatest use. +.PP +I presume that it would be only the exceptional Web site that gets +localized for English \fIand\fR Chinese \fIand\fR Italian \fIand\fR Arabic +\&\fIand\fR Russian, to recall the languages from the beginning of this +article \*(-- to say nothing of German, Spanish, French, Japanese, +Finnish, and Hindi, to name a few languages that benefit from large +numbers of programmers or Web viewers or both. +.PP +However, the ever-increasing internationalization of the Web (whether +measured in terms of amount of content, of numbers of content writers +or programmers, or of size of content audiences) makes it increasingly +likely that the interface to the average Web-based dynamic content +service will be localized for two or maybe three languages. It is my +hope that Maketext will make that task as simple as possible, and will +remove previous barriers to localization for languages dissimilar to +English. +.PP +.Vb 1 +\& _\|_END_\|_ +.Ve +.PP +Sean M. Burke (sburke@cpan.org) has a Master's in linguistics +from Northwestern University; he specializes in language technology. +Jordan Lachler (lachler@unm.edu) is a PhD student in the Department of +Linguistics at the University of New Mexico; he specializes in +morphology and pedagogy of North American native languages. +.SS "References" +.IX Subsection "References" +Alvestrand, Harald Tveit. 1995. \fI\s-1RFC 1766:\s0 Tags for the +Identification of Languages.\fR +\&\f(CW\*(C`\*(C'\fR +[Now see \s-1RFC 3066.\s0] +.PP +Callon, Ross, editor. 1996. \fI\s-1RFC 1925:\s0 The Twelve +Networking Truths.\fR +\&\f(CW\*(C`\*(C'\fR +.PP +Drepper, Ulrich, Peter Miller, +and Franc\*,ois Pinard. 1995\-2001. \s-1GNU\s0 +\&\f(CW\*(C`gettext\*(C'\fR. Available in \f(CW\*(C`\*(C'\fR, with +extensive docs in the distribution tarball. [Since +I wrote this article in 1998, I now see that the +gettext docs are now trying more to come to terms with +plurality. Whether useful conclusions have come from it +is another question altogether. \*(-- \s-1SMB,\s0 May 2001] +.PP +Forbes, Nevill. 1964. \fIRussian Grammar.\fR Third Edition, revised +by J. C. Dumbreck. Oxford University Press. diff --git a/data/miniconda3/man/man3/Locale%3A%3AMaketext.3 b/data/miniconda3/man/man3/Locale%3A%3AMaketext.3 new file mode 100644 index 0000000000000000000000000000000000000000..2366667bb92a30bbdf12777e7f6205f68ab6cf4f --- /dev/null +++ b/data/miniconda3/man/man3/Locale%3A%3AMaketext.3 @@ -0,0 +1,1576 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Locale::Maketext 3" +.TH Locale::Maketext 3 "2020-12-18" "perl v5.32.1" "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" +Locale::Maketext \- framework for localization +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 9 +\& package MyProgram; +\& use strict; +\& use MyProgram::L10N; +\& # ...which inherits from Locale::Maketext +\& my $lh = MyProgram::L10N\->get_handle() || die "What language?"; +\& ... +\& # And then any messages your program emits, like: +\& warn $lh\->maketext( "Can\*(Aqt open file [_1]: [_2]\en", $f, $! ); +\& ... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +It is a common feature of applications (whether run directly, +or via the Web) for them to be \*(L"localized\*(R" \*(-- i.e., for them +to a present an English interface to an English-speaker, a German +interface to a German-speaker, and so on for all languages it's +programmed with. Locale::Maketext +is a framework for software localization; it provides you with the +tools for organizing and accessing the bits of text and text-processing +code that you need for producing localized applications. +.PP +In order to make sense of Maketext and how all its +components fit together, you should probably +go read Locale::Maketext::TPJ13, and +\&\fIthen\fR read the following documentation. +.PP +You may also want to read over the source for \f(CW\*(C`File::Findgrep\*(C'\fR +and its constituent modules \*(-- they are a complete (if small) +example application that uses Maketext. +.SH "QUICK OVERVIEW" +.IX Header "QUICK OVERVIEW" +The basic design of Locale::Maketext is object-oriented, and +Locale::Maketext is an abstract base class, from which you +derive a \*(L"project class\*(R". +The project class (with a name like \*(L"TkBocciBall::Localize\*(R", +which you then use in your module) is in turn the base class +for all the \*(L"language classes\*(R" for your project +(with names \*(L"TkBocciBall::Localize::it\*(R", +\&\*(L"TkBocciBall::Localize::en\*(R", +\&\*(L"TkBocciBall::Localize::fr\*(R", etc.). +.PP +A language class is +a class containing a lexicon of phrases as class data, +and possibly also some methods that are of use in interpreting +phrases in the lexicon, or otherwise dealing with text in that +language. +.PP +An object belonging to a language class is called a \*(L"language +handle\*(R"; it's typically a flyweight object. +.PP +The normal course of action is to call: +.PP +.Vb 6 +\& use TkBocciBall::Localize; # the localization project class +\& $lh = TkBocciBall::Localize\->get_handle(); +\& # Depending on the user\*(Aqs locale, etc., this will +\& # make a language handle from among the classes available, +\& # and any defaults that you declare. +\& die "Couldn\*(Aqt make a language handle??" unless $lh; +.Ve +.PP +From then on, you use the \f(CW\*(C`maketext\*(C'\fR function to access +entries in whatever lexicon(s) belong to the language handle +you got. So, this: +.PP +.Vb 1 +\& print $lh\->maketext("You won!"), "\en"; +.Ve +.PP +\&...emits the right text for this language. If the object +in \f(CW$lh\fR belongs to class \*(L"TkBocciBall::Localize::fr\*(R" and +\&\f(CW%TkBocciBall::Localize::fr::Lexicon\fR contains \f(CW\*(C`("You won!" +=> "Tu as gagne\*'!")\*(C'\fR, then the above +code happily tells the user \*(L"Tu as gagne\*'!\*(R". +.SH "METHODS" +.IX Header "METHODS" +Locale::Maketext offers a variety of methods, which fall +into three categories: +.IP "\(bu" 4 +Methods to do with constructing language handles. +.IP "\(bu" 4 +\&\f(CW\*(C`maketext\*(C'\fR and other methods to do with accessing \f(CW%Lexicon\fR data +for a given language handle. +.IP "\(bu" 4 +Methods that you may find it handy to use, from routines of +yours that you put in \f(CW%Lexicon\fR entries. +.PP +These are covered in the following section. +.SS "Construction Methods" +.IX Subsection "Construction Methods" +These are to do with constructing a language handle: +.IP "\(bu" 4 +\&\f(CW$lh\fR = YourProjClass\->get_handle( ...langtags... ) || die \*(L"lg-handle?\*(R"; +.Sp +This tries loading classes based on the language-tags you give (like +\&\f(CW\*(C`("en\-US", "sk", "kon", "es\-MX", "ja", "i\-klingon")\*(C'\fR, and for the first class +that succeeds, returns YourProjClass::\fIlanguage\fR\->\fBnew()\fR. +.Sp +If it runs thru the entire given list of language-tags, and finds no classes +for those exact terms, it then tries \*(L"superordinate\*(R" language classes. +So if no \*(L"en-US\*(R" class (i.e., YourProjClass::en_us) +was found, nor classes for anything else in that list, we then try +its superordinate, \*(L"en\*(R" (i.e., YourProjClass::en), and so on thru +the other language-tags in the given list: \*(L"es\*(R". +(The other language-tags in our example list: +happen to have no superordinates.) +.Sp +If none of those language-tags leads to loadable classes, we then +try classes derived from YourProjClass\->\fBfallback_languages()\fR and +then if nothing comes of that, we use classes named by +YourProjClass\->\fBfallback_language_classes()\fR. Then in the (probably +quite unlikely) event that that fails, we just return undef. +.IP "\(bu" 4 +\&\f(CW$lh\fR = YourProjClass\->get_handle\fB()\fR || die \*(L"lg-handle?\*(R"; +.Sp +When \f(CW\*(C`get_handle\*(C'\fR is called with an empty parameter list, magic happens: +.Sp +If \f(CW\*(C`get_handle\*(C'\fR senses that it's running in program that was +invoked as a \s-1CGI,\s0 then it tries to get language-tags out of the +environment variable \*(L"\s-1HTTP_ACCEPT_LANGUAGE\*(R",\s0 and it pretends that +those were the languages passed as parameters to \f(CW\*(C`get_handle\*(C'\fR. +.Sp +Otherwise (i.e., if not a \s-1CGI\s0), this tries various OS-specific ways +to get the language-tags for the current locale/language, and then +pretends that those were the value(s) passed to \f(CW\*(C`get_handle\*(C'\fR. +.Sp +Currently this OS-specific stuff consists of looking in the environment +variables \*(L"\s-1LANG\*(R"\s0 and \*(L"\s-1LANGUAGE\*(R"\s0; and on MSWin machines (where those +variables are typically unused), this also tries using +the module Win32::Locale to get a language-tag for whatever language/locale +is currently selected in the \*(L"Regional Settings\*(R" (or \*(L"International\*(R"?) +Control Panel. I welcome further +suggestions for making this do the Right Thing under other operating +systems that support localization. +.Sp +If you're using localization in an application that keeps a configuration +file, you might consider something like this in your project class: +.Sp +.Vb 10 +\& sub get_handle_via_config { +\& my $class = $_[0]; +\& my $chosen_language = $Config_settings{\*(Aqlanguage\*(Aq}; +\& my $lh; +\& if($chosen_language) { +\& $lh = $class\->get_handle($chosen_language) +\& || die "No language handle for \e"$chosen_language\e"" +\& . " or the like"; +\& } else { +\& # Config file missing, maybe? +\& $lh = $class\->get_handle() +\& || die "Can\*(Aqt get a language handle"; +\& } +\& return $lh; +\& } +.Ve +.IP "\(bu" 4 +\&\f(CW$lh\fR = YourProjClass::langname\->\fBnew()\fR; +.Sp +This constructs a language handle. You usually \fBdon't\fR call this +directly, but instead let \f(CW\*(C`get_handle\*(C'\fR find a language class to \f(CW\*(C`use\*(C'\fR +and to then call \->new on. +.IP "\(bu" 4 +\&\f(CW$lh\fR\->\fBinit()\fR; +.Sp +This is called by \->new to initialize newly-constructed language handles. +If you define an init method in your class, remember that it's usually +considered a good idea to call \f(CW$lh\fR\->SUPER::init in it (presumably at the +beginning), so that all classes get a chance to initialize a new object +however they see fit. +.IP "\(bu" 4 +YourProjClass\->\fBfallback_languages()\fR +.Sp +\&\f(CW\*(C`get_handle\*(C'\fR appends the return value of this to the end of +whatever list of languages you pass \f(CW\*(C`get_handle\*(C'\fR. Unless +you override this method, your project class +will inherit Locale::Maketext's \f(CW\*(C`fallback_languages\*(C'\fR, which +currently returns \f(CW\*(C`(\*(Aqi\-default\*(Aq, \*(Aqen\*(Aq, \*(Aqen\-US\*(Aq)\*(C'\fR. +(\*(L"i\-default\*(R" is defined in \s-1RFC 2277\s0). +.Sp +This method (by having it return the name +of a language-tag that has an existing language class) +can be used for making sure that +\&\f(CW\*(C`get_handle\*(C'\fR will always manage to construct a language +handle (assuming your language classes are in an appropriate +\&\f(CW@INC\fR directory). Or you can use the next method: +.IP "\(bu" 4 +YourProjClass\->\fBfallback_language_classes()\fR +.Sp +\&\f(CW\*(C`get_handle\*(C'\fR appends the return value of this to the end +of the list of classes it will try using. Unless +you override this method, your project class +will inherit Locale::Maketext's \f(CW\*(C`fallback_language_classes\*(C'\fR, +which currently returns an empty list, \f(CW\*(C`()\*(C'\fR. +By setting this to some value (namely, the name of a loadable +language class), you can be sure that +\&\f(CW\*(C`get_handle\*(C'\fR will always manage to construct a language +handle. +.ie n .SS "The ""maketext"" Method" +.el .SS "The ``maketext'' Method" +.IX Subsection "The maketext Method" +This is the most important method in Locale::Maketext: +.PP +.Vb 1 +\& $text = $lh\->maketext(I, ...parameters for this phrase...); +.Ve +.PP +This looks in the \f(CW%Lexicon\fR of the language handle +\&\f(CW$lh\fR and all its superclasses, looking +for an entry whose key is the string \fIkey\fR. Assuming such +an entry is found, various things then happen, depending on the +value found: +.PP +If the value is a scalarref, the scalar is dereferenced and returned +(and any parameters are ignored). +.PP +If the value is a coderef, we return &$value($lh, ...parameters...). +.PP +If the value is a string that \fIdoesn't\fR look like it's in Bracket Notation, +we return it (after replacing it with a scalarref, in its \f(CW%Lexicon\fR). +.PP +If the value \fIdoes\fR look like it's in Bracket Notation, then we compile +it into a sub, replace the string in the \f(CW%Lexicon\fR with the new coderef, +and then we return &$new_sub($lh, ...parameters...). +.PP +Bracket Notation is discussed in a later section. Note +that trying to compile a string into Bracket Notation can throw +an exception if the string is not syntactically valid (say, by not +balancing brackets right.) +.PP +Also, calling &$coderef($lh, ...parameters...) can throw any sort of +exception (if, say, code in that sub tries to divide by zero). But +a very common exception occurs when you have Bracket +Notation text that says to call a method \*(L"foo\*(R", but there is no such +method. (E.g., "You have [qua\fBtn\fR,_1,ball]." will throw an exception +on trying to call \f(CW$lh\fR\->qua\fBtn\fR($_[1],'ball') \*(-- you presumably meant +\&\*(L"quant\*(R".) \f(CW\*(C`maketext\*(C'\fR catches these exceptions, but only to make the +error message more readable, at which point it rethrows the exception. +.PP +An exception \fImay\fR be thrown if \fIkey\fR is not found in any +of \f(CW$lh\fR's \f(CW%Lexicon\fR hashes. What happens if a key is not found, +is discussed in a later section, \*(L"Controlling Lookup Failure\*(R". +.PP +Note that you might find it useful in some cases to override +the \f(CW\*(C`maketext\*(C'\fR method with an \*(L"after method\*(R", if you want to +translate encodings, or even scripts: +.PP +.Vb 7 +\& package YrProj::zh_cn; # Chinese with PRC\-style glyphs +\& use base (\*(AqYrProj::zh_tw\*(Aq); # Taiwan\-style +\& sub maketext { +\& my $self = shift(@_); +\& my $value = $self\->maketext(@_); +\& return Chineeze::taiwan2mainland($value); +\& } +.Ve +.PP +Or you may want to override it with something that traps +any exceptions, if that's critical to your program: +.PP +.Vb 7 +\& sub maketext { +\& my($lh, @stuff) = @_; +\& my $out; +\& eval { $out = $lh\->SUPER::maketext(@stuff) }; +\& return $out unless $@; +\& ...otherwise deal with the exception... +\& } +.Ve +.PP +Other than those two situations, I don't imagine that +it's useful to override the \f(CW\*(C`maketext\*(C'\fR method. (If +you run into a situation where it is useful, I'd be +interested in hearing about it.) +.ie n .IP "$lh\->fail_with \fIor\fR $lh\->fail_with(\fI\s-1PARAM\s0\fR)" 4 +.el .IP "\f(CW$lh\fR\->fail_with \fIor\fR \f(CW$lh\fR\->fail_with(\fI\s-1PARAM\s0\fR)" 4 +.IX Item "$lh->fail_with or $lh->fail_with(PARAM)" +.PD 0 +.ie n .IP "$lh\->failure_handler_auto" 4 +.el .IP "\f(CW$lh\fR\->failure_handler_auto" 4 +.IX Item "$lh->failure_handler_auto" +.PD +These two methods are discussed in the section \*(L"Controlling +Lookup Failure\*(R". +.ie n .IP "$lh\->blacklist(@list)" 4 +.el .IP "\f(CW$lh\fR\->blacklist(@list)" 4 +.IX Item "$lh->blacklist(@list)" +.PD 0 +.ie n .IP "$lh\->whitelist(@list)" 4 +.el .IP "\f(CW$lh\fR\->whitelist(@list)" 4 +.IX Item "$lh->whitelist(@list)" +.PD +These methods are discussed in the section \*(L"Bracket Notation +Security\*(R". +.SS "Utility Methods" +.IX Subsection "Utility Methods" +These are methods that you may find it handy to use, generally +from \f(CW%Lexicon\fR routines of yours (whether expressed as +Bracket Notation or not). +.ie n .IP "$language\->quant($number, $singular)" 4 +.el .IP "\f(CW$language\fR\->quant($number, \f(CW$singular\fR)" 4 +.IX Item "$language->quant($number, $singular)" +.PD 0 +.ie n .IP "$language\->quant($number, $singular, $plural)" 4 +.el .IP "\f(CW$language\fR\->quant($number, \f(CW$singular\fR, \f(CW$plural\fR)" 4 +.IX Item "$language->quant($number, $singular, $plural)" +.ie n .IP "$language\->quant($number, $singular, $plural, $negative)" 4 +.el .IP "\f(CW$language\fR\->quant($number, \f(CW$singular\fR, \f(CW$plural\fR, \f(CW$negative\fR)" 4 +.IX Item "$language->quant($number, $singular, $plural, $negative)" +.PD +This is generally meant to be called from inside Bracket Notation +(which is discussed later), as in +.Sp +.Vb 1 +\& "Your search matched [quant,_1,document]!" +.Ve +.Sp +It's for \fIquantifying\fR a noun (i.e., saying how much of it there is, +while giving the correct form of it). The behavior of this method is +handy for English and a few other Western European languages, and you +should override it for languages where it's not suitable. You can feel +free to read the source, but the current implementation is basically +as this pseudocode describes: +.Sp +.Vb 11 +\& if $number is 0 and there\*(Aqs a $negative, +\& return $negative; +\& elsif $number is 1, +\& return "1 $singular"; +\& elsif there\*(Aqs a $plural, +\& return "$number $plural"; +\& else +\& return "$number " . $singular . "s"; +\& # +\& # ...except that we actually call numf to +\& # stringify $number before returning it. +.Ve +.Sp +So for English (with Bracket Notation) +\&\f(CW"...[quant,_1,file]..."\fR is fine (for 0 it returns \*(L"0 files\*(R", +for 1 it returns \*(L"1 file\*(R", and for more it returns \*(L"2 files\*(R", etc.) +.Sp +But for \*(L"directory\*(R", you'd want \f(CW"[quant,_1,directory,directories]"\fR +so that our elementary \f(CW\*(C`quant\*(C'\fR method doesn't think that the +plural of \*(L"directory\*(R" is \*(L"directorys\*(R". And you might find that the +output may sound better if you specify a negative form, as in: +.Sp +.Vb 1 +\& "[quant,_1,file,files,No files] matched your query.\en" +.Ve +.Sp +Remember to keep in mind verb agreement (or adjectives too, in +other languages), as in: +.Sp +.Vb 1 +\& "[quant,_1,document] were matched.\en" +.Ve +.Sp +Because if _1 is one, you get "1 document \fBwere\fR matched". +An acceptable hack here is to do something like this: +.Sp +.Vb 1 +\& "[quant,_1,document was, documents were] matched.\en" +.Ve +.ie n .IP "$language\->numf($number)" 4 +.el .IP "\f(CW$language\fR\->numf($number)" 4 +.IX Item "$language->numf($number)" +This returns the given number formatted nicely according to +this language's conventions. Maketext's default method is +mostly to just take the normal string form of the number +(applying sprintf \*(L"%G\*(R" for only very large numbers), and then +to add commas as necessary. (Except that +we apply \f(CW\*(C`tr/,./.,/\*(C'\fR if \f(CW$language\fR\->{'numf_comma'} is true; +that's a bit of a hack that's useful for languages that express +two million as \*(L"2.000.000\*(R" and not as \*(L"2,000,000\*(R"). +.Sp +If you want anything fancier, consider overriding this with something +that uses Number::Format, or does something else +entirely. +.Sp +Note that numf is called by quant for stringifying all quantifying +numbers. +.ie n .IP "$language\->numerate($number, $singular, $plural, $negative)" 4 +.el .IP "\f(CW$language\fR\->numerate($number, \f(CW$singular\fR, \f(CW$plural\fR, \f(CW$negative\fR)" 4 +.IX Item "$language->numerate($number, $singular, $plural, $negative)" +This returns the given noun form which is appropriate for the quantity +\&\f(CW$number\fR according to this language's conventions. \f(CW\*(C`numerate\*(C'\fR is +used internally by \f(CW\*(C`quant\*(C'\fR to quantify nouns. Use it directly \*(-- +usually from bracket notation \*(-- to avoid \f(CW\*(C`quant\*(C'\fR's implicit call to +\&\f(CW\*(C`numf\*(C'\fR and output of a numeric quantity. +.ie n .IP "$language\->sprintf($format, @items)" 4 +.el .IP "\f(CW$language\fR\->sprintf($format, \f(CW@items\fR)" 4 +.IX Item "$language->sprintf($format, @items)" +This is just a wrapper around Perl's normal \f(CW\*(C`sprintf\*(C'\fR function. +It's provided so that you can use \*(L"sprintf\*(R" in Bracket Notation: +.Sp +.Vb 1 +\& "Couldn\*(Aqt access datanode [sprintf,%10x=~[%s~],_1,_2]!\en" +.Ve +.Sp +returning... +.Sp +.Vb 1 +\& Couldn\*(Aqt access datanode Stuff=[thangamabob]! +.Ve +.ie n .IP "$language\->\fBlanguage_tag()\fR" 4 +.el .IP "\f(CW$language\fR\->\fBlanguage_tag()\fR" 4 +.IX Item "$language->language_tag()" +Currently this just takes the last bit of \f(CW\*(C`ref($language)\*(C'\fR, turns +underscores to dashes, and returns it. So if \f(CW$language\fR is +an object of class Hee::HOO::Haw::en_us, \f(CW$language\fR\->\fBlanguage_tag()\fR +returns \*(L"en-us\*(R". (Yes, the usual representation for that language +tag is \*(L"en-US\*(R", but case is \fInever\fR considered meaningful in +language-tag comparison.) +.Sp +You may override this as you like; Maketext doesn't use it for +anything. +.ie n .IP "$language\->\fBencoding()\fR" 4 +.el .IP "\f(CW$language\fR\->\fBencoding()\fR" 4 +.IX Item "$language->encoding()" +Currently this isn't used for anything, but it's provided +(with default value of +\&\f(CW\*(C`(ref($language) && $language\->{\*(Aqencoding\*(Aq})) or "iso\-8859\-1"\*(C'\fR +) as a sort of suggestion that it may be useful/necessary to +associate encodings with your language handles (whether on a +per-class or even per-handle basis.) +.SS "Language Handle Attributes and Internals" +.IX Subsection "Language Handle Attributes and Internals" +A language handle is a flyweight object \*(-- i.e., it doesn't (necessarily) +carry any data of interest, other than just being a member of +whatever class it belongs to. +.PP +A language handle is implemented as a blessed hash. Subclasses of yours +can store whatever data you want in the hash. Currently the only hash +entry used by any crucial Maketext method is \*(L"fail\*(R", so feel free to +use anything else as you like. +.PP +\&\fBRemember: Don't be afraid to read the Maketext source if there's +any point on which this documentation is unclear.\fR This documentation +is vastly longer than the module source itself. +.SH "LANGUAGE CLASS HIERARCHIES" +.IX Header "LANGUAGE CLASS HIERARCHIES" +These are Locale::Maketext's assumptions about the class +hierarchy formed by all your language classes: +.IP "\(bu" 4 +You must have a project base class, which you load, and +which you then use as the first argument in +the call to YourProjClass\->get_handle(...). It should derive +(whether directly or indirectly) from Locale::Maketext. +It \fBdoesn't matter\fR how you name this class, although assuming this +is the localization component of your Super Mega Program, +good names for your project class might be +SuperMegaProgram::Localization, SuperMegaProgram::L10N, +SuperMegaProgram::I18N, SuperMegaProgram::International, +or even SuperMegaProgram::Languages or SuperMegaProgram::Messages. +.IP "\(bu" 4 +Language classes are what YourProjClass\->get_handle will try to load. +It will look for them by taking each language-tag (\fBskipping\fR it +if it doesn't look like a language-tag or locale-tag!), turning it to +all lowercase, turning dashes to underscores, and appending it +to YourProjClass . \*(L"::\*(R". So this: +.Sp +.Vb 3 +\& $lh = YourProjClass\->get_handle( +\& \*(Aqen\-US\*(Aq, \*(Aqfr\*(Aq, \*(Aqkon\*(Aq, \*(Aqi\-klingon\*(Aq, \*(Aqi\-klingon\-romanized\*(Aq +\& ); +.Ve +.Sp +will try loading the classes +YourProjClass::en_us (note lowercase!), YourProjClass::fr, +YourProjClass::kon, +YourProjClass::i_klingon +and YourProjClass::i_klingon_romanized. (And it'll stop at the +first one that actually loads.) +.IP "\(bu" 4 +I assume that each language class derives (directly or indirectly) +from your project class, and also defines its \f(CW@ISA\fR, its \f(CW%Lexicon\fR, +or both. But I anticipate no dire consequences if these assumptions +do not hold. +.IP "\(bu" 4 +Language classes may derive from other language classes (although they +should have "use \fIThatclassname\fR\*(L" or \*(R"use base qw(\fI...classes...\fR)"). +They may derive from the project +class. They may derive from some other class altogether. Or via +multiple inheritance, it may derive from any mixture of these. +.IP "\(bu" 4 +I foresee no problems with having multiple inheritance in +your hierarchy of language classes. (As usual, however, Perl will +complain bitterly if you have a cycle in the hierarchy: i.e., if +any class is its own ancestor.) +.SH "ENTRIES IN EACH LEXICON" +.IX Header "ENTRIES IN EACH LEXICON" +A typical \f(CW%Lexicon\fR entry is meant to signify a phrase, +taking some number (0 or more) of parameters. An entry +is meant to be accessed by via +a string \fIkey\fR in \f(CW$lh\fR\->maketext(\fIkey\fR, ...parameters...), +which should return a string that is generally meant for +be used for \*(L"output\*(R" to the user \*(-- regardless of whether +this actually means printing to \s-1STDOUT,\s0 writing to a file, +or putting into a \s-1GUI\s0 widget. +.PP +While the key must be a string value (since that's a basic +restriction that Perl places on hash keys), the value in +the lexicon can currently be of several types: +a defined scalar, scalarref, or coderef. The use of these is +explained above, in the section 'The \*(L"maketext\*(R" Method', and +Bracket Notation for strings is discussed in the next section. +.PP +While you can use arbitrary unique IDs for lexicon keys +(like \*(L"_min_larger_max_error\*(R"), it is often +useful for if an entry's key is itself a valid value, like +this example error message: +.PP +.Vb 1 +\& "Minimum ([_1]) is larger than maximum ([_2])!\en", +.Ve +.PP +Compare this code that uses an arbitrary \s-1ID...\s0 +.PP +.Vb 2 +\& die $lh\->maketext( "_min_larger_max_error", $min, $max ) +\& if $min > $max; +.Ve +.PP +\&...to this code that uses a key-as-value: +.PP +.Vb 4 +\& die $lh\->maketext( +\& "Minimum ([_1]) is larger than maximum ([_2])!\en", +\& $min, $max +\& ) if $min > $max; +.Ve +.PP +The second is, in short, more readable. In particular, it's obvious +that the number of parameters you're feeding to that phrase (two) is +the number of parameters that it \fIwants\fR to be fed. (Since you see +_1 and a _2 being used in the key there.) +.PP +Also, once a project is otherwise +complete and you start to localize it, you can scrape together +all the various keys you use, and pass it to a translator; and then +the translator's work will go faster if what he's presented is this: +.PP +.Vb 2 +\& "Minimum ([_1]) is larger than maximum ([_2])!\en", +\& => "", # fill in something here, Jacques! +.Ve +.PP +rather than this more cryptic mess: +.PP +.Vb 2 +\& "_min_larger_max_error" +\& => "", # fill in something here, Jacques +.Ve +.PP +I think that keys as lexicon values makes the completed lexicon +entries more readable: +.PP +.Vb 2 +\& "Minimum ([_1]) is larger than maximum ([_2])!\en", +\& => "Le minimum ([_1]) est plus grand que le maximum ([_2])!\en", +.Ve +.PP +Also, having valid values as keys becomes very useful if you set +up an _AUTO lexicon. _AUTO lexicons are discussed in a later +section. +.PP +I almost always use keys that are themselves +valid lexicon values. One notable exception is when the value is +quite long. For example, to get the screenful of data that +a command-line program might return when given an unknown switch, +I often just use a brief, self-explanatory key such as \*(L"_USAGE_MESSAGE\*(R". At that point I then go +and immediately to define that lexicon entry in the +ProjectClass::L10N::en lexicon (since English is always my \*(L"project +language\*(R"): +.PP +.Vb 3 +\& \*(Aq_USAGE_MESSAGE\*(Aq => <<\*(AqEOSTUFF\*(Aq, +\& ...long long message... +\& EOSTUFF +.Ve +.PP +and then I can use it as: +.PP +.Vb 1 +\& getopt(\*(AqoDI\*(Aq, \e%opts) or die $lh\->maketext(\*(Aq_USAGE_MESSAGE\*(Aq); +.Ve +.PP +Incidentally, +note that each class's \f(CW%Lexicon\fR inherits-and-extends +the lexicons in its superclasses. This is not because these are +special hashes \fIper se\fR, but because you access them via the +\&\f(CW\*(C`maketext\*(C'\fR method, which looks for entries across all the +\&\f(CW%Lexicon\fR hashes in a language class \fIand\fR all its ancestor classes. +(This is because the idea of \*(L"class data\*(R" isn't directly implemented +in Perl, but is instead left to individual class-systems to implement +as they see fit..) +.PP +Note that you may have things stored in a lexicon +besides just phrases for output: for example, if your program +takes input from the keyboard, asking a \*(L"(Y/N)\*(R" question, +you probably need to know what the equivalent of \*(L"Y[es]/N[o]\*(R" is +in whatever language. You probably also need to know what +the equivalents of the answers \*(L"y\*(R" and \*(L"n\*(R" are. You can +store that information in the lexicon (say, under the keys +\&\*(L"~answer_y\*(R" and \*(L"~answer_n\*(R", and the long forms as +\&\*(L"~answer_yes\*(R" and \*(L"~answer_no\*(R", where \*(L"~\*(R" is just an ad-hoc +character meant to indicate to programmers/translators that +these are not phrases for output). +.PP +Or instead of storing this in the language class's lexicon, +you can (and, in some cases, really should) represent the same bit +of knowledge as code in a method in the language class. (That +leaves a tidy distinction between the lexicon as the things we +know how to \fIsay\fR, and the rest of the things in the lexicon class +as things that we know how to \fIdo\fR.) Consider +this example of a processor for responses to French \*(L"oui/non\*(R" +questions: +.PP +.Vb 7 +\& sub y_or_n { +\& return undef unless defined $_[1] and length $_[1]; +\& my $answer = lc $_[1]; # smash case +\& return 1 if $answer eq \*(Aqo\*(Aq or $answer eq \*(Aqoui\*(Aq; +\& return 0 if $answer eq \*(Aqn\*(Aq or $answer eq \*(Aqnon\*(Aq; +\& return undef; +\& } +.Ve +.PP +\&...which you'd then call in a construct like this: +.PP +.Vb 7 +\& my $response; +\& until(defined $response) { +\& print $lh\->maketext("Open the pod bay door (y/n)? "); +\& $response = $lh\->y_or_n( get_input_from_keyboard_somehow() ); +\& } +\& if($response) { $pod_bay_door\->open() } +\& else { $pod_bay_door\->leave_closed() } +.Ve +.PP +Other data worth storing in a lexicon might be things like +filenames for language-targetted resources: +.PP +.Vb 10 +\& ... +\& "_main_splash_png" +\& => "/styles/en_us/main_splash.png", +\& "_main_splash_imagemap" +\& => "/styles/en_us/main_splash.incl", +\& "_general_graphics_path" +\& => "/styles/en_us/", +\& "_alert_sound" +\& => "/styles/en_us/hey_there.wav", +\& "_forward_icon" +\& => "left_arrow.png", +\& "_backward_icon" +\& => "right_arrow.png", +\& # In some other languages, left equals +\& # BACKwards, and right is FOREwards. +\& ... +.Ve +.PP +You might want to do the same thing for expressing key bindings +or the like (since hardwiring \*(L"q\*(R" as the binding for the function +that quits a screen/menu/program is useful only if your language +happens to associate \*(L"q\*(R" with \*(L"quit\*(R"!) +.SH "BRACKET NOTATION" +.IX Header "BRACKET NOTATION" +Bracket Notation is a crucial feature of Locale::Maketext. I mean +Bracket Notation to provide a replacement for the use of sprintf formatting. +Everything you do with Bracket Notation could be done with a sub block, +but bracket notation is meant to be much more concise. +.PP +Bracket Notation is a like a miniature \*(L"template\*(R" system (in the sense +of Text::Template, not in the sense of \*(C+ templates), +where normal text is passed thru basically as is, but text in special +regions is specially interpreted. In Bracket Notation, you use square brackets (\*(L"[...]\*(R"), +not curly braces (\*(L"{...}\*(R") to note sections that are specially interpreted. +.PP +For example, here all the areas that are taken literally are underlined with +a \*(L"^\*(R", and all the in-bracket special regions are underlined with an X: +.PP +.Vb 2 +\& "Minimum ([_1]) is larger than maximum ([_2])!\en", +\& ^^^^^^^^^ XX ^^^^^^^^^^^^^^^^^^^^^^^^^^ XX ^^^^ +.Ve +.PP +When that string is compiled from bracket notation into a real Perl sub, +it's basically turned into: +.PP +.Vb 11 +\& sub { +\& my $lh = $_[0]; +\& my @params = @_; +\& return join \*(Aq\*(Aq, +\& "Minimum (", +\& ...some code here... +\& ") is larger than maximum (", +\& ...some code here... +\& ")!\en", +\& } +\& # to be called by $lh\->maketext(KEY, params...) +.Ve +.PP +In other words, text outside bracket groups is turned into string +literals. Text in brackets is rather more complex, and currently follows +these rules: +.IP "\(bu" 4 +Bracket groups that are empty, or which consist only of whitespace, +are ignored. (Examples: \*(L"[]\*(R", \*(L"[ ]\*(R", or a [ and a ] with returns +and/or tabs and/or spaces between them. +.Sp +Otherwise, each group is taken to be a comma-separated group of items, +and each item is interpreted as follows: +.IP "\(bu" 4 +An item that is "_\fIdigits\fR\*(L" or \*(R"_\-\fIdigits\fR" is interpreted as +\&\f(CW$_\fR[\fIvalue\fR]. I.e., \*(L"_1\*(R" becomes with \f(CW$_\fR[1], and \*(L"_\-3\*(R" is interpreted +as \f(CW$_\fR[\-3] (in which case \f(CW@_\fR should have at least three elements in it). +Note that \f(CW$_\fR[0] is the language handle, and is typically not named +directly. +.IP "\(bu" 4 +An item \*(L"_*\*(R" is interpreted to mean \*(L"all of \f(CW@_\fR except \f(CW$_\fR[0]\*(R". +I.e., \f(CW@_[1..$#_]\fR. Note that this is an empty list in the case +of calls like \f(CW$lh\fR\->maketext(\fIkey\fR) where there are no +parameters (except \f(CW$_\fR[0], the language handle). +.IP "\(bu" 4 +Otherwise, each item is interpreted as a string literal. +.PP +The group as a whole is interpreted as follows: +.IP "\(bu" 4 +If the first item in a bracket group looks like a method name, +then that group is interpreted like this: +.Sp +.Vb 3 +\& $lh\->that_method_name( +\& ...rest of items in this group... +\& ), +.Ve +.IP "\(bu" 4 +If the first item in a bracket group is \*(L"*\*(R", it's taken as shorthand +for the so commonly called \*(L"quant\*(R" method. Similarly, if the first +item in a bracket group is \*(L"#\*(R", it's taken to be shorthand for +\&\*(L"numf\*(R". +.IP "\(bu" 4 +If the first item in a bracket group is the empty-string, or \*(L"_*\*(R" +or "_\fIdigits\fR\*(L" or \*(R"_\-\fIdigits\fR", then that group is interpreted +as just the interpolation of all its items: +.Sp +.Vb 3 +\& join(\*(Aq\*(Aq, +\& ...rest of items in this group... +\& ), +.Ve +.Sp +Examples: \*(L"[_1]\*(R" and \*(L"[,_1]\*(R", which are synonymous; and +"\f(CW\*(C`[,ID\-(,_4,\-,_2,)]\*(C'\fR", which compiles as +\&\f(CW\*(C`join "", "ID\-(", $_[4], "\-", $_[2], ")"\*(C'\fR. +.IP "\(bu" 4 +Otherwise this bracket group is invalid. For example, in the group +\&\*(L"[!@#,whatever]\*(R", the first item \f(CW"!@#"\fR is neither the empty-string, +"_\fInumber\fR\*(L", \*(R"_\-\fInumber\fR\*(L", \*(R"_*", nor a valid method name; and so +Locale::Maketext will throw an exception of you try compiling an +expression containing this bracket group. +.PP +Note, incidentally, that items in each group are comma-separated, +not \f(CW\*(C`/\es*,\es*/\*(C'\fR\-separated. That is, you might expect that this +bracket group: +.PP +.Vb 1 +\& "Hoohah [foo, _1 , bar ,baz]!" +.Ve +.PP +would compile to this: +.PP +.Vb 7 +\& sub { +\& my $lh = $_[0]; +\& return join \*(Aq\*(Aq, +\& "Hoohah ", +\& $lh\->foo( $_[1], "bar", "baz"), +\& "!", +\& } +.Ve +.PP +But it actually compiles as this: +.PP +.Vb 7 +\& sub { +\& my $lh = $_[0]; +\& return join \*(Aq\*(Aq, +\& "Hoohah ", +\& $lh\->foo(" _1 ", " bar ", "baz"), # note the in " bar " +\& "!", +\& } +.Ve +.PP +In the notation discussed so far, the characters \*(L"[\*(R" and \*(L"]\*(R" are given +special meaning, for opening and closing bracket groups, and \*(L",\*(R" has +a special meaning inside bracket groups, where it separates items in the +group. This begs the question of how you'd express a literal \*(L"[\*(R" or +\&\*(L"]\*(R" in a Bracket Notation string, and how you'd express a literal +comma inside a bracket group. For this purpose I've adopted \*(L"~\*(R" (tilde) +as an escape character: \*(L"~[\*(R" means a literal '[' character anywhere +in Bracket Notation (i.e., regardless of whether you're in a bracket +group or not), and ditto for \*(L"~]\*(R" meaning a literal ']', and \*(L"~,\*(R" meaning +a literal comma. (Altho \*(L",\*(R" means a literal comma outside of +bracket groups \*(-- it's only inside bracket groups that commas are special.) +.PP +And on the off chance you need a literal tilde in a bracket expression, +you get it with \*(L"~~\*(R". +.PP +Currently, an unescaped \*(L"~\*(R" before a character +other than a bracket or a comma is taken to mean just a \*(L"~\*(R" and that +character. I.e., \*(L"~X\*(R" means the same as \*(L"~~X\*(R" \*(-- i.e., one literal tilde, +and then one literal \*(L"X\*(R". However, by using \*(L"~X\*(R", you are assuming that +no future version of Maketext will use \*(L"~X\*(R" as a magic escape sequence. +In practice this is not a great problem, since first off you can just +write \*(L"~~X\*(R" and not worry about it; second off, I doubt I'll add lots +of new magic characters to bracket notation; and third off, you +aren't likely to want literal \*(L"~\*(R" characters in your messages anyway, +since it's not a character with wide use in natural language text. +.PP +Brackets must be balanced \*(-- every openbracket must have +one matching closebracket, and vice versa. So these are all \fBinvalid\fR: +.PP +.Vb 4 +\& "I ate [quant,_1,rhubarb pie." +\& "I ate [quant,_1,rhubarb pie[." +\& "I ate quant,_1,rhubarb pie]." +\& "I ate quant,_1,rhubarb pie[." +.Ve +.PP +Currently, bracket groups do not nest. That is, you \fBcannot\fR say: +.PP +.Vb 1 +\& "Foo [bar,baz,[quux,quuux]]\en"; +.Ve +.PP +If you need a notation that's that powerful, use normal Perl: +.PP +.Vb 11 +\& %Lexicon = ( +\& ... +\& "some_key" => sub { +\& my $lh = $_[0]; +\& join \*(Aq\*(Aq, +\& "Foo ", +\& $lh\->bar(\*(Aqbaz\*(Aq, $lh\->quux(\*(Aqquuux\*(Aq)), +\& "\en", +\& }, +\& ... +\& ); +.Ve +.PP +Or write the \*(L"bar\*(R" method so you don't need to pass it the +output from calling quux. +.PP +I do not anticipate that you will need (or particularly want) +to nest bracket groups, but you are welcome to email me with +convincing (real-life) arguments to the contrary. +.SH "BRACKET NOTATION SECURITY" +.IX Header "BRACKET NOTATION SECURITY" +Locale::Maketext does not use any special syntax to differentiate +bracket notation methods from normal class or object methods. This +design makes it vulnerable to format string attacks whenever it is +used to process strings provided by untrusted users. +.PP +Locale::Maketext does support blacklist and whitelist functionality +to limit which methods may be called as bracket notation methods. +.PP +By default, Locale::Maketext blacklists all methods in the +Locale::Maketext namespace that begin with the '_' character, +and all methods which include Perl's namespace separator characters. +.PP +The default blacklist for Locale::Maketext also prevents use of the +following methods in bracket notation: +.PP +.Vb 12 +\& blacklist +\& encoding +\& fail_with +\& failure_handler_auto +\& fallback_language_classes +\& fallback_languages +\& get_handle +\& init +\& language_tag +\& maketext +\& new +\& whitelist +.Ve +.PP +This list can be extended by either blacklisting additional \*(L"known bad\*(R" +methods, or whitelisting only \*(L"known good\*(R" methods. +.PP +To prevent specific methods from being called in bracket notation, use +the \fBblacklist()\fR method: +.PP +.Vb 3 +\& my $lh = MyProgram::L10N\->get_handle(); +\& $lh\->blacklist(qw{my_internal_method my_other_method}); +\& $lh\->maketext(\*(Aq[my_internal_method]\*(Aq); # dies +.Ve +.PP +To limit the allowed bracked notation methods to a specific list, use the +\&\fBwhitelist()\fR method: +.PP +.Vb 4 +\& my $lh = MyProgram::L10N\->get_handle(); +\& $lh\->whitelist(\*(Aqnumerate\*(Aq, \*(Aqnumf\*(Aq); +\& $lh\->maketext(\*(Aq[_1] [numerate, _1,shoe,shoes]\*(Aq, 12); # works +\& $lh\->maketext(\*(Aq[my_internal_method]\*(Aq); # dies +.Ve +.PP +The \fBblacklist()\fR and \fBwhitelist()\fR methods extend their internal lists +whenever they are called. To reset the blacklist or whitelist, create +a new maketext object. +.PP +.Vb 4 +\& my $lh = MyProgram::L10N\->get_handle(); +\& $lh\->blacklist(\*(Aqnumerate\*(Aq); +\& $lh\->blacklist(\*(Aqnumf\*(Aq); +\& $lh\->maketext(\*(Aq[_1] [numerate,_1,shoe,shoes]\*(Aq, 12); # dies +.Ve +.PP +For lexicons that use an internal cache, translations which have already +been cached in their compiled form are not affected by subsequent changes +to the whitelist or blacklist settings. Lexicons that use an external +cache will have their cache cleared whenever the whitelist of blacklist +setings change. The difference between the two types of caching is explained +in the \*(L"Readonly Lexicons\*(R" section. +.PP +Methods disallowed by the blacklist cannot be permitted by the +whitelist. +.SH "AUTO LEXICONS" +.IX Header "AUTO LEXICONS" +If maketext goes to look in an individual \f(CW%Lexicon\fR for an entry +for \fIkey\fR (where \fIkey\fR does not start with an underscore), and +sees none, \fBbut does see\fR an entry of \*(L"_AUTO\*(R" => \fIsome_true_value\fR, +then we actually define \f(CW$Lexicon\fR{\fIkey\fR} = \fIkey\fR right then and there, +and then use that value as if it had been there all +along. This happens before we even look in any superclass \f(CW%Lexicons\fR! +.PP +(This is meant to be somewhat like the \s-1AUTOLOAD\s0 mechanism in +Perl's function call system \*(-- or, looked at another way, +like the AutoLoader module.) +.PP +I can picture all sorts of circumstances where you just +do not want lookup to be able to fail (since failing +normally means that maketext throws a \f(CW\*(C`die\*(C'\fR, although +see the next section for greater control over that). But +here's one circumstance where _AUTO lexicons are meant to +be \fIespecially\fR useful: +.PP +As you're writing an application, you decide as you go what messages +you need to emit. Normally you'd go to write this: +.PP +.Vb 5 +\& if(\-e $filename) { +\& go_process_file($filename) +\& } else { +\& print qq{Couldn\*(Aqt find file "$filename"!\en}; +\& } +.Ve +.PP +but since you anticipate localizing this, you write: +.PP +.Vb 10 +\& use ThisProject::I18N; +\& my $lh = ThisProject::I18N\->get_handle(); +\& # For the moment, assume that things are set up so +\& # that we load class ThisProject::I18N::en +\& # and that that\*(Aqs the class that $lh belongs to. +\& ... +\& if(\-e $filename) { +\& go_process_file($filename) +\& } else { +\& print $lh\->maketext( +\& qq{Couldn\*(Aqt find file "[_1]"!\en}, $filename +\& ); +\& } +.Ve +.PP +Now, right after you've just written the above lines, you'd +normally have to go open the file +ThisProject/I18N/en.pm, and immediately add an entry: +.PP +.Vb 2 +\& "Couldn\*(Aqt find file \e"[_1]\e"!\en" +\& => "Couldn\*(Aqt find file \e"[_1]\e"!\en", +.Ve +.PP +But I consider that somewhat of a distraction from the work +of getting the main code working \*(-- to say nothing of the fact +that I often have to play with the program a few times before +I can decide exactly what wording I want in the messages (which +in this case would require me to go changing three lines of code: +the call to maketext with that key, and then the two lines in +ThisProject/I18N/en.pm). +.PP +However, if you set \*(L"_AUTO => 1\*(R" in the \f(CW%Lexicon\fR in, +ThisProject/I18N/en.pm (assuming that English (en) is +the language that all your programmers will be using for this +project's internal message keys), then you don't ever have to +go adding lines like this +.PP +.Vb 2 +\& "Couldn\*(Aqt find file \e"[_1]\e"!\en" +\& => "Couldn\*(Aqt find file \e"[_1]\e"!\en", +.Ve +.PP +to ThisProject/I18N/en.pm, because if _AUTO is true there, +then just looking for an entry with the key \*(L"Couldn't find +file \e\*(R"[_1]\e\*(L"!\en\*(R" in that lexicon will cause it to be added, +with that value! +.PP +Note that the reason that keys that start with \*(L"_\*(R" +are immune to _AUTO isn't anything generally magical about +the underscore character \*(-- I just wanted a way to have most +lexicon keys be autoable, except for possibly a few, and I +arbitrarily decided to use a leading underscore as a signal +to distinguish those few. +.SH "READONLY LEXICONS" +.IX Header "READONLY LEXICONS" +If your lexicon is a tied hash the simple act of caching the compiled value can be fatal. +.PP +For example a GDBM_File \s-1GDBM_READER\s0 tied hash will die with something like: +.PP +.Vb 1 +\& gdbm store returned \-1, errno 2, key "..." at ... +.Ve +.PP +All you need to do is turn on caching outside of the lexicon hash itself like so: +.PP +.Vb 6 +\& sub init { +\& my ($lh) = @_; +\& ... +\& $lh\->{\*(Aquse_external_lex_cache\*(Aq} = 1; +\& ... +\& } +.Ve +.PP +And then instead of storing the compiled value in the lexicon hash it will store it in \f(CW$lh\fR\->{'_external_lex_cache'} +.SH "CONTROLLING LOOKUP FAILURE" +.IX Header "CONTROLLING LOOKUP FAILURE" +If you call \f(CW$lh\fR\->maketext(\fIkey\fR, ...parameters...), +and there's no entry \fIkey\fR in \f(CW$lh\fR's class's \f(CW%Lexicon\fR, nor +in the superclass \f(CW%Lexicon\fR hash, \fIand\fR if we can't auto-make +\&\fIkey\fR (because either it starts with a \*(L"_\*(R", or because none +of its lexicons have \f(CW\*(C`_AUTO => 1,\*(C'\fR), then we have +failed to find a normal way to maketext \fIkey\fR. What then +happens in these failure conditions, depends on the \f(CW$lh\fR object's +\&\*(L"fail\*(R" attribute. +.PP +If the language handle has no \*(L"fail\*(R" attribute, maketext +will simply throw an exception (i.e., it calls \f(CW\*(C`die\*(C'\fR, mentioning +the \fIkey\fR whose lookup failed, and naming the line number where +the calling \f(CW$lh\fR\->maketext(\fIkey\fR,...) was. +.PP +If the language handle has a \*(L"fail\*(R" attribute whose value is a +coderef, then \f(CW$lh\fR\->maketext(\fIkey\fR,...params...) gives up and calls: +.PP +.Vb 1 +\& return $that_subref\->($lh, $key, @params); +.Ve +.PP +Otherwise, the \*(L"fail\*(R" attribute's value should be a string denoting +a method name, so that \f(CW$lh\fR\->maketext(\fIkey\fR,...params...) can +give up with: +.PP +.Vb 1 +\& return $lh\->$that_method_name($phrase, @params); +.Ve +.PP +The \*(L"fail\*(R" attribute can be accessed with the \f(CW\*(C`fail_with\*(C'\fR method: +.PP +.Vb 2 +\& # Set to a coderef: +\& $lh\->fail_with( \e&failure_handler ); +\& +\& # Set to a method name: +\& $lh\->fail_with( \*(Aqfailure_method\*(Aq ); +\& +\& # Set to nothing (i.e., so failure throws a plain exception) +\& $lh\->fail_with( undef ); +\& +\& # Get the current value +\& $handler = $lh\->fail_with(); +.Ve +.PP +Now, as to what you may want to do with these handlers: Maybe you'd +want to log what key failed for what class, and then die. Maybe +you don't like \f(CW\*(C`die\*(C'\fR and instead you want to send the error message +to \s-1STDOUT\s0 (or wherever) and then merely \f(CW\*(C`exit()\*(C'\fR. +.PP +Or maybe you don't want to \f(CW\*(C`die\*(C'\fR at all! Maybe you could use a +handler like this: +.PP +.Vb 10 +\& # Make all lookups fall back onto an English value, +\& # but only after we log it for later fingerpointing. +\& my $lh_backup = ThisProject\->get_handle(\*(Aqen\*(Aq); +\& open(LEX_FAIL_LOG, ">>wherever/lex.log") || die "GNAARGH $!"; +\& sub lex_fail { +\& my($failing_lh, $key, $params) = @_; +\& print LEX_FAIL_LOG scalar(localtime), "\et", +\& ref($failing_lh), "\et", $key, "\en"; +\& return $lh_backup\->maketext($key,@params); +\& } +.Ve +.PP +Some users have expressed that they think this whole mechanism of +having a \*(L"fail\*(R" attribute at all, seems a rather pointless complication. +But I want Locale::Maketext to be usable for software projects of \fIany\fR +scale and type; and different software projects have different ideas +of what the right thing is to do in failure conditions. I could simply +say that failure always throws an exception, and that if you want to be +careful, you'll just have to wrap every call to \f(CW$lh\fR\->maketext in an +eval\ {\ }. However, I want programmers to reserve the right (via +the \*(L"fail\*(R" attribute) to treat lookup failure as something other than +an exception of the same level of severity as a config file being +unreadable, or some essential resource being inaccessible. +.PP +One possibly useful value for the \*(L"fail\*(R" attribute is the method name +\&\*(L"failure_handler_auto\*(R". This is a method defined in the class +Locale::Maketext itself. You set it with: +.PP +.Vb 1 +\& $lh\->fail_with(\*(Aqfailure_handler_auto\*(Aq); +.Ve +.PP +Then when you call \f(CW$lh\fR\->maketext(\fIkey\fR, ...parameters...) and +there's no \fIkey\fR in any of those lexicons, maketext gives up with +.PP +.Vb 1 +\& return $lh\->failure_handler_auto($key, @params); +.Ve +.PP +But failure_handler_auto, instead of dying or anything, compiles +\&\f(CW$key\fR, caching it in +.PP +.Vb 1 +\& $lh\->{\*(Aqfailure_lex\*(Aq}{$key} = $compiled +.Ve +.PP +and then calls the compiled value, and returns that. (I.e., if +\&\f(CW$key\fR looks like bracket notation, \f(CW$compiled\fR is a sub, and we return +&{$compiled}(@params); but if \f(CW$key\fR is just a plain string, we just +return that.) +.PP +The effect of using \*(L"failure_auto_handler\*(R" +is like an \s-1AUTO\s0 lexicon, except that it 1) compiles \f(CW$key\fR even if +it starts with \*(L"_\*(R", and 2) you have a record in the new hashref +\&\f(CW$lh\fR\->{'failure_lex'} of all the keys that have failed for +this object. This should avoid your program dying \*(-- as long +as your keys aren't actually invalid as bracket code, and as +long as they don't try calling methods that don't exist. +.PP +\&\*(L"failure_auto_handler\*(R" may not be exactly what you want, but I +hope it at least shows you that maketext failure can be mitigated +in any number of very flexible ways. If you can formalize exactly +what you want, you should be able to express that as a failure +handler. You can even make it default for every object of a given +class, by setting it in that class's init: +.PP +.Vb 9 +\& sub init { +\& my $lh = $_[0]; # a newborn handle +\& $lh\->SUPER::init(); +\& $lh\->fail_with(\*(Aqmy_clever_failure_handler\*(Aq); +\& return; +\& } +\& sub my_clever_failure_handler { +\& ...you clever things here... +\& } +.Ve +.SH "HOW TO USE MAKETEXT" +.IX Header "HOW TO USE MAKETEXT" +Here is a brief checklist on how to use Maketext to localize +applications: +.IP "\(bu" 4 +Decide what system you'll use for lexicon keys. If you insist, +you can use opaque IDs (if you're nostalgic for \f(CW\*(C`catgets\*(C'\fR), +but I have better suggestions in the +section \*(L"Entries in Each Lexicon\*(R", above. Assuming you opt for +meaningful keys that double as values (like \*(L"Minimum ([_1]) is +larger than maximum ([_2])!\en\*(R"), you'll have to settle on what +language those should be in. For the sake of argument, I'll +call this English, specifically American English, \*(L"en-US\*(R". +.IP "\(bu" 4 +Create a class for your localization project. This is +the name of the class that you'll use in the idiom: +.Sp +.Vb 2 +\& use Projname::L10N; +\& my $lh = Projname::L10N\->get_handle(...) || die "Language?"; +.Ve +.Sp +Assuming you call your class Projname::L10N, create a class +consisting minimally of: +.Sp +.Vb 3 +\& package Projname::L10N; +\& use base qw(Locale::Maketext); +\& ...any methods you might want all your languages to share... +\& +\& # And, assuming you want the base class to be an _AUTO lexicon, +\& # as is discussed a few sections up: +\& +\& 1; +.Ve +.IP "\(bu" 4 +Create a class for the language your internal keys are in. Name +the class after the language-tag for that language, in lowercase, +with dashes changed to underscores. Assuming your project's first +language is \s-1US\s0 English, you should call this Projname::L10N::en_us. +It should consist minimally of: +.Sp +.Vb 6 +\& package Projname::L10N::en_us; +\& use base qw(Projname::L10N); +\& %Lexicon = ( +\& \*(Aq_AUTO\*(Aq => 1, +\& ); +\& 1; +.Ve +.Sp +(For the rest of this section, I'll assume that this \*(L"first +language class\*(R" of Projname::L10N::en_us has +_AUTO lexicon.) +.IP "\(bu" 4 +Go and write your program. Everywhere in your program where +you would say: +.Sp +.Vb 1 +\& print "Foobar $thing stuff\en"; +.Ve +.Sp +instead do it thru maketext, using no variable interpolation in +the key: +.Sp +.Vb 1 +\& print $lh\->maketext("Foobar [_1] stuff\en", $thing); +.Ve +.Sp +If you get tired of constantly saying \f(CW\*(C`print $lh\->maketext\*(C'\fR, +consider making a functional wrapper for it, like so: +.Sp +.Vb 7 +\& use Projname::L10N; +\& our $lh; +\& $lh = Projname::L10N\->get_handle(...) || die "Language?"; +\& sub pmt (@) { print( $lh\->maketext(@_)) } +\& # "pmt" is short for "Print MakeText" +\& $Carp::Verbose = 1; +\& # so if maketext fails, we see made the call to pmt +.Ve +.Sp +Besides whole phrases meant for output, anything language-dependent +should be put into the class Projname::L10N::en_us, +whether as methods, or as lexicon entries \*(-- this is discussed +in the section \*(L"Entries in Each Lexicon\*(R", above. +.IP "\(bu" 4 +Once the program is otherwise done, and once its localization for +the first language works right (via the data and methods in +Projname::L10N::en_us), you can get together the data for translation. +If your first language lexicon isn't an _AUTO lexicon, then you already +have all the messages explicitly in the lexicon (or else you'd be +getting exceptions thrown when you call \f(CW$lh\fR\->maketext to get +messages that aren't in there). But if you were (advisedly) lazy and are +using an _AUTO lexicon, then you've got to make a list of all the phrases +that you've so far been letting _AUTO generate for you. There are very +many ways to assemble such a list. The most straightforward is to simply +grep the source for every occurrence of \*(L"maketext\*(R" (or calls +to wrappers around it, like the above \f(CW\*(C`pmt\*(C'\fR function), and to log the +following phrase. +.IP "\(bu" 4 +You may at this point want to consider whether your base class +(Projname::L10N), from which all lexicons inherit from (Projname::L10N::en, +Projname::L10N::es, etc.), should be an _AUTO lexicon. It may be true +that in theory, all needed messages will be in each language class; +but in the presumably unlikely or \*(L"impossible\*(R" case of lookup failure, +you should consider whether your program should throw an exception, +emit text in English (or whatever your project's first language is), +or some more complex solution as described in the section +\&\*(L"Controlling Lookup Failure\*(R", above. +.IP "\(bu" 4 +Submit all messages/phrases/etc. to translators. +.Sp +(You may, in fact, want to start with localizing to \fIone\fR other language +at first, if you're not sure that you've properly abstracted the +language-dependent parts of your code.) +.Sp +Translators may request clarification of the situation in which a +particular phrase is found. For example, in English we are entirely happy +saying "\fIn\fR files found\*(L", regardless of whether we mean \*(R"I looked for files, +and found \fIn\fR of them\*(L" or the rather distinct situation of \*(R"I looked for +something else (like lines in files), and along the way I saw \fIn\fR +files.\*(L" This may involve rethinking things that you thought quite clear: +should \*(R"Edit\*(L" on a toolbar be a noun (\*(R"editing\*(L") or a verb (\*(R"to edit\*(L")? Is +there already a conventionalized way to express that menu option, separate +from the target language's normal word for \*(R"to edit"? +.Sp +In all cases where the very common phenomenon of quantification +(saying "\fIN\fR files", for \fBany\fR value of N) +is involved, each translator should make clear what dependencies the +number causes in the sentence. In many cases, dependency is +limited to words adjacent to the number, in places where you might +expect them ("I found the\-?PLURAL \fIN\fR +empty\-?PLURAL directory\-?PLURAL\*(L"), but in some cases there are +unexpected dependencies (\*(R"I found\-?PLURAL ...\*(L"!) as well as long-distance +dependencies \*(R"The \fIN\fR directory\-?PLURAL could not be deleted\-?PLURAL"!). +.Sp +Remind the translators to consider the case where N is 0: +\&\*(L"0 files found\*(R" isn't exactly natural-sounding in any language, but it +may be unacceptable in many \*(-- or it may condition special +kinds of agreement (similar to English \*(L"I didN'T find \s-1ANY\s0 files\*(R"). +.Sp +Remember to ask your translators about numeral formatting in their +language, so that you can override the \f(CW\*(C`numf\*(C'\fR method as +appropriate. Typical variables in number formatting are: what to +use as a decimal point (comma? period?); what to use as a thousands +separator (space? nonbreaking space? comma? period? small +middot? prime? apostrophe?); and even whether the so-called \*(L"thousands +separator\*(R" is actually for every third digit \*(-- I've heard reports of +two hundred thousand being expressible as \*(L"2,00,000\*(R" for some Indian +(Subcontinental) languages, besides the less surprising \*(L"200\ 000\*(R", +\&\*(L"200.000\*(R", \*(L"200,000\*(R", and \*(L"200'000\*(R". Also, using a set of numeral +glyphs other than the usual \s-1ASCII \*(L"0\*(R"\-\*(L"9\*(R"\s0 might be appreciated, as via +\&\f(CW\*(C`tr/0\-9/\ex{0966}\-\ex{096F}/\*(C'\fR for getting digits in Devanagari script +(for Hindi, Konkani, others). +.Sp +The basic \f(CW\*(C`quant\*(C'\fR method that Locale::Maketext provides should be +good for many languages. For some languages, it might be useful +to modify it (or its constituent \f(CW\*(C`numerate\*(C'\fR method) +to take a plural form in the two-argument call to \f(CW\*(C`quant\*(C'\fR +(as in \*(L"[quant,_1,files]\*(R") if +it's all-around easier to infer the singular form from the plural, than +to infer the plural form from the singular. +.Sp +But for other languages (as is discussed at length +in Locale::Maketext::TPJ13), simple +\&\f(CW\*(C`quant\*(C'\fR/\f(CW\*(C`numf\*(C'\fR is not enough. For the particularly problematic +Slavic languages, what you may need is a method which you provide +with the number, the citation form of the noun to quantify, and +the case and gender that the sentence's syntax projects onto that +noun slot. The method would then be responsible for determining +what grammatical number that numeral projects onto its noun phrase, +and what case and gender it may override the normal case and gender +with; and then it would look up the noun in a lexicon providing +all needed inflected forms. +.IP "\(bu" 4 +You may also wish to discuss with the translators the question of +how to relate different subforms of the same language tag, +considering how this reacts with \f(CW\*(C`get_handle\*(C'\fR's treatment of +these. For example, if a user accepts interfaces in \*(L"en, fr\*(R", and +you have interfaces available in \*(L"en-US\*(R" and \*(L"fr\*(R", what should +they get? You may wish to resolve this by establishing that \*(L"en\*(R" +and \*(L"en-US\*(R" are effectively synonymous, by having one class +zero-derive from the other. +.Sp +For some languages this issue may never come up (Danish is rarely +expressed as \*(L"da-DK\*(R", but instead is just \*(L"da\*(R"). And for other +languages, the whole concept of a \*(L"generic\*(R" form may verge on +being uselessly vague, particularly for interfaces involving voice +media in forms of Arabic or Chinese. +.IP "\(bu" 4 +Once you've localized your program/site/etc. for all desired +languages, be sure to show the result (whether live, or via +screenshots) to the translators. Once they approve, make every +effort to have it then checked by at least one other speaker of +that language. This holds true even when (or especially when) the +translation is done by one of your own programmers. Some +kinds of systems may be harder to find testers for than others, +depending on the amount of domain-specific jargon and concepts +involved \*(-- it's easier to find people who can tell you whether +they approve of your translation for \*(L"delete this message\*(R" in an +email-via-Web interface, than to find people who can give you +an informed opinion on your translation for \*(L"attribute value\*(R" +in an \s-1XML\s0 query tool's interface. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +I recommend reading all of these: +.PP +Locale::Maketext::TPJ13 \*(-- my \fIThe Perl +Journal\fR article about Maketext. It explains many important concepts +underlying Locale::Maketext's design, and some insight into why +Maketext is better than the plain old approach of having +message catalogs that are just databases of sprintf formats. +.PP +File::Findgrep is a sample application/module +that uses Locale::Maketext to localize its messages. For a larger +internationalized system, see also Apache::MP3. +.PP +I18N::LangTags. +.PP +Win32::Locale. +.PP +\&\s-1RFC 3066,\s0 \fITags for the Identification of Languages\fR, +as at +.PP +\&\s-1RFC 2277,\s0 \fI\s-1IETF\s0 Policy on Character Sets and Languages\fR +is at \*(-- much of it is +just things of interest to protocol designers, but it explains +some basic concepts, like the distinction between locales and +language-tags. +.PP +The manual for \s-1GNU\s0 \f(CW\*(C`gettext\*(C'\fR. The gettext dist is available in +\&\f(CW\*(C`\*(C'\fR \*(-- get +a recent gettext tarball and look in its \*(L"doc/\*(R" directory, there's +an easily browsable \s-1HTML\s0 version in there. The +gettext documentation asks lots of questions worth thinking +about, even if some of their answers are sometimes wonky, +particularly where they start talking about pluralization. +.PP +The Locale/Maketext.pm source. Observe that the module is much +shorter than its documentation! +.SH "COPYRIGHT AND DISCLAIMER" +.IX Header "COPYRIGHT AND DISCLAIMER" +Copyright (c) 1999\-2004 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Sean M. Burke \f(CW\*(C`sburke@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/MIME%3A%3ABase64.3 b/data/miniconda3/man/man3/MIME%3A%3ABase64.3 new file mode 100644 index 0000000000000000000000000000000000000000..6e5ee992b8edb30455e9db3c6fc55baeee953e2a --- /dev/null +++ b/data/miniconda3/man/man3/MIME%3A%3ABase64.3 @@ -0,0 +1,299 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "MIME::Base64 3" +.TH MIME::Base64 3 "2020-12-18" "perl v5.32.1" "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" +MIME::Base64 \- Encoding and decoding of base64 strings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use MIME::Base64; +\& +\& $encoded = encode_base64(\*(AqAladdin:open sesame\*(Aq); +\& $decoded = decode_base64($encoded); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides functions to encode and decode strings into and from the +base64 encoding specified in \s-1RFC 2045\s0 \- \fI\s-1MIME\s0 (Multipurpose Internet +Mail Extensions)\fR. The base64 encoding is designed to represent +arbitrary sequences of octets in a form that need not be humanly +readable. A 65\-character subset ([A\-Za\-z0\-9+/=]) of US-ASCII is used, +enabling 6 bits to be represented per printable character. +.PP +The following primary functions are provided: +.ie n .IP "encode_base64( $bytes )" 4 +.el .IP "encode_base64( \f(CW$bytes\fR )" 4 +.IX Item "encode_base64( $bytes )" +.PD 0 +.ie n .IP "encode_base64( $bytes, $eol );" 4 +.el .IP "encode_base64( \f(CW$bytes\fR, \f(CW$eol\fR );" 4 +.IX Item "encode_base64( $bytes, $eol );" +.PD +Encode data by calling the \fBencode_base64()\fR function. The first +argument is the byte string to encode. The second argument is the +line-ending sequence to use. It is optional and defaults to \*(L"\en\*(R". The +returned encoded string is broken into lines of no more than 76 +characters each and it will end with \f(CW$eol\fR unless it is empty. Pass an +empty string as second argument if you do not want the encoded string +to be broken into lines. +.Sp +The function will croak with \*(L"Wide character in subroutine entry\*(R" if \f(CW$bytes\fR +contains characters with code above 255. The base64 encoding is only defined +for single-byte characters. Use the Encode module to select the byte encoding +you want. +.ie n .IP "decode_base64( $str )" 4 +.el .IP "decode_base64( \f(CW$str\fR )" 4 +.IX Item "decode_base64( $str )" +Decode a base64 string by calling the \fBdecode_base64()\fR function. This +function takes a single argument which is the string to decode and +returns the decoded data. +.Sp +Any character not part of the 65\-character base64 subset is +silently ignored. Characters occurring after a '=' padding character +are never decoded. +.PP +If you prefer not to import these routines into your namespace, you can +call them as: +.PP +.Vb 3 +\& use MIME::Base64 (); +\& $encoded = MIME::Base64::encode($decoded); +\& $decoded = MIME::Base64::decode($encoded); +.Ve +.PP +Additional functions not exported by default: +.ie n .IP "encode_base64url( $bytes )" 4 +.el .IP "encode_base64url( \f(CW$bytes\fR )" 4 +.IX Item "encode_base64url( $bytes )" +.PD 0 +.ie n .IP "decode_base64url( $str )" 4 +.el .IP "decode_base64url( \f(CW$str\fR )" 4 +.IX Item "decode_base64url( $str )" +.PD +Encode and decode according to the base64 scheme for \*(L"\s-1URL\s0 applications\*(R" [1]. +This is a variant of the base64 encoding which does not use padding, does not +break the string into multiple lines and use the characters \*(L"\-\*(R" and \*(L"_\*(R" instead +of \*(L"+\*(R" and \*(L"/\*(R" to avoid using reserved \s-1URL\s0 characters. +.ie n .IP "encoded_base64_length( $bytes )" 4 +.el .IP "encoded_base64_length( \f(CW$bytes\fR )" 4 +.IX Item "encoded_base64_length( $bytes )" +.PD 0 +.ie n .IP "encoded_base64_length( $bytes, $eol )" 4 +.el .IP "encoded_base64_length( \f(CW$bytes\fR, \f(CW$eol\fR )" 4 +.IX Item "encoded_base64_length( $bytes, $eol )" +.PD +Returns the length that the encoded string would have without actually +encoding it. This will return the same value as \f(CW\*(C`length(encode_base64($bytes))\*(C'\fR, +but should be more efficient. +.ie n .IP "decoded_base64_length( $str )" 4 +.el .IP "decoded_base64_length( \f(CW$str\fR )" 4 +.IX Item "decoded_base64_length( $str )" +Returns the length that the decoded string would have without actually +decoding it. This will return the same value as \f(CW\*(C`length(decode_base64($str))\*(C'\fR, +but should be more efficient. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +If you want to encode a large file, you should encode it in chunks +that are a multiple of 57 bytes. This ensures that the base64 lines +line up and that you do not end up with padding in the middle. 57 +bytes of data fills one complete base64 line (76 == 57*4/3): +.PP +.Vb 1 +\& use MIME::Base64 qw(encode_base64); +\& +\& open(FILE, "/var/log/wtmp") or die "$!"; +\& while (read(FILE, $buf, 60*57)) { +\& print encode_base64($buf); +\& } +.Ve +.PP +or if you know you have enough memory +.PP +.Vb 3 +\& use MIME::Base64 qw(encode_base64); +\& local($/) = undef; # slurp +\& print encode_base64(); +.Ve +.PP +The same approach as a command line: +.PP +.Vb 1 +\& perl \-MMIME::Base64 \-0777 \-ne \*(Aqprint encode_base64($_)\*(Aq and Joerg Reichelt and +code posted to comp.lang.perl <3pd2lp$6gf@wsinti07.win.tue.nl> by Hans +Mulder +.PP +The \s-1XS\s0 implementation uses code from metamail. Copyright 1991 Bell +Communications Research, Inc. (Bellcore) +.SH "SEE ALSO" +.IX Header "SEE ALSO" +MIME::QuotedPrint +.PP +[1] diff --git a/data/miniconda3/man/man3/MIME%3A%3AQuotedPrint.3 b/data/miniconda3/man/man3/MIME%3A%3AQuotedPrint.3 new file mode 100644 index 0000000000000000000000000000000000000000..efaf8e6d4452a1ccd72f5c2c923db1e850171b19 --- /dev/null +++ b/data/miniconda3/man/man3/MIME%3A%3AQuotedPrint.3 @@ -0,0 +1,232 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "MIME::QuotedPrint 3" +.TH MIME::QuotedPrint 3 "2020-12-18" "perl v5.32.1" "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" +MIME::QuotedPrint \- Encoding and decoding of quoted\-printable strings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use MIME::QuotedPrint; +\& +\& $encoded = encode_qp($decoded); +\& $decoded = decode_qp($encoded); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides functions to encode and decode strings into and from the +quoted-printable encoding specified in \s-1RFC 2045\s0 \- \fI\s-1MIME\s0 (Multipurpose +Internet Mail Extensions)\fR. The quoted-printable encoding is intended +to represent data that largely consists of bytes that correspond to +printable characters in the \s-1ASCII\s0 character set. Each non-printable +character (as defined by English Americans) is represented by a +triplet consisting of the character \*(L"=\*(R" followed by two hexadecimal +digits. +.PP +The following functions are provided: +.ie n .IP "encode_qp( $str)" 4 +.el .IP "encode_qp( \f(CW$str\fR)" 4 +.IX Item "encode_qp( $str)" +.PD 0 +.ie n .IP "encode_qp( $str, $eol)" 4 +.el .IP "encode_qp( \f(CW$str\fR, \f(CW$eol\fR)" 4 +.IX Item "encode_qp( $str, $eol)" +.ie n .IP "encode_qp( $str, $eol, $binmode )" 4 +.el .IP "encode_qp( \f(CW$str\fR, \f(CW$eol\fR, \f(CW$binmode\fR )" 4 +.IX Item "encode_qp( $str, $eol, $binmode )" +.PD +This function returns an encoded version of the string ($str) given as +argument. +.Sp +The second argument ($eol) is the line-ending sequence to use. It is +optional and defaults to \*(L"\en\*(R". Every occurrence of \*(L"\en\*(R" is replaced +with this string, and it is also used for additional \*(L"soft line +breaks\*(R" to ensure that no line end up longer than 76 characters. Pass +it as \*(L"\e015\e012\*(R" to produce data suitable for external consumption. +The string \*(L"\er\en\*(R" produces the same result on many platforms, but not +all. +.Sp +The third argument ($binmode) will select binary mode if passed as a +\&\s-1TRUE\s0 value. In binary mode \*(L"\en\*(R" will be encoded in the same way as +any other non-printable character. This ensures that a decoder will +end up with exactly the same string whatever line ending sequence it +uses. In general it is preferable to use the base64 encoding for +binary data; see MIME::Base64. +.Sp +An \f(CW$eol\fR of "\*(L" (the empty string) is special. In this case, no \*(R"soft +line breaks\*(L" are introduced and binary mode is effectively enabled so +that any \*(R"\en" in the original data is encoded as well. +.ie n .IP "decode_qp( $str )" 4 +.el .IP "decode_qp( \f(CW$str\fR )" 4 +.IX Item "decode_qp( $str )" +This function returns the plain text version of the string given +as argument. The lines of the result are \*(L"\en\*(R" terminated, even if +the \f(CW$str\fR argument contains \*(L"\er\en\*(R" terminated lines. +.PP +If you prefer not to import these routines into your namespace, you can +call them as: +.PP +.Vb 3 +\& use MIME::QuotedPrint (); +\& $encoded = MIME::QuotedPrint::encode($decoded); +\& $decoded = MIME::QuotedPrint::decode($encoded); +.Ve +.PP +Perl v5.8 and better allow extended Unicode characters in strings. +Such strings cannot be encoded directly, as the quoted-printable +encoding is only defined for single-byte characters. The solution is +to use the Encode module to select the byte encoding you want. For +example: +.PP +.Vb 2 +\& use MIME::QuotedPrint qw(encode_qp); +\& use Encode qw(encode); +\& +\& $encoded = encode_qp(encode("UTF\-8", "\ex{FFFF}\en")); +\& print $encoded; +.Ve +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 1995\-1997,2002\-2004 Gisle Aas. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +MIME::Base64 diff --git a/data/miniconda3/man/man3/Math%3A%3ABigFloat.3 b/data/miniconda3/man/man3/Math%3A%3ABigFloat.3 new file mode 100644 index 0000000000000000000000000000000000000000..4afc81890d1047b91a987a2524b109c564656cea --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigFloat.3 @@ -0,0 +1,1028 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::BigFloat 3" +.TH Math::BigFloat 3 "2020-12-18" "perl v5.32.1" "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" +Math::BigFloat \- Arbitrary size floating point math package +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Math::BigFloat; +\& +\& # Configuration methods (may be used as class methods and instance methods) +\& +\& Math::BigFloat\->accuracy(); # get class accuracy +\& Math::BigFloat\->accuracy($n); # set class accuracy +\& Math::BigFloat\->precision(); # get class precision +\& Math::BigFloat\->precision($n); # set class precision +\& Math::BigFloat\->round_mode(); # get class rounding mode +\& Math::BigFloat\->round_mode($m); # set global round mode, must be one of +\& # \*(Aqeven\*(Aq, \*(Aqodd\*(Aq, \*(Aq+inf\*(Aq, \*(Aq\-inf\*(Aq, \*(Aqzero\*(Aq, +\& # \*(Aqtrunc\*(Aq, or \*(Aqcommon\*(Aq +\& Math::BigFloat\->config("lib"); # name of backend math library +\& +\& # Constructor methods (when the class methods below are used as instance +\& # methods, the value is assigned the invocand) +\& +\& $x = Math::BigFloat\->new($str); # defaults to 0 +\& $x = Math::BigFloat\->new(\*(Aq0x123\*(Aq); # from hexadecimal +\& $x = Math::BigFloat\->new(\*(Aq0b101\*(Aq); # from binary +\& $x = Math::BigFloat\->from_hex(\*(Aq0xc.afep+3\*(Aq); # from hex +\& $x = Math::BigFloat\->from_hex(\*(Aqcafe\*(Aq); # ditto +\& $x = Math::BigFloat\->from_oct(\*(Aq1.3267p\-4\*(Aq); # from octal +\& $x = Math::BigFloat\->from_oct(\*(Aq0377\*(Aq); # ditto +\& $x = Math::BigFloat\->from_bin(\*(Aq0b1.1001p\-4\*(Aq); # from binary +\& $x = Math::BigFloat\->from_bin(\*(Aq0101\*(Aq); # ditto +\& $x = Math::BigFloat\->from_ieee754($b, "binary64"); # from IEEE\-754 bytes +\& $x = Math::BigFloat\->bzero(); # create a +0 +\& $x = Math::BigFloat\->bone(); # create a +1 +\& $x = Math::BigFloat\->bone(\*(Aq\-\*(Aq); # create a \-1 +\& $x = Math::BigFloat\->binf(); # create a +inf +\& $x = Math::BigFloat\->binf(\*(Aq\-\*(Aq); # create a \-inf +\& $x = Math::BigFloat\->bnan(); # create a Not\-A\-Number +\& $x = Math::BigFloat\->bpi(); # returns pi +\& +\& $y = $x\->copy(); # make a copy (unlike $y = $x) +\& $y = $x\->as_int(); # return as BigInt +\& +\& # Boolean methods (these don\*(Aqt modify the invocand) +\& +\& $x\->is_zero(); # if $x is 0 +\& $x\->is_one(); # if $x is +1 +\& $x\->is_one("+"); # ditto +\& $x\->is_one("\-"); # if $x is \-1 +\& $x\->is_inf(); # if $x is +inf or \-inf +\& $x\->is_inf("+"); # if $x is +inf +\& $x\->is_inf("\-"); # if $x is \-inf +\& $x\->is_nan(); # if $x is NaN +\& +\& $x\->is_positive(); # if $x > 0 +\& $x\->is_pos(); # ditto +\& $x\->is_negative(); # if $x < 0 +\& $x\->is_neg(); # ditto +\& +\& $x\->is_odd(); # if $x is odd +\& $x\->is_even(); # if $x is even +\& $x\->is_int(); # if $x is an integer +\& +\& # Comparison methods +\& +\& $x\->bcmp($y); # compare numbers (undef, < 0, == 0, > 0) +\& $x\->bacmp($y); # compare absolutely (undef, < 0, == 0, > 0) +\& $x\->beq($y); # true if and only if $x == $y +\& $x\->bne($y); # true if and only if $x != $y +\& $x\->blt($y); # true if and only if $x < $y +\& $x\->ble($y); # true if and only if $x <= $y +\& $x\->bgt($y); # true if and only if $x > $y +\& $x\->bge($y); # true if and only if $x >= $y +\& +\& # Arithmetic methods +\& +\& $x\->bneg(); # negation +\& $x\->babs(); # absolute value +\& $x\->bsgn(); # sign function (\-1, 0, 1, or NaN) +\& $x\->bnorm(); # normalize (no\-op) +\& $x\->binc(); # increment $x by 1 +\& $x\->bdec(); # decrement $x by 1 +\& $x\->badd($y); # addition (add $y to $x) +\& $x\->bsub($y); # subtraction (subtract $y from $x) +\& $x\->bmul($y); # multiplication (multiply $x by $y) +\& $x\->bmuladd($y,$z); # $x = $x * $y + $z +\& $x\->bdiv($y); # division (floored), set $x to quotient +\& # return (quo,rem) or quo if scalar +\& $x\->btdiv($y); # division (truncated), set $x to quotient +\& # return (quo,rem) or quo if scalar +\& $x\->bmod($y); # modulus (x % y) +\& $x\->btmod($y); # modulus (truncated) +\& $x\->bmodinv($mod); # modular multiplicative inverse +\& $x\->bmodpow($y,$mod); # modular exponentiation (($x ** $y) % $mod) +\& $x\->bpow($y); # power of arguments (x ** y) +\& $x\->blog(); # logarithm of $x to base e (Euler\*(Aqs number) +\& $x\->blog($base); # logarithm of $x to base $base (e.g., base 2) +\& $x\->bexp(); # calculate e ** $x where e is Euler\*(Aqs number +\& $x\->bnok($y); # x over y (binomial coefficient n over k) +\& $x\->bsin(); # sine +\& $x\->bcos(); # cosine +\& $x\->batan(); # inverse tangent +\& $x\->batan2($y); # two\-argument inverse tangent +\& $x\->bsqrt(); # calculate square root +\& $x\->broot($y); # $y\*(Aqth root of $x (e.g. $y == 3 => cubic root) +\& $x\->bfac(); # factorial of $x (1*2*3*4*..$x) +\& +\& $x\->blsft($n); # left shift $n places in base 2 +\& $x\->blsft($n,$b); # left shift $n places in base $b +\& # returns (quo,rem) or quo (scalar context) +\& $x\->brsft($n); # right shift $n places in base 2 +\& $x\->brsft($n,$b); # right shift $n places in base $b +\& # returns (quo,rem) or quo (scalar context) +\& +\& # Bitwise methods +\& +\& $x\->band($y); # bitwise and +\& $x\->bior($y); # bitwise inclusive or +\& $x\->bxor($y); # bitwise exclusive or +\& $x\->bnot(); # bitwise not (two\*(Aqs complement) +\& +\& # Rounding methods +\& $x\->round($A,$P,$mode); # round to accuracy or precision using +\& # rounding mode $mode +\& $x\->bround($n); # accuracy: preserve $n digits +\& $x\->bfround($n); # $n > 0: round to $nth digit left of dec. point +\& # $n < 0: round to $nth digit right of dec. point +\& $x\->bfloor(); # round towards minus infinity +\& $x\->bceil(); # round towards plus infinity +\& $x\->bint(); # round towards zero +\& +\& # Other mathematical methods +\& +\& $x\->bgcd($y); # greatest common divisor +\& $x\->blcm($y); # least common multiple +\& +\& # Object property methods (do not modify the invocand) +\& +\& $x\->sign(); # the sign, either +, \- or NaN +\& $x\->digit($n); # the nth digit, counting from the right +\& $x\->digit(\-$n); # the nth digit, counting from the left +\& $x\->length(); # return number of digits in number +\& ($xl,$f) = $x\->length(); # length of number and length of fraction +\& # part, latter is always 0 digits long +\& # for Math::BigInt objects +\& $x\->mantissa(); # return (signed) mantissa as BigInt +\& $x\->exponent(); # return exponent as BigInt +\& $x\->parts(); # return (mantissa,exponent) as BigInt +\& $x\->sparts(); # mantissa and exponent (as integers) +\& $x\->nparts(); # mantissa and exponent (normalised) +\& $x\->eparts(); # mantissa and exponent (engineering notation) +\& $x\->dparts(); # integer and fraction part +\& +\& # Conversion methods (do not modify the invocand) +\& +\& $x\->bstr(); # decimal notation, possibly zero padded +\& $x\->bsstr(); # string in scientific notation with integers +\& $x\->bnstr(); # string in normalized notation +\& $x\->bestr(); # string in engineering notation +\& $x\->bdstr(); # string in decimal notation +\& $x\->as_hex(); # as signed hexadecimal string with prefixed 0x +\& $x\->as_bin(); # as signed binary string with prefixed 0b +\& $x\->as_oct(); # as signed octal string with prefixed 0 +\& $x\->to_ieee754($format); # to bytes encoded according to IEEE 754\-2008 +\& +\& # Other conversion methods +\& +\& $x\->numify(); # return as scalar (might overflow or underflow) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Math::BigFloat provides support for arbitrary precision floating point. +Overloading is also provided for Perl operators. +.PP +All operators (including basic math operations) are overloaded if you +declare your big floating point numbers as +.PP +.Vb 1 +\& $x = Math::BigFloat \-> new(\*(Aq12_3.456_789_123_456_789E\-2\*(Aq); +.Ve +.PP +Operations with overloaded operators preserve the arguments, which is +exactly what you expect. +.SS "Input" +.IX Subsection "Input" +Input values to these routines may be any scalar number or string that looks +like a number and represents a floating point number. +.IP "\(bu" 4 +Leading and trailing whitespace is ignored. +.IP "\(bu" 4 +Leading and trailing zeros are ignored. +.IP "\(bu" 4 +If the string has a \*(L"0x\*(R" prefix, it is interpreted as a hexadecimal number. +.IP "\(bu" 4 +If the string has a \*(L"0b\*(R" prefix, it is interpreted as a binary number. +.IP "\(bu" 4 +For hexadecimal and binary numbers, the exponent must be separated from the +significand (mantissa) by the letter \*(L"p\*(R" or \*(L"P\*(R", not \*(L"e\*(R" or \*(L"E\*(R" as with decimal +numbers. +.IP "\(bu" 4 +One underline is allowed between any two digits, including hexadecimal and +binary digits. +.IP "\(bu" 4 +If the string can not be interpreted, NaN is returned. +.PP +Octal numbers are typically prefixed by \*(L"0\*(R", but since leading zeros are +stripped, these methods can not automatically recognize octal numbers, so use +the constructor \fBfrom_oct()\fR to interpret octal strings. +.PP +Some examples of valid string input +.PP +.Vb 10 +\& Input string Resulting value +\& 123 123 +\& 1.23e2 123 +\& 12300e\-2 123 +\& 0xcafe 51966 +\& 0b1101 13 +\& 67_538_754 67538754 +\& \-4_5_6.7_8_9e+0_1_0 \-4567890000000 +\& 0x1.921fb5p+1 3.14159262180328369140625e+0 +\& 0b1.1001p\-4 9.765625e\-2 +.Ve +.SS "Output" +.IX Subsection "Output" +Output values are usually Math::BigFloat objects. +.PP +Boolean operators \f(CW\*(C`is_zero()\*(C'\fR, \f(CW\*(C`is_one()\*(C'\fR, \f(CW\*(C`is_inf()\*(C'\fR, etc. return true or +false. +.PP +Comparison operators \f(CW\*(C`bcmp()\*(C'\fR and \f(CW\*(C`bacmp()\*(C'\fR) return \-1, 0, 1, or +undef. +.SH "METHODS" +.IX Header "METHODS" +Math::BigFloat supports all methods that Math::BigInt supports, except it +calculates non-integer results when possible. Please see Math::BigInt for a +full description of each method. Below are just the most important differences: +.SS "Configuration methods" +.IX Subsection "Configuration methods" +.IP "\fBaccuracy()\fR" 4 +.IX Item "accuracy()" +.Vb 3 +\& $x\->accuracy(5); # local for $x +\& CLASS\->accuracy(5); # global for all members of CLASS +\& # Note: This also applies to new()! +\& +\& $A = $x\->accuracy(); # read out accuracy that affects $x +\& $A = CLASS\->accuracy(); # read out global accuracy +.Ve +.Sp +Set or get the global or local accuracy, aka how many significant digits the +results have. If you set a global accuracy, then this also applies to \fBnew()\fR! +.Sp +Warning! The accuracy \fIsticks\fR, e.g. once you created a number under the +influence of \f(CW\*(C`CLASS\->accuracy($A)\*(C'\fR, all results from math operations with +that number will also be rounded. +.Sp +In most cases, you should probably round the results explicitly using one of +\&\*(L"\fBround()\fR\*(R" in Math::BigInt, \*(L"\fBbround()\fR\*(R" in Math::BigInt or \*(L"\fBbfround()\fR\*(R" in Math::BigInt +or by passing the desired accuracy to the math operation as additional +parameter: +.Sp +.Vb 4 +\& my $x = Math::BigInt\->new(30000); +\& my $y = Math::BigInt\->new(7); +\& print scalar $x\->copy()\->bdiv($y, 2); # print 4300 +\& print scalar $x\->copy()\->bdiv($y)\->bround(2); # print 4300 +.Ve +.IP "\fBprecision()\fR" 4 +.IX Item "precision()" +.Vb 4 +\& $x\->precision(\-2); # local for $x, round at the second +\& # digit right of the dot +\& $x\->precision(2); # ditto, round at the second digit +\& # left of the dot +\& +\& CLASS\->precision(5); # Global for all members of CLASS +\& # This also applies to new()! +\& CLASS\->precision(\-5); # ditto +\& +\& $P = CLASS\->precision(); # read out global precision +\& $P = $x\->precision(); # read out precision that affects $x +.Ve +.Sp +Note: You probably want to use \*(L"\fBaccuracy()\fR\*(R" instead. With \*(L"\fBaccuracy()\fR\*(R" you +set the number of digits each result should have, with \*(L"\fBprecision()\fR\*(R" you +set the place where to round! +.SS "Constructor methods" +.IX Subsection "Constructor methods" +.IP "\fBfrom_hex()\fR" 4 +.IX Item "from_hex()" +.Vb 2 +\& $x \-> from_hex("0x1.921fb54442d18p+1"); +\& $x = Math::BigFloat \-> from_hex("0x1.921fb54442d18p+1"); +.Ve +.Sp +Interpret input as a hexadecimal string.A prefix (\*(L"0x\*(R", \*(L"x\*(R", ignoring case) is +optional. A single underscore character (\*(L"_\*(R") may be placed between any two +digits. If the input is invalid, a NaN is returned. The exponent is in base 2 +using decimal digits. +.Sp +If called as an instance method, the value is assigned to the invocand. +.IP "\fBfrom_oct()\fR" 4 +.IX Item "from_oct()" +.Vb 2 +\& $x \-> from_oct("1.3267p\-4"); +\& $x = Math::BigFloat \-> from_oct("1.3267p\-4"); +.Ve +.Sp +Interpret input as an octal string. A single underscore character (\*(L"_\*(R") may be +placed between any two digits. If the input is invalid, a NaN is returned. The +exponent is in base 2 using decimal digits. +.Sp +If called as an instance method, the value is assigned to the invocand. +.IP "\fBfrom_bin()\fR" 4 +.IX Item "from_bin()" +.Vb 2 +\& $x \-> from_bin("0b1.1001p\-4"); +\& $x = Math::BigFloat \-> from_bin("0b1.1001p\-4"); +.Ve +.Sp +Interpret input as a hexadecimal string. A prefix (\*(L"0b\*(R" or \*(L"b\*(R", ignoring case) +is optional. A single underscore character (\*(L"_\*(R") may be placed between any two +digits. If the input is invalid, a NaN is returned. The exponent is in base 2 +using decimal digits. +.Sp +If called as an instance method, the value is assigned to the invocand. +.IP "\fBfrom_ieee754()\fR" 4 +.IX Item "from_ieee754()" +Interpret the input as a value encoded as described in \s-1IEEE754\-2008.\s0 The input +can be given as a byte string, hex string or binary string. The input is +assumed to be in big-endian byte-order. +.Sp +.Vb 4 +\& # both $dbl and $mbf are 3.141592... +\& $bytes = "\ex40\ex09\ex21\exfb\ex54\ex44\ex2d\ex18"; +\& $dbl = unpack "d>", $bytes; +\& $mbf = Math::BigFloat \-> from_ieee754($bytes, "binary64"); +.Ve +.IP "\fBbpi()\fR" 4 +.IX Item "bpi()" +.Vb 1 +\& print Math::BigFloat\->bpi(100), "\en"; +.Ve +.Sp +Calculate \s-1PI\s0 to N digits (including the 3 before the dot). The result is +rounded according to the current rounding mode, which defaults to \*(L"even\*(R". +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.SS "Arithmetic methods" +.IX Subsection "Arithmetic methods" +.IP "\fBbmuladd()\fR" 4 +.IX Item "bmuladd()" +.Vb 1 +\& $x\->bmuladd($y,$z); +.Ve +.Sp +Multiply \f(CW$x\fR by \f(CW$y\fR, and then add \f(CW$z\fR to the result. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbdiv()\fR" 4 +.IX Item "bdiv()" +.Vb 2 +\& $q = $x\->bdiv($y); +\& ($q, $r) = $x\->bdiv($y); +.Ve +.Sp +In scalar context, divides \f(CW$x\fR by \f(CW$y\fR and returns the result to the given or +default accuracy/precision. In list context, does floored division +(F\-division), returning an integer \f(CW$q\fR and a remainder \f(CW$r\fR so that \f(CW$x\fR = \f(CW$q\fR * \f(CW$y\fR + +\&\f(CW$r\fR. The remainer (modulo) is equal to what is returned by \f(CW\*(C`$x\->bmod($y)\*(C'\fR. +.IP "\fBbmod()\fR" 4 +.IX Item "bmod()" +.Vb 1 +\& $x\->bmod($y); +.Ve +.Sp +Returns \f(CW$x\fR modulo \f(CW$y\fR. When \f(CW$x\fR is finite, and \f(CW$y\fR is finite and non-zero, the +result is identical to the remainder after floored division (F\-division). If, +in addition, both \f(CW$x\fR and \f(CW$y\fR are integers, the result is identical to the result +from Perl's % operator. +.IP "\fBbexp()\fR" 4 +.IX Item "bexp()" +.Vb 1 +\& $x\->bexp($accuracy); # calculate e ** X +.Ve +.Sp +Calculates the expression \f(CW\*(C`e ** $x\*(C'\fR where \f(CW\*(C`e\*(C'\fR is Euler's number. +.Sp +This method was added in v1.82 of Math::BigInt (April 2007). +.IP "\fBbnok()\fR" 4 +.IX Item "bnok()" +.Vb 1 +\& $x\->bnok($y); # x over y (binomial coefficient n over k) +.Ve +.Sp +Calculates the binomial coefficient n over k, also called the \*(L"choose\*(R" +function. The result is equivalent to: +.Sp +.Vb 3 +\& ( n ) n! +\& | \- | = \-\-\-\-\-\-\- +\& ( k ) k!(n\-k)! +.Ve +.Sp +This method was added in v1.84 of Math::BigInt (April 2007). +.IP "\fBbsin()\fR" 4 +.IX Item "bsin()" +.Vb 2 +\& my $x = Math::BigFloat\->new(1); +\& print $x\->bsin(100), "\en"; +.Ve +.Sp +Calculate the sinus of \f(CW$x\fR, modifying \f(CW$x\fR in place. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbcos()\fR" 4 +.IX Item "bcos()" +.Vb 2 +\& my $x = Math::BigFloat\->new(1); +\& print $x\->bcos(100), "\en"; +.Ve +.Sp +Calculate the cosinus of \f(CW$x\fR, modifying \f(CW$x\fR in place. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbatan()\fR" 4 +.IX Item "batan()" +.Vb 2 +\& my $x = Math::BigFloat\->new(1); +\& print $x\->batan(100), "\en"; +.Ve +.Sp +Calculate the arcus tanges of \f(CW$x\fR, modifying \f(CW$x\fR in place. See also \*(L"\fBbatan2()\fR\*(R". +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbatan2()\fR" 4 +.IX Item "batan2()" +.Vb 3 +\& my $y = Math::BigFloat\->new(2); +\& my $x = Math::BigFloat\->new(3); +\& print $y\->batan2($x), "\en"; +.Ve +.Sp +Calculate the arcus tanges of \f(CW$y\fR divided by \f(CW$x\fR, modifying \f(CW$y\fR in place. +See also \*(L"\fBbatan()\fR\*(R". +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBas_float()\fR" 4 +.IX Item "as_float()" +This method is called when Math::BigFloat encounters an object it doesn't know +how to handle. For instance, assume \f(CW$x\fR is a Math::BigFloat, or subclass +thereof, and \f(CW$y\fR is defined, but not a Math::BigFloat, or subclass thereof. If +you do +.Sp +.Vb 1 +\& $x \-> badd($y); +.Ve +.Sp +\&\f(CW$y\fR needs to be converted into an object that \f(CW$x\fR can deal with. This is done by +first checking if \f(CW$y\fR is something that \f(CW$x\fR might be upgraded to. If that is the +case, no further attempts are made. The next is to see if \f(CW$y\fR supports the +method \f(CW\*(C`as_float()\*(C'\fR. The method \f(CW\*(C`as_float()\*(C'\fR is expected to return either an +object that has the same class as \f(CW$x\fR, a subclass thereof, or a string that +\&\f(CW\*(C`ref($x)\->new()\*(C'\fR can parse to create an object. +.Sp +In Math::BigFloat, \f(CW\*(C`as_float()\*(C'\fR has the same effect as \f(CW\*(C`copy()\*(C'\fR. +.IP "\fBto_ieee754()\fR" 4 +.IX Item "to_ieee754()" +Encodes the invocand as a byte string in the given format as specified in \s-1IEEE +754\-2008.\s0 Note that the encoded value is the nearest possible representation of +the value. This value might not be exactly the same as the value in the +invocand. +.Sp +.Vb 2 +\& # $x = 3.1415926535897932385 +\& $x = Math::BigFloat \-> bpi(30); +\& +\& $b = $x \-> to_ieee754("binary64"); # encode as 8 bytes +\& $h = unpack "H*", $b; # "400921fb54442d18" +\& +\& # 3.141592653589793115997963... +\& $y = Math::BigFloat \-> from_ieee754($h, "binary64"); +.Ve +.Sp +All binary formats in \s-1IEEE 754\-2008\s0 are accepted. For convenience, som aliases +are recognized: \*(L"half\*(R" for \*(L"binary16\*(R", \*(L"single\*(R" for \*(L"binary32\*(R", \*(L"double\*(R" for +\&\*(L"binary64\*(R", \*(L"quadruple\*(R" for \*(L"binary128\*(R", \*(L"octuple\*(R" for \*(L"binary256\*(R", and +\&\*(L"sexdecuple\*(R" for \*(L"binary512\*(R". +.Sp +See also . +.SS "\s-1ACCURACY AND PRECISION\s0" +.IX Subsection "ACCURACY AND PRECISION" +See also: Rounding. +.PP +Math::BigFloat supports both precision (rounding to a certain place before or +after the dot) and accuracy (rounding to a certain number of digits). For a +full documentation, examples and tips on these topics please see the large +section about rounding in Math::BigInt. +.PP +Since things like \f(CWsqrt(2)\fR or \f(CW\*(C`1 / 3\*(C'\fR must presented with a limited +accuracy lest a operation consumes all resources, each operation produces +no more than the requested number of digits. +.PP +If there is no global precision or accuracy set, \fBand\fR the operation in +question was not called with a requested precision or accuracy, \fBand\fR the +input \f(CW$x\fR has no accuracy or precision set, then a fallback parameter will +be used. For historical reasons, it is called \f(CW\*(C`div_scale\*(C'\fR and can be accessed +via: +.PP +.Vb 2 +\& $d = Math::BigFloat\->div_scale(); # query +\& Math::BigFloat\->div_scale($n); # set to $n digits +.Ve +.PP +The default value for \f(CW\*(C`div_scale\*(C'\fR is 40. +.PP +In case the result of one operation has more digits than specified, +it is rounded. The rounding mode taken is either the default mode, or the one +supplied to the operation after the \fIscale\fR: +.PP +.Vb 7 +\& $x = Math::BigFloat\->new(2); +\& Math::BigFloat\->accuracy(5); # 5 digits max +\& $y = $x\->copy()\->bdiv(3); # gives 0.66667 +\& $y = $x\->copy()\->bdiv(3,6); # gives 0.666667 +\& $y = $x\->copy()\->bdiv(3,6,undef,\*(Aqodd\*(Aq); # gives 0.666667 +\& Math::BigFloat\->round_mode(\*(Aqzero\*(Aq); +\& $y = $x\->copy()\->bdiv(3,6); # will also give 0.666667 +.Ve +.PP +Note that \f(CW\*(C`Math::BigFloat\->accuracy()\*(C'\fR and \f(CW\*(C`Math::BigFloat\->precision()\*(C'\fR +set the global variables, and thus \fBany\fR newly created number will be subject +to the global rounding \fBimmediately\fR. This means that in the examples above, the +\&\f(CW3\fR as argument to \f(CW\*(C`bdiv()\*(C'\fR will also get an accuracy of \fB5\fR. +.PP +It is less confusing to either calculate the result fully, and afterwards +round it explicitly, or use the additional parameters to the math +functions like so: +.PP +.Vb 4 +\& use Math::BigFloat; +\& $x = Math::BigFloat\->new(2); +\& $y = $x\->copy()\->bdiv(3); +\& print $y\->bround(5),"\en"; # gives 0.66667 +\& +\& or +\& +\& use Math::BigFloat; +\& $x = Math::BigFloat\->new(2); +\& $y = $x\->copy()\->bdiv(3,5); # gives 0.66667 +\& print "$y\en"; +.Ve +.SS "Rounding" +.IX Subsection "Rounding" +.IP "bfround ( +$scale )" 4 +.IX Item "bfround ( +$scale )" +Rounds to the \f(CW$scale\fR'th place left from the '.', counting from the dot. +The first digit is numbered 1. +.IP "bfround ( \-$scale )" 4 +.IX Item "bfround ( -$scale )" +Rounds to the \f(CW$scale\fR'th place right from the '.', counting from the dot. +.IP "bfround ( 0 )" 4 +.IX Item "bfround ( 0 )" +Rounds to an integer. +.IP "bround ( +$scale )" 4 +.IX Item "bround ( +$scale )" +Preserves accuracy to \f(CW$scale\fR digits from the left (aka significant digits) and +pads the rest with zeros. If the number is between 1 and \-1, the significant +digits count from the first non-zero after the '.' +.IP "bround ( \-$scale ) and bround ( 0 )" 4 +.IX Item "bround ( -$scale ) and bround ( 0 )" +These are effectively no-ops. +.PP +All rounding functions take as a second parameter a rounding mode from one of +the following: 'even', 'odd', '+inf', '\-inf', 'zero', 'trunc' or 'common'. +.PP +The default rounding mode is 'even'. By using +\&\f(CW\*(C`Math::BigFloat\->round_mode($round_mode);\*(C'\fR you can get and set the default +mode for subsequent rounding. The usage of \f(CW\*(C`$Math::BigFloat::$round_mode\*(C'\fR is +no longer supported. +The second parameter to the round functions then overrides the default +temporarily. +.PP +The \f(CW\*(C`as_number()\*(C'\fR function returns a BigInt from a Math::BigFloat. It uses +\&'trunc' as rounding mode to make it equivalent to: +.PP +.Vb 2 +\& $x = 2.5; +\& $y = int($x) + 2; +.Ve +.PP +You can override this by passing the desired rounding mode as parameter to +\&\f(CW\*(C`as_number()\*(C'\fR: +.PP +.Vb 2 +\& $x = Math::BigFloat\->new(2.5); +\& $y = $x\->as_number(\*(Aqodd\*(Aq); # $y = 3 +.Ve +.SH "Autocreating constants" +.IX Header "Autocreating constants" +After \f(CW\*(C`use Math::BigFloat \*(Aq:constant\*(Aq\*(C'\fR all the floating point constants +in the given scope are converted to \f(CW\*(C`Math::BigFloat\*(C'\fR. This conversion +happens at compile time. +.PP +In particular +.PP +.Vb 1 +\& perl \-MMath::BigFloat=:constant \-e \*(Aqprint 2E\-100,"\en"\*(Aq +.Ve +.PP +prints the value of \f(CW\*(C`2E\-100\*(C'\fR. Note that without conversion of +constants the expression 2E\-100 will be calculated as normal floating point +number. +.PP +Please note that ':constant' does not affect integer constants, nor binary +nor hexadecimal constants. Use bignum or Math::BigInt to get this to +work. +.SS "Math library" +.IX Subsection "Math library" +Math with the numbers is done (by default) by a module called +Math::BigInt::Calc. This is equivalent to saying: +.PP +.Vb 1 +\& use Math::BigFloat lib => \*(AqCalc\*(Aq; +.Ve +.PP +You can change this by using: +.PP +.Vb 1 +\& use Math::BigFloat lib => \*(AqGMP\*(Aq; +.Ve +.PP +\&\fBNote\fR: General purpose packages should not be explicit about the library +to use; let the script author decide which is best. +.PP +Note: The keyword 'lib' will warn when the requested library could not be +loaded. To suppress the warning use 'try' instead: +.PP +.Vb 1 +\& use Math::BigFloat try => \*(AqGMP\*(Aq; +.Ve +.PP +If your script works with huge numbers and Calc is too slow for them, +you can also for the loading of one of these libraries and if none +of them can be used, the code will die: +.PP +.Vb 1 +\& use Math::BigFloat only => \*(AqGMP,Pari\*(Aq; +.Ve +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use Math::BigFloat lib => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +See the respective low-level library documentation for further details. +.PP +Please note that Math::BigFloat does \fBnot\fR use the denoted library itself, +but it merely passes the lib argument to Math::BigInt. So, instead of the need +to do: +.PP +.Vb 2 +\& use Math::BigInt lib => \*(AqGMP\*(Aq; +\& use Math::BigFloat; +.Ve +.PP +you can roll it all into one line: +.PP +.Vb 1 +\& use Math::BigFloat lib => \*(AqGMP\*(Aq; +.Ve +.PP +It is also possible to just require Math::BigFloat: +.PP +.Vb 1 +\& require Math::BigFloat; +.Ve +.PP +This will load the necessary things (like BigInt) when they are needed, and +automatically. +.PP +See Math::BigInt for more details than you ever wanted to know about using +a different low-level library. +.SS "Using Math::BigInt::Lite" +.IX Subsection "Using Math::BigInt::Lite" +For backwards compatibility reasons it is still possible to +request a different storage class for use with Math::BigFloat: +.PP +.Vb 1 +\& use Math::BigFloat with => \*(AqMath::BigInt::Lite\*(Aq; +.Ve +.PP +However, this request is ignored, as the current code now uses the low-level +math library for directly storing the number parts. +.SH "EXPORTS" +.IX Header "EXPORTS" +\&\f(CW\*(C`Math::BigFloat\*(C'\fR exports nothing by default, but can export the \f(CW\*(C`bpi()\*(C'\fR method: +.PP +.Vb 1 +\& use Math::BigFloat qw/bpi/; +\& +\& print bpi(10), "\en"; +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +Do not try to be clever to insert some operations in between switching +libraries: +.PP +.Vb 4 +\& require Math::BigFloat; +\& my $matter = Math::BigFloat\->bone() + 4; # load BigInt and Calc +\& Math::BigFloat\->import( lib => \*(AqPari\*(Aq ); # load Pari, too +\& my $anti_matter = Math::BigFloat\->bone()+4; # now use Pari +.Ve +.PP +This will create objects with numbers stored in two different backend libraries, +and \fB\s-1VERY BAD THINGS\s0\fR will happen when you use these together: +.PP +.Vb 1 +\& my $flash_and_bang = $matter + $anti_matter; # Don\*(Aqt do this! +.Ve +.IP "stringify, \fBbstr()\fR" 4 +.IX Item "stringify, bstr()" +Both stringify and \fBbstr()\fR now drop the leading '+'. The old code would return +\&'+1.23', the new returns '1.23'. See the documentation in Math::BigInt for +reasoning and details. +.IP "\fBbrsft()\fR" 4 +.IX Item "brsft()" +The following will probably not print what you expect: +.Sp +.Vb 2 +\& my $c = Math::BigFloat\->new(\*(Aq3.14159\*(Aq); +\& print $c\->brsft(3,10),"\en"; # prints 0.00314153.1415 +.Ve +.Sp +It prints both quotient and remainder, since print calls \f(CW\*(C`brsft()\*(C'\fR in list +context. Also, \f(CW\*(C`$c\->brsft()\*(C'\fR will modify \f(CW$c\fR, so be careful. +You probably want to use +.Sp +.Vb 3 +\& print scalar $c\->copy()\->brsft(3,10),"\en"; +\& # or if you really want to modify $c +\& print scalar $c\->brsft(3,10),"\en"; +.Ve +.Sp +instead. +.IP "Modifying and =" 4 +.IX Item "Modifying and =" +Beware of: +.Sp +.Vb 2 +\& $x = Math::BigFloat\->new(5); +\& $y = $x; +.Ve +.Sp +It will not do what you think, e.g. making a copy of \f(CW$x\fR. Instead it just makes +a second reference to the \fBsame\fR object and stores it in \f(CW$y\fR. Thus anything +that modifies \f(CW$x\fR will modify \f(CW$y\fR (except overloaded math operators), and vice +versa. See Math::BigInt for details and how to avoid that. +.IP "\fBprecision()\fR vs. \fBaccuracy()\fR" 4 +.IX Item "precision() vs. accuracy()" +A common pitfall is to use \*(L"\fBprecision()\fR\*(R" when you want to round a result to +a certain number of digits: +.Sp +.Vb 1 +\& use Math::BigFloat; +\& +\& Math::BigFloat\->precision(4); # does not do what you +\& # think it does +\& my $x = Math::BigFloat\->new(12345); # rounds $x to "12000"! +\& print "$x\en"; # print "12000" +\& my $y = Math::BigFloat\->new(3); # rounds $y to "0"! +\& print "$y\en"; # print "0" +\& $z = $x / $y; # 12000 / 0 => NaN! +\& print "$z\en"; +\& print $z\->precision(),"\en"; # 4 +.Ve +.Sp +Replacing \*(L"\fBprecision()\fR\*(R" with \*(L"\fBaccuracy()\fR\*(R" is probably not what you want, either: +.Sp +.Vb 1 +\& use Math::BigFloat; +\& +\& Math::BigFloat\->accuracy(4); # enables global rounding: +\& my $x = Math::BigFloat\->new(123456); # rounded immediately +\& # to "12350" +\& print "$x\en"; # print "123500" +\& my $y = Math::BigFloat\->new(3); # rounded to "3 +\& print "$y\en"; # print "3" +\& print $z = $x\->copy()\->bdiv($y),"\en"; # 41170 +\& print $z\->accuracy(),"\en"; # 4 +.Ve +.Sp +What you want to use instead is: +.Sp +.Vb 1 +\& use Math::BigFloat; +\& +\& my $x = Math::BigFloat\->new(123456); # no rounding +\& print "$x\en"; # print "123456" +\& my $y = Math::BigFloat\->new(3); # no rounding +\& print "$y\en"; # print "3" +\& print $z = $x\->copy()\->bdiv($y,4),"\en"; # 41150 +\& print $z\->accuracy(),"\en"; # undef +.Ve +.Sp +In addition to computing what you expected, the last example also does \fBnot\fR +\&\*(L"taint\*(R" the result with an accuracy or precision setting, which would +influence any further operation. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigint at rt.cpan.org\*(C'\fR, or through the web interface at + +(requires login). +We will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Math::BigFloat +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +MetaCPAN +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.IP "\(bu" 4 +The Bignum mailing list +.RS 4 +.IP "\(bu" 4 +Post to mailing list +.Sp +\&\f(CW\*(C`bignum at lists.scsys.co.uk\*(C'\fR +.IP "\(bu" 4 +View mailing list +.Sp + +.IP "\(bu" 4 +Subscribe/Unsubscribe +.Sp + +.RE +.RS 4 +.RE +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::BigFloat and Math::BigInt as well as the backends +Math::BigInt::FastCalc, Math::BigInt::GMP, and Math::BigInt::Pari. +.PP +The pragmas bignum, bigint and bigrat also might be of interest +because they solve the autoupgrading/downgrading issue, at least partly. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +Mark Biggar, overloaded interface by Ilya Zakharevich, 1996\-2001. +.IP "\(bu" 4 +Completely rewritten by Tels in 2001\-2008. +.IP "\(bu" 4 +Florian Ragwitz , 2010. +.IP "\(bu" 4 +Peter John Acklam , 2011\-. diff --git a/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ACalc.3 b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ACalc.3 new file mode 100644 index 0000000000000000000000000000000000000000..fffbc638a2e9e4a05105e12c75392f649295e720 --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ACalc.3 @@ -0,0 +1,175 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::BigInt::Calc 3" +.TH Math::BigInt::Calc 3 "2020-12-18" "perl v5.32.1" "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" +Math::BigInt::Calc \- Pure Perl module to support Math::BigInt +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # to use it with Math::BigInt +\& use Math::BigInt lib => \*(AqCalc\*(Aq; +\& +\& # to use it with Math::BigFloat +\& use Math::BigFloat lib => \*(AqCalc\*(Aq; +\& +\& # to use it with Math::BigRat +\& use Math::BigRat lib => \*(AqCalc\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Math::BigInt::Calc inherits from Math::BigInt::Lib. +.PP +In this library, the numbers are represented in base B = 10**N, where N is the +largest possible value that does not cause overflow in the intermediate +computations. The base B elements are stored in an array, with the least +significant element stored in array element zero. There are no leading zero +elements, except a single zero element when the number is zero. +.PP +For instance, if B = 10000, the number 1234567890 is represented internally +as [7890, 3456, 12]. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::BigInt::Lib for a description of the \s-1API.\s0 +.PP +Alternative libraries Math::BigInt::FastCalc, Math::BigInt::GMP, and +Math::BigInt::Pari. +.PP +Some of the modules that use these libraries Math::BigInt, +Math::BigFloat, and Math::BigRat. diff --git a/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3AFastCalc.3 b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3AFastCalc.3 new file mode 100644 index 0000000000000000000000000000000000000000..3163577b320da31da0a2a0f72c6264ce45fd8a0b --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3AFastCalc.3 @@ -0,0 +1,270 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::BigInt::FastCalc 3" +.TH Math::BigInt::FastCalc 3 "2020-12-18" "perl v5.32.1" "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" +Math::BigInt::FastCalc \- Math::BigInt::Calc with some XS for more speed +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # to use it with Math::BigInt +\& use Math::BigInt lib => \*(AqFastCalc\*(Aq; +\& +\& # to use it with Math::BigFloat +\& use Math::BigFloat lib => \*(AqFastCalc\*(Aq; +\& +\& # to use it with Math::BigRat +\& use Math::BigRat lib => \*(AqFastCalc\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Math::BigInt::FastCalc inherits from Math::BigInt::Calc. +.PP +Provides support for big integer calculations. Not intended to be used by +other modules. Other modules which sport the same functions can also be used +to support Math::BigInt, like Math::BigInt::GMP or Math::BigInt::Pari. +.PP +In order to allow for multiple big integer libraries, Math::BigInt was +rewritten to use library modules for core math routines. Any module which +follows the same \s-1API\s0 as this can be used instead by using the following: +.PP +.Vb 1 +\& use Math::BigInt lib => \*(Aqlibname\*(Aq; +.Ve +.PP +\&'libname' is either the long name ('Math::BigInt::Pari'), or only the short +version like 'Pari'. To use this library: +.PP +.Vb 1 +\& use Math::BigInt lib => \*(AqFastCalc\*(Aq; +.Ve +.SH "STORAGE" +.IX Header "STORAGE" +Math::BigInt::FastCalc works exactly like Math::BigInt::Calc. Numbers are +stored in decimal form chopped into parts. +.SH "METHODS" +.IX Header "METHODS" +The following functions are now implemented in FastCalc.xs: +.PP +.Vb 6 +\& _is_odd _is_even _is_one _is_zero +\& _is_two _is_ten +\& _zero _one _two _ten +\& _acmp _len +\& _inc _dec +\& _\|_strip_zeros _copy +.Ve +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigint\-fastcalc at rt.cpan.org\*(C'\fR, or through the web interface at + +(requires login). +We will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Math::BigInt::FastCalc +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +Search \s-1CPAN\s0 +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.IP "\(bu" 4 +The Bignum mailing list +.RS 4 +.IP "\(bu" 4 +Post to mailing list +.Sp +\&\f(CW\*(C`bignum at lists.scsys.co.uk\*(C'\fR +.IP "\(bu" 4 +View mailing list +.Sp + +.IP "\(bu" 4 +Subscribe/Unsubscribe +.Sp + +.RE +.RS 4 +.RE +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "AUTHORS" +.IX Header "AUTHORS" +Original math code by Mark Biggar, rewritten by Tels +in late 2000. +Separated from BigInt and shaped \s-1API\s0 with the help of John Peacock. +.PP +Fixed, sped-up and enhanced by Tels http://bloodgate.com 2001\-2003. +Further streamlining (api_version 1 etc.) by Tels 2004\-2007. +.PP +Bug-fixing by Peter John Acklam 2010\-2016. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::BigInt::Lib for a description of the \s-1API.\s0 +.PP +Alternative libraries Math::BigInt::Calc, Math::BigInt::GMP, and +Math::BigInt::Pari. +.PP +Some of the modules that use these libraries Math::BigInt, +Math::BigFloat, and Math::BigRat. diff --git a/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ALib.3 b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ALib.3 new file mode 100644 index 0000000000000000000000000000000000000000..819044496b81aa7fb00d5e8bfa1f23c7c704e3ed --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigInt%3A%3ALib.3 @@ -0,0 +1,657 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::BigInt::Lib 3" +.TH Math::BigInt::Lib 3 "2020-12-18" "perl v5.32.1" "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" +Math::BigInt::Lib \- virtual parent class for Math::BigInt libraries +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # In the backend library for Math::BigInt et al. +\& +\& package Math::BigInt::MyBackend; +\& +\& use Math::BigInt::lib; +\& our @ISA = qw< Math::BigInt::lib >; +\& +\& sub _new { ... } +\& sub _str { ... } +\& sub _add { ... } +\& str _sub { ... } +\& ... +\& +\& # In your main program. +\& +\& use Math::BigInt lib => \*(AqMyBackend\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides support for big integer calculations. It is not intended +to be used directly, but rather as a parent class for backend libraries used by +Math::BigInt, Math::BigFloat, Math::BigRat, and related modules. +.PP +Other backend libraries include Math::BigInt::Calc, Math::BigInt::FastCalc, +Math::BigInt::GMP, and Math::BigInt::Pari. +.PP +In order to allow for multiple big integer libraries, Math::BigInt was +rewritten to use a plug-in library for core math routines. Any module which +conforms to the \s-1API\s0 can be used by Math::BigInt by using this in your program: +.PP +.Vb 1 +\& use Math::BigInt lib => \*(Aqlibname\*(Aq; +.Ve +.PP +\&'libname' is either the long name, like 'Math::BigInt::Pari', or only the short +version, like 'Pari'. +.SS "General Notes" +.IX Subsection "General Notes" +A library only needs to deal with unsigned big integers. Testing of input +parameter validity is done by the caller, so there is no need to worry about +underflow (e.g., in \f(CW\*(C`_sub()\*(C'\fR and \f(CW\*(C`_dec()\*(C'\fR) or about division by zero (e.g., +in \f(CW\*(C`_div()\*(C'\fR and \f(CW\*(C`_mod()\*(C'\fR)) or similar cases. +.PP +Some libraries use methods that don't modify their argument, and some libraries +don't even use objects, but rather unblessed references. Because of this, +liberary methods are always called as class methods, not instance methods: +.PP +.Vb 3 +\& $x = Class \-> method($x, $y); # like this +\& $x = $x \-> method($y); # not like this ... +\& $x \-> method($y); # ... or like this +.Ve +.PP +And with boolean methods +.PP +.Vb 2 +\& $bool = Class \-> method($x, $y); # like this +\& $bool = $x \-> method($y); # not like this +.Ve +.PP +Return values are always objects, strings, Perl scalars, or true/false for +comparison routines. +.PP +\fI\s-1API\s0 version\fR +.IX Subsection "API version" +.IP "\s-1CLASS\-\s0>\fBapi_version()\fR" 4 +.IX Item "CLASS->api_version()" +This method is no longer used and can be omitted. Methods that are not +implemented by a subclass will be inherited from this class. +.PP +\fIConstructors\fR +.IX Subsection "Constructors" +.PP +The following methods are mandatory: \fB_new()\fR, \fB_str()\fR, \fB_add()\fR, and \fB_sub()\fR. +However, computations will be very slow without \fB_mul()\fR and \fB_div()\fR. +.IP "\s-1CLASS\-\s0>_new(\s-1STR\s0)" 4 +.IX Item "CLASS->_new(STR)" +Convert a string representing an unsigned decimal number to an object +representing the same number. The input is normalized, i.e., it matches +\&\f(CW\*(C`^(0|[1\-9]\ed*)$\*(C'\fR. +.IP "\s-1CLASS\-\s0>\fB_zero()\fR" 4 +.IX Item "CLASS->_zero()" +Return an object representing the number zero. +.IP "\s-1CLASS\-\s0>\fB_one()\fR" 4 +.IX Item "CLASS->_one()" +Return an object representing the number one. +.IP "\s-1CLASS\-\s0>\fB_two()\fR" 4 +.IX Item "CLASS->_two()" +Return an object representing the number two. +.IP "\s-1CLASS\-\s0>\fB_ten()\fR" 4 +.IX Item "CLASS->_ten()" +Return an object representing the number ten. +.IP "\s-1CLASS\-\s0>_from_bin(\s-1STR\s0)" 4 +.IX Item "CLASS->_from_bin(STR)" +Return an object given a string representing a binary number. The input has a +\&'0b' prefix and matches the regular expression \f(CW\*(C`^0[bB](0|1[01]*)$\*(C'\fR. +.IP "\s-1CLASS\-\s0>_from_oct(\s-1STR\s0)" 4 +.IX Item "CLASS->_from_oct(STR)" +Return an object given a string representing an octal number. The input has a +\&'0' prefix and matches the regular expression \f(CW\*(C`^0[1\-7]*$\*(C'\fR. +.IP "\s-1CLASS\-\s0>_from_hex(\s-1STR\s0)" 4 +.IX Item "CLASS->_from_hex(STR)" +Return an object given a string representing a hexadecimal number. The input +has a '0x' prefix and matches the regular expression +\&\f(CW\*(C`^0x(0|[1\-9a\-fA\-F][\eda\-fA\-F]*)$\*(C'\fR. +.IP "\s-1CLASS\-\s0>_from_bytes(\s-1STR\s0)" 4 +.IX Item "CLASS->_from_bytes(STR)" +Returns an object given a byte string representing the number. The byte string +is in big endian byte order, so the two-byte input string \*(L"\ex01\ex00\*(R" should +give an output value representing the number 256. +.IP "\s-1CLASS\-\s0>_from_base(\s-1STR, BASE, COLLSEQ\s0)" 4 +.IX Item "CLASS->_from_base(STR, BASE, COLLSEQ)" +Returns an object given a string \s-1STR,\s0 a base \s-1BASE,\s0 and a collation sequence +\&\s-1COLLSEQ.\s0 Each character in \s-1STR\s0 represents a numerical value identical to the +character's position in \s-1COLLSEQ.\s0 All characters in \s-1STR\s0 must be present in +\&\s-1COLLSEQ.\s0 +.Sp +If \s-1BASE\s0 is less than or equal to 94, and a collation sequence is not specified, +the following default collation sequence is used. It contains of all the 94 +printable \s-1ASCII\s0 characters except space/blank: +.Sp +.Vb 7 +\& 0123456789 # ASCII 48 to 57 +\& ABCDEFGHIJKLMNOPQRSTUVWXYZ # ASCII 65 to 90 +\& abcdefghijklmnopqrstuvwxyz # ASCII 97 to 122 +\& !"#$%&\*(Aq()*+,\-./ # ASCII 33 to 47 +\& :;<=>?@ # ASCII 58 to 64 +\& [\e]^_\` # ASCII 91 to 96 +\& {|}~ # ASCII 123 to 126 +.Ve +.Sp +If the default collation sequence is used, and the \s-1BASE\s0 is less than or equal +to 36, the letter case in \s-1STR\s0 is ignored. +.Sp +For instance, with base 3 and collation sequence \*(L"\-/|\*(R", the character \*(L"\-\*(R" +represents 0, \*(L"/\*(R" represents 1, and \*(L"|\*(R" represents 2. So if \s-1STR\s0 is \*(L"/|\-\*(R", the +output is 1 * 3**2 + 2 * 3**1 + 0 * 3**0 = 15. +.Sp +The following examples show standard binary, octal, decimal, and hexadecimal +conversion. All examples return 250. +.Sp +.Vb 4 +\& $x = $class \-> _from_base("11111010", 2) +\& $x = $class \-> _from_base("372", 8) +\& $x = $class \-> _from_base("250", 10) +\& $x = $class \-> _from_base("FA", 16) +.Ve +.Sp +Some more examples, all returning 250: +.Sp +.Vb 6 +\& $x = $class \-> _from_base("100021", 3) +\& $x = $class \-> _from_base("3322", 4) +\& $x = $class \-> _from_base("2000", 5) +\& $x = $class \-> _from_base("caaa", 5, "abcde") +\& $x = $class \-> _from_base("42", 62) +\& $x = $class \-> _from_base("2!", 94) +.Ve +.PP +\fIMathematical functions\fR +.IX Subsection "Mathematical functions" +.IP "\s-1CLASS\-\s0>_add(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_add(OBJ1, OBJ2)" +Returns the result of adding \s-1OBJ2\s0 to \s-1OBJ1.\s0 +.IP "\s-1CLASS\-\s0>_mul(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_mul(OBJ1, OBJ2)" +Returns the result of multiplying \s-1OBJ2\s0 and \s-1OBJ1.\s0 +.IP "\s-1CLASS\-\s0>_div(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_div(OBJ1, OBJ2)" +In scalar context, returns the quotient after dividing \s-1OBJ1\s0 by \s-1OBJ2\s0 and +truncating the result to an integer. In list context, return the quotient and +the remainder. +.IP "\s-1CLASS\-\s0>_sub(\s-1OBJ1, OBJ2, FLAG\s0)" 4 +.IX Item "CLASS->_sub(OBJ1, OBJ2, FLAG)" +.PD 0 +.IP "\s-1CLASS\-\s0>_sub(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_sub(OBJ1, OBJ2)" +.PD +Returns the result of subtracting \s-1OBJ2\s0 by \s-1OBJ1.\s0 If \f(CW\*(C`flag\*(C'\fR is false or omitted, +\&\s-1OBJ1\s0 might be modified. If \f(CW\*(C`flag\*(C'\fR is true, \s-1OBJ2\s0 might be modified. +.IP "\s-1CLASS\-\s0>_dec(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_dec(OBJ)" +Returns the result after decrementing \s-1OBJ\s0 by one. +.IP "\s-1CLASS\-\s0>_inc(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_inc(OBJ)" +Returns the result after incrementing \s-1OBJ\s0 by one. +.IP "\s-1CLASS\-\s0>_mod(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_mod(OBJ1, OBJ2)" +Returns \s-1OBJ1\s0 modulo \s-1OBJ2,\s0 i.e., the remainder after dividing \s-1OBJ1\s0 by \s-1OBJ2.\s0 +.IP "\s-1CLASS\-\s0>_sqrt(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_sqrt(OBJ)" +Returns the square root of \s-1OBJ,\s0 truncated to an integer. +.IP "\s-1CLASS\-\s0>_root(\s-1OBJ, N\s0)" 4 +.IX Item "CLASS->_root(OBJ, N)" +Returns the Nth root of \s-1OBJ,\s0 truncated to an integer. +.IP "\s-1CLASS\-\s0>_fac(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_fac(OBJ)" +Returns the factorial of \s-1OBJ,\s0 i.e., the product of all positive integers up to +and including \s-1OBJ.\s0 +.IP "\s-1CLASS\-\s0>_dfac(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_dfac(OBJ)" +Returns the double factorial of \s-1OBJ.\s0 If \s-1OBJ\s0 is an even integer, returns the +product of all positive, even integers up to and including \s-1OBJ,\s0 i.e., +2*4*6*...*OBJ. If \s-1OBJ\s0 is an odd integer, returns the product of all positive, +odd integers, i.e., 1*3*5*...*OBJ. +.IP "\s-1CLASS\-\s0>_pow(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_pow(OBJ1, OBJ2)" +Returns \s-1OBJ1\s0 raised to the power of \s-1OBJ2.\s0 By convention, 0**0 = 1. +.IP "\s-1CLASS\-\s0>_modinv(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_modinv(OBJ1, OBJ2)" +Returns the modular multiplicative inverse, i.e., return \s-1OBJ3\s0 so that +.Sp +.Vb 1 +\& (OBJ3 * OBJ1) % OBJ2 = 1 % OBJ2 +.Ve +.Sp +The result is returned as two arguments. If the modular multiplicative inverse +does not exist, both arguments are undefined. Otherwise, the arguments are a +number (object) and its sign (\*(L"+\*(R" or \*(L"\-\*(R"). +.Sp +The output value, with its sign, must either be a positive value in the range +1,2,...,OBJ2\-1 or the same value subtracted \s-1OBJ2.\s0 For instance, if the input +arguments are objects representing the numbers 7 and 5, the method must either +return an object representing the number 3 and a \*(L"+\*(R" sign, since (3*7) % 5 = 1 +% 5, or an object representing the number 2 and a \*(L"\-\*(R" sign, since (\-2*7) % 5 = 1 +% 5. +.IP "\s-1CLASS\-\s0>_modpow(\s-1OBJ1, OBJ2, OBJ3\s0)" 4 +.IX Item "CLASS->_modpow(OBJ1, OBJ2, OBJ3)" +Returns the modular exponentiation, i.e., (\s-1OBJ1\s0 ** \s-1OBJ2\s0) % \s-1OBJ3.\s0 +.IP "\s-1CLASS\-\s0>_rsft(\s-1OBJ, N, B\s0)" 4 +.IX Item "CLASS->_rsft(OBJ, N, B)" +Returns the result after shifting \s-1OBJ N\s0 digits to thee right in base B. This is +equivalent to performing integer division by B**N and discarding the remainder, +except that it might be much faster. +.Sp +For instance, if the object \f(CW$obj\fR represents the hexadecimal number 0xabcde, +then \f(CW\*(C`_rsft($obj, 2, 16)\*(C'\fR returns an object representing the number 0xabc. The +\&\*(L"remainer\*(R", 0xde, is discarded and not returned. +.IP "\s-1CLASS\-\s0>_lsft(\s-1OBJ, N, B\s0)" 4 +.IX Item "CLASS->_lsft(OBJ, N, B)" +Returns the result after shifting \s-1OBJ N\s0 digits to the left in base B. This is +equivalent to multiplying by B**N, except that it might be much faster. +.IP "\s-1CLASS\-\s0>_log_int(\s-1OBJ, B\s0)" 4 +.IX Item "CLASS->_log_int(OBJ, B)" +Returns the logarithm of \s-1OBJ\s0 to base \s-1BASE\s0 truncted to an integer. This method +has two output arguments, the \s-1OBJECT\s0 and a \s-1STATUS.\s0 The \s-1STATUS\s0 is Perl scalar; +it is 1 if \s-1OBJ\s0 is the exact result, 0 if the result was truncted to give \s-1OBJ,\s0 +and undef if it is unknown whether \s-1OBJ\s0 is the exact result. +.IP "\s-1CLASS\-\s0>_gcd(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_gcd(OBJ1, OBJ2)" +Returns the greatest common divisor of \s-1OBJ1\s0 and \s-1OBJ2.\s0 +.IP "\s-1CLASS\-\s0>_lcm(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_lcm(OBJ1, OBJ2)" +Return the least common multiple of \s-1OBJ1\s0 and \s-1OBJ2.\s0 +.IP "\s-1CLASS\-\s0>_fib(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_fib(OBJ)" +In scalar context, returns the nth Fibonacci number: \fB_fib\fR\|(0) returns 0, \fB_fib\fR\|(1) +returns 1, \fB_fib\fR\|(2) returns 1, \fB_fib\fR\|(3) returns 2 etc. In list context, returns +the Fibonacci numbers from F(0) to F(n): 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ... +.IP "\s-1CLASS\-\s0>_lucas(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_lucas(OBJ)" +In scalar context, returns the nth Lucas number: \fB_lucas\fR\|(0) returns 2, \fB_lucas\fR\|(1) +returns 1, \fB_lucas\fR\|(2) returns 3, etc. In list context, returns the Lucas numbers +from L(0) to L(n): 2, 1, 3, 4, 7, 11, 18, 29,47, 76, ... +.PP +\fIBitwise operators\fR +.IX Subsection "Bitwise operators" +.IP "\s-1CLASS\-\s0>_and(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_and(OBJ1, OBJ2)" +Returns bitwise and. +.IP "\s-1CLASS\-\s0>_or(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_or(OBJ1, OBJ2)" +Returns bitwise or. +.IP "\s-1CLASS\-\s0>_xor(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_xor(OBJ1, OBJ2)" +Returns bitwise exclusive or. +.IP "\s-1CLASS\-\s0>_sand(\s-1OBJ1, OBJ2, SIGN1, SIGN2\s0)" 4 +.IX Item "CLASS->_sand(OBJ1, OBJ2, SIGN1, SIGN2)" +Returns bitwise signed and. +.IP "\s-1CLASS\-\s0>_sor(\s-1OBJ1, OBJ2, SIGN1, SIGN2\s0)" 4 +.IX Item "CLASS->_sor(OBJ1, OBJ2, SIGN1, SIGN2)" +Returns bitwise signed or. +.IP "\s-1CLASS\-\s0>_sxor(\s-1OBJ1, OBJ2, SIGN1, SIGN2\s0)" 4 +.IX Item "CLASS->_sxor(OBJ1, OBJ2, SIGN1, SIGN2)" +Returns bitwise signed exclusive or. +.PP +\fIBoolean operators\fR +.IX Subsection "Boolean operators" +.IP "\s-1CLASS\-\s0>_is_zero(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_zero(OBJ)" +Returns a true value if \s-1OBJ\s0 is zero, and false value otherwise. +.IP "\s-1CLASS\-\s0>_is_one(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_one(OBJ)" +Returns a true value if \s-1OBJ\s0 is one, and false value otherwise. +.IP "\s-1CLASS\-\s0>_is_two(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_two(OBJ)" +Returns a true value if \s-1OBJ\s0 is two, and false value otherwise. +.IP "\s-1CLASS\-\s0>_is_ten(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_ten(OBJ)" +Returns a true value if \s-1OBJ\s0 is ten, and false value otherwise. +.IP "\s-1CLASS\-\s0>_is_even(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_even(OBJ)" +Return a true value if \s-1OBJ\s0 is an even integer, and a false value otherwise. +.IP "\s-1CLASS\-\s0>_is_odd(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_is_odd(OBJ)" +Return a true value if \s-1OBJ\s0 is an even integer, and a false value otherwise. +.IP "\s-1CLASS\-\s0>_acmp(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_acmp(OBJ1, OBJ2)" +Compare \s-1OBJ1\s0 and \s-1OBJ2\s0 and return \-1, 0, or 1, if \s-1OBJ1\s0 is numerically less than, +equal to, or larger than \s-1OBJ2,\s0 respectively. +.PP +\fIString conversion\fR +.IX Subsection "String conversion" +.IP "\s-1CLASS\-\s0>_str(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_str(OBJ)" +Returns a string representing \s-1OBJ\s0 in decimal notation. The returned string +should have no leading zeros, i.e., it should match \f(CW\*(C`^(0|[1\-9]\ed*)$\*(C'\fR. +.IP "\s-1CLASS\-\s0>_to_bin(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_to_bin(OBJ)" +Returns the binary string representation of \s-1OBJ.\s0 +.IP "\s-1CLASS\-\s0>_to_oct(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_to_oct(OBJ)" +Returns the octal string representation of the number. +.IP "\s-1CLASS\-\s0>_to_hex(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_to_hex(OBJ)" +Returns the hexadecimal string representation of the number. +.IP "\s-1CLASS\-\s0>_to_bytes(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_to_bytes(OBJ)" +Returns a byte string representation of \s-1OBJ.\s0 The byte string is in big endian +byte order, so if \s-1OBJ\s0 represents the number 256, the output should be the +two-byte string \*(L"\ex01\ex00\*(R". +.IP "\s-1CLASS\-\s0>_to_base(\s-1OBJ, BASE, COLLSEQ\s0)" 4 +.IX Item "CLASS->_to_base(OBJ, BASE, COLLSEQ)" +Returns a string representation of \s-1OBJ\s0 in base \s-1BASE\s0 with collation sequence +\&\s-1COLLSEQ.\s0 +.Sp +.Vb 2 +\& $val = $class \-> _new("210"); +\& $str = $class \-> _to_base($val, 10, "xyz") # $str is "zyx" +\& +\& $val = $class \-> _new("32"); +\& $str = $class \-> _to_base($val, 2, "\-|") # $str is "|\-\-\-\-\-" +.Ve +.Sp +See \fB_from_base()\fR for more information. +.IP "\s-1CLASS\-\s0>_as_bin(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_as_bin(OBJ)" +Like \f(CW\*(C`_to_bin()\*(C'\fR but with a '0b' prefix. +.IP "\s-1CLASS\-\s0>_as_oct(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_as_oct(OBJ)" +Like \f(CW\*(C`_to_oct()\*(C'\fR but with a '0' prefix. +.IP "\s-1CLASS\-\s0>_as_hex(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_as_hex(OBJ)" +Like \f(CW\*(C`_to_hex()\*(C'\fR but with a '0x' prefix. +.IP "\s-1CLASS\-\s0>_as_bytes(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_as_bytes(OBJ)" +This is an alias to \f(CW\*(C`_to_bytes()\*(C'\fR. +.PP +\fINumeric conversion\fR +.IX Subsection "Numeric conversion" +.IP "\s-1CLASS\-\s0>_num(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_num(OBJ)" +Returns a Perl scalar number representing the number \s-1OBJ\s0 as close as +possible. Since Perl scalars have limited precision, the returned value might +not be exactly the same as \s-1OBJ.\s0 +.PP +\fIMiscellaneous\fR +.IX Subsection "Miscellaneous" +.IP "\s-1CLASS\-\s0>_copy(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_copy(OBJ)" +Returns a true copy \s-1OBJ.\s0 +.IP "\s-1CLASS\-\s0>_len(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_len(OBJ)" +Returns the number of the decimal digits in \s-1OBJ.\s0 The output is a Perl scalar. +.IP "\s-1CLASS\-\s0>_zeros(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_zeros(OBJ)" +Returns the number of trailing decimal zeros. The output is a Perl scalar. The +number zero has no trailing decimal zeros. +.IP "\s-1CLASS\-\s0>_digit(\s-1OBJ, N\s0)" 4 +.IX Item "CLASS->_digit(OBJ, N)" +Returns the Nth digit in \s-1OBJ\s0 as a Perl scalar. N is a Perl scalar, where zero +refers to the rightmost (least significant) digit, and negative values count +from the left (most significant digit). If \f(CW$obj\fR represents the number 123, then +.Sp +.Vb 4 +\& CLASS\->_digit($obj, 0) # returns 3 +\& CLASS\->_digit($obj, 1) # returns 2 +\& CLASS\->_digit($obj, 2) # returns 1 +\& CLASS\->_digit($obj, \-1) # returns 1 +.Ve +.IP "\s-1CLASS\-\s0>_digitsum(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_digitsum(OBJ)" +Returns the sum of the base 10 digits. +.IP "\s-1CLASS\-\s0>_check(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_check(OBJ)" +Returns true if the object is invalid and false otherwise. Preferably, the true +value is a string describing the problem with the object. This is a check +routine to test the internal state of the object for corruption. +.IP "\s-1CLASS\-\s0>_set(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_set(OBJ)" +xxx +.SS "\s-1API\s0 version 2" +.IX Subsection "API version 2" +The following methods are required for an \s-1API\s0 version of 2 or greater. +.PP +\fIConstructors\fR +.IX Subsection "Constructors" +.IP "\s-1CLASS\-\s0>_1ex(N)" 4 +.IX Item "CLASS->_1ex(N)" +Return an object representing the number 10**N where N >= 0 is a Perl +scalar. +.PP +\fIMathematical functions\fR +.IX Subsection "Mathematical functions" +.IP "\s-1CLASS\-\s0>_nok(\s-1OBJ1, OBJ2\s0)" 4 +.IX Item "CLASS->_nok(OBJ1, OBJ2)" +Return the binomial coefficient \s-1OBJ1\s0 over \s-1OBJ1.\s0 +.PP +\fIMiscellaneous\fR +.IX Subsection "Miscellaneous" +.IP "\s-1CLASS\-\s0>_alen(\s-1OBJ\s0)" 4 +.IX Item "CLASS->_alen(OBJ)" +Return the approximate number of decimal digits of the object. The output is a +Perl scalar. +.SH "WRAP YOUR OWN" +.IX Header "WRAP YOUR OWN" +If you want to port your own favourite C library for big numbers to the +Math::BigInt interface, you can take any of the already existing modules as a +rough guideline. You should really wrap up the latest Math::BigInt and +Math::BigFloat testsuites with your module, and replace in them any of the +following: +.PP +.Vb 1 +\& use Math::BigInt; +.Ve +.PP +by this: +.PP +.Vb 1 +\& use Math::BigInt lib => \*(Aqyourlib\*(Aq; +.Ve +.PP +This way you ensure that your library really works 100% within Math::BigInt. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigint at rt.cpan.org\*(C'\fR, or through the web interface at + +(requires login). +We will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Math::BigInt::Calc +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +MetaCPAN +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.IP "\(bu" 4 +The Bignum mailing list +.RS 4 +.IP "\(bu" 4 +Post to mailing list +.Sp +\&\f(CW\*(C`bignum at lists.scsys.co.uk\*(C'\fR +.IP "\(bu" 4 +View mailing list +.Sp + +.IP "\(bu" 4 +Subscribe/Unsubscribe +.Sp + +.RE +.RS 4 +.RE +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "AUTHOR" +.IX Header "AUTHOR" +Peter John Acklam, +.PP +Code and documentation based on the Math::BigInt::Calc module by Tels + +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::BigInt, Math::BigInt::Calc, Math::BigInt::GMP, +Math::BigInt::FastCalc and Math::BigInt::Pari. diff --git a/data/miniconda3/man/man3/Math%3A%3ABigRat.3 b/data/miniconda3/man/man3/Math%3A%3ABigRat.3 new file mode 100644 index 0000000000000000000000000000000000000000..2e71552a12fc5089edfce6465f124b3514b55f02 --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigRat.3 @@ -0,0 +1,889 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::BigRat 3" +.TH Math::BigRat 3 "2020-12-18" "perl v5.32.1" "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" +Math::BigRat \- Arbitrary big rational numbers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Math::BigRat; +\& +\& my $x = Math::BigRat\->new(\*(Aq3/7\*(Aq); $x += \*(Aq5/9\*(Aq; +\& +\& print $x\->bstr(), "\en"; +\& print $x ** 2, "\en"; +\& +\& my $y = Math::BigRat\->new(\*(Aqinf\*(Aq); +\& print "$y ", ($y\->is_inf ? \*(Aqis\*(Aq : \*(Aqis not\*(Aq), " infinity\en"; +\& +\& my $z = Math::BigRat\->new(144); $z\->bsqrt(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Math::BigRat complements Math::BigInt and Math::BigFloat by providing support +for arbitrary big rational numbers. +.SS "\s-1MATH LIBRARY\s0" +.IX Subsection "MATH LIBRARY" +You can change the underlying module that does the low-level +math operations by using: +.PP +.Vb 1 +\& use Math::BigRat try => \*(AqGMP\*(Aq; +.Ve +.PP +Note: This needs Math::BigInt::GMP installed. +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use Math::BigRat try => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +If you want to get warned when the fallback occurs, replace \*(L"try\*(R" with \*(L"lib\*(R": +.PP +.Vb 1 +\& use Math::BigRat lib => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +If you want the code to die instead, replace \*(L"try\*(R" with \*(L"only\*(R": +.PP +.Vb 1 +\& use Math::BigRat only => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.SH "METHODS" +.IX Header "METHODS" +Any methods not listed here are derived from Math::BigFloat (or +Math::BigInt), so make sure you check these two modules for further +information. +.IP "\fBnew()\fR" 4 +.IX Item "new()" +.Vb 1 +\& $x = Math::BigRat\->new(\*(Aq1/3\*(Aq); +.Ve +.Sp +Create a new Math::BigRat object. Input can come in various forms: +.Sp +.Vb 9 +\& $x = Math::BigRat\->new(123); # scalars +\& $x = Math::BigRat\->new(\*(Aqinf\*(Aq); # infinity +\& $x = Math::BigRat\->new(\*(Aq123.3\*(Aq); # float +\& $x = Math::BigRat\->new(\*(Aq1/3\*(Aq); # simple string +\& $x = Math::BigRat\->new(\*(Aq1 / 3\*(Aq); # spaced +\& $x = Math::BigRat\->new(\*(Aq1 / 0.1\*(Aq); # w/ floats +\& $x = Math::BigRat\->new(Math::BigInt\->new(3)); # BigInt +\& $x = Math::BigRat\->new(Math::BigFloat\->new(\*(Aq3.1\*(Aq)); # BigFloat +\& $x = Math::BigRat\->new(Math::BigInt::Lite\->new(\*(Aq2\*(Aq)); # BigLite +\& +\& # You can also give D and N as different objects: +\& $x = Math::BigRat\->new( +\& Math::BigInt\->new(\-123), +\& Math::BigInt\->new(7), +\& ); # => \-123/7 +.Ve +.IP "\fBnumerator()\fR" 4 +.IX Item "numerator()" +.Vb 1 +\& $n = $x\->numerator(); +.Ve +.Sp +Returns a copy of the numerator (the part above the line) as signed BigInt. +.IP "\fBdenominator()\fR" 4 +.IX Item "denominator()" +.Vb 1 +\& $d = $x\->denominator(); +.Ve +.Sp +Returns a copy of the denominator (the part under the line) as positive BigInt. +.IP "\fBparts()\fR" 4 +.IX Item "parts()" +.Vb 1 +\& ($n, $d) = $x\->parts(); +.Ve +.Sp +Return a list consisting of (signed) numerator and (unsigned) denominator as +BigInts. +.IP "\fBnumify()\fR" 4 +.IX Item "numify()" +.Vb 1 +\& my $y = $x\->numify(); +.Ve +.Sp +Returns the object as a scalar. This will lose some data if the object +cannot be represented by a normal Perl scalar (integer or float), so +use \*(L"\fBas_int()\fR\*(R" or \*(L"\fBas_float()\fR\*(R" instead. +.Sp +This routine is automatically used whenever a scalar is required: +.Sp +.Vb 3 +\& my $x = Math::BigRat\->new(\*(Aq3/1\*(Aq); +\& @array = (0, 1, 2, 3); +\& $y = $array[$x]; # set $y to 3 +.Ve +.IP "\fBas_int()\fR" 4 +.IX Item "as_int()" +.PD 0 +.IP "\fBas_number()\fR" 4 +.IX Item "as_number()" +.PD +.Vb 2 +\& $x = Math::BigRat\->new(\*(Aq13/7\*(Aq); +\& print $x\->as_int(), "\en"; # \*(Aq1\*(Aq +.Ve +.Sp +Returns a copy of the object as BigInt, truncated to an integer. +.Sp +\&\f(CW\*(C`as_number()\*(C'\fR is an alias for \f(CW\*(C`as_int()\*(C'\fR. +.IP "\fBas_float()\fR" 4 +.IX Item "as_float()" +.Vb 2 +\& $x = Math::BigRat\->new(\*(Aq13/7\*(Aq); +\& print $x\->as_float(), "\en"; # \*(Aq1\*(Aq +\& +\& $x = Math::BigRat\->new(\*(Aq2/3\*(Aq); +\& print $x\->as_float(5), "\en"; # \*(Aq0.66667\*(Aq +.Ve +.Sp +Returns a copy of the object as BigFloat, preserving the +accuracy as wanted, or the default of 40 digits. +.Sp +This method was added in v0.22 of Math::BigRat (April 2008). +.IP "\fBas_hex()\fR" 4 +.IX Item "as_hex()" +.Vb 2 +\& $x = Math::BigRat\->new(\*(Aq13\*(Aq); +\& print $x\->as_hex(), "\en"; # \*(Aq0xd\*(Aq +.Ve +.Sp +Returns the BigRat as hexadecimal string. Works only for integers. +.IP "\fBas_bin()\fR" 4 +.IX Item "as_bin()" +.Vb 2 +\& $x = Math::BigRat\->new(\*(Aq13\*(Aq); +\& print $x\->as_bin(), "\en"; # \*(Aq0x1101\*(Aq +.Ve +.Sp +Returns the BigRat as binary string. Works only for integers. +.IP "\fBas_oct()\fR" 4 +.IX Item "as_oct()" +.Vb 2 +\& $x = Math::BigRat\->new(\*(Aq13\*(Aq); +\& print $x\->as_oct(), "\en"; # \*(Aq015\*(Aq +.Ve +.Sp +Returns the BigRat as octal string. Works only for integers. +.IP "\fBfrom_hex()\fR" 4 +.IX Item "from_hex()" +.Vb 1 +\& my $h = Math::BigRat\->from_hex(\*(Aq0x10\*(Aq); +.Ve +.Sp +Create a BigRat from a hexadecimal number in string form. +.IP "\fBfrom_oct()\fR" 4 +.IX Item "from_oct()" +.Vb 1 +\& my $o = Math::BigRat\->from_oct(\*(Aq020\*(Aq); +.Ve +.Sp +Create a BigRat from an octal number in string form. +.IP "\fBfrom_bin()\fR" 4 +.IX Item "from_bin()" +.Vb 1 +\& my $b = Math::BigRat\->from_bin(\*(Aq0b10000000\*(Aq); +.Ve +.Sp +Create a BigRat from an binary number in string form. +.IP "\fBbnan()\fR" 4 +.IX Item "bnan()" +.Vb 1 +\& $x = Math::BigRat\->bnan(); +.Ve +.Sp +Creates a new BigRat object representing NaN (Not A Number). +If used on an object, it will set it to NaN: +.Sp +.Vb 1 +\& $x\->bnan(); +.Ve +.IP "\fBbzero()\fR" 4 +.IX Item "bzero()" +.Vb 1 +\& $x = Math::BigRat\->bzero(); +.Ve +.Sp +Creates a new BigRat object representing zero. +If used on an object, it will set it to zero: +.Sp +.Vb 1 +\& $x\->bzero(); +.Ve +.IP "\fBbinf()\fR" 4 +.IX Item "binf()" +.Vb 1 +\& $x = Math::BigRat\->binf($sign); +.Ve +.Sp +Creates a new BigRat object representing infinity. The optional argument is +either '\-' or '+', indicating whether you want infinity or minus infinity. +If used on an object, it will set it to infinity: +.Sp +.Vb 2 +\& $x\->binf(); +\& $x\->binf(\*(Aq\-\*(Aq); +.Ve +.IP "\fBbone()\fR" 4 +.IX Item "bone()" +.Vb 1 +\& $x = Math::BigRat\->bone($sign); +.Ve +.Sp +Creates a new BigRat object representing one. The optional argument is +either '\-' or '+', indicating whether you want one or minus one. +If used on an object, it will set it to one: +.Sp +.Vb 2 +\& $x\->bone(); # +1 +\& $x\->bone(\*(Aq\-\*(Aq); # \-1 +.Ve +.IP "\fBlength()\fR" 4 +.IX Item "length()" +.Vb 1 +\& $len = $x\->length(); +.Ve +.Sp +Return the length of \f(CW$x\fR in digits for integer values. +.IP "\fBdigit()\fR" 4 +.IX Item "digit()" +.Vb 2 +\& print Math::BigRat\->new(\*(Aq123/1\*(Aq)\->digit(1); # 1 +\& print Math::BigRat\->new(\*(Aq123/1\*(Aq)\->digit(\-1); # 3 +.Ve +.Sp +Return the N'ths digit from X when X is an integer value. +.IP "\fBbnorm()\fR" 4 +.IX Item "bnorm()" +.Vb 1 +\& $x\->bnorm(); +.Ve +.Sp +Reduce the number to the shortest form. This routine is called +automatically whenever it is needed. +.IP "\fBbfac()\fR" 4 +.IX Item "bfac()" +.Vb 1 +\& $x\->bfac(); +.Ve +.Sp +Calculates the factorial of \f(CW$x\fR. For instance: +.Sp +.Vb 2 +\& print Math::BigRat\->new(\*(Aq3/1\*(Aq)\->bfac(), "\en"; # 1*2*3 +\& print Math::BigRat\->new(\*(Aq5/1\*(Aq)\->bfac(), "\en"; # 1*2*3*4*5 +.Ve +.Sp +Works currently only for integers. +.IP "\fBbround()\fR/\fBround()\fR/\fBbfround()\fR" 4 +.IX Item "bround()/round()/bfround()" +Are not yet implemented. +.IP "\fBbmod()\fR" 4 +.IX Item "bmod()" +.Vb 1 +\& $x\->bmod($y); +.Ve +.Sp +Returns \f(CW$x\fR modulo \f(CW$y\fR. When \f(CW$x\fR is finite, and \f(CW$y\fR is finite and non-zero, the +result is identical to the remainder after floored division (F\-division). If, +in addition, both \f(CW$x\fR and \f(CW$y\fR are integers, the result is identical to the result +from Perl's % operator. +.IP "\fBbmodinv()\fR" 4 +.IX Item "bmodinv()" +.Vb 1 +\& $x\->bmodinv($mod); # modular multiplicative inverse +.Ve +.Sp +Returns the multiplicative inverse of \f(CW$x\fR modulo \f(CW$mod\fR. If +.Sp +.Vb 1 +\& $y = $x \-> copy() \-> bmodinv($mod) +.Ve +.Sp +then \f(CW$y\fR is the number closest to zero, and with the same sign as \f(CW$mod\fR, +satisfying +.Sp +.Vb 1 +\& ($x * $y) % $mod = 1 % $mod +.Ve +.Sp +If \f(CW$x\fR and \f(CW$y\fR are non-zero, they must be relative primes, i.e., +\&\f(CW\*(C`bgcd($y, $mod)==1\*(C'\fR. '\f(CW\*(C`NaN\*(C'\fR' is returned when no modular multiplicative +inverse exists. +.IP "\fBbmodpow()\fR" 4 +.IX Item "bmodpow()" +.Vb 2 +\& $num\->bmodpow($exp,$mod); # modular exponentiation +\& # ($num**$exp % $mod) +.Ve +.Sp +Returns the value of \f(CW$num\fR taken to the power \f(CW$exp\fR in the modulus +\&\f(CW$mod\fR using binary exponentiation. \f(CW\*(C`bmodpow\*(C'\fR is far superior to +writing +.Sp +.Vb 1 +\& $num ** $exp % $mod +.Ve +.Sp +because it is much faster \- it reduces internal variables into +the modulus whenever possible, so it operates on smaller numbers. +.Sp +\&\f(CW\*(C`bmodpow\*(C'\fR also supports negative exponents. +.Sp +.Vb 1 +\& bmodpow($num, \-1, $mod) +.Ve +.Sp +is exactly equivalent to +.Sp +.Vb 1 +\& bmodinv($num, $mod) +.Ve +.IP "\fBbneg()\fR" 4 +.IX Item "bneg()" +.Vb 1 +\& $x\->bneg(); +.Ve +.Sp +Used to negate the object in-place. +.IP "\fBis_one()\fR" 4 +.IX Item "is_one()" +.Vb 1 +\& print "$x is 1\en" if $x\->is_one(); +.Ve +.Sp +Return true if \f(CW$x\fR is exactly one, otherwise false. +.IP "\fBis_zero()\fR" 4 +.IX Item "is_zero()" +.Vb 1 +\& print "$x is 0\en" if $x\->is_zero(); +.Ve +.Sp +Return true if \f(CW$x\fR is exactly zero, otherwise false. +.IP "\fBis_pos()\fR/\fBis_positive()\fR" 4 +.IX Item "is_pos()/is_positive()" +.Vb 1 +\& print "$x is >= 0\en" if $x\->is_positive(); +.Ve +.Sp +Return true if \f(CW$x\fR is positive (greater than or equal to zero), otherwise +false. Please note that '+inf' is also positive, while 'NaN' and '\-inf' aren't. +.Sp +\&\f(CW\*(C`is_positive()\*(C'\fR is an alias for \f(CW\*(C`is_pos()\*(C'\fR. +.IP "\fBis_neg()\fR/\fBis_negative()\fR" 4 +.IX Item "is_neg()/is_negative()" +.Vb 1 +\& print "$x is < 0\en" if $x\->is_negative(); +.Ve +.Sp +Return true if \f(CW$x\fR is negative (smaller than zero), otherwise false. Please +note that '\-inf' is also negative, while 'NaN' and '+inf' aren't. +.Sp +\&\f(CW\*(C`is_negative()\*(C'\fR is an alias for \f(CW\*(C`is_neg()\*(C'\fR. +.IP "\fBis_int()\fR" 4 +.IX Item "is_int()" +.Vb 1 +\& print "$x is an integer\en" if $x\->is_int(); +.Ve +.Sp +Return true if \f(CW$x\fR has a denominator of 1 (e.g. no fraction parts), otherwise +false. Please note that '\-inf', 'inf' and 'NaN' aren't integer. +.IP "\fBis_odd()\fR" 4 +.IX Item "is_odd()" +.Vb 1 +\& print "$x is odd\en" if $x\->is_odd(); +.Ve +.Sp +Return true if \f(CW$x\fR is odd, otherwise false. +.IP "\fBis_even()\fR" 4 +.IX Item "is_even()" +.Vb 1 +\& print "$x is even\en" if $x\->is_even(); +.Ve +.Sp +Return true if \f(CW$x\fR is even, otherwise false. +.IP "\fBbceil()\fR" 4 +.IX Item "bceil()" +.Vb 1 +\& $x\->bceil(); +.Ve +.Sp +Set \f(CW$x\fR to the next bigger integer value (e.g. truncate the number to integer +and then increment it by one). +.IP "\fBbfloor()\fR" 4 +.IX Item "bfloor()" +.Vb 1 +\& $x\->bfloor(); +.Ve +.Sp +Truncate \f(CW$x\fR to an integer value. +.IP "\fBbint()\fR" 4 +.IX Item "bint()" +.Vb 1 +\& $x\->bint(); +.Ve +.Sp +Round \f(CW$x\fR towards zero. +.IP "\fBbsqrt()\fR" 4 +.IX Item "bsqrt()" +.Vb 1 +\& $x\->bsqrt(); +.Ve +.Sp +Calculate the square root of \f(CW$x\fR. +.IP "\fBbroot()\fR" 4 +.IX Item "broot()" +.Vb 1 +\& $x\->broot($n); +.Ve +.Sp +Calculate the N'th root of \f(CW$x\fR. +.IP "\fBbadd()\fR" 4 +.IX Item "badd()" +.Vb 1 +\& $x\->badd($y); +.Ve +.Sp +Adds \f(CW$y\fR to \f(CW$x\fR and returns the result. +.IP "\fBbmul()\fR" 4 +.IX Item "bmul()" +.Vb 1 +\& $x\->bmul($y); +.Ve +.Sp +Multiplies \f(CW$y\fR to \f(CW$x\fR and returns the result. +.IP "\fBbsub()\fR" 4 +.IX Item "bsub()" +.Vb 1 +\& $x\->bsub($y); +.Ve +.Sp +Subtracts \f(CW$y\fR from \f(CW$x\fR and returns the result. +.IP "\fBbdiv()\fR" 4 +.IX Item "bdiv()" +.Vb 2 +\& $q = $x\->bdiv($y); +\& ($q, $r) = $x\->bdiv($y); +.Ve +.Sp +In scalar context, divides \f(CW$x\fR by \f(CW$y\fR and returns the result. In list context, +does floored division (F\-division), returning an integer \f(CW$q\fR and a remainder \f(CW$r\fR +so that \f(CW$x\fR = \f(CW$q\fR * \f(CW$y\fR + \f(CW$r\fR. The remainer (modulo) is equal to what is returned +by \f(CW\*(C`$x\-\*(C'\fRbmod($y)>. +.IP "\fBbdec()\fR" 4 +.IX Item "bdec()" +.Vb 1 +\& $x\->bdec(); +.Ve +.Sp +Decrements \f(CW$x\fR by 1 and returns the result. +.IP "\fBbinc()\fR" 4 +.IX Item "binc()" +.Vb 1 +\& $x\->binc(); +.Ve +.Sp +Increments \f(CW$x\fR by 1 and returns the result. +.IP "\fBcopy()\fR" 4 +.IX Item "copy()" +.Vb 1 +\& my $z = $x\->copy(); +.Ve +.Sp +Makes a deep copy of the object. +.Sp +Please see the documentation in Math::BigInt for further details. +.IP "\fBbstr()\fR/\fBbsstr()\fR" 4 +.IX Item "bstr()/bsstr()" +.Vb 3 +\& my $x = Math::BigRat\->new(\*(Aq8/4\*(Aq); +\& print $x\->bstr(), "\en"; # prints 1/2 +\& print $x\->bsstr(), "\en"; # prints 1/2 +.Ve +.Sp +Return a string representing this object. +.IP "\fBbcmp()\fR" 4 +.IX Item "bcmp()" +.Vb 1 +\& $x\->bcmp($y); +.Ve +.Sp +Compares \f(CW$x\fR with \f(CW$y\fR and takes the sign into account. +Returns \-1, 0, 1 or undef. +.IP "\fBbacmp()\fR" 4 +.IX Item "bacmp()" +.Vb 1 +\& $x\->bacmp($y); +.Ve +.Sp +Compares \f(CW$x\fR with \f(CW$y\fR while ignoring their sign. Returns \-1, 0, 1 or undef. +.IP "\fBbeq()\fR" 4 +.IX Item "beq()" +.Vb 1 +\& $x \-> beq($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is equal to \f(CW$y\fR, and false otherwise. +.IP "\fBbne()\fR" 4 +.IX Item "bne()" +.Vb 1 +\& $x \-> bne($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is not equal to \f(CW$y\fR, and false otherwise. +.IP "\fBblt()\fR" 4 +.IX Item "blt()" +.Vb 1 +\& $x \-> blt($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is equal to \f(CW$y\fR, and false otherwise. +.IP "\fBble()\fR" 4 +.IX Item "ble()" +.Vb 1 +\& $x \-> ble($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is less than or equal to \f(CW$y\fR, and false +otherwise. +.IP "\fBbgt()\fR" 4 +.IX Item "bgt()" +.Vb 1 +\& $x \-> bgt($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is greater than \f(CW$y\fR, and false otherwise. +.IP "\fBbge()\fR" 4 +.IX Item "bge()" +.Vb 1 +\& $x \-> bge($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is greater than or equal to \f(CW$y\fR, and false +otherwise. +.IP "\fBblsft()\fR/\fBbrsft()\fR" 4 +.IX Item "blsft()/brsft()" +Used to shift numbers left/right. +.Sp +Please see the documentation in Math::BigInt for further details. +.IP "\fBband()\fR" 4 +.IX Item "band()" +.Vb 1 +\& $x\->band($y); # bitwise and +.Ve +.IP "\fBbior()\fR" 4 +.IX Item "bior()" +.Vb 1 +\& $x\->bior($y); # bitwise inclusive or +.Ve +.IP "\fBbxor()\fR" 4 +.IX Item "bxor()" +.Vb 1 +\& $x\->bxor($y); # bitwise exclusive or +.Ve +.IP "\fBbnot()\fR" 4 +.IX Item "bnot()" +.Vb 1 +\& $x\->bnot(); # bitwise not (two\*(Aqs complement) +.Ve +.IP "\fBbpow()\fR" 4 +.IX Item "bpow()" +.Vb 1 +\& $x\->bpow($y); +.Ve +.Sp +Compute \f(CW$x\fR ** \f(CW$y\fR. +.Sp +Please see the documentation in Math::BigInt for further details. +.IP "\fBblog()\fR" 4 +.IX Item "blog()" +.Vb 1 +\& $x\->blog($base, $accuracy); # logarithm of x to the base $base +.Ve +.Sp +If \f(CW$base\fR is not defined, Euler's number (e) is used: +.Sp +.Vb 1 +\& print $x\->blog(undef, 100); # log(x) to 100 digits +.Ve +.IP "\fBbexp()\fR" 4 +.IX Item "bexp()" +.Vb 1 +\& $x\->bexp($accuracy); # calculate e ** X +.Ve +.Sp +Calculates two integers A and B so that A/B is equal to \f(CW\*(C`e ** $x\*(C'\fR, where \f(CW\*(C`e\*(C'\fR is +Euler's number. +.Sp +This method was added in v0.20 of Math::BigRat (May 2007). +.Sp +See also \f(CW\*(C`blog()\*(C'\fR. +.IP "\fBbnok()\fR" 4 +.IX Item "bnok()" +.Vb 1 +\& $x\->bnok($y); # x over y (binomial coefficient n over k) +.Ve +.Sp +Calculates the binomial coefficient n over k, also called the \*(L"choose\*(R" +function. The result is equivalent to: +.Sp +.Vb 3 +\& ( n ) n! +\& | \- | = \-\-\-\-\-\-\- +\& ( k ) k!(n\-k)! +.Ve +.Sp +This method was added in v0.20 of Math::BigRat (May 2007). +.IP "\fBconfig()\fR" 4 +.IX Item "config()" +.Vb 2 +\& Math::BigRat\->config("trap_nan" => 1); # set +\& $accu = Math::BigRat\->config("accuracy"); # get +.Ve +.Sp +Set or get configuration parameter values. Read-only parameters are marked as +\&\s-1RO.\s0 Read-write parameters are marked as \s-1RW.\s0 The following parameters are +supported. +.Sp +.Vb 10 +\& Parameter RO/RW Description +\& Example +\& ============================================================ +\& lib RO Name of the math backend library +\& Math::BigInt::Calc +\& lib_version RO Version of the math backend library +\& 0.30 +\& class RO The class of config you just called +\& Math::BigRat +\& version RO version number of the class you used +\& 0.10 +\& upgrade RW To which class numbers are upgraded +\& undef +\& downgrade RW To which class numbers are downgraded +\& undef +\& precision RW Global precision +\& undef +\& accuracy RW Global accuracy +\& undef +\& round_mode RW Global round mode +\& even +\& div_scale RW Fallback accuracy for div, sqrt etc. +\& 40 +\& trap_nan RW Trap NaNs +\& undef +\& trap_inf RW Trap +inf/\-inf +\& undef +.Ve +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigrat at rt.cpan.org\*(C'\fR, or through the web interface at + +(requires login). +We will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Math::BigRat +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +Search \s-1CPAN\s0 +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.IP "\(bu" 4 +The Bignum mailing list +.RS 4 +.IP "\(bu" 4 +Post to mailing list +.Sp +\&\f(CW\*(C`bignum at lists.scsys.co.uk\*(C'\fR +.IP "\(bu" 4 +View mailing list +.Sp + +.IP "\(bu" 4 +Subscribe/Unsubscribe +.Sp + +.RE +.RS 4 +.RE +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +bigrat, Math::BigFloat and Math::BigInt as well as the backends +Math::BigInt::FastCalc, Math::BigInt::GMP, and Math::BigInt::Pari. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +Tels 2001\-2009. +.IP "\(bu" 4 +Maintained by Peter John Acklam 2011\- diff --git a/data/miniconda3/man/man3/Math%3A%3AComplex.3 b/data/miniconda3/man/man3/Math%3A%3AComplex.3 new file mode 100644 index 0000000000000000000000000000000000000000..ba7b9c6c8dd358c61ccd5382541522d5444e1821 --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3AComplex.3 @@ -0,0 +1,744 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::Complex 3" +.TH Math::Complex 3 "2020-12-18" "perl v5.32.1" "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" +Math::Complex \- complex numbers and associated mathematical functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Math::Complex; +\& +\& $z = Math::Complex\->make(5, 6); +\& $t = 4 \- 3*i + $z; +\& $j = cplxe(1, 2*pi/3); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package lets you create and manipulate complex numbers. By default, +\&\fIPerl\fR limits itself to real numbers, but an extra \f(CW\*(C`use\*(C'\fR statement brings +full complex support, along with a full set of mathematical functions +typically associated with and/or extended to complex numbers. +.PP +If you wonder what complex numbers are, they were invented to be able to solve +the following equation: +.PP +.Vb 1 +\& x*x = \-1 +.Ve +.PP +and by definition, the solution is noted \fIi\fR (engineers use \fIj\fR instead since +\&\fIi\fR usually denotes an intensity, but the name does not matter). The number +\&\fIi\fR is a pure \fIimaginary\fR number. +.PP +The arithmetics with pure imaginary numbers works just like you would expect +it with real numbers... you just have to remember that +.PP +.Vb 1 +\& i*i = \-1 +.Ve +.PP +so you have: +.PP +.Vb 5 +\& 5i + 7i = i * (5 + 7) = 12i +\& 4i \- 3i = i * (4 \- 3) = i +\& 4i * 2i = \-8 +\& 6i / 2i = 3 +\& 1 / i = \-i +.Ve +.PP +Complex numbers are numbers that have both a real part and an imaginary +part, and are usually noted: +.PP +.Vb 1 +\& a + bi +.Ve +.PP +where \f(CW\*(C`a\*(C'\fR is the \fIreal\fR part and \f(CW\*(C`b\*(C'\fR is the \fIimaginary\fR part. The +arithmetic with complex numbers is straightforward. You have to +keep track of the real and the imaginary parts, but otherwise the +rules used for real numbers just apply: +.PP +.Vb 2 +\& (4 + 3i) + (5 \- 2i) = (4 + 5) + i(3 \- 2) = 9 + i +\& (2 + i) * (4 \- i) = 2*4 + 4i \-2i \-i*i = 8 + 2i + 1 = 9 + 2i +.Ve +.PP +A graphical representation of complex numbers is possible in a plane +(also called the \fIcomplex plane\fR, but it's really a 2D plane). +The number +.PP +.Vb 1 +\& z = a + bi +.Ve +.PP +is the point whose coordinates are (a, b). Actually, it would +be the vector originating from (0, 0) to (a, b). It follows that the addition +of two complex numbers is a vectorial addition. +.PP +Since there is a bijection between a point in the 2D plane and a complex +number (i.e. the mapping is unique and reciprocal), a complex number +can also be uniquely identified with polar coordinates: +.PP +.Vb 1 +\& [rho, theta] +.Ve +.PP +where \f(CW\*(C`rho\*(C'\fR is the distance to the origin, and \f(CW\*(C`theta\*(C'\fR the angle between +the vector and the \fIx\fR axis. There is a notation for this using the +exponential form, which is: +.PP +.Vb 1 +\& rho * exp(i * theta) +.Ve +.PP +where \fIi\fR is the famous imaginary number introduced above. Conversion +between this form and the cartesian form \f(CW\*(C`a + bi\*(C'\fR is immediate: +.PP +.Vb 2 +\& a = rho * cos(theta) +\& b = rho * sin(theta) +.Ve +.PP +which is also expressed by this formula: +.PP +.Vb 1 +\& z = rho * exp(i * theta) = rho * (cos theta + i * sin theta) +.Ve +.PP +In other words, it's the projection of the vector onto the \fIx\fR and \fIy\fR +axes. Mathematicians call \fIrho\fR the \fInorm\fR or \fImodulus\fR and \fItheta\fR +the \fIargument\fR of the complex number. The \fInorm\fR of \f(CW\*(C`z\*(C'\fR is +marked here as \f(CWabs(z)\fR. +.PP +The polar notation (also known as the trigonometric representation) is +much more handy for performing multiplications and divisions of +complex numbers, whilst the cartesian notation is better suited for +additions and subtractions. Real numbers are on the \fIx\fR axis, and +therefore \fIy\fR or \fItheta\fR is zero or \fIpi\fR. +.PP +All the common operations that can be performed on a real number have +been defined to work on complex numbers as well, and are merely +\&\fIextensions\fR of the operations defined on real numbers. This means +they keep their natural meaning when there is no imaginary part, provided +the number is within their definition set. +.PP +For instance, the \f(CW\*(C`sqrt\*(C'\fR routine which computes the square root of +its argument is only defined for non-negative real numbers and yields a +non-negative real number (it is an application from \fBR+\fR to \fBR+\fR). +If we allow it to return a complex number, then it can be extended to +negative real numbers to become an application from \fBR\fR to \fBC\fR (the +set of complex numbers): +.PP +.Vb 1 +\& sqrt(x) = x >= 0 ? sqrt(x) : sqrt(\-x)*i +.Ve +.PP +It can also be extended to be an application from \fBC\fR to \fBC\fR, +whilst its restriction to \fBR\fR behaves as defined above by using +the following definition: +.PP +.Vb 1 +\& sqrt(z = [r,t]) = sqrt(r) * exp(i * t/2) +.Ve +.PP +Indeed, a negative real number can be noted \f(CW\*(C`[x,pi]\*(C'\fR (the modulus +\&\fIx\fR is always non-negative, so \f(CW\*(C`[x,pi]\*(C'\fR is really \f(CW\*(C`\-x\*(C'\fR, a negative +number) and the above definition states that +.PP +.Vb 1 +\& sqrt([x,pi]) = sqrt(x) * exp(i*pi/2) = [sqrt(x),pi/2] = sqrt(x)*i +.Ve +.PP +which is exactly what we had defined for negative real numbers above. +The \f(CW\*(C`sqrt\*(C'\fR returns only one of the solutions: if you want the both, +use the \f(CW\*(C`root\*(C'\fR function. +.PP +All the common mathematical functions defined on real numbers that +are extended to complex numbers share that same property of working +\&\fIas usual\fR when the imaginary part is zero (otherwise, it would not +be called an extension, would it?). +.PP +A \fInew\fR operation possible on a complex number that is +the identity for real numbers is called the \fIconjugate\fR, and is noted +with a horizontal bar above the number, or \f(CW\*(C`~z\*(C'\fR here. +.PP +.Vb 2 +\& z = a + bi +\& ~z = a \- bi +.Ve +.PP +Simple... Now look: +.PP +.Vb 1 +\& z * ~z = (a + bi) * (a \- bi) = a*a + b*b +.Ve +.PP +We saw that the norm of \f(CW\*(C`z\*(C'\fR was noted \f(CWabs(z)\fR and was defined as the +distance to the origin, also known as: +.PP +.Vb 1 +\& rho = abs(z) = sqrt(a*a + b*b) +.Ve +.PP +so +.PP +.Vb 1 +\& z * ~z = abs(z) ** 2 +.Ve +.PP +If z is a pure real number (i.e. \f(CW\*(C`b == 0\*(C'\fR), then the above yields: +.PP +.Vb 1 +\& a * a = abs(a) ** 2 +.Ve +.PP +which is true (\f(CW\*(C`abs\*(C'\fR has the regular meaning for real number, i.e. stands +for the absolute value). This example explains why the norm of \f(CW\*(C`z\*(C'\fR is +noted \f(CWabs(z)\fR: it extends the \f(CW\*(C`abs\*(C'\fR function to complex numbers, yet +is the regular \f(CW\*(C`abs\*(C'\fR we know when the complex number actually has no +imaginary part... This justifies \fIa posteriori\fR our use of the \f(CW\*(C`abs\*(C'\fR +notation for the norm. +.SH "OPERATIONS" +.IX Header "OPERATIONS" +Given the following notations: +.PP +.Vb 3 +\& z1 = a + bi = r1 * exp(i * t1) +\& z2 = c + di = r2 * exp(i * t2) +\& z = +.Ve +.PP +the following (overloaded) operations are supported on complex numbers: +.PP +.Vb 10 +\& z1 + z2 = (a + c) + i(b + d) +\& z1 \- z2 = (a \- c) + i(b \- d) +\& z1 * z2 = (r1 * r2) * exp(i * (t1 + t2)) +\& z1 / z2 = (r1 / r2) * exp(i * (t1 \- t2)) +\& z1 ** z2 = exp(z2 * log z1) +\& ~z = a \- bi +\& abs(z) = r1 = sqrt(a*a + b*b) +\& sqrt(z) = sqrt(r1) * exp(i * t/2) +\& exp(z) = exp(a) * exp(i * b) +\& log(z) = log(r1) + i*t +\& sin(z) = 1/2i (exp(i * z1) \- exp(\-i * z)) +\& cos(z) = 1/2 (exp(i * z1) + exp(\-i * z)) +\& atan2(y, x) = atan(y / x) # Minding the right quadrant, note the order. +.Ve +.PP +The definition used for complex arguments of \fBatan2()\fR is +.PP +.Vb 1 +\& \-i log((x + iy)/sqrt(x*x+y*y)) +.Ve +.PP +Note that atan2(0, 0) is not well-defined. +.PP +The following extra operations are supported on both real and complex +numbers: +.PP +.Vb 4 +\& Re(z) = a +\& Im(z) = b +\& arg(z) = t +\& abs(z) = r +\& +\& cbrt(z) = z ** (1/3) +\& log10(z) = log(z) / log(10) +\& logn(z, n) = log(z) / log(n) +\& +\& tan(z) = sin(z) / cos(z) +\& +\& csc(z) = 1 / sin(z) +\& sec(z) = 1 / cos(z) +\& cot(z) = 1 / tan(z) +\& +\& asin(z) = \-i * log(i*z + sqrt(1\-z*z)) +\& acos(z) = \-i * log(z + i*sqrt(1\-z*z)) +\& atan(z) = i/2 * log((i+z) / (i\-z)) +\& +\& acsc(z) = asin(1 / z) +\& asec(z) = acos(1 / z) +\& acot(z) = atan(1 / z) = \-i/2 * log((i+z) / (z\-i)) +\& +\& sinh(z) = 1/2 (exp(z) \- exp(\-z)) +\& cosh(z) = 1/2 (exp(z) + exp(\-z)) +\& tanh(z) = sinh(z) / cosh(z) = (exp(z) \- exp(\-z)) / (exp(z) + exp(\-z)) +\& +\& csch(z) = 1 / sinh(z) +\& sech(z) = 1 / cosh(z) +\& coth(z) = 1 / tanh(z) +\& +\& asinh(z) = log(z + sqrt(z*z+1)) +\& acosh(z) = log(z + sqrt(z*z\-1)) +\& atanh(z) = 1/2 * log((1+z) / (1\-z)) +\& +\& acsch(z) = asinh(1 / z) +\& asech(z) = acosh(1 / z) +\& acoth(z) = atanh(1 / z) = 1/2 * log((1+z) / (z\-1)) +.Ve +.PP +\&\fIarg\fR, \fIabs\fR, \fIlog\fR, \fIcsc\fR, \fIcot\fR, \fIacsc\fR, \fIacot\fR, \fIcsch\fR, +\&\fIcoth\fR, \fIacosech\fR, \fIacotanh\fR, have aliases \fIrho\fR, \fItheta\fR, \fIln\fR, +\&\fIcosec\fR, \fIcotan\fR, \fIacosec\fR, \fIacotan\fR, \fIcosech\fR, \fIcotanh\fR, +\&\fIacosech\fR, \fIacotanh\fR, respectively. \f(CW\*(C`Re\*(C'\fR, \f(CW\*(C`Im\*(C'\fR, \f(CW\*(C`arg\*(C'\fR, \f(CW\*(C`abs\*(C'\fR, +\&\f(CW\*(C`rho\*(C'\fR, and \f(CW\*(C`theta\*(C'\fR can be used also as mutators. The \f(CW\*(C`cbrt\*(C'\fR +returns only one of the solutions: if you want all three, use the +\&\f(CW\*(C`root\*(C'\fR function. +.PP +The \fIroot\fR function is available to compute all the \fIn\fR +roots of some complex, where \fIn\fR is a strictly positive integer. +There are exactly \fIn\fR such roots, returned as a list. Getting the +number mathematicians call \f(CW\*(C`j\*(C'\fR such that: +.PP +.Vb 1 +\& 1 + j + j*j = 0; +.Ve +.PP +is a simple matter of writing: +.PP +.Vb 1 +\& $j = ((root(1, 3))[1]; +.Ve +.PP +The \fIk\fRth root for \f(CW\*(C`z = [r,t]\*(C'\fR is given by: +.PP +.Vb 1 +\& (root(z, n))[k] = r**(1/n) * exp(i * (t + 2*k*pi)/n) +.Ve +.PP +You can return the \fIk\fRth root directly by \f(CW\*(C`root(z, n, k)\*(C'\fR, +indexing starting from \fIzero\fR and ending at \fIn \- 1\fR. +.PP +The \fIspaceship\fR numeric comparison operator, <=>, is also +defined. In order to ensure its restriction to real numbers is conform +to what you would expect, the comparison is run on the real part of +the complex number first, and imaginary parts are compared only when +the real parts match. +.SH "CREATION" +.IX Header "CREATION" +To create a complex number, use either: +.PP +.Vb 2 +\& $z = Math::Complex\->make(3, 4); +\& $z = cplx(3, 4); +.Ve +.PP +if you know the cartesian form of the number, or +.PP +.Vb 1 +\& $z = 3 + 4*i; +.Ve +.PP +if you like. To create a number using the polar form, use either: +.PP +.Vb 2 +\& $z = Math::Complex\->emake(5, pi/3); +\& $x = cplxe(5, pi/3); +.Ve +.PP +instead. The first argument is the modulus, the second is the angle +(in radians, the full circle is 2*pi). (Mnemonic: \f(CW\*(C`e\*(C'\fR is used as a +notation for complex numbers in the polar form). +.PP +It is possible to write: +.PP +.Vb 1 +\& $x = cplxe(\-3, pi/4); +.Ve +.PP +but that will be silently converted into \f(CW\*(C`[3,\-3pi/4]\*(C'\fR, since the +modulus must be non-negative (it represents the distance to the origin +in the complex plane). +.PP +It is also possible to have a complex number as either argument of the +\&\f(CW\*(C`make\*(C'\fR, \f(CW\*(C`emake\*(C'\fR, \f(CW\*(C`cplx\*(C'\fR, and \f(CW\*(C`cplxe\*(C'\fR: the appropriate component of +the argument will be used. +.PP +.Vb 2 +\& $z1 = cplx(\-2, 1); +\& $z2 = cplx($z1, 4); +.Ve +.PP +The \f(CW\*(C`new\*(C'\fR, \f(CW\*(C`make\*(C'\fR, \f(CW\*(C`emake\*(C'\fR, \f(CW\*(C`cplx\*(C'\fR, and \f(CW\*(C`cplxe\*(C'\fR will also +understand a single (string) argument of the forms +.PP +.Vb 5 +\& 2\-3i +\& \-3i +\& [2,3] +\& [2,\-3pi/4] +\& [2] +.Ve +.PP +in which case the appropriate cartesian and exponential components +will be parsed from the string and used to create new complex numbers. +The imaginary component and the theta, respectively, will default to zero. +.PP +The \f(CW\*(C`new\*(C'\fR, \f(CW\*(C`make\*(C'\fR, \f(CW\*(C`emake\*(C'\fR, \f(CW\*(C`cplx\*(C'\fR, and \f(CW\*(C`cplxe\*(C'\fR will also +understand the case of no arguments: this means plain zero or (0, 0). +.SH "DISPLAYING" +.IX Header "DISPLAYING" +When printed, a complex number is usually shown under its cartesian +style \fIa+bi\fR, but there are legitimate cases where the polar style +\&\fI[r,t]\fR is more appropriate. The process of converting the complex +number into a string that can be displayed is known as \fIstringification\fR. +.PP +By calling the class method \f(CW\*(C`Math::Complex::display_format\*(C'\fR and +supplying either \f(CW"polar"\fR or \f(CW"cartesian"\fR as an argument, you +override the default display style, which is \f(CW"cartesian"\fR. Not +supplying any argument returns the current settings. +.PP +This default can be overridden on a per-number basis by calling the +\&\f(CW\*(C`display_format\*(C'\fR method instead. As before, not supplying any argument +returns the current display style for this number. Otherwise whatever you +specify will be the new display style for \fIthis\fR particular number. +.PP +For instance: +.PP +.Vb 1 +\& use Math::Complex; +\& +\& Math::Complex::display_format(\*(Aqpolar\*(Aq); +\& $j = (root(1, 3))[1]; +\& print "j = $j\en"; # Prints "j = [1,2pi/3]" +\& $j\->display_format(\*(Aqcartesian\*(Aq); +\& print "j = $j\en"; # Prints "j = \-0.5+0.866025403784439i" +.Ve +.PP +The polar style attempts to emphasize arguments like \fIk*pi/n\fR +(where \fIn\fR is a positive integer and \fIk\fR an integer within [\-9, +9]), +this is called \fIpolar pretty-printing\fR. +.PP +For the reverse of stringifying, see the \f(CW\*(C`make\*(C'\fR and \f(CW\*(C`emake\*(C'\fR. +.SS "\s-1CHANGED IN PERL 5.6\s0" +.IX Subsection "CHANGED IN PERL 5.6" +The \f(CW\*(C`display_format\*(C'\fR class method and the corresponding +\&\f(CW\*(C`display_format\*(C'\fR object method can now be called using +a parameter hash instead of just a one parameter. +.PP +The old display format style, which can have values \f(CW"cartesian"\fR or +\&\f(CW"polar"\fR, can be changed using the \f(CW"style"\fR parameter. +.PP +.Vb 1 +\& $j\->display_format(style => "polar"); +.Ve +.PP +The one parameter calling convention also still works. +.PP +.Vb 1 +\& $j\->display_format("polar"); +.Ve +.PP +There are two new display parameters. +.PP +The first one is \f(CW"format"\fR, which is a \fBsprintf()\fR\-style format string +to be used for both numeric parts of the complex number(s). The is +somewhat system-dependent but most often it corresponds to \f(CW"%.15g"\fR. +You can revert to the default by setting the \f(CW\*(C`format\*(C'\fR to \f(CW\*(C`undef\*(C'\fR. +.PP +.Vb 1 +\& # the $j from the above example +\& +\& $j\->display_format(\*(Aqformat\*(Aq => \*(Aq%.5f\*(Aq); +\& print "j = $j\en"; # Prints "j = \-0.50000+0.86603i" +\& $j\->display_format(\*(Aqformat\*(Aq => undef); +\& print "j = $j\en"; # Prints "j = \-0.5+0.86603i" +.Ve +.PP +Notice that this affects also the return values of the +\&\f(CW\*(C`display_format\*(C'\fR methods: in list context the whole parameter hash +will be returned, as opposed to only the style parameter value. +This is a potential incompatibility with earlier versions if you +have been calling the \f(CW\*(C`display_format\*(C'\fR method in list context. +.PP +The second new display parameter is \f(CW"polar_pretty_print"\fR, which can +be set to true or false, the default being true. See the previous +section for what this means. +.SH "USAGE" +.IX Header "USAGE" +Thanks to overloading, the handling of arithmetics with complex numbers +is simple and almost transparent. +.PP +Here are some examples: +.PP +.Vb 1 +\& use Math::Complex; +\& +\& $j = cplxe(1, 2*pi/3); # $j ** 3 == 1 +\& print "j = $j, j**3 = ", $j ** 3, "\en"; +\& print "1 + j + j**2 = ", 1 + $j + $j**2, "\en"; +\& +\& $z = \-16 + 0*i; # Force it to be a complex +\& print "sqrt($z) = ", sqrt($z), "\en"; +\& +\& $k = exp(i * 2*pi/3); +\& print "$j \- $k = ", $j \- $k, "\en"; +\& +\& $z\->Re(3); # Re, Im, arg, abs, +\& $j\->arg(2); # (the last two aka rho, theta) +\& # can be used also as mutators. +.Ve +.SH "CONSTANTS" +.IX Header "CONSTANTS" +.SS "\s-1PI\s0" +.IX Subsection "PI" +The constant \f(CW\*(C`pi\*(C'\fR and some handy multiples of it (pi2, pi4, +and pip2 (pi/2) and pip4 (pi/4)) are also available if separately +exported: +.PP +.Vb 2 +\& use Math::Complex \*(Aq:pi\*(Aq; +\& $third_of_circle = pi2 / 3; +.Ve +.SS "Inf" +.IX Subsection "Inf" +The floating point infinity can be exported as a subroutine \fBInf()\fR: +.PP +.Vb 4 +\& use Math::Complex qw(Inf sinh); +\& my $AlsoInf = Inf() + 42; +\& my $AnotherInf = sinh(1e42); +\& print "$AlsoInf is $AnotherInf\en" if $AlsoInf == $AnotherInf; +.Ve +.PP +Note that the stringified form of infinity varies between platforms: +it can be for example any of +.PP +.Vb 4 +\& inf +\& infinity +\& INF +\& 1.#INF +.Ve +.PP +or it can be something else. +.PP +Also note that in some platforms trying to use the infinity in +arithmetic operations may result in Perl crashing because using +an infinity causes \s-1SIGFPE\s0 or its moral equivalent to be sent. +The way to ignore this is +.PP +.Vb 1 +\& local $SIG{FPE} = sub { }; +.Ve +.SH "ERRORS DUE TO DIVISION BY ZERO OR LOGARITHM OF ZERO" +.IX Header "ERRORS DUE TO DIVISION BY ZERO OR LOGARITHM OF ZERO" +The division (/) and the following functions +.PP +.Vb 5 +\& log ln log10 logn +\& tan sec csc cot +\& atan asec acsc acot +\& tanh sech csch coth +\& atanh asech acsch acoth +.Ve +.PP +cannot be computed for all arguments because that would mean dividing +by zero or taking logarithm of zero. These situations cause fatal +runtime errors looking like this +.PP +.Vb 3 +\& cot(0): Division by zero. +\& (Because in the definition of cot(0), the divisor sin(0) is 0) +\& Died at ... +.Ve +.PP +or +.PP +.Vb 2 +\& atanh(\-1): Logarithm of zero. +\& Died at... +.Ve +.PP +For the \f(CW\*(C`csc\*(C'\fR, \f(CW\*(C`cot\*(C'\fR, \f(CW\*(C`asec\*(C'\fR, \f(CW\*(C`acsc\*(C'\fR, \f(CW\*(C`acot\*(C'\fR, \f(CW\*(C`csch\*(C'\fR, \f(CW\*(C`coth\*(C'\fR, +\&\f(CW\*(C`asech\*(C'\fR, \f(CW\*(C`acsch\*(C'\fR, the argument cannot be \f(CW0\fR (zero). For the +logarithmic functions and the \f(CW\*(C`atanh\*(C'\fR, \f(CW\*(C`acoth\*(C'\fR, the argument cannot +be \f(CW1\fR (one). For the \f(CW\*(C`atanh\*(C'\fR, \f(CW\*(C`acoth\*(C'\fR, the argument cannot be +\&\f(CW\*(C`\-1\*(C'\fR (minus one). For the \f(CW\*(C`atan\*(C'\fR, \f(CW\*(C`acot\*(C'\fR, the argument cannot be +\&\f(CW\*(C`i\*(C'\fR (the imaginary unit). For the \f(CW\*(C`atan\*(C'\fR, \f(CW\*(C`acoth\*(C'\fR, the argument +cannot be \f(CW\*(C`\-i\*(C'\fR (the negative imaginary unit). For the \f(CW\*(C`tan\*(C'\fR, +\&\f(CW\*(C`sec\*(C'\fR, \f(CW\*(C`tanh\*(C'\fR, the argument cannot be \fIpi/2 + k * pi\fR, where \fIk\fR +is any integer. atan2(0, 0) is undefined, and if the complex arguments +are used for \fBatan2()\fR, a division by zero will happen if z1**2+z2**2 == 0. +.PP +Note that because we are operating on approximations of real numbers, +these errors can happen when merely `too close' to the singularities +listed above. +.SH "ERRORS DUE TO INDIGESTIBLE ARGUMENTS" +.IX Header "ERRORS DUE TO INDIGESTIBLE ARGUMENTS" +The \f(CW\*(C`make\*(C'\fR and \f(CW\*(C`emake\*(C'\fR accept both real and complex arguments. +When they cannot recognize the arguments they will die with error +messages like the following +.PP +.Vb 4 +\& Math::Complex::make: Cannot take real part of ... +\& Math::Complex::make: Cannot take real part of ... +\& Math::Complex::emake: Cannot take rho of ... +\& Math::Complex::emake: Cannot take theta of ... +.Ve +.SH "BUGS" +.IX Header "BUGS" +Saying \f(CW\*(C`use Math::Complex;\*(C'\fR exports many mathematical routines in the +caller environment and even overrides some (\f(CW\*(C`sqrt\*(C'\fR, \f(CW\*(C`log\*(C'\fR, \f(CW\*(C`atan2\*(C'\fR). +This is construed as a feature by the Authors, actually... ;\-) +.PP +All routines expect to be given real or complex numbers. Don't attempt to +use BigFloat, since Perl has currently no rule to disambiguate a '+' +operation (for instance) between two overloaded entities. +.PP +In Cray \s-1UNICOS\s0 there is some strange numerical instability that results +in \fBroot()\fR, \fBcos()\fR, \fBsin()\fR, \fBcosh()\fR, \fBsinh()\fR, losing accuracy fast. Beware. +The bug may be in \s-1UNICOS\s0 math libs, in \s-1UNICOS C\s0 compiler, in Math::Complex. +Whatever it is, it does not manifest itself anywhere else where Perl runs. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::Trig +.SH "AUTHORS" +.IX Header "AUTHORS" +Daniel S. Lewart <\fIlewart!at!uiuc.edu\fR>, +Jarkko Hietaniemi <\fIjhi!at!iki.fi\fR>, +Raphael Manfredi <\fIRaphael_Manfredi!at!pobox.com\fR>, +Zefram +.SH "LICENSE" +.IX Header "LICENSE" +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Math%3A%3ATrig.3 b/data/miniconda3/man/man3/Math%3A%3ATrig.3 new file mode 100644 index 0000000000000000000000000000000000000000..034a72644a857b20f71e25398d57e046ec28454e --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ATrig.3 @@ -0,0 +1,682 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Math::Trig 3" +.TH Math::Trig 3 "2020-12-18" "perl v5.32.1" "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" +Math::Trig \- trigonometric functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Math::Trig; +\& +\& $x = tan(0.9); +\& $y = acos(3.7); +\& $z = asin(2.4); +\& +\& $halfpi = pi/2; +\& +\& $rad = deg2rad(120); +\& +\& # Import constants pi2, pip2, pip4 (2*pi, pi/2, pi/4). +\& use Math::Trig \*(Aq:pi\*(Aq; +\& +\& # Import the conversions between cartesian/spherical/cylindrical. +\& use Math::Trig \*(Aq:radial\*(Aq; +\& +\& # Import the great circle formulas. +\& use Math::Trig \*(Aq:great_circle\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Math::Trig\*(C'\fR defines many trigonometric functions not defined by the +core Perl which defines only the \f(CW\*(C`sin()\*(C'\fR and \f(CW\*(C`cos()\*(C'\fR. The constant +\&\fBpi\fR is also defined as are a few convenience functions for angle +conversions, and \fIgreat circle formulas\fR for spherical movement. +.SH "TRIGONOMETRIC FUNCTIONS" +.IX Header "TRIGONOMETRIC FUNCTIONS" +The tangent +.IP "\fBtan\fR" 4 +.IX Item "tan" +.PP +The cofunctions of the sine, cosine, and tangent (cosec/csc and cotan/cot +are aliases) +.PP +\&\fBcsc\fR, \fBcosec\fR, \fBsec\fR, \fBsec\fR, \fBcot\fR, \fBcotan\fR +.PP +The arcus (also known as the inverse) functions of the sine, cosine, +and tangent +.PP +\&\fBasin\fR, \fBacos\fR, \fBatan\fR +.PP +The principal value of the arc tangent of y/x +.PP +\&\fBatan2\fR(y, x) +.PP +The arcus cofunctions of the sine, cosine, and tangent (acosec/acsc +and acotan/acot are aliases). Note that atan2(0, 0) is not well-defined. +.PP +\&\fBacsc\fR, \fBacosec\fR, \fBasec\fR, \fBacot\fR, \fBacotan\fR +.PP +The hyperbolic sine, cosine, and tangent +.PP +\&\fBsinh\fR, \fBcosh\fR, \fBtanh\fR +.PP +The cofunctions of the hyperbolic sine, cosine, and tangent (cosech/csch +and cotanh/coth are aliases) +.PP +\&\fBcsch\fR, \fBcosech\fR, \fBsech\fR, \fBcoth\fR, \fBcotanh\fR +.PP +The area (also known as the inverse) functions of the hyperbolic +sine, cosine, and tangent +.PP +\&\fBasinh\fR, \fBacosh\fR, \fBatanh\fR +.PP +The area cofunctions of the hyperbolic sine, cosine, and tangent +(acsch/acosech and acoth/acotanh are aliases) +.PP +\&\fBacsch\fR, \fBacosech\fR, \fBasech\fR, \fBacoth\fR, \fBacotanh\fR +.PP +The trigonometric constant \fBpi\fR and some of handy multiples +of it are also defined. +.PP +\&\fBpi, pi2, pi4, pip2, pip4\fR +.SS "\s-1ERRORS DUE TO DIVISION BY ZERO\s0" +.IX Subsection "ERRORS DUE TO DIVISION BY ZERO" +The following functions +.PP +.Vb 10 +\& acoth +\& acsc +\& acsch +\& asec +\& asech +\& atanh +\& cot +\& coth +\& csc +\& csch +\& sec +\& sech +\& tan +\& tanh +.Ve +.PP +cannot be computed for all arguments because that would mean dividing +by zero or taking logarithm of zero. These situations cause fatal +runtime errors looking like this +.PP +.Vb 3 +\& cot(0): Division by zero. +\& (Because in the definition of cot(0), the divisor sin(0) is 0) +\& Died at ... +.Ve +.PP +or +.PP +.Vb 2 +\& atanh(\-1): Logarithm of zero. +\& Died at... +.Ve +.PP +For the \f(CW\*(C`csc\*(C'\fR, \f(CW\*(C`cot\*(C'\fR, \f(CW\*(C`asec\*(C'\fR, \f(CW\*(C`acsc\*(C'\fR, \f(CW\*(C`acot\*(C'\fR, \f(CW\*(C`csch\*(C'\fR, \f(CW\*(C`coth\*(C'\fR, +\&\f(CW\*(C`asech\*(C'\fR, \f(CW\*(C`acsch\*(C'\fR, the argument cannot be \f(CW0\fR (zero). For the +\&\f(CW\*(C`atanh\*(C'\fR, \f(CW\*(C`acoth\*(C'\fR, the argument cannot be \f(CW1\fR (one). For the +\&\f(CW\*(C`atanh\*(C'\fR, \f(CW\*(C`acoth\*(C'\fR, the argument cannot be \f(CW\*(C`\-1\*(C'\fR (minus one). For the +\&\f(CW\*(C`tan\*(C'\fR, \f(CW\*(C`sec\*(C'\fR, \f(CW\*(C`tanh\*(C'\fR, \f(CW\*(C`sech\*(C'\fR, the argument cannot be \fIpi/2 + k * +pi\fR, where \fIk\fR is any integer. +.PP +Note that atan2(0, 0) is not well-defined. +.SS "\s-1SIMPLE\s0 (\s-1REAL\s0) \s-1ARGUMENTS, COMPLEX RESULTS\s0" +.IX Subsection "SIMPLE (REAL) ARGUMENTS, COMPLEX RESULTS" +Please note that some of the trigonometric functions can break out +from the \fBreal axis\fR into the \fBcomplex plane\fR. For example +\&\f(CWasin(2)\fR has no definition for plain real numbers but it has +definition for complex numbers. +.PP +In Perl terms this means that supplying the usual Perl numbers (also +known as scalars, please see perldata) as input for the +trigonometric functions might produce as output results that no more +are simple real numbers: instead they are complex numbers. +.PP +The \f(CW\*(C`Math::Trig\*(C'\fR handles this by using the \f(CW\*(C`Math::Complex\*(C'\fR package +which knows how to handle complex numbers, please see Math::Complex +for more information. In practice you need not to worry about getting +complex numbers as results because the \f(CW\*(C`Math::Complex\*(C'\fR takes care of +details like for example how to display complex numbers. For example: +.PP +.Vb 1 +\& print asin(2), "\en"; +.Ve +.PP +should produce something like this (take or leave few last decimals): +.PP +.Vb 1 +\& 1.5707963267949\-1.31695789692482i +.Ve +.PP +That is, a complex number with the real part of approximately \f(CW1.571\fR +and the imaginary part of approximately \f(CW\*(C`\-1.317\*(C'\fR. +.SH "PLANE ANGLE CONVERSIONS" +.IX Header "PLANE ANGLE CONVERSIONS" +(Plane, 2\-dimensional) angles may be converted with the following functions. +.IP "deg2rad" 4 +.IX Item "deg2rad" +.Vb 1 +\& $radians = deg2rad($degrees); +.Ve +.IP "grad2rad" 4 +.IX Item "grad2rad" +.Vb 1 +\& $radians = grad2rad($gradians); +.Ve +.IP "rad2deg" 4 +.IX Item "rad2deg" +.Vb 1 +\& $degrees = rad2deg($radians); +.Ve +.IP "grad2deg" 4 +.IX Item "grad2deg" +.Vb 1 +\& $degrees = grad2deg($gradians); +.Ve +.IP "deg2grad" 4 +.IX Item "deg2grad" +.Vb 1 +\& $gradians = deg2grad($degrees); +.Ve +.IP "rad2grad" 4 +.IX Item "rad2grad" +.Vb 1 +\& $gradians = rad2grad($radians); +.Ve +.PP +The full circle is 2 \fIpi\fR radians or \fI360\fR degrees or \fI400\fR gradians. +The result is by default wrapped to be inside the [0, {2pi,360,400}[ circle. +If you don't want this, supply a true second argument: +.PP +.Vb 2 +\& $zillions_of_radians = deg2rad($zillions_of_degrees, 1); +\& $negative_degrees = rad2deg($negative_radians, 1); +.Ve +.PP +You can also do the wrapping explicitly by \fBrad2rad()\fR, \fBdeg2deg()\fR, and +\&\fBgrad2grad()\fR. +.IP "rad2rad" 4 +.IX Item "rad2rad" +.Vb 1 +\& $radians_wrapped_by_2pi = rad2rad($radians); +.Ve +.IP "deg2deg" 4 +.IX Item "deg2deg" +.Vb 1 +\& $degrees_wrapped_by_360 = deg2deg($degrees); +.Ve +.IP "grad2grad" 4 +.IX Item "grad2grad" +.Vb 1 +\& $gradians_wrapped_by_400 = grad2grad($gradians); +.Ve +.SH "RADIAL COORDINATE CONVERSIONS" +.IX Header "RADIAL COORDINATE CONVERSIONS" +\&\fBRadial coordinate systems\fR are the \fBspherical\fR and the \fBcylindrical\fR +systems, explained shortly in more detail. +.PP +You can import radial coordinate conversion functions by using the +\&\f(CW\*(C`:radial\*(C'\fR tag: +.PP +.Vb 1 +\& use Math::Trig \*(Aq:radial\*(Aq; +\& +\& ($rho, $theta, $z) = cartesian_to_cylindrical($x, $y, $z); +\& ($rho, $theta, $phi) = cartesian_to_spherical($x, $y, $z); +\& ($x, $y, $z) = cylindrical_to_cartesian($rho, $theta, $z); +\& ($rho_s, $theta, $phi) = cylindrical_to_spherical($rho_c, $theta, $z); +\& ($x, $y, $z) = spherical_to_cartesian($rho, $theta, $phi); +\& ($rho_c, $theta, $z) = spherical_to_cylindrical($rho_s, $theta, $phi); +.Ve +.PP +\&\fBAll angles are in radians\fR. +.SS "\s-1COORDINATE SYSTEMS\s0" +.IX Subsection "COORDINATE SYSTEMS" +\&\fBCartesian\fR coordinates are the usual rectangular \fI(x, y, z)\fR\-coordinates. +.PP +Spherical coordinates, \fI(rho, theta, pi)\fR, are three-dimensional +coordinates which define a point in three-dimensional space. They are +based on a sphere surface. The radius of the sphere is \fBrho\fR, also +known as the \fIradial\fR coordinate. The angle in the \fIxy\fR\-plane +(around the \fIz\fR\-axis) is \fBtheta\fR, also known as the \fIazimuthal\fR +coordinate. The angle from the \fIz\fR\-axis is \fBphi\fR, also known as the +\&\fIpolar\fR coordinate. The North Pole is therefore \fI0, 0, rho\fR, and +the Gulf of Guinea (think of the missing big chunk of Africa) \fI0, +pi/2, rho\fR. In geographical terms \fIphi\fR is latitude (northward +positive, southward negative) and \fItheta\fR is longitude (eastward +positive, westward negative). +.PP +\&\fB\s-1BEWARE\s0\fR: some texts define \fItheta\fR and \fIphi\fR the other way round, +some texts define the \fIphi\fR to start from the horizontal plane, some +texts use \fIr\fR in place of \fIrho\fR. +.PP +Cylindrical coordinates, \fI(rho, theta, z)\fR, are three-dimensional +coordinates which define a point in three-dimensional space. They are +based on a cylinder surface. The radius of the cylinder is \fBrho\fR, +also known as the \fIradial\fR coordinate. The angle in the \fIxy\fR\-plane +(around the \fIz\fR\-axis) is \fBtheta\fR, also known as the \fIazimuthal\fR +coordinate. The third coordinate is the \fIz\fR, pointing up from the +\&\fBtheta\fR\-plane. +.SS "3\-D \s-1ANGLE CONVERSIONS\s0" +.IX Subsection "3-D ANGLE CONVERSIONS" +Conversions to and from spherical and cylindrical coordinates are +available. Please notice that the conversions are not necessarily +reversible because of the equalities like \fIpi\fR angles being equal to +\&\fI\-pi\fR angles. +.IP "cartesian_to_cylindrical" 4 +.IX Item "cartesian_to_cylindrical" +.Vb 1 +\& ($rho, $theta, $z) = cartesian_to_cylindrical($x, $y, $z); +.Ve +.IP "cartesian_to_spherical" 4 +.IX Item "cartesian_to_spherical" +.Vb 1 +\& ($rho, $theta, $phi) = cartesian_to_spherical($x, $y, $z); +.Ve +.IP "cylindrical_to_cartesian" 4 +.IX Item "cylindrical_to_cartesian" +.Vb 1 +\& ($x, $y, $z) = cylindrical_to_cartesian($rho, $theta, $z); +.Ve +.IP "cylindrical_to_spherical" 4 +.IX Item "cylindrical_to_spherical" +.Vb 1 +\& ($rho_s, $theta, $phi) = cylindrical_to_spherical($rho_c, $theta, $z); +.Ve +.Sp +Notice that when \f(CW$z\fR is not 0 \f(CW$rho_s\fR is not equal to \f(CW$rho_c\fR. +.IP "spherical_to_cartesian" 4 +.IX Item "spherical_to_cartesian" +.Vb 1 +\& ($x, $y, $z) = spherical_to_cartesian($rho, $theta, $phi); +.Ve +.IP "spherical_to_cylindrical" 4 +.IX Item "spherical_to_cylindrical" +.Vb 1 +\& ($rho_c, $theta, $z) = spherical_to_cylindrical($rho_s, $theta, $phi); +.Ve +.Sp +Notice that when \f(CW$z\fR is not 0 \f(CW$rho_c\fR is not equal to \f(CW$rho_s\fR. +.SH "GREAT CIRCLE DISTANCES AND DIRECTIONS" +.IX Header "GREAT CIRCLE DISTANCES AND DIRECTIONS" +A great circle is section of a circle that contains the circle +diameter: the shortest distance between two (non-antipodal) points on +the spherical surface goes along the great circle connecting those two +points. +.SS "great_circle_distance" +.IX Subsection "great_circle_distance" +You can compute spherical distances, called \fBgreat circle distances\fR, +by importing the \fBgreat_circle_distance()\fR function: +.PP +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_distance\*(Aq; +\& +\& $distance = great_circle_distance($theta0, $phi0, $theta1, $phi1, [, $rho]); +.Ve +.PP +The \fIgreat circle distance\fR is the shortest distance between two +points on a sphere. The distance is in \f(CW$rho\fR units. The \f(CW$rho\fR is +optional, it defaults to 1 (the unit sphere), therefore the distance +defaults to radians. +.PP +If you think geographically the \fItheta\fR are longitudes: zero at the +Greenwhich meridian, eastward positive, westward negative \*(-- and the +\&\fIphi\fR are latitudes: zero at the North Pole, northward positive, +southward negative. \fB\s-1NOTE\s0\fR: this formula thinks in mathematics, not +geographically: the \fIphi\fR zero is at the North Pole, not at the +Equator on the west coast of Africa (Bay of Guinea). You need to +subtract your geographical coordinates from \fIpi/2\fR (also known as 90 +degrees). +.PP +.Vb 2 +\& $distance = great_circle_distance($lon0, pi/2 \- $lat0, +\& $lon1, pi/2 \- $lat1, $rho); +.Ve +.SS "great_circle_direction" +.IX Subsection "great_circle_direction" +The direction you must follow the great circle (also known as \fIbearing\fR) +can be computed by the \fBgreat_circle_direction()\fR function: +.PP +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_direction\*(Aq; +\& +\& $direction = great_circle_direction($theta0, $phi0, $theta1, $phi1); +.Ve +.SS "great_circle_bearing" +.IX Subsection "great_circle_bearing" +Alias 'great_circle_bearing' for 'great_circle_direction' is also available. +.PP +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_bearing\*(Aq; +\& +\& $direction = great_circle_bearing($theta0, $phi0, $theta1, $phi1); +.Ve +.PP +The result of great_circle_direction is in radians, zero indicating +straight north, pi or \-pi straight south, pi/2 straight west, and +\&\-pi/2 straight east. +.SS "great_circle_destination" +.IX Subsection "great_circle_destination" +You can inversely compute the destination if you know the +starting point, direction, and distance: +.PP +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_destination\*(Aq; +\& +\& # $diro is the original direction, +\& # for example from great_circle_bearing(). +\& # $distance is the angular distance in radians, +\& # for example from great_circle_distance(). +\& # $thetad and $phid are the destination coordinates, +\& # $dird is the final direction at the destination. +\& +\& ($thetad, $phid, $dird) = +\& great_circle_destination($theta, $phi, $diro, $distance); +.Ve +.PP +or the midpoint if you know the end points: +.SS "great_circle_midpoint" +.IX Subsection "great_circle_midpoint" +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_midpoint\*(Aq; +\& +\& ($thetam, $phim) = +\& great_circle_midpoint($theta0, $phi0, $theta1, $phi1); +.Ve +.PP +The \fBgreat_circle_midpoint()\fR is just a special case of +.SS "great_circle_waypoint" +.IX Subsection "great_circle_waypoint" +.Vb 1 +\& use Math::Trig \*(Aqgreat_circle_waypoint\*(Aq; +\& +\& ($thetai, $phii) = +\& great_circle_waypoint($theta0, $phi0, $theta1, $phi1, $way); +.Ve +.PP +Where the \f(CW$way\fR is a value from zero ($theta0, \f(CW$phi0\fR) to one ($theta1, +\&\f(CW$phi1\fR). Note that antipodal points (where their distance is \fIpi\fR +radians) do not have waypoints between them (they would have an an +\&\*(L"equator\*(R" between them), and therefore \f(CW\*(C`undef\*(C'\fR is returned for +antipodal points. If the points are the same and the distance +therefore zero and all waypoints therefore identical, the first point +(either point) is returned. +.PP +The thetas, phis, direction, and distance in the above are all in radians. +.PP +You can import all the great circle formulas by +.PP +.Vb 1 +\& use Math::Trig \*(Aq:great_circle\*(Aq; +.Ve +.PP +Notice that the resulting directions might be somewhat surprising if +you are looking at a flat worldmap: in such map projections the great +circles quite often do not look like the shortest routes \*(-- but for +example the shortest possible routes from Europe or North America to +Asia do often cross the polar regions. (The common Mercator projection +does \fBnot\fR show great circles as straight lines: straight lines in the +Mercator projection are lines of constant bearing.) +.SH "EXAMPLES" +.IX Header "EXAMPLES" +To calculate the distance between London (51.3N 0.5W) and Tokyo +(35.7N 139.8E) in kilometers: +.PP +.Vb 1 +\& use Math::Trig qw(great_circle_distance deg2rad); +\& +\& # Notice the 90 \- latitude: phi zero is at the North Pole. +\& sub NESW { deg2rad($_[0]), deg2rad(90 \- $_[1]) } +\& my @L = NESW( \-0.5, 51.3); +\& my @T = NESW(139.8, 35.7); +\& my $km = great_circle_distance(@L, @T, 6378); # About 9600 km. +.Ve +.PP +The direction you would have to go from London to Tokyo (in radians, +straight north being zero, straight east being pi/2). +.PP +.Vb 1 +\& use Math::Trig qw(great_circle_direction); +\& +\& my $rad = great_circle_direction(@L, @T); # About 0.547 or 0.174 pi. +.Ve +.PP +The midpoint between London and Tokyo being +.PP +.Vb 1 +\& use Math::Trig qw(great_circle_midpoint); +\& +\& my @M = great_circle_midpoint(@L, @T); +.Ve +.PP +or about 69 N 89 E, in the frozen wastes of Siberia. +.PP +\&\fB\s-1NOTE\s0\fR: you \fBcannot\fR get from A to B like this: +.PP +.Vb 3 +\& Dist = great_circle_distance(A, B) +\& Dir = great_circle_direction(A, B) +\& C = great_circle_destination(A, Dist, Dir) +.Ve +.PP +and expect C to be B, because the bearing constantly changes when +going from A to B (except in some special case like the meridians or +the circles of latitudes) and in \fBgreat_circle_destination()\fR one gives +a \fBconstant\fR bearing to follow. +.SS "\s-1CAVEAT FOR GREAT CIRCLE FORMULAS\s0" +.IX Subsection "CAVEAT FOR GREAT CIRCLE FORMULAS" +The answers may be off by few percentages because of the irregular +(slightly aspherical) form of the Earth. The errors are at worst +about 0.55%, but generally below 0.3%. +.SS "Real-valued asin and acos" +.IX Subsection "Real-valued asin and acos" +For small inputs \fBasin()\fR and \fBacos()\fR may return complex numbers even +when real numbers would be enough and correct, this happens because of +floating-point inaccuracies. You can see these inaccuracies for +example by trying theses: +.PP +.Vb 2 +\& print cos(1e\-6)**2+sin(1e\-6)**2 \- 1,"\en"; +\& printf "%.20f", cos(1e\-6)**2+sin(1e\-6)**2,"\en"; +.Ve +.PP +which will print something like this +.PP +.Vb 2 +\& \-1.11022302462516e\-16 +\& 0.99999999999999988898 +.Ve +.PP +even though the expected results are of course exactly zero and one. +The formulas used to compute \fBasin()\fR and \fBacos()\fR are quite sensitive to +this, and therefore they might accidentally slip into the complex +plane even when they should not. To counter this there are two +interfaces that are guaranteed to return a real-valued output. +.IP "asin_real" 4 +.IX Item "asin_real" +.Vb 1 +\& use Math::Trig qw(asin_real); +\& +\& $real_angle = asin_real($input_sin); +.Ve +.Sp +Return a real-valued arcus sine if the input is between [\-1, 1], +\&\fBinclusive\fR the endpoints. For inputs greater than one, pi/2 +is returned. For inputs less than minus one, \-pi/2 is returned. +.IP "acos_real" 4 +.IX Item "acos_real" +.Vb 1 +\& use Math::Trig qw(acos_real); +\& +\& $real_angle = acos_real($input_cos); +.Ve +.Sp +Return a real-valued arcus cosine if the input is between [\-1, 1], +\&\fBinclusive\fR the endpoints. For inputs greater than one, zero +is returned. For inputs less than minus one, pi is returned. +.SH "BUGS" +.IX Header "BUGS" +Saying \f(CW\*(C`use Math::Trig;\*(C'\fR exports many mathematical routines in the +caller environment and even overrides some (\f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR). This is +construed as a feature by the Authors, actually... ;\-) +.PP +The code is not optimized for speed, especially because we use +\&\f(CW\*(C`Math::Complex\*(C'\fR and thus go quite near complex numbers while doing +the computations even when the arguments are not. This, however, +cannot be completely avoided if we want things like \f(CWasin(2)\fR to give +an answer instead of giving a fatal runtime error. +.PP +Do not attempt navigation using these formulas. +.PP +Math::Complex +.SH "AUTHORS" +.IX Header "AUTHORS" +Jarkko Hietaniemi <\fIjhi!at!iki.fi\fR>, +Raphael Manfredi <\fIRaphael_Manfredi!at!pobox.com\fR>, +Zefram +.SH "LICENSE" +.IX Header "LICENSE" +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Memoize%3A%3AAnyDBM_File.3 b/data/miniconda3/man/man3/Memoize%3A%3AAnyDBM_File.3 new file mode 100644 index 0000000000000000000000000000000000000000..d4efc99fbef1d51f020281c4e7dc02eb599b18aa --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3AAnyDBM_File.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::AnyDBM_File 3" +.TH Memoize::AnyDBM_File 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::AnyDBM_File \- glue to provide EXISTS for AnyDBM_File for Storable use +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See Memoize. diff --git a/data/miniconda3/man/man3/Memoize%3A%3AExpire.3 b/data/miniconda3/man/man3/Memoize%3A%3AExpire.3 new file mode 100644 index 0000000000000000000000000000000000000000..b13b18c8ca2b74467d970cd655e610fd3ce53a46 --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3AExpire.3 @@ -0,0 +1,374 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::Expire 3" +.TH Memoize::Expire 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::Expire \- Plug\-in module for automatic expiration of memoized values +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use Memoize; +\& use Memoize::Expire; +\& tie my %cache => \*(AqMemoize::Expire\*(Aq, +\& LIFETIME => $lifetime, # In seconds +\& NUM_USES => $n_uses; +\& +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache ]; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Memoize::Expire is a plug-in module for Memoize. It allows the cached +values for memoized functions to expire automatically. This manual +assumes you are already familiar with the Memoize module. If not, you +should study that manual carefully first, paying particular attention +to the \s-1HASH\s0 feature. +.PP +Memoize::Expire is a layer of software that you can insert in between +Memoize itself and whatever underlying package implements the cache. +The layer presents a hash variable whose values expire whenever they +get too old, have been used too often, or both. You tell \f(CW\*(C`Memoize\*(C'\fR to +use this forgetful hash as its cache instead of the default, which is +an ordinary hash. +.PP +To specify a real-time timeout, supply the \f(CW\*(C`LIFETIME\*(C'\fR option with a +numeric value. Cached data will expire after this many seconds, and +will be looked up afresh when it expires. When a data item is looked +up afresh, its lifetime is reset. +.PP +If you specify \f(CW\*(C`NUM_USES\*(C'\fR with an argument of \fIn\fR, then each cached +data item will be discarded and looked up afresh after the \fIn\fRth time +you access it. When a data item is looked up afresh, its number of +uses is reset. +.PP +If you specify both arguments, data will be discarded from the cache +when either expiration condition holds. +.PP +Memoize::Expire uses a real hash internally to store the cached data. +You can use the \f(CW\*(C`HASH\*(C'\fR option to Memoize::Expire to supply a tied +hash in place of the ordinary hash that Memoize::Expire will normally +use. You can use this feature to add Memoize::Expire as a layer in +between a persistent disk hash and Memoize. If you do this, you get a +persistent disk cache whose entries expire automatically. For +example: +.PP +.Vb 7 +\& # Memoize +\& # | +\& # Memoize::Expire enforces data expiration policy +\& # | +\& # DB_File implements persistence of data in a disk file +\& # | +\& # Disk file +\& +\& use Memoize; +\& use Memoize::Expire; +\& use DB_File; +\& +\& # Set up persistence +\& tie my %disk_cache => \*(AqDB_File\*(Aq, $filename, O_CREAT|O_RDWR, 0666]; +\& +\& # Set up expiration policy, supplying persistent hash as a target +\& tie my %cache => \*(AqMemoize::Expire\*(Aq, +\& LIFETIME => $lifetime, # In seconds +\& NUM_USES => $n_uses, +\& HASH => \e%disk_cache; +\& +\& # Set up memoization, supplying expiring persistent hash for cache +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [ HASH => \e%cache ]; +.Ve +.SH "INTERFACE" +.IX Header "INTERFACE" +There is nothing special about Memoize::Expire. It is just an +example. If you don't like the policy that it implements, you are +free to write your own expiration policy module that implements +whatever policy you desire. Here is how to do that. Let us suppose +that your module will be named MyExpirePolicy. +.PP +Short summary: You need to create a package that defines four methods: +.IP " \s-1TIEHASH\s0" 4 +.IX Item " TIEHASH" +Construct and return cache object. +.IP " \s-1EXISTS\s0" 4 +.IX Item " EXISTS" +Given a function argument, is the corresponding function value in the +cache, and if so, is it fresh enough to use? +.IP " \s-1FETCH\s0" 4 +.IX Item " FETCH" +Given a function argument, look up the corresponding function value in +the cache and return it. +.IP " \s-1STORE\s0" 4 +.IX Item " STORE" +Given a function argument and the corresponding function value, store +them into the cache. +.IP " \s-1CLEAR\s0" 4 +.IX Item " CLEAR" +(Optional.) Flush the cache completely. +.PP +The user who wants the memoization cache to be expired according to +your policy will say so by writing +.PP +.Vb 2 +\& tie my %cache => \*(AqMyExpirePolicy\*(Aq, args...; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +.Ve +.PP +This will invoke \f(CW\*(C`MyExpirePolicy\->TIEHASH(args)\*(C'\fR. +MyExpirePolicy::TIEHASH should do whatever is appropriate to set up +the cache, and it should return the cache object to the caller. +.PP +For example, MyExpirePolicy::TIEHASH might create an object that +contains a regular Perl hash (which it will to store the cached +values) and some extra information about the arguments and how old the +data is and things like that. Let us call this object `C'. +.PP +When Memoize needs to check to see if an entry is in the cache +already, it will invoke \f(CW\*(C`C\->EXISTS(key)\*(C'\fR. \f(CW\*(C`key\*(C'\fR is the normalized +function argument. MyExpirePolicy::EXISTS should return 0 if the key +is not in the cache, or if it has expired, and 1 if an unexpired value +is in the cache. It should \fInot\fR return \f(CW\*(C`undef\*(C'\fR, because there is a +bug in some versions of Perl that will cause a spurious \s-1FETCH\s0 if the +\&\s-1EXISTS\s0 method returns \f(CW\*(C`undef\*(C'\fR. +.PP +If your \s-1EXISTS\s0 function returns true, Memoize will try to fetch the +cached value by invoking \f(CW\*(C`C\->FETCH(key)\*(C'\fR. MyExpirePolicy::FETCH should +return the cached value. Otherwise, Memoize will call the memoized +function to compute the appropriate value, and will store it into the +cache by calling \f(CW\*(C`C\->STORE(key, value)\*(C'\fR. +.PP +Here is a very brief example of a policy module that expires each +cache item after ten seconds. +.PP +.Vb 1 +\& package Memoize::TenSecondExpire; +\& +\& sub TIEHASH { +\& my ($package, %args) = @_; +\& my $cache = $args{HASH} || {}; +\& bless $cache => $package; +\& } +\& +\& sub EXISTS { +\& my ($cache, $key) = @_; +\& if (exists $cache\->{$key} && +\& $cache\->{$key}{EXPIRE_TIME} > time) { +\& return 1 +\& } else { +\& return 0; # Do NOT return \`undef\*(Aq here. +\& } +\& } +\& +\& sub FETCH { +\& my ($cache, $key) = @_; +\& return $cache\->{$key}{VALUE}; +\& } +\& +\& sub STORE { +\& my ($cache, $key, $newvalue) = @_; +\& $cache\->{$key}{VALUE} = $newvalue; +\& $cache\->{$key}{EXPIRE_TIME} = time + 10; +\& } +.Ve +.PP +To use this expiration policy, the user would say +.PP +.Vb 3 +\& use Memoize; +\& tie my %cache10sec => \*(AqMemoize::TenSecondExpire\*(Aq; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache10sec]; +.Ve +.PP +Memoize would then call \f(CW\*(C`function\*(C'\fR whenever a cached value was +entirely absent or was older than ten seconds. +.PP +You should always support a \f(CW\*(C`HASH\*(C'\fR argument to \f(CW\*(C`TIEHASH\*(C'\fR that ties +the underlying cache so that the user can specify that the cache is +also persistent or that it has some other interesting semantics. The +example above demonstrates how to do this, as does \f(CW\*(C`Memoize::Expire\*(C'\fR. +.PP +Another sample module, Memoize::Saves, is available in a separate +distribution on \s-1CPAN.\s0 It implements a policy that allows you to +specify that certain function values would always be looked up afresh. +See the documentation for details. +.SH "ALTERNATIVES" +.IX Header "ALTERNATIVES" +Brent Powers has a \f(CW\*(C`Memoize::ExpireLRU\*(C'\fR module that was designed to +work with Memoize and provides expiration of least-recently-used data. +The cache is held at a fixed number of entries, and when new data +comes in, the least-recently used data is expired. See +. +.PP +Joshua Chamas's Tie::Cache module may be useful as an expiration +manager. (If you try this, let me know how it works out.) +.PP +If you develop any useful expiration managers that you think should be +distributed with Memoize, please let me know. +.SH "CAVEATS" +.IX Header "CAVEATS" +This module is experimental, and may contain bugs. Please report bugs +to the address below. +.PP +Number-of-uses is stored as a 16\-bit unsigned integer, so can't exceed +65535. +.PP +Because of clock granularity, expiration times may occur up to one +second sooner than you expect. For example, suppose you store a value +with a lifetime of ten seconds, and you store it at 12:00:00.998 on a +certain day. Memoize will look at the clock and see 12:00:00. Then +9.01 seconds later, at 12:00:10.008 you try to read it back. Memoize +will look at the clock and see 12:00:10 and conclude that the value +has expired. This will probably not occur if you have +\&\f(CW\*(C`Time::HiRes\*(C'\fR installed. +.SH "AUTHOR" +.IX Header "AUTHOR" +Mark-Jason Dominus (mjd\-perl\-memoize+@plover.com) +.PP +Mike Cariaso provided valuable insight into the best way to solve this +problem. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1) +.PP +The Memoize man page. +.PP +http://www.plover.com/~mjd/perl/Memoize/ (for news and updates) +.PP +I maintain a mailing list on which I occasionally announce new +versions of Memoize. The list is for announcements only, not +discussion. To join, send an empty message to +mjd\-perl\-memoize\-request@Plover.com. diff --git a/data/miniconda3/man/man3/Memoize%3A%3AExpireFile.3 b/data/miniconda3/man/man3/Memoize%3A%3AExpireFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..0620fc4a7b4ea0e8b70573bb02b699fcdbd77add --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3AExpireFile.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::ExpireFile 3" +.TH Memoize::ExpireFile 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::ExpireFile \- test for Memoize expiration semantics +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See Memoize::Expire. diff --git a/data/miniconda3/man/man3/Memoize%3A%3AExpireTest.3 b/data/miniconda3/man/man3/Memoize%3A%3AExpireTest.3 new file mode 100644 index 0000000000000000000000000000000000000000..cfb12a1728f545d621d790741def01c7cf79e70d --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3AExpireTest.3 @@ -0,0 +1,153 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::ExpireTest 3" +.TH Memoize::ExpireTest 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::ExpireTest \- test for Memoize expiration semantics +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is just for testing expiration semantics. It's not a very +good example of how to write an expiration module. +.PP +If you are looking for an example, I recommend that you look at the +simple example in the Memoize::Expire documentation, or at the code +for Memoize::Expire itself. +.PP +If you have questions, I will be happy to answer them if you send them +to mjd\-perl\-memoize+@plover.com. diff --git a/data/miniconda3/man/man3/Memoize%3A%3ANDBM_File.3 b/data/miniconda3/man/man3/Memoize%3A%3ANDBM_File.3 new file mode 100644 index 0000000000000000000000000000000000000000..7697136261cb80970dae9844357d9f26f4d8fea8 --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3ANDBM_File.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::NDBM_File 3" +.TH Memoize::NDBM_File 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::NDBM_File \- glue to provide EXISTS for NDBM_File for Storable use +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See Memoize. diff --git a/data/miniconda3/man/man3/Memoize%3A%3ASDBM_File.3 b/data/miniconda3/man/man3/Memoize%3A%3ASDBM_File.3 new file mode 100644 index 0000000000000000000000000000000000000000..5aec0a312bf390075e37b7c530e5f68ae2be2830 --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3ASDBM_File.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::SDBM_File 3" +.TH Memoize::SDBM_File 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::SDBM_File \- glue to provide EXISTS for SDBM_File for Storable use +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See Memoize. diff --git a/data/miniconda3/man/man3/Memoize%3A%3AStorable.3 b/data/miniconda3/man/man3/Memoize%3A%3AStorable.3 new file mode 100644 index 0000000000000000000000000000000000000000..fd2130faad81b57f37e8838c85f53a11f0e9ddc2 --- /dev/null +++ b/data/miniconda3/man/man3/Memoize%3A%3AStorable.3 @@ -0,0 +1,145 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Memoize::Storable 3" +.TH Memoize::Storable 3 "2020-12-18" "perl v5.32.1" "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" +Memoize::Storable \- store Memoized data in Storable database +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See Memoize. diff --git a/data/miniconda3/man/man3/Module%3A%3ACoreList%3A%3AUtils.3 b/data/miniconda3/man/man3/Module%3A%3ACoreList%3A%3AUtils.3 new file mode 100644 index 0000000000000000000000000000000000000000..bc5aa9fd125ddfc04a0dc9693b0dadd5d9981213 --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3ACoreList%3A%3AUtils.3 @@ -0,0 +1,230 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::CoreList::Utils 3" +.TH Module::CoreList::Utils 3 "2021-01-23" "perl v5.32.1" "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" +Module::CoreList::Utils \- what utilities shipped with versions of perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::CoreList::Utils; +\& +\& print $Module::CoreList::Utils::utilities{5.009003}{ptar}; # prints 1 +\& +\& print Module::CoreList::Utils\->first_release(\*(Aqcorelist\*(Aq); +\& # prints 5.008009 +\& +\& print Module::CoreList::Utils\->first_release_by_date(\*(Aqcorelist\*(Aq); +\& # prints 5.009002 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Module::CoreList::Utils provides information on which core and dual-life utilities shipped +with each version of perl. +.PP +It provides a number of mechanisms for querying this information. +.PP +There is a functional programming \s-1API\s0 available for programmers to query +information. +.PP +Programmers may also query the contained hash structure to find relevant +information. +.SH "FUNCTIONS API" +.IX Header "FUNCTIONS API" +These are the functions that are available, they may either be called as functions or class methods: +.PP +.Vb 1 +\& Module::CoreList::Utils::first_release(\*(Aqcorelist\*(Aq); # as a function +\& +\& Module::CoreList::Utils\->first_release(\*(Aqcorelist\*(Aq); # class method +.Ve +.ie n .IP """utilities""" 4 +.el .IP "\f(CWutilities\fR" 4 +.IX Item "utilities" +Requires a perl version as an argument, returns a list of utilities that shipped with +that version of perl, or undef/empty list if that perl doesn't exist. +.ie n .IP """first_release( UTILITY )""" 4 +.el .IP "\f(CWfirst_release( UTILITY )\fR" 4 +.IX Item "first_release( UTILITY )" +Requires a \s-1UTILITY\s0 name as an argument, returns the perl version when that utility first +appeared in core as ordered by perl version number or undef ( in scalar context ) +or an empty list ( in list context ) if that utility is not in core. +.ie n .IP """first_release_by_date( UTILITY )""" 4 +.el .IP "\f(CWfirst_release_by_date( UTILITY )\fR" 4 +.IX Item "first_release_by_date( UTILITY )" +Requires a \s-1UTILITY\s0 name as an argument, returns the perl version when that utility first +appeared in core as ordered by release date or undef ( in scalar context ) +or an empty list ( in list context ) if that utility is not in core. +.ie n .IP """removed_from( UTILITY )""" 4 +.el .IP "\f(CWremoved_from( UTILITY )\fR" 4 +.IX Item "removed_from( UTILITY )" +Takes a \s-1UTILITY\s0 name as an argument, returns the first perl version where that utility +was removed from core. Returns undef if the given utility was never in core or remains +in core. +.ie n .IP """removed_from_by_date( UTILITY )""" 4 +.el .IP "\f(CWremoved_from_by_date( UTILITY )\fR" 4 +.IX Item "removed_from_by_date( UTILITY )" +Takes a \s-1UTILITY\s0 name as an argument, returns the first perl version by release date where that +utility was removed from core. Returns undef if the given utility was never in core or remains +in core. +.SH "DATA STRUCTURES" +.IX Header "DATA STRUCTURES" +These are the hash data structures that are available: +.ie n .IP "%Module::CoreList::Utils::utilities" 4 +.el .IP "\f(CW%Module::CoreList::Utils::utilities\fR" 4 +.IX Item "%Module::CoreList::Utils::utilities" +A hash of hashes that is keyed on perl version as indicated +in $]. The second level hash is utility / defined pairs. +.SH "AUTHOR" +.IX Header "AUTHOR" +Chris \f(CW\*(C`BinGOs\*(C'\fR Williams +.PP +Currently maintained by the perl 5 porters . +.PP +This module is the result of archaeology undertaken during \s-1QA\s0 Hackathon +in Lancaster, April 2013. +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C) 2013 Chris Williams. All Rights Reserved. +.PP +This module is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +corelist, Module::CoreList, perl, diff --git a/data/miniconda3/man/man3/Module%3A%3ACoreList.3 b/data/miniconda3/man/man3/Module%3A%3ACoreList.3 new file mode 100644 index 0000000000000000000000000000000000000000..a1f056e2161a2723d1c9655290209a57d2856fbf --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3ACoreList.3 @@ -0,0 +1,383 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::CoreList 3" +.TH Module::CoreList 3 "2020-12-18" "perl v5.32.1" "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" +Module::CoreList \- what modules shipped with versions of perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::CoreList; +\& +\& print $Module::CoreList::version{5.00503}{CPAN}; # prints 1.48 +\& +\& print Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq); +\& # prints 5.00405 +\& +\& print Module::CoreList\->first_release_by_date(\*(AqFile::Spec\*(Aq); +\& # prints 5.005 +\& +\& print Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq, 0.82); +\& # prints 5.006001 +\& +\& if (Module::CoreList::is_core(\*(AqFile::Spec\*(Aq)) { +\& print "File::Spec is a core module\en"; +\& } +\& +\& print join \*(Aq, \*(Aq, Module::CoreList\->find_modules(qr/Data/); +\& # prints \*(AqData::Dumper\*(Aq +\& print join \*(Aq, \*(Aq, +\& Module::CoreList\->find_modules(qr/test::h.*::.*s/i, 5.008008); +\& # prints \*(AqTest::Harness::Assert, Test::Harness::Straps\*(Aq +\& +\& print join ", ", @{ $Module::CoreList::families{5.005} }; +\& # prints "5.005, 5.00503, 5.00504" +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Module::CoreList provides information on which core and dual-life modules shipped +with each version of perl. +.PP +It provides a number of mechanisms for querying this information. +.PP +There is a utility called corelist provided with this module +which is a convenient way of querying from the command-line. +.PP +There is a functional programming \s-1API\s0 available for programmers to query +information. +.PP +Programmers may also query the contained hash structures to find relevant +information. +.SH "FUNCTIONS API" +.IX Header "FUNCTIONS API" +These are the functions that are available, they may either be called as functions or class methods: +.PP +.Vb 1 +\& Module::CoreList::first_release(\*(AqFile::Spec\*(Aq); # as a function +\& +\& Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq); # class method +.Ve +.ie n .IP """first_release( MODULE )""" 4 +.el .IP "\f(CWfirst_release( MODULE )\fR" 4 +.IX Item "first_release( MODULE )" +Behaviour since version 2.11 +.Sp +Requires a \s-1MODULE\s0 name as an argument, returns the perl version when that module first +appeared in core as ordered by perl version number or undef ( in scalar context ) +or an empty list ( in list context ) if that module is not in core. +.ie n .IP """first_release_by_date( MODULE )""" 4 +.el .IP "\f(CWfirst_release_by_date( MODULE )\fR" 4 +.IX Item "first_release_by_date( MODULE )" +Requires a \s-1MODULE\s0 name as an argument, returns the perl version when that module first +appeared in core as ordered by release date or undef ( in scalar context ) +or an empty list ( in list context ) if that module is not in core. +.ie n .IP """find_modules( REGEX, [ LIST OF PERLS ] )""" 4 +.el .IP "\f(CWfind_modules( REGEX, [ LIST OF PERLS ] )\fR" 4 +.IX Item "find_modules( REGEX, [ LIST OF PERLS ] )" +Takes a regex as an argument, returns a list of modules that match the regex given. +If only a regex is provided applies to all modules in all perl versions. Optionally +you may provide a list of perl versions to limit the regex search. +.ie n .IP """find_version( PERL_VERSION )""" 4 +.el .IP "\f(CWfind_version( PERL_VERSION )\fR" 4 +.IX Item "find_version( PERL_VERSION )" +Takes a perl version as an argument. Upon successful completion, returns a +reference to a hash. Each element of that hash has a key which is the name of +a module (\fIe.g.,\fR 'File::Path') shipped with that version of perl and a value +which is the version number (\fIe.g.,\fR '2.09') of that module which shipped +with that version of perl . Returns \f(CW\*(C`undef\*(C'\fR otherwise. +.ie n .IP """is_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )""" 4 +.el .IP "\f(CWis_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )\fR" 4 +.IX Item "is_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )" +Available in version 2.99 and above. +.Sp +Returns true if \s-1MODULE\s0 was bundled with the specified version of Perl. +You can optionally specify a minimum version of the module, +and can also specify a version of Perl. +If a version of Perl isn't specified, +\&\f(CW\*(C`is_core()\*(C'\fR will use the numeric version of Perl that is running (ie \f(CW$]\fR). +.Sp +If you want to specify the version of Perl, but don't care about +the version of the module, pass \f(CW\*(C`undef\*(C'\fR for the module version: +.ie n .IP """is_deprecated( MODULE, PERL_VERSION )""" 4 +.el .IP "\f(CWis_deprecated( MODULE, PERL_VERSION )\fR" 4 +.IX Item "is_deprecated( MODULE, PERL_VERSION )" +Available in version 2.22 and above. +.Sp +Returns true if \s-1MODULE\s0 is marked as deprecated in \s-1PERL_VERSION.\s0 If \s-1PERL_VERSION\s0 is +omitted, it defaults to the current version of Perl. +.ie n .IP """deprecated_in( MODULE )""" 4 +.el .IP "\f(CWdeprecated_in( MODULE )\fR" 4 +.IX Item "deprecated_in( MODULE )" +Available in version 2.77 and above. +.Sp +Returns the first perl version where the \s-1MODULE\s0 was marked as deprecated. Returns \f(CW\*(C`undef\*(C'\fR +if the \s-1MODULE\s0 has not been marked as deprecated. +.ie n .IP """removed_from( MODULE )""" 4 +.el .IP "\f(CWremoved_from( MODULE )\fR" 4 +.IX Item "removed_from( MODULE )" +Available in version 2.32 and above +.Sp +Takes a module name as an argument, returns the first perl version where that module +was removed from core. Returns undef if the given module was never in core or remains +in core. +.ie n .IP """removed_from_by_date( MODULE )""" 4 +.el .IP "\f(CWremoved_from_by_date( MODULE )\fR" 4 +.IX Item "removed_from_by_date( MODULE )" +Available in version 2.32 and above +.Sp +Takes a module name as an argument, returns the first perl version by release date where that module +was removed from core. Returns undef if the given module was never in core or remains +in core. +.ie n .IP """changes_between( PERL_VERSION, PERL_VERSION )""" 4 +.el .IP "\f(CWchanges_between( PERL_VERSION, PERL_VERSION )\fR" 4 +.IX Item "changes_between( PERL_VERSION, PERL_VERSION )" +Available in version 2.66 and above. +.Sp +Given two perl versions, this returns a list of pairs describing the changes in +core module content between them. The list is suitable for storing in a hash. +The keys are library names and the values are hashrefs. Each hashref has an +entry for one or both of \f(CW\*(C`left\*(C'\fR and \f(CW\*(C`right\*(C'\fR, giving the versions of the +library in each of the left and right perl distributions. +.Sp +For example, it might return these data (among others) for the difference +between 5.008000 and 5.008001: +.Sp +.Vb 4 +\& \*(AqPod::ParseLink\*(Aq => { left => \*(Aq1.05\*(Aq, right => \*(Aq1.06\*(Aq }, +\& \*(AqPod::ParseUtils\*(Aq => { left => \*(Aq0.22\*(Aq, right => \*(Aq0.3\*(Aq }, +\& \*(AqPod::Perldoc\*(Aq => { right => \*(Aq3.10\*(Aq }, +\& \*(AqPod::Perldoc::BaseTo\*(Aq => { right => undef }, +.Ve +.Sp +This shows us two libraries being updated and two being added, one of which has +an undefined version in the right-hand side version. +.SH "DATA STRUCTURES" +.IX Header "DATA STRUCTURES" +These are the hash data structures that are available: +.ie n .IP "%Module::CoreList::version" 4 +.el .IP "\f(CW%Module::CoreList::version\fR" 4 +.IX Item "%Module::CoreList::version" +A hash of hashes that is keyed on perl version as indicated +in $]. The second level hash is module => version pairs. +.Sp +Note, it is possible for the version of a module to be unspecified, +whereby the value is \f(CW\*(C`undef\*(C'\fR, so use \f(CW\*(C`exists $version{$foo}{$bar}\*(C'\fR if +that's what you're testing for. +.Sp +Starting with 2.10, the special module name \f(CW\*(C`Unicode\*(C'\fR refers to the version of +the Unicode Character Database bundled with Perl. +.ie n .IP "%Module::CoreList::delta" 4 +.el .IP "\f(CW%Module::CoreList::delta\fR" 4 +.IX Item "%Module::CoreList::delta" +Available in version 3.00 and above. +.Sp +It is a hash of hashes that is keyed on perl version. Each keyed hash will have the +following keys: +.Sp +.Vb 3 +\& delta_from \- a previous perl version that the changes are based on +\& changed \- a hash of module/versions that have changed +\& removed \- a hash of modules that have been removed +.Ve +.ie n .IP "%Module::CoreList::released" 4 +.el .IP "\f(CW%Module::CoreList::released\fR" 4 +.IX Item "%Module::CoreList::released" +Keyed on perl version this contains \s-1ISO\s0 +formatted versions of the release dates, as gleaned from perlhist. +.ie n .IP "%Module::CoreList::families" 4 +.el .IP "\f(CW%Module::CoreList::families\fR" 4 +.IX Item "%Module::CoreList::families" +New, in 1.96, a hash that +clusters known perl releases by their major versions. +.ie n .IP "%Module::CoreList::deprecated" 4 +.el .IP "\f(CW%Module::CoreList::deprecated\fR" 4 +.IX Item "%Module::CoreList::deprecated" +A hash of hashes keyed on perl version and on module name. +If a module is defined it indicates that that module is +deprecated in that perl version and is scheduled for removal +from core at some future point. +.ie n .IP "%Module::CoreList::upstream" 4 +.el .IP "\f(CW%Module::CoreList::upstream\fR" 4 +.IX Item "%Module::CoreList::upstream" +A hash that contains information on where patches should be directed +for each core module. +.Sp +\&\s-1UPSTREAM\s0 indicates where patches should go. \f(CW\*(C`undef\*(C'\fR implies +that this hasn't been discussed for the module at hand. +\&\f(CW\*(C`blead\*(C'\fR indicates that the copy of the module in the blead +sources is to be considered canonical, \f(CW\*(C`cpan\*(C'\fR means that the +module on \s-1CPAN\s0 is to be patched first. \f(CW\*(C`first\-come\*(C'\fR means +that blead can be patched freely if it is in sync with the +latest release on \s-1CPAN.\s0 +.ie n .IP "%Module::CoreList::bug_tracker" 4 +.el .IP "\f(CW%Module::CoreList::bug_tracker\fR" 4 +.IX Item "%Module::CoreList::bug_tracker" +A hash that contains information on the appropriate bug tracker +for each core module. +.Sp +\&\s-1BUGS\s0 is an email or url to post bug reports. For modules with +\&\s-1UPSTREAM\s0 => 'blead', use . rt.cpan.org +appears to automatically provide a \s-1URL\s0 for \s-1CPAN\s0 modules; any value +given here overrides the default: + +.SH "CAVEATS" +.IX Header "CAVEATS" +Module::CoreList currently covers the 5.000, 5.001, 5.002, 5.003_07, +5.004, 5.004_05, 5.005, 5.005_03, 5.005_04 and 5.7.3 releases of perl. +.PP +All stable releases of perl since 5.6.0 are covered. +.PP +All development releases of perl since 5.9.0 are covered. +.SH "HISTORY" +.IX Header "HISTORY" +Moved to Changes file. +.SH "AUTHOR" +.IX Header "AUTHOR" +Richard Clamp +.PP +Currently maintained by the perl 5 porters . +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C) 2002\-2009 Richard Clamp. All Rights Reserved. +.PP +This module is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +corelist, Module::Info, perl, diff --git a/data/miniconda3/man/man3/Module%3A%3ALoad%3A%3AConditional.3 b/data/miniconda3/man/man3/Module%3A%3ALoad%3A%3AConditional.3 new file mode 100644 index 0000000000000000000000000000000000000000..887509ec45f18958b0064957f0d4dd5d17630d00 --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3ALoad%3A%3AConditional.3 @@ -0,0 +1,362 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::Load::Conditional 3" +.TH Module::Load::Conditional 3 "2020-12-18" "perl v5.32.1" "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" +Module::Load::Conditional \- Looking up module information / loading at runtime +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::Load::Conditional qw[can_load check_install requires]; +\& +\& +\& my $use_list = { +\& CPANPLUS => 0.05, +\& LWP => 5.60, +\& \*(AqTest::More\*(Aq => undef, +\& }; +\& +\& print can_load( modules => $use_list ) +\& ? \*(Aqall modules loaded successfully\*(Aq +\& : \*(Aqfailed to load required modules\*(Aq; +\& +\& +\& my $rv = check_install( module => \*(AqLWP\*(Aq, version => 5.60 ) +\& or print \*(AqLWP is not installed!\*(Aq; +\& +\& print \*(AqLWP up to date\*(Aq if $rv\->{uptodate}; +\& print "LWP version is $rv\->{version}\en"; +\& print "LWP is installed as file $rv\->{file}\en"; +\& +\& +\& print "LWP requires the following modules to be installed:\en"; +\& print join "\en", requires(\*(AqLWP\*(Aq); +\& +\& ### allow M::L::C to peek in your %INC rather than just +\& ### scanning @INC +\& $Module::Load::Conditional::CHECK_INC_HASH = 1; +\& +\& ### reset the \*(Aqcan_load\*(Aq cache +\& undef $Module::Load::Conditional::CACHE; +\& +\& ### don\*(Aqt have Module::Load::Conditional issue warnings \-\- +\& ### default is \*(Aq1\*(Aq +\& $Module::Load::Conditional::VERBOSE = 0; +\& +\& ### The last error that happened during a call to \*(Aqcan_load\*(Aq +\& my $err = $Module::Load::Conditional::ERROR; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Module::Load::Conditional provides simple ways to query and possibly load any of +the modules you have installed on your system during runtime. +.PP +It is able to load multiple modules at once or none at all if one of +them was not able to load. It also takes care of any error checking +and so forth. +.SH "Methods" +.IX Header "Methods" +.ie n .SS "$href = check_install( module => \s-1NAME\s0 [, version => \s-1VERSION,\s0 verbose => \s-1BOOL\s0 ] );" +.el .SS "\f(CW$href\fP = check_install( module => \s-1NAME\s0 [, version => \s-1VERSION,\s0 verbose => \s-1BOOL\s0 ] );" +.IX Subsection "$href = check_install( module => NAME [, version => VERSION, verbose => BOOL ] );" +\&\f(CW\*(C`check_install\*(C'\fR allows you to verify if a certain module is installed +or not. You may call it with the following arguments: +.IP "module" 4 +.IX Item "module" +The name of the module you wish to verify \*(-- this is a required key +.IP "version" 4 +.IX Item "version" +The version this module needs to be \*(-- this is optional +.IP "verbose" 4 +.IX Item "verbose" +Whether or not to be verbose about what it is doing \*(-- it will default +to \f(CW$Module::Load::Conditional::VERBOSE\fR +.PP +It will return undef if it was not able to find where the module was +installed, or a hash reference with the following keys if it was able +to find the file: +.IP "file" 4 +.IX Item "file" +Full path to the file that contains the module +.IP "dir" 4 +.IX Item "dir" +Directory, or more exact the \f(CW@INC\fR entry, where the module was +loaded from. +.IP "version" 4 +.IX Item "version" +The version number of the installed module \- this will be \f(CW\*(C`undef\*(C'\fR if +the module had no (or unparsable) version number, or if the variable +\&\f(CW$Module::Load::Conditional::FIND_VERSION\fR was set to true. +(See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section below for details) +.IP "uptodate" 4 +.IX Item "uptodate" +A boolean value indicating whether or not the module was found to be +at least the version you specified. If you did not specify a version, +uptodate will always be true if the module was found. +If no parsable version was found in the module, uptodate will also be +true, since \f(CW\*(C`check_install\*(C'\fR had no way to verify clearly. +.Sp +See also \f(CW$Module::Load::Conditional::DEPRECATED\fR, which affects +the outcome of this value. +.ie n .SS "$bool = can_load( modules => { \s-1NAME\s0 => \s-1VERSION\s0 [,NAME => \s-1VERSION\s0] }, [verbose => \s-1BOOL,\s0 nocache => \s-1BOOL,\s0 autoload => \s-1BOOL\s0] )" +.el .SS "\f(CW$bool\fP = can_load( modules => { \s-1NAME\s0 => \s-1VERSION\s0 [,NAME => \s-1VERSION\s0] }, [verbose => \s-1BOOL,\s0 nocache => \s-1BOOL,\s0 autoload => \s-1BOOL\s0] )" +.IX Subsection "$bool = can_load( modules => { NAME => VERSION [,NAME => VERSION] }, [verbose => BOOL, nocache => BOOL, autoload => BOOL] )" +\&\f(CW\*(C`can_load\*(C'\fR will take a list of modules, optionally with version +numbers and determine if it is able to load them. If it can load *ALL* +of them, it will. If one or more are unloadable, none will be loaded. +.PP +This is particularly useful if you have More Than One Way (tm) to +solve a problem in a program, and only wish to continue down a path +if all modules could be loaded, and not load them if they couldn't. +.PP +This function uses the \f(CW\*(C`load\*(C'\fR function or the \f(CW\*(C`autoload_remote\*(C'\fR function +from Module::Load under the hood. +.PP +\&\f(CW\*(C`can_load\*(C'\fR takes the following arguments: +.IP "modules" 4 +.IX Item "modules" +This is a hashref of module/version pairs. The version indicates the +minimum version to load. If no version is provided, any version is +assumed to be good enough. +.IP "verbose" 4 +.IX Item "verbose" +This controls whether warnings should be printed if a module failed +to load. +The default is to use the value of \f(CW$Module::Load::Conditional::VERBOSE\fR. +.IP "nocache" 4 +.IX Item "nocache" +\&\f(CW\*(C`can_load\*(C'\fR keeps its results in a cache, so it will not load the +same module twice, nor will it attempt to load a module that has +already failed to load before. By default, \f(CW\*(C`can_load\*(C'\fR will check its +cache, but you can override that by setting \f(CW\*(C`nocache\*(C'\fR to true. +.IP "autoload" 4 +.IX Item "autoload" +This controls whether imports the functions of a loaded modules to the caller package. The default is no importing any functions. +.Sp +See the \f(CW\*(C`autoload\*(C'\fR function and the \f(CW\*(C`autoload_remote\*(C'\fR function from Module::Load for details. +.ie n .SS "@list = requires( \s-1MODULE\s0 );" +.el .SS "\f(CW@list\fP = requires( \s-1MODULE\s0 );" +.IX Subsection "@list = requires( MODULE );" +\&\f(CW\*(C`requires\*(C'\fR can tell you what other modules a particular module +requires. This is particularly useful when you're intending to write +a module for public release and are listing its prerequisites. +.PP +\&\f(CW\*(C`requires\*(C'\fR takes but one argument: the name of a module. +It will then first check if it can actually load this module, and +return undef if it can't. +Otherwise, it will return a list of modules and pragmas that would +have been loaded on the module's behalf. +.PP +Note: The list \f(CW\*(C`require\*(C'\fR returns has originated from your current +perl and your current install. +.SH "Global Variables" +.IX Header "Global Variables" +The behaviour of Module::Load::Conditional can be altered by changing the +following global variables: +.ie n .SS "$Module::Load::Conditional::VERBOSE" +.el .SS "\f(CW$Module::Load::Conditional::VERBOSE\fP" +.IX Subsection "$Module::Load::Conditional::VERBOSE" +This controls whether Module::Load::Conditional will issue warnings and +explanations as to why certain things may have failed. If you set it +to 0, Module::Load::Conditional will not output any warnings. +The default is 0; +.ie n .SS "$Module::Load::Conditional::FIND_VERSION" +.el .SS "\f(CW$Module::Load::Conditional::FIND_VERSION\fP" +.IX Subsection "$Module::Load::Conditional::FIND_VERSION" +This controls whether Module::Load::Conditional will try to parse +(and eval) the version from the module you're trying to load. +.PP +If you don't wish to do this, set this variable to \f(CW\*(C`false\*(C'\fR. Understand +then that version comparisons are not possible, and Module::Load::Conditional +can not tell you what module version you have installed. +This may be desirable from a security or performance point of view. +Note that \f(CW$FIND_VERSION\fR code runs safely under \f(CW\*(C`taint mode\*(C'\fR. +.PP +The default is 1; +.ie n .SS "$Module::Load::Conditional::CHECK_INC_HASH" +.el .SS "\f(CW$Module::Load::Conditional::CHECK_INC_HASH\fP" +.IX Subsection "$Module::Load::Conditional::CHECK_INC_HASH" +This controls whether \f(CW\*(C`Module::Load::Conditional\*(C'\fR checks your +\&\f(CW%INC\fR hash to see if a module is available. By default, only +\&\f(CW@INC\fR is scanned to see if a module is physically on your +filesystem, or available via an \f(CW\*(C`@INC\-hook\*(C'\fR. Setting this variable +to \f(CW\*(C`true\*(C'\fR will trust any entries in \f(CW%INC\fR and return them for +you. +.PP +The default is 0; +.ie n .SS "$Module::Load::Conditional::FORCE_SAFE_INC" +.el .SS "\f(CW$Module::Load::Conditional::FORCE_SAFE_INC\fP" +.IX Subsection "$Module::Load::Conditional::FORCE_SAFE_INC" +This controls whether \f(CW\*(C`Module::Load::Conditional\*(C'\fR sanitises \f(CW@INC\fR +by removing "\f(CW\*(C`.\*(C'\fR". The current default setting is \f(CW0\fR, but this +may change in a future release. +.ie n .SS "$Module::Load::Conditional::CACHE" +.el .SS "\f(CW$Module::Load::Conditional::CACHE\fP" +.IX Subsection "$Module::Load::Conditional::CACHE" +This holds the cache of the \f(CW\*(C`can_load\*(C'\fR function. If you explicitly +want to remove the current cache, you can set this variable to +\&\f(CW\*(C`undef\*(C'\fR +.ie n .SS "$Module::Load::Conditional::ERROR" +.el .SS "\f(CW$Module::Load::Conditional::ERROR\fP" +.IX Subsection "$Module::Load::Conditional::ERROR" +This holds a string of the last error that happened during a call to +\&\f(CW\*(C`can_load\*(C'\fR. It is useful to inspect this when \f(CW\*(C`can_load\*(C'\fR returns +\&\f(CW\*(C`undef\*(C'\fR. +.ie n .SS "$Module::Load::Conditional::DEPRECATED" +.el .SS "\f(CW$Module::Load::Conditional::DEPRECATED\fP" +.IX Subsection "$Module::Load::Conditional::DEPRECATED" +This controls whether \f(CW\*(C`Module::Load::Conditional\*(C'\fR checks if +a dual-life core module has been deprecated. If this is set to +true \f(CW\*(C`check_install\*(C'\fR will return false to \f(CW\*(C`uptodate\*(C'\fR, if +a dual-life module is found to be loaded from \f(CW$Config{privlibexp}\fR +.PP +The default is 0; +.SH "See Also" +.IX Header "See Also" +\&\f(CW\*(C`Module::Load\*(C'\fR +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Module%3A%3ALoad.3 b/data/miniconda3/man/man3/Module%3A%3ALoad.3 new file mode 100644 index 0000000000000000000000000000000000000000..4b88c1b895150ce8513af7b0b614898e92cc08d5 --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3ALoad.3 @@ -0,0 +1,344 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::Load 3" +.TH Module::Load 3 "2020-12-18" "perl v5.32.1" "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" +Module::Load \- runtime require of both modules and files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::Load; +\& +\& my $module = \*(AqData::Dumper\*(Aq; +\& +\& load Data::Dumper; # loads that module, but not import any functions +\& # \-> cannot use \*(AqDumper\*(Aq function +\& +\& load \*(AqData::Dumper\*(Aq; # ditto +\& load $module # tritto +\& +\& autoload Data::Dumper; # loads that module and imports the default functions +\& # \-> can use \*(AqDumper\*(Aq function +\& +\& my $script = \*(Aqsome/script.pl\*(Aq +\& load $script; +\& load \*(Aqsome/script.pl\*(Aq; # use quotes because of punctuations +\& +\& load thing; # try \*(Aqthing\*(Aq first, then \*(Aqthing.pm\*(Aq +\& +\& load CGI, \*(Aq:all\*(Aq; # like \*(Aquse CGI qw[:standard]\*(Aq +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Module::Load\*(C'\fR eliminates the need to know whether you are trying +to require either a file or a module. +.PP +If you consult \f(CW\*(C`perldoc \-f require\*(C'\fR you will see that \f(CW\*(C`require\*(C'\fR will +behave differently when given a bareword or a string. +.PP +In the case of a string, \f(CW\*(C`require\*(C'\fR assumes you are wanting to load a +file. But in the case of a bareword, it assumes you mean a module. +.PP +This gives nasty overhead when you are trying to dynamically require +modules at runtime, since you will need to change the module notation +(\f(CW\*(C`Acme::Comment\*(C'\fR) to a file notation fitting the particular platform +you are on. +.PP +\&\f(CW\*(C`Module::Load\*(C'\fR eliminates the need for this overhead and will +just \s-1DWYM.\s0 +.ie n .SS "Difference between ""load"" and ""autoload""" +.el .SS "Difference between \f(CWload\fP and \f(CWautoload\fP" +.IX Subsection "Difference between load and autoload" +\&\f(CW\*(C`Module::Load\*(C'\fR imports the two functions \- \f(CW\*(C`load\*(C'\fR and \f(CW\*(C`autoload\*(C'\fR +.PP +\&\f(CW\*(C`autoload\*(C'\fR imports the default functions automatically, +but \f(CW\*(C`load\*(C'\fR do not import any functions. +.PP +\&\f(CW\*(C`autoload\*(C'\fR is usable under \f(CW\*(C`BEGIN{};\*(C'\fR. +.PP +Both the functions can import the functions that are specified. +.PP +Following codes are same. +.PP +.Vb 1 +\& load File::Spec::Functions, qw/splitpath/; +\& +\& autoload File::Spec::Functions, qw/splitpath/; +.Ve +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "load" 4 +.IX Item "load" +Loads a specified module. +.Sp +See \*(L"Rules\*(R" for detailed loading rule. +.IP "autoload" 4 +.IX Item "autoload" +Loads a specified module and imports the default functions. +.Sp +Except importing the functions, 'autoload' is same as 'load'. +.IP "load_remote" 4 +.IX Item "load_remote" +Loads a specified module to the specified package. +.Sp +.Vb 1 +\& use Module::Load \*(Aqload_remote\*(Aq; +\& +\& my $pkg = \*(AqOther::Package\*(Aq; +\& +\& load_remote $pkg, \*(AqData::Dumper\*(Aq; # load a module to \*(AqOther::Package\*(Aq +\& # but do not import \*(AqDumper\*(Aq function +.Ve +.Sp +A module for loading must be quoted. +.Sp +Except specifing the package and quoting module name, +\&'load_remote' is same as 'load'. +.IP "autoload_remote" 4 +.IX Item "autoload_remote" +Loads a specified module and imports the default functions to the specified package. +.Sp +.Vb 1 +\& use Module::Load \*(Aqautoload_remote\*(Aq; +\& +\& my $pkg = \*(AqOther::Package\*(Aq; +\& +\& autoload_remote $pkg, \*(AqData::Dumper\*(Aq; # load a module to \*(AqOther::Package\*(Aq +\& # and imports \*(AqDumper\*(Aq function +.Ve +.Sp +A module for loading must be quoted. +.Sp +Except specifing the package and quoting module name, +\&'autoload_remote' is same as 'load_remote'. +.SH "Rules" +.IX Header "Rules" +All functions have the following rules to decide what it thinks +you want: +.IP "\(bu" 4 +If the argument has any characters in it other than those matching +\&\f(CW\*(C`\ew\*(C'\fR, \f(CW\*(C`:\*(C'\fR or \f(CW\*(C`\*(Aq\*(C'\fR, it must be a file +.IP "\(bu" 4 +If the argument matches only \f(CW\*(C`[\ew:\*(Aq]\*(C'\fR, it must be a module +.IP "\(bu" 4 +If the argument matches only \f(CW\*(C`\ew\*(C'\fR, it could either be a module or a +file. We will try to find \f(CW\*(C`file.pm\*(C'\fR first in \f(CW@INC\fR and if that +fails, we will try to find \f(CW\*(C`file\*(C'\fR in \f(CW@INC\fR. If both fail, we die with +the respective error messages. +.SH "IMPORTS THE FUNCTIONS" +.IX Header "IMPORTS THE FUNCTIONS" +\&'load' and 'autoload' are imported by default, but 'load_remote' and +\&'autoload_remote' are not imported. +.PP +To use 'load_remote' or 'autoload_remote', specify at 'use'. +.ie n .IP """load"",""autoload"",""load_remote"",""autoload_remote""" 4 +.el .IP "``load'',``autoload'',``load_remote'',``autoload_remote''" 4 +.IX Item "load,autoload,load_remote,autoload_remote" +Imports the selected functions. +.Sp +.Vb 2 +\& # imports \*(Aqload\*(Aq and \*(Aqautoload\*(Aq (default) +\& use Module::Load; +\& +\& # imports \*(Aqautoload\*(Aq only +\& use Module::Load \*(Aqautoload\*(Aq; +\& +\& # imports \*(Aqautoload\*(Aq and \*(Aqautoload_remote\*(Aq, but don\*(Aqt import \*(Aqload\*(Aq; +\& use Module::Load qw/autoload autoload_remote/; +.Ve +.IP "'all'" 4 +.IX Item "'all'" +Imports all the functions. +.Sp +.Vb 1 +\& use Module::Load \*(Aqall\*(Aq; # imports load, autoload, load_remote, autoload_remote +.Ve +.IP "'','none',undef" 4 +.IX Item "'','none',undef" +Not import any functions (\f(CW\*(C`load\*(C'\fR and \f(CW\*(C`autoload\*(C'\fR are not imported). +.Sp +.Vb 1 +\& use Module::Load \*(Aq\*(Aq; +\& +\& use Module::Load \*(Aqnone\*(Aq; +\& +\& use Module::Load undef; +.Ve +.SH "Caveats" +.IX Header "Caveats" +Because of a bug in perl (#19213), at least in version 5.6.1, we have +to hardcode the path separator for a require on Win32 to be \f(CW\*(C`/\*(C'\fR, like +on Unix rather than the Win32 \f(CW\*(C`\e\*(C'\fR. Otherwise perl will not read its +own \f(CW%INC\fR accurately double load files if they are required again, or +in the worst case, core dump. +.PP +\&\f(CW\*(C`Module::Load\*(C'\fR cannot do implicit imports, only explicit imports. +(in other words, you always have to specify explicitly what you wish +to import from a module, even if the functions are in that modules' +\&\f(CW@EXPORT\fR) +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Module::Runtime provides functions for loading modules, +checking the validity of a module name, +converting a module name to partial \f(CW\*(C`.pm\*(C'\fR path, +and related utility functions. +.PP +\&\*(L"require\*(R" in perlfunc +and +\&\*(L"use\*(R" in perlfunc . +.PP +Mojo::Loader is a \*(L"class loader and plugin framework\*(R", +and is included in the +Mojolicious distribution. +.PP +Module::Loader is a module for finding and loading modules +in a given namespace, inspired by \f(CW\*(C`Mojo::Loader\*(C'\fR. +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Thanks to Jonas B. Nielsen for making explicit imports work. +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Module%3A%3ALoaded.3 b/data/miniconda3/man/man3/Module%3A%3ALoaded.3 new file mode 100644 index 0000000000000000000000000000000000000000..2aea3dbd5bcf63e34443c1db355eb2e91b509254 --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3ALoaded.3 @@ -0,0 +1,199 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::Loaded 3" +.TH Module::Loaded 3 "2020-12-18" "perl v5.32.1" "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" +Module::Loaded \- mark modules as loaded or unloaded +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::Loaded; +\& +\& $bool = mark_as_loaded(\*(AqFoo\*(Aq); # Foo.pm is now marked as loaded +\& $loc = is_loaded(\*(AqFoo\*(Aq); # location of Foo.pm set to the +\& # loaders location +\& eval "require \*(AqFoo\*(Aq"; # is now a no\-op +\& +\& $bool = mark_as_unloaded(\*(AqFoo\*(Aq); # Foo.pm no longer marked as loaded +\& eval "require \*(AqFoo\*(Aq"; # Will try to find Foo.pm in @INC +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When testing applications, often you find yourself needing to provide +functionality in your test environment that would usually be provided +by external modules. Rather than munging the \f(CW%INC\fR by hand to mark +these external modules as loaded, so they are not attempted to be loaded +by perl, this module offers you a very simple way to mark modules as +loaded and/or unloaded. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .SS "$bool = mark_as_loaded( \s-1PACKAGE\s0 );" +.el .SS "\f(CW$bool\fP = mark_as_loaded( \s-1PACKAGE\s0 );" +.IX Subsection "$bool = mark_as_loaded( PACKAGE );" +Marks the package as loaded to perl. \f(CW\*(C`PACKAGE\*(C'\fR can be a bareword or +string. +.PP +If the module is already loaded, \f(CW\*(C`mark_as_loaded\*(C'\fR will carp about +this and tell you from where the \f(CW\*(C`PACKAGE\*(C'\fR has been loaded already. +.ie n .SS "$bool = mark_as_unloaded( \s-1PACKAGE\s0 );" +.el .SS "\f(CW$bool\fP = mark_as_unloaded( \s-1PACKAGE\s0 );" +.IX Subsection "$bool = mark_as_unloaded( PACKAGE );" +Marks the package as unloaded to perl, which is the exact opposite +of \f(CW\*(C`mark_as_loaded\*(C'\fR. \f(CW\*(C`PACKAGE\*(C'\fR can be a bareword or string. +.PP +If the module is already unloaded, \f(CW\*(C`mark_as_unloaded\*(C'\fR will carp about +this and tell you the \f(CW\*(C`PACKAGE\*(C'\fR has been unloaded already. +.ie n .SS "$loc = is_loaded( \s-1PACKAGE\s0 );" +.el .SS "\f(CW$loc\fP = is_loaded( \s-1PACKAGE\s0 );" +.IX Subsection "$loc = is_loaded( PACKAGE );" +\&\f(CW\*(C`is_loaded\*(C'\fR tells you if \f(CW\*(C`PACKAGE\*(C'\fR has been marked as loaded yet. +\&\f(CW\*(C`PACKAGE\*(C'\fR can be a bareword or string. +.PP +It returns falls if \f(CW\*(C`PACKAGE\*(C'\fR has not been loaded yet and the location +from where it is said to be loaded on success. +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Module%3A%3AMetadata.3 b/data/miniconda3/man/man3/Module%3A%3AMetadata.3 new file mode 100644 index 0000000000000000000000000000000000000000..4752f204dd147796ad10d0ae77caf23d41a18336 --- /dev/null +++ b/data/miniconda3/man/man3/Module%3A%3AMetadata.3 @@ -0,0 +1,427 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Module::Metadata 3" +.TH Module::Metadata 3 "2020-12-18" "perl v5.32.1" "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" +Module::Metadata \- Gather package and POD information from perl module files +.SH "VERSION" +.IX Header "VERSION" +version 1.000037 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Module::Metadata; +\& +\& # information about a .pm file +\& my $info = Module::Metadata\->new_from_file( $file ); +\& my $version = $info\->version; +\& +\& # CPAN META \*(Aqprovides\*(Aq field for .pm files in a directory +\& my $provides = Module::Metadata\->provides( +\& dir => \*(Aqlib\*(Aq, version => 2 +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a standard way to gather metadata about a .pm file through +(mostly) static analysis and (some) code execution. When determining the +version of a module, the \f(CW$VERSION\fR assignment is \f(CW\*(C`eval\*(C'\fRed, as is traditional +in the \s-1CPAN\s0 toolchain. +.SH "CLASS METHODS" +.IX Header "CLASS METHODS" +.ie n .SS """new_from_file($filename, collect_pod => 1, decode_pod => 1)""" +.el .SS "\f(CWnew_from_file($filename, collect_pod => 1, decode_pod => 1)\fP" +.IX Subsection "new_from_file($filename, collect_pod => 1, decode_pod => 1)" +Constructs a \f(CW\*(C`Module::Metadata\*(C'\fR object given the path to a file. Returns +undef if the filename does not exist. +.PP +\&\f(CW\*(C`collect_pod\*(C'\fR is a optional boolean argument that determines whether \s-1POD\s0 +data is collected and stored for reference. \s-1POD\s0 data is not collected by +default. \s-1POD\s0 headings are always collected. +.PP +If the file begins by an \s-1UTF\-8, UTF\-16BE\s0 or \s-1UTF\-16LE\s0 byte-order mark, then +it is skipped before processing, and the content of the file is also decoded +appropriately starting from perl 5.8. +.PP +Alternatively, if \f(CW\*(C`decode_pod\*(C'\fR is set, it will decode the collected pod +sections according to the \f(CW\*(C`=encoding\*(C'\fR declaration. +.ie n .SS """new_from_handle($handle, $filename, collect_pod => 1, decode_pod => 1)""" +.el .SS "\f(CWnew_from_handle($handle, $filename, collect_pod => 1, decode_pod => 1)\fP" +.IX Subsection "new_from_handle($handle, $filename, collect_pod => 1, decode_pod => 1)" +This works just like \f(CW\*(C`new_from_file\*(C'\fR, except that a handle can be provided +as the first argument. +.PP +Note that there is no validation to confirm that the handle is a handle or +something that can act like one. Passing something that isn't a handle will +cause a exception when trying to read from it. The \f(CW\*(C`filename\*(C'\fR argument is +mandatory or undef will be returned. +.PP +You are responsible for setting the decoding layers on \f(CW$handle\fR if +required. +.ie n .SS """new_from_module($module, collect_pod => 1, inc => \e@dirs, decode_pod => 1)""" +.el .SS "\f(CWnew_from_module($module, collect_pod => 1, inc => \e@dirs, decode_pod => 1)\fP" +.IX Subsection "new_from_module($module, collect_pod => 1, inc => @dirs, decode_pod => 1)" +Constructs a \f(CW\*(C`Module::Metadata\*(C'\fR object given a module or package name. +Returns undef if the module cannot be found. +.PP +In addition to accepting the \f(CW\*(C`collect_pod\*(C'\fR and \f(CW\*(C`decode_pod\*(C'\fR arguments as +described above, this method accepts a \f(CW\*(C`inc\*(C'\fR argument which is a reference to +an array of directories to search for the module. If none are given, the +default is \f(CW@INC\fR. +.PP +If the file that contains the module begins by an \s-1UTF\-8, UTF\-16BE\s0 or +\&\s-1UTF\-16LE\s0 byte-order mark, then it is skipped before processing, and the +content of the file is also decoded appropriately starting from perl 5.8. +.ie n .SS """find_module_by_name($module, \e@dirs)""" +.el .SS "\f(CWfind_module_by_name($module, \e@dirs)\fP" +.IX Subsection "find_module_by_name($module, @dirs)" +Returns the path to a module given the module or package name. A list +of directories can be passed in as an optional parameter, otherwise +\&\f(CW@INC\fR is searched. +.PP +Can be called as either an object or a class method. +.ie n .SS """find_module_dir_by_name($module, \e@dirs)""" +.el .SS "\f(CWfind_module_dir_by_name($module, \e@dirs)\fP" +.IX Subsection "find_module_dir_by_name($module, @dirs)" +Returns the entry in \f(CW@dirs\fR (or \f(CW@INC\fR by default) that contains +the module \f(CW$module\fR. A list of directories can be passed in as an +optional parameter, otherwise \f(CW@INC\fR is searched. +.PP +Can be called as either an object or a class method. +.ie n .SS """provides( %options )""" +.el .SS "\f(CWprovides( %options )\fP" +.IX Subsection "provides( %options )" +This is a convenience wrapper around \f(CW\*(C`package_versions_from_directory\*(C'\fR +to generate a \s-1CPAN META\s0 \f(CW\*(C`provides\*(C'\fR data structure. It takes key/value +pairs. Valid option keys include: +.IP "version \fB(required)\fR" 4 +.IX Item "version (required)" +Specifies which version of the CPAN::Meta::Spec should be used as +the format of the \f(CW\*(C`provides\*(C'\fR output. Currently only '1.4' and '2' +are supported (and their format is identical). This may change in +the future as the definition of \f(CW\*(C`provides\*(C'\fR changes. +.Sp +The \f(CW\*(C`version\*(C'\fR option is required. If it is omitted or if +an unsupported version is given, then \f(CW\*(C`provides\*(C'\fR will throw an error. +.IP "dir" 4 +.IX Item "dir" +Directory to search recursively for \fI.pm\fR files. May not be specified with +\&\f(CW\*(C`files\*(C'\fR. +.IP "files" 4 +.IX Item "files" +Array reference of files to examine. May not be specified with \f(CW\*(C`dir\*(C'\fR. +.IP "prefix" 4 +.IX Item "prefix" +String to prepend to the \f(CW\*(C`file\*(C'\fR field of the resulting output. This defaults +to \fIlib\fR, which is the common case for most \s-1CPAN\s0 distributions with their +\&\fI.pm\fR files in \fIlib\fR. This option ensures the \s-1META\s0 information has the +correct relative path even when the \f(CW\*(C`dir\*(C'\fR or \f(CW\*(C`files\*(C'\fR arguments are +absolute or have relative paths from a location other than the distribution +root. +.PP +For example, given \f(CW\*(C`dir\*(C'\fR of 'lib' and \f(CW\*(C`prefix\*(C'\fR of 'lib', the return value +is a hashref of the form: +.PP +.Vb 7 +\& { +\& \*(AqPackage::Name\*(Aq => { +\& version => \*(Aq0.123\*(Aq, +\& file => \*(Aqlib/Package/Name.pm\*(Aq +\& }, +\& \*(AqOtherPackage::Name\*(Aq => ... +\& } +.Ve +.ie n .SS """package_versions_from_directory($dir, \e@files?)""" +.el .SS "\f(CWpackage_versions_from_directory($dir, \e@files?)\fP" +.IX Subsection "package_versions_from_directory($dir, @files?)" +Scans \f(CW$dir\fR for .pm files (unless \f(CW@files\fR is given, in which case looks +for those files in \f(CW$dir\fR \- and reads each file for packages and versions, +returning a hashref of the form: +.PP +.Vb 7 +\& { +\& \*(AqPackage::Name\*(Aq => { +\& version => \*(Aq0.123\*(Aq, +\& file => \*(AqPackage/Name.pm\*(Aq +\& }, +\& \*(AqOtherPackage::Name\*(Aq => ... +\& } +.Ve +.PP +The \f(CW\*(C`DB\*(C'\fR and \f(CW\*(C`main\*(C'\fR packages are always omitted, as are any \*(L"private\*(R" +packages that have leading underscores in the namespace (e.g. +\&\f(CW\*(C`Foo::_private\*(C'\fR) +.PP +Note that the file path is relative to \f(CW$dir\fR if that is specified. +This \fBmust not\fR be used directly for \s-1CPAN META\s0 \f(CW\*(C`provides\*(C'\fR. See +the \f(CW\*(C`provides\*(C'\fR method instead. +.ie n .SS """log_info (internal)""" +.el .SS "\f(CWlog_info (internal)\fP" +.IX Subsection "log_info (internal)" +Used internally to perform logging; imported from Log::Contextual if +Log::Contextual has already been loaded, otherwise simply calls warn. +.SH "OBJECT METHODS" +.IX Header "OBJECT METHODS" +.ie n .SS """name()""" +.el .SS "\f(CWname()\fP" +.IX Subsection "name()" +Returns the name of the package represented by this module. If there +is more than one package, it makes a best guess based on the +filename. If it's a script (i.e. not a *.pm) the package name is +\&'main'. +.ie n .SS """version($package)""" +.el .SS "\f(CWversion($package)\fP" +.IX Subsection "version($package)" +Returns the version as defined by the \f(CW$VERSION\fR variable for the +package as returned by the \f(CW\*(C`name\*(C'\fR method if no arguments are +given. If given the name of a package it will attempt to return the +version of that package if it is specified in the file. +.ie n .SS """filename()""" +.el .SS "\f(CWfilename()\fP" +.IX Subsection "filename()" +Returns the absolute path to the file. +Note that this file may not actually exist on disk yet, e.g. if the module was read from an in-memory filehandle. +.ie n .SS """packages_inside()""" +.el .SS "\f(CWpackages_inside()\fP" +.IX Subsection "packages_inside()" +Returns a list of packages. Note: this is a raw list of packages +discovered (or assumed, in the case of \f(CW\*(C`main\*(C'\fR). It is not +filtered for \f(CW\*(C`DB\*(C'\fR, \f(CW\*(C`main\*(C'\fR or private packages the way the +\&\f(CW\*(C`provides\*(C'\fR method does. Invalid package names are not returned, +for example \*(L"Foo:Bar\*(R". Strange but valid package names are +returned, for example \*(L"Foo::Bar::\*(R", and are left up to the caller +on how to handle. +.ie n .SS """pod_inside()""" +.el .SS "\f(CWpod_inside()\fP" +.IX Subsection "pod_inside()" +Returns a list of \s-1POD\s0 sections. +.ie n .SS """contains_pod()""" +.el .SS "\f(CWcontains_pod()\fP" +.IX Subsection "contains_pod()" +Returns true if there is any \s-1POD\s0 in the file. +.ie n .SS """pod($section)""" +.el .SS "\f(CWpod($section)\fP" +.IX Subsection "pod($section)" +Returns the \s-1POD\s0 data in the given section. +.ie n .SS """is_indexable($package)"" or ""is_indexable()""" +.el .SS "\f(CWis_indexable($package)\fP or \f(CWis_indexable()\fP" +.IX Subsection "is_indexable($package) or is_indexable()" +Available since version 1.000020. +.PP +Returns a boolean indicating whether the package (if provided) or any package +(otherwise) is eligible for indexing by \s-1PAUSE,\s0 the Perl Authors Upload Server. +Note This only checks for valid \f(CW\*(C`package\*(C'\fR declarations, and does not take any +ownership information into account. +.SH "SUPPORT" +.IX Header "SUPPORT" +Bugs may be submitted through the \s-1RT\s0 bug tracker +(or bug\-Module\-Metadata@rt.cpan.org ). +.PP +There is also a mailing list available for users of this distribution, at +. +.PP +There is also an irc channel available for users of this distribution, at +\&\f(CW\*(C`#toolchain\*(C'\fR on \f(CW\*(C`irc.perl.org\*(C'\fR . +.SH "AUTHOR" +.IX Header "AUTHOR" +Original code from Module::Build::ModuleInfo by Ken Williams +, Randy W. Sims +.PP +Released as Module::Metadata by Matt S Trout (mst) with +assistance from David Golden (xdg) . +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Karen Etheridge +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Vincent Pit +.IP "\(bu" 4 +Matt S Trout +.IP "\(bu" 4 +Chris Nehren +.IP "\(bu" 4 +Tomas Doran +.IP "\(bu" 4 +Olivier Mengue\*' +.IP "\(bu" 4 +Graham Knop +.IP "\(bu" 4 +tokuhirom +.IP "\(bu" 4 +Tatsuhiko Miyagawa +.IP "\(bu" 4 +Christian Walde +.IP "\(bu" 4 +Leon Timmermans +.IP "\(bu" 4 +Peter Rabbitson +.IP "\(bu" 4 +Steve Hay +.IP "\(bu" 4 +Jerry D. Hedden +.IP "\(bu" 4 +Craig A. Berry +.IP "\(bu" 4 +Craig A. Berry +.IP "\(bu" 4 +David Mitchell +.IP "\(bu" 4 +David Steinbrunner +.IP "\(bu" 4 +Edward Zborowski +.IP "\(bu" 4 +Gareth Harper +.IP "\(bu" 4 +James Raspass +.IP "\(bu" 4 +Chris 'BinGOs' Williams +.IP "\(bu" 4 +Josh Jore +.IP "\(bu" 4 +Kent Fredric +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Original code Copyright (c) 2001\-2011 Ken Williams. +Additional code Copyright (c) 2010\-2011 Matt Trout and David Golden. +All rights reserved. +.PP +This library is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/NEXT.3 b/data/miniconda3/man/man3/NEXT.3 new file mode 100644 index 0000000000000000000000000000000000000000..775b6819ed162e00e8b31a1c4dc253f64e6b0802 --- /dev/null +++ b/data/miniconda3/man/man3/NEXT.3 @@ -0,0 +1,537 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "NEXT 3" +.TH NEXT 3 "2020-12-18" "perl v5.32.1" "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" +NEXT \- Provide a pseudo\-class NEXT (et al) that allows method redispatch +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use NEXT; +\& +\& package P; +\& sub P::method { print "$_[0]: P method\en"; $_[0]\->NEXT::method() } +\& sub P::DESTROY { print "$_[0]: P dtor\en"; $_[0]\->NEXT::DESTROY() } +\& +\& package Q; +\& use base qw( P ); +\& sub Q::AUTOLOAD { print "$_[0]: Q AUTOLOAD\en"; $_[0]\->NEXT::AUTOLOAD() } +\& sub Q::DESTROY { print "$_[0]: Q dtor\en"; $_[0]\->NEXT::DESTROY() } +\& +\& package R; +\& sub R::method { print "$_[0]: R method\en"; $_[0]\->NEXT::method() } +\& sub R::AUTOLOAD { print "$_[0]: R AUTOLOAD\en"; $_[0]\->NEXT::AUTOLOAD() } +\& sub R::DESTROY { print "$_[0]: R dtor\en"; $_[0]\->NEXT::DESTROY() } +\& +\& package S; +\& use base qw( Q R ); +\& sub S::method { print "$_[0]: S method\en"; $_[0]\->NEXT::method() } +\& sub S::AUTOLOAD { print "$_[0]: S AUTOLOAD\en"; $_[0]\->NEXT::AUTOLOAD() } +\& sub S::DESTROY { print "$_[0]: S dtor\en"; $_[0]\->NEXT::DESTROY() } +\& +\& package main; +\& +\& my $obj = bless {}, "S"; +\& +\& $obj\->method(); # Calls S::method, P::method, R::method +\& $obj\->missing_method(); # Calls S::AUTOLOAD, Q::AUTOLOAD, R::AUTOLOAD +\& +\& # Clean\-up calls S::DESTROY, Q::DESTROY, P::DESTROY, R::DESTROY +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`NEXT\*(C'\fR module adds a pseudoclass named \f(CW\*(C`NEXT\*(C'\fR to any program +that uses it. If a method \f(CW\*(C`m\*(C'\fR calls \f(CW\*(C`$self\->NEXT::m()\*(C'\fR, the call to +\&\f(CW\*(C`m\*(C'\fR is redispatched as if the calling method had not originally been found. +.PP +\&\fBNote:\fR before using this module, +you should look at next::method +in the core mro module. +\&\f(CW\*(C`mro\*(C'\fR has been a core module since Perl 5.9.5. +.PP +In other words, a call to \f(CW\*(C`$self\->NEXT::m()\*(C'\fR resumes the depth-first, +left-to-right search of \f(CW$self\fR's class hierarchy that resulted in the +original call to \f(CW\*(C`m\*(C'\fR. +.PP +Note that this is not the same thing as \f(CW\*(C`$self\->SUPER::m()\*(C'\fR, which +begins a new dispatch that is restricted to searching the ancestors +of the current class. \f(CW\*(C`$self\->NEXT::m()\*(C'\fR can backtrack +past the current class \*(-- to look for a suitable method in other +ancestors of \f(CW$self\fR \*(-- whereas \f(CW\*(C`$self\->SUPER::m()\*(C'\fR cannot. +.PP +A typical use would be in the destructors of a class hierarchy, +as illustrated in the \s-1SYNOPSIS\s0 above. Each class in the hierarchy +has a \s-1DESTROY\s0 method that performs some class-specific action +and then redispatches the call up the hierarchy. As a result, +when an object of class S is destroyed, the destructors of \fIall\fR +its parent classes are called (in depth-first, left-to-right order). +.PP +Another typical use of redispatch would be in \f(CW\*(C`AUTOLOAD\*(C'\fR'ed methods. +If such a method determined that it was not able to handle a +particular call, it might choose to redispatch that call, in the +hope that some other \f(CW\*(C`AUTOLOAD\*(C'\fR (above it, or to its left) might +do better. +.PP +By default, if a redispatch attempt fails to find another method +elsewhere in the objects class hierarchy, it quietly gives up and does +nothing (but see \*(L"Enforcing redispatch\*(R"). This gracious acquiescence +is also unlike the (generally annoying) behaviour of \f(CW\*(C`SUPER\*(C'\fR, which +throws an exception if it cannot redispatch. +.PP +Note that it is a fatal error for any method (including \f(CW\*(C`AUTOLOAD\*(C'\fR) +to attempt to redispatch any method that does not have the +same name. For example: +.PP +.Vb 1 +\& sub S::oops { print "oops!\en"; $_[0]\->NEXT::other_method() } +.Ve +.SS "Enforcing redispatch" +.IX Subsection "Enforcing redispatch" +It is possible to make \f(CW\*(C`NEXT\*(C'\fR redispatch more demandingly (i.e. like +\&\f(CW\*(C`SUPER\*(C'\fR does), so that the redispatch throws an exception if it cannot +find a \*(L"next\*(R" method to call. +.PP +To do this, simple invoke the redispatch as: +.PP +.Vb 1 +\& $self\->NEXT::ACTUAL::method(); +.Ve +.PP +rather than: +.PP +.Vb 1 +\& $self\->NEXT::method(); +.Ve +.PP +The \f(CW\*(C`ACTUAL\*(C'\fR tells \f(CW\*(C`NEXT\*(C'\fR that there must actually be a next method to call, +or it should throw an exception. +.PP +\&\f(CW\*(C`NEXT::ACTUAL\*(C'\fR is most commonly used in \f(CW\*(C`AUTOLOAD\*(C'\fR methods, as a means to +decline an \f(CW\*(C`AUTOLOAD\*(C'\fR request, but preserve the normal exception-on-failure +semantics: +.PP +.Vb 8 +\& sub AUTOLOAD { +\& if ($AUTOLOAD =~ /foo|bar/) { +\& # handle here +\& } +\& else { # try elsewhere +\& shift()\->NEXT::ACTUAL::AUTOLOAD(@_); +\& } +\& } +.Ve +.PP +By using \f(CW\*(C`NEXT::ACTUAL\*(C'\fR, if there is no other \f(CW\*(C`AUTOLOAD\*(C'\fR to handle the +method call, an exception will be thrown (as usually happens in the absence of +a suitable \f(CW\*(C`AUTOLOAD\*(C'\fR). +.SS "Avoiding repetitions" +.IX Subsection "Avoiding repetitions" +If \f(CW\*(C`NEXT\*(C'\fR redispatching is used in the methods of a \*(L"diamond\*(R" class hierarchy: +.PP +.Vb 5 +\& # A B +\& # / \e / +\& # C D +\& # \e / +\& # E +\& +\& use NEXT; +\& +\& package A; +\& sub foo { print "called A::foo\en"; shift\->NEXT::foo() } +\& +\& package B; +\& sub foo { print "called B::foo\en"; shift\->NEXT::foo() } +\& +\& package C; @ISA = qw( A ); +\& sub foo { print "called C::foo\en"; shift\->NEXT::foo() } +\& +\& package D; @ISA = qw(A B); +\& sub foo { print "called D::foo\en"; shift\->NEXT::foo() } +\& +\& package E; @ISA = qw(C D); +\& sub foo { print "called E::foo\en"; shift\->NEXT::foo() } +\& +\& E\->foo(); +.Ve +.PP +then derived classes may (re\-)inherit base-class methods through two or +more distinct paths (e.g. in the way \f(CW\*(C`E\*(C'\fR inherits \f(CW\*(C`A::foo\*(C'\fR twice \*(-- +through \f(CW\*(C`C\*(C'\fR and \f(CW\*(C`D\*(C'\fR). In such cases, a sequence of \f(CW\*(C`NEXT\*(C'\fR redispatches +will invoke the multiply inherited method as many times as it is +inherited. For example, the above code prints: +.PP +.Vb 6 +\& called E::foo +\& called C::foo +\& called A::foo +\& called D::foo +\& called A::foo +\& called B::foo +.Ve +.PP +(i.e. \f(CW\*(C`A::foo\*(C'\fR is called twice). +.PP +In some cases this \fImay\fR be the desired effect within a diamond hierarchy, +but in others (e.g. for destructors) it may be more appropriate to +call each method only once during a sequence of redispatches. +.PP +To cover such cases, you can redispatch methods via: +.PP +.Vb 1 +\& $self\->NEXT::DISTINCT::method(); +.Ve +.PP +rather than: +.PP +.Vb 1 +\& $self\->NEXT::method(); +.Ve +.PP +This causes the redispatcher to only visit each distinct \f(CW\*(C`method\*(C'\fR method +once. That is, to skip any classes in the hierarchy that it has +already visited during redispatch. So, for example, if the +previous example were rewritten: +.PP +.Vb 2 +\& package A; +\& sub foo { print "called A::foo\en"; shift\->NEXT::DISTINCT::foo() } +\& +\& package B; +\& sub foo { print "called B::foo\en"; shift\->NEXT::DISTINCT::foo() } +\& +\& package C; @ISA = qw( A ); +\& sub foo { print "called C::foo\en"; shift\->NEXT::DISTINCT::foo() } +\& +\& package D; @ISA = qw(A B); +\& sub foo { print "called D::foo\en"; shift\->NEXT::DISTINCT::foo() } +\& +\& package E; @ISA = qw(C D); +\& sub foo { print "called E::foo\en"; shift\->NEXT::DISTINCT::foo() } +\& +\& E\->foo(); +.Ve +.PP +then it would print: +.PP +.Vb 5 +\& called E::foo +\& called C::foo +\& called A::foo +\& called D::foo +\& called B::foo +.Ve +.PP +and omit the second call to \f(CW\*(C`A::foo\*(C'\fR (since it would not be distinct +from the first call to \f(CW\*(C`A::foo\*(C'\fR). +.PP +Note that you can also use: +.PP +.Vb 1 +\& $self\->NEXT::DISTINCT::ACTUAL::method(); +.Ve +.PP +or: +.PP +.Vb 1 +\& $self\->NEXT::ACTUAL::DISTINCT::method(); +.Ve +.PP +to get both unique invocation \fIand\fR exception-on-failure. +.PP +Note that, for historical compatibility, you can also use +\&\f(CW\*(C`NEXT::UNSEEN\*(C'\fR instead of \f(CW\*(C`NEXT::DISTINCT\*(C'\fR. +.SS "Invoking all versions of a method with a single call" +.IX Subsection "Invoking all versions of a method with a single call" +Yet another pseudo-class that \f(CW\*(C`NEXT\*(C'\fR provides is \f(CW\*(C`EVERY\*(C'\fR. +Its behaviour is considerably simpler than that of the \f(CW\*(C`NEXT\*(C'\fR family. +A call to: +.PP +.Vb 1 +\& $obj\->EVERY::foo(); +.Ve +.PP +calls \fIevery\fR method named \f(CW\*(C`foo\*(C'\fR that the object in \f(CW$obj\fR has inherited. +That is: +.PP +.Vb 1 +\& use NEXT; +\& +\& package A; @ISA = qw(B D X); +\& sub foo { print "A::foo " } +\& +\& package B; @ISA = qw(D X); +\& sub foo { print "B::foo " } +\& +\& package X; @ISA = qw(D); +\& sub foo { print "X::foo " } +\& +\& package D; +\& sub foo { print "D::foo " } +\& +\& package main; +\& +\& my $obj = bless {}, \*(AqA\*(Aq; +\& $obj\->EVERY::foo(); # prints" A::foo B::foo X::foo D::foo +.Ve +.PP +Prefixing a method call with \f(CW\*(C`EVERY::\*(C'\fR causes every method in the +object's hierarchy with that name to be invoked. As the above example +illustrates, they are not called in Perl's usual \*(L"left-most-depth-first\*(R" +order. Instead, they are called \*(L"breadth-first-dependency-wise\*(R". +.PP +That means that the inheritance tree of the object is traversed breadth-first +and the resulting order of classes is used as the sequence in which methods +are called. However, that sequence is modified by imposing a rule that the +appropriate method of a derived class must be called before the same method of +any ancestral class. That's why, in the above example, \f(CW\*(C`X::foo\*(C'\fR is called +before \f(CW\*(C`D::foo\*(C'\fR, even though \f(CW\*(C`D\*(C'\fR comes before \f(CW\*(C`X\*(C'\fR in \f(CW@B::ISA\fR. +.PP +In general, there's no need to worry about the order of calls. They will be +left-to-right, breadth-first, most-derived-first. This works perfectly for +most inherited methods (including destructors), but is inappropriate for +some kinds of methods (such as constructors, cloners, debuggers, and +initializers) where it's more appropriate that the least-derived methods be +called first (as more-derived methods may rely on the behaviour of their +\&\*(L"ancestors\*(R"). In that case, instead of using the \f(CW\*(C`EVERY\*(C'\fR pseudo-class: +.PP +.Vb 1 +\& $obj\->EVERY::foo(); # prints" A::foo B::foo X::foo D::foo +.Ve +.PP +you can use the \f(CW\*(C`EVERY::LAST\*(C'\fR pseudo-class: +.PP +.Vb 1 +\& $obj\->EVERY::LAST::foo(); # prints" D::foo X::foo B::foo A::foo +.Ve +.PP +which reverses the order of method call. +.PP +Whichever version is used, the actual methods are called in the same +context (list, scalar, or void) as the original call via \f(CW\*(C`EVERY\*(C'\fR, and return: +.IP "\(bu" 4 +A hash of array references in list context. Each entry of the hash has the +fully qualified method name as its key and a reference to an array containing +the method's list-context return values as its value. +.IP "\(bu" 4 +A reference to a hash of scalar values in scalar context. Each entry of the hash has the +fully qualified method name as its key and the method's scalar-context return values as its value. +.IP "\(bu" 4 +Nothing in void context (obviously). +.ie n .SS "Using ""EVERY"" methods" +.el .SS "Using \f(CWEVERY\fP methods" +.IX Subsection "Using EVERY methods" +The typical way to use an \f(CW\*(C`EVERY\*(C'\fR call is to wrap it in another base +method, that all classes inherit. For example, to ensure that every +destructor an object inherits is actually called (as opposed to just the +left-most-depth-first-est one): +.PP +.Vb 2 +\& package Base; +\& sub DESTROY { $_[0]\->EVERY::Destroy } +\& +\& package Derived1; +\& use base \*(AqBase\*(Aq; +\& sub Destroy {...} +\& +\& package Derived2; +\& use base \*(AqBase\*(Aq, \*(AqDerived1\*(Aq; +\& sub Destroy {...} +.Ve +.PP +et cetera. Every derived class than needs its own clean-up +behaviour simply adds its own \f(CW\*(C`Destroy\*(C'\fR method (\fInot\fR a \f(CW\*(C`DESTROY\*(C'\fR method), +which the call to \f(CW\*(C`EVERY::LAST::Destroy\*(C'\fR in the inherited destructor +then correctly picks up. +.PP +Likewise, to create a class hierarchy in which every initializer inherited by +a new object is invoked: +.PP +.Vb 6 +\& package Base; +\& sub new { +\& my ($class, %args) = @_; +\& my $obj = bless {}, $class; +\& $obj\->EVERY::LAST::Init(\e%args); +\& } +\& +\& package Derived1; +\& use base \*(AqBase\*(Aq; +\& sub Init { +\& my ($argsref) = @_; +\& ... +\& } +\& +\& package Derived2; +\& use base \*(AqBase\*(Aq, \*(AqDerived1\*(Aq; +\& sub Init { +\& my ($argsref) = @_; +\& ... +\& } +.Ve +.PP +et cetera. Every derived class than needs some additional initialization +behaviour simply adds its own \f(CW\*(C`Init\*(C'\fR method (\fInot\fR a \f(CW\*(C`new\*(C'\fR method), +which the call to \f(CW\*(C`EVERY::LAST::Init\*(C'\fR in the inherited constructor +then correctly picks up. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +mro +(in particular next::method ), +which has been a core module since Perl 5.9.5. +.SH "AUTHOR" +.IX Header "AUTHOR" +Damian Conway (damian@conway.org) +.SH "BUGS AND IRRITATIONS" +.IX Header "BUGS AND IRRITATIONS" +Because it's a module, not an integral part of the interpreter, \f(CW\*(C`NEXT\*(C'\fR +has to guess where the surrounding call was found in the method +look-up sequence. In the presence of diamond inheritance patterns +it occasionally guesses wrong. +.PP +It's also too slow (despite caching). +.PP +Comment, suggestions, and patches welcome. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +.Vb 3 +\& Copyright (c) 2000\-2001, Damian Conway. All Rights Reserved. +\& This module is free software. It may be used, redistributed +\& and/or modified under the same terms as Perl itself. +.Ve diff --git a/data/miniconda3/man/man3/Net%3A%3ACmd.3 b/data/miniconda3/man/man3/Net%3A%3ACmd.3 new file mode 100644 index 0000000000000000000000000000000000000000..c29b206eae256ff1f2207e407fd95eb99d78da09 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ACmd.3 @@ -0,0 +1,328 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Cmd 3" +.TH Net::Cmd 3 "2020-12-18" "perl v5.32.1" "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" +Net::Cmd \- Network Command class (as used by FTP, SMTP etc) +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Cmd; +\& +\& @ISA = qw(Net::Cmd); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::Cmd\*(C'\fR is a collection of methods that can be inherited by a sub-class +of \f(CW\*(C`IO::Socket::INET\*(C'\fR. These methods implement the functionality required for a +command based protocol, for example \s-1FTP\s0 and \s-1SMTP.\s0 +.PP +If your sub-class does not also derive from \f(CW\*(C`IO::Socket::INET\*(C'\fR or similar (e.g. +\&\f(CW\*(C`IO::Socket::IP\*(C'\fR, \f(CW\*(C`IO::Socket::INET6\*(C'\fR or \f(CW\*(C`IO::Socket::SSL\*(C'\fR) then you must +provide the following methods by other means yourself: \f(CW\*(C`close()\*(C'\fR and +\&\f(CW\*(C`timeout()\*(C'\fR. +.SH "USER METHODS" +.IX Header "USER METHODS" +These methods provide a user interface to the \f(CW\*(C`Net::Cmd\*(C'\fR object. +.IP "debug ( \s-1VALUE\s0 )" 4 +.IX Item "debug ( VALUE )" +Set the level of debug information for this object. If \f(CW\*(C`VALUE\*(C'\fR is not given +then the current state is returned. Otherwise the state is changed to +\&\f(CW\*(C`VALUE\*(C'\fR and the previous state returned. +.Sp +Different packages +may implement different levels of debug but a non-zero value results in +copies of all commands and responses also being sent to \s-1STDERR.\s0 +.Sp +If \f(CW\*(C`VALUE\*(C'\fR is \f(CW\*(C`undef\*(C'\fR then the debug level will be set to the default +debug level for the class. +.Sp +This method can also be called as a \fIstatic\fR method to set/get the default +debug level for a given class. +.IP "message ()" 4 +.IX Item "message ()" +Returns the text message returned from the last command. In a scalar +context it returns a single string, in a list context it will return +each line as a separate element. (See \*(L"\s-1PSEUDO RESPONSES\*(R"\s0 below.) +.IP "code ()" 4 +.IX Item "code ()" +Returns the 3\-digit code from the last command. If a command is pending +then the value 0 is returned. (See \*(L"\s-1PSEUDO RESPONSES\*(R"\s0 below.) +.IP "ok ()" 4 +.IX Item "ok ()" +Returns non-zero if the last code value was greater than zero and +less than 400. This holds true for most command servers. Servers +where this does not hold may override this method. +.IP "status ()" 4 +.IX Item "status ()" +Returns the most significant digit of the current status code. If a command +is pending then \f(CW\*(C`CMD_PENDING\*(C'\fR is returned. +.IP "datasend ( \s-1DATA\s0 )" 4 +.IX Item "datasend ( DATA )" +Send data to the remote server, converting \s-1LF\s0 to \s-1CRLF.\s0 Any line starting +with a '.' will be prefixed with another '.'. +\&\f(CW\*(C`DATA\*(C'\fR may be an array or a reference to an array. +The \f(CW\*(C`DATA\*(C'\fR passed in must be encoded by the caller to octets of whatever +encoding is required, e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function. +.IP "dataend ()" 4 +.IX Item "dataend ()" +End the sending of data to the remote server. This is done by ensuring that +the data already sent ends with \s-1CRLF\s0 then sending '.CRLF' to end the +transmission. Once this data has been sent \f(CW\*(C`dataend\*(C'\fR calls \f(CW\*(C`response\*(C'\fR and +returns true if \f(CW\*(C`response\*(C'\fR returns \s-1CMD_OK.\s0 +.SH "CLASS METHODS" +.IX Header "CLASS METHODS" +These methods are not intended to be called by the user, but used or +over-ridden by a sub-class of \f(CW\*(C`Net::Cmd\*(C'\fR +.IP "debug_print ( \s-1DIR, TEXT\s0 )" 4 +.IX Item "debug_print ( DIR, TEXT )" +Print debugging information. \f(CW\*(C`DIR\*(C'\fR denotes the direction \fItrue\fR being +data being sent to the server. Calls \f(CW\*(C`debug_text\*(C'\fR before printing to +\&\s-1STDERR.\s0 +.IP "debug_text ( \s-1DIR, TEXT\s0 )" 4 +.IX Item "debug_text ( DIR, TEXT )" +This method is called to print debugging information. \s-1TEXT\s0 is +the text being sent. The method should return the text to be printed. +.Sp +This is primarily meant for the use of modules such as \s-1FTP\s0 where passwords +are sent, but we do not want to display them in the debugging information. +.IP "command ( \s-1CMD\s0 [, \s-1ARGS, ...\s0 ])" 4 +.IX Item "command ( CMD [, ARGS, ... ])" +Send a command to the command server. All arguments are first joined with +a space character and \s-1CRLF\s0 is appended, this string is then sent to the +command server. +.Sp +Returns undef upon failure. +.IP "unsupported ()" 4 +.IX Item "unsupported ()" +Sets the status code to 580 and the response text to 'Unsupported command'. +Returns zero. +.IP "response ()" 4 +.IX Item "response ()" +Obtain a response from the server. Upon success the most significant digit +of the status code is returned. Upon failure, timeout etc., \fI\s-1CMD_ERROR\s0\fR is +returned. +.IP "parse_response ( \s-1TEXT\s0 )" 4 +.IX Item "parse_response ( TEXT )" +This method is called by \f(CW\*(C`response\*(C'\fR as a method with one argument. It should +return an array of 2 values, the 3\-digit status code and a flag which is true +when this is part of a multi-line response and this line is not the last. +.IP "getline ()" 4 +.IX Item "getline ()" +Retrieve one line, delimited by \s-1CRLF,\s0 from the remote server. Returns \fIundef\fR +upon failure. +.Sp +\&\fB\s-1NOTE\s0\fR: If you do use this method for any reason, please remember to add +some \f(CW\*(C`debug_print\*(C'\fR calls into your method. +.IP "ungetline ( \s-1TEXT\s0 )" 4 +.IX Item "ungetline ( TEXT )" +Unget a line of text from the server. +.IP "rawdatasend ( \s-1DATA\s0 )" 4 +.IX Item "rawdatasend ( DATA )" +Send data to the remote server without performing any conversions. \f(CW\*(C`DATA\*(C'\fR +is a scalar. +As with \f(CW\*(C`datasend()\*(C'\fR, the \f(CW\*(C`DATA\*(C'\fR passed in must be encoded by the caller +to octets of whatever encoding is required, e.g. by using the Encode module's +\&\f(CW\*(C`encode()\*(C'\fR function. +.IP "read_until_dot ()" 4 +.IX Item "read_until_dot ()" +Read data from the remote server until a line consisting of a single '.'. +Any lines starting with '..' will have one of the '.'s removed. +.Sp +Returns a reference to a list containing the lines, or \fIundef\fR upon failure. +.IP "tied_fh ()" 4 +.IX Item "tied_fh ()" +Returns a filehandle tied to the Net::Cmd object. After issuing a +command, you may read from this filehandle using \fBread()\fR or <>. The +filehandle will return \s-1EOF\s0 when the final dot is encountered. +Similarly, you may write to the filehandle in order to send data to +the server after issuing a command that expects data to be written. +.Sp +See the Net::POP3 and Net::SMTP modules for examples of this. +.SH "PSEUDO RESPONSES" +.IX Header "PSEUDO RESPONSES" +Normally the values returned by \f(CW\*(C`message()\*(C'\fR and \f(CW\*(C`code()\*(C'\fR are +obtained from the remote server, but in a few circumstances, as +detailed below, \f(CW\*(C`Net::Cmd\*(C'\fR will return values that it sets. You +can alter this behavior by overriding \s-1\fBDEF_REPLY_CODE\s0()\fR to specify +a different default reply code, or overriding one of the specific +error handling methods below. +.IP "Initial value" 4 +.IX Item "Initial value" +Before any command has executed or if an unexpected error occurs +\&\f(CW\*(C`code()\*(C'\fR will return \*(L"421\*(R" (temporary connection failure) and +\&\f(CW\*(C`message()\*(C'\fR will return undef. +.IP "Connection closed" 4 +.IX Item "Connection closed" +If the underlying \f(CW\*(C`IO::Handle\*(C'\fR is closed, or if there are +any read or write failures, the file handle will be forced closed, +and \f(CW\*(C`code()\*(C'\fR will return \*(L"421\*(R" (temporary connection failure) +and \f(CW\*(C`message()\*(C'\fR will return \*(L"[$pkg] Connection closed\*(R" +(where \f(CW$pkg\fR is the name of the class that subclassed \f(CW\*(C`Net::Cmd\*(C'\fR). +The \fB_set_status_closed()\fR method can be overridden to set a different +message (by calling \fBset_status()\fR) or otherwise trap this error. +.IP "Timeout" 4 +.IX Item "Timeout" +If there is a read or write timeout \f(CW\*(C`code()\*(C'\fR will return \*(L"421\*(R" +(temporary connection failure) and \f(CW\*(C`message()\*(C'\fR will return +\&\*(L"[$pkg] Timeout\*(R" (where \f(CW$pkg\fR is the name of the class +that subclassed \f(CW\*(C`Net::Cmd\*(C'\fR). The \fB_set_status_timeout()\fR method +can be overridden to set a different message (by calling \fBset_status()\fR) +or otherwise trap this error. +.SH "EXPORTS" +.IX Header "EXPORTS" +\&\f(CW\*(C`Net::Cmd\*(C'\fR exports six subroutines, five of these, \f(CW\*(C`CMD_INFO\*(C'\fR, \f(CW\*(C`CMD_OK\*(C'\fR, +\&\f(CW\*(C`CMD_MORE\*(C'\fR, \f(CW\*(C`CMD_REJECT\*(C'\fR and \f(CW\*(C`CMD_ERROR\*(C'\fR, correspond to possible results +of \f(CW\*(C`response\*(C'\fR and \f(CW\*(C`status\*(C'\fR. The sixth is \f(CW\*(C`CMD_PENDING\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-2006 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2016 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3AConfig.3 b/data/miniconda3/man/man3/Net%3A%3AConfig.3 new file mode 100644 index 0000000000000000000000000000000000000000..1a3e1bb24f812efbc58cb7731f2e58d2c3296aaa --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3AConfig.3 @@ -0,0 +1,337 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Config 3" +.TH Net::Config 3 "2020-12-18" "perl v5.32.1" "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" +Net::Config \- Local configuration data for libnet +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Config qw(%NetConfig); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::Config\*(C'\fR holds configuration data for the modules in the libnet +distribution. During installation you will be asked for these values. +.PP +The configuration data is held globally in a file in the perl installation +tree, but a user may override any of these values by providing their own. This +can be done by having a \f(CW\*(C`.libnetrc\*(C'\fR file in their home directory. This file +should return a reference to a \s-1HASH\s0 containing the keys described below. +For example +.PP +.Vb 6 +\& # .libnetrc +\& { +\& nntp_hosts => [ "my_preferred_host" ], +\& ph_hosts => [ "my_ph_server" ], +\& } +\& _\|_END_\|_ +.Ve +.SH "METHODS" +.IX Header "METHODS" +\&\f(CW\*(C`Net::Config\*(C'\fR defines the following methods. They are methods as they are +invoked as class methods. This is because \f(CW\*(C`Net::Config\*(C'\fR inherits from +\&\f(CW\*(C`Net::LocalCfg\*(C'\fR so you can override these methods if you want. +.IP "requires_firewall ( \s-1HOST\s0 )" 4 +.IX Item "requires_firewall ( HOST )" +Attempts to determine if a given host is outside your firewall. Possible +return values are. +.Sp +.Vb 3 +\& \-1 Cannot lookup hostname +\& 0 Host is inside firewall (or there is no ftp_firewall entry) +\& 1 Host is outside the firewall +.Ve +.Sp +This is done by using hostname lookup and the \f(CW\*(C`local_netmask\*(C'\fR entry in +the configuration data. +.SH "NetConfig VALUES" +.IX Header "NetConfig VALUES" +.IP "nntp_hosts" 4 +.IX Item "nntp_hosts" +.PD 0 +.IP "snpp_hosts" 4 +.IX Item "snpp_hosts" +.IP "pop3_hosts" 4 +.IX Item "pop3_hosts" +.IP "smtp_hosts" 4 +.IX Item "smtp_hosts" +.IP "ph_hosts" 4 +.IX Item "ph_hosts" +.IP "daytime_hosts" 4 +.IX Item "daytime_hosts" +.IP "time_hosts" 4 +.IX Item "time_hosts" +.PD +Each is a reference to an array of hostnames (in order of preference), +which should be used for the given protocol +.IP "inet_domain" 4 +.IX Item "inet_domain" +Your internet domain name +.IP "ftp_firewall" 4 +.IX Item "ftp_firewall" +If you have an \s-1FTP\s0 proxy firewall (\fB\s-1NOT\s0\fR an \s-1HTTP\s0 or \s-1SOCKS\s0 firewall) +then this value should be set to the firewall hostname. If your firewall +does not listen to port 21, then this value should be set to +\&\f(CW"hostname:port"\fR (eg \f(CW"hostname:99"\fR) +.IP "ftp_firewall_type" 4 +.IX Item "ftp_firewall_type" +There are many different ftp firewall products available. But unfortunately +there is no standard for how to traverse a firewall. The list below shows the +sequence of commands that Net::FTP will use +.Sp +.Vb 5 +\& user Username for remote host +\& pass Password for remote host +\& fwuser Username for firewall +\& fwpass Password for firewall +\& remote.host The hostname of the remote ftp server +.Ve +.RS 4 +.IP "0" 4 +There is no firewall +.IP "1" 4 +.IX Item "1" +.Vb 2 +\& USER user@remote.host +\& PASS pass +.Ve +.IP "2" 4 +.IX Item "2" +.Vb 4 +\& USER fwuser +\& PASS fwpass +\& USER user@remote.host +\& PASS pass +.Ve +.IP "3" 4 +.IX Item "3" +.Vb 5 +\& USER fwuser +\& PASS fwpass +\& SITE remote.site +\& USER user +\& PASS pass +.Ve +.IP "4" 4 +.IX Item "4" +.Vb 5 +\& USER fwuser +\& PASS fwpass +\& OPEN remote.site +\& USER user +\& PASS pass +.Ve +.IP "5" 4 +.IX Item "5" +.Vb 2 +\& USER user@fwuser@remote.site +\& PASS pass@fwpass +.Ve +.IP "6" 4 +.IX Item "6" +.Vb 4 +\& USER fwuser@remote.site +\& PASS fwpass +\& USER user +\& PASS pass +.Ve +.IP "7" 4 +.IX Item "7" +.Vb 4 +\& USER user@remote.host +\& PASS pass +\& AUTH fwuser +\& RESP fwpass +.Ve +.RE +.RS 4 +.RE +.IP "ftp_ext_passive" 4 +.IX Item "ftp_ext_passive" +.PD 0 +.IP "ftp_int_passive" 4 +.IX Item "ftp_int_passive" +.PD +\&\s-1FTP\s0 servers can work in passive or active mode. Active mode is when +you want to transfer data you have to tell the server the address and +port to connect to. Passive mode is when the server provide the +address and port and you establish the connection. +.Sp +With some firewalls active mode does not work as the server cannot +connect to your machine (because you are behind a firewall) and the firewall +does not re-write the command. In this case you should set \f(CW\*(C`ftp_ext_passive\*(C'\fR +to a \fItrue\fR value. +.Sp +Some servers are configured to only work in passive mode. If you have +one of these you can force \f(CW\*(C`Net::FTP\*(C'\fR to always transfer in passive +mode; when not going via a firewall, by setting \f(CW\*(C`ftp_int_passive\*(C'\fR to +a \fItrue\fR value. +.IP "local_netmask" 4 +.IX Item "local_netmask" +A reference to a list of netmask strings in the form \f(CW"134.99.4.0/24"\fR. +These are used by the \f(CW\*(C`requires_firewall\*(C'\fR function to determine if a given +host is inside or outside your firewall. +.PP +The following entries are used during installation & testing on the +libnet package +.IP "test_hosts" 4 +.IX Item "test_hosts" +If true then \f(CW\*(C`make test\*(C'\fR may attempt to connect to hosts given in the +configuration. +.IP "test_exists" 4 +.IX Item "test_exists" +If true then \f(CW\*(C`Configure\*(C'\fR will check each hostname given that it exists +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1998\-2011 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2014, 2016 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3ADomain.3 b/data/miniconda3/man/man3/Net%3A%3ADomain.3 new file mode 100644 index 0000000000000000000000000000000000000000..6b10f4b312540d446219ca88983b16de0cbd1691 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ADomain.3 @@ -0,0 +1,183 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Domain 3" +.TH Net::Domain 3 "2020-12-18" "perl v5.32.1" "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" +Net::Domain \- Attempt to evaluate the current host's internet name and domain +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Domain qw(hostname hostfqdn hostdomain domainname); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Using various methods \fBattempt\fR to find the Fully Qualified Domain Name (\s-1FQDN\s0) +of the current host. From this determine the host-name and the host-domain. +.PP +Each of the functions will return \fIundef\fR if the \s-1FQDN\s0 cannot be determined. +.IP "hostfqdn ()" 4 +.IX Item "hostfqdn ()" +Identify and return the \s-1FQDN\s0 of the current host. +.IP "domainname ()" 4 +.IX Item "domainname ()" +An alias for hostfqdn (). +.IP "hostname ()" 4 +.IX Item "hostname ()" +Returns the smallest part of the \s-1FQDN\s0 which can be used to identify the host. +.IP "hostdomain ()" 4 +.IX Item "hostdomain ()" +Returns the remainder of the \s-1FQDN\s0 after the \fIhostname\fR has been removed. +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Adapted from Sys::Hostname by David Sundstrom <\fIsunds@asictest.sc.ti.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-1998 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2014 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3AFTP.3 b/data/miniconda3/man/man3/Net%3A%3AFTP.3 new file mode 100644 index 0000000000000000000000000000000000000000..616ae8865aa530046360e241bf5be331451e0b55 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3AFTP.3 @@ -0,0 +1,668 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::FTP 3" +.TH Net::FTP 3 "2020-12-18" "perl v5.32.1" "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" +Net::FTP \- FTP Client class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::FTP; +\& +\& $ftp = Net::FTP\->new("some.host.name", Debug => 0) +\& or die "Cannot connect to some.host.name: $@"; +\& +\& $ftp\->login("anonymous",\*(Aq\-anonymous@\*(Aq) +\& or die "Cannot login ", $ftp\->message; +\& +\& $ftp\->cwd("/pub") +\& or die "Cannot change working directory ", $ftp\->message; +\& +\& $ftp\->get("that.file") +\& or die "get failed ", $ftp\->message; +\& +\& $ftp\->quit; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::FTP\*(C'\fR is a class implementing a simple \s-1FTP\s0 client in Perl as +described in \s-1RFC959.\s0 It provides wrappers for the commonly used subset of the +\&\s-1RFC959\s0 commands. +If IO::Socket::IP or IO::Socket::INET6 is installed it also provides +support for IPv6 as defined in \s-1RFC2428.\s0 +And with IO::Socket::SSL installed it provides support for implicit \s-1FTPS\s0 +and explicit \s-1FTPS\s0 as defined in \s-1RFC4217.\s0 +.PP +The Net::FTP class is a subclass of Net::Cmd and (depending on avaibility) of +IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET. +.SH "OVERVIEW" +.IX Header "OVERVIEW" +\&\s-1FTP\s0 stands for File Transfer Protocol. It is a way of transferring +files between networked machines. The protocol defines a client +(whose commands are provided by this module) and a server (not +implemented in this module). Communication is always initiated by the +client, and the server responds with a message and a status code (and +sometimes with data). +.PP +The \s-1FTP\s0 protocol allows files to be sent to or fetched from the +server. Each transfer involves a \fBlocal file\fR (on the client) and a +\&\fBremote file\fR (on the server). In this module, the same file name +will be used for both local and remote if only one is specified. This +means that transferring remote file \f(CW\*(C`/path/to/file\*(C'\fR will try to put +that file in \f(CW\*(C`/path/to/file\*(C'\fR locally, unless you specify a local file +name. +.PP +The protocol also defines several standard \fBtranslations\fR which the +file can undergo during transfer. These are \s-1ASCII, EBCDIC,\s0 binary, +and byte. \s-1ASCII\s0 is the default type, and indicates that the sender of +files will translate the ends of lines to a standard representation +which the receiver will then translate back into their local +representation. \s-1EBCDIC\s0 indicates the file being transferred is in +\&\s-1EBCDIC\s0 format. Binary (also known as image) format sends the data as +a contiguous bit stream. Byte format transfers the data as bytes, the +values of which remain the same regardless of differences in byte size +between the two machines (in theory \- in practice you should only use +this if you really know what you're doing). This class does not support +the \s-1EBCDIC\s0 or byte formats, and will default to binary instead if they +are attempted. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ([ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ])" 4 +.IX Item "new ([ HOST ] [, OPTIONS ])" +This is the constructor for a new Net::FTP object. \f(CW\*(C`HOST\*(C'\fR is the +name of the remote host to which an \s-1FTP\s0 connection is required. +.Sp +\&\f(CW\*(C`HOST\*(C'\fR is optional. If \f(CW\*(C`HOST\*(C'\fR is not given then it may instead be +passed as the \f(CW\*(C`Host\*(C'\fR option described below. +.Sp +\&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs. +Possible options are: +.Sp +\&\fBHost\fR \- \s-1FTP\s0 host to connect to. It may be a single scalar, as defined for +the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to +an array with hosts to try in turn. The \*(L"host\*(R" method will return the value +which was used to connect to the host. +.Sp +\&\fBFirewall\fR \- The name of a machine which acts as an \s-1FTP\s0 firewall. This can be +overridden by an environment variable \f(CW\*(C`FTP_FIREWALL\*(C'\fR. If specified, and the +given host cannot be directly connected to, then the +connection is made to the firewall machine and the string \f(CW@hostname\fR is +appended to the login identifier. This kind of setup is also referred to +as an ftp proxy. +.Sp +\&\fBFirewallType\fR \- The type of firewall running on the machine indicated by +\&\fBFirewall\fR. This can be overridden by an environment variable +\&\f(CW\*(C`FTP_FIREWALL_TYPE\*(C'\fR. For a list of permissible types, see the description of +ftp_firewall_type in Net::Config. +.Sp +\&\fBBlockSize\fR \- This is the block size that Net::FTP will use when doing +transfers. (defaults to 10240) +.Sp +\&\fBPort\fR \- The port number to connect to on the remote machine for the +\&\s-1FTP\s0 connection +.Sp +\&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later +upgrade with \f(CW\*(C`starttls\*(C'\fR. +.Sp +\&\fBSSL_*\fR \- \s-1SSL\s0 arguments which will be applied when upgrading the control or +data connection to \s-1SSL.\s0 You can use \s-1SSL\s0 arguments as documented in +IO::Socket::SSL, but it will usually use the right arguments already. +.Sp +\&\fBTimeout\fR \- Set a timeout value in seconds (defaults to 120) +.Sp +\&\fBDebug\fR \- debug level (see the debug method in Net::Cmd) +.Sp +\&\fBPassive\fR \- If set to a non-zero value then all data transfers will +be done using passive mode. If set to zero then data transfers will be +done using active mode. If the machine is connected to the Internet +directly, both passive and active mode should work equally well. +Behind most firewall and \s-1NAT\s0 configurations passive mode has a better +chance of working. However, in some rare firewall configurations, +active mode actually works when passive mode doesn't. Some really old +\&\s-1FTP\s0 servers might not implement passive transfers. If not specified, +then the transfer mode is set by the environment variable +\&\f(CW\*(C`FTP_PASSIVE\*(C'\fR or if that one is not set by the settings done by the +\&\fIlibnetcfg\fR utility. If none of these apply then passive mode is +used. +.Sp +\&\fBHash\fR \- If given a reference to a file handle (e.g., \f(CW\*(C`\e*STDERR\*(C'\fR), +print hash marks (#) on that filehandle every 1024 bytes. This +simply invokes the \f(CW\*(C`hash()\*(C'\fR method for you, so that hash marks +are displayed for all transfers. You can, of course, call \f(CW\*(C`hash()\*(C'\fR +explicitly whenever you'd like. +.Sp +\&\fBLocalAddr\fR \- Local address to use for all socket connections. This +argument will be passed to the super class, i.e. IO::Socket::INET +or IO::Socket::IP. +.Sp +\&\fBDomain\fR \- Domain to use, i.e. \s-1AF_INET\s0 or \s-1AF_INET6.\s0 This +argument will be passed to the IO::Socket super class. +This can be used to enforce IPv4 even with IO::Socket::IP +which would default to IPv6. +\&\fBFamily\fR is accepted as alternative name for \fBDomain\fR. +.Sp +If the constructor fails undef will be returned and an error message will +be in $@ +.SH "METHODS" +.IX Header "METHODS" +Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR +value, with \fItrue\fR meaning that the operation was a success. When a method +states that it returns a value, failure will be returned as \fIundef\fR or an +empty list. +.PP +\&\f(CW\*(C`Net::FTP\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may +be used to send commands to the remote \s-1FTP\s0 server in addition to the methods +documented here. +.IP "login ([\s-1LOGIN\s0 [,PASSWORD [, \s-1ACCOUNT\s0] ] ])" 4 +.IX Item "login ([LOGIN [,PASSWORD [, ACCOUNT] ] ])" +Log into the remote \s-1FTP\s0 server with the given login information. If +no arguments are given then the \f(CW\*(C`Net::FTP\*(C'\fR uses the \f(CW\*(C`Net::Netrc\*(C'\fR +package to lookup the login information for the connected host. +If no information is found then a login of \fIanonymous\fR is used. +If no password is given and the login is \fIanonymous\fR then \fIanonymous@\fR +will be used for password. +.Sp +If the connection is via a firewall then the \f(CW\*(C`authorize\*(C'\fR method will +be called with no arguments. +.IP "starttls ()" 4 +.IX Item "starttls ()" +Upgrade existing plain connection to \s-1SSL.\s0 +The \s-1SSL\s0 arguments have to be given in \f(CW\*(C`new\*(C'\fR already because they are needed for +data connections too. +.IP "stoptls ()" 4 +.IX Item "stoptls ()" +Downgrade existing \s-1SSL\s0 connection back to plain. +This is needed to work with some \s-1FTP\s0 helpers at firewalls, which need to see the +\&\s-1PORT\s0 and \s-1PASV\s0 commands and responses to dynamically open the necessary ports. +In this case \f(CW\*(C`starttls\*(C'\fR is usually only done to protect the authorization. +.IP "prot ( \s-1LEVEL\s0 )" 4 +.IX Item "prot ( LEVEL )" +Set what type of data channel protection the client and server will be using. +Only \f(CW\*(C`LEVEL\*(C'\fRs \*(L"C\*(R" (clear) and \*(L"P\*(R" (private) are supported. +.IP "host ()" 4 +.IX Item "host ()" +Returns the value used by the constructor, and passed to the IO::Socket super +class to connect to the host. +.IP "account( \s-1ACCT\s0 )" 4 +.IX Item "account( ACCT )" +Set a string identifying the user's account. +.IP "authorize ( [\s-1AUTH\s0 [, \s-1RESP\s0]])" 4 +.IX Item "authorize ( [AUTH [, RESP]])" +This is a protocol used by some firewall ftp proxies. It is used +to authorise the user to send data out. If both arguments are not specified +then \f(CW\*(C`authorize\*(C'\fR uses \f(CW\*(C`Net::Netrc\*(C'\fR to do a lookup. +.IP "site (\s-1ARGS\s0)" 4 +.IX Item "site (ARGS)" +Send a \s-1SITE\s0 command to the remote server and wait for a response. +.Sp +Returns most significant digit of the response code. +.IP "ascii ()" 4 +.IX Item "ascii ()" +Transfer file in \s-1ASCII. CRLF\s0 translation will be done if required +.IP "binary ()" 4 +.IX Item "binary ()" +Transfer file in binary mode. No transformation will be done. +.Sp +\&\fBHint\fR: If both server and client machines use the same line ending for +text files, then it will be faster to transfer all files in binary mode. +.IP "type ( [ \s-1TYPE\s0 ] )" 4 +.IX Item "type ( [ TYPE ] )" +Set or get if files will be transferred in \s-1ASCII\s0 or binary mode. +.IP "rename ( \s-1OLDNAME, NEWNAME\s0 )" 4 +.IX Item "rename ( OLDNAME, NEWNAME )" +Rename a file on the remote \s-1FTP\s0 server from \f(CW\*(C`OLDNAME\*(C'\fR to \f(CW\*(C`NEWNAME\*(C'\fR. This +is done by sending the \s-1RNFR\s0 and \s-1RNTO\s0 commands. +.IP "delete ( \s-1FILENAME\s0 )" 4 +.IX Item "delete ( FILENAME )" +Send a request to the server to delete \f(CW\*(C`FILENAME\*(C'\fR. +.IP "cwd ( [ \s-1DIR\s0 ] )" 4 +.IX Item "cwd ( [ DIR ] )" +Attempt to change directory to the directory given in \f(CW$dir\fR. If +\&\f(CW$dir\fR is \f(CW".."\fR, the \s-1FTP\s0 \f(CW\*(C`CDUP\*(C'\fR command is used to attempt to +move up one directory. If no directory is given then an attempt is made +to change the directory to the root directory. +.IP "cdup ()" 4 +.IX Item "cdup ()" +Change directory to the parent of the current directory. +.IP "passive ( [ \s-1PASSIVE\s0 ] )" 4 +.IX Item "passive ( [ PASSIVE ] )" +Set or get if data connections will be initiated in passive mode. +.IP "pwd ()" 4 +.IX Item "pwd ()" +Returns the full pathname of the current directory. +.IP "restart ( \s-1WHERE\s0 )" 4 +.IX Item "restart ( WHERE )" +Set the byte offset at which to begin the next data transfer. Net::FTP simply +records this value and uses it when during the next data transfer. For this +reason this method will not return an error, but setting it may cause +a subsequent data transfer to fail. +.IP "rmdir ( \s-1DIR\s0 [, \s-1RECURSE\s0 ])" 4 +.IX Item "rmdir ( DIR [, RECURSE ])" +Remove the directory with the name \f(CW\*(C`DIR\*(C'\fR. If \f(CW\*(C`RECURSE\*(C'\fR is \fItrue\fR then +\&\f(CW\*(C`rmdir\*(C'\fR will attempt to delete everything inside the directory. +.IP "mkdir ( \s-1DIR\s0 [, \s-1RECURSE\s0 ])" 4 +.IX Item "mkdir ( DIR [, RECURSE ])" +Create a new directory with the name \f(CW\*(C`DIR\*(C'\fR. If \f(CW\*(C`RECURSE\*(C'\fR is \fItrue\fR then +\&\f(CW\*(C`mkdir\*(C'\fR will attempt to create all the directories in the given path. +.Sp +Returns the full pathname to the new directory. +.IP "alloc ( \s-1SIZE\s0 [, \s-1RECORD_SIZE\s0] )" 4 +.IX Item "alloc ( SIZE [, RECORD_SIZE] )" +The alloc command allows you to give the ftp server a hint about the size +of the file about to be transferred using the \s-1ALLO\s0 ftp command. Some storage +systems use this to make intelligent decisions about how to store the file. +The \f(CW\*(C`SIZE\*(C'\fR argument represents the size of the file in bytes. The +\&\f(CW\*(C`RECORD_SIZE\*(C'\fR argument indicates a maximum record or page size for files +sent with a record or page structure. +.Sp +The size of the file will be determined, and sent to the server +automatically for normal files so that this method need only be called if +you are transferring data from a socket, named pipe, or other stream not +associated with a normal file. +.IP "ls ( [ \s-1DIR\s0 ] )" 4 +.IX Item "ls ( [ DIR ] )" +Get a directory listing of \f(CW\*(C`DIR\*(C'\fR, or the current directory. +.Sp +In an array context, returns a list of lines returned from the server. In +a scalar context, returns a reference to a list. +.IP "dir ( [ \s-1DIR\s0 ] )" 4 +.IX Item "dir ( [ DIR ] )" +Get a directory listing of \f(CW\*(C`DIR\*(C'\fR, or the current directory in long format. +.Sp +In an array context, returns a list of lines returned from the server. In +a scalar context, returns a reference to a list. +.IP "get ( \s-1REMOTE_FILE\s0 [, \s-1LOCAL_FILE\s0 [, \s-1WHERE\s0]] )" 4 +.IX Item "get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] )" +Get \f(CW\*(C`REMOTE_FILE\*(C'\fR from the server and store locally. \f(CW\*(C`LOCAL_FILE\*(C'\fR may be +a filename or a filehandle. If not specified, the file will be stored in +the current directory with the same leafname as the remote file. +.Sp +If \f(CW\*(C`WHERE\*(C'\fR is given then the first \f(CW\*(C`WHERE\*(C'\fR bytes of the file will +not be transferred, and the remaining bytes will be appended to +the local file if it already exists. +.Sp +Returns \f(CW\*(C`LOCAL_FILE\*(C'\fR, or the generated local file name if \f(CW\*(C`LOCAL_FILE\*(C'\fR +is not given. If an error was encountered undef is returned. +.IP "put ( \s-1LOCAL_FILE\s0 [, \s-1REMOTE_FILE\s0 ] )" 4 +.IX Item "put ( LOCAL_FILE [, REMOTE_FILE ] )" +Put a file on the remote server. \f(CW\*(C`LOCAL_FILE\*(C'\fR may be a name or a filehandle. +If \f(CW\*(C`LOCAL_FILE\*(C'\fR is a filehandle then \f(CW\*(C`REMOTE_FILE\*(C'\fR must be specified. If +\&\f(CW\*(C`REMOTE_FILE\*(C'\fR is not specified then the file will be stored in the current +directory with the same leafname as \f(CW\*(C`LOCAL_FILE\*(C'\fR. +.Sp +Returns \f(CW\*(C`REMOTE_FILE\*(C'\fR, or the generated remote filename if \f(CW\*(C`REMOTE_FILE\*(C'\fR +is not given. +.Sp +\&\fB\s-1NOTE\s0\fR: If for some reason the transfer does not complete and an error is +returned then the contents that had been transferred will not be remove +automatically. +.IP "put_unique ( \s-1LOCAL_FILE\s0 [, \s-1REMOTE_FILE\s0 ] )" 4 +.IX Item "put_unique ( LOCAL_FILE [, REMOTE_FILE ] )" +Same as put but uses the \f(CW\*(C`STOU\*(C'\fR command. +.Sp +Returns the name of the file on the server. +.IP "append ( \s-1LOCAL_FILE\s0 [, \s-1REMOTE_FILE\s0 ] )" 4 +.IX Item "append ( LOCAL_FILE [, REMOTE_FILE ] )" +Same as put but appends to the file on the remote server. +.Sp +Returns \f(CW\*(C`REMOTE_FILE\*(C'\fR, or the generated remote filename if \f(CW\*(C`REMOTE_FILE\*(C'\fR +is not given. +.IP "unique_name ()" 4 +.IX Item "unique_name ()" +Returns the name of the last file stored on the server using the +\&\f(CW\*(C`STOU\*(C'\fR command. +.IP "mdtm ( \s-1FILE\s0 )" 4 +.IX Item "mdtm ( FILE )" +Returns the \fImodification time\fR of the given file +.IP "size ( \s-1FILE\s0 )" 4 +.IX Item "size ( FILE )" +Returns the size in bytes for the given file as stored on the remote server. +.Sp +\&\fB\s-1NOTE\s0\fR: The size reported is the size of the stored file on the remote server. +If the file is subsequently transferred from the server in \s-1ASCII\s0 mode +and the remote server and local machine have different ideas about +\&\*(L"End Of Line\*(R" then the size of file on the local machine after transfer +may be different. +.IP "supported ( \s-1CMD\s0 )" 4 +.IX Item "supported ( CMD )" +Returns \s-1TRUE\s0 if the remote server supports the given command. +.IP "hash ( [\s-1FILEHANDLE_GLOB_REF\s0],[ \s-1BYTES_PER_HASH_MARK\s0] )" 4 +.IX Item "hash ( [FILEHANDLE_GLOB_REF],[ BYTES_PER_HASH_MARK] )" +Called without parameters, or with the first argument false, hash marks +are suppressed. If the first argument is true but not a reference to a +file handle glob, then \e*STDERR is used. The second argument is the number +of bytes per hash mark printed, and defaults to 1024. In all cases the +return value is a reference to an array of two: the filehandle glob reference +and the bytes per hash mark. +.IP "feature ( \s-1NAME\s0 )" 4 +.IX Item "feature ( NAME )" +Determine if the server supports the specified feature. The return +value is a list of lines the server responded with to describe the +options that it supports for the given feature. If the feature is +unsupported then the empty list is returned. +.Sp +.Vb 3 +\& if ($ftp\->feature( \*(AqMDTM\*(Aq )) { +\& # Do something +\& } +\& +\& if (grep { /\ebTLS\eb/ } $ftp\->feature(\*(AqAUTH\*(Aq)) { +\& # Server supports TLS +\& } +.Ve +.PP +The following methods can return different results depending on +how they are called. If the user explicitly calls either +of the \f(CW\*(C`pasv\*(C'\fR or \f(CW\*(C`port\*(C'\fR methods then these methods will +return a \fItrue\fR or \fIfalse\fR value. If the user does not +call either of these methods then the result will be a +reference to a \f(CW\*(C`Net::FTP::dataconn\*(C'\fR based object. +.IP "nlst ( [ \s-1DIR\s0 ] )" 4 +.IX Item "nlst ( [ DIR ] )" +Send an \f(CW\*(C`NLST\*(C'\fR command to the server, with an optional parameter. +.IP "list ( [ \s-1DIR\s0 ] )" 4 +.IX Item "list ( [ DIR ] )" +Same as \f(CW\*(C`nlst\*(C'\fR but using the \f(CW\*(C`LIST\*(C'\fR command +.IP "retr ( \s-1FILE\s0 )" 4 +.IX Item "retr ( FILE )" +Begin the retrieval of a file called \f(CW\*(C`FILE\*(C'\fR from the remote server. +.IP "stor ( \s-1FILE\s0 )" 4 +.IX Item "stor ( FILE )" +Tell the server that you wish to store a file. \f(CW\*(C`FILE\*(C'\fR is the +name of the new file that should be created. +.IP "stou ( \s-1FILE\s0 )" 4 +.IX Item "stou ( FILE )" +Same as \f(CW\*(C`stor\*(C'\fR but using the \f(CW\*(C`STOU\*(C'\fR command. The name of the unique +file which was created on the server will be available via the \f(CW\*(C`unique_name\*(C'\fR +method after the data connection has been closed. +.IP "appe ( \s-1FILE\s0 )" 4 +.IX Item "appe ( FILE )" +Tell the server that we want to append some data to the end of a file +called \f(CW\*(C`FILE\*(C'\fR. If this file does not exist then create it. +.PP +If for some reason you want to have complete control over the data connection, +this includes generating it and calling the \f(CW\*(C`response\*(C'\fR method when required, +then the user can use these methods to do so. +.PP +However calling these methods only affects the use of the methods above that +can return a data connection. They have no effect on methods \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`put\*(C'\fR, +\&\f(CW\*(C`put_unique\*(C'\fR and those that do not require data connections. +.IP "port ( [ \s-1PORT\s0 ] )" 4 +.IX Item "port ( [ PORT ] )" +.PD 0 +.IP "eprt ( [ \s-1PORT\s0 ] )" 4 +.IX Item "eprt ( [ PORT ] )" +.PD +Send a \f(CW\*(C`PORT\*(C'\fR (IPv4) or \f(CW\*(C`EPRT\*(C'\fR (IPv6) command to the server. If \f(CW\*(C`PORT\*(C'\fR is +specified then it is sent to the server. If not, then a listen socket is created +and the correct information sent to the server. +.IP "pasv ()" 4 +.IX Item "pasv ()" +.PD 0 +.IP "epsv ()" 4 +.IX Item "epsv ()" +.PD +Tell the server to go into passive mode (\f(CW\*(C`pasv\*(C'\fR for IPv4, \f(CW\*(C`epsv\*(C'\fR for IPv6). +Returns the text that represents the port on which the server is listening, this +text is in a suitable form to send to another ftp server using the \f(CW\*(C`port\*(C'\fR or +\&\f(CW\*(C`eprt\*(C'\fR method. +.PP +The following methods can be used to transfer files between two remote +servers, providing that these two servers can connect directly to each other. +.IP "pasv_xfer ( \s-1SRC_FILE, DEST_SERVER\s0 [, \s-1DEST_FILE\s0 ] )" 4 +.IX Item "pasv_xfer ( SRC_FILE, DEST_SERVER [, DEST_FILE ] )" +This method will do a file transfer between two remote ftp servers. If +\&\f(CW\*(C`DEST_FILE\*(C'\fR is omitted then the leaf name of \f(CW\*(C`SRC_FILE\*(C'\fR will be used. +.IP "pasv_xfer_unique ( \s-1SRC_FILE, DEST_SERVER\s0 [, \s-1DEST_FILE\s0 ] )" 4 +.IX Item "pasv_xfer_unique ( SRC_FILE, DEST_SERVER [, DEST_FILE ] )" +Like \f(CW\*(C`pasv_xfer\*(C'\fR but the file is stored on the remote server using +the \s-1STOU\s0 command. +.IP "pasv_wait ( \s-1NON_PASV_SERVER\s0 )" 4 +.IX Item "pasv_wait ( NON_PASV_SERVER )" +This method can be used to wait for a transfer to complete between a passive +server and a non-passive server. The method should be called on the passive +server with the \f(CW\*(C`Net::FTP\*(C'\fR object for the non-passive server passed as an +argument. +.IP "abort ()" 4 +.IX Item "abort ()" +Abort the current data transfer. +.IP "quit ()" 4 +.IX Item "quit ()" +Send the \s-1QUIT\s0 command to the remote \s-1FTP\s0 server and close the socket connection. +.SS "Methods for the adventurous" +.IX Subsection "Methods for the adventurous" +.IP "quot (\s-1CMD\s0 [,ARGS])" 4 +.IX Item "quot (CMD [,ARGS])" +Send a command, that Net::FTP does not directly support, to the remote +server and wait for a response. +.Sp +Returns most significant digit of the response code. +.Sp +\&\fB\s-1WARNING\s0\fR This call should only be used on commands that do not require +data connections. Misuse of this method can hang the connection. +.IP "can_inet6 ()" 4 +.IX Item "can_inet6 ()" +Returns whether we can use IPv6. +.IP "can_ssl ()" 4 +.IX Item "can_ssl ()" +Returns whether we can use \s-1SSL.\s0 +.SH "THE dataconn CLASS" +.IX Header "THE dataconn CLASS" +Some of the methods defined in \f(CW\*(C`Net::FTP\*(C'\fR return an object which will +be derived from the \f(CW\*(C`Net::FTP::dataconn\*(C'\fR class. See Net::FTP::dataconn for +more details. +.SH "UNIMPLEMENTED" +.IX Header "UNIMPLEMENTED" +The following \s-1RFC959\s0 commands have not been implemented: +.IP "\fB\s-1SMNT\s0\fR" 4 +.IX Item "SMNT" +Mount a different file system structure without changing login or +accounting information. +.IP "\fB\s-1HELP\s0\fR" 4 +.IX Item "HELP" +Ask the server for \*(L"helpful information\*(R" (that's what the \s-1RFC\s0 says) on +the commands it accepts. +.IP "\fB\s-1MODE\s0\fR" 4 +.IX Item "MODE" +Specifies transfer mode (stream, block or compressed) for file to be +transferred. +.IP "\fB\s-1SYST\s0\fR" 4 +.IX Item "SYST" +Request remote server system identification. +.IP "\fB\s-1STAT\s0\fR" 4 +.IX Item "STAT" +Request remote server status. +.IP "\fB\s-1STRU\s0\fR" 4 +.IX Item "STRU" +Specifies file structure for file to be transferred. +.IP "\fB\s-1REIN\s0\fR" 4 +.IX Item "REIN" +Reinitialize the connection, flushing all I/O and account information. +.SH "REPORTING BUGS" +.IX Header "REPORTING BUGS" +When reporting bugs/problems please include as much information as possible. +It may be difficult for me to reproduce the problem as almost every setup +is different. +.PP +A small script which yields the problem will probably be of help. It would +also be useful if this script was run with the extra options \f(CW\*(C`Debug => 1\*(C'\fR +passed to the constructor, and the output sent with the bug report. If you +cannot include a small script then please include a Debug trace from a +run of your program which does yield the problem. +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Net::Netrc, +Net::Cmd, +IO::Socket::SSL +.PP +\&\fBftp\fR\|(1), \fBftpd\fR\|(8), \s-1RFC 959, RFC 2428, RFC 4217\s0 +http://www.ietf.org/rfc/rfc959.txt +http://www.ietf.org/rfc/rfc2428.txt +http://www.ietf.org/rfc/rfc4217.txt +.SH "USE EXAMPLES" +.IX Header "USE EXAMPLES" +For an example of the use of Net::FTP see +.IP "http://www.csh.rit.edu/~adam/Progs/" 4 +.IX Item "http://www.csh.rit.edu/~adam/Progs/" +\&\f(CW\*(C`autoftp\*(C'\fR is a program that can retrieve, send, or list files via +the \s-1FTP\s0 protocol in a non-interactive manner. +.SH "CREDITS" +.IX Header "CREDITS" +Henry Gabryjelski \- for the suggestion of creating directories +recursively. +.PP +Nathan Torkington \- for some input on the documentation. +.PP +Roderick Schertler \- for various inputs +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-2004 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2017 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3ANetrc.3 b/data/miniconda3/man/man3/Net%3A%3ANetrc.3 new file mode 100644 index 0000000000000000000000000000000000000000..e42a42197f574aa66f66b4a9e0c60fea0d691872 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ANetrc.3 @@ -0,0 +1,254 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Netrc 3" +.TH Net::Netrc 3 "2020-12-18" "perl v5.32.1" "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" +Net::Netrc \- OO interface to users netrc file +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Netrc; +\& +\& $mach = Net::Netrc\->lookup(\*(Aqsome.machine\*(Aq); +\& $login = $mach\->login; +\& ($login, $password, $account) = $mach\->lpa; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::Netrc\*(C'\fR is a class implementing a simple interface to the .netrc file +used as by the ftp program. +.PP +\&\f(CW\*(C`Net::Netrc\*(C'\fR also implements security checks just like the ftp program, +these checks are, first that the .netrc file must be owned by the user and +second the ownership permissions should be such that only the owner has +read and write access. If these conditions are not met then a warning is +output and the .netrc file is not read. +.SH "THE .netrc FILE" +.IX Header "THE .netrc FILE" +The .netrc file contains login and initialization information used by the +auto-login process. It resides in the user's home directory. The following +tokens are recognized; they may be separated by spaces, tabs, or new-lines: +.IP "machine name" 4 +.IX Item "machine name" +Identify a remote machine name. The auto-login process searches +the .netrc file for a machine token that matches the remote machine +specified. Once a match is made, the subsequent .netrc tokens +are processed, stopping when the end of file is reached or an\- +other machine or a default token is encountered. +.IP "default" 4 +.IX Item "default" +This is the same as machine name except that default matches +any name. There can be only one default token, and it must be +after all machine tokens. This is normally used as: +.Sp +.Vb 1 +\& default login anonymous password user@site +.Ve +.Sp +thereby giving the user automatic anonymous login to machines +not specified in .netrc. +.IP "login name" 4 +.IX Item "login name" +Identify a user on the remote machine. If this token is present, +the auto-login process will initiate a login using the +specified name. +.IP "password string" 4 +.IX Item "password string" +Supply a password. If this token is present, the auto-login +process will supply the specified string if the remote server +requires a password as part of the login process. +.IP "account string" 4 +.IX Item "account string" +Supply an additional account password. If this token is present, +the auto-login process will supply the specified string +if the remote server requires an additional account password. +.IP "macdef name" 4 +.IX Item "macdef name" +Define a macro. \f(CW\*(C`Net::Netrc\*(C'\fR only parses this field to be compatible +with \fIftp\fR. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +The constructor for a \f(CW\*(C`Net::Netrc\*(C'\fR object is not called new as it does not +really create a new object. But instead is called \f(CW\*(C`lookup\*(C'\fR as this is +essentially what it does. +.IP "lookup ( \s-1MACHINE\s0 [, \s-1LOGIN\s0 ])" 4 +.IX Item "lookup ( MACHINE [, LOGIN ])" +Lookup and return a reference to the entry for \f(CW\*(C`MACHINE\*(C'\fR. If \f(CW\*(C`LOGIN\*(C'\fR is given +then the entry returned will have the given login. If \f(CW\*(C`LOGIN\*(C'\fR is not given then +the first entry in the .netrc file for \f(CW\*(C`MACHINE\*(C'\fR will be returned. +.Sp +If a matching entry cannot be found, and a default entry exists, then a +reference to the default entry is returned. +.Sp +If there is no matching entry found and there is no default defined, or +no .netrc file is found, then \f(CW\*(C`undef\*(C'\fR is returned. +.SH "METHODS" +.IX Header "METHODS" +.IP "login ()" 4 +.IX Item "login ()" +Return the login id for the netrc entry +.IP "password ()" 4 +.IX Item "password ()" +Return the password for the netrc entry +.IP "account ()" 4 +.IX Item "account ()" +Return the account information for the netrc entry +.IP "lpa ()" 4 +.IX Item "lpa ()" +Return a list of login, password and account information for the netrc entry +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Net::Netrc, +Net::Cmd +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-1998 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2014 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3APOP3.3 b/data/miniconda3/man/man3/Net%3A%3APOP3.3 new file mode 100644 index 0000000000000000000000000000000000000000..76bce05ebffcd60175812ff61a33e923403177b1 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3APOP3.3 @@ -0,0 +1,363 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::POP3 3" +.TH Net::POP3 3 "2020-12-18" "perl v5.32.1" "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" +Net::POP3 \- Post Office Protocol 3 Client class (RFC1939) +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::POP3; +\& +\& # Constructors +\& $pop = Net::POP3\->new(\*(Aqpop3host\*(Aq); +\& $pop = Net::POP3\->new(\*(Aqpop3host\*(Aq, Timeout => 60); +\& $pop = Net::POP3\->new(\*(Aqpop3host\*(Aq, SSL => 1, Timeout => 60); +\& +\& if ($pop\->login($username, $password) > 0) { +\& my $msgnums = $pop\->list; # hashref of msgnum => size +\& foreach my $msgnum (keys %$msgnums) { +\& my $msg = $pop\->get($msgnum); +\& print @$msg; +\& $pop\->delete($msgnum); +\& } +\& } +\& +\& $pop\->quit; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements a client interface to the \s-1POP3\s0 protocol, enabling +a perl5 application to talk to \s-1POP3\s0 servers. This documentation assumes +that you are familiar with the \s-1POP3\s0 protocol described in \s-1RFC1939.\s0 +With IO::Socket::SSL installed it also provides support for implicit and +explicit \s-1TLS\s0 encryption, i.e. \s-1POP3S\s0 or \s-1POP3+STARTTLS.\s0 +.PP +A new Net::POP3 object must be created with the \fInew\fR method. Once +this has been done, all \s-1POP3\s0 commands are accessed via method calls +on the object. +.PP +The Net::POP3 class is a subclass of Net::Cmd and (depending on avaibility) of +IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ] )" 4 +.IX Item "new ( [ HOST ] [, OPTIONS ] )" +This is the constructor for a new Net::POP3 object. \f(CW\*(C`HOST\*(C'\fR is the +name of the remote host to which an \s-1POP3\s0 connection is required. +.Sp +\&\f(CW\*(C`HOST\*(C'\fR is optional. If \f(CW\*(C`HOST\*(C'\fR is not given then it may instead be +passed as the \f(CW\*(C`Host\*(C'\fR option described below. If neither is given then +the \f(CW\*(C`POP3_Hosts\*(C'\fR specified in \f(CW\*(C`Net::Config\*(C'\fR will be used. +.Sp +\&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs. +Possible options are: +.Sp +\&\fBHost\fR \- \s-1POP3\s0 host to connect to. It may be a single scalar, as defined for +the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to +an array with hosts to try in turn. The \*(L"host\*(R" method will return the value +which was used to connect to the host. +.Sp +\&\fBPort\fR \- port to connect to. +Default \- 110 for plain \s-1POP3\s0 and 995 for POP3s (direct \s-1SSL\s0). +.Sp +\&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later +upgrade with \f(CW\*(C`starttls\*(C'\fR. +You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will +usually use the right arguments already. +.Sp +\&\fBLocalAddr\fR and \fBLocalPort\fR \- These parameters are passed directly +to IO::Socket to allow binding the socket to a specific local address and port. +For compatibility with older versions \fBResvPort\fR can be used instead of +\&\fBLocalPort\fR. +.Sp +\&\fBDomain\fR \- This parameter is passed directly to IO::Socket and makes it +possible to enforce IPv4 connections even if IO::Socket::IP is used as super +class. Alternatively \fBFamily\fR can be used. +.Sp +\&\fBTimeout\fR \- Maximum time, in seconds, to wait for a response from the +\&\s-1POP3\s0 server (default: 120) +.Sp +\&\fBDebug\fR \- Enable debugging information +.SH "METHODS" +.IX Header "METHODS" +Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR +value, with \fItrue\fR meaning that the operation was a success. When a method +states that it returns a value, failure will be returned as \fIundef\fR or an +empty list. +.PP +\&\f(CW\*(C`Net::POP3\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may +be used to send commands to the remote \s-1POP3\s0 server in addition to the methods +documented here. +.IP "host ()" 4 +.IX Item "host ()" +Returns the value used by the constructor, and passed to IO::Socket::INET, +to connect to the host. +.IP "auth ( \s-1USERNAME, PASSWORD\s0 )" 4 +.IX Item "auth ( USERNAME, PASSWORD )" +Attempt \s-1SASL\s0 authentication. +.IP "user ( \s-1USER\s0 )" 4 +.IX Item "user ( USER )" +Send the \s-1USER\s0 command. +.IP "pass ( \s-1PASS\s0 )" 4 +.IX Item "pass ( PASS )" +Send the \s-1PASS\s0 command. Returns the number of messages in the mailbox. +.IP "login ( [ \s-1USER\s0 [, \s-1PASS\s0 ]] )" 4 +.IX Item "login ( [ USER [, PASS ]] )" +Send both the \s-1USER\s0 and \s-1PASS\s0 commands. If \f(CW\*(C`PASS\*(C'\fR is not given the +\&\f(CW\*(C`Net::POP3\*(C'\fR uses \f(CW\*(C`Net::Netrc\*(C'\fR to lookup the password using the host +and username. If the username is not specified then the current user name +will be used. +.Sp +Returns the number of messages in the mailbox. However if there are no +messages on the server the string \f(CW"0E0"\fR will be returned. This is +will give a true value in a boolean context, but zero in a numeric context. +.Sp +If there was an error authenticating the user then \fIundef\fR will be returned. +.IP "starttls ( \s-1SSLARGS\s0 )" 4 +.IX Item "starttls ( SSLARGS )" +Upgrade existing plain connection to \s-1SSL.\s0 +You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will +usually use the right arguments already. +.IP "apop ( [ \s-1USER\s0 [, \s-1PASS\s0 ]] )" 4 +.IX Item "apop ( [ USER [, PASS ]] )" +Authenticate with the server identifying as \f(CW\*(C`USER\*(C'\fR with password \f(CW\*(C`PASS\*(C'\fR. +Similar to \*(L"login\*(R", but the password is not sent in clear text. +.Sp +To use this method you must have the Digest::MD5 or the \s-1MD5\s0 module installed, +otherwise this method will return \fIundef\fR. +.IP "banner ()" 4 +.IX Item "banner ()" +Return the sever's connection banner +.IP "capa ()" 4 +.IX Item "capa ()" +Return a reference to a hash of the capabilities of the server. \s-1APOP\s0 +is added as a pseudo capability. Note that I've been unable to +find a list of the standard capability values, and some appear to +be multi-word and some are not. We make an attempt at intelligently +parsing them, but it may not be correct. +.IP "capabilities ()" 4 +.IX Item "capabilities ()" +Just like capa, but only uses a cache from the last time we asked +the server, so as to avoid asking more than once. +.IP "top ( \s-1MSGNUM\s0 [, \s-1NUMLINES\s0 ] )" 4 +.IX Item "top ( MSGNUM [, NUMLINES ] )" +Get the header and the first \f(CW\*(C`NUMLINES\*(C'\fR of the body for the message +\&\f(CW\*(C`MSGNUM\*(C'\fR. Returns a reference to an array which contains the lines of text +read from the server. +.IP "list ( [ \s-1MSGNUM\s0 ] )" 4 +.IX Item "list ( [ MSGNUM ] )" +If called with an argument the \f(CW\*(C`list\*(C'\fR returns the size of the message +in octets. +.Sp +If called without arguments a reference to a hash is returned. The +keys will be the \f(CW\*(C`MSGNUM\*(C'\fR's of all undeleted messages and the values will +be their size in octets. +.IP "get ( \s-1MSGNUM\s0 [, \s-1FH\s0 ] )" 4 +.IX Item "get ( MSGNUM [, FH ] )" +Get the message \f(CW\*(C`MSGNUM\*(C'\fR from the remote mailbox. If \f(CW\*(C`FH\*(C'\fR is not given +then get returns a reference to an array which contains the lines of +text read from the server. If \f(CW\*(C`FH\*(C'\fR is given then the lines returned +from the server are printed to the filehandle \f(CW\*(C`FH\*(C'\fR. +.IP "getfh ( \s-1MSGNUM\s0 )" 4 +.IX Item "getfh ( MSGNUM )" +As per \fBget()\fR, but returns a tied filehandle. Reading from this +filehandle returns the requested message. The filehandle will return +\&\s-1EOF\s0 at the end of the message and should not be reused. +.IP "last ()" 4 +.IX Item "last ()" +Returns the highest \f(CW\*(C`MSGNUM\*(C'\fR of all the messages accessed. +.IP "popstat ()" 4 +.IX Item "popstat ()" +Returns a list of two elements. These are the number of undeleted +elements and the size of the mbox in octets. +.IP "ping ( \s-1USER\s0 )" 4 +.IX Item "ping ( USER )" +Returns a list of two elements. These are the number of new messages +and the total number of messages for \f(CW\*(C`USER\*(C'\fR. +.IP "uidl ( [ \s-1MSGNUM\s0 ] )" 4 +.IX Item "uidl ( [ MSGNUM ] )" +Returns a unique identifier for \f(CW\*(C`MSGNUM\*(C'\fR if given. If \f(CW\*(C`MSGNUM\*(C'\fR is not +given \f(CW\*(C`uidl\*(C'\fR returns a reference to a hash where the keys are the +message numbers and the values are the unique identifiers. +.IP "delete ( \s-1MSGNUM\s0 )" 4 +.IX Item "delete ( MSGNUM )" +Mark message \f(CW\*(C`MSGNUM\*(C'\fR to be deleted from the remote mailbox. All messages +that are marked to be deleted will be removed from the remote mailbox +when the server connection closed. +.IP "reset ()" 4 +.IX Item "reset ()" +Reset the status of the remote \s-1POP3\s0 server. This includes resetting the +status of all messages to not be deleted. +.IP "quit ()" 4 +.IX Item "quit ()" +Quit and close the connection to the remote \s-1POP3\s0 server. Any messages marked +as deleted will be deleted from the remote mailbox. +.IP "can_inet6 ()" 4 +.IX Item "can_inet6 ()" +Returns whether we can use IPv6. +.IP "can_ssl ()" 4 +.IX Item "can_ssl ()" +Returns whether we can use \s-1SSL.\s0 +.SH "NOTES" +.IX Header "NOTES" +If a \f(CW\*(C`Net::POP3\*(C'\fR object goes out of scope before \f(CW\*(C`quit\*(C'\fR method is called +then the \f(CW\*(C`reset\*(C'\fR method will called before the connection is closed. This +means that any messages marked to be deleted will not be. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Net::Netrc, +Net::Cmd, +IO::Socket::SSL +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-2004 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2016 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3APing.3 b/data/miniconda3/man/man3/Net%3A%3APing.3 new file mode 100644 index 0000000000000000000000000000000000000000..6dec677e940d6483915804535c9f1e174e741f26 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3APing.3 @@ -0,0 +1,723 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Ping 3" +.TH Net::Ping 3 "2020-12-18" "perl v5.32.1" "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" +Net::Ping \- check a remote host for reachability +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Ping; +\& +\& $p = Net::Ping\->new(); +\& print "$host is alive.\en" if $p\->ping($host); +\& $p\->close(); +\& +\& $p = Net::Ping\->new("icmp"); +\& $p\->bind($my_addr); # Specify source interface of pings +\& foreach $host (@host_array) +\& { +\& print "$host is "; +\& print "NOT " unless $p\->ping($host, 2); +\& print "reachable.\en"; +\& sleep(1); +\& } +\& $p\->close(); +\& +\& $p = Net::Ping\->new("tcp", 2); +\& # Try connecting to the www port instead of the echo port +\& $p\->port_number(scalar(getservbyname("http", "tcp"))); +\& while ($stop_time > time()) +\& { +\& print "$host not reachable ", scalar(localtime()), "\en" +\& unless $p\->ping($host); +\& sleep(300); +\& } +\& undef($p); +\& +\& # Like tcp protocol, but with many hosts +\& $p = Net::Ping\->new("syn"); +\& $p\->port_number(getservbyname("http", "tcp")); +\& foreach $host (@host_array) { +\& $p\->ping($host); +\& } +\& while (($host,$rtt,$ip) = $p\->ack) { +\& print "HOST: $host [$ip] ACKed in $rtt seconds.\en"; +\& } +\& +\& # High precision syntax (requires Time::HiRes) +\& $p = Net::Ping\->new(); +\& $p\->hires(); +\& ($ret, $duration, $ip) = $p\->ping($host, 5.5); +\& printf("$host [ip: $ip] is alive (packet return time: %.2f ms)\en", +\& 1000 * $duration) +\& if $ret; +\& $p\->close(); +\& +\& # For backward compatibility +\& print "$host is alive.\en" if pingecho($host); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module contains methods to test the reachability of remote +hosts on a network. A ping object is first created with optional +parameters, a variable number of hosts may be pinged multiple +times and then the connection is closed. +.PP +You may choose one of six different protocols to use for the +ping. The \*(L"tcp\*(R" protocol is the default. Note that a live remote host +may still fail to be pingable by one or more of these protocols. For +example, www.microsoft.com is generally alive but not \*(L"icmp\*(R" pingable. +.PP +With the \*(L"tcp\*(R" protocol the \fBping()\fR method attempts to establish a +connection to the remote host's echo port. If the connection is +successfully established, the remote host is considered reachable. No +data is actually echoed. This protocol does not require any special +privileges but has higher overhead than the \*(L"udp\*(R" and \*(L"icmp\*(R" protocols. +.PP +Specifying the \*(L"udp\*(R" protocol causes the \fBping()\fR method to send a udp +packet to the remote host's echo port. If the echoed packet is +received from the remote host and the received packet contains the +same data as the packet that was sent, the remote host is considered +reachable. This protocol does not require any special privileges. +It should be borne in mind that, for a udp ping, a host +will be reported as unreachable if it is not running the +appropriate echo service. For Unix-like systems see \fBinetd\fR\|(8) +for more information. +.PP +If the \*(L"icmp\*(R" protocol is specified, the \fBping()\fR method sends an icmp +echo message to the remote host, which is what the \s-1UNIX\s0 ping program +does. If the echoed message is received from the remote host and +the echoed information is correct, the remote host is considered +reachable. Specifying the \*(L"icmp\*(R" protocol requires that the program +be run as root or that the program be setuid to root. +.PP +If the \*(L"external\*(R" protocol is specified, the \fBping()\fR method attempts to +use the \f(CW\*(C`Net::Ping::External\*(C'\fR module to ping the remote host. +\&\f(CW\*(C`Net::Ping::External\*(C'\fR interfaces with your system's default \f(CW\*(C`ping\*(C'\fR +utility to perform the ping, and generally produces relatively +accurate results. If \f(CW\*(C`Net::Ping::External\*(C'\fR if not installed on your +system, specifying the \*(L"external\*(R" protocol will result in an error. +.PP +If the \*(L"syn\*(R" protocol is specified, the \*(L"ping\*(R" method will only +send a \s-1TCP SYN\s0 packet to the remote host then immediately return. +If the syn packet was sent successfully, it will return a true value, +otherwise it will return false. \s-1NOTE:\s0 Unlike the other protocols, +the return value does \s-1NOT\s0 determine if the remote host is alive or +not since the full \s-1TCP\s0 three-way handshake may not have completed +yet. The remote host is only considered reachable if it receives +a \s-1TCP ACK\s0 within the timeout specified. To begin waiting for the +\&\s-1ACK\s0 packets, use the \*(L"ack\*(R" method as explained below. Use the +\&\*(L"syn\*(R" protocol instead the \*(L"tcp\*(R" protocol to determine reachability +of multiple destinations simultaneously by sending parallel \s-1TCP +SYN\s0 packets. It will not block while testing each remote host. +This protocol does not require any special privileges. +.SS "Functions" +.IX Subsection "Functions" +.IP "Net::Ping\->new([proto, timeout, bytes, device, tos, ttl, family, host, port, bind, gateway, retrans, pingstring, source_verify econnrefused dontfrag \s-1IPV6_USE_MIN_MTU IPV6_RECVPATHMTU\s0])" 4 +.IX Xref "new" +.IX Item "Net::Ping->new([proto, timeout, bytes, device, tos, ttl, family, host, port, bind, gateway, retrans, pingstring, source_verify econnrefused dontfrag IPV6_USE_MIN_MTU IPV6_RECVPATHMTU])" +Create a new ping object. All of the parameters are optional and can +be passed as hash ref. All options besides the first 7 must be passed +as hash ref. +.Sp +\&\f(CW\*(C`proto\*(C'\fR specifies the protocol to use when doing a ping. The current +choices are \*(L"tcp\*(R", \*(L"udp\*(R", \*(L"icmp\*(R", \*(L"icmpv6\*(R", \*(L"stream\*(R", \*(L"syn\*(R", or +\&\*(L"external\*(R". The default is \*(L"tcp\*(R". +.Sp +If a \f(CW\*(C`timeout\*(C'\fR in seconds is provided, it is used +when a timeout is not given to the \fBping()\fR method (below). The timeout +must be greater than 0 and the default, if not specified, is 5 seconds. +.Sp +If the number of data bytes (\f(CW\*(C`bytes\*(C'\fR) is given, that many data bytes +are included in the ping packet sent to the remote host. The number of +data bytes is ignored if the protocol is \*(L"tcp\*(R". The minimum (and +default) number of data bytes is 1 if the protocol is \*(L"udp\*(R" and 0 +otherwise. The maximum number of data bytes that can be specified is +65535, but staying below the \s-1MTU\s0 (1472 bytes for \s-1ICMP\s0) is recommended. +Many small devices cannot deal with fragmented \s-1ICMP\s0 packets. +.Sp +If \f(CW\*(C`device\*(C'\fR is given, this device is used to bind the source endpoint +before sending the ping packet. I believe this only works with +superuser privileges and with udp and icmp protocols at this time. +.Sp +If is given, this ToS is configured into the socket. +.Sp +For icmp, \f(CW\*(C`ttl\*(C'\fR can be specified to set the \s-1TTL\s0 of the outgoing packet. +.Sp +Valid \f(CW\*(C`family\*(C'\fR values for IPv4: +.Sp +.Vb 1 +\& 4, v4, ip4, ipv4, AF_INET (constant) +.Ve +.Sp +Valid \f(CW\*(C`family\*(C'\fR values for IPv6: +.Sp +.Vb 1 +\& 6, v6, ip6, ipv6, AF_INET6 (constant) +.Ve +.Sp +The \f(CW\*(C`host\*(C'\fR argument implicitly specifies the family if the family +argument is not given. +.Sp +The \f(CW\*(C`port\*(C'\fR argument is only valid for a udp, tcp or stream ping, and will not +do what you think it does. ping returns true when we get a \*(L"Connection refused\*(R"! +The default is the echo port. +.Sp +The \f(CW\*(C`bind\*(C'\fR argument specifies the local_addr to bind to. +By specifying a bind argument you don't need the bind method. +.Sp +The \f(CW\*(C`gateway\*(C'\fR argument is only valid for IPv6, and requires a IPv6 +address. +.Sp +The \f(CW\*(C`retrans\*(C'\fR argument the exponential backoff rate, default 1.2. +It matches the \f(CW$def_factor\fR global. +.Sp +The \f(CW\*(C`dontfrag\*(C'\fR argument sets the \s-1IP_DONTFRAG\s0 bit, but note that +\&\s-1IP_DONTFRAG\s0 is not yet defined by Socket, and not available on many +systems. Then it is ignored. On linux it also sets \s-1IP_MTU_DISCOVER\s0 to +\&\s-1IP_PMTUDISC_DO\s0 but need we don't chunk oversized packets. You need to +set \f(CW$data_size\fR manually. +.ie n .IP "$p\->ping($host [, $timeout [, $family]]);" 4 +.el .IP "\f(CW$p\fR\->ping($host [, \f(CW$timeout\fR [, \f(CW$family\fR]]);" 4 +.IX Xref "ping" +.IX Item "$p->ping($host [, $timeout [, $family]]);" +Ping the remote host and wait for a response. \f(CW$host\fR can be either the +hostname or the \s-1IP\s0 number of the remote host. The optional timeout +must be greater than 0 seconds and defaults to whatever was specified +when the ping object was created. Returns a success flag. If the +hostname cannot be found or there is a problem with the \s-1IP\s0 number, the +success flag returned will be undef. Otherwise, the success flag will +be 1 if the host is reachable and 0 if it is not. For most practical +purposes, undef and 0 and can be treated as the same case. In array +context, the elapsed time as well as the string form of the ip the +host resolved to are also returned. The elapsed time value will +be a float, as returned by the \fBTime::HiRes::time()\fR function, if \fBhires()\fR +has been previously called, otherwise it is returned as an integer. +.ie n .IP "$p\->source_verify( { 0 | 1 } );" 4 +.el .IP "\f(CW$p\fR\->source_verify( { 0 | 1 } );" 4 +.IX Xref "source_verify" +.IX Item "$p->source_verify( { 0 | 1 } );" +Allows source endpoint verification to be enabled or disabled. +This is useful for those remote destinations with multiples +interfaces where the response may not originate from the same +endpoint that the original destination endpoint was sent to. +This only affects udp and icmp protocol pings. +.Sp +This is enabled by default. +.ie n .IP "$p\->service_check( { 0 | 1 } );" 4 +.el .IP "\f(CW$p\fR\->service_check( { 0 | 1 } );" 4 +.IX Xref "service_check" +.IX Item "$p->service_check( { 0 | 1 } );" +Set whether or not the connect behavior should enforce +remote service availability as well as reachability. Normally, +if the remote server reported \s-1ECONNREFUSED,\s0 it must have been +reachable because of the status packet that it reported. +With this option enabled, the full three-way tcp handshake +must have been established successfully before it will +claim it is reachable. \s-1NOTE:\s0 It still does nothing more +than connect and disconnect. It does not speak any protocol +(i.e., \s-1HTTP\s0 or \s-1FTP\s0) to ensure the remote server is sane in +any way. The remote server \s-1CPU\s0 could be grinding to a halt +and unresponsive to any clients connecting, but if the kernel +throws the \s-1ACK\s0 packet, it is considered alive anyway. To +really determine if the server is responding well would be +application specific and is beyond the scope of Net::Ping. +For udp protocol, enabling this option demands that the +remote server replies with the same udp data that it was sent +as defined by the udp echo service. +.Sp +This affects the \*(L"udp\*(R", \*(L"tcp\*(R", and \*(L"syn\*(R" protocols. +.Sp +This is disabled by default. +.ie n .IP "$p\->tcp_service_check( { 0 | 1 } );" 4 +.el .IP "\f(CW$p\fR\->tcp_service_check( { 0 | 1 } );" 4 +.IX Xref "tcp_service_check" +.IX Item "$p->tcp_service_check( { 0 | 1 } );" +Deprecated method, but does the same as \fBservice_check()\fR method. +.ie n .IP "$p\->hires( { 0 | 1 } );" 4 +.el .IP "\f(CW$p\fR\->hires( { 0 | 1 } );" 4 +.IX Xref "hires" +.IX Item "$p->hires( { 0 | 1 } );" +With 1 causes this module to use Time::HiRes module, allowing milliseconds +to be returned by subsequent calls to \fBping()\fR. +.ie n .IP "$p\->time" 4 +.el .IP "\f(CW$p\fR\->time" 4 +.IX Xref "time" +.IX Item "$p->time" +The current time, hires or not. +.ie n .IP "$p\->socket_blocking_mode( $fh, $mode );" 4 +.el .IP "\f(CW$p\fR\->socket_blocking_mode( \f(CW$fh\fR, \f(CW$mode\fR );" 4 +.IX Xref "socket_blocking_mode" +.IX Item "$p->socket_blocking_mode( $fh, $mode );" +Sets or clears the O_NONBLOCK flag on a file handle. +.ie n .IP "$p\->\s-1IPV6_USE_MIN_MTU\s0" 4 +.el .IP "\f(CW$p\fR\->\s-1IPV6_USE_MIN_MTU\s0" 4 +.IX Xref "IPV6_USE_MIN_MTU" +.IX Item "$p->IPV6_USE_MIN_MTU" +With argument sets the option. +Without returns the option value. +.ie n .IP "$p\->\s-1IPV6_RECVPATHMTU\s0" 4 +.el .IP "\f(CW$p\fR\->\s-1IPV6_RECVPATHMTU\s0" 4 +.IX Xref "IPV6_RECVPATHMTU" +.IX Item "$p->IPV6_RECVPATHMTU" +Notify an according IPv6 \s-1MTU.\s0 +.Sp +With argument sets the option. +Without returns the option value. +.ie n .IP "$p\->\s-1IPV6_HOPLIMIT\s0" 4 +.el .IP "\f(CW$p\fR\->\s-1IPV6_HOPLIMIT\s0" 4 +.IX Xref "IPV6_HOPLIMIT" +.IX Item "$p->IPV6_HOPLIMIT" +With argument sets the option. +Without returns the option value. +.ie n .IP "$p\->\s-1IPV6_REACHCONF\s0 \fI\s-1NYI\s0\fR" 4 +.el .IP "\f(CW$p\fR\->\s-1IPV6_REACHCONF\s0 \fI\s-1NYI\s0\fR" 4 +.IX Xref "IPV6_REACHCONF" +.IX Item "$p->IPV6_REACHCONF NYI" +Sets ipv6 reachability +\&\s-1IPV6_REACHCONF\s0 was removed in \s-1RFC3542.\s0 ping6 \-R supports it. +\&\s-1IPV6_REACHCONF\s0 requires root/admin permissions. +.Sp +With argument sets the option. +Without returns the option value. +.Sp +Not yet implemented. +.ie n .IP "$p\->bind($local_addr);" 4 +.el .IP "\f(CW$p\fR\->bind($local_addr);" 4 +.IX Xref "bind" +.IX Item "$p->bind($local_addr);" +Sets the source address from which pings will be sent. This must be +the address of one of the interfaces on the local host. \f(CW$local_addr\fR +may be specified as a hostname or as a text \s-1IP\s0 address such as +\&\*(L"192.168.1.1\*(R". +.Sp +If the protocol is set to \*(L"tcp\*(R", this method may be called any +number of times, and each call to the \fBping()\fR method (below) will use +the most recent \f(CW$local_addr\fR. If the protocol is \*(L"icmp\*(R" or \*(L"udp\*(R", +then \fBbind()\fR must be called at most once per object, and (if it is +called at all) must be called before the first call to \fBping()\fR for that +object. +.Sp +The \fBbind()\fR call can be omitted when specifying the \f(CW\*(C`bind\*(C'\fR option to +\&\fBnew()\fR. +.ie n .IP "$p\->message_type([$ping_type]);" 4 +.el .IP "\f(CW$p\fR\->message_type([$ping_type]);" 4 +.IX Xref "message_type" +.IX Item "$p->message_type([$ping_type]);" +When you are using the \*(L"icmp\*(R" protocol, this call permit to change the +message type to 'echo' or 'timestamp' (only for IPv4, see \s-1RFC 792\s0). +.Sp +Without argument, it returns the currently used icmp protocol message type. +By default, it returns 'echo'. +.ie n .IP "$p\->open($host);" 4 +.el .IP "\f(CW$p\fR\->open($host);" 4 +.IX Xref "open" +.IX Item "$p->open($host);" +When you are using the \*(L"stream\*(R" protocol, this call pre-opens the +tcp socket. It's only necessary to do this if you want to +provide a different timeout when creating the connection, or +remove the overhead of establishing the connection from the +first ping. If you don't call \f(CW\*(C`open()\*(C'\fR, the connection is +automatically opened the first time \f(CW\*(C`ping()\*(C'\fR is called. +This call simply does nothing if you are using any protocol other +than stream. +.Sp +The \f(CW$host\fR argument can be omitted when specifying the \f(CW\*(C`host\*(C'\fR option to +\&\fBnew()\fR. +.ie n .IP "$p\->ack( [ $host ] );" 4 +.el .IP "\f(CW$p\fR\->ack( [ \f(CW$host\fR ] );" 4 +.IX Xref "ack" +.IX Item "$p->ack( [ $host ] );" +When using the \*(L"syn\*(R" protocol, use this method to determine +the reachability of the remote host. This method is meant +to be called up to as many times as \fBping()\fR was called. Each +call returns the host (as passed to \fBping()\fR) that came back +with the \s-1TCP ACK.\s0 The order in which the hosts are returned +may not necessarily be the same order in which they were +\&\s-1SYN\s0 queued using the \fBping()\fR method. If the timeout is +reached before the \s-1TCP ACK\s0 is received, or if the remote +host is not listening on the port attempted, then the \s-1TCP\s0 +connection will not be established and \fBack()\fR will return +undef. In list context, the host, the ack time, the dotted ip +string, and the port number will be returned instead of just the host. +If the optional \f(CW$host\fR argument is specified, the return +value will be pertaining to that host only. +This call simply does nothing if you are using any protocol +other than \*(L"syn\*(R". +.Sp +When \*(L"new\*(R" had a host option, this host will be used. +Without \f(CW$host\fR argument, all hosts are scanned. +.ie n .IP "$p\->nack( $failed_ack_host );" 4 +.el .IP "\f(CW$p\fR\->nack( \f(CW$failed_ack_host\fR );" 4 +.IX Xref "nack" +.IX Item "$p->nack( $failed_ack_host );" +The reason that \f(CW\*(C`host $failed_ack_host\*(C'\fR did not receive a +valid \s-1ACK.\s0 Useful to find out why when \f(CW\*(C`ack($fail_ack_host)\*(C'\fR +returns a false value. +.ie n .IP "$p\->ack_unfork($host)" 4 +.el .IP "\f(CW$p\fR\->ack_unfork($host)" 4 +.IX Xref "ack_unfork" +.IX Item "$p->ack_unfork($host)" +The variant called by \*(L"ack\*(R" with the \*(L"syn\*(R" protocol and \f(CW$syn_forking\fR +enabled. +.ie n .IP "$p\->ping_icmp([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_icmp([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_icmp" +.IX Item "$p->ping_icmp([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the icmp protocol. +.ie n .IP "$p\->ping_icmpv6([$host, $timeout, $family]) \fI\s-1NYI\s0\fR" 4 +.el .IP "\f(CW$p\fR\->ping_icmpv6([$host, \f(CW$timeout\fR, \f(CW$family\fR]) \fI\s-1NYI\s0\fR" 4 +.IX Xref "ping_icmpv6" +.IX Item "$p->ping_icmpv6([$host, $timeout, $family]) NYI" +The \*(L"ping\*(R" method used with the icmpv6 protocol. +.ie n .IP "$p\->ping_stream([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_stream([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_stream" +.IX Item "$p->ping_stream([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the stream protocol. +.Sp +Perform a stream ping. If the tcp connection isn't +already open, it opens it. It then sends some data and waits for +a reply. It leaves the stream open on exit. +.ie n .IP "$p\->ping_syn([$host, $ip, $start_time, $stop_time])" 4 +.el .IP "\f(CW$p\fR\->ping_syn([$host, \f(CW$ip\fR, \f(CW$start_time\fR, \f(CW$stop_time\fR])" 4 +.IX Xref "ping_syn" +.IX Item "$p->ping_syn([$host, $ip, $start_time, $stop_time])" +The \*(L"ping\*(R" method used with the syn protocol. +Sends a \s-1TCP SYN\s0 packet to host specified. +.ie n .IP "$p\->ping_syn_fork([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_syn_fork([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_syn_fork" +.IX Item "$p->ping_syn_fork([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the forking syn protocol. +.ie n .IP "$p\->ping_tcp([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_tcp([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_tcp" +.IX Item "$p->ping_tcp([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the tcp protocol. +.ie n .IP "$p\->ping_udp([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_udp([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_udp" +.IX Item "$p->ping_udp([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the udp protocol. +.Sp +Perform a udp echo ping. Construct a message of +at least the one-byte sequence number and any additional data bytes. +Send the message out and wait for a message to come back. If we +get a message, make sure all of its parts match. If they do, we are +done. Otherwise go back and wait for the message until we run out +of time. Return the result of our efforts. +.ie n .IP "$p\->ping_external([$host, $timeout, $family])" 4 +.el .IP "\f(CW$p\fR\->ping_external([$host, \f(CW$timeout\fR, \f(CW$family\fR])" 4 +.IX Xref "ping_external" +.IX Item "$p->ping_external([$host, $timeout, $family])" +The \*(L"ping\*(R" method used with the external protocol. +Uses Net::Ping::External to do an external ping. +.ie n .IP "$p\->tcp_connect([$ip, $timeout])" 4 +.el .IP "\f(CW$p\fR\->tcp_connect([$ip, \f(CW$timeout\fR])" 4 +.IX Xref "tcp_connect" +.IX Item "$p->tcp_connect([$ip, $timeout])" +Initiates a \s-1TCP\s0 connection, for a tcp ping. +.ie n .IP "$p\->tcp_echo([$ip, $timeout, $pingstring])" 4 +.el .IP "\f(CW$p\fR\->tcp_echo([$ip, \f(CW$timeout\fR, \f(CW$pingstring\fR])" 4 +.IX Xref "tcp_echo" +.IX Item "$p->tcp_echo([$ip, $timeout, $pingstring])" +Performs a \s-1TCP\s0 echo. +It writes the given string to the socket and then reads it +back. It returns 1 on success, 0 on failure. +.ie n .IP "$p\->\fBclose()\fR;" 4 +.el .IP "\f(CW$p\fR\->\fBclose()\fR;" 4 +.IX Xref "close" +.IX Item "$p->close();" +Close the network connection for this ping object. The network +connection is also closed by \*(L"undef \f(CW$p\fR\*(R". The network connection is +automatically closed if the ping object goes out of scope (e.g. \f(CW$p\fR is +local to a subroutine and you leave the subroutine). +.ie n .IP "$p\->port_number([$port_number])" 4 +.el .IP "\f(CW$p\fR\->port_number([$port_number])" 4 +.IX Xref "port_number" +.IX Item "$p->port_number([$port_number])" +When called with a port number, the port number used to ping is set to +\&\f(CW$port_number\fR rather than using the echo port. It also has the effect +of calling \f(CW\*(C`$p\->service_check(1)\*(C'\fR causing a ping to return a successful +response only if that specific port is accessible. This function returns +the value of the port that \*(L"ping\*(R" will connect to. +.ie n .IP "$p\->mselect" 4 +.el .IP "\f(CW$p\fR\->mselect" 4 +.IX Xref "mselect" +.IX Item "$p->mselect" +A \f(CW\*(C`select()\*(C'\fR wrapper that compensates for platform +peculiarities. +.ie n .IP "$p\->ntop" 4 +.el .IP "\f(CW$p\fR\->ntop" 4 +.IX Xref "ntop" +.IX Item "$p->ntop" +Platform abstraction over \f(CW\*(C`inet_ntop()\*(C'\fR +.ie n .IP "$p\->checksum($msg)" 4 +.el .IP "\f(CW$p\fR\->checksum($msg)" 4 +.IX Xref "checksum" +.IX Item "$p->checksum($msg)" +Do a checksum on the message. Basically sum all of +the short words and fold the high order bits into the low order bits. +.ie n .IP "$p\->icmp_result" 4 +.el .IP "\f(CW$p\fR\->icmp_result" 4 +.IX Xref "icmp_result" +.IX Item "$p->icmp_result" +Returns a list of addr, type, subcode. +.ie n .IP "pingecho($host [, $timeout]);" 4 +.el .IP "pingecho($host [, \f(CW$timeout\fR]);" 4 +.IX Xref "pingecho" +.IX Item "pingecho($host [, $timeout]);" +To provide backward compatibility with the previous version of +Net::Ping, a \f(CW\*(C`pingecho()\*(C'\fR subroutine is available with the same +functionality as before. \f(CW\*(C`pingecho()\*(C'\fR uses the tcp protocol. The +return values and parameters are the same as described for the \*(L"ping\*(R" +method. This subroutine is obsolete and may be removed in a future +version of Net::Ping. +.IP "wakeonlan($mac, [$host, [$port]])" 4 +.IX Xref "wakeonlan" +.IX Item "wakeonlan($mac, [$host, [$port]])" +Emit the popular wake-on-lan magic udp packet to wake up a local +device. See also Net::Wake, but this has the mac address as 1st arg. +\&\f(CW$host\fR should be the local gateway. Without it will broadcast. +.Sp +Default host: '255.255.255.255' +Default port: 9 +.Sp +.Vb 1 +\& perl \-MNet::Ping=wakeonlan \-e\*(Aqwakeonlan "e0:69:95:35:68:d2"\*(Aq +.Ve +.SH "NOTES" +.IX Header "NOTES" +There will be less network overhead (and some efficiency in your +program) if you specify either the udp or the icmp protocol. The tcp +protocol will generate 2.5 times or more traffic for each ping than +either udp or icmp. If many hosts are pinged frequently, you may wish +to implement a small wait (e.g. 25ms or more) between each ping to +avoid flooding your network with packets. +.PP +The icmp and icmpv6 protocols requires that the program be run as root +or that it be setuid to root. The other protocols do not require +special privileges, but not all network devices implement tcp or udp +echo. +.PP +Local hosts should normally respond to pings within milliseconds. +However, on a very congested network it may take up to 3 seconds or +longer to receive an echo packet from the remote host. If the timeout +is set too low under these conditions, it will appear that the remote +host is not reachable (which is almost the truth). +.PP +Reachability doesn't necessarily mean that the remote host is actually +functioning beyond its ability to echo packets. tcp is slightly better +at indicating the health of a system than icmp because it uses more +of the networking stack to respond. +.PP +Because of a lack of anything better, this module uses its own +routines to pack and unpack \s-1ICMP\s0 packets. It would be better for a +separate module to be written which understands all of the different +kinds of \s-1ICMP\s0 packets. +.SH "INSTALL" +.IX Header "INSTALL" +The latest source tree is available via git: +.PP +.Vb 2 +\& git clone https://github.com/rurban/Net\-Ping.git +\& cd Net\-Ping +.Ve +.PP +The tarball can be created as follows: +.PP +.Vb 1 +\& perl Makefile.PL ; make ; make dist +.Ve +.PP +The latest Net::Ping releases are included in cperl and perl5. +.SH "BUGS" +.IX Header "BUGS" +For a list of known issues, visit: +.PP + +and + +.PP +To report a new bug, visit: +.PP + +.SH "AUTHORS" +.IX Header "AUTHORS" +.Vb 3 +\& Current maintainers: +\& perl11 (for cperl, with IPv6 support and more) +\& p5p (for perl5) +\& +\& Previous maintainers: +\& bbb@cpan.org (Rob Brown) +\& Steve Peters +\& +\& External protocol: +\& colinm@cpan.org (Colin McMillen) +\& +\& Stream protocol: +\& bronson@trestle.com (Scott Bronson) +\& +\& Wake\-on\-lan: +\& 1999\-2003 Clinton Wong +\& +\& Original pingecho(): +\& karrer@bernina.ethz.ch (Andreas Karrer) +\& pmarquess@bfsec.bt.co.uk (Paul Marquess) +\& +\& Original Net::Ping author: +\& mose@ns.ccsn.edu (Russell Mosemann) +.Ve +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2017\-2018, Reini Urban. All rights reserved. +.PP +Copyright (c) 2016, cPanel Inc. All rights reserved. +.PP +Copyright (c) 2012, Steve Peters. All rights reserved. +.PP +Copyright (c) 2002\-2003, Rob Brown. All rights reserved. +.PP +Copyright (c) 2001, Colin McMillen. All rights reserved. +.PP +This program is free software; you may redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Net%3A%3ASMTP.3 b/data/miniconda3/man/man3/Net%3A%3ASMTP.3 new file mode 100644 index 0000000000000000000000000000000000000000..a61452a7f2d3b28f25e2d1260ba52afa7018c0d2 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ASMTP.3 @@ -0,0 +1,532 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::SMTP 3" +.TH Net::SMTP 3 "2020-12-18" "perl v5.32.1" "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" +Net::SMTP \- Simple Mail Transfer Protocol Client +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::SMTP; +\& +\& # Constructors +\& $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq); +\& $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq, Timeout => 60); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements a client interface to the \s-1SMTP\s0 and \s-1ESMTP\s0 +protocol, enabling a perl5 application to talk to \s-1SMTP\s0 servers. This +documentation assumes that you are familiar with the concepts of the +\&\s-1SMTP\s0 protocol described in \s-1RFC2821.\s0 +With IO::Socket::SSL installed it also provides support for implicit and +explicit \s-1TLS\s0 encryption, i.e. \s-1SMTPS\s0 or \s-1SMTP+STARTTLS.\s0 +.PP +The Net::SMTP class is a subclass of Net::Cmd and (depending on avaibility) of +IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +This example prints the mail domain name of the \s-1SMTP\s0 server known as mailhost: +.PP +.Vb 1 +\& #!/usr/local/bin/perl \-w +\& +\& use Net::SMTP; +\& +\& $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq); +\& print $smtp\->domain,"\en"; +\& $smtp\->quit; +.Ve +.PP +This example sends a small message to the postmaster at the \s-1SMTP\s0 server +known as mailhost: +.PP +.Vb 1 +\& #!/usr/local/bin/perl \-w +\& +\& use Net::SMTP; +\& +\& my $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq); +\& +\& $smtp\->mail($ENV{USER}); +\& if ($smtp\->to(\*(Aqpostmaster\*(Aq)) { +\& $smtp\->data(); +\& $smtp\->datasend("To: postmaster\en"); +\& $smtp\->datasend("\en"); +\& $smtp\->datasend("A simple test message\en"); +\& $smtp\->dataend(); +\& } else { +\& print "Error: ", $smtp\->message(); +\& } +\& +\& $smtp\->quit; +.Ve +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ] )" 4 +.IX Item "new ( [ HOST ] [, OPTIONS ] )" +This is the constructor for a new Net::SMTP object. \f(CW\*(C`HOST\*(C'\fR is the +name of the remote host to which an \s-1SMTP\s0 connection is required. +.Sp +On failure \f(CW\*(C`undef\*(C'\fR will be returned and \f(CW$@\fR will contain the reason +for the failure. +.Sp +\&\f(CW\*(C`HOST\*(C'\fR is optional. If \f(CW\*(C`HOST\*(C'\fR is not given then it may instead be +passed as the \f(CW\*(C`Host\*(C'\fR option described below. If neither is given then +the \f(CW\*(C`SMTP_Hosts\*(C'\fR specified in \f(CW\*(C`Net::Config\*(C'\fR will be used. +.Sp +\&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs. +Possible options are: +.Sp +\&\fBHello\fR \- \s-1SMTP\s0 requires that you identify yourself. This option +specifies a string to pass as your mail domain. If not given localhost.localdomain +will be used. +.Sp +\&\fBSendHello\fR \- If false then the \s-1EHLO\s0 (or \s-1HELO\s0) command that is normally sent +when constructing the object will not be sent. In that case the command will +have to be sent manually by calling \f(CW\*(C`hello()\*(C'\fR instead. +.Sp +\&\fBHost\fR \- \s-1SMTP\s0 host to connect to. It may be a single scalar (hostname[:port]), +as defined for the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to +an array with hosts to try in turn. The \*(L"host\*(R" method will return the value +which was used to connect to the host. +Format \- \f(CW\*(C`PeerHost\*(C'\fR from IO::Socket::INET new method. +.Sp +\&\fBPort\fR \- port to connect to. +Default \- 25 for plain \s-1SMTP\s0 and 465 for immediate \s-1SSL.\s0 +.Sp +\&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later +upgrade with \f(CW\*(C`starttls\*(C'\fR. +You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will +usually use the right arguments already. +.Sp +\&\fBLocalAddr\fR and \fBLocalPort\fR \- These parameters are passed directly +to IO::Socket to allow binding the socket to a specific local address and port. +.Sp +\&\fBDomain\fR \- This parameter is passed directly to IO::Socket and makes it +possible to enforce IPv4 connections even if IO::Socket::IP is used as super +class. Alternatively \fBFamily\fR can be used. +.Sp +\&\fBTimeout\fR \- Maximum time, in seconds, to wait for a response from the +\&\s-1SMTP\s0 server (default: 120) +.Sp +\&\fBExactAddresses\fR \- If true the all \s-1ADDRESS\s0 arguments must be as +defined by \f(CW\*(C`addr\-spec\*(C'\fR in \s-1RFC2822.\s0 If not given, or false, then +Net::SMTP will attempt to extract the address from the value passed. +.Sp +\&\fBDebug\fR \- Enable debugging information +.Sp +Example: +.Sp +.Vb 5 +\& $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq, +\& Hello => \*(Aqmy.mail.domain\*(Aq, +\& Timeout => 30, +\& Debug => 1, +\& ); +\& +\& # the same +\& $smtp = Net::SMTP\->new( +\& Host => \*(Aqmailhost\*(Aq, +\& Hello => \*(Aqmy.mail.domain\*(Aq, +\& Timeout => 30, +\& Debug => 1, +\& ); +\& +\& # the same with direct SSL +\& $smtp = Net::SMTP\->new(\*(Aqmailhost\*(Aq, +\& Hello => \*(Aqmy.mail.domain\*(Aq, +\& Timeout => 30, +\& Debug => 1, +\& SSL => 1, +\& ); +\& +\& # Connect to the default server from Net::config +\& $smtp = Net::SMTP\->new( +\& Hello => \*(Aqmy.mail.domain\*(Aq, +\& Timeout => 30, +\& ); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR +value, with \fItrue\fR meaning that the operation was a success. When a method +states that it returns a value, failure will be returned as \fIundef\fR or an +empty list. +.PP +\&\f(CW\*(C`Net::SMTP\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may +be used to send commands to the remote \s-1SMTP\s0 server in addition to the methods +documented here. +.IP "banner ()" 4 +.IX Item "banner ()" +Returns the banner message which the server replied with when the +initial connection was made. +.IP "domain ()" 4 +.IX Item "domain ()" +Returns the domain that the remote \s-1SMTP\s0 server identified itself as during +connection. +.IP "hello ( \s-1DOMAIN\s0 )" 4 +.IX Item "hello ( DOMAIN )" +Tell the remote server the mail domain which you are in using the \s-1EHLO\s0 +command (or \s-1HELO\s0 if \s-1EHLO\s0 fails). Since this method is invoked +automatically when the Net::SMTP object is constructed the user should +normally not have to call it manually. +.IP "host ()" 4 +.IX Item "host ()" +Returns the value used by the constructor, and passed to IO::Socket::INET, +to connect to the host. +.IP "etrn ( \s-1DOMAIN\s0 )" 4 +.IX Item "etrn ( DOMAIN )" +Request a queue run for the \s-1DOMAIN\s0 given. +.IP "starttls ( \s-1SSLARGS\s0 )" 4 +.IX Item "starttls ( SSLARGS )" +Upgrade existing plain connection to \s-1SSL.\s0 +You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will +usually use the right arguments already. +.IP "auth ( \s-1USERNAME, PASSWORD\s0 )" 4 +.IX Item "auth ( USERNAME, PASSWORD )" +.PD 0 +.IP "auth ( \s-1SASL\s0 )" 4 +.IX Item "auth ( SASL )" +.PD +Attempt \s-1SASL\s0 authentication. Requires Authen::SASL module. The first form +constructs a new Authen::SASL object using the given username and password; +the second form uses the given Authen::SASL object. +.IP "mail ( \s-1ADDRESS\s0 [, \s-1OPTIONS\s0] )" 4 +.IX Item "mail ( ADDRESS [, OPTIONS] )" +.PD 0 +.IP "send ( \s-1ADDRESS\s0 )" 4 +.IX Item "send ( ADDRESS )" +.IP "send_or_mail ( \s-1ADDRESS\s0 )" 4 +.IX Item "send_or_mail ( ADDRESS )" +.IP "send_and_mail ( \s-1ADDRESS\s0 )" 4 +.IX Item "send_and_mail ( ADDRESS )" +.PD +Send the appropriate command to the server \s-1MAIL, SEND, SOML\s0 or \s-1SAML.\s0 \f(CW\*(C`ADDRESS\*(C'\fR +is the address of the sender. This initiates the sending of a message. The +method \f(CW\*(C`recipient\*(C'\fR should be called for each address that the message is to +be sent to. +.Sp +The \f(CW\*(C`mail\*(C'\fR method can some additional \s-1ESMTP OPTIONS\s0 which is passed +in hash like fashion, using key and value pairs. Possible options are: +.Sp +.Vb 8 +\& Size => +\& Return => "FULL" | "HDRS" +\& Bits => "7" | "8" | "binary" +\& Transaction =>

+\& Envelope => # xtext\-encodes its argument +\& ENVID => # similar to Envelope, but expects argument encoded +\& XVERP => 1 +\& AUTH => # encoded address according to RFC 2554 +.Ve +.Sp +The \f(CW\*(C`Return\*(C'\fR and \f(CW\*(C`Envelope\*(C'\fR parameters are used for \s-1DSN\s0 (Delivery +Status Notification). +.Sp +The submitter address in \f(CW\*(C`AUTH\*(C'\fR option is expected to be in a format as +required by \s-1RFC 2554,\s0 in an RFC2821\-quoted form and xtext-encoded, or <> . +.IP "reset ()" 4 +.IX Item "reset ()" +Reset the status of the server. This may be called after a message has been +initiated, but before any data has been sent, to cancel the sending of the +message. +.IP "recipient ( \s-1ADDRESS\s0 [, \s-1ADDRESS,\s0 [...]] [, \s-1OPTIONS\s0 ] )" 4 +.IX Item "recipient ( ADDRESS [, ADDRESS, [...]] [, OPTIONS ] )" +Notify the server that the current message should be sent to all of the +addresses given. Each address is sent as a separate command to the server. +Should the sending of any address result in a failure then the process is +aborted and a \fIfalse\fR value is returned. It is up to the user to call +\&\f(CW\*(C`reset\*(C'\fR if they so desire. +.Sp +The \f(CW\*(C`recipient\*(C'\fR method can also pass additional case-sensitive \s-1OPTIONS\s0 as an +anonymous hash using key and value pairs. Possible options are: +.Sp +.Vb 3 +\& Notify => [\*(AqNEVER\*(Aq] or [\*(AqSUCCESS\*(Aq,\*(AqFAILURE\*(Aq,\*(AqDELAY\*(Aq] (see below) +\& ORcpt => +\& SkipBad => 1 (to ignore bad addresses) +.Ve +.Sp +If \f(CW\*(C`SkipBad\*(C'\fR is true the \f(CW\*(C`recipient\*(C'\fR will not return an error when a bad +address is encountered and it will return an array of addresses that did +succeed. +.Sp +.Vb 5 +\& $smtp\->recipient($recipient1,$recipient2); # Good +\& $smtp\->recipient($recipient1,$recipient2, { SkipBad => 1 }); # Good +\& $smtp\->recipient($recipient1,$recipient2, { Notify => [\*(AqFAILURE\*(Aq,\*(AqDELAY\*(Aq], SkipBad => 1 }); # Good +\& @goodrecips=$smtp\->recipient(@recipients, { Notify => [\*(AqFAILURE\*(Aq], SkipBad => 1 }); # Good +\& $smtp\->recipient("$recipient,$recipient2"); # BAD +.Ve +.Sp +Notify is used to request Delivery Status Notifications (DSNs), but your +\&\s-1SMTP/ESMTP\s0 service may not respect this request depending upon its version and +your site's \s-1SMTP\s0 configuration. +.Sp +Leaving out the Notify option usually defaults an \s-1SMTP\s0 service to its default +behavior equivalent to ['\s-1FAILURE\s0'] notifications only, but again this may be +dependent upon your site's \s-1SMTP\s0 configuration. +.Sp +The \s-1NEVER\s0 keyword must appear by itself if used within the Notify option and \*(L"requests +that a \s-1DSN\s0 not be returned to the sender under any conditions.\*(R" +.Sp +.Vb 1 +\& {Notify => [\*(AqNEVER\*(Aq]} +\& +\& $smtp\->recipient(@recipients, { Notify => [\*(AqNEVER\*(Aq], SkipBad => 1 }); # Good +.Ve +.Sp +You may use any combination of these three values '\s-1SUCCESS\s0','\s-1FAILURE\s0','\s-1DELAY\s0' in +the anonymous array reference as defined by \s-1RFC3461\s0 (see http://www.ietf.org/rfc/rfc3461.txt +for more information. Note: quotations in this topic from same.). +.Sp +A Notify parameter of '\s-1SUCCESS\s0' or '\s-1FAILURE\s0' \*(L"requests that a \s-1DSN\s0 be issued on +successful delivery or delivery failure, respectively.\*(R" +.Sp +A Notify parameter of '\s-1DELAY\s0' \*(L"indicates the sender's willingness to receive +delayed DSNs. Delayed DSNs may be issued if delivery of a message has been +delayed for an unusual amount of time (as determined by the Message Transfer +Agent (\s-1MTA\s0) at which the message is delayed), but the final delivery status +(whether successful or failure) cannot be determined. The absence of the \s-1DELAY\s0 +keyword in a \s-1NOTIFY\s0 parameter requests that a \*(R"delayed\*(L" \s-1DSN NOT\s0 be issued under +any conditions.\*(R" +.Sp +.Vb 1 +\& {Notify => [\*(AqSUCCESS\*(Aq,\*(AqFAILURE\*(Aq,\*(AqDELAY\*(Aq]} +\& +\& $smtp\->recipient(@recipients, { Notify => [\*(AqFAILURE\*(Aq,\*(AqDELAY\*(Aq], SkipBad => 1 }); # Good +.Ve +.Sp +ORcpt is also part of the \s-1SMTP DSN\s0 extension according to \s-1RFC3461.\s0 +It is used to pass along the original recipient that the mail was first +sent to. The machine that generates a \s-1DSN\s0 will use this address to inform +the sender, because he can't know if recipients get rewritten by mail servers. +It is expected to be in a format as required by \s-1RFC3461,\s0 xtext-encoded. +.IP "to ( \s-1ADDRESS\s0 [, \s-1ADDRESS\s0 [...]] )" 4 +.IX Item "to ( ADDRESS [, ADDRESS [...]] )" +.PD 0 +.IP "cc ( \s-1ADDRESS\s0 [, \s-1ADDRESS\s0 [...]] )" 4 +.IX Item "cc ( ADDRESS [, ADDRESS [...]] )" +.IP "bcc ( \s-1ADDRESS\s0 [, \s-1ADDRESS\s0 [...]] )" 4 +.IX Item "bcc ( ADDRESS [, ADDRESS [...]] )" +.PD +Synonyms for \f(CW\*(C`recipient\*(C'\fR. +.IP "data ( [ \s-1DATA\s0 ] )" 4 +.IX Item "data ( [ DATA ] )" +Initiate the sending of the data from the current message. +.Sp +\&\f(CW\*(C`DATA\*(C'\fR may be a reference to a list or a list and must be encoded by the +caller to octets of whatever encoding is required, e.g. by using the Encode +module's \f(CW\*(C`encode()\*(C'\fR function. +.Sp +If specified the contents of \f(CW\*(C`DATA\*(C'\fR and a termination string \f(CW".\er\en"\fR is +sent to the server. The result will be true if the data was accepted. +.Sp +If \f(CW\*(C`DATA\*(C'\fR is not specified then the result will indicate that the server +wishes the data to be sent. The data must then be sent using the \f(CW\*(C`datasend\*(C'\fR +and \f(CW\*(C`dataend\*(C'\fR methods described in Net::Cmd. +.IP "bdat ( \s-1DATA\s0 )" 4 +.IX Item "bdat ( DATA )" +.PD 0 +.IP "bdatlast ( \s-1DATA\s0 )" 4 +.IX Item "bdatlast ( DATA )" +.PD +Use the alternate \s-1DATA\s0 command \*(L"\s-1BDAT\*(R"\s0 of the data chunking service extension +defined in \s-1RFC1830\s0 for efficiently sending large \s-1MIME\s0 messages. +.IP "expand ( \s-1ADDRESS\s0 )" 4 +.IX Item "expand ( ADDRESS )" +Request the server to expand the given address Returns an array +which contains the text read from the server. +.IP "verify ( \s-1ADDRESS\s0 )" 4 +.IX Item "verify ( ADDRESS )" +Verify that \f(CW\*(C`ADDRESS\*(C'\fR is a legitimate mailing address. +.Sp +Most sites usually disable this feature in their \s-1SMTP\s0 service configuration. +Use \*(L"Debug => 1\*(R" option under \fBnew()\fR to see if disabled. +.ie n .IP "help ( [ $subject ] )" 4 +.el .IP "help ( [ \f(CW$subject\fR ] )" 4 +.IX Item "help ( [ $subject ] )" +Request help text from the server. Returns the text or undef upon failure +.IP "quit ()" 4 +.IX Item "quit ()" +Send the \s-1QUIT\s0 command to the remote \s-1SMTP\s0 server and close the socket connection. +.IP "can_inet6 ()" 4 +.IX Item "can_inet6 ()" +Returns whether we can use IPv6. +.IP "can_ssl ()" 4 +.IX Item "can_ssl ()" +Returns whether we can use \s-1SSL.\s0 +.SH "ADDRESSES" +.IX Header "ADDRESSES" +Net::SMTP attempts to \s-1DWIM\s0 with addresses that are passed. For +example an application might extract The From: line from an email +and pass that to \fBmail()\fR. While this may work, it is not recommended. +The application should really use a module like Mail::Address +to extract the mail address and pass that. +.PP +If \f(CW\*(C`ExactAddresses\*(C'\fR is passed to the constructor, then addresses +should be a valid rfc2821\-quoted address, although Net::SMTP will +accept the address surrounded by angle brackets. +.PP +.Vb 3 +\& funny user@domain WRONG +\& "funny user"@domain RIGHT, recommended +\& <"funny user"@domain> OK +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Net::Cmd, +IO::Socket::SSL +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-2004 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2016 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3ATime.3 b/data/miniconda3/man/man3/Net%3A%3ATime.3 new file mode 100644 index 0000000000000000000000000000000000000000..272ca5472b3bdbcc573aae2f2b53fb216ecf843b --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ATime.3 @@ -0,0 +1,187 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::Time 3" +.TH Net::Time 3 "2020-12-18" "perl v5.32.1" "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" +Net::Time \- time and daytime network client interface +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::Time qw(inet_time inet_daytime); +\& +\& print inet_time(); # use default host from Net::Config +\& print inet_time(\*(Aqlocalhost\*(Aq); +\& print inet_time(\*(Aqlocalhost\*(Aq, \*(Aqtcp\*(Aq); +\& +\& print inet_daytime(); # use default host from Net::Config +\& print inet_daytime(\*(Aqlocalhost\*(Aq); +\& print inet_daytime(\*(Aqlocalhost\*(Aq, \*(Aqtcp\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::Time\*(C'\fR provides subroutines that obtain the time on a remote machine. +.IP "inet_time ( [\s-1HOST\s0 [, \s-1PROTOCOL\s0 [, \s-1TIMEOUT\s0]]])" 4 +.IX Item "inet_time ( [HOST [, PROTOCOL [, TIMEOUT]]])" +Obtain the time on \f(CW\*(C`HOST\*(C'\fR, or some default host if \f(CW\*(C`HOST\*(C'\fR is not given +or not defined, using the protocol as defined in \s-1RFC868.\s0 The optional +argument \f(CW\*(C`PROTOCOL\*(C'\fR should define the protocol to use, either \f(CW\*(C`tcp\*(C'\fR or +\&\f(CW\*(C`udp\*(C'\fR. The result will be a time value in the same units as returned +by \fBtime()\fR or \fIundef\fR upon failure. +.IP "inet_daytime ( [\s-1HOST\s0 [, \s-1PROTOCOL\s0 [, \s-1TIMEOUT\s0]]])" 4 +.IX Item "inet_daytime ( [HOST [, PROTOCOL [, TIMEOUT]]])" +Obtain the time on \f(CW\*(C`HOST\*(C'\fR, or some default host if \f(CW\*(C`HOST\*(C'\fR is not given +or not defined, using the protocol as defined in \s-1RFC867.\s0 The optional +argument \f(CW\*(C`PROTOCOL\*(C'\fR should define the protocol to use, either \f(CW\*(C`tcp\*(C'\fR or +\&\f(CW\*(C`udp\*(C'\fR. The result will be an \s-1ASCII\s0 string or \fIundef\fR upon failure. +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-2004 Graham Barr. All rights reserved. +.PP +Copyright (C) 2014 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/Net%3A%3Ahostent.3 b/data/miniconda3/man/man3/Net%3A%3Ahostent.3 new file mode 100644 index 0000000000000000000000000000000000000000..3d560c236f0b1ade53536659130bb160bea7ca59 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3Ahostent.3 @@ -0,0 +1,223 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::hostent 3" +.TH Net::hostent 3 "2020-12-18" "perl v5.32.1" "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" +Net::hostent \- by\-name interface to Perl's built\-in gethost*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::hostent; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgethostbyname()\fR and +\&\fBgethostbyaddr()\fR functions, replacing them with versions that return +\&\*(L"Net::hostent\*(R" objects. This object has methods that return the similarly +named structure field name from the C's hostent structure from \fInetdb.h\fR; +namely name, aliases, addrtype, length, and addr_list. The aliases and +addr_list methods return array reference, the rest scalars. The addr +method is equivalent to the zeroth element in the addr_list array +reference. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as variables named +with a preceding \f(CW\*(C`h_\*(C'\fR. Thus, \f(CW\*(C`$host_obj\->name()\*(C'\fR corresponds to +\&\f(CW$h_name\fR if you import the fields. Array references are available as +regular array variables, so for example \f(CW\*(C`@{ $host_obj\->aliases() +}\*(C'\fR would be simply \f(CW@h_aliases\fR. +.PP +The \fBgethost()\fR function is a simple front-end that forwards a numeric +argument to \fBgethostbyaddr()\fR by way of Socket::inet_aton, and the rest +to \fBgethostbyname()\fR. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 2 +\& use Net::hostent; +\& use Socket; +\& +\& @ARGV = (\*(Aqnetscape.com\*(Aq) unless @ARGV; +\& +\& for $host ( @ARGV ) { +\& +\& unless ($h = gethost($host)) { +\& warn "$0: no such host: $host\en"; +\& next; +\& } +\& +\& printf "\en%s is %s%s\en", +\& $host, +\& lc($h\->name) eq lc($host) ? "" : "*really* ", +\& $h\->name; +\& +\& print "\etaliases are ", join(", ", @{$h\->aliases}), "\en" +\& if @{$h\->aliases}; +\& +\& if ( @{$h\->addr_list} > 1 ) { +\& my $i; +\& for $addr ( @{$h\->addr_list} ) { +\& printf "\etaddr #%d is [%s]\en", $i++, inet_ntoa($addr); +\& } +\& } else { +\& printf "\etaddress is [%s]\en", inet_ntoa($h\->addr); +\& } +\& +\& if ($h = gethostbyaddr($h\->addr)) { +\& if (lc($h\->name) ne lc($host)) { +\& printf "\etThat addr reverses to host %s!\en", $h\->name; +\& $host = $h\->name; +\& redo; +\& } +\& } +\& } +.Ve +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/Net%3A%3AlibnetFAQ.3 b/data/miniconda3/man/man3/Net%3A%3AlibnetFAQ.3 new file mode 100644 index 0000000000000000000000000000000000000000..a568a6d85bab33c23915f6e78a56c627c2928b5a --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3AlibnetFAQ.3 @@ -0,0 +1,441 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::libnetFAQ 3" +.TH Net::libnetFAQ 3 "2020-12-18" "perl v5.32.1" "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" +libnetFAQ \- libnet Frequently Asked Questions +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Where to get this document" +.IX Subsection "Where to get this document" +This document is distributed with the libnet distribution, and is also +available on the libnet web page at +.PP +.Vb 1 +\& http://search.cpan.org/dist/libnet/ +.Ve +.SS "How to contribute to this document" +.IX Subsection "How to contribute to this document" +You may report corrections, additions, and suggestions on the +\&\s-1CPAN\s0 Request Tracker at +.PP +.Vb 1 +\& http://rt.cpan.org/Public/Bug/Report.html?Queue=libnet +.Ve +.SH "Author and Copyright Information" +.IX Header "Author and Copyright Information" +Copyright (C) 1997\-1998 Graham Barr. All rights reserved. +This document is free; you can redistribute it and/or modify it +under the terms of the Artistic License. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SS "Disclaimer" +.IX Subsection "Disclaimer" +This information is offered in good faith and in the hope that it may +be of use, but is not guaranteed to be correct, up to date, or suitable +for any particular purpose whatsoever. The authors accept no liability +in respect of this information or its use. +.SH "Obtaining and installing libnet" +.IX Header "Obtaining and installing libnet" +.SS "What is libnet ?" +.IX Subsection "What is libnet ?" +libnet is a collection of perl5 modules which all related to network +programming. The majority of the modules available provided the +client side of popular server-client protocols that are used in +the internet community. +.SS "Which version of perl do I need ?" +.IX Subsection "Which version of perl do I need ?" +This version of libnet requires Perl 5.8.1 or higher. +.SS "What other modules do I need ?" +.IX Subsection "What other modules do I need ?" +No non-core modules are required for normal use, except on os390, +which requires Convert::EBCDIC. +.PP +Authen::SASL is required for \s-1AUTH\s0 support. +.PP +IO::Socket::SSL version 2.007 or higher is required for \s-1SSL\s0 support. +.PP +IO::Socket::IP version 0.25 or IO::Socket::INET6 version 2.62 is +required for IPv6 support. +.SS "What machines support libnet ?" +.IX Subsection "What machines support libnet ?" +libnet itself is an entirely perl-code distribution so it should work +on any machine that perl runs on. +.SS "Where can I get the latest libnet release" +.IX Subsection "Where can I get the latest libnet release" +The latest libnet release is always on \s-1CPAN,\s0 you will find it +in +.PP +.Vb 1 +\& http://search.cpan.org/dist/libnet/ +.Ve +.SH "Using Net::FTP" +.IX Header "Using Net::FTP" +.SS "How do I download files from an \s-1FTP\s0 server ?" +.IX Subsection "How do I download files from an FTP server ?" +An example taken from an article posted to comp.lang.perl.misc +.PP +.Vb 1 +\& #!/your/path/to/perl +\& +\& # a module making life easier +\& +\& use Net::FTP; +\& +\& # for debugging: $ftp = Net::FTP\->new(\*(Aqsite\*(Aq,\*(AqDebug\*(Aq,10); +\& # open a connection and log in! +\& +\& $ftp = Net::FTP\->new(\*(Aqtarget_site.somewhere.xxx\*(Aq); +\& $ftp\->login(\*(Aqusername\*(Aq,\*(Aqpassword\*(Aq); +\& +\& # set transfer mode to binary +\& +\& $ftp\->binary(); +\& +\& # change the directory on the ftp site +\& +\& $ftp\->cwd(\*(Aq/some/path/to/somewhere/\*(Aq); +\& +\& foreach $name (\*(Aqfile1\*(Aq, \*(Aqfile2\*(Aq, \*(Aqfile3\*(Aq) { +\& +\& # get\*(Aqs arguments are in the following order: +\& # ftp server\*(Aqs filename +\& # filename to save the transfer to on the local machine +\& # can be simply used as get($name) if you want the same name +\& +\& $ftp\->get($name,$name); +\& } +\& +\& # ftp done! +\& +\& $ftp\->quit; +.Ve +.SS "How do I transfer files in binary mode ?" +.IX Subsection "How do I transfer files in binary mode ?" +To transfer files without <\s-1LF\s0><\s-1CR\s0> translation Net::FTP provides +the \f(CW\*(C`binary\*(C'\fR method +.PP +.Vb 1 +\& $ftp\->binary; +.Ve +.SS "How can I get the size of a file on a remote \s-1FTP\s0 server ?" +.IX Subsection "How can I get the size of a file on a remote FTP server ?" +.SS "How can I get the modification time of a file on a remote \s-1FTP\s0 server ?" +.IX Subsection "How can I get the modification time of a file on a remote FTP server ?" +.SS "How can I change the permissions of a file on a remote server ?" +.IX Subsection "How can I change the permissions of a file on a remote server ?" +The \s-1FTP\s0 protocol does not have a command for changing the permissions +of a file on the remote server. But some ftp servers may allow a chmod +command to be issued via a \s-1SITE\s0 command, eg +.PP +.Vb 1 +\& $ftp\->quot(\*(Aqsite chmod 0777\*(Aq,$filename); +.Ve +.PP +But this is not guaranteed to work. +.SS "Can I do a reget operation like the ftp command ?" +.IX Subsection "Can I do a reget operation like the ftp command ?" +.SS "How do I get a directory listing from an \s-1FTP\s0 server ?" +.IX Subsection "How do I get a directory listing from an FTP server ?" +.ie n .SS "Changing directory to """" does not fail ?" +.el .SS "Changing directory to ``'' does not fail ?" +.IX Subsection "Changing directory to """" does not fail ?" +Passing an argument of "" to \->\fBcwd()\fR has the same affect of calling \->\fBcwd()\fR +without any arguments. Turn on Debug (\fISee below\fR) and you will see what is +happening +.PP +.Vb 3 +\& $ftp = Net::FTP\->new($host, Debug => 1); +\& $ftp\->login; +\& $ftp\->cwd(""); +.Ve +.PP +gives +.PP +.Vb 2 +\& Net::FTP=GLOB(0x82196d8)>>> CWD / +\& Net::FTP=GLOB(0x82196d8)<<< 250 CWD command successful. +.Ve +.SS "I am behind a \s-1SOCKS\s0 firewall, but the Firewall option does not work ?" +.IX Subsection "I am behind a SOCKS firewall, but the Firewall option does not work ?" +The Firewall option is only for support of one type of firewall. The type +supported is an ftp proxy. +.PP +To use Net::FTP, or any other module in the libnet distribution, +through a \s-1SOCKS\s0 firewall you must create a socks-ified perl executable +by compiling perl with the socks library. +.SS "I am behind an \s-1FTP\s0 proxy firewall, but cannot access machines outside ?" +.IX Subsection "I am behind an FTP proxy firewall, but cannot access machines outside ?" +Net::FTP implements the most popular ftp proxy firewall approach. The scheme +implemented is that where you log in to the firewall with \f(CW\*(C`user@hostname\*(C'\fR +.PP +I have heard of one other type of firewall which requires a login to the +firewall with an account, then a second login with \f(CW\*(C`user@hostname\*(C'\fR. You can +still use Net::FTP to traverse these firewalls, but a more manual approach +must be taken, eg +.PP +.Vb 3 +\& $ftp = Net::FTP\->new($firewall) or die $@; +\& $ftp\->login($firewall_user, $firewall_passwd) or die $ftp\->message; +\& $ftp\->login($ext_user . \*(Aq@\*(Aq . $ext_host, $ext_passwd) or die $ftp\->message. +.Ve +.SS "My ftp proxy firewall does not listen on port 21" +.IX Subsection "My ftp proxy firewall does not listen on port 21" +\&\s-1FTP\s0 servers usually listen on the same port number, port 21, as any other +\&\s-1FTP\s0 server. But there is no reason why this has to be the case. +.PP +If you pass a port number to Net::FTP then it assumes this is the port +number of the final destination. By default Net::FTP will always try +to connect to the firewall on port 21. +.PP +Net::FTP uses IO::Socket to open the connection and IO::Socket allows +the port number to be specified as part of the hostname. So this problem +can be resolved by either passing a Firewall option like \f(CW"hostname:1234"\fR +or by setting the \f(CW\*(C`ftp_firewall\*(C'\fR option in Net::Config to be a string +in the same form. +.SS "Is it possible to change the file permissions of a file on an \s-1FTP\s0 server ?" +.IX Subsection "Is it possible to change the file permissions of a file on an FTP server ?" +The answer to this is \*(L"maybe\*(R". The \s-1FTP\s0 protocol does not specify a command to change +file permissions on a remote host. However many servers do allow you to run the +chmod command via the \f(CW\*(C`SITE\*(C'\fR command. This can be done with +.PP +.Vb 1 +\& $ftp\->site(\*(Aqchmod\*(Aq,\*(Aq0775\*(Aq,$file); +.Ve +.SS "I have seen scripts call a method message, but cannot find it documented ?" +.IX Subsection "I have seen scripts call a method message, but cannot find it documented ?" +Net::FTP, like several other packages in libnet, inherits from Net::Cmd, so +all the methods described in Net::Cmd are also available on Net::FTP +objects. +.SS "Why does Net::FTP not implement mput and mget methods" +.IX Subsection "Why does Net::FTP not implement mput and mget methods" +The quick answer is because they are easy to implement yourself. The long +answer is that to write these in such a way that multiple platforms are +supported correctly would just require too much code. Below are +some examples how you can implement these yourself. +.PP +sub mput { + my($ftp,$pattern) = \f(CW@_\fR; + foreach my \f(CW$file\fR (glob($pattern)) { + \f(CW$ftp\fR\->put($file) or warn \f(CW$ftp\fR\->message; + } +} +.PP +sub mget { + my($ftp,$pattern) = \f(CW@_\fR; + foreach my \f(CW$file\fR ($ftp\->ls($pattern)) { + \f(CW$ftp\fR\->get($file) or warn \f(CW$ftp\fR\->message; + } +} +.SH "Using Net::SMTP" +.IX Header "Using Net::SMTP" +.SS "Why can't the part of an Email address after the @ be used as the hostname ?" +.IX Subsection "Why can't the part of an Email address after the @ be used as the hostname ?" +The part of an Email address which follows the @ is not necessarily a hostname, +it is a mail domain. To find the name of a host to connect for a mail domain +you need to do a \s-1DNS MX\s0 lookup +.SS "Why does Net::SMTP not do \s-1DNS MX\s0 lookups ?" +.IX Subsection "Why does Net::SMTP not do DNS MX lookups ?" +Net::SMTP implements the \s-1SMTP\s0 protocol. The \s-1DNS MX\s0 lookup is not part +of this protocol. +.SS "The verify method always returns true ?" +.IX Subsection "The verify method always returns true ?" +Well it may seem that way, but it does not. The verify method returns true +if the command succeeded. If you pass verify an address which the +server would normally have to forward to another machine, the command +will succeed with something like +.PP +.Vb 1 +\& 252 Couldn\*(Aqt verify but will attempt delivery anyway +.Ve +.PP +This command will fail only if you pass it an address in a domain +the server directly delivers for, and that address does not exist. +.SH "Debugging scripts" +.IX Header "Debugging scripts" +.SS "How can I debug my scripts that use Net::* modules ?" +.IX Subsection "How can I debug my scripts that use Net::* modules ?" +Most of the libnet client classes allow options to be passed to the +constructor, in most cases one option is called \f(CW\*(C`Debug\*(C'\fR. Passing +this option with a non-zero value will turn on a protocol trace, which +will be sent to \s-1STDERR.\s0 This trace can be useful to see what commands +are being sent to the remote server and what responses are being +received back. +.PP +.Vb 1 +\& #!/your/path/to/perl +\& +\& use Net::FTP; +\& +\& my $ftp = new Net::FTP($host, Debug => 1); +\& $ftp\->login(\*(Aqgbarr\*(Aq,\*(Aqpassword\*(Aq); +\& $ftp\->quit; +.Ve +.PP +this script would output something like +.PP +.Vb 6 +\& Net::FTP: Net::FTP(2.22) +\& Net::FTP: Exporter +\& Net::FTP: Net::Cmd(2.0801) +\& Net::FTP: IO::Socket::INET +\& Net::FTP: IO::Socket(1.1603) +\& Net::FTP: IO::Handle(1.1504) +\& +\& Net::FTP=GLOB(0x8152974)<<< 220 imagine FTP server (Version wu\-2.4(5) Tue Jul 29 11:17:18 CDT 1997) ready. +\& Net::FTP=GLOB(0x8152974)>>> user gbarr +\& Net::FTP=GLOB(0x8152974)<<< 331 Password required for gbarr. +\& Net::FTP=GLOB(0x8152974)>>> PASS .... +\& Net::FTP=GLOB(0x8152974)<<< 230 User gbarr logged in. Access restrictions apply. +\& Net::FTP=GLOB(0x8152974)>>> QUIT +\& Net::FTP=GLOB(0x8152974)<<< 221 Goodbye. +.Ve +.PP +The first few lines tell you the modules that Net::FTP uses and their versions, +this is useful data to me when a user reports a bug. The last seven lines +show the communication with the server. Each line has three parts. The first +part is the object itself, this is useful for separating the output +if you are using multiple objects. The second part is either \f(CW\*(C`<<<<\*(C'\fR to +show data coming from the server or \f(CW\*(C`>>>>\*(C'\fR to show data +going to the server. The remainder of the line is the command +being sent or response being received. +.SH "AUTHOR AND COPYRIGHT" +.IX Header "AUTHOR AND COPYRIGHT" +Copyright (C) 1997\-1998 Graham Barr. All rights reserved. diff --git a/data/miniconda3/man/man3/Net%3A%3Anetent.3 b/data/miniconda3/man/man3/Net%3A%3Anetent.3 new file mode 100644 index 0000000000000000000000000000000000000000..57ac662c011542e1e0ccf4c43322d91e191c412b --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3Anetent.3 @@ -0,0 +1,251 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::netent 3" +.TH Net::netent 3 "2020-12-18" "perl v5.32.1" "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" +Net::netent \- by\-name interface to Perl's built\-in getnet*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Net::netent qw(:FIELDS); +\& getnetbyname("loopback") or die "bad net"; +\& printf "%s is %08X\en", $n_name, $n_net; +\& +\& use Net::netent; +\& +\& $n = getnetbyname("loopback") or die "bad net"; +\& { # there\*(Aqs gotta be a better way, eh? +\& @bytes = unpack("C4", pack("N", $n\->net)); +\& shift @bytes while @bytes && $bytes[0] == 0; +\& } +\& printf "%s is %08X [%d.%d.%d.%d]\en", $n\->name, $n\->net, @bytes; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgetnetbyname()\fR and +\&\fBgetnetbyaddr()\fR functions, replacing them with versions that return +\&\*(L"Net::netent\*(R" objects. This object has methods that return the similarly +named structure field name from the C's netent structure from \fInetdb.h\fR; +namely name, aliases, addrtype, and net. The aliases +method returns an array reference, the rest scalars. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as variables named +with a preceding \f(CW\*(C`n_\*(C'\fR. Thus, \f(CW\*(C`$net_obj\->name()\*(C'\fR corresponds to +\&\f(CW$n_name\fR if you import the fields. Array references are available as +regular array variables, so for example \f(CW\*(C`@{ $net_obj\->aliases() +}\*(C'\fR would be simply \f(CW@n_aliases\fR. +.PP +The \fBgetnet()\fR function is a simple front-end that forwards a numeric +argument to \fBgetnetbyaddr()\fR, and the rest +to \fBgetnetbyname()\fR. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The \fBgetnet()\fR functions do this in the Perl core: +.PP +.Vb 1 +\& sv_setiv(sv, (I32)nent\->n_net); +.Ve +.PP +The \fBgethost()\fR functions do this in the Perl core: +.PP +.Vb 1 +\& sv_setpvn(sv, hent\->h_addr, len); +.Ve +.PP +That means that the address comes back in binary for the +host functions, and as a regular perl integer for the net ones. +This seems a bug, but here's how to deal with it: +.PP +.Vb 3 +\& use strict; +\& use Socket; +\& use Net::netent; +\& +\& @ARGV = (\*(Aqloopback\*(Aq) unless @ARGV; +\& +\& my($n, $net); +\& +\& for $net ( @ARGV ) { +\& +\& unless ($n = getnetbyname($net)) { +\& warn "$0: no such net: $net\en"; +\& next; +\& } +\& +\& printf "\en%s is %s%s\en", +\& $net, +\& lc($n\->name) eq lc($net) ? "" : "*really* ", +\& $n\->name; +\& +\& print "\etaliases are ", join(", ", @{$n\->aliases}), "\en" +\& if @{$n\->aliases}; +\& +\& # this is stupid; first, why is this not in binary? +\& # second, why am i going through these convolutions +\& # to make it looks right +\& { +\& my @a = unpack("C4", pack("N", $n\->net)); +\& shift @a while @a && $a[0] == 0; +\& printf "\etaddr is %s [%d.%d.%d.%d]\en", $n\->net, @a; +\& } +\& +\& if ($n = getnetbyaddr($n\->net)) { +\& if (lc($n\->name) ne lc($net)) { +\& printf "\etThat addr reverses to net %s!\en", $n\->name; +\& $net = $n\->name; +\& redo; +\& } +\& } +\& } +.Ve +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/Net%3A%3Aprotoent.3 b/data/miniconda3/man/man3/Net%3A%3Aprotoent.3 new file mode 100644 index 0000000000000000000000000000000000000000..144897ea0cc70778320822cfbb509705fc565d46 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3Aprotoent.3 @@ -0,0 +1,187 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::protoent 3" +.TH Net::protoent 3 "2020-12-18" "perl v5.32.1" "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" +Net::protoent \- by\-name interface to Perl's built\-in getproto*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Net::protoent; +\& $p = getprotobyname(shift || \*(Aqtcp\*(Aq) || die "no proto"; +\& printf "proto for %s is %d, aliases are %s\en", +\& $p\->name, $p\->proto, "@{$p\->aliases}"; +\& +\& use Net::protoent qw(:FIELDS); +\& getprotobyname(shift || \*(Aqtcp\*(Aq) || die "no proto"; +\& print "proto for $p_name is $p_proto, aliases are @p_aliases\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgetprotoent()\fR, +\&\fBgetprotobyname()\fR, and \fBgetnetbyport()\fR functions, replacing them with +versions that return \*(L"Net::protoent\*(R" objects. They take default +second arguments of \*(L"tcp\*(R". This object has methods that return the +similarly named structure field name from the C's protoent structure +from \fInetdb.h\fR; namely name, aliases, and proto. The aliases method +returns an array reference, the rest scalars. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as variables named +with a preceding \f(CW\*(C`p_\*(C'\fR. Thus, \f(CW\*(C`$proto_obj\->name()\*(C'\fR corresponds to +\&\f(CW$p_name\fR if you import the fields. Array references are available as +regular array variables, so for example \f(CW\*(C`@{ $proto_obj\->aliases() +}\*(C'\fR would be simply \f(CW@p_aliases\fR. +.PP +The \fBgetproto()\fR function is a simple front-end that forwards a numeric +argument to \fBgetprotobyport()\fR, and the rest to \fBgetprotobyname()\fR. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/Net%3A%3Aservent.3 b/data/miniconda3/man/man3/Net%3A%3Aservent.3 new file mode 100644 index 0000000000000000000000000000000000000000..fe53242732a8924029fe91ca3fe5c794927ce919 --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3Aservent.3 @@ -0,0 +1,203 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Net::servent 3" +.TH Net::servent 3 "2020-12-18" "perl v5.32.1" "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" +Net::servent \- by\-name interface to Perl's built\-in getserv*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Net::servent; +\& $s = getservbyname(shift || \*(Aqftp\*(Aq) || die "no service"; +\& printf "port for %s is %s, aliases are %s\en", +\& $s\->name, $s\->port, "@{$s\->aliases}"; +\& +\& use Net::servent qw(:FIELDS); +\& getservbyname(shift || \*(Aqftp\*(Aq) || die "no service"; +\& print "port for $s_name is $s_port, aliases are @s_aliases\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgetservent()\fR, +\&\fBgetservbyname()\fR, and +\&\fBgetnetbyport()\fR functions, replacing them with versions that return +\&\*(L"Net::servent\*(R" objects. They take default second arguments of \*(L"tcp\*(R". This object has methods that return the similarly +named structure field name from the C's servent structure from \fInetdb.h\fR; +namely name, aliases, port, and proto. The aliases +method returns an array reference, the rest scalars. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as variables named +with a preceding \f(CW\*(C`s_\*(C'\fR. Thus, \f(CW\*(C`$serv_obj\->name()\*(C'\fR corresponds to +\&\f(CW$s_name\fR if you import the fields. Array references are available as +regular array variables, so for example \f(CW\*(C`@{ $serv_obj\->aliases()}\*(C'\fR +would be simply \f(CW@s_aliases\fR. +.PP +The \fBgetserv()\fR function is a simple front-end that forwards a numeric +argument to \fBgetservbyport()\fR, and the rest to \fBgetservbyname()\fR. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 1 +\& use Net::servent qw(:FIELDS); +\& +\& while (@ARGV) { +\& my ($service, $proto) = ((split m!/!, shift), \*(Aqtcp\*(Aq); +\& my $valet = getserv($service, $proto); +\& unless ($valet) { +\& warn "$0: No service: $service/$proto\en" +\& next; +\& } +\& printf "service $service/$proto is port %d\en", $valet\->port; +\& print "alias are @s_aliases\en" if @s_aliases; +\& } +.Ve +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/O.3 b/data/miniconda3/man/man3/O.3 new file mode 100644 index 0000000000000000000000000000000000000000..8a4d605c74560c53c7bbf81bba446319085d29b9 --- /dev/null +++ b/data/miniconda3/man/man3/O.3 @@ -0,0 +1,217 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "O 3" +.TH O 3 "2020-12-18" "perl v5.32.1" "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" +O \- Generic interface to Perl Compiler backends +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-MO=[\-q,]Backend[,OPTIONS] foo.pl +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is the module that is used as a frontend to the Perl Compiler. +.PP +If you pass the \f(CW\*(C`\-q\*(C'\fR option to the module, then the \s-1STDOUT\s0 +filehandle will be redirected into the variable \f(CW$O::BEGIN_output\fR +during compilation. This has the effect that any output printed +to \s-1STDOUT\s0 by \s-1BEGIN\s0 blocks or use'd modules will be stored in this +variable rather than printed. It's useful with those backends which +produce output themselves (\f(CW\*(C`Deparse\*(C'\fR, \f(CW\*(C`Concise\*(C'\fR etc), so that +their output is not confused with that generated by the code +being compiled. +.PP +The \f(CW\*(C`\-qq\*(C'\fR option behaves like \f(CW\*(C`\-q\*(C'\fR, except that it also closes +\&\s-1STDERR\s0 after deparsing has finished. This suppresses the \*(L"Syntax \s-1OK\*(R"\s0 +message normally produced by perl. +.SH "CONVENTIONS" +.IX Header "CONVENTIONS" +Most compiler backends use the following conventions: \s-1OPTIONS\s0 +consists of a comma-separated list of words (no white-space). +The \f(CW\*(C`\-v\*(C'\fR option usually puts the backend into verbose mode. +The \f(CW\*(C`\-ofile\*(C'\fR option generates output to \fBfile\fR instead of +stdout. The \f(CW\*(C`\-D\*(C'\fR option followed by various letters turns on +various internal debugging flags. See the documentation for the +desired backend (named \f(CW\*(C`B::Backend\*(C'\fR for the example above) to +find out about that backend. +.SH "IMPLEMENTATION" +.IX Header "IMPLEMENTATION" +This section is only necessary for those who want to write a +compiler backend module that can be used via this module. +.PP +The command-line mentioned in the \s-1SYNOPSIS\s0 section corresponds to +the Perl code +.PP +.Vb 1 +\& use O ("Backend", OPTIONS); +.Ve +.PP +The \f(CW\*(C`O::import\*(C'\fR function loads the appropriate \f(CW\*(C`B::Backend\*(C'\fR module +and calls its \f(CW\*(C`compile\*(C'\fR function, passing it \s-1OPTIONS.\s0 That function +is expected to return a sub reference which we'll call \s-1CALLBACK.\s0 Next, +the \*(L"compile-only\*(R" flag is switched on (equivalent to the command-line +option \f(CW\*(C`\-c\*(C'\fR) and a \s-1CHECK\s0 block is registered which calls +\&\s-1CALLBACK.\s0 Thus the main Perl program mentioned on the command-line is +read in, parsed and compiled into internal syntax tree form. Since the +\&\f(CW\*(C`\-c\*(C'\fR flag is set, the program does not start running (excepting \s-1BEGIN\s0 +blocks of course) but the \s-1CALLBACK\s0 function registered by the compiler +backend is called. +.PP +In summary, a compiler backend module should be called \*(L"B::Foo\*(R" +for some foo and live in the appropriate directory for that name. +It should define a function called \f(CW\*(C`compile\*(C'\fR. When the user types +.PP +.Vb 1 +\& perl \-MO=Foo,OPTIONS foo.pl +.Ve +.PP +that function is called and is passed those \s-1OPTIONS\s0 (split on +commas). It should return a sub ref to the main compilation function. +After the user's program is loaded and parsed, that returned sub ref +is invoked which can then go ahead and do the compilation, usually by +making use of the \f(CW\*(C`B\*(C'\fR module's functionality. +.SH "BUGS" +.IX Header "BUGS" +The \f(CW\*(C`\-q\*(C'\fR and \f(CW\*(C`\-qq\*(C'\fR options don't work correctly if perl isn't +compiled with PerlIO support : \s-1STDOUT\s0 will be closed instead of being +redirected to \f(CW$O::BEGIN_output\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Malcolm Beattie, \f(CW\*(C`mbeattie@sable.ox.ac.uk\*(C'\fR diff --git a/data/miniconda3/man/man3/Opcode.3 b/data/miniconda3/man/man3/Opcode.3 new file mode 100644 index 0000000000000000000000000000000000000000..0f193f7ae84453e5d76d45fcab0e6413c45fbd82 --- /dev/null +++ b/data/miniconda3/man/man3/Opcode.3 @@ -0,0 +1,642 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Opcode 3" +.TH Opcode 3 "2021-01-09" "perl v5.32.1" "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" +Opcode \- Disable named opcodes when compiling perl code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Opcode; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl code is always compiled into an internal format before execution. +.PP +Evaluating perl code (e.g. via \*(L"eval\*(R" or \*(L"do 'file'\*(R") causes +the code to be compiled into an internal format and then, +provided there was no error in the compilation, executed. +The internal format is based on many distinct \fIopcodes\fR. +.PP +By default no opmask is in effect and any code can be compiled. +.PP +The Opcode module allow you to define an \fIoperator mask\fR to be in +effect when perl \fInext\fR compiles any code. Attempting to compile code +which contains a masked opcode will cause the compilation to fail +with an error. The code will not be executed. +.SH "NOTE" +.IX Header "NOTE" +The Opcode module is not usually used directly. See the ops pragma and +Safe modules for more typical uses. +.SH "WARNING" +.IX Header "WARNING" +The Opcode module does not implement an effective sandbox for +evaluating untrusted code with the perl interpreter. +.PP +Bugs in the perl interpreter that could be abused to bypass +Opcode restrictions are not treated as vulnerabilities. See +perlsecpolicy for additional information. +.PP +The authors make \fBno warranty\fR, implied or otherwise, about the +suitability of this software for safety or security purposes. +.PP +The authors shall not in any case be liable for special, incidental, +consequential, indirect or other similar damages arising from the use +of this software. +.PP +Your mileage will vary. If in any doubt \fBdo not use it\fR. +.SH "Operator Names and Operator Lists" +.IX Header "Operator Names and Operator Lists" +The canonical list of operator names is the contents of the array +PL_op_name defined and initialised in file \fIopcode.h\fR of the Perl +source distribution (and installed into the perl library). +.PP +Each operator has both a terse name (its opname) and a more verbose or +recognisable descriptive name. The opdesc function can be used to +return a list of descriptions for a list of operators. +.PP +Many of the functions and methods listed below take a list of +operators as parameters. Most operator lists can be made up of several +types of element. Each element can be one of +.IP "an operator name (opname)" 8 +.IX Item "an operator name (opname)" +Operator names are typically small lowercase words like enterloop, +leaveloop, last, next, redo etc. Sometimes they are rather cryptic +like gv2cv, i_ncmp and ftsvtx. +.IP "an operator tag name (optag)" 8 +.IX Item "an operator tag name (optag)" +Operator tags can be used to refer to groups (or sets) of operators. +Tag names always begin with a colon. The Opcode module defines several +optags and the user can define others using the define_optag function. +.IP "a negated opname or optag" 8 +.IX Item "a negated opname or optag" +An opname or optag can be prefixed with an exclamation mark, e.g., !mkdir. +Negating an opname or optag means remove the corresponding ops from the +accumulated set of ops at that point. +.IP "an operator set (opset)" 8 +.IX Item "an operator set (opset)" +An \fIopset\fR as a binary string of approximately 44 bytes which holds a +set or zero or more operators. +.Sp +The opset and opset_to_ops functions can be used to convert from +a list of operators to an opset and \fIvice versa\fR. +.Sp +Wherever a list of operators can be given you can use one or more opsets. +See also Manipulating Opsets below. +.SH "Opcode Functions" +.IX Header "Opcode Functions" +The Opcode package contains functions for manipulating operator names +tags and sets. All are available for export by the package. +.IP "opcodes" 8 +.IX Item "opcodes" +In a scalar context opcodes returns the number of opcodes in this +version of perl (around 350 for perl\-5.7.0). +.Sp +In a list context it returns a list of all the operator names. +(Not yet implemented, use \f(CW@names\fR = opset_to_ops(full_opset).) +.IP "opset (\s-1OP, ...\s0)" 8 +.IX Item "opset (OP, ...)" +Returns an opset containing the listed operators. +.IP "opset_to_ops (\s-1OPSET\s0)" 8 +.IX Item "opset_to_ops (OPSET)" +Returns a list of operator names corresponding to those operators in +the set. +.IP "opset_to_hex (\s-1OPSET\s0)" 8 +.IX Item "opset_to_hex (OPSET)" +Returns a string representation of an opset. Can be handy for debugging. +.IP "full_opset" 8 +.IX Item "full_opset" +Returns an opset which includes all operators. +.IP "empty_opset" 8 +.IX Item "empty_opset" +Returns an opset which contains no operators. +.IP "invert_opset (\s-1OPSET\s0)" 8 +.IX Item "invert_opset (OPSET)" +Returns an opset which is the inverse set of the one supplied. +.IP "verify_opset (\s-1OPSET, ...\s0)" 8 +.IX Item "verify_opset (OPSET, ...)" +Returns true if the supplied opset looks like a valid opset (is the +right length etc) otherwise it returns false. If an optional second +parameter is true then verify_opset will croak on an invalid opset +instead of returning false. +.Sp +Most of the other Opcode functions call verify_opset automatically +and will croak if given an invalid opset. +.IP "define_optag (\s-1OPTAG, OPSET\s0)" 8 +.IX Item "define_optag (OPTAG, OPSET)" +Define \s-1OPTAG\s0 as a symbolic name for \s-1OPSET.\s0 Optag names always start +with a colon \f(CW\*(C`:\*(C'\fR. +.Sp +The optag name used must not be defined already (define_optag will +croak if it is already defined). Optag names are global to the perl +process and optag definitions cannot be altered or deleted once +defined. +.Sp +It is strongly recommended that applications using Opcode should use a +leading capital letter on their tag names since lowercase names are +reserved for use by the Opcode module. If using Opcode within a module +you should prefix your tags names with the name of your module to +ensure uniqueness and thus avoid clashes with other modules. +.IP "opmask_add (\s-1OPSET\s0)" 8 +.IX Item "opmask_add (OPSET)" +Adds the supplied opset to the current opmask. Note that there is +currently \fIno\fR mechanism for unmasking ops once they have been masked. +This is intentional. +.IP "opmask" 8 +.IX Item "opmask" +Returns an opset corresponding to the current opmask. +.IP "opdesc (\s-1OP, ...\s0)" 8 +.IX Item "opdesc (OP, ...)" +This takes a list of operator names and returns the corresponding list +of operator descriptions. +.IP "opdump (\s-1PAT\s0)" 8 +.IX Item "opdump (PAT)" +Dumps to \s-1STDOUT\s0 a two column list of op names and op descriptions. +If an optional pattern is given then only lines which match the +(case insensitive) pattern will be output. +.Sp +It's designed to be used as a handy command line utility: +.Sp +.Vb 2 +\& perl \-MOpcode=opdump \-e opdump +\& perl \-MOpcode=opdump \-e \*(Aqopdump Eval\*(Aq +.Ve +.SH "Manipulating Opsets" +.IX Header "Manipulating Opsets" +Opsets may be manipulated using the perl bit vector operators & (and), | (or), +^ (xor) and ~ (negate/invert). +.PP +However you should never rely on the numerical position of any opcode +within the opset. In other words both sides of a bit vector operator +should be opsets returned from Opcode functions. +.PP +Also, since the number of opcodes in your current version of perl might +not be an exact multiple of eight, there may be unused bits in the last +byte of an upset. This should not cause any problems (Opcode functions +ignore those extra bits) but it does mean that using the ~ operator +will typically not produce the same 'physical' opset 'string' as the +invert_opset function. +.SH "TO DO (maybe)" +.IX Header "TO DO (maybe)" +.Vb 3 +\& $bool = opset_eq($opset1, $opset2) true if opsets are logically +\& equivalent +\& $yes = opset_can($opset, @ops) true if $opset has all @ops set +\& +\& @diff = opset_diff($opset1, $opset2) => (\*(Aqfoo\*(Aq, \*(Aq!bar\*(Aq, ...) +.Ve +.SH "Predefined Opcode Tags" +.IX Header "Predefined Opcode Tags" +.IP ":base_core" 5 +.IX Item ":base_core" +.Vb 1 +\& null stub scalar pushmark wantarray const defined undef +\& +\& rv2sv sassign +\& +\& rv2av aassign aelem aelemfast aelemfast_lex aslice kvaslice +\& av2arylen +\& +\& rv2hv helem hslice kvhslice each values keys exists delete +\& aeach akeys avalues multideref argelem argdefelem argcheck +\& +\& preinc i_preinc predec i_predec postinc i_postinc +\& postdec i_postdec int hex oct abs pow multiply i_multiply +\& divide i_divide modulo i_modulo add i_add subtract i_subtract +\& +\& left_shift right_shift bit_and bit_xor bit_or nbit_and +\& nbit_xor nbit_or sbit_and sbit_xor sbit_or negate i_negate not +\& complement ncomplement scomplement +\& +\& lt i_lt gt i_gt le i_le ge i_ge eq i_eq ne i_ne ncmp i_ncmp +\& slt sgt sle sge seq sne scmp +\& isa +\& +\& substr vec stringify study pos length index rindex ord chr +\& +\& ucfirst lcfirst uc lc fc quotemeta trans transr chop schop +\& chomp schomp +\& +\& match split qr +\& +\& list lslice splice push pop shift unshift reverse +\& +\& cond_expr flip flop andassign orassign dorassign and or dor xor +\& +\& warn die lineseq nextstate scope enter leave +\& +\& rv2cv anoncode prototype coreargs avhvswitch anonconst +\& +\& entersub leavesub leavesublv return method method_named +\& method_super method_redir method_redir_super +\& \-\- XXX loops via recursion? +\& +\& cmpchain_and cmpchain_dup +\& +\& leaveeval \-\- needed for Safe to operate, is safe +\& without entereval +.Ve +.IP ":base_mem" 5 +.IX Item ":base_mem" +These memory related ops are not included in :base_core because they +can easily be used to implement a resource attack (e.g., consume all +available memory). +.Sp +.Vb 1 +\& concat multiconcat repeat join range +\& +\& anonlist anonhash +.Ve +.Sp +Note that despite the existence of this optag a memory resource attack +may still be possible using only :base_core ops. +.Sp +Disabling these ops is a \fIvery\fR heavy handed way to attempt to prevent +a memory resource attack. It's probable that a specific memory limit +mechanism will be added to perl in the near future. +.IP ":base_loop" 5 +.IX Item ":base_loop" +These loop ops are not included in :base_core because they can easily be +used to implement a resource attack (e.g., consume all available \s-1CPU\s0 time). +.Sp +.Vb 6 +\& grepstart grepwhile +\& mapstart mapwhile +\& enteriter iter +\& enterloop leaveloop unstack +\& last next redo +\& goto +.Ve +.IP ":base_io" 5 +.IX Item ":base_io" +These ops enable \fIfilehandle\fR (rather than filename) based input and +output. These are safe on the assumption that only pre-existing +filehandles are available for use. Usually, to create new filehandles +other ops such as open would need to be enabled, if you don't take into +account the magical open of \s-1ARGV.\s0 +.Sp +.Vb 1 +\& readline rcatline getc read +\& +\& formline enterwrite leavewrite +\& +\& print say sysread syswrite send recv +\& +\& eof tell seek sysseek +\& +\& readdir telldir seekdir rewinddir +.Ve +.IP ":base_orig" 5 +.IX Item ":base_orig" +These are a hotchpotch of opcodes still waiting to be considered +.Sp +.Vb 1 +\& gvsv gv gelem +\& +\& padsv padav padhv padcv padany padrange introcv clonecv +\& +\& once +\& +\& rv2gv refgen srefgen ref refassign lvref lvrefslice lvavref +\& +\& bless \-\- could be used to change ownership of objects +\& (reblessing) +\& +\& regcmaybe regcreset regcomp subst substcont +\& +\& sprintf prtf \-\- can core dump +\& +\& crypt +\& +\& tie untie +\& +\& dbmopen dbmclose +\& sselect select +\& pipe_op sockpair +\& +\& getppid getpgrp setpgrp getpriority setpriority +\& localtime gmtime +\& +\& entertry leavetry \-\- can be used to \*(Aqhide\*(Aq fatal errors +\& +\& entergiven leavegiven +\& enterwhen leavewhen +\& break continue +\& smartmatch +\& +\& custom \-\- where should this go +.Ve +.IP ":base_math" 5 +.IX Item ":base_math" +These ops are not included in :base_core because of the risk of them being +used to generate floating point exceptions (which would have to be caught +using a \f(CW$SIG\fR{\s-1FPE\s0} handler). +.Sp +.Vb 1 +\& atan2 sin cos exp log sqrt +.Ve +.Sp +These ops are not included in :base_core because they have an effect +beyond the scope of the compartment. +.Sp +.Vb 1 +\& rand srand +.Ve +.IP ":base_thread" 5 +.IX Item ":base_thread" +These ops are related to multi-threading. +.Sp +.Vb 1 +\& lock +.Ve +.IP ":default" 5 +.IX Item ":default" +A handy tag name for a \fIreasonable\fR default set of ops. (The current ops +allowed are unstable while development continues. It will change.) +.Sp +.Vb 1 +\& :base_core :base_mem :base_loop :base_orig :base_thread +.Ve +.Sp +This list used to contain :base_io prior to Opcode 1.07. +.Sp +If safety matters to you (and why else would you be using the Opcode module?) +then you should not rely on the definition of this, or indeed any other, optag! +.IP ":filesys_read" 5 +.IX Item ":filesys_read" +.Vb 1 +\& stat lstat readlink +\& +\& ftatime ftblk ftchr ftctime ftdir fteexec fteowned +\& fteread ftewrite ftfile ftis ftlink ftmtime ftpipe +\& ftrexec ftrowned ftrread ftsgid ftsize ftsock ftsuid +\& fttty ftzero ftrwrite ftsvtx +\& +\& fttext ftbinary +\& +\& fileno +.Ve +.IP ":sys_db" 5 +.IX Item ":sys_db" +.Vb 4 +\& ghbyname ghbyaddr ghostent shostent ehostent \-\- hosts +\& gnbyname gnbyaddr gnetent snetent enetent \-\- networks +\& gpbyname gpbynumber gprotoent sprotoent eprotoent \-\- protocols +\& gsbyname gsbyport gservent sservent eservent \-\- services +\& +\& gpwnam gpwuid gpwent spwent epwent getlogin \-\- users +\& ggrnam ggrgid ggrent sgrent egrent \-\- groups +.Ve +.IP ":browse" 5 +.IX Item ":browse" +A handy tag name for a \fIreasonable\fR default set of ops beyond the +:default optag. Like :default (and indeed all the other optags) its +current definition is unstable while development continues. It will change. +.Sp +The :browse tag represents the next step beyond :default. It is a +superset of the :default ops and adds :filesys_read the :sys_db. +The intent being that scripts can access more (possibly sensitive) +information about your system but not be able to change it. +.Sp +.Vb 1 +\& :default :filesys_read :sys_db +.Ve +.IP ":filesys_open" 5 +.IX Item ":filesys_open" +.Vb 2 +\& sysopen open close +\& umask binmode +\& +\& open_dir closedir \-\- other dir ops are in :base_io +.Ve +.IP ":filesys_write" 5 +.IX Item ":filesys_write" +.Vb 1 +\& link unlink rename symlink truncate +\& +\& mkdir rmdir +\& +\& utime chmod chown +\& +\& fcntl \-\- not strictly filesys related, but possibly as +\& dangerous? +.Ve +.IP ":subprocess" 5 +.IX Item ":subprocess" +.Vb 1 +\& backtick system +\& +\& fork +\& +\& wait waitpid +\& +\& glob \-\- access to Cshell via <\`rm *\`> +.Ve +.IP ":ownprocess" 5 +.IX Item ":ownprocess" +.Vb 1 +\& exec exit kill +\& +\& time tms \-\- could be used for timing attacks (paranoid?) +.Ve +.IP ":others" 5 +.IX Item ":others" +This tag holds groups of assorted specialist opcodes that don't warrant +having optags defined for them. +.Sp +SystemV Interprocess Communications: +.Sp +.Vb 1 +\& msgctl msgget msgrcv msgsnd +\& +\& semctl semget semop +\& +\& shmctl shmget shmread shmwrite +.Ve +.IP ":load" 5 +.IX Item ":load" +This tag holds opcodes related to loading modules and getting information +about calling environment and args. +.Sp +.Vb 2 +\& require dofile +\& caller runcv +.Ve +.IP ":still_to_be_decided" 5 +.IX Item ":still_to_be_decided" +.Vb 2 +\& chdir +\& flock ioctl +\& +\& socket getpeername ssockopt +\& bind connect listen accept shutdown gsockopt getsockname +\& +\& sleep alarm \-\- changes global timer state and signal handling +\& sort \-\- assorted problems including core dumps +\& tied \-\- can be used to access object implementing a tie +\& pack unpack \-\- can be used to create/use memory pointers +\& +\& hintseval \-\- constant op holding eval hints +\& +\& entereval \-\- can be used to hide code from initial compile +\& +\& reset +\& +\& dbstate \-\- perl \-d version of nextstate(ment) opcode +.Ve +.IP ":dangerous" 5 +.IX Item ":dangerous" +This tag is simply a bucket for opcodes that are unlikely to be used via +a tag name but need to be tagged for completeness and documentation. +.Sp +.Vb 1 +\& syscall dump chroot +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +ops \*(-- perl pragma interface to Opcode module. +.PP +Safe \*(-- Opcode and namespace limited execution compartments +.SH "AUTHORS" +.IX Header "AUTHORS" +Originally designed and implemented by Malcolm Beattie, +mbeattie@sable.ox.ac.uk as part of Safe version 1. +.PP +Split out from Safe module version 1, named opcode tags and other +changes added by Tim Bunce. diff --git a/data/miniconda3/man/man3/Params%3A%3ACheck.3 b/data/miniconda3/man/man3/Params%3A%3ACheck.3 new file mode 100644 index 0000000000000000000000000000000000000000..5227554e39b0482137a652b8577c292afabf79a2 --- /dev/null +++ b/data/miniconda3/man/man3/Params%3A%3ACheck.3 @@ -0,0 +1,478 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Params::Check 3" +.TH Params::Check 3 "2020-12-18" "perl v5.32.1" "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" +Params::Check \- A generic input parsing/checking mechanism. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Params::Check qw[check allow last_error]; +\& +\& sub fill_personal_info { +\& my %hash = @_; +\& my $x; +\& +\& my $tmpl = { +\& firstname => { required => 1, defined => 1 }, +\& lastname => { required => 1, store => \e$x }, +\& gender => { required => 1, +\& allow => [qr/M/i, qr/F/i], +\& }, +\& married => { allow => [0,1] }, +\& age => { default => 21, +\& allow => qr/^\ed+$/, +\& }, +\& +\& phone => { allow => [ sub { return 1 if /$valid_re/ }, +\& \*(Aq1\-800\-PERL\*(Aq ] +\& }, +\& id_list => { default => [], +\& strict_type => 1 +\& }, +\& employer => { default => \*(AqNSA\*(Aq, no_override => 1 }, +\& }; +\& +\& ### check() returns a hashref of parsed args on success ### +\& my $parsed_args = check( $tmpl, \e%hash, $VERBOSE ) +\& or die qw[Could not parse arguments!]; +\& +\& ... other code here ... +\& } +\& +\& my $ok = allow( $colour, [qw|blue green yellow|] ); +\& +\& my $error = Params::Check::last_error(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Params::Check is a generic input parsing/checking mechanism. +.PP +It allows you to validate input via a template. The only requirement +is that the arguments must be named. +.PP +Params::Check can do the following things for you: +.IP "\(bu" 4 +Convert all keys to lowercase +.IP "\(bu" 4 +Check if all required arguments have been provided +.IP "\(bu" 4 +Set arguments that have not been provided to the default +.IP "\(bu" 4 +Weed out arguments that are not supported and warn about them to the +user +.IP "\(bu" 4 +Validate the arguments given by the user based on strings, regexes, +lists or even subroutines +.IP "\(bu" 4 +Enforce type integrity if required +.PP +Most of Params::Check's power comes from its template, which we'll +discuss below: +.SH "Template" +.IX Header "Template" +As you can see in the synopsis, based on your template, the arguments +provided will be validated. +.PP +The template can take a different set of rules per key that is used. +.PP +The following rules are available: +.IP "default" 4 +.IX Item "default" +This is the default value if none was provided by the user. +This is also the type \f(CW\*(C`strict_type\*(C'\fR will look at when checking type +integrity (see below). +.IP "required" 4 +.IX Item "required" +A boolean flag that indicates if this argument was a required +argument. If marked as required and not provided, \fBcheck()\fR will fail. +.IP "strict_type" 4 +.IX Item "strict_type" +This does a \f(CW\*(C`ref()\*(C'\fR check on the argument provided. The \f(CW\*(C`ref\*(C'\fR of the +argument must be the same as the \f(CW\*(C`ref\*(C'\fR of the default value for this +check to pass. +.Sp +This is very useful if you insist on taking an array reference as +argument for example. +.IP "defined" 4 +.IX Item "defined" +If this template key is true, enforces that if this key is provided by +user input, its value is \f(CW\*(C`defined\*(C'\fR. This just means that the user is +not allowed to pass \f(CW\*(C`undef\*(C'\fR as a value for this key and is equivalent +to: + allow => sub { defined \f(CW$_\fR[0] && \s-1OTHER TESTS\s0 } +.IP "no_override" 4 +.IX Item "no_override" +This allows you to specify \f(CW\*(C`constants\*(C'\fR in your template. ie, they +keys that are not allowed to be altered by the user. It pretty much +allows you to keep all your \f(CW\*(C`configurable\*(C'\fR data in one place; the +\&\f(CW\*(C`Params::Check\*(C'\fR template. +.IP "store" 4 +.IX Item "store" +This allows you to pass a reference to a scalar, in which the data +will be stored: +.Sp +.Vb 2 +\& my $x; +\& my $args = check(foo => { default => 1, store => \e$x }, $input); +.Ve +.Sp +This is basically shorthand for saying: +.Sp +.Vb 2 +\& my $args = check( { foo => { default => 1 }, $input ); +\& my $x = $args\->{foo}; +.Ve +.Sp +You can alter the global variable \f(CW$Params::Check::NO_DUPLICATES\fR to +control whether the \f(CW\*(C`store\*(C'\fR'd key will still be present in your +result set. See the \*(L"Global Variables\*(R" section below. +.IP "allow" 4 +.IX Item "allow" +A set of criteria used to validate a particular piece of data if it +has to adhere to particular rules. +.Sp +See the \f(CW\*(C`allow()\*(C'\fR function for details. +.SH "Functions" +.IX Header "Functions" +.SS "check( \e%tmpl, \e%args, [$verbose] );" +.IX Subsection "check( %tmpl, %args, [$verbose] );" +This function is not exported by default, so you'll have to ask for it +via: +.PP +.Vb 1 +\& use Params::Check qw[check]; +.Ve +.PP +or use its fully qualified name instead. +.PP +\&\f(CW\*(C`check\*(C'\fR takes a list of arguments, as follows: +.IP "Template" 4 +.IX Item "Template" +This is a hash reference which contains a template as explained in the +\&\f(CW\*(C`SYNOPSIS\*(C'\fR and \f(CW\*(C`Template\*(C'\fR section. +.IP "Arguments" 4 +.IX Item "Arguments" +This is a reference to a hash of named arguments which need checking. +.IP "Verbose" 4 +.IX Item "Verbose" +A boolean to indicate whether \f(CW\*(C`check\*(C'\fR should be verbose and warn +about what went wrong in a check or not. +.Sp +You can enable this program wide by setting the package variable +\&\f(CW$Params::Check::VERBOSE\fR to a true value. For details, see the +section on \f(CW\*(C`Global Variables\*(C'\fR below. +.PP +\&\f(CW\*(C`check\*(C'\fR will return when it fails, or a hashref with lowercase +keys of parsed arguments when it succeeds. +.PP +So a typical call to check would look like this: +.PP +.Vb 2 +\& my $parsed = check( \e%template, \e%arguments, $VERBOSE ) +\& or warn q[Arguments could not be parsed!]; +.Ve +.PP +A lot of the behaviour of \f(CW\*(C`check()\*(C'\fR can be altered by setting +package variables. See the section on \f(CW\*(C`Global Variables\*(C'\fR for details +on this. +.ie n .SS "allow( $test_me, \e@criteria );" +.el .SS "allow( \f(CW$test_me\fP, \e@criteria );" +.IX Subsection "allow( $test_me, @criteria );" +The function that handles the \f(CW\*(C`allow\*(C'\fR key in the template is also +available for independent use. +.PP +The function takes as first argument a key to test against, and +as second argument any form of criteria that are also allowed by +the \f(CW\*(C`allow\*(C'\fR key in the template. +.PP +You can use the following types of values for allow: +.IP "string" 4 +.IX Item "string" +The provided argument \s-1MUST\s0 be equal to the string for the validation +to pass. +.IP "regexp" 4 +.IX Item "regexp" +The provided argument \s-1MUST\s0 match the regular expression for the +validation to pass. +.IP "subroutine" 4 +.IX Item "subroutine" +The provided subroutine \s-1MUST\s0 return true in order for the validation +to pass and the argument accepted. +.Sp +(This is particularly useful for more complicated data). +.IP "array ref" 4 +.IX Item "array ref" +The provided argument \s-1MUST\s0 equal one of the elements of the array +ref for the validation to pass. An array ref can hold all the above +values. +.PP +It returns true if the key matched the criteria, or false otherwise. +.SS "\fBlast_error()\fP" +.IX Subsection "last_error()" +Returns a string containing all warnings and errors reported during +the last time \f(CW\*(C`check\*(C'\fR was called. +.PP +This is useful if you want to report then some other way than +\&\f(CW\*(C`carp\*(C'\fR'ing when the verbose flag is on. +.PP +It is exported upon request. +.SH "Global Variables" +.IX Header "Global Variables" +The behaviour of Params::Check can be altered by changing the +following global variables: +.ie n .SS "$Params::Check::VERBOSE" +.el .SS "\f(CW$Params::Check::VERBOSE\fP" +.IX Subsection "$Params::Check::VERBOSE" +This controls whether Params::Check will issue warnings and +explanations as to why certain things may have failed. +If you set it to 0, Params::Check will not output any warnings. +.PP +The default is 1 when warnings are enabled, 0 otherwise; +.ie n .SS "$Params::Check::STRICT_TYPE" +.el .SS "\f(CW$Params::Check::STRICT_TYPE\fP" +.IX Subsection "$Params::Check::STRICT_TYPE" +This works like the \f(CW\*(C`strict_type\*(C'\fR option you can pass to \f(CW\*(C`check\*(C'\fR, +which will turn on \f(CW\*(C`strict_type\*(C'\fR globally for all calls to \f(CW\*(C`check\*(C'\fR. +.PP +The default is 0; +.ie n .SS "$Params::Check::ALLOW_UNKNOWN" +.el .SS "\f(CW$Params::Check::ALLOW_UNKNOWN\fP" +.IX Subsection "$Params::Check::ALLOW_UNKNOWN" +If you set this flag, unknown options will still be present in the +return value, rather than filtered out. This is useful if your +subroutine is only interested in a few arguments, and wants to pass +the rest on blindly to perhaps another subroutine. +.PP +The default is 0; +.ie n .SS "$Params::Check::STRIP_LEADING_DASHES" +.el .SS "\f(CW$Params::Check::STRIP_LEADING_DASHES\fP" +.IX Subsection "$Params::Check::STRIP_LEADING_DASHES" +If you set this flag, all keys passed in the following manner: +.PP +.Vb 1 +\& function( \-key => \*(Aqval\*(Aq ); +.Ve +.PP +will have their leading dashes stripped. +.ie n .SS "$Params::Check::NO_DUPLICATES" +.el .SS "\f(CW$Params::Check::NO_DUPLICATES\fP" +.IX Subsection "$Params::Check::NO_DUPLICATES" +If set to true, all keys in the template that are marked as to be +stored in a scalar, will also be removed from the result set. +.PP +Default is false, meaning that when you use \f(CW\*(C`store\*(C'\fR as a template +key, \f(CW\*(C`check\*(C'\fR will put it both in the scalar you supplied, as well as +in the hashref it returns. +.ie n .SS "$Params::Check::PRESERVE_CASE" +.el .SS "\f(CW$Params::Check::PRESERVE_CASE\fP" +.IX Subsection "$Params::Check::PRESERVE_CASE" +If set to true, Params::Check will no longer convert all keys from +the user input to lowercase, but instead expect them to be in the +case the template provided. This is useful when you want to use +similar keys with different casing in your templates. +.PP +Understand that this removes the case-insensitivity feature of this +module. +.PP +Default is 0; +.ie n .SS "$Params::Check::ONLY_ALLOW_DEFINED" +.el .SS "\f(CW$Params::Check::ONLY_ALLOW_DEFINED\fP" +.IX Subsection "$Params::Check::ONLY_ALLOW_DEFINED" +If set to true, Params::Check will require all values passed to be +\&\f(CW\*(C`defined\*(C'\fR. If you wish to enable this on a 'per key' basis, use the +template option \f(CW\*(C`defined\*(C'\fR instead. +.PP +Default is 0; +.ie n .SS "$Params::Check::SANITY_CHECK_TEMPLATE" +.el .SS "\f(CW$Params::Check::SANITY_CHECK_TEMPLATE\fP" +.IX Subsection "$Params::Check::SANITY_CHECK_TEMPLATE" +If set to true, Params::Check will sanity check templates, validating +for errors and unknown keys. Although very useful for debugging, this +can be somewhat slow in hot-code and large loops. +.PP +To disable this check, set this variable to \f(CW\*(C`false\*(C'\fR. +.PP +Default is 1; +.ie n .SS "$Params::Check::WARNINGS_FATAL" +.el .SS "\f(CW$Params::Check::WARNINGS_FATAL\fP" +.IX Subsection "$Params::Check::WARNINGS_FATAL" +If set to true, Params::Check will \f(CW\*(C`croak\*(C'\fR when an error during +template validation occurs, rather than return \f(CW\*(C`false\*(C'\fR. +.PP +Default is 0; +.ie n .SS "$Params::Check::CALLER_DEPTH" +.el .SS "\f(CW$Params::Check::CALLER_DEPTH\fP" +.IX Subsection "$Params::Check::CALLER_DEPTH" +This global modifies the argument given to \f(CW\*(C`caller()\*(C'\fR by +\&\f(CW\*(C`Params::Check::check()\*(C'\fR and is useful if you have a custom wrapper +function around \f(CW\*(C`Params::Check::check()\*(C'\fR. The value must be an +integer, indicating the number of wrapper functions inserted between +the real function call and \f(CW\*(C`Params::Check::check()\*(C'\fR. +.PP +Example wrapper function, using a custom stacktrace: +.PP +.Vb 2 +\& sub check { +\& my ($template, $args_in) = @_; +\& +\& local $Params::Check::WARNINGS_FATAL = 1; +\& local $Params::Check::CALLER_DEPTH = $Params::Check::CALLER_DEPTH + 1; +\& my $args_out = Params::Check::check($template, $args_in); +\& +\& my_stacktrace(Params::Check::last_error) unless $args_out; +\& +\& return $args_out; +\& } +.Ve +.PP +Default is 0; +.SH "Acknowledgements" +.IX Header "Acknowledgements" +Thanks to Richard Soderberg for his performance improvements. +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Perl%3A%3AOSType.3 b/data/miniconda3/man/man3/Perl%3A%3AOSType.3 new file mode 100644 index 0000000000000000000000000000000000000000..5d139d5773a55e58a7442c7cc017d2b3913566a2 --- /dev/null +++ b/data/miniconda3/man/man3/Perl%3A%3AOSType.3 @@ -0,0 +1,234 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Perl::OSType 3" +.TH Perl::OSType 3 "2020-12-18" "perl v5.32.1" "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" +Perl::OSType \- Map Perl operating system names to generic types +.SH "VERSION" +.IX Header "VERSION" +version 1.010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Perl::OSType \*(Aq:all\*(Aq; +\& +\& $current_type = os_type(); +\& $other_type = os_type(\*(Aqdragonfly\*(Aq); # gives \*(AqUnix\*(Aq +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Modules that provide OS-specific behaviors often need to know if +the current operating system matches a more generic type of +operating systems. For example, 'linux' is a type of 'Unix' operating system +and so is 'freebsd'. +.PP +This module provides a mapping between an operating system name as given by +\&\f(CW$^O\fR and a more generic type. The initial version is based on the \s-1OS\s0 type +mappings provided in Module::Build and ExtUtils::CBuilder. (Thus, +Microsoft operating systems are given the type 'Windows' rather than 'Win32'.) +.SH "USAGE" +.IX Header "USAGE" +No functions are exported by default. The export tag \*(L":all\*(R" will export +all functions listed below. +.SS "\fBos_type()\fP" +.IX Subsection "os_type()" +.Vb 2 +\& $os_type = os_type(); +\& $os_type = os_type(\*(AqMSWin32\*(Aq); +.Ve +.PP +Returns a single, generic \s-1OS\s0 type for a given operating system name. With no +arguments, returns the \s-1OS\s0 type for the current value of \f(CW$^O\fR. If the +operating system is not recognized, the function will return the empty string. +.SS "\fBis_os_type()\fP" +.IX Subsection "is_os_type()" +.Vb 2 +\& $is_windows = is_os_type(\*(AqWindows\*(Aq); +\& $is_unix = is_os_type(\*(AqUnix\*(Aq, \*(Aqdragonfly\*(Aq); +.Ve +.PP +Given an \s-1OS\s0 type and \s-1OS\s0 name, returns true or false if the \s-1OS\s0 name is of the +given type. As with \f(CW\*(C`os_type\*(C'\fR, it will use the current operating system as a +default if no \s-1OS\s0 name is provided. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\(bu" 4 +Devel::CheckOS +.SH "SUPPORT" +.IX Header "SUPPORT" +.SS "Bugs / Feature Requests" +.IX Subsection "Bugs / Feature Requests" +Please report any bugs or feature requests through the issue tracker +at . +You will be notified automatically of any progress on your issue. +.SS "Source Code" +.IX Subsection "Source Code" +This is open source software. The code repository is available for +public review and contribution under the terms of the license. +.PP + +.PP +.Vb 1 +\& git clone https://github.com/Perl\-Toolchain\-Gang/Perl\-OSType.git +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +David Golden +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Chris 'BinGOs' Williams +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Graham Ollis +.IP "\(bu" 4 +Jonas B. Nielsen +.IP "\(bu" 4 +Owain G. Ainsworth +.IP "\(bu" 4 +Paul Green +.IP "\(bu" 4 +Piotr Roszatycki +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2016 by David Golden. +.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. diff --git a/data/miniconda3/man/man3/PerlIO%3A%3Aencoding.3 b/data/miniconda3/man/man3/PerlIO%3A%3Aencoding.3 new file mode 100644 index 0000000000000000000000000000000000000000..ce021b1b6081351d58763dbfed568905b8196398 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO%3A%3Aencoding.3 @@ -0,0 +1,168 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PerlIO::encoding 3" +.TH PerlIO::encoding 3 "2020-12-18" "perl v5.32.1" "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" +PerlIO::encoding \- encoding layer +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use PerlIO::encoding; +\& +\& open($f, "<:encoding(foo)", "infoo"); +\& open($f, ">:encoding(bar)", "outbar"); +\& +\& use Encode qw(:fallbacks); +\& $PerlIO::encoding::fallback = FB_PERLQQ; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This PerlIO layer opens a filehandle with a transparent encoding filter. +.PP +On input, it converts the bytes expected to be in the specified +character set and encoding to Perl string data (Unicode and +Perl's internal Unicode encoding, \s-1UTF\-8\s0). On output, it converts +Perl string data into the specified character set and encoding. +.PP +When the layer is pushed, the current value of \f(CW$PerlIO::encoding::fallback\fR +is saved and used as the \s-1CHECK\s0 argument when calling the Encode methods +\&\fBencode()\fR and \fBdecode()\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +open, Encode, \*(L"binmode\*(R" in perlfunc, perluniintro diff --git a/data/miniconda3/man/man3/PerlIO%3A%3Ammap.3 b/data/miniconda3/man/man3/PerlIO%3A%3Ammap.3 new file mode 100644 index 0000000000000000000000000000000000000000..6466216dcce8848f2ecdce0721332ed055470a70 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO%3A%3Ammap.3 @@ -0,0 +1,153 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PerlIO::mmap 3" +.TH PerlIO::mmap 3 "2020-12-18" "perl v5.32.1" "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" +PerlIO::mmap \- Memory mapped IO +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& open my $fh, \*(Aq<:mmap\*(Aq, $filename; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This layer does \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR operations by \fBmmap()\fRing the file if possible, but falls back to the default behavior if not. +.SH "IMPLEMENTATION NOTE" +.IX Header "IMPLEMENTATION NOTE" +\&\f(CW\*(C`PerlIO::mmap\*(C'\fR only exists to use XSLoader to load C code that provides support for using memory mapped \s-1IO.\s0 One does not need to explicitly \f(CW\*(C`use PerlIO::mmap;\*(C'\fR. diff --git a/data/miniconda3/man/man3/PerlIO%3A%3Avia%3A%3AQuotedPrint.3 b/data/miniconda3/man/man3/PerlIO%3A%3Avia%3A%3AQuotedPrint.3 new file mode 100644 index 0000000000000000000000000000000000000000..2168a06063a3be964b9bfd864e020afc11567af4 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO%3A%3Avia%3A%3AQuotedPrint.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PerlIO::via::QuotedPrint 3" +.TH PerlIO::via::QuotedPrint 3 "2020-12-18" "perl v5.32.1" "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" +PerlIO::via::QuotedPrint \- PerlIO layer for quoted\-printable strings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use PerlIO::via::QuotedPrint; +\& +\& open( my $in, \*(Aq<:via(QuotedPrint)\*(Aq, \*(Aqfile.qp\*(Aq ) +\& or die "Can\*(Aqt open file.qp for reading: $!\en"; +\& +\& open( my $out, \*(Aq>:via(QuotedPrint)\*(Aq, \*(Aqfile.qp\*(Aq ) +\& or die "Can\*(Aqt open file.qp for writing: $!\en"; +.Ve +.SH "VERSION" +.IX Header "VERSION" +This documentation describes version 0.08. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements a PerlIO layer that works on files encoded in the +quoted-printable format. It will decode from quoted-printable while reading +from a handle, and it will encode as quoted-printable while writing to a handle. +.SH "REQUIRED MODULES" +.IX Header "REQUIRED MODULES" +.Vb 1 +\& MIME::QuotedPrint (any) +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +PerlIO::via, MIME::QuotedPrint, PerlIO::via::Base64, +PerlIO::via::MD5, PerlIO::via::StripHTML, PerlIO::via::Rotate. +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Based on example that was initially added to MIME::QuotedPrint.pm for the +5.8.0 distribution of Perl. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2002, 2003, 2004, 2012 Elizabeth Mattijsen. All rights reserved. +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/PerlIO%3A%3Avia.3 b/data/miniconda3/man/man3/PerlIO%3A%3Avia.3 new file mode 100644 index 0000000000000000000000000000000000000000..0b6e5d8d7a7937fc3a1b22421e4de7bafa41feb3 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO%3A%3Avia.3 @@ -0,0 +1,376 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PerlIO::via 3" +.TH PerlIO::via 3 "2020-12-18" "perl v5.32.1" "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" +PerlIO::via \- Helper class for PerlIO layers implemented in perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use PerlIO::via::Layer; +\& open($fh,"<:via(Layer)",...); +\& +\& use Some::Other::Package; +\& open($fh,">:via(Some::Other::Package)",...); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The PerlIO::via module allows you to develop PerlIO layers in Perl, without +having to go into the nitty gritty of programming C with \s-1XS\s0 as the interface +to Perl. +.PP +One example module, PerlIO::via::QuotedPrint, is included with Perl +5.8.0, and more example modules are available from \s-1CPAN,\s0 such as +PerlIO::via::StripHTML and PerlIO::via::Base64. The +PerlIO::via::StripHTML module for instance, allows you to say: +.PP +.Vb 3 +\& use PerlIO::via::StripHTML; +\& open( my $fh, "<:via(StripHTML)", "index.html" ); +\& my @line = <$fh>; +.Ve +.PP +to obtain the text of an HTML-file in an array with all the HTML-tags +automagically removed. +.PP +Please note that if the layer is created in the PerlIO::via:: namespace, it +does \fBnot\fR have to be fully qualified. The PerlIO::via module will prefix +the PerlIO::via:: namespace if the specified modulename does not exist as a +fully qualified module name. +.SH "EXPECTED METHODS" +.IX Header "EXPECTED METHODS" +To create a Perl module that implements a PerlIO layer in Perl (as opposed to +in C using \s-1XS\s0 as the interface to Perl), you need to supply some of the +following subroutines. It is recommended to create these Perl modules in the +PerlIO::via:: namespace, so that they can easily be located on \s-1CPAN\s0 and use +the default namespace feature of the PerlIO::via module itself. +.PP +Please note that this is an area of recent development in Perl and that the +interface described here is therefore still subject to change (and hopefully +will have better documentation and more examples). +.PP +In the method descriptions below \fI\f(CI$fh\fI\fR will be +a reference to a glob which can be treated as a perl file handle. +It refers to the layer below. \fI\f(CI$fh\fI\fR is not passed if the layer +is at the bottom of the stack, for this reason and to maintain +some level of \*(L"compatibility\*(R" with \s-1TIEHANDLE\s0 classes it is passed last. +.ie n .IP "$class\->\s-1PUSHED\s0([$mode,[$fh]])" 4 +.el .IP "\f(CW$class\fR\->\s-1PUSHED\s0([$mode,[$fh]])" 4 +.IX Item "$class->PUSHED([$mode,[$fh]])" +Should return an object or the class, or \-1 on failure. (Compare +\&\s-1TIEHANDLE.\s0) The arguments are an optional mode string (\*(L"r\*(R", \*(L"w\*(R", +\&\*(L"w+\*(R", ...) and a filehandle for the PerlIO layer below. Mandatory. +.Sp +When the layer is pushed as part of an \f(CW\*(C`open\*(C'\fR call, \f(CW\*(C`PUSHED\*(C'\fR will be called +\&\fIbefore\fR the actual open occurs, whether that be via \f(CW\*(C`OPEN\*(C'\fR, \f(CW\*(C`SYSOPEN\*(C'\fR, +\&\f(CW\*(C`FDOPEN\*(C'\fR or by letting a lower layer do the open. +.ie n .IP "$obj\->\s-1POPPED\s0([$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1POPPED\s0([$fh])" 4 +.IX Item "$obj->POPPED([$fh])" +Optional \- called when the layer is about to be removed. +.ie n .IP "$obj\->\s-1UTF8\s0($belowFlag,[$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1UTF8\s0($belowFlag,[$fh])" 4 +.IX Item "$obj->UTF8($belowFlag,[$fh])" +Optional \- if present it will be called immediately after \s-1PUSHED\s0 has +returned. It should return a true value if the layer expects data to be +\&\s-1UTF\-8\s0 encoded. If it returns true, the result is as if the caller had done +.Sp +.Vb 1 +\& ":via(YourClass):utf8" +.Ve +.Sp +If not present or if it returns false, then the stream is left with +the \s-1UTF\-8\s0 flag clear. +The \fI\f(CI$belowFlag\fI\fR argument will be true if there is a layer below +and that layer was expecting \s-1UTF\-8.\s0 +.ie n .IP "$obj\->\s-1OPEN\s0($path,$mode,[$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1OPEN\s0($path,$mode,[$fh])" 4 +.IX Item "$obj->OPEN($path,$mode,[$fh])" +Optional \- if not present a lower layer does the open. +If present, called for normal opens after the layer is pushed. +This function is subject to change as there is no easy way +to get a lower layer to do the open and then regain control. +.ie n .IP "$obj\->\s-1BINMODE\s0([$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1BINMODE\s0([$fh])" 4 +.IX Item "$obj->BINMODE([$fh])" +Optional \- if not present the layer is popped on binmode($fh) or when \f(CW\*(C`:raw\*(C'\fR +is pushed. If present it should return 0 on success, \-1 on error, or undef +to pop the layer. +.ie n .IP "$obj\->\s-1FDOPEN\s0($fd,[$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1FDOPEN\s0($fd,[$fh])" 4 +.IX Item "$obj->FDOPEN($fd,[$fh])" +Optional \- if not present a lower layer does the open. +If present, called after the layer is pushed for opens which pass +a numeric file descriptor. +This function is subject to change as there is no easy way +to get a lower layer to do the open and then regain control. +.ie n .IP "$obj\->\s-1SYSOPEN\s0($path,$imode,$perm,[$fh])" 4 +.el .IP "\f(CW$obj\fR\->\s-1SYSOPEN\s0($path,$imode,$perm,[$fh])" 4 +.IX Item "$obj->SYSOPEN($path,$imode,$perm,[$fh])" +Optional \- if not present a lower layer does the open. +If present, called after the layer is pushed for sysopen style opens +which pass a numeric mode and permissions. +This function is subject to change as there is no easy way +to get a lower layer to do the open and then regain control. +.ie n .IP "$obj\->\s-1FILENO\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1FILENO\s0($fh)" 4 +.IX Item "$obj->FILENO($fh)" +Returns a numeric value for a Unix-like file descriptor. Returns \-1 if +there isn't one. Optional. Default is fileno($fh). +.ie n .IP "$obj\->\s-1READ\s0($buffer,$len,$fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1READ\s0($buffer,$len,$fh)" 4 +.IX Item "$obj->READ($buffer,$len,$fh)" +Returns the number of octets placed in \f(CW$buffer\fR (must be less than or +equal to \f(CW$len\fR). Optional. Default is to use \s-1FILL\s0 instead. +.ie n .IP "$obj\->\s-1WRITE\s0($buffer,$fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1WRITE\s0($buffer,$fh)" 4 +.IX Item "$obj->WRITE($buffer,$fh)" +Returns the number of octets from \f(CW$buffer\fR that have been successfully written. +.ie n .IP "$obj\->\s-1FILL\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1FILL\s0($fh)" 4 +.IX Item "$obj->FILL($fh)" +Should return a string to be placed in the buffer. Optional. If not +provided, must provide \s-1READ\s0 or reject handles open for reading in +\&\s-1PUSHED.\s0 +.ie n .IP "$obj\->\s-1CLOSE\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1CLOSE\s0($fh)" 4 +.IX Item "$obj->CLOSE($fh)" +Should return 0 on success, \-1 on error. +Optional. +.ie n .IP "$obj\->\s-1SEEK\s0($posn,$whence,$fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1SEEK\s0($posn,$whence,$fh)" 4 +.IX Item "$obj->SEEK($posn,$whence,$fh)" +Should return 0 on success, \-1 on error. +Optional. Default is to fail, but that is likely to be changed +in future. +.ie n .IP "$obj\->\s-1TELL\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1TELL\s0($fh)" 4 +.IX Item "$obj->TELL($fh)" +Returns file position. +Optional. Default to be determined. +.ie n .IP "$obj\->\s-1UNREAD\s0($buffer,$fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1UNREAD\s0($buffer,$fh)" 4 +.IX Item "$obj->UNREAD($buffer,$fh)" +Returns the number of octets from \f(CW$buffer\fR that have been successfully +saved to be returned on future \s-1FILL/READ\s0 calls. Optional. Default is +to push data into a temporary layer above this one. +.ie n .IP "$obj\->\s-1FLUSH\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1FLUSH\s0($fh)" 4 +.IX Item "$obj->FLUSH($fh)" +Flush any buffered write data. May possibly be called on readable +handles too. Should return 0 on success, \-1 on error. +.ie n .IP "$obj\->\s-1SETLINEBUF\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1SETLINEBUF\s0($fh)" 4 +.IX Item "$obj->SETLINEBUF($fh)" +Optional. No return. +.ie n .IP "$obj\->\s-1CLEARERR\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1CLEARERR\s0($fh)" 4 +.IX Item "$obj->CLEARERR($fh)" +Optional. No return. +.ie n .IP "$obj\->\s-1ERROR\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1ERROR\s0($fh)" 4 +.IX Item "$obj->ERROR($fh)" +Optional. Returns error state. Default is no error until a mechanism +to signal error (die?) is worked out. +.ie n .IP "$obj\->\s-1EOF\s0($fh)" 4 +.el .IP "\f(CW$obj\fR\->\s-1EOF\s0($fh)" 4 +.IX Item "$obj->EOF($fh)" +Optional. Returns end-of-file state. Default is a function of the return +value of \s-1FILL\s0 or \s-1READ.\s0 +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Check the PerlIO::via:: namespace on \s-1CPAN\s0 for examples of PerlIO layers +implemented in Perl. To give you an idea how simple the implementation of +a PerlIO layer can look, a simple example is included here. +.SS "Example \- a Hexadecimal Handle" +.IX Subsection "Example - a Hexadecimal Handle" +Given the following module, PerlIO::via::Hex : +.PP +.Vb 1 +\& package PerlIO::via::Hex; +\& +\& sub PUSHED +\& { +\& my ($class,$mode,$fh) = @_; +\& # When writing we buffer the data +\& my $buf = \*(Aq\*(Aq; +\& return bless \e$buf,$class; +\& } +\& +\& sub FILL +\& { +\& my ($obj,$fh) = @_; +\& my $line = <$fh>; +\& return (defined $line) ? pack("H*", $line) : undef; +\& } +\& +\& sub WRITE +\& { +\& my ($obj,$buf,$fh) = @_; +\& $$obj .= unpack("H*", $buf); +\& return length($buf); +\& } +\& +\& sub FLUSH +\& { +\& my ($obj,$fh) = @_; +\& print $fh $$obj or return \-1; +\& $$obj = \*(Aq\*(Aq; +\& return 0; +\& } +\& +\& 1; +.Ve +.PP +The following code opens up an output handle that will convert any +output to a hexadecimal dump of the output bytes: for example \*(L"A\*(R" will +be converted to \*(L"41\*(R" (on ASCII-based machines, on \s-1EBCDIC\s0 platforms +the \*(L"A\*(R" will become \*(L"c1\*(R") +.PP +.Vb 2 +\& use PerlIO::via::Hex; +\& open(my $fh, ">:via(Hex)", "foo.hex"); +.Ve +.PP +and the following code will read the hexdump in and convert it +on the fly back into bytes: +.PP +.Vb 1 +\& open(my $fh, "<:via(Hex)", "foo.hex"); +.Ve diff --git a/data/miniconda3/man/man3/PerlIO.3 b/data/miniconda3/man/man3/PerlIO.3 new file mode 100644 index 0000000000000000000000000000000000000000..508be4688f8a2c694b3e3b8e142d34ee49434fe5 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO.3 @@ -0,0 +1,505 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "PerlIO 3" +.TH PerlIO 3 "2020-12-18" "perl v5.32.1" "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" +PerlIO \- On demand loader for PerlIO layers and root of PerlIO::* name space +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # support platform\-native and CRLF text files +\& open(my $fh, "<:crlf", "my.txt") or die "open failed: $!"; +\& +\& # append UTF\-8 encoded text +\& open(my $fh, ">>:encoding(UTF\-8)", "some.log") +\& or die "open failed: $!"; +\& +\& # portably open a binary file for reading +\& open(my $fh, "<", "his.jpg") or die "open failed: $!"; +\& binmode($fh) or die "binmode failed: $!"; +\& +\& Shell: +\& PERLIO=:perlio perl .... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When an undefined layer 'foo' is encountered in an \f(CW\*(C`open\*(C'\fR or +\&\f(CW\*(C`binmode\*(C'\fR layer specification then C code performs the equivalent of: +.PP +.Vb 1 +\& use PerlIO \*(Aqfoo\*(Aq; +.Ve +.PP +The Perl code in PerlIO.pm then attempts to locate a layer by doing +.PP +.Vb 1 +\& require PerlIO::foo; +.Ve +.PP +Otherwise the \f(CW\*(C`PerlIO\*(C'\fR package is a place holder for additional +PerlIO related functions. +.SS "Layers" +.IX Subsection "Layers" +Generally speaking, PerlIO layers (previously sometimes referred to as +\&\*(L"disciplines\*(R") are an ordered stack applied to a filehandle (specified as +a space\- or colon-separated list, conventionally written with a leading +colon). Each layer performs some operation on any input or output, except +when bypassed such as with \f(CW\*(C`sysread\*(C'\fR or \f(CW\*(C`syswrite\*(C'\fR. Read operations go +through the stack in the order they are set (left to right), and write +operations in the reverse order. +.PP +There are also layers which actually just set flags on lower layers, or +layers that modify the current stack but don't persist on the stack +themselves; these are referred to as pseudo-layers. +.PP +When opening a handle, it will be opened with any layers specified +explicitly in the \fBopen()\fR call (or the platform defaults, if specified as +a colon with no following layers). +.PP +If layers are not explicitly specified, the handle will be opened with the +layers specified by the ${^OPEN} variable (usually +set by using the open pragma for a lexical scope, or the \f(CW\*(C`\-C\*(C'\fR +command-line switch or \f(CW\*(C`PERL_UNICODE\*(C'\fR environment variable for the main +program scope). +.PP +If layers are not specified in the \fBopen()\fR call or \f(CW\*(C`${^OPEN}\*(C'\fR variable, +the handle will be opened with the default layer stack configured for that +architecture; see \*(L"Defaults and how to override them\*(R". +.PP +Some layers will automatically insert required lower level layers if not +present; for example \f(CW\*(C`:perlio\*(C'\fR will insert \f(CW\*(C`:unix\*(C'\fR below itself for low +level \s-1IO,\s0 and \f(CW\*(C`:encoding\*(C'\fR will insert the platform defaults for buffered +\&\s-1IO.\s0 +.PP +The \f(CW\*(C`binmode\*(C'\fR function can be called on an opened handle to push +additional layers onto the stack, which may also modify the existing +layers. \f(CW\*(C`binmode\*(C'\fR called with no layers will remove or unset any +existing layers which transform the byte stream, making the handle +suitable for binary data. +.PP +The following layers are currently defined: +.IP ":unix" 4 +.IX Item ":unix" +Lowest level layer which provides basic PerlIO operations in terms of +\&\s-1UNIX/POSIX\s0 numeric file descriptor calls +(\fBopen()\fR, \fBread()\fR, \fBwrite()\fR, \fBlseek()\fR, \fBclose()\fR). +It is used even on non-Unix architectures, and most other layers operate on +top of it. +.IP ":stdio" 4 +.IX Item ":stdio" +Layer which calls \f(CW\*(C`fread\*(C'\fR, \f(CW\*(C`fwrite\*(C'\fR and \f(CW\*(C`fseek\*(C'\fR/\f(CW\*(C`ftell\*(C'\fR etc. Note +that as this is \*(L"real\*(R" stdio it will ignore any layers beneath it and +go straight to the operating system via the C library as usual. +This layer implements both low level \s-1IO\s0 and buffering, but is rarely used +on modern architectures. +.IP ":perlio" 4 +.IX Item ":perlio" +A from scratch implementation of buffering for PerlIO. Provides fast +access to the buffer for \f(CW\*(C`sv_gets\*(C'\fR which implements Perl's readline/<> +and in general attempts to minimize data copying. +.Sp +\&\f(CW\*(C`:perlio\*(C'\fR will insert a \f(CW\*(C`:unix\*(C'\fR layer below itself to do low level \s-1IO.\s0 +.IP ":crlf" 4 +.IX Item ":crlf" +A layer that implements DOS/Windows like \s-1CRLF\s0 line endings. On read +converts pairs of \s-1CR,LF\s0 to a single \*(L"\en\*(R" newline character. On write +converts each \*(L"\en\*(R" to a \s-1CR,LF\s0 pair. Note that this layer will silently +refuse to be pushed on top of itself. +.Sp +It currently does \fInot\fR mimic MS-DOS as far as treating of Control-Z +as being an end-of-file marker. +.Sp +On DOS/Windows like architectures where this layer is part of the defaults, +it also acts like the \f(CW\*(C`:perlio\*(C'\fR layer, and removing the \s-1CRLF\s0 translation +(such as with \f(CW\*(C`:raw\*(C'\fR) will only unset the \s-1CRLF\s0 translation flag. Since +Perl 5.14, you can also apply another \f(CW\*(C`:crlf\*(C'\fR layer later, such as when +the \s-1CRLF\s0 translation must occur after an encoding layer. On other +architectures, it is a mundane \s-1CRLF\s0 translation layer and can be added and +removed normally. +.Sp +.Vb 3 +\& # translate CRLF after encoding on Perl 5.14 or newer +\& binmode $fh, ":raw:encoding(UTF\-16LE):crlf" +\& or die "binmode failed: $!"; +.Ve +.IP ":utf8" 4 +.IX Item ":utf8" +Pseudo-layer that declares that the stream accepts Perl's \fIinternal\fR +upgraded encoding of characters, which is approximately \s-1UTF\-8\s0 on \s-1ASCII\s0 +machines, but UTF-EBCDIC on \s-1EBCDIC\s0 machines. This allows any character +Perl can represent to be read from or written to the stream. +.Sp +This layer (which actually sets a flag on the preceding layer, and is +implicitly set by any \f(CW\*(C`:encoding\*(C'\fR layer) does not translate or validate +byte sequences. It instead indicates that the byte stream will have been +arranged by other layers to be provided in Perl's internal upgraded +encoding, which Perl code (and correctly written \s-1XS\s0 code) will interpret +as decoded Unicode characters. +.Sp +\&\fB\s-1CAUTION\s0\fR: Do not use this layer to translate from \s-1UTF\-8\s0 bytes, as +invalid \s-1UTF\-8\s0 or binary data will result in malformed Perl strings. It is +unlikely to produce invalid \s-1UTF\-8\s0 when used for output, though it will +instead produce UTF-EBCDIC on \s-1EBCDIC\s0 systems. The \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR +layer (hyphen is significant) is preferred as it will ensure translation +between valid \s-1UTF\-8\s0 bytes and valid Unicode characters. +.IP ":bytes" 4 +.IX Item ":bytes" +This is the inverse of the \f(CW\*(C`:utf8\*(C'\fR pseudo-layer. It turns off the flag +on the layer below so that data read from it is considered to +be Perl's internal downgraded encoding, thus interpreted as the native +single-byte encoding of Latin\-1 or \s-1EBCDIC.\s0 Likewise on output Perl will +warn if a \*(L"wide\*(R" character (a codepoint not in the range 0..255) is +written to a such a stream. +.Sp +This is very dangerous to push on a handle using an \f(CW\*(C`:encoding\*(C'\fR layer, +as such a layer assumes to be working with Perl's internal upgraded +encoding, so you will likely get a mangled result. Instead use \f(CW\*(C`:raw\*(C'\fR or +\&\f(CW\*(C`:pop\*(C'\fR to remove encoding layers. +.IP ":raw" 4 +.IX Item ":raw" +The \f(CW\*(C`:raw\*(C'\fR pseudo-layer is \fIdefined\fR as being identical to calling +\&\f(CW\*(C`binmode($fh)\*(C'\fR \- the stream is made suitable for passing binary data, +i.e. each byte is passed as-is. The stream will still be buffered +(but this was not always true before Perl 5.14). +.Sp +In Perl 5.6 and some books the \f(CW\*(C`:raw\*(C'\fR layer is documented as the inverse +of the \f(CW\*(C`:crlf\*(C'\fR layer. That is no longer the case \- other layers which +would alter the binary nature of the stream are also disabled. If you +want \s-1UNIX\s0 line endings on a platform that normally does \s-1CRLF\s0 translation, +but still want \s-1UTF\-8\s0 or encoding defaults, the appropriate thing to do is +to add \f(CW\*(C`:perlio\*(C'\fR to the \s-1PERLIO\s0 environment variable, or open the handle +explicitly with that layer, to replace the platform default of \f(CW\*(C`:crlf\*(C'\fR. +.Sp +The implementation of \f(CW\*(C`:raw\*(C'\fR is as a pseudo-layer which when \*(L"pushed\*(R" +pops itself and then any layers which would modify the binary data stream. +(Undoing \f(CW\*(C`:utf8\*(C'\fR and \f(CW\*(C`:crlf\*(C'\fR may be implemented by clearing flags +rather than popping layers but that is an implementation detail.) +.Sp +As a consequence of the fact that \f(CW\*(C`:raw\*(C'\fR normally pops layers, +it usually only makes sense to have it as the only or first element in +a layer specification. When used as the first element it provides +a known base on which to build e.g. +.Sp +.Vb 2 +\& open(my $fh,">:raw:encoding(UTF\-8)",...) +\& or die "open failed: $!"; +.Ve +.Sp +will construct a \*(L"binary\*(R" stream regardless of the platform defaults, +but then enable \s-1UTF\-8\s0 translation. +.IP ":pop" 4 +.IX Item ":pop" +A pseudo-layer that removes the top-most layer. Gives Perl code a +way to manipulate the layer stack. Note that \f(CW\*(C`:pop\*(C'\fR only works on +real layers and will not undo the effects of pseudo-layers or flags +like \f(CW\*(C`:utf8\*(C'\fR. An example of a possible use might be: +.Sp +.Vb 7 +\& open(my $fh,...) or die "open failed: $!"; +\& ... +\& binmode($fh,":encoding(...)") or die "binmode failed: $!"; +\& # next chunk is encoded +\& ... +\& binmode($fh,":pop") or die "binmode failed: $!"; +\& # back to un\-encoded +.Ve +.Sp +A more elegant (and safer) interface is needed. +.IP ":win32" 4 +.IX Item ":win32" +On Win32 platforms this \fIexperimental\fR layer uses the native \*(L"handle\*(R" \s-1IO\s0 +rather than the unix-like numeric file descriptor layer. Known to be +buggy as of Perl 5.8.2. +.SS "Custom Layers" +.IX Subsection "Custom Layers" +It is possible to write custom layers in addition to the above builtin +ones, both in C/XS and Perl, as a module named \f(CW\*(C`PerlIO::\*(C'\fR. +Some custom layers come with the Perl distribution. +.IP ":encoding" 4 +.IX Item ":encoding" +Use \f(CW\*(C`:encoding(ENCODING)\*(C'\fR to transparently do character set and encoding +transformations, for example from Shift-JIS to Unicode. Note that an +\&\f(CW\*(C`:encoding\*(C'\fR also enables \f(CW\*(C`:utf8\*(C'\fR. See PerlIO::encoding for more +information. +.IP ":mmap" 4 +.IX Item ":mmap" +A layer which implements \*(L"reading\*(R" of files by using \f(CW\*(C`mmap()\*(C'\fR to +make a (whole) file appear in the process's address space, and then +using that as PerlIO's \*(L"buffer\*(R". This \fImay\fR be faster in certain +circumstances for large files, and may result in less physical memory +use when multiple processes are reading the same file. +.Sp +Files which are not \f(CW\*(C`mmap()\*(C'\fR\-able revert to behaving like the \f(CW\*(C`:perlio\*(C'\fR +layer. Writes also behave like the \f(CW\*(C`:perlio\*(C'\fR layer, as \f(CW\*(C`mmap()\*(C'\fR for write +needs extra house-keeping (to extend the file) which negates any advantage. +.Sp +The \f(CW\*(C`:mmap\*(C'\fR layer will not exist if the platform does not support \f(CW\*(C`mmap()\*(C'\fR. +See PerlIO::mmap for more information. +.IP ":via" 4 +.IX Item ":via" +\&\f(CW\*(C`:via(MODULE)\*(C'\fR allows a transformation to be applied by an arbitrary Perl +module, for example compression / decompression, encryption / decryption. +See PerlIO::via for more information. +.IP ":scalar" 4 +.IX Item ":scalar" +A layer implementing \*(L"in memory\*(R" files using scalar variables, +automatically used in place of the platform defaults for \s-1IO\s0 when opening +such a handle. As such, the scalar is expected to act like a file, only +containing or storing bytes. See PerlIO::scalar for more information. +.SS "Alternatives to raw" +.IX Subsection "Alternatives to raw" +To get a binary stream an alternate method is to use: +.PP +.Vb 2 +\& open(my $fh,"<","whatever") or die "open failed: $!"; +\& binmode($fh) or die "binmode failed: $!"; +.Ve +.PP +This has the advantage of being backward compatible with older versions +of Perl that did not use PerlIO or where \f(CW\*(C`:raw\*(C'\fR was buggy (as it was +before Perl 5.14). +.PP +To get an unbuffered stream specify an unbuffered layer (e.g. \f(CW\*(C`:unix\*(C'\fR) +in the open call: +.PP +.Vb 1 +\& open(my $fh,"<:unix",$path) or die "open failed: $!"; +.Ve +.SS "Defaults and how to override them" +.IX Subsection "Defaults and how to override them" +If the platform is MS-DOS like and normally does \s-1CRLF\s0 to \*(L"\en\*(R" +translation for text files then the default layers are: +.PP +.Vb 1 +\& :unix:crlf +.Ve +.PP +Otherwise if \f(CW\*(C`Configure\*(C'\fR found out how to do \*(L"fast\*(R" \s-1IO\s0 using the system's +stdio (not common on modern architectures), then the default layers are: +.PP +.Vb 1 +\& :stdio +.Ve +.PP +Otherwise the default layers are +.PP +.Vb 1 +\& :unix:perlio +.Ve +.PP +Note that the \*(L"default stack\*(R" depends on the operating system and on the +Perl version, and both the compile-time and runtime configurations of +Perl. The default can be overridden by setting the environment variable +\&\s-1PERLIO\s0 to a space or colon separated list of layers, however this cannot +be used to set layers that require loading modules like \f(CW\*(C`:encoding\*(C'\fR. +.PP +This can be used to see the effect of/bugs in the various layers e.g. +.PP +.Vb 3 +\& cd .../perl/t +\& PERLIO=:stdio ./perl harness +\& PERLIO=:perlio ./perl harness +.Ve +.PP +For the various values of \s-1PERLIO\s0 see \*(L"\s-1PERLIO\*(R"\s0 in perlrun. +.PP +The following table summarizes the default layers on UNIX-like and +DOS-like platforms and depending on the setting of \f(CW$ENV{PERLIO}\fR: +.PP +.Vb 5 +\& PERLIO UNIX\-like DOS\-like +\& \-\-\-\-\-\- \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- +\& unset / "" :unix:perlio / :stdio [1] :unix:crlf +\& :stdio :stdio :stdio +\& :perlio :unix:perlio :unix:perlio +\& +\& # [1] ":stdio" if Configure found out how to do "fast stdio" (depends +\& # on the stdio implementation) and in Perl 5.8, else ":unix:perlio" +.Ve +.SS "Querying the layers of filehandles" +.IX Subsection "Querying the layers of filehandles" +The following returns the \fBnames\fR of the PerlIO layers on a filehandle. +.PP +.Vb 1 +\& my @layers = PerlIO::get_layers($fh); # Or FH, *FH, "FH". +.Ve +.PP +The layers are returned in the order an \fBopen()\fR or \fBbinmode()\fR call would +use them, and without colons. +.PP +By default the layers from the input side of the filehandle are +returned; to get the output side, use the optional \f(CW\*(C`output\*(C'\fR argument: +.PP +.Vb 1 +\& my @layers = PerlIO::get_layers($fh, output => 1); +.Ve +.PP +(Usually the layers are identical on either side of a filehandle but +for example with sockets there may be differences.) +.PP +There is no \fBset_layers()\fR, nor does \fBget_layers()\fR return a tied array +mirroring the stack, or anything fancy like that. This is not +accidental or unintentional. The PerlIO layer stack is a bit more +complicated than just a stack (see for example the behaviour of \f(CW\*(C`:raw\*(C'\fR). +You are supposed to use \fBopen()\fR and \fBbinmode()\fR to manipulate the stack. +.PP +\&\fBImplementation details follow, please close your eyes.\fR +.PP +The arguments to layers are by default returned in parentheses after +the name of the layer, and certain layers (like \f(CW\*(C`:utf8\*(C'\fR) are not real +layers but instead flags on real layers; to get all of these returned +separately, use the optional \f(CW\*(C`details\*(C'\fR argument: +.PP +.Vb 1 +\& my @layer_and_args_and_flags = PerlIO::get_layers($fh, details => 1); +.Ve +.PP +The result will be up to be three times the number of layers: +the first element will be a name, the second element the arguments +(unspecified arguments will be \f(CW\*(C`undef\*(C'\fR), the third element the flags, +the fourth element a name again, and so forth. +.PP +\&\fBYou may open your eyes now.\fR +.SH "AUTHOR" +.IX Header "AUTHOR" +Nick Ing-Simmons +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"binmode\*(R" in perlfunc, \*(L"open\*(R" in perlfunc, perlunicode, perliol, +Encode diff --git a/data/miniconda3/man/man3/Pod%3A%3AChecker.3 b/data/miniconda3/man/man3/Pod%3A%3AChecker.3 new file mode 100644 index 0000000000000000000000000000000000000000..22a553385ff1977a8dd1bebc064e2dd6c098e6bb --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AChecker.3 @@ -0,0 +1,563 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Checker 3" +.TH Pod::Checker 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Checker \- check pod documents for syntax errors +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Checker; +\& +\& $syntax_okay = podchecker($filepath, $outputpath, %options); +\& +\& my $checker = Pod::Checker\->new(%options); +\& $checker\->parse_from_file($filepath, \e*STDERR); +.Ve +.SH "OPTIONS/ARGUMENTS" +.IX Header "OPTIONS/ARGUMENTS" +\&\f(CW$filepath\fR is the input \s-1POD\s0 to read and \f(CW$outputpath\fR is +where to write \s-1POD\s0 syntax error messages. Either argument may be a scalar +indicating a file-path, or else a reference to an open filehandle. +If unspecified, the input-file it defaults to \f(CW\*(C`\e*STDIN\*(C'\fR, and +the output-file defaults to \f(CW\*(C`\e*STDERR\*(C'\fR. +.SS "\fBpodchecker()\fP" +.IX Subsection "podchecker()" +This function can take a hash of options: +.IP "\fB\-warnings\fR => \fIval\fR" 4 +.IX Item "-warnings => val" +Turn warnings on/off. \fIval\fR is usually 1 for on, but higher values +trigger additional warnings. See \*(L"Warnings\*(R". +.IP "\fB\-quiet\fR => \fIval\fR" 4 +.IX Item "-quiet => val" +If \f(CW\*(C`val\*(C'\fR is true, do not print any errors/warnings. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBpodchecker\fR will perform syntax checking of Perl5 \s-1POD\s0 format documentation. +.PP +Curious/ambitious users are welcome to propose additional features they wish +to see in \fBPod::Checker\fR and \fBpodchecker\fR and verify that the checks are +consistent with perlpod. +.PP +The following checks are currently performed: +.IP "\(bu" 4 +Unknown '=xxxx' commands, unknown 'X<...>' interior-sequences, +and unterminated interior sequences. +.IP "\(bu" 4 +Check for proper balancing of \f(CW\*(C`=begin\*(C'\fR and \f(CW\*(C`=end\*(C'\fR. The contents of such +a block are generally ignored, i.e. no syntax checks are performed. +.IP "\(bu" 4 +Check for proper nesting and balancing of \f(CW\*(C`=over\*(C'\fR, \f(CW\*(C`=item\*(C'\fR and \f(CW\*(C`=back\*(C'\fR. +.IP "\(bu" 4 +Check for same nested interior-sequences (e.g. +\&\f(CW\*(C`L<...L<...>...>\*(C'\fR). +.IP "\(bu" 4 +Check for malformed or non-existing entities \f(CW\*(C`E<...>\*(C'\fR. +.IP "\(bu" 4 +Check for correct syntax of hyperlinks \f(CW\*(C`L<...>\*(C'\fR. See perlpod +for details. +.IP "\(bu" 4 +Check for unresolved document-internal links. This check may also reveal +misspelled links that seem to be internal links but should be links +to something else. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.SS "Errors" +.IX Subsection "Errors" +.IP "\(bu" 4 +empty =headn +.Sp +A heading (\f(CW\*(C`=head1\*(C'\fR or \f(CW\*(C`=head2\*(C'\fR) without any text? That ain't no +heading! +.IP "\(bu" 4 +=over on line \fIN\fR without closing =back +.IP "\(bu" 4 +You forgot a '=back' before '=head\fIN\fR' +.IP "\(bu" 4 +=over is the last thing in the document?! +.Sp +The \f(CW\*(C`=over\*(C'\fR command does not have a corresponding \f(CW\*(C`=back\*(C'\fR before the +next heading (\f(CW\*(C`=head1\*(C'\fR or \f(CW\*(C`=head2\*(C'\fR) or the end of the file. +.IP "\(bu" 4 +\&'=item' outside of any '=over' +.IP "\(bu" 4 +=back without =over +.Sp +An \f(CW\*(C`=item\*(C'\fR or \f(CW\*(C`=back\*(C'\fR command has been found outside a +\&\f(CW\*(C`=over\*(C'\fR/\f(CW\*(C`=back\*(C'\fR block. +.IP "\(bu" 4 +Can't have a 0 in =over \fIN\fR +.Sp +You need to indent a strictly positive number of spaces, not 0. +.IP "\(bu" 4 +=over should be: '=over' or '=over positive_number' +.Sp +Either have an argumentless =over, or have its argument a strictly positive number. +.IP "\(bu" 4 +=begin \fI\s-1TARGET\s0\fR without matching =end \fI\s-1TARGET\s0\fR +.Sp +A \f(CW\*(C`=begin\*(C'\fR command was found that has no matching =end command. +.IP "\(bu" 4 +=begin without a target? +.Sp +A \f(CW\*(C`=begin\*(C'\fR command was found that is not followed by the formatter +specification. +.IP "\(bu" 4 +=end \fI\s-1TARGET\s0\fR without matching =begin. +.Sp +A standalone \f(CW\*(C`=end\*(C'\fR command was found. +.IP "\(bu" 4 +\&'=end' without a target? +.Sp +\&'=end' directives need to have a target, just like =begin directives. +.IP "\(bu" 4 +\&'=end \fI\s-1TARGET\s0\fR' is invalid. +.Sp +\&\fI\s-1TARGET\s0\fR needs to be one word +.IP "\(bu" 4 +=end \fI\s-1CONTENT\s0\fR doesn't match =begin \fI\s-1TARGET\s0\fR +.Sp +\&\fI\s-1CONTENT\s0\fR needs to match =begin's \fI\s-1TARGET\s0\fR. +.IP "\(bu" 4 +=for without a target? +.Sp +There is no specification of the formatter after the \f(CW\*(C`=for\*(C'\fR command. +.IP "\(bu" 4 +unresolved internal link \fI\s-1NAME\s0\fR +.Sp +The given link to \fI\s-1NAME\s0\fR does not have a matching node in the current +\&\s-1POD.\s0 This also happened when a single word node name is not enclosed in +\&\f(CW""\fR. +.IP "\(bu" 4 +Unknown directive: \fI\s-1CMD\s0\fR +.Sp +An invalid \s-1POD\s0 command has been found. Valid are \f(CW\*(C`=head1\*(C'\fR, \f(CW\*(C`=head2\*(C'\fR, +\&\f(CW\*(C`=head3\*(C'\fR, \f(CW\*(C`=head4\*(C'\fR, \f(CW\*(C`=over\*(C'\fR, \f(CW\*(C`=item\*(C'\fR, \f(CW\*(C`=back\*(C'\fR, \f(CW\*(C`=begin\*(C'\fR, \f(CW\*(C`=end\*(C'\fR, +\&\f(CW\*(C`=for\*(C'\fR, \f(CW\*(C`=pod\*(C'\fR, \f(CW\*(C`=cut\*(C'\fR +.IP "\(bu" 4 +Deleting unknown formatting code \fI\s-1SEQ\s0\fR +.Sp +An invalid markup command has been encountered. Valid are: +\&\f(CW\*(C`B<>\*(C'\fR, \f(CW\*(C`C<>\*(C'\fR, \f(CW\*(C`E<>\*(C'\fR, \f(CW\*(C`F<>\*(C'\fR, +\&\f(CW\*(C`I<>\*(C'\fR, \f(CW\*(C`L<>\*(C'\fR, \f(CW\*(C`S<>\*(C'\fR, \f(CW\*(C`X<>\*(C'\fR, +\&\f(CW\*(C`Z<>\*(C'\fR +.IP "\(bu" 4 +Unterminated \fI\s-1SEQ\s0\fR<> sequence +.Sp +An unclosed formatting code +.IP "\(bu" 4 +An E<...> surrounding strange content +.Sp +The \fI\s-1STRING\s0\fR found cannot be interpreted as a character entity. +.IP "\(bu" 4 +An empty E<> +.IP "\(bu" 4 +An empty \f(CW\*(C`L<>\*(C'\fR +.IP "\(bu" 4 +An empty X<> +.Sp +There needs to be content inside E, L, and X formatting codes. +.IP "\(bu" 4 +A non-empty Z<> +.Sp +The \f(CW\*(C`Z<>\*(C'\fR sequence is supposed to be empty. +.IP "\(bu" 4 +Spurious text after =pod / =cut +.Sp +The commands \f(CW\*(C`=pod\*(C'\fR and \f(CW\*(C`=cut\*(C'\fR do not take any arguments. +.IP "\(bu" 4 +=back doesn't take any parameters, but you said =back \fI\s-1ARGUMENT\s0\fR +.Sp +The \f(CW\*(C`=back\*(C'\fR command does not take any arguments. +.IP "\(bu" 4 +=pod directives shouldn't be over one line long! Ignoring all \fIN\fR lines of content +.Sp +Self explanatory +.IP "\(bu" 4 +=cut found outside a pod block. +.Sp +A '=cut' directive found in the middle of non-POD +.IP "\(bu" 4 +Invalid =encoding syntax: \fI\s-1CONTENT\s0\fR +.Sp +Syntax error in =encoding directive +.SS "Warnings" +.IX Subsection "Warnings" +These may not necessarily cause trouble, but indicate mediocre style. +.IP "\(bu" 4 +nested commands \fI\s-1CMD\s0\fR<...\fI\s-1CMD\s0\fR<...>...> +.Sp +Two nested identical markup commands have been found. Generally this +does not make sense. +.IP "\(bu" 4 +multiple occurrences (\fIN\fR) of link target \fIname\fR +.Sp +The \s-1POD\s0 file has some \f(CW\*(C`=item\*(C'\fR and/or \f(CW\*(C`=head\*(C'\fR commands that have +the same text. Potential hyperlinks to such a text cannot be unique then. +This warning is printed only with warning level greater than one. +.IP "\(bu" 4 +line containing nothing but whitespace in paragraph +.Sp +There is some whitespace on a seemingly empty line. \s-1POD\s0 is very sensitive +to such things, so this is flagged. \fBvi\fR users switch on the \fBlist\fR +option to avoid this problem. +.IP "\(bu" 4 +=item has no contents +.Sp +There is a list \f(CW\*(C`=item\*(C'\fR that has no text contents. You probably want to delete +empty items. +.IP "\(bu" 4 +You can't have =items (as at line \fIN\fR) unless the first thing after the =over is an =item +.Sp +A list introduced by \f(CW\*(C`=over\*(C'\fR starts with a text or verbatim paragraph, +but continues with \f(CW\*(C`=item\*(C'\fRs. Move the non-item paragraph out of the +\&\f(CW\*(C`=over\*(C'\fR/\f(CW\*(C`=back\*(C'\fR block. +.IP "\(bu" 4 +Expected '=item \fI\s-1EXPECTED VALUE\s0\fR' +.IP "\(bu" 4 +Expected '=item *' +.IP "\(bu" 4 +Possible =item type mismatch: '\fIx\fR' found leading a supposed definition =item +.Sp +A list started with e.g. a bullet-like \f(CW\*(C`=item\*(C'\fR and continued with a +numbered one. This is obviously inconsistent. For most translators the +type of the \fIfirst\fR \f(CW\*(C`=item\*(C'\fR determines the type of the list. +.IP "\(bu" 4 +You have '=item x' instead of the expected '=item \fIN\fR' +.Sp +Erroneous numbering of =item numbers; they need to ascend consecutively. +.IP "\(bu" 4 +Unknown E content in E<\fI\s-1CONTENT\s0\fR> +.Sp +A character entity was found that does not belong to the standard +\&\s-1ISO\s0 set or the \s-1POD\s0 specials \f(CW\*(C`verbar\*(C'\fR and \f(CW\*(C`sol\*(C'\fR. \fICurrently, this warning +only appears if a character entity was found that does not have a Unicode +character. This should be fixed to adhere to the original warning.\fR +.IP "\(bu" 4 +empty =over/=back block +.Sp +The list opened with \f(CW\*(C`=over\*(C'\fR does not contain anything. +.IP "\(bu" 4 +empty section in previous paragraph +.Sp +The previous section (introduced by a \f(CW\*(C`=head\*(C'\fR command) does not contain +any valid content. This usually indicates that something is missing. Note: A +\&\f(CW\*(C`=head1\*(C'\fR followed immediately by \f(CW\*(C`=head2\*(C'\fR does not trigger this warning. +.IP "\(bu" 4 +Verbatim paragraph in \s-1NAME\s0 section +.Sp +The \s-1NAME\s0 section (\f(CW\*(C`=head1 NAME\*(C'\fR) should consist of a single paragraph +with the script/module name, followed by a dash `\-' and a very short +description of what the thing is good for. +.IP "\(bu" 4 +=head\fIn\fR without preceding higher level +.Sp +For example if there is a \f(CW\*(C`=head2\*(C'\fR in the \s-1POD\s0 file prior to a +\&\f(CW\*(C`=head1\*(C'\fR. +.SS "Hyperlinks" +.IX Subsection "Hyperlinks" +There are some warnings with respect to malformed hyperlinks: +.IP "\(bu" 4 +ignoring leading/trailing whitespace in link +.Sp +There is whitespace at the beginning or the end of the contents of +L<...>. +.IP "\(bu" 4 +alternative text/node '%s' contains non-escaped | or / +.Sp +The characters \f(CW\*(C`|\*(C'\fR and \f(CW\*(C`/\*(C'\fR are special in the L<...> context. +Although the hyperlink parser does its best to determine which \*(L"/\*(R" is +text and which is a delimiter in case of doubt, one ought to escape +these literal characters like this: +.Sp +.Vb 2 +\& / E +\& | E +.Ve +.PP +Note that the line number of the error/warning may refer to the line number of +the start of the paragraph in which the error/warning exists, not the line +number that the error/warning is on. This bug is present in errors/warnings +related to formatting codes. \fIThis should be fixed.\fR +.SH "RETURN VALUE" +.IX Header "RETURN VALUE" +\&\fBpodchecker\fR returns the number of \s-1POD\s0 syntax errors found or \-1 if +there were no \s-1POD\s0 commands at all found in the file. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +See \*(L"\s-1SYNOPSIS\*(R"\s0 +.SH "SCRIPTS" +.IX Header "SCRIPTS" +The \fBpodchecker\fR script that comes with this distribution is a lean wrapper +around this module. See the online manual with +.PP +.Vb 2 +\& podchecker \-help +\& podchecker \-man +.Ve +.SH "INTERFACE" +.IX Header "INTERFACE" +While checking, this module collects document properties, e.g. the nodes +for hyperlinks (\f(CW\*(C`=headX\*(C'\fR, \f(CW\*(C`=item\*(C'\fR) and index entries (\f(CW\*(C`X<>\*(C'\fR). +\&\s-1POD\s0 translators can use this feature to syntax-check and get the nodes in +a first pass before actually starting to convert. This is expensive in terms +of execution time, but allows for very robust conversions. +.PP +Since v1.24 the \fBPod::Checker\fR module uses only the \fBpoderror\fR +method to print errors and warnings. The summary output (e.g. +\&\*(L"Pod syntax \s-1OK\*(R"\s0) has been dropped from the module and has been included in +\&\fBpodchecker\fR (the script). This allows users of \fBPod::Checker\fR to +control completely the output behavior. Users of \fBpodchecker\fR (the script) +get the well-known behavior. +.PP +v1.45 inherits from Pod::Simple as opposed to all previous versions +inheriting from Pod::Parser. Do \fBnot\fR use Pod::Simple's interface when +using Pod::Checker unless it is documented somewhere on this page. I +repeat, \s-1DO\s0 \fB\s-1NOT\s0\fR \s-1USE POD::SIMPLE\s0'S \s-1INTERFACE.\s0 +.ie n .IP """Pod::Checker\->new( %options )""" 4 +.el .IP "\f(CWPod::Checker\->new( %options )\fR" 4 +.IX Item "Pod::Checker->new( %options )" +Return a reference to a new Pod::Checker object that inherits from +Pod::Simple and is used for calling the required methods later. The +following options are recognized: +.Sp +\&\f(CW\*(C`\-warnings => num\*(C'\fR + Print warnings if \f(CW\*(C`num\*(C'\fR is true. The higher the value of \f(CW\*(C`num\*(C'\fR, +the more warnings are printed. Currently there are only levels 1 and 2. +.Sp +\&\f(CW\*(C`\-quiet => num\*(C'\fR + If \f(CW\*(C`num\*(C'\fR is true, do not print any errors/warnings. This is useful +when Pod::Checker is used to munge \s-1POD\s0 code into plain text from within +\&\s-1POD\s0 formatters. +.ie n .IP """$checker\->poderror( @args )""" 4 +.el .IP "\f(CW$checker\->poderror( @args )\fR" 4 +.IX Item "$checker->poderror( @args )" +.PD 0 +.ie n .IP """$checker\->poderror( {%opts}, @args )""" 4 +.el .IP "\f(CW$checker\->poderror( {%opts}, @args )\fR" 4 +.IX Item "$checker->poderror( {%opts}, @args )" +.PD +Internal method for printing errors and warnings. If no options are given, +simply prints \*(L"@_\*(R". The following options are recognized and used to form +the output: +.Sp +.Vb 1 +\& \-msg +.Ve +.Sp +A message to print prior to \f(CW@args\fR. +.Sp +.Vb 1 +\& \-line +.Ve +.Sp +The line number the error occurred in. +.Sp +.Vb 1 +\& \-file +.Ve +.Sp +The file (name) the error occurred in. Defaults to the name of the current +file being processed. +.Sp +.Vb 1 +\& \-severity +.Ve +.Sp +The error level, should be '\s-1WARNING\s0' or '\s-1ERROR\s0'. +.ie n .IP """$checker\->num_errors()""" 4 +.el .IP "\f(CW$checker\->num_errors()\fR" 4 +.IX Item "$checker->num_errors()" +Set (if argument specified) and retrieve the number of errors found. +.ie n .IP """$checker\->num_warnings()""" 4 +.el .IP "\f(CW$checker\->num_warnings()\fR" 4 +.IX Item "$checker->num_warnings()" +Set (if argument specified) and retrieve the number of warnings found. +.ie n .IP """$checker\->name()""" 4 +.el .IP "\f(CW$checker\->name()\fR" 4 +.IX Item "$checker->name()" +Set (if argument specified) and retrieve the canonical name of \s-1POD\s0 as +found in the \f(CW\*(C`=head1 NAME\*(C'\fR section. +.ie n .IP """$checker\->node()""" 4 +.el .IP "\f(CW$checker\->node()\fR" 4 +.IX Item "$checker->node()" +Add (if argument specified) and retrieve the nodes (as defined by \f(CW\*(C`=headX\*(C'\fR +and \f(CW\*(C`=item\*(C'\fR) of the current \s-1POD.\s0 The nodes are returned in the order of +their occurrence. They consist of plain text, each piece of whitespace is +collapsed to a single blank. +.ie n .IP """$checker\->idx()""" 4 +.el .IP "\f(CW$checker\->idx()\fR" 4 +.IX Item "$checker->idx()" +Add (if argument specified) and retrieve the index entries (as defined by +\&\f(CW\*(C`X<>\*(C'\fR) of the current \s-1POD.\s0 They consist of plain text, each piece +of whitespace is collapsed to a single blank. +.ie n .IP """$checker\->hyperlinks()""" 4 +.el .IP "\f(CW$checker\->hyperlinks()\fR" 4 +.IX Item "$checker->hyperlinks()" +Retrieve an array containing the hyperlinks to things outside +the current \s-1POD\s0 (as defined by \f(CW\*(C`L<>\*(C'\fR). +.Sp +Each is an instance of a class with the following methods: +.IP "\fBline()\fR" 4 +.IX Item "line()" +Returns the approximate line number in which the link was encountered +.IP "\fBtype()\fR" 4 +.IX Item "type()" +Returns the type of the link; one of: +\&\f(CW"url"\fR for things like +\&\f(CW\*(C`http://www.foo\*(C'\fR, \f(CW"man"\fR for man pages, or \f(CW"pod"\fR. +.IP "\fBpage()\fR" 4 +.IX Item "page()" +Returns the linked-to page or url. +.IP "\fBnode()\fR" 4 +.IX Item "node()" +Returns the anchor or node within the linked-to page, or an empty string +(\f(CW""\fR) if none appears in the link. +.SH "AUTHOR" +.IX Header "AUTHOR" +Please report bugs using . +.PP +Brad Appleton (initial version), +Marek Rouchal , +Marc Green (port to Pod::Simple) +Ricardo Signes (more porting to Pod::Simple) +Karl Williamson (more porting to Pod::Simple) +.PP +Based on code for \fB\fBPod::Text::pod2text()\fB\fR written by +Tom Christiansen diff --git a/data/miniconda3/man/man3/Pod%3A%3AEscapes.3 b/data/miniconda3/man/man3/Pod%3A%3AEscapes.3 new file mode 100644 index 0000000000000000000000000000000000000000..b7801b71f74112f7a6ec6715c143e18c811748ee --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AEscapes.3 @@ -0,0 +1,290 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Escapes 3" +.TH Pod::Escapes 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Escapes \- for resolving Pod E<...> sequences +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& use Pod::Escapes qw(e2char); +\& ...la la la, parsing POD, la la la... +\& $text = e2char($e_node\->label); +\& unless(defined $text) { +\& print "Unknown E sequence \e"", $e_node\->label, "\e"!"; +\& } +\& ...else print/interpolate $text... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides things that are useful in decoding +Pod E<...> sequences. Presumably, it should be used +only by Pod parsers and/or formatters. +.PP +By default, Pod::Escapes exports none of its symbols. But +you can request any of them to be exported. +Either request them individually, as with +\&\f(CW\*(C`use Pod::Escapes qw(symbolname symbolname2...);\*(C'\fR, +or you can do \f(CW\*(C`use Pod::Escapes qw(:ALL);\*(C'\fR to get all +exportable symbols. +.SH "GOODIES" +.IX Header "GOODIES" +.IP "e2char($e_content)" 4 +.IX Item "e2char($e_content)" +Given a name or number that could appear in a +\&\f(CW\*(C`E\*(C'\fR sequence, this returns the string that +it stands for. For example, \f(CW\*(C`e2char(\*(Aqsol\*(Aq)\*(C'\fR, \f(CW\*(C`e2char(\*(Aq47\*(Aq)\*(C'\fR, +\&\f(CW\*(C`e2char(\*(Aq0x2F\*(Aq)\*(C'\fR, and \f(CW\*(C`e2char(\*(Aq057\*(Aq)\*(C'\fR all return \*(L"/\*(R", +because \f(CW\*(C`E\*(C'\fR, \f(CW\*(C`E<47>\*(C'\fR, \f(CW\*(C`E<0x2f>\*(C'\fR, +and \f(CW\*(C`E<057>\*(C'\fR, all mean \*(L"/\*(R". If +the name has no known value (as with a name of \*(L"qacute\*(R") or is +syntactically invalid (as with a name of \*(L"1/4\*(R"), this returns undef. +.IP "e2charnum($e_content)" 4 +.IX Item "e2charnum($e_content)" +Given a name or number that could appear in a +\&\f(CW\*(C`E\*(C'\fR sequence, this returns the number of +the Unicode character that this stands for. For example, +\&\f(CW\*(C`e2char(\*(Aqsol\*(Aq)\*(C'\fR, \f(CW\*(C`e2char(\*(Aq47\*(Aq)\*(C'\fR, +\&\f(CW\*(C`e2char(\*(Aq0x2F\*(Aq)\*(C'\fR, and \f(CW\*(C`e2char(\*(Aq057\*(Aq)\*(C'\fR all return 47, +because \f(CW\*(C`E\*(C'\fR, \f(CW\*(C`E<47>\*(C'\fR, \f(CW\*(C`E<0x2f>\*(C'\fR, +and \f(CW\*(C`E<057>\*(C'\fR, all mean \*(L"/\*(R", whose Unicode number is 47. If +the name has no known value (as with a name of \*(L"qacute\*(R") or is +syntactically invalid (as with a name of \*(L"1/4\*(R"), this returns undef. +.ie n .IP "$Name2character{\fIname\fR}" 4 +.el .IP "\f(CW$Name2character\fR{\fIname\fR}" 4 +.IX Item "$Name2character{name}" +Maps from names (as in \f(CW\*(C`E<\f(CIname\f(CW>\*(C'\fR) like \*(L"eacute\*(R" or \*(L"sol\*(R" +to the string that each stands for. Note that this does not +include numerics (like \*(L"64\*(R" or \*(L"x981c\*(R"). Under old Perl versions +(before 5.7) you get a \*(L"?\*(R" in place of characters whose Unicode +value is over 255. +.ie n .IP "$Name2character_number{\fIname\fR}" 4 +.el .IP "\f(CW$Name2character_number\fR{\fIname\fR}" 4 +.IX Item "$Name2character_number{name}" +Maps from names (as in \f(CW\*(C`E<\f(CIname\f(CW>\*(C'\fR) like \*(L"eacute\*(R" or \*(L"sol\*(R" +to the Unicode value that each stands for. For example, +\&\f(CW$Name2character_number{\*(Aqeacute\*(Aq}\fR is 201, and +\&\f(CW$Name2character_number{\*(Aqeacute\*(Aq}\fR is 8364. You get the correct +Unicode value, regardless of the version of Perl you're using \*(-- +which differs from \f(CW%Name2character\fR's behavior under pre\-5.7 Perls. +.Sp +Note that this hash does not +include numerics (like \*(L"64\*(R" or \*(L"x981c\*(R"). +.ie n .IP "$Latin1Code_to_fallback{\fIinteger\fR}" 4 +.el .IP "\f(CW$Latin1Code_to_fallback\fR{\fIinteger\fR}" 4 +.IX Item "$Latin1Code_to_fallback{integer}" +For numbers in the range 160 (0x00A0) to 255 (0x00FF), this maps +from the character code for a Latin\-1 character (like 233 for +lowercase e\-acute) to the US-ASCII character that best aproximates +it (like \*(L"e\*(R"). You may find this useful if you are rendering +\&\s-1POD\s0 in a format that you think deals well only with US-ASCII +characters. +.ie n .IP "$Latin1Char_to_fallback{\fIcharacter\fR}" 4 +.el .IP "\f(CW$Latin1Char_to_fallback\fR{\fIcharacter\fR}" 4 +.IX Item "$Latin1Char_to_fallback{character}" +Just as above, but maps from characters (like \*(L"\exE9\*(R", +lowercase e\-acute) to characters (like \*(L"e\*(R"). +.ie n .IP "$Code2USASCII{\fIinteger\fR}" 4 +.el .IP "\f(CW$Code2USASCII\fR{\fIinteger\fR}" 4 +.IX Item "$Code2USASCII{integer}" +This maps from US-ASCII codes (like 32) to the corresponding +character (like space, for 32). Only characters 32 to 126 are +defined. This is meant for use by \f(CW\*(C`e2char($x)\*(C'\fR when it senses +that it's running on a non-ASCII platform (where chr(32) doesn't +get you a space \*(-- but \f(CW$Code2USASCII\fR{32} will). It's +documented here just in case you might find it useful. +.SH "CAVEATS" +.IX Header "CAVEATS" +On Perl versions before 5.7, Unicode characters with a value +over 255 (like lambda or emdash) can't be conveyed. This +module does work under such early Perl versions, but in the +place of each such character, you get a \*(L"?\*(R". Latin\-1 +characters (characters 160\-255) are unaffected. +.PP +Under \s-1EBCDIC\s0 platforms, \f(CW\*(C`e2char($n)\*(C'\fR may not always be the +same as \f(CW\*(C`chr(e2charnum($n))\*(C'\fR, and ditto for +\&\f(CW$Name2character{$name}\fR and +\&\f(CW\*(C`chr($Name2character_number{$name})\*(C'\fR, because the strings are returned as +native, and the numbers are returned as Unicode. +However, for Perls starting with v5.8, \f(CW\*(C`e2char($n)\*(C'\fR is the same as +\&\f(CW\*(C`chr(utf8::unicode_to_native(e2charnum($n)))\*(C'\fR, and ditto for +\&\f(CW$Name2character{$name}\fR and +\&\f(CW\*(C`chr(utf8::unicode_to_native($Name2character_number{$name}))\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Browser \- a pod web server based on Catalyst. +.PP +Pod::Checker \- check pod documents for syntax errors. +.PP +Pod::Coverage \- check if the documentation for a module is comprehensive. +.PP +perlpod \- description of pod format (for people documenting with pod). +.PP +perlpodspec \- specification of pod format (for people processing it). +.PP +Text::Unidecode \- \s-1ASCII\s0 transliteration of Unicode text. +.SH "REPOSITORY" +.IX Header "REPOSITORY" + +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2001\-2004 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.PP +Portions of the data tables in this module are derived from the +entity declarations in the W3C \s-1XHTML\s0 specification. +.PP +Currently (October 2001), that's these three: +.PP +.Vb 3 +\& http://www.w3.org/TR/xhtml1/DTD/xhtml\-lat1.ent +\& http://www.w3.org/TR/xhtml1/DTD/xhtml\-special.ent +\& http://www.w3.org/TR/xhtml1/DTD/xhtml\-symbol.ent +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Sean M. Burke \f(CW\*(C`sburke@cpan.org\*(C'\fR +.PP +Now being maintained by Neil Bowers diff --git a/data/miniconda3/man/man3/Pod%3A%3AHtml.3 b/data/miniconda3/man/man3/Pod%3A%3AHtml.3 new file mode 100644 index 0000000000000000000000000000000000000000..bc0f92aefcd40ce23b5a0633cfa33069e3fc9f11 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AHtml.3 @@ -0,0 +1,354 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Html 3" +.TH Pod::Html 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Html \- module to convert pod files to HTML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Html; +\& pod2html([options]); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Converts files from pod format (see perlpod) to \s-1HTML\s0 format. It +can automatically generate indexes and cross-references, and it keeps +a cache of things it knows how to cross-reference. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.SS "pod2html" +.IX Subsection "pod2html" +.Vb 7 +\& pod2html("pod2html", +\& "\-\-podpath=lib:ext:pod:vms", +\& "\-\-podroot=/usr/src/perl", +\& "\-\-htmlroot=/perl/nmanual", +\& "\-\-recurse", +\& "\-\-infile=foo.pod", +\& "\-\-outfile=/perl/nmanual/foo.html"); +.Ve +.PP +pod2html takes the following arguments: +.IP "backlink" 4 +.IX Item "backlink" +.Vb 1 +\& \-\-backlink +.Ve +.Sp +Turns every \f(CW\*(C`head1\*(C'\fR heading into a link back to the top of the page. +By default, no backlinks are generated. +.IP "cachedir" 4 +.IX Item "cachedir" +.Vb 1 +\& \-\-cachedir=name +.Ve +.Sp +Creates the directory cache in the given directory. +.IP "css" 4 +.IX Item "css" +.Vb 1 +\& \-\-css=stylesheet +.Ve +.Sp +Specify the \s-1URL\s0 of a cascading style sheet. Also disables all \s-1HTML/CSS\s0 +\&\f(CW\*(C`style\*(C'\fR attributes that are output by default (to avoid conflicts). +.IP "flush" 4 +.IX Item "flush" +.Vb 1 +\& \-\-flush +.Ve +.Sp +Flushes the directory cache. +.IP "header" 4 +.IX Item "header" +.Vb 2 +\& \-\-header +\& \-\-noheader +.Ve +.Sp +Creates header and footer blocks containing the text of the \f(CW\*(C`NAME\*(C'\fR +section. By default, no headers are generated. +.IP "help" 4 +.IX Item "help" +.Vb 1 +\& \-\-help +.Ve +.Sp +Displays the usage message. +.IP "htmldir" 4 +.IX Item "htmldir" +.Vb 1 +\& \-\-htmldir=name +.Ve +.Sp +Sets the directory to which all cross references in the resulting +html file will be relative. Not passing this causes all links to be +absolute since this is the value that tells Pod::Html the root of the +documentation tree. +.Sp +Do not use this and \-\-htmlroot in the same call to pod2html; they are +mutually exclusive. +.IP "htmlroot" 4 +.IX Item "htmlroot" +.Vb 1 +\& \-\-htmlroot=name +.Ve +.Sp +Sets the base \s-1URL\s0 for the \s-1HTML\s0 files. When cross-references are made, +the \s-1HTML\s0 root is prepended to the \s-1URL.\s0 +.Sp +Do not use this if relative links are desired: use \-\-htmldir instead. +.Sp +Do not pass both this and \-\-htmldir to pod2html; they are mutually +exclusive. +.IP "index" 4 +.IX Item "index" +.Vb 2 +\& \-\-index +\& \-\-noindex +.Ve +.Sp +Generate an index at the top of the \s-1HTML\s0 file. This is the default +behaviour. +.IP "infile" 4 +.IX Item "infile" +.Vb 1 +\& \-\-infile=name +.Ve +.Sp +Specify the pod file to convert. Input is taken from \s-1STDIN\s0 if no +infile is specified. +.IP "outfile" 4 +.IX Item "outfile" +.Vb 1 +\& \-\-outfile=name +.Ve +.Sp +Specify the \s-1HTML\s0 file to create. Output goes to \s-1STDOUT\s0 if no outfile +is specified. +.IP "poderrors" 4 +.IX Item "poderrors" +.Vb 2 +\& \-\-poderrors +\& \-\-nopoderrors +.Ve +.Sp +Include a \*(L"\s-1POD ERRORS\*(R"\s0 section in the outfile if there were any \s-1POD\s0 +errors in the infile. This section is included by default. +.IP "podpath" 4 +.IX Item "podpath" +.Vb 1 +\& \-\-podpath=name:...:name +.Ve +.Sp +Specify which subdirectories of the podroot contain pod files whose +\&\s-1HTML\s0 converted forms can be linked to in cross references. +.IP "podroot" 4 +.IX Item "podroot" +.Vb 1 +\& \-\-podroot=name +.Ve +.Sp +Specify the base directory for finding library pods. Default is the +current working directory. +.IP "quiet" 4 +.IX Item "quiet" +.Vb 2 +\& \-\-quiet +\& \-\-noquiet +.Ve +.Sp +Don't display \fImostly harmless\fR warning messages. These messages +will be displayed by default. But this is not the same as \f(CW\*(C`verbose\*(C'\fR +mode. +.IP "recurse" 4 +.IX Item "recurse" +.Vb 2 +\& \-\-recurse +\& \-\-norecurse +.Ve +.Sp +Recurse into subdirectories specified in podpath (default behaviour). +.IP "title" 4 +.IX Item "title" +.Vb 1 +\& \-\-title=title +.Ve +.Sp +Specify the title of the resulting \s-1HTML\s0 file. +.IP "verbose" 4 +.IX Item "verbose" +.Vb 2 +\& \-\-verbose +\& \-\-noverbose +.Ve +.Sp +Display progress messages. By default, they won't be displayed. +.SS "htmlify" +.IX Subsection "htmlify" +.Vb 1 +\& htmlify($heading); +.Ve +.PP +Converts a pod section specification to a suitable section specification +for \s-1HTML.\s0 Note that we keep spaces and special characters except +\&\f(CW\*(C`", ?\*(C'\fR (Netscape problem) and the hyphen (writer's problem...). +.SS "anchorify" +.IX Subsection "anchorify" +.Vb 1 +\& anchorify(@heading); +.Ve +.PP +Similar to \f(CW\*(C`htmlify()\*(C'\fR, but turns non-alphanumerics into underscores. Note +that \f(CW\*(C`anchorify()\*(C'\fR is not exported by default. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +Uses \f(CW$Config{pod2html}\fR to setup default options. +.SH "AUTHOR" +.IX Header "AUTHOR" +Marc Green, . +.PP +Original version by Tom Christiansen, . +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlpod +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This program is distributed under the Artistic License. diff --git a/data/miniconda3/man/man3/Pod%3A%3AMan.3 b/data/miniconda3/man/man3/Pod%3A%3AMan.3 new file mode 100644 index 0000000000000000000000000000000000000000..599a87b9a3ee7ce646f82a948556f9b71829d8ea --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AMan.3 @@ -0,0 +1,503 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Man 3" +.TH Pod::Man 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Man \- Convert POD data to formatted *roff input +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Man; +\& my $parser = Pod::Man\->new (release => $VERSION, section => 8); +\& +\& # Read POD from STDIN and write to STDOUT. +\& $parser\->parse_file (\e*STDIN); +\& +\& # Read POD from file.pod and write to file.1. +\& $parser\->parse_from_file (\*(Aqfile.pod\*(Aq, \*(Aqfile.1\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Man is a module to convert documentation in the \s-1POD\s0 format (the +preferred language for documenting Perl) into *roff input using the man +macro set. The resulting *roff code is suitable for display on a terminal +using \fBnroff\fR\|(1), normally via \fBman\fR\|(1), or printing using \fBtroff\fR\|(1). +It is conventionally invoked using the driver script \fBpod2man\fR, but it can +also be used directly. +.PP +As a derived class from Pod::Simple, Pod::Man supports the same methods and +interfaces. See Pod::Simple for all the details. +.PP +\&\fBnew()\fR can take options, in the form of key/value pairs that control the +behavior of the parser. See below for details. +.PP +If no options are given, Pod::Man uses the name of the input file with any +trailing \f(CW\*(C`.pod\*(C'\fR, \f(CW\*(C`.pm\*(C'\fR, or \f(CW\*(C`.pl\*(C'\fR stripped as the man page title, to +section 1 unless the file ended in \f(CW\*(C`.pm\*(C'\fR in which case it defaults to +section 3, to a centered title of \*(L"User Contributed Perl Documentation\*(R", to +a centered footer of the Perl version it is run with, and to a left-hand +footer of the modification date of its input (or the current date if given +\&\f(CW\*(C`STDIN\*(C'\fR for input). +.PP +Pod::Man assumes that your *roff formatters have a fixed-width font named +\&\f(CW\*(C`CW\*(C'\fR. If yours is called something else (like \f(CW\*(C`CR\*(C'\fR), use the \f(CW\*(C`fixed\*(C'\fR +option to specify it. This generally only matters for troff output for +printing. Similarly, you can set the fonts used for bold, italic, and +bold italic fixed-width output. +.PP +Besides the obvious pod conversions, Pod::Man also takes care of +formatting \fBfunc()\fR, \fBfunc\fR\|(3), and simple variable references like \f(CW$foo\fR or +\&\f(CW@bar\fR so you don't have to use code escapes for them; complex expressions +like \f(CW$fred{\*(Aqstuff\*(Aq}\fR will still need to be escaped, though. It also +translates dashes that aren't used as hyphens into en dashes, makes long +dashes\*(--like this\*(--into proper em dashes, fixes \*(L"paired quotes,\*(R" makes \*(C+ +look right, puts a little space between double underscores, makes \s-1ALLCAPS\s0 +a teeny bit smaller in \fBtroff\fR, and escapes stuff that *roff treats as +special so that you don't have to. +.PP +The recognized options to \fBnew()\fR are as follows. All options take a single +argument. +.IP "center" 4 +.IX Item "center" +Sets the centered page header for the \f(CW\*(C`.TH\*(C'\fR macro. The default, if this +option is not specified, is \*(L"User Contributed Perl Documentation\*(R". +.IP "date" 4 +.IX Item "date" +Sets the left-hand footer for the \f(CW\*(C`.TH\*(C'\fR macro. If this option is not set, +the contents of the environment variable \s-1POD_MAN_DATE,\s0 if set, will be used. +Failing that, the value of \s-1SOURCE_DATE_EPOCH,\s0 the modification date of the +input file, or the current time if \fBstat()\fR can't find that file (which will be +the case if the input is from \f(CW\*(C`STDIN\*(C'\fR) will be used. If obtained from the +file modification date or the current time, the date will be formatted as +\&\f(CW\*(C`YYYY\-MM\-DD\*(C'\fR and will be based on \s-1UTC\s0 (so that the output will be +reproducible regardless of local time zone). +.IP "errors" 4 +.IX Item "errors" +How to report errors. \f(CW\*(C`die\*(C'\fR says to throw an exception on any \s-1POD\s0 +formatting error. \f(CW\*(C`stderr\*(C'\fR says to report errors on standard error, but +not to throw an exception. \f(CW\*(C`pod\*(C'\fR says to include a \s-1POD ERRORS\s0 section +in the resulting documentation summarizing the errors. \f(CW\*(C`none\*(C'\fR ignores +\&\s-1POD\s0 errors entirely, as much as possible. +.Sp +The default is \f(CW\*(C`pod\*(C'\fR. +.IP "fixed" 4 +.IX Item "fixed" +The fixed-width font to use for verbatim text and code. Defaults to +\&\f(CW\*(C`CW\*(C'\fR. Some systems may want \f(CW\*(C`CR\*(C'\fR instead. Only matters for \fBtroff\fR +output. +.IP "fixedbold" 4 +.IX Item "fixedbold" +Bold version of the fixed-width font. Defaults to \f(CW\*(C`CB\*(C'\fR. Only matters +for \fBtroff\fR output. +.IP "fixeditalic" 4 +.IX Item "fixeditalic" +Italic version of the fixed-width font (actually, something of a misnomer, +since most fixed-width fonts only have an oblique version, not an italic +version). Defaults to \f(CW\*(C`CI\*(C'\fR. Only matters for \fBtroff\fR output. +.IP "fixedbolditalic" 4 +.IX Item "fixedbolditalic" +Bold italic (probably actually oblique) version of the fixed-width font. +Pod::Man doesn't assume you have this, and defaults to \f(CW\*(C`CB\*(C'\fR. Some +systems (such as Solaris) have this font available as \f(CW\*(C`CX\*(C'\fR. Only matters +for \fBtroff\fR output. +.IP "lquote" 4 +.IX Item "lquote" +.PD 0 +.IP "rquote" 4 +.IX Item "rquote" +.PD +Sets the quote marks used to surround C<> text. \f(CW\*(C`lquote\*(C'\fR sets the +left quote mark and \f(CW\*(C`rquote\*(C'\fR sets the right quote mark. Either may also +be set to the special value \f(CW\*(C`none\*(C'\fR, in which case no quote mark is added +on that side of C<> text (but the font is still changed for troff +output). +.Sp +Also see the \f(CW\*(C`quotes\*(C'\fR option, which can be used to set both quotes at once. +If both \f(CW\*(C`quotes\*(C'\fR and one of the other options is set, \f(CW\*(C`lquote\*(C'\fR or \f(CW\*(C`rquote\*(C'\fR +overrides \f(CW\*(C`quotes\*(C'\fR. +.IP "name" 4 +.IX Item "name" +Set the name of the manual page for the \f(CW\*(C`.TH\*(C'\fR macro. Without this +option, the manual name is set to the uppercased base name of the file +being converted unless the manual section is 3, in which case the path is +parsed to see if it is a Perl module path. If it is, a path like +\&\f(CW\*(C`.../lib/Pod/Man.pm\*(C'\fR is converted into a name like \f(CW\*(C`Pod::Man\*(C'\fR. This +option, if given, overrides any automatic determination of the name. +.Sp +If generating a manual page from standard input, the name will be set to +\&\f(CW\*(C`STDIN\*(C'\fR if this option is not provided. Providing this option is strongly +recommended to set a meaningful manual page name. +.IP "nourls" 4 +.IX Item "nourls" +Normally, L<> formatting codes with a \s-1URL\s0 but anchor text are formatted +to show both the anchor text and the \s-1URL.\s0 In other words: +.Sp +.Vb 1 +\& L +.Ve +.Sp +is formatted as: +.Sp +.Vb 1 +\& foo +.Ve +.Sp +This option, if set to a true value, suppresses the \s-1URL\s0 when anchor text +is given, so this example would be formatted as just \f(CW\*(C`foo\*(C'\fR. This can +produce less cluttered output in cases where the URLs are not particularly +important. +.IP "quotes" 4 +.IX Item "quotes" +Sets the quote marks used to surround C<> text. If the value is a +single character, it is used as both the left and right quote. Otherwise, +it is split in half, and the first half of the string is used as the left +quote and the second is used as the right quote. +.Sp +This may also be set to the special value \f(CW\*(C`none\*(C'\fR, in which case no quote +marks are added around C<> text (but the font is still changed for troff +output). +.Sp +Also see the \f(CW\*(C`lquote\*(C'\fR and \f(CW\*(C`rquote\*(C'\fR options, which can be used to set the +left and right quotes independently. If both \f(CW\*(C`quotes\*(C'\fR and one of the other +options is set, \f(CW\*(C`lquote\*(C'\fR or \f(CW\*(C`rquote\*(C'\fR overrides \f(CW\*(C`quotes\*(C'\fR. +.IP "release" 4 +.IX Item "release" +Set the centered footer for the \f(CW\*(C`.TH\*(C'\fR macro. By default, this is set to +the version of Perl you run Pod::Man under. Setting this to the empty +string will cause some *roff implementations to use the system default +value. +.Sp +Note that some system \f(CW\*(C`an\*(C'\fR macro sets assume that the centered footer +will be a modification date and will prepend something like \*(L"Last +modified: \*(R". If this is the case for your target system, you may want to +set \f(CW\*(C`release\*(C'\fR to the last modified date and \f(CW\*(C`date\*(C'\fR to the version +number. +.IP "section" 4 +.IX Item "section" +Set the section for the \f(CW\*(C`.TH\*(C'\fR macro. The standard section numbering +convention is to use 1 for user commands, 2 for system calls, 3 for +functions, 4 for devices, 5 for file formats, 6 for games, 7 for +miscellaneous information, and 8 for administrator commands. There is a lot +of variation here, however; some systems (like Solaris) use 4 for file +formats, 5 for miscellaneous information, and 7 for devices. Still others +use 1m instead of 8, or some mix of both. About the only section numbers +that are reliably consistent are 1, 2, and 3. +.Sp +By default, section 1 will be used unless the file ends in \f(CW\*(C`.pm\*(C'\fR in which +case section 3 will be selected. +.IP "stderr" 4 +.IX Item "stderr" +Send error messages about invalid \s-1POD\s0 to standard error instead of +appending a \s-1POD ERRORS\s0 section to the generated *roff output. This is +equivalent to setting \f(CW\*(C`errors\*(C'\fR to \f(CW\*(C`stderr\*(C'\fR if \f(CW\*(C`errors\*(C'\fR is not already +set. It is supported for backward compatibility. +.IP "utf8" 4 +.IX Item "utf8" +By default, Pod::Man produces the most conservative possible *roff output +to try to ensure that it will work with as many different *roff +implementations as possible. Many *roff implementations cannot handle +non-ASCII characters, so this means all non-ASCII characters are converted +either to a *roff escape sequence that tries to create a properly accented +character (at least for troff output) or to \f(CW\*(C`X\*(C'\fR. +.Sp +If this option is set, Pod::Man will instead output \s-1UTF\-8.\s0 If your *roff +implementation can handle it, this is the best output format to use and +avoids corruption of documents containing non-ASCII characters. However, +be warned that *roff source with literal \s-1UTF\-8\s0 characters is not supported +by many implementations and may even result in segfaults and other bad +behavior. +.Sp +Be aware that, when using this option, the input encoding of your \s-1POD\s0 +source should be properly declared unless it's US-ASCII. Pod::Simple will +attempt to guess the encoding and may be successful if it's Latin\-1 or +\&\s-1UTF\-8,\s0 but it will produce warnings. Use the \f(CW\*(C`=encoding\*(C'\fR command to +declare the encoding. See \fBperlpod\fR\|(1) for more information. +.PP +The standard Pod::Simple method \fBparse_file()\fR takes one argument naming the +\&\s-1POD\s0 file to read from. By default, the output is sent to \f(CW\*(C`STDOUT\*(C'\fR, but +this can be changed with the \fBoutput_fh()\fR method. +.PP +The standard Pod::Simple method \fBparse_from_file()\fR takes up to two +arguments, the first being the input file to read \s-1POD\s0 from and the second +being the file to write the formatted output to. +.PP +You can also call \fBparse_lines()\fR to parse an array of lines or +\&\fBparse_string_document()\fR to parse a document already in memory. As with +\&\fBparse_file()\fR, \fBparse_lines()\fR and \fBparse_string_document()\fR default to sending +their output to \f(CW\*(C`STDOUT\*(C'\fR unless changed with the \fBoutput_fh()\fR method. Be +aware that \fBparse_lines()\fR and \fBparse_string_document()\fR both expect raw bytes, +not decoded characters. +.PP +To put the output from any parse method into a string instead of a file +handle, call the \fBoutput_string()\fR method instead of \fBoutput_fh()\fR. +.PP +See Pod::Simple for more specific details on the methods available to +all derived parsers. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP "roff font should be 1 or 2 chars, not ""%s""" 4 +.el .IP "roff font should be 1 or 2 chars, not ``%s''" 4 +.IX Item "roff font should be 1 or 2 chars, not %s" +(F) You specified a *roff font (using \f(CW\*(C`fixed\*(C'\fR, \f(CW\*(C`fixedbold\*(C'\fR, etc.) that +wasn't either one or two characters. Pod::Man doesn't support *roff fonts +longer than two characters, although some *roff extensions do (the +canonical versions of \fBnroff\fR and \fBtroff\fR don't either). +.ie n .IP "Invalid errors setting ""%s""" 4 +.el .IP "Invalid errors setting ``%s''" 4 +.IX Item "Invalid errors setting %s" +(F) The \f(CW\*(C`errors\*(C'\fR parameter to the constructor was set to an unknown value. +.ie n .IP "Invalid quote specification ""%s""" 4 +.el .IP "Invalid quote specification ``%s''" 4 +.IX Item "Invalid quote specification %s" +(F) The quote specification given (the \f(CW\*(C`quotes\*(C'\fR option to the +constructor) was invalid. A quote specification must be either one +character long or an even number (greater than one) characters long. +.IP "\s-1POD\s0 document had syntax errors" 4 +.IX Item "POD document had syntax errors" +(F) The \s-1POD\s0 document being formatted had syntax errors and the \f(CW\*(C`errors\*(C'\fR +option was set to \f(CW\*(C`die\*(C'\fR. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.IP "\s-1PERL_CORE\s0" 4 +.IX Item "PERL_CORE" +If set and Encode is not available, silently fall back to non\-UTF\-8 mode +without complaining to standard error. This environment variable is set +during Perl core builds, which build Encode after podlators. Encode is +expected to not (yet) be available in that case. +.IP "\s-1POD_MAN_DATE\s0" 4 +.IX Item "POD_MAN_DATE" +If set, this will be used as the value of the left-hand footer unless the +\&\f(CW\*(C`date\*(C'\fR option is explicitly set, overriding the timestamp of the input +file or the current time. This is primarily useful to ensure reproducible +builds of the same output file given the same source and Pod::Man version, +even when file timestamps may not be consistent. +.IP "\s-1SOURCE_DATE_EPOCH\s0" 4 +.IX Item "SOURCE_DATE_EPOCH" +If set, and \s-1POD_MAN_DATE\s0 and the \f(CW\*(C`date\*(C'\fR options are not set, this will be +used as the modification time of the source file, overriding the timestamp of +the input file or the current time. It should be set to the desired time in +seconds since \s-1UNIX\s0 epoch. This is primarily useful to ensure reproducible +builds of the same output file given the same source and Pod::Man version, +even when file timestamps may not be consistent. See + for the full +specification. +.Sp +(Arguably, according to the specification, this variable should be used only +if the timestamp of the input file is not available and Pod::Man uses the +current time. However, for reproducible builds in Debian, results were more +reliable if this variable overrode the timestamp of the input file.) +.SH "BUGS" +.IX Header "BUGS" +Encoding handling assumes that PerlIO is available and does not work +properly if it isn't. The \f(CW\*(C`utf8\*(C'\fR option is therefore not supported +unless Perl is built with PerlIO support. +.PP +There is currently no way to turn off the guesswork that tries to format +unmarked text appropriately, and sometimes it isn't wanted (particularly +when using \s-1POD\s0 to document something other than Perl). Most of the work +toward fixing this has now been done, however, and all that's still needed +is a user interface. +.PP +The \s-1NAME\s0 section should be recognized specially and index entries emitted +for everything in that section. This would have to be deferred until the +next section, since extraneous things in \s-1NAME\s0 tends to confuse various man +page processors. Currently, no index entries are emitted for anything in +\&\s-1NAME.\s0 +.PP +Pod::Man doesn't handle font names longer than two characters. Neither do +most \fBtroff\fR implementations, but \s-1GNU\s0 troff does as an extension. It would +be nice to support as an option for those who want to use it. +.PP +The preamble added to each output file is rather verbose, and most of it +is only necessary in the presence of non-ASCII characters. It would +ideally be nice if all of those definitions were only output if needed, +perhaps on the fly as the characters are used. +.PP +Pod::Man is excessively slow. +.SH "CAVEATS" +.IX Header "CAVEATS" +If Pod::Man is given the \f(CW\*(C`utf8\*(C'\fR option, the encoding of its output file +handle will be forced to \s-1UTF\-8\s0 if possible, overriding any existing +encoding. This will be done even if the file handle is not created by +Pod::Man and was passed in from outside. This maintains consistency +regardless of \s-1PERL_UNICODE\s0 and other settings. +.PP +The handling of hyphens and em dashes is somewhat fragile, and one may get +the wrong one under some circumstances. This should only matter for +\&\fBtroff\fR output. +.PP +When and whether to use small caps is somewhat tricky, and Pod::Man doesn't +necessarily get it right. +.PP +Converting neutral double quotes to properly matched double quotes doesn't +work unless there are no formatting codes between the quote marks. This +only matters for troff output. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery , based \fIvery\fR heavily on the original \fBpod2man\fR +by Tom Christiansen . The modifications to work with +Pod::Simple instead of Pod::Parser were originally contributed by Sean Burke + (but I've since hacked them beyond recognition and all bugs +are mine). +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1999\-2010, 2012\-2019 Russ Allbery +.PP +Substantial contributions by Sean Burke . +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, \fBperlpod\fR\|(1), \fBpod2man\fR\|(1), \fBnroff\fR\|(1), \fBtroff\fR\|(1), +\&\fBman\fR\|(1), \fBman\fR\|(7) +.PP +Ossanna, Joseph F., and Brian W. Kernighan. \*(L"Troff User's Manual,\*(R" +Computing Science Technical Report No. 54, \s-1AT&T\s0 Bell Laboratories. This is +the best documentation of standard \fBnroff\fR and \fBtroff\fR. At the time of +this writing, it's available at . +.PP +The man page documenting the man macro set may be \fBman\fR\|(5) instead of +\&\fBman\fR\|(7) on your system. Also, please see \fBpod2man\fR\|(1) for extensive +documentation on writing manual pages if you've not done it before and +aren't familiar with the conventions. +.PP +The current version of this module is always available from its web site at +. It is also part of the +Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Pod%3A%3AParseLink.3 b/data/miniconda3/man/man3/Pod%3A%3AParseLink.3 new file mode 100644 index 0000000000000000000000000000000000000000..63469e4e11543746a5b39a7869806b13abc0a3d9 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AParseLink.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::ParseLink 3" +.TH Pod::ParseLink 3 "2020-12-18" "perl v5.32.1" "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" +Pod::ParseLink \- Parse an L<> formatting code in POD text +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Pod::ParseLink; +\& my $link = get_link(); +\& my ($text, $inferred, $name, $section, $type) = parselink($link); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module only provides a single function, \fBparselink()\fR, which takes the +text of an L<> formatting code and parses it. It returns the +anchor text for the link (if any was given), the anchor text possibly +inferred from the name and section, the name or \s-1URL,\s0 the section if any, +and the type of link. The type will be one of \f(CW\*(C`url\*(C'\fR, \f(CW\*(C`pod\*(C'\fR, or \f(CW\*(C`man\*(C'\fR, +indicating a \s-1URL,\s0 a link to a \s-1POD\s0 page, or a link to a Unix manual page. +.PP +Parsing is implemented per perlpodspec. For backward compatibility, +links where there is no section and name contains spaces, or links where the +entirety of the link (except for the anchor text if given) is enclosed in +double-quotes are interpreted as links to a section (L). +.PP +The inferred anchor text is implemented per perlpodspec: +.PP +.Vb 3 +\& L => L +\& L => L<"section"|/section> +\& L => L<"section" in name|name/section> +.Ve +.PP +The name may contain embedded E<> and Z<> formatting codes, +and the section, anchor text, and inferred anchor text may contain any +formatting codes. Any double quotes around the section are removed as part +of the parsing, as is any leading or trailing whitespace. +.PP +If the text of the L<> escape is entirely enclosed in double +quotes, it's interpreted as a link to a section for backward +compatibility. +.PP +No attempt is made to resolve formatting codes. This must be done after +calling \fBparselink()\fR (since E<> formatting codes can be used to +escape characters that would otherwise be significant to the parser and +resolving them before parsing would result in an incorrect parse of a +formatting code like: +.PP +.Vb 1 +\& LbarEslash> +.Ve +.PP +which should be interpreted as a link to the \f(CW\*(C`vertical|bar/slash\*(C'\fR \s-1POD\s0 page +and not as a link to the \f(CW\*(C`slash\*(C'\fR section of the \f(CW\*(C`bar\*(C'\fR \s-1POD\s0 page with an +anchor text of \f(CW\*(C`vertical\*(C'\fR. Note that not only the anchor text will need to +have formatting codes expanded, but so will the target of the link (to deal +with E<> and Z<> formatting codes), and special handling of +the section may be necessary depending on whether the translator wants to +consider markup in sections to be significant when resolving links. See +perlpodspec for more information. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2001, 2008, 2009, 2014, 2018\-2019 Russ Allbery +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Parser +.PP +The current version of this module is always available from its web site at +. diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3ABaseTo.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3ABaseTo.3 new file mode 100644 index 0000000000000000000000000000000000000000..47e1df6e775c22a0125e20293cff813f6a7cef20 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3ABaseTo.3 @@ -0,0 +1,191 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::BaseTo 3" +.TH Pod::Perldoc::BaseTo 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::BaseTo \- Base for Pod::Perldoc formatters +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package Pod::Perldoc::ToMyFormat; +\& +\& use parent qw( Pod::Perldoc::BaseTo ); +\& ... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package is meant as a base of Pod::Perldoc formatters, +like Pod::Perldoc::ToText, Pod::Perldoc::ToMan, etc. +.PP +It provides default implementations for the methods +.PP +.Vb 4 +\& is_pageable +\& write_with_binmode +\& output_extension +\& _perldoc_elem +.Ve +.PP +The concrete formatter must implement +.PP +.Vb 2 +\& new +\& parse_from_file +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002\-2007 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AGetOptsOO.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AGetOptsOO.3 new file mode 100644 index 0000000000000000000000000000000000000000..7ddd2b2df886009be3eef54bb13a56f43b9c94db --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AGetOptsOO.3 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::GetOptsOO 3" +.TH Pod::Perldoc::GetOptsOO 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::GetOptsOO \- Customized option parser for Pod::Perldoc +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Perldoc::GetOptsOO (); +\& +\& Pod::Perldoc::GetOptsOO::getopts( $obj, \e@args, $truth ) +\& or die "wrong usage"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Implements a customized option parser used for +Pod::Perldoc. +.PP +Rather like Getopt::Std's getopts: +.ie n .IP "Call Pod::Perldoc::GetOptsOO::getopts($object, \e@ARGV, $truth)" 4 +.el .IP "Call Pod::Perldoc::GetOptsOO::getopts($object, \e@ARGV, \f(CW$truth\fR)" 4 +.IX Item "Call Pod::Perldoc::GetOptsOO::getopts($object, @ARGV, $truth)" +.PD 0 +.ie n .IP "Given \-n, if there's a opt_n_with, it'll call $object\->opt_n_with( \s-1ARGUMENT\s0 ) (e.g., ""\-n foo"" => $object\->opt_n_with('foo'). Ditto ""\-nfoo"")" 4 +.el .IP "Given \-n, if there's a opt_n_with, it'll call \f(CW$object\fR\->opt_n_with( \s-1ARGUMENT\s0 ) (e.g., ``\-n foo'' => \f(CW$object\fR\->opt_n_with('foo'). Ditto ``\-nfoo'')" 4 +.IX Item "Given -n, if there's a opt_n_with, it'll call $object->opt_n_with( ARGUMENT ) (e.g., -n foo => $object->opt_n_with('foo'). Ditto -nfoo)" +.ie n .IP "Otherwise (given \-n) if there's an opt_n, we'll call it $object\->opt_n($truth) (Truth defaults to 1)" 4 +.el .IP "Otherwise (given \-n) if there's an opt_n, we'll call it \f(CW$object\fR\->opt_n($truth) (Truth defaults to 1)" 4 +.IX Item "Otherwise (given -n) if there's an opt_n, we'll call it $object->opt_n($truth) (Truth defaults to 1)" +.ie n .IP "Otherwise we try calling $object\->handle_unknown_option('n') (and we increment the error count by the return value of it)" 4 +.el .IP "Otherwise we try calling \f(CW$object\fR\->handle_unknown_option('n') (and we increment the error count by the return value of it)" 4 +.IX Item "Otherwise we try calling $object->handle_unknown_option('n') (and we increment the error count by the return value of it)" +.IP "If there's no handle_unknown_option, then we just warn, and then increment the error counter" 4 +.IX Item "If there's no handle_unknown_option, then we just warn, and then increment the error counter" +.PD +.PP +The return value of Pod::Perldoc::GetOptsOO::getopts is true if no errors, +otherwise it's false. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002\-2007 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToChecker.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToChecker.3 new file mode 100644 index 0000000000000000000000000000000000000000..fc81a12c1d2893f13ff9a7580455fbc7d7def9c7 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToChecker.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToChecker 3" +.TH Pod::Perldoc::ToChecker 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToChecker \- let Perldoc check Pod for errors +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& % perldoc \-o checker SomeFile.pod +\& No Pod errors in SomeFile.pod +\& (or an error report) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Simple::Checker as a \*(L"formatter\*(R" class (or if that is +not available, then Pod::Checker), to check for errors in a given +Pod file. +.PP +This is actually a Pod::Simple::Checker (or Pod::Checker) subclass, and +inherits all its options. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::Checker, Pod::Simple, Pod::Checker, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToNroff.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToNroff.3 new file mode 100644 index 0000000000000000000000000000000000000000..548b38dadff80db606b177571f399a9a678b897a --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToNroff.3 @@ -0,0 +1,187 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToNroff 3" +.TH Pod::Perldoc::ToNroff 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToNroff \- let Perldoc convert Pod to nroff +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o nroff \-d something.3 Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Man as a formatter class. +.PP +The following options are supported: center, date, fixed, fixedbold, +fixeditalic, fixedbolditalic, quotes, release, section +.PP +Those options are explained in Pod::Man. +.PP +For example: +.PP +.Vb 1 +\& perldoc \-o nroff \-w center:Pod \-d something.3 Some::Modulename +.Ve +.SH "CAVEAT" +.IX Header "CAVEAT" +This module may change to use a different pod-to-nroff formatter class +in the future, and this may change what options are supported. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Man, Pod::Perldoc, Pod::Perldoc::ToMan +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToPod.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToPod.3 new file mode 100644 index 0000000000000000000000000000000000000000..20f693def842e31ebd3f88fea42ba1832145b3d4 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToPod.3 @@ -0,0 +1,181 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToPod 3" +.TH Pod::Perldoc::ToPod 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToPod \- let Perldoc render Pod as ... Pod! +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-opod Some::Modulename +.Ve +.PP +(That's currently the same as the following:) +.PP +.Vb 1 +\& perldoc \-u Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to display Pod source as +itself! Pretty Zen, huh? +.PP +Currently this class works by just filtering out the non-Pod stuff from +a given input file. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToRtf.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToRtf.3 new file mode 100644 index 0000000000000000000000000000000000000000..62f8091a57d933017eac4133930155c78f7fca9d --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToRtf.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToRtf 3" +.TH Pod::Perldoc::ToRtf 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToRtf \- let Perldoc render Pod as RTF +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o rtf Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Simple::RTF as a formatter class. +.PP +This is actually a Pod::Simple::RTF subclass, and inherits +all its options. +.PP +You have to have Pod::Simple::RTF installed (from the Pod::Simple dist), +or this module won't work. +.PP +If Perldoc is running under MSWin and uses this class as a formatter, +the output will be opened with \fIwrite.exe\fR or whatever program is +specified in the environment variable \f(CW\*(C`RTFREADER\*(C'\fR. For example, to +specify that \s-1RTF\s0 files should be opened the same as they are when you +double-click them, you would do \f(CW\*(C`set RTFREADER=start.exe\*(C'\fR in your +\&\fIautoexec.bat\fR. +.PP +Handy tip: put \f(CW\*(C`set PERLDOC=\-ortf\*(C'\fR in your \fIautoexec.bat\fR +and that will set this class as the default formatter to run when +you do \f(CW\*(C`perldoc whatever\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::RTF, Pod::Simple, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToText.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToText.3 new file mode 100644 index 0000000000000000000000000000000000000000..ab157233283100d72751724891f997daa20f71b2 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToText.3 @@ -0,0 +1,185 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToText 3" +.TH Pod::Perldoc::ToText 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToText \- let Perldoc render Pod as plaintext +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o text Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Text as a formatter class. +.PP +It supports the following options, which are explained in +Pod::Text: alt, indent, loose, quotes, sentence, width +.PP +For example: +.PP +.Vb 1 +\& perldoc \-o text \-w indent:5 Some::Modulename +.Ve +.SH "CAVEAT" +.IX Header "CAVEAT" +This module may change to use a different text formatter class in the +future, and this may change what options are supported. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTk.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTk.3 new file mode 100644 index 0000000000000000000000000000000000000000..843a37c693b4e03e5a88bdae1c4936254d1c7835 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTk.3 @@ -0,0 +1,166 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToTk 3" +.TH Pod::Perldoc::ToTk 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToTk \- let Perldoc use Tk::Pod to render Pod +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o tk Some::Modulename & +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Tk::Pod as a formatter class. +.PP +You have to have installed Tk::Pod first, or this class won't load. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Tk::Pod, Pod::Perldoc +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR; +Sean M. Burke \f(CW\*(C`\*(C'\fR; +significant portions copied from +\&\fItkpod\fR in the Tk::Pod dist, by Nick Ing-Simmons, Slaven Rezic, et al. diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToXml.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToXml.3 new file mode 100644 index 0000000000000000000000000000000000000000..2210cf1de0091b37cbe012bc677dec8550e911ee --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToXml.3 @@ -0,0 +1,178 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc::ToXml 3" +.TH Pod::Perldoc::ToXml 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc::ToXml \- let Perldoc render Pod as XML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o xml \-d out.xml Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Simple::XMLOutStream as a formatter class. +.PP +This is actually a Pod::Simple::XMLOutStream subclass, and inherits +all its options. +.PP +You have to have installed Pod::Simple::XMLOutStream (from the Pod::Simple +dist), or this class won't work. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::XMLOutStream, Pod::Simple, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc.3 new file mode 100644 index 0000000000000000000000000000000000000000..21a59a166a573b6e27455ab41d0c64435aef2ef1 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc.3 @@ -0,0 +1,173 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Perldoc 3" +.TH Pod::Perldoc 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Perldoc \- Look up Perl documentation in Pod format. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Perldoc (); +\& +\& Pod::Perldoc\->run(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The guts of perldoc utility. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002\-2007 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AChecker.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AChecker.3 new file mode 100644 index 0000000000000000000000000000000000000000..69f158cd1c75de2aaeba42b72cfe2b9d976200f3 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AChecker.3 @@ -0,0 +1,194 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::Checker 3" +.TH Pod::Simple::Checker 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::Checker \-\- check the Pod syntax of a document +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::Checker \-e \e +\& "exit Pod::Simple::Checker\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is for checking the syntactic validity of Pod. +It works by basically acting like a simple-minded version of +Pod::Simple::Text that formats only the \*(L"Pod Errors\*(R" section +(if Pod::Simple even generates one for the given document). +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Text, Pod::Checker +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADebug.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADebug.3 new file mode 100644 index 0000000000000000000000000000000000000000..d45aced6837b53f79688dab34de7ad0756589f80 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADebug.3 @@ -0,0 +1,248 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::Debug 3" +.TH Pod::Simple::Debug 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::Debug \-\- put Pod::Simple into trace/debug mode +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Simple::Debug (5); # or some integer +.Ve +.PP +Or: +.PP +.Vb 4 +\& my $debuglevel; +\& use Pod::Simple::Debug (\e$debuglevel, 0); +\& ...some stuff that uses Pod::Simple to do stuff, but which +\& you don\*(Aqt want debug output from... +\& +\& $debug_level = 4; +\& ...some stuff that uses Pod::Simple to do stuff, but which +\& you DO want debug output from... +\& +\& $debug_level = 0; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an internal module for controlling the debug level (a.k.a. trace +level) of Pod::Simple. This is of interest only to Pod::Simple +developers. +.SH "CAVEATS" +.IX Header "CAVEATS" +Note that you should load this module \fIbefore\fR loading Pod::Simple (or +any Pod::Simple\-based class). If you try loading Pod::Simple::Debug +after &Pod::Simple::DEBUG is already defined, Pod::Simple::Debug will +throw a fatal error to the effect that +\&\*(L"It's too late to call Pod::Simple::Debug\*(R". +.PP +Note that the \f(CW\*(C`use Pod::Simple::Debug (\e$x, \f(CIsomenum\f(CW)\*(C'\fR mode will make +Pod::Simple (et al) run rather slower, since &Pod::Simple::DEBUG won't +be a constant sub anymore, and so Pod::Simple (et al) won't compile with +constant-folding. +.SH "GUTS" +.IX Header "GUTS" +Doing this: +.PP +.Vb 1 +\& use Pod::Simple::Debug (5); # or some integer +.Ve +.PP +is basically equivalent to: +.PP +.Vb 2 +\& BEGIN { sub Pod::Simple::DEBUG () {5} } # or some integer +\& use Pod::Simple (); +.Ve +.PP +And this: +.PP +.Vb 1 +\& use Pod::Simple::Debug (\e$debug_level,0); # or some integer +.Ve +.PP +is basically equivalent to this: +.PP +.Vb 4 +\& my $debug_level; +\& BEGIN { $debug_level = 0 } +\& BEGIN { sub Pod::Simple::DEBUG () { $debug_level } +\& use Pod::Simple (); +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple +.PP +The article \*(L"Constants in Perl\*(R", in \fIThe Perl Journal\fR issue +21. See +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsText.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsText.3 new file mode 100644 index 0000000000000000000000000000000000000000..7ff7fd9429bf9db574a54a9e267fa90a51ab799a --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsText.3 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::DumpAsText 3" +.TH Pod::Simple::DumpAsText 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::DumpAsText \-\- dump Pod\-parsing events as text +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::DumpAsText \-e \e +\& "exit Pod::Simple::DumpAsText\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is for dumping, as text, the events gotten from parsing a Pod +document. This class is of interest to people writing Pod formatters +based on Pod::Simple. It is useful for seeing exactly what events you +get out of some Pod that you feed in. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::DumpAsXML +.PP +Pod::Simple +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsXML.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsXML.3 new file mode 100644 index 0000000000000000000000000000000000000000..963802a300c717c02d024a666757ca1bde9700c0 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ADumpAsXML.3 @@ -0,0 +1,207 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::DumpAsXML 3" +.TH Pod::Simple::DumpAsXML 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::DumpAsXML \-\- turn Pod into XML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::DumpAsXML \-e \e +\& "exit Pod::Simple::DumpAsXML\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Simple::DumpAsXML is a subclass of Pod::Simple that parses Pod +and turns it into indented and wrapped \s-1XML.\s0 This class is of +interest to people writing Pod formatters based on Pod::Simple. +.PP +Pod::Simple::DumpAsXML inherits methods from +Pod::Simple. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::XMLOutStream is rather like this class. +Pod::Simple::XMLOutStream's output is space-padded in a way +that's better for sending to an \s-1XML\s0 processor (that is, it has +no ignorable whitespace). But +Pod::Simple::DumpAsXML's output is much more human-readable, being +(more-or-less) one token per line, with line-wrapping. +.PP +Pod::Simple::DumpAsText is rather like this class, +except that it doesn't dump with \s-1XML\s0 syntax. Try them and see +which one you like best! +.PP +Pod::Simple, Pod::Simple::DumpAsXML +.PP +The older libraries Pod::PXML, Pod::XML, Pod::SAX +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTML.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTML.3 new file mode 100644 index 0000000000000000000000000000000000000000..a117d1162cd835e5c54de72589af411c558d22e1 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTML.3 @@ -0,0 +1,421 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::HTML 3" +.TH Pod::Simple::HTML 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::HTML \- convert Pod to HTML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-MPod::Simple::HTML \-e Pod::Simple::HTML::go thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is for making an \s-1HTML\s0 rendering of a Pod document. +.PP +This is a subclass of Pod::Simple::PullParser and inherits all its +methods (and options). +.PP +Note that if you want to do a batch conversion of a lot of Pod +documents to \s-1HTML,\s0 you should see the module Pod::Simple::HTMLBatch. +.SH "CALLING FROM THE COMMAND LINE" +.IX Header "CALLING FROM THE COMMAND LINE" +\&\s-1TODO\s0 +.PP +.Vb 1 +\& perl \-MPod::Simple::HTML \-e Pod::Simple::HTML::go Thing.pod Thing.html +.Ve +.SH "CALLING FROM PERL" +.IX Header "CALLING FROM PERL" +.SS "Minimal code" +.IX Subsection "Minimal code" +.Vb 6 +\& use Pod::Simple::HTML; +\& my $p = Pod::Simple::HTML\->new; +\& $p\->output_string(\emy $html); +\& $p\->parse_file(\*(Aqpath/to/Module/Name.pm\*(Aq); +\& open my $out, \*(Aq>\*(Aq, \*(Aqout.html\*(Aq or die "Cannot open \*(Aqout.html\*(Aq: $!\en"; +\& print $out $html; +.Ve +.SS "More detailed example" +.IX Subsection "More detailed example" +.Vb 1 +\& use Pod::Simple::HTML; +.Ve +.PP +Set the content type: +.PP +.Vb 1 +\& $Pod::Simple::HTML::Content_decl = q{}; +\& +\& my $p = Pod::Simple::HTML\->new; +.Ve +.PP +Include a single javascript source: +.PP +.Vb 1 +\& $p\->html_javascript(\*(Aqhttp://abc.com/a.js\*(Aq); +.Ve +.PP +Or insert multiple javascript source in the header +(or for that matter include anything, thought this is not recommended) +.PP +.Vb 3 +\& $p\->html_javascript(\*(Aq +\& +\& \*(Aq); +.Ve +.PP +Include a single css source in the header: +.PP +.Vb 1 +\& $p\->html_css(\*(Aq/style.css\*(Aq); +.Ve +.PP +or insert multiple css sources: +.PP +.Vb 3 +\& $p\->html_css(\*(Aq +\& +\& \*(Aq); +.Ve +.PP +Tell the parser where should the output go. In this case it will be placed in the \f(CW$html\fR variable: +.PP +.Vb 2 +\& my $html; +\& $p\->output_string(\e$html); +.Ve +.PP +Parse and process a file with pod in it: +.PP +.Vb 1 +\& $p\->parse_file(\*(Aqpath/to/Module/Name.pm\*(Aq); +.Ve +.SH "METHODS" +.IX Header "METHODS" +\&\s-1TODO\s0 +all (most?) accessorized methods +.PP +The following variables need to be set \fBbefore\fR the call to the \->new constructor. +.PP +Set the string that is included before the opening tag: +.PP +.Vb 2 +\& $Pod::Simple::HTML::Doctype_decl = qq{\en}; +.Ve +.PP +Set the content-type in the \s-1HTML\s0 head: (defaults to \s-1ISO\-8859\-1\s0) +.PP +.Vb 1 +\& $Pod::Simple::HTML::Content_decl = q{}; +.Ve +.PP +Set the value that will be embedded in the opening tags of F, C tags and verbatim text. +F maps to , C maps to , Verbatim text maps to
 (Computerese defaults to "")
+.PP
+.Vb 1
+\&  $Pod::Simple::HTML::Computerese =  \*(Aq class="some_class_name\*(Aq;
+.Ve
+.SS "html_css"
+.IX Subsection "html_css"
+.SS "html_javascript"
+.IX Subsection "html_javascript"
+.SS "title_prefix"
+.IX Subsection "title_prefix"
+.SS "title_postfix"
+.IX Subsection "title_postfix"
+.SS "html_header_before_title"
+.IX Subsection "html_header_before_title"
+This includes everything before the  opening tag including the Document type
+and including the opening <title> tag. The following call will set it to be a simple \s-1HTML\s0
+file:
+.PP
+.Vb 1
+\&  $p\->html_header_before_title(\*(Aq<html><head><title>\*(Aq);
+.Ve
+.SS "top_anchor"
+.IX Subsection "top_anchor"
+By default Pod::Simple::HTML adds a dummy anchor at the top of the \s-1HTML.\s0
+You can change it by calling
+.PP
+.Vb 1
+\&  $p\->top_anchor(\*(Aq<a name="zz" >\*(Aq);
+.Ve
+.SS "html_h_level"
+.IX Subsection "html_h_level"
+Normally =head1 will become <h1>, =head2 will become <h2> etc.
+Using the html_h_level method will change these levels setting the h level
+of =head1 tags:
+.PP
+.Vb 1
+\&  $p\->html_h_level(3);
+.Ve
+.PP
+Will make sure that =head1 will become <h3> and =head2 will become <h4> etc...
+.SS "index"
+.IX Subsection "index"
+Set it to some true value if you want to have an index (in reality a table of contents)
+to be added at the top of the generated \s-1HTML.\s0
+.PP
+.Vb 1
+\&  $p\->index(1);
+.Ve
+.SS "html_header_after_title"
+.IX Subsection "html_header_after_title"
+Includes the closing tag of  and through the rest of the head
+till the opening of the body
+.PP
+.Vb 1
+\&  $p\->html_header_after_title(\*(Aq...\*(Aq);
+.Ve
+.SS "html_footer"
+.IX Subsection "html_footer"
+The very end of the document:
+.PP
+.Vb 1
+\&  $p\->html_footer( qq[\en\en\en\en] );
+.Ve
+.SH "SUBCLASSING"
+.IX Header "SUBCLASSING"
+Can use any of the methods described above but for further customization
+one needs to override some of the methods:
+.PP
+.Vb 3
+\&  package My::Pod;
+\&  use strict;
+\&  use warnings;
+\&
+\&  use base \*(AqPod::Simple::HTML\*(Aq;
+\&
+\&  # needs to return a URL string such
+\&  # http://some.other.com/page.html
+\&  # #anchor_in_the_same_file
+\&  # /internal/ref.html
+\&  sub do_pod_link {
+\&    # My::Pod object and Pod::Simple::PullParserStartToken object
+\&    my ($self, $link) = @_;
+\&
+\&    say $link\->tagname;          # will be L for links
+\&    say $link\->attr(\*(Aqto\*(Aq);       # 
+\&    say $link\->attr(\*(Aqtype\*(Aq);     # will be \*(Aqpod\*(Aq always
+\&    say $link\->attr(\*(Aqsection\*(Aq);
+\&
+\&    # Links local to our web site
+\&    if ($link\->tagname eq \*(AqL\*(Aq and $link\->attr(\*(Aqtype\*(Aq) eq \*(Aqpod\*(Aq) {
+\&      my $to = $link\->attr(\*(Aqto\*(Aq);
+\&      if ($to =~ /^Padre::/) {
+\&          $to =~ s{::}{/}g;
+\&          return "/docs/Padre/$to.html";
+\&      }
+\&    }
+\&
+\&    # all other links are generated by the parent class
+\&    my $ret = $self\->SUPER::do_pod_link($link);
+\&    return $ret;
+\&  }
+\&
+\&  1;
+.Ve
+.PP
+Meanwhile in script.pl:
+.PP
+.Vb 1
+\&  use My::Pod;
+\&
+\&  my $p = My::Pod\->new;
+\&
+\&  my $html;
+\&  $p\->output_string(\e$html);
+\&  $p\->parse_file(\*(Aqpath/to/Module/Name.pm\*(Aq);
+\&  open my $out, \*(Aq>\*(Aq, \*(Aqout.html\*(Aq or die;
+\&  print $out $html;
+.Ve
+.PP
+\&\s-1TODO\s0
+.PP
+maybe override do_beginning do_end
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+Pod::Simple, Pod::Simple::HTMLBatch
+.PP
+\&\s-1TODO:\s0 a corpus of sample Pod input and \s-1HTML\s0 output?  Or common
+idioms?
+.SH "SUPPORT"
+.IX Header "SUPPORT"
+Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the
+pod\-people@perl.org mail list. Send an empty email to
+pod\-people\-subscribe@perl.org to subscribe.
+.PP
+This module is managed in an open GitHub repository,
+. Feel free to fork and contribute, or
+to clone  and send patches!
+.PP
+Patches against Pod::Simple are welcome. Please send bug reports to
+.
+.SH "COPYRIGHT AND DISCLAIMERS"
+.IX Header "COPYRIGHT AND DISCLAIMERS"
+Copyright (c) 2002\-2004 Sean M. Burke.
+.PP
+This library is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+.PP
+This program is distributed in the hope that it will be useful, but
+without any warranty; without even the implied warranty of
+merchantability or fitness for a particular purpose.
+.SH "ACKNOWLEDGEMENTS"
+.IX Header "ACKNOWLEDGEMENTS"
+Thanks to Hurricane Electric  for permission to use its
+Linux man pages online  site for man page links.
+.PP
+Thanks to search.cpan.org  for permission to use the
+site for Perl module links.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Pod::Simple was created by Sean M. Burke .
+But don't bother him, he's retired.
+.PP
+Pod::Simple is maintained by:
+.IP "\(bu" 4
+Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR
+.IP "\(bu" 4
+Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR
+.IP "\(bu" 4
+David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR
diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTMLBatch.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTMLBatch.3
new file mode 100644
index 0000000000000000000000000000000000000000..f7632d068e497ddcc6d0e7d3c83ee499567d2319
--- /dev/null
+++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AHTMLBatch.3
@@ -0,0 +1,444 @@
+.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
+.\"
+.\" 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
+.\"
+.\" 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 "Pod::Simple::HTMLBatch 3"
+.TH Pod::Simple::HTMLBatch 3 "2020-12-18" "perl v5.32.1" "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"
+Pod::Simple::HTMLBatch \- convert several Pod files to several HTML files
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+.Vb 1
+\&  perl \-MPod::Simple::HTMLBatch \-e \*(AqPod::Simple::HTMLBatch::go\*(Aq in out
+.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+This module is used for running batch-conversions of a lot of \s-1HTML\s0
+documents
+.PP
+This class is \s-1NOT\s0 a subclass of Pod::Simple::HTML
+(nor of bad old Pod::Html) \*(-- although it uses
+Pod::Simple::HTML for doing the conversion of each document.
+.PP
+The normal use of this class is like so:
+.PP
+.Vb 5
+\&  use Pod::Simple::HTMLBatch;
+\&  my $batchconv = Pod::Simple::HTMLBatch\->new;
+\&  $batchconv\->some_option( some_value );
+\&  $batchconv\->some_other_option( some_other_value );
+\&  $batchconv\->batch_convert( \e@search_dirs, $output_dir );
+.Ve
+.SS "\s-1FROM THE COMMAND LINE\s0"
+.IX Subsection "FROM THE COMMAND LINE"
+Note that this class also provides
+(but does not export) the function Pod::Simple::HTMLBatch::go.
+This is basically just a shortcut for \f(CW\*(C`Pod::Simple::HTMLBatch\->batch_convert(@ARGV)\*(C'\fR.
+It's meant to be handy for calling from the command line.
+.PP
+However, the shortcut requires that you specify exactly two command-line
+arguments, \f(CW\*(C`indirs\*(C'\fR and \f(CW\*(C`outdir\*(C'\fR.
+.PP
+Example:
+.PP
+.Vb 4
+\&  % mkdir out_html
+\&  % perl \-MPod::Simple::HTMLBatch \-e Pod::Simple::HTMLBatch::go @INC out_html
+\&      (to convert the pod from Perl\*(Aqs @INC
+\&       files under the directory ./out_html)
+.Ve
+.PP
+(Note that the command line there contains a literal atsign-I-N-C.  This
+is handled as a special case by batch_convert, in order to save you having
+to enter the odd-looking "\*(L" as the first command-line parameter when you
+mean \*(R"just use whatever's in \f(CW@INC\fR".)
+.PP
+Example:
+.PP
+.Vb 5
+\&  % mkdir ../seekrut
+\&  % chmod og\-rx ../seekrut
+\&  % perl \-MPod::Simple::HTMLBatch \-e Pod::Simple::HTMLBatch::go . ../seekrut
+\&      (to convert the pod under the current dir into HTML
+\&       files under the directory ./seekrut)
+.Ve
+.PP
+Example:
+.PP
+.Vb 2
+\&  % perl \-MPod::Simple::HTMLBatch \-e Pod::Simple::HTMLBatch::go happydocs .
+\&      (to convert all pod from happydocs into the current directory)
+.Ve
+.SH "MAIN METHODS"
+.IX Header "MAIN METHODS"
+.ie n .IP "$batchconv = Pod::Simple::HTMLBatch\->new;" 4
+.el .IP "\f(CW$batchconv\fR = Pod::Simple::HTMLBatch\->new;" 4
+.IX Item "$batchconv = Pod::Simple::HTMLBatch->new;"
+This creates a new batch converter.  The method doesn't take parameters.
+To change the converter's attributes, use the \*(L"\s-1ACCESSOR METHODS\*(R"\*(L"\s0 in \*(R"
+below.
+.ie n .IP "$batchconv\->batch_convert( \fIindirs\fR, \fIoutdir\fR );" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( \fIindirs\fR, \fIoutdir\fR );" 4
+.IX Item "$batchconv->batch_convert( indirs, outdir );"
+This searches the directories given in \fIindirs\fR and writes
+\&\s-1HTML\s0 files for each of these to a corresponding directory
+in \fIoutdir\fR.  The directory \fIoutdir\fR must exist.
+.ie n .IP "$batchconv\->batch_convert( undef    , ...);" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( undef    , ...);" 4
+.IX Item "$batchconv->batch_convert( undef , ...);"
+.PD 0
+.ie n .IP "$batchconv\->batch_convert( q{@INC}, ...);" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( q{@INC}, ...);" 4
+.IX Item "$batchconv->batch_convert( q{@INC}, ...);"
+.PD
+These two values for \fIindirs\fR specify that the normal Perl \f(CW@INC\fR
+.ie n .IP "$batchconv\->batch_convert( \e@dirs , ...);" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( \e@dirs , ...);" 4
+.IX Item "$batchconv->batch_convert( @dirs , ...);"
+This specifies that the input directories are the items in
+the arrayref \f(CW\*(C`\e@dirs\*(C'\fR.
+.ie n .IP "$batchconv\->batch_convert( ""somedir"" , ...);" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( ``somedir'' , ...);" 4
+.IX Item "$batchconv->batch_convert( somedir , ...);"
+This specifies that the director \*(L"somedir\*(R" is the input.
+(This can be an absolute or relative path, it doesn't matter.)
+.Sp
+A common value you might want would be just \*(L".\*(R" for the current
+directory:
+.Sp
+.Vb 1
+\&     $batchconv\->batch_convert( "." , ...);
+.Ve
+.ie n .IP "$batchconv\->batch_convert( 'somedir:someother:also' , ...);" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( 'somedir:someother:also' , ...);" 4
+.IX Item "$batchconv->batch_convert( 'somedir:someother:also' , ...);"
+This specifies that you want the dirs \*(L"somedir\*(R", \*(L"someother\*(R", and \*(L"also\*(R"
+scanned, just as if you'd passed the arrayref
+\&\f(CW\*(C`[qw( somedir someother also)]\*(C'\fR.  Note that a \*(L":\*(R"\-separator is normal
+under Unix, but Under MSWin, you'll need \f(CW\*(Aqsomedir;someother;also\*(Aq\fR
+instead, since the pathsep on MSWin is \*(L";\*(R" instead of \*(L":\*(R".  (And
+\&\fIthat\fR is because \*(L":\*(R" often comes up in paths, like
+\&\f(CW"c:/perl/lib"\fR.)
+.Sp
+(Exactly what separator character should be used, is gotten from
+\&\f(CW$Config::Config{\*(Aqpath_sep\*(Aq}\fR, via the Config module.)
+.ie n .IP "$batchconv\->batch_convert( ... , undef );" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( ... , undef );" 4
+.IX Item "$batchconv->batch_convert( ... , undef );"
+This specifies that you want the \s-1HTML\s0 output to go into the current
+directory.
+.Sp
+(Note that a missing or undefined value means a different thing in
+the first slot than in the second.  That's so that \f(CW\*(C`batch_convert()\*(C'\fR
+with no arguments (or undef arguments) means "go from \f(CW@INC\fR, into
+the current directory.)
+.ie n .IP "$batchconv\->batch_convert( ... , 'somedir' );" 4
+.el .IP "\f(CW$batchconv\fR\->batch_convert( ... , 'somedir' );" 4
+.IX Item "$batchconv->batch_convert( ... , 'somedir' );"
+This specifies that you want the \s-1HTML\s0 output to go into the
+directory 'somedir'.
+(This can be an absolute or relative path, it doesn't matter.)
+.PP
+Note that you can also call \f(CW\*(C`batch_convert\*(C'\fR as a class method,
+like so:
+.PP
+.Vb 1
+\&  Pod::Simple::HTMLBatch\->batch_convert( ... );
+.Ve
+.PP
+That is just short for this:
+.PP
+.Vb 1
+\&  Pod::Simple::HTMLBatch\-> new\-> batch_convert(...);
+.Ve
+.PP
+That is, it runs a conversion with default options, for
+whatever inputdirs and output dir you specify.
+.SS "\s-1ACCESSOR METHODS\s0"
+.IX Subsection "ACCESSOR METHODS"
+The following are all accessor methods \*(-- that is, they don't do anything
+on their own, but just alter the contents of the conversion object,
+which comprises the options for this particular batch conversion.
+.PP
+We show the \*(L"put\*(R" form of the accessors below (i.e., the syntax you use
+for setting the accessor to a specific value).  But you can also
+call each method with no parameters to get its current value.  For
+example, \f(CW\*(C`$self\->contents_file()\*(C'\fR returns the current value of
+the contents_file attribute.
+.ie n .IP "$batchconv\->verbose( \fInonnegative_integer\fR );" 4
+.el .IP "\f(CW$batchconv\fR\->verbose( \fInonnegative_integer\fR );" 4
+.IX Item "$batchconv->verbose( nonnegative_integer );"
+This controls how verbose to be during batch conversion, as far as
+notes to \s-1STDOUT\s0 (or whatever is \f(CW\*(C`select\*(C'\fR'd) about how the conversion
+is going.  If 0, no progress information is printed.
+If 1 (the default value), some progress information is printed.
+Higher values print more information.
+.ie n .IP "$batchconv\->index( \fItrue-or-false\fR );" 4
+.el .IP "\f(CW$batchconv\fR\->index( \fItrue-or-false\fR );" 4
+.IX Item "$batchconv->index( true-or-false );"
+This controls whether or not each \s-1HTML\s0 page is liable to have a little
+table of contents at the top (which we call an \*(L"index\*(R" for historical
+reasons).  This is true by default.
+.ie n .IP "$batchconv\->contents_file( \fIfilename\fR );" 4
+.el .IP "\f(CW$batchconv\fR\->contents_file( \fIfilename\fR );" 4
+.IX Item "$batchconv->contents_file( filename );"
+If set, should be the name of a file (in the output directory)
+to write the \s-1HTML\s0 index to.  The default value is \*(L"index.html\*(R".
+If you set this to a false value, no contents file will be written.
+.ie n .IP "$batchconv\->contents_page_start( \fIHTML_string\fR );" 4
+.el .IP "\f(CW$batchconv\fR\->contents_page_start( \fIHTML_string\fR );" 4
+.IX Item "$batchconv->contents_page_start( HTML_string );"
+This specifies what string should be put at the beginning of
+the contents page.
+The default is a string more or less like this:
+.Sp
+.Vb 4
+\&  
+\&  Perl Documentation
+\&  
+\&  

Perl Documentation

+.Ve +.ie n .IP "$batchconv\->contents_page_end( \fIHTML_string\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->contents_page_end( \fIHTML_string\fR );" 4 +.IX Item "$batchconv->contents_page_end( HTML_string );" +This specifies what string should be put at the end of the contents page. +The default is a string more or less like this: +.Sp +.Vb 4 +\&

Generated by +\& Pod::Simple::HTMLBatch v3.01 under Perl v5.008 +\&
At Fri May 14 22:26:42 2004 GMT, +\& which is Fri May 14 14:26:42 2004 local time.

+.Ve +.ie n .IP "$batchconv\->add_css( $url );" 4 +.el .IP "\f(CW$batchconv\fR\->add_css( \f(CW$url\fR );" 4 +.IX Item "$batchconv->add_css( $url );" +\&\s-1TODO\s0 +.ie n .IP "$batchconv\->add_javascript( $url );" 4 +.el .IP "\f(CW$batchconv\fR\->add_javascript( \f(CW$url\fR );" 4 +.IX Item "$batchconv->add_javascript( $url );" +\&\s-1TODO\s0 +.ie n .IP "$batchconv\->css_flurry( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->css_flurry( \fItrue-or-false\fR );" 4 +.IX Item "$batchconv->css_flurry( true-or-false );" +If true (the default value), we autogenerate some \s-1CSS\s0 files in the +output directory, and set our \s-1HTML\s0 files to use those. +\&\s-1TODO:\s0 continue +.ie n .IP "$batchconv\->javascript_flurry( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->javascript_flurry( \fItrue-or-false\fR );" 4 +.IX Item "$batchconv->javascript_flurry( true-or-false );" +If true (the default value), we autogenerate a JavaScript in the +output directory, and set our \s-1HTML\s0 files to use it. Currently, +the JavaScript is used only to get the browser to remember what +stylesheet it prefers. +\&\s-1TODO:\s0 continue +.ie n .IP "$batchconv\->no_contents_links( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->no_contents_links( \fItrue-or-false\fR );" 4 +.IX Item "$batchconv->no_contents_links( true-or-false );" +\&\s-1TODO\s0 +.ie n .IP "$batchconv\->html_render_class( \fIclassname\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->html_render_class( \fIclassname\fR );" 4 +.IX Item "$batchconv->html_render_class( classname );" +This sets what class is used for rendering the files. +The default is \*(L"Pod::Simple::HTML\*(R". If you set it to something else, +it should probably be a subclass of Pod::Simple::HTML, and you should +\&\f(CW\*(C`require\*(C'\fR or \f(CW\*(C`use\*(C'\fR that class so that's it's loaded before +Pod::Simple::HTMLBatch tries loading it. +.ie n .IP "$batchconv\->search_class( \fIclassname\fR );" 4 +.el .IP "\f(CW$batchconv\fR\->search_class( \fIclassname\fR );" 4 +.IX Item "$batchconv->search_class( classname );" +This sets what class is used for searching for the files. +The default is \*(L"Pod::Simple::Search\*(R". If you set it to something else, +it should probably be a subclass of Pod::Simple::Search, and you should +\&\f(CW\*(C`require\*(C'\fR or \f(CW\*(C`use\*(C'\fR that class so that's it's loaded before +Pod::Simple::HTMLBatch tries loading it. +.SH "NOTES ON CUSTOMIZATION" +.IX Header "NOTES ON CUSTOMIZATION" +\&\s-1TODO\s0 +.PP +.Vb 2 +\& call add_css($someurl) to add stylesheet as alternate +\& call add_css($someurl,1) to add as primary stylesheet +\& +\& call add_javascript +\& +\& subclass Pod::Simple::HTML and set $batchconv\->html_render_class to +\& that classname +\& and maybe override +\& $page\->batch_mode_page_object_init($self, $module, $infile, $outfile, $depth) +\& or maybe override +\& $batchconv\->batch_mode_page_object_init($page, $module, $infile, $outfile, $depth) +\& subclass Pod::Simple::Search and set $batchconv\->search_class to +\& that classname +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::HTMLBatch, perlpod, perlpodspec +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AJustPod.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AJustPod.3 new file mode 100644 index 0000000000000000000000000000000000000000..1817261b996afd0b7f5650c6606b80e739a1716c --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AJustPod.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::JustPod 3" +.TH Pod::Simple::JustPod 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::JustPod \-\- just the Pod, the whole Pod, and nothing but the Pod +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& my $infile = "mixed_code_and_pod.pm"; +\& my $outfile = "just_the_pod.pod"; +\& open my $fh, ">$outfile" or die "Can\*(Aqt write to $outfile: $!"; +\& +\& my $parser = Pod::Simple::JustPod\->new(); +\& $parser\->output_fh($fh); +\& $parser\->parse_file($infile); +\& close $fh or die "Can\*(Aqt close $outfile: $!"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class returns a copy of its input, translated into Perl's internal +encoding (\s-1UTF\-8\s0), and with all the non-Pod lines removed. +.PP +This is a subclass of Pod::Simple::Methody and inherits all its methods. +And since, that in turn is a subclass of Pod::Simple, you can use any of +its methods. This means you can output to a string instead of a file, or +you can parse from an array. +.PP +This class strives to return the Pod lines of the input completely unchanged, +except for any necessary translation into Perl's internal encoding, and it makes +no effort to return trailing spaces on lines; these likely will be stripped. +If the input pod is well-formed with no warnings nor errors generated, the +extracted pod should generate the same documentation when formatted by a Pod +formatter as the original file does. +.PP +By default, warnings are output to \s-1STDERR\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Methody +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the + mail list. Send an empty email to + to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR +.PP +Pod::Simple::JustPod was developed by John \s-1SJ\s0 Anderson +\&\f(CW\*(C`genehack@genehack.org\*(C'\fR, with contributions from Karl Williamson +\&\f(CW\*(C`khw@cpan.org\*(C'\fR. diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ALinkSection.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ALinkSection.3 new file mode 100644 index 0000000000000000000000000000000000000000..890cc91e49089c1b952c9e64994910d47b64e127 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ALinkSection.3 @@ -0,0 +1,231 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::LinkSection 3" +.TH Pod::Simple::LinkSection 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::LinkSection \-\- represent "section" attributes of L codes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # a long story +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is not of interest to general users. +.PP +Pod::Simple uses this class for representing the value of the +\&\*(L"section\*(R" attribute of \*(L"L\*(R" start-element events. Most applications +can just use the normal stringification of objects of this class; +they stringify to just the text content of the section, +such as \*(L"foo\*(R" for +\&\f(CW\*(C`L\*(C'\fR, and \*(L"bar\*(R" for +\&\f(CW\*(C`L>\*(C'\fR. +.PP +However, anyone particularly interested in getting the full value of +the treelet, can just traverse the content of the treeleet +@$treelet_object. To wit: +.PP +.Vb 10 +\& % perl \-MData::Dumper \-e +\& "use base qw(Pod::Simple::Methody); +\& sub start_L { print Dumper($_[1]{\*(Aqsection\*(Aq} ) } +\& _\|_PACKAGE_\|_\->new\->parse_string_document(\*(Aq=head1 Lbaz>>\*(Aq) +\& " +\&Output: +\& $VAR1 = bless( [ +\& \*(Aq\*(Aq, +\& {}, +\& \*(Aqb\*(Aq, +\& bless( [ +\& \*(AqI\*(Aq, +\& {}, +\& \*(Aqar\*(Aq +\& ], \*(AqPod::Simple::LinkSection\*(Aq ), +\& \*(Aqbaz\*(Aq +\& ], \*(AqPod::Simple::LinkSection\*(Aq ); +.Ve +.PP +But stringify it and you get just the text content: +.PP +.Vb 7 +\& % perl \-MData::Dumper \-e +\& "use base qw(Pod::Simple::Methody); +\& sub start_L { print Dumper( \*(Aq\*(Aq . $_[1]{\*(Aqsection\*(Aq} ) } +\& _\|_PACKAGE_\|_\->new\->parse_string_document(\*(Aq=head1 Lbaz>>\*(Aq) +\& " +\&Output: +\& $VAR1 = \*(Aqbarbaz\*(Aq; +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2004 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AMethody.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AMethody.3 new file mode 100644 index 0000000000000000000000000000000000000000..948960bbbfaaed570c9df0eb8994c3ed4ce30a04 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AMethody.3 @@ -0,0 +1,241 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::Methody 3" +.TH Pod::Simple::Methody 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::Methody \-\- turn Pod::Simple events into method calls +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& require 5; +\& use strict; +\& package SomePodFormatter; +\& use base qw(Pod::Simple::Methody); +\& +\& sub handle_text { +\& my($self, $text) = @_; +\& ... +\& } +\& +\& sub start_head1 { +\& my($self, $attrs) = @_; +\& ... +\& } +\& sub end_head1 { +\& my($self) = @_; +\& ... +\& } +.Ve +.PP +\&...and start_/end_ methods for whatever other events you want to catch. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is of +interest to people writing Pod formatters based on Pod::Simple. +.PP +This class (which is very small \*(-- read the source) overrides +Pod::Simple's _handle_element_start, _handle_text, and +_handle_element_end methods so that parser events are turned into method +calls. (Otherwise, this is a subclass of Pod::Simple and inherits all +its methods.) +.PP +You can use this class as the base class for a Pod formatter/processor. +.SH "METHOD CALLING" +.IX Header "METHOD CALLING" +When Pod::Simple sees a \*(L"=head1 Hi there\*(R", for example, it basically does +this: +.PP +.Vb 3 +\& $parser\->_handle_element_start( "head1", \e%attributes ); +\& $parser\->_handle_text( "Hi there" ); +\& $parser\->_handle_element_end( "head1" ); +.Ve +.PP +But if you subclass Pod::Simple::Methody, it will instead do this +when it sees a \*(L"=head1 Hi there\*(R": +.PP +.Vb 3 +\& $parser\->start_head1( \e%attributes ) if $parser\->can(\*(Aqstart_head1\*(Aq); +\& $parser\->handle_text( "Hi there" ) if $parser\->can(\*(Aqhandle_text\*(Aq); +\& $parser\->end_head1() if $parser\->can(\*(Aqend_head1\*(Aq); +.Ve +.PP +If Pod::Simple sends an event where the element name has a dash, +period, or colon, the corresponding method name will have a underscore +in its place. For example, \*(L"foo.bar:baz\*(R" becomes start_foo_bar_baz +and end_foo_bar_baz. +.PP +See the source for Pod::Simple::Text for an example of using this class. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Subclassing +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParser.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParser.3 new file mode 100644 index 0000000000000000000000000000000000000000..50292374cd1d7ad2ee2b27b6adf39d0284c708b9 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParser.3 @@ -0,0 +1,426 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::PullParser 3" +.TH Pod::Simple::PullParser 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::PullParser \-\- a pull\-parser interface to parsing Pod +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& my $parser = SomePodProcessor\->new; +\& $parser\->set_source( "whatever.pod" ); +\& $parser\->run; +.Ve +.PP +Or: +.PP +.Vb 3 +\& my $parser = SomePodProcessor\->new; +\& $parser\->set_source( $some_filehandle_object ); +\& $parser\->run; +.Ve +.PP +Or: +.PP +.Vb 3 +\& my $parser = SomePodProcessor\->new; +\& $parser\->set_source( \e$document_source ); +\& $parser\->run; +.Ve +.PP +Or: +.PP +.Vb 3 +\& my $parser = SomePodProcessor\->new; +\& $parser\->set_source( \e@document_lines ); +\& $parser\->run; +.Ve +.PP +And elsewhere: +.PP +.Vb 4 +\& require 5; +\& package SomePodProcessor; +\& use strict; +\& use base qw(Pod::Simple::PullParser); +\& +\& sub run { +\& my $self = shift; +\& Token: +\& while(my $token = $self\->get_token) { +\& ...process each token... +\& } +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is for using Pod::Simple to build a Pod processor \*(-- but +one that uses an interface based on a stream of token objects, +instead of based on events. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.PP +A subclass of Pod::Simple::PullParser should define a \f(CW\*(C`run\*(C'\fR method +that calls \f(CW\*(C`$token = $parser\->get_token\*(C'\fR to pull tokens. +.PP +See the source for Pod::Simple::RTF for an example of a formatter +that uses Pod::Simple::PullParser. +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "my $token = $parser\->get_token" 4 +.el .IP "my \f(CW$token\fR = \f(CW$parser\fR\->get_token" 4 +.IX Item "my $token = $parser->get_token" +This returns the next token object (which will be of a subclass of +Pod::Simple::PullParserToken), or undef if the parser-stream has hit +the end of the document. +.ie n .IP "$parser\->unget_token( $token )" 4 +.el .IP "\f(CW$parser\fR\->unget_token( \f(CW$token\fR )" 4 +.IX Item "$parser->unget_token( $token )" +.PD 0 +.ie n .IP "$parser\->unget_token( $token1, $token2, ... )" 4 +.el .IP "\f(CW$parser\fR\->unget_token( \f(CW$token1\fR, \f(CW$token2\fR, ... )" 4 +.IX Item "$parser->unget_token( $token1, $token2, ... )" +.PD +This restores the token object(s) to the front of the parser stream. +.PP +The source has to be set before you can parse anything. The lowest-level +way is to call \f(CW\*(C`set_source\*(C'\fR: +.ie n .IP "$parser\->set_source( $filename )" 4 +.el .IP "\f(CW$parser\fR\->set_source( \f(CW$filename\fR )" 4 +.IX Item "$parser->set_source( $filename )" +.PD 0 +.ie n .IP "$parser\->set_source( $filehandle_object )" 4 +.el .IP "\f(CW$parser\fR\->set_source( \f(CW$filehandle_object\fR )" 4 +.IX Item "$parser->set_source( $filehandle_object )" +.ie n .IP "$parser\->set_source( \e$document_source )" 4 +.el .IP "\f(CW$parser\fR\->set_source( \e$document_source )" 4 +.IX Item "$parser->set_source( $document_source )" +.ie n .IP "$parser\->set_source( \e@document_lines )" 4 +.el .IP "\f(CW$parser\fR\->set_source( \e@document_lines )" 4 +.IX Item "$parser->set_source( @document_lines )" +.PD +.PP +Or you can call these methods, which Pod::Simple::PullParser has defined +to work just like Pod::Simple's same-named methods: +.ie n .IP "$parser\->parse_file(...)" 4 +.el .IP "\f(CW$parser\fR\->parse_file(...)" 4 +.IX Item "$parser->parse_file(...)" +.PD 0 +.ie n .IP "$parser\->parse_string_document(...)" 4 +.el .IP "\f(CW$parser\fR\->parse_string_document(...)" 4 +.IX Item "$parser->parse_string_document(...)" +.ie n .IP "$parser\->filter(...)" 4 +.el .IP "\f(CW$parser\fR\->filter(...)" 4 +.IX Item "$parser->filter(...)" +.ie n .IP "$parser\->parse_from_file(...)" 4 +.el .IP "\f(CW$parser\fR\->parse_from_file(...)" 4 +.IX Item "$parser->parse_from_file(...)" +.PD +.PP +For those to work, the Pod-processing subclass of +Pod::Simple::PullParser has to have defined a \f(CW$parser\fR\->run method \*(-- +so it is advised that all Pod::Simple::PullParser subclasses do so. +See the Synopsis above, or the source for Pod::Simple::RTF. +.PP +Authors of formatter subclasses might find these methods useful to +call on a parser object that you haven't started pulling tokens +from yet: +.ie n .IP "my $title_string = $parser\->get_title" 4 +.el .IP "my \f(CW$title_string\fR = \f(CW$parser\fR\->get_title" 4 +.IX Item "my $title_string = $parser->get_title" +This tries to get the title string out of \f(CW$parser\fR, by getting some tokens, +and scanning them for the title, and then ungetting them so that you can +process the token-stream from the beginning. +.Sp +For example, suppose you have a document that starts out: +.Sp +.Vb 1 +\& =head1 NAME +\& +\& Hoo::Boy::Wowza \-\- Stuff B yeah! +.Ve +.Sp +\&\f(CW$parser\fR\->get_title on that document will return \*(L"Hoo::Boy::Wowza \*(-- +Stuff wow yeah!\*(R". If the document starts with: +.Sp +.Vb 1 +\& =head1 Name +\& +\& Hoo::Boy::W00t \-\- Stuff B yeah! +.Ve +.Sp +Then you'll need to pass the \f(CW\*(C`nocase\*(C'\fR option in order to recognize \*(L"Name\*(R": +.Sp +.Vb 1 +\& $parser\->get_title(nocase => 1); +.Ve +.Sp +In cases where get_title can't find the title, it will return empty-string +(""). +.ie n .IP "my $title_string = $parser\->get_short_title" 4 +.el .IP "my \f(CW$title_string\fR = \f(CW$parser\fR\->get_short_title" 4 +.IX Item "my $title_string = $parser->get_short_title" +This is just like get_title, except that it returns just the modulename, if +the title seems to be of the form \*(L"SomeModuleName \*(-- description\*(R". +.Sp +For example, suppose you have a document that starts out: +.Sp +.Vb 1 +\& =head1 NAME +\& +\& Hoo::Boy::Wowza \-\- Stuff B yeah! +.Ve +.Sp +then \f(CW$parser\fR\->get_short_title on that document will return +\&\*(L"Hoo::Boy::Wowza\*(R". +.Sp +But if the document starts out: +.Sp +.Vb 1 +\& =head1 NAME +\& +\& Hooboy, stuff B yeah! +.Ve +.Sp +then \f(CW$parser\fR\->get_short_title on that document will return \*(L"Hooboy, +stuff wow yeah!\*(R". If the document starts with: +.Sp +.Vb 1 +\& =head1 Name +\& +\& Hoo::Boy::W00t \-\- Stuff B yeah! +.Ve +.Sp +Then you'll need to pass the \f(CW\*(C`nocase\*(C'\fR option in order to recognize \*(L"Name\*(R": +.Sp +.Vb 1 +\& $parser\->get_short_title(nocase => 1); +.Ve +.Sp +If the title can't be found, then get_short_title returns empty-string +(""). +.ie n .IP "$author_name = $parser\->get_author" 4 +.el .IP "\f(CW$author_name\fR = \f(CW$parser\fR\->get_author" 4 +.IX Item "$author_name = $parser->get_author" +This works like get_title except that it returns the contents of the +\&\*(L"=head1 AUTHOR\en\enParagraph...\en\*(R" section, assuming that that section +isn't terribly long. To recognize a \*(L"=head1 Author\en\enParagraph\en\*(R" +section, pass the \f(CW\*(C`nocase\*(C'\fR option: +.Sp +.Vb 1 +\& $parser\->get_author(nocase => 1); +.Ve +.Sp +(This method tolerates \*(L"\s-1AUTHORS\*(R"\s0 instead of \*(L"\s-1AUTHOR\*(R"\s0 too.) +.ie n .IP "$description_name = $parser\->get_description" 4 +.el .IP "\f(CW$description_name\fR = \f(CW$parser\fR\->get_description" 4 +.IX Item "$description_name = $parser->get_description" +This works like get_title except that it returns the contents of the +\&\*(L"=head1 DESCRIPTION\en\enParagraph...\en\*(R" section, assuming that that section +isn't terribly long. To recognize a \*(L"=head1 Description\en\enParagraph\en\*(R" +section, pass the \f(CW\*(C`nocase\*(C'\fR option: +.Sp +.Vb 1 +\& $parser\->get_description(nocase => 1); +.Ve +.ie n .IP "$version_block = $parser\->get_version" 4 +.el .IP "\f(CW$version_block\fR = \f(CW$parser\fR\->get_version" 4 +.IX Item "$version_block = $parser->get_version" +This works like get_title except that it returns the contents of +the \*(L"=head1 VERSION\en\en[\s-1BIG BLOCK\s0]\en\*(R" block. Note that this does \s-1NOT\s0 +return the module's \f(CW$VERSION\fR!! To recognize a +\&\*(L"=head1 Version\en\en[\s-1BIG BLOCK\s0]\en\*(R" section, pass the \f(CW\*(C`nocase\*(C'\fR option: +.Sp +.Vb 1 +\& $parser\->get_version(nocase => 1); +.Ve +.SH "NOTE" +.IX Header "NOTE" +You don't actually \fIhave\fR to define a \f(CW\*(C`run\*(C'\fR method. If you're +writing a Pod-formatter class, you should define a \f(CW\*(C`run\*(C'\fR just so +that users can call \f(CW\*(C`parse_file\*(C'\fR etc, but you don't \fIhave\fR to. +.PP +And if you're not writing a formatter class, but are instead just +writing a program that does something simple with a Pod::PullParser +object (and not an object of a subclass), then there's no reason to +bother subclassing to add a \f(CW\*(C`run\*(C'\fR method. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple +.PP +Pod::Simple::PullParserToken \*(-- and its subclasses +Pod::Simple::PullParserStartToken, +Pod::Simple::PullParserTextToken, and +Pod::Simple::PullParserEndToken. +.PP +HTML::TokeParser, which inspired this. +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserEndToken.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserEndToken.3 new file mode 100644 index 0000000000000000000000000000000000000000..61590e2cf7dced887d195bd31f26fa4a2c6331b1 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserEndToken.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::PullParserEndToken 3" +.TH Pod::Simple::PullParserEndToken 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::PullParserEndToken \-\- end\-tokens from Pod::Simple::PullParser +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +(See Pod::Simple::PullParser) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When you do \f(CW$parser\fR\->get_token on a Pod::Simple::PullParser, you might +get an object of this class. +.PP +This is a subclass of Pod::Simple::PullParserToken and inherits all its methods, +and adds these methods: +.ie n .IP "$token\->tagname" 4 +.el .IP "\f(CW$token\fR\->tagname" 4 +.IX Item "$token->tagname" +This returns the tagname for this end-token object. +For example, parsing a \*(L"=head1 ...\*(R" line will give you +a start-token with the tagname of \*(L"head1\*(R", token(s) for its +content, and then an end-token with the tagname of \*(L"head1\*(R". +.ie n .IP "$token\->tagname(\fIsomestring\fR)" 4 +.el .IP "\f(CW$token\fR\->tagname(\fIsomestring\fR)" 4 +.IX Item "$token->tagname(somestring)" +This changes the tagname for this end-token object. +You probably won't need to do this. +.ie n .IP "$token\->tag(...)" 4 +.el .IP "\f(CW$token\fR\->tag(...)" 4 +.IX Item "$token->tag(...)" +A shortcut for \f(CW$token\fR\->tagname(...) +.ie n .IP "$token\->is_tag(\fIsomestring\fR) or $token\->is_tagname(\fIsomestring\fR)" 4 +.el .IP "\f(CW$token\fR\->is_tag(\fIsomestring\fR) or \f(CW$token\fR\->is_tagname(\fIsomestring\fR)" 4 +.IX Item "$token->is_tag(somestring) or $token->is_tagname(somestring)" +These are shortcuts for \f(CW\*(C`$token\->tag() eq \f(CIsomestring\f(CW\*(C'\fR +.PP +You're unlikely to ever need to construct an object of this class for +yourself, but if you want to, call +\&\f(CW\*(C`Pod::Simple::PullParserEndToken\->new( \f(CItagname\f(CW )\*(C'\fR +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserStartToken.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserStartToken.3 new file mode 100644 index 0000000000000000000000000000000000000000..49a6e2040389b1a5336a6e9456ea8174fdb8fe1c --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserStartToken.3 @@ -0,0 +1,237 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::PullParserStartToken 3" +.TH Pod::Simple::PullParserStartToken 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::PullParserStartToken \-\- start\-tokens from Pod::Simple::PullParser +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +(See Pod::Simple::PullParser) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When you do \f(CW$parser\fR\->get_token on a Pod::Simple::PullParser object, you might +get an object of this class. +.PP +This is a subclass of Pod::Simple::PullParserToken and inherits all its methods, +and adds these methods: +.ie n .IP "$token\->tagname" 4 +.el .IP "\f(CW$token\fR\->tagname" 4 +.IX Item "$token->tagname" +This returns the tagname for this start-token object. +For example, parsing a \*(L"=head1 ...\*(R" line will give you +a start-token with the tagname of \*(L"head1\*(R", token(s) for its +content, and then an end-token with the tagname of \*(L"head1\*(R". +.ie n .IP "$token\->tagname(\fIsomestring\fR)" 4 +.el .IP "\f(CW$token\fR\->tagname(\fIsomestring\fR)" 4 +.IX Item "$token->tagname(somestring)" +This changes the tagname for this start-token object. +You probably won't need +to do this. +.ie n .IP "$token\->tag(...)" 4 +.el .IP "\f(CW$token\fR\->tag(...)" 4 +.IX Item "$token->tag(...)" +A shortcut for \f(CW$token\fR\->tagname(...) +.ie n .IP "$token\->is_tag(\fIsomestring\fR) or $token\->is_tagname(\fIsomestring\fR)" 4 +.el .IP "\f(CW$token\fR\->is_tag(\fIsomestring\fR) or \f(CW$token\fR\->is_tagname(\fIsomestring\fR)" 4 +.IX Item "$token->is_tag(somestring) or $token->is_tagname(somestring)" +These are shortcuts for \f(CW\*(C`$token\->tag() eq \f(CIsomestring\f(CW\*(C'\fR +.ie n .IP "$token\->attr(\fIattrname\fR)" 4 +.el .IP "\f(CW$token\fR\->attr(\fIattrname\fR)" 4 +.IX Item "$token->attr(attrname)" +This returns the value of the \fIattrname\fR attribute for this start-token +object, or undef. +.Sp +For example, parsing a L link will produce a start-token +with a \*(L"to\*(R" attribute with the value \*(L"Foo\*(R", a \*(L"type\*(R" attribute with the +value \*(L"pod\*(R", and a \*(L"section\*(R" attribute with the value \*(L"Bar\*(R". +.ie n .IP "$token\->attr(\fIattrname\fR, \fInewvalue\fR)" 4 +.el .IP "\f(CW$token\fR\->attr(\fIattrname\fR, \fInewvalue\fR)" 4 +.IX Item "$token->attr(attrname, newvalue)" +This sets the \fIattrname\fR attribute for this start-token object to +\&\fInewvalue\fR. You probably won't need to do this. +.ie n .IP "$token\->attr_hash" 4 +.el .IP "\f(CW$token\fR\->attr_hash" 4 +.IX Item "$token->attr_hash" +This returns the hashref that is the attribute set for this start-token. +This is useful if (for example) you want to ask what all the attributes +are \*(-- you can just do \f(CW\*(C`keys %{$token\->attr_hash}\*(C'\fR +.PP +You're unlikely to ever need to construct an object of this class for +yourself, but if you want to, call +\&\f(CW\*(C`Pod::Simple::PullParserStartToken\->new( \f(CItagname\f(CW, \f(CIattrhash\f(CW )\*(C'\fR +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserTextToken.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserTextToken.3 new file mode 100644 index 0000000000000000000000000000000000000000..6ef097e0f94aeb0dd21895d373c5c11ea985b1c1 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserTextToken.3 @@ -0,0 +1,233 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::PullParserTextToken 3" +.TH Pod::Simple::PullParserTextToken 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::PullParserTextToken \-\- text\-tokens from Pod::Simple::PullParser +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +(See Pod::Simple::PullParser) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When you do \f(CW$parser\fR\->get_token on a Pod::Simple::PullParser, you might +get an object of this class. +.PP +This is a subclass of Pod::Simple::PullParserToken and inherits all its methods, +and adds these methods: +.ie n .IP "$token\->text" 4 +.el .IP "\f(CW$token\fR\->text" 4 +.IX Item "$token->text" +This returns the text that this token holds. For example, parsing +C will return a C start-token, a text-token, and a C end-token. And +if you want to get the \*(L"foo\*(R" out of the text-token, call \f(CW\*(C`$token\->text\*(C'\fR +.ie n .IP "$token\->text(\fIsomestring\fR)" 4 +.el .IP "\f(CW$token\fR\->text(\fIsomestring\fR)" 4 +.IX Item "$token->text(somestring)" +This changes the string that this token holds. You probably won't need +to do this. +.ie n .IP "$token\->\fBtext_r()\fR" 4 +.el .IP "\f(CW$token\fR\->\fBtext_r()\fR" 4 +.IX Item "$token->text_r()" +This returns a scalar reference to the string that this token holds. +This can be useful if you don't want to memory-copy the potentially +large text value (well, as large as a paragraph or a verbatim block) +as calling \f(CW$token\fR\->text would do. +.Sp +Or, if you want to alter the value, you can even do things like this: +.Sp +.Vb 1 +\& for ( ${ $token\->text_r } ) { # Aliases it with $_ !! +\& +\& s/ The / the /g; # just for example +\& +\& if( \*(AqA\*(Aq eq chr(65) ) { # (if in an ASCII world) +\& tr/\exA0/ /; +\& tr/\exAD//d; +\& } +\& +\& ...or however you want to alter the value... +\& (Note that starting with Perl v5.8, you can use, e.g., +\& +\& my $nbsp = chr utf8::unicode_to_native(0xA0); +\& s/$nbsp/ /g; +\& +\& to handle the above regardless if it\*(Aqs an ASCII world or not) +\& } +.Ve +.PP +You're unlikely to ever need to construct an object of this class for +yourself, but if you want to, call +\&\f(CW\*(C`Pod::Simple::PullParserTextToken\->new( \f(CItext\f(CW )\*(C'\fR +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::PullParserToken, Pod::Simple, Pod::Simple::Subclassing +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserToken.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserToken.3 new file mode 100644 index 0000000000000000000000000000000000000000..9c59c4139e54ed9209fcd330ba6f097a9be3d0f9 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3APullParserToken.3 @@ -0,0 +1,248 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::PullParserToken 3" +.TH Pod::Simple::PullParserToken 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::PullParserToken \-\- tokens from Pod::Simple::PullParser +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Given a \f(CW$parser\fR that's an object of class Pod::Simple::PullParser +(or a subclass)... +.PP +.Vb 4 +\& while(my $token = $parser\->get_token) { +\& $DEBUG and print STDERR "Token: ", $token\->dump, "\en"; +\& if($token\->is_start) { +\& ...access $token\->tagname, $token\->attr, etc... +\& +\& } elsif($token\->is_text) { +\& ...access $token\->text, $token\->text_r, etc... +\& +\& } elsif($token\->is_end) { +\& ...access $token\->tagname... +\& +\& } +\& } +.Ve +.PP +(Also see Pod::Simple::PullParser) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When you do \f(CW$parser\fR\->get_token on a Pod::Simple::PullParser, you should +get an object of a subclass of Pod::Simple::PullParserToken. +.PP +Subclasses will add methods, and will also inherit these methods: +.ie n .IP "$token\->type" 4 +.el .IP "\f(CW$token\fR\->type" 4 +.IX Item "$token->type" +This returns the type of the token. This will be either the string +\&\*(L"start\*(R", the string \*(L"text\*(R", or the string \*(L"end\*(R". +.Sp +Once you know what the type of an object is, you then know what +subclass it belongs to, and therefore what methods it supports. +.Sp +Yes, you could probably do the same thing with code like +\&\f(CW$token\fR\->isa('Pod::Simple::PullParserEndToken'), but that's not so +pretty as using just \f(CW$token\fR\->type, or even the following shortcuts: +.ie n .IP "$token\->is_start" 4 +.el .IP "\f(CW$token\fR\->is_start" 4 +.IX Item "$token->is_start" +This is a shortcut for \f(CW\*(C`$token\->type() eq "start"\*(C'\fR +.ie n .IP "$token\->is_text" 4 +.el .IP "\f(CW$token\fR\->is_text" 4 +.IX Item "$token->is_text" +This is a shortcut for \f(CW\*(C`$token\->type() eq "text"\*(C'\fR +.ie n .IP "$token\->is_end" 4 +.el .IP "\f(CW$token\fR\->is_end" 4 +.IX Item "$token->is_end" +This is a shortcut for \f(CW\*(C`$token\->type() eq "end"\*(C'\fR +.ie n .IP "$token\->dump" 4 +.el .IP "\f(CW$token\fR\->dump" 4 +.IX Item "$token->dump" +This returns a handy stringified value of this object. This +is useful for debugging, as in: +.Sp +.Vb 4 +\& while(my $token = $parser\->get_token) { +\& $DEBUG and print STDERR "Token: ", $token\->dump, "\en"; +\& ... +\& } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +My subclasses: +Pod::Simple::PullParserStartToken, +Pod::Simple::PullParserTextToken, and +Pod::Simple::PullParserEndToken. +.PP +Pod::Simple::PullParser and Pod::Simple +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASearch.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASearch.3 new file mode 100644 index 0000000000000000000000000000000000000000..cd2fd6444609e6777c773cdb235a7e8875adaa81 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASearch.3 @@ -0,0 +1,499 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::Search 3" +.TH Pod::Simple::Search 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::Search \- find POD documents in directory trees +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Pod::Simple::Search; +\& my $name2path = Pod::Simple::Search\->new\->limit_glob(\*(AqLWP::*\*(Aq)\->survey; +\& print "Looky see what I found: ", +\& join(\*(Aq \*(Aq, sort keys %$name2path), "\en"; +\& +\& print "LWPUA docs = ", +\& Pod::Simple::Search\->new\->find(\*(AqLWP::UserAgent\*(Aq) || "?", +\& "\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBPod::Simple::Search\fR is a class that you use for running searches +for Pod files. An object of this class has several attributes +(mostly options for controlling search options), and some methods +for searching based on those attributes. +.PP +The way to use this class is to make a new object of this class, +set any options, and then call one of the search options +(probably \f(CW\*(C`survey\*(C'\fR or \f(CW\*(C`find\*(C'\fR). The sections below discuss the +syntaxes for doing all that. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +This class provides the one constructor, called \f(CW\*(C`new\*(C'\fR. +It takes no parameters: +.PP +.Vb 2 +\& use Pod::Simple::Search; +\& my $search = Pod::Simple::Search\->new; +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +This class defines several methods for setting (and, occasionally, +reading) the contents of an object. With two exceptions (discussed at +the end of this section), these attributes are just for controlling the +way searches are carried out. +.PP +Note that each of these return \f(CW$self\fR when you call them as +\&\f(CW\*(C`$self\->\f(CIwhatever(value)\f(CW\*(C'\fR. That's so that you can chain +together set-attribute calls like this: +.PP +.Vb 4 +\& my $name2path = +\& Pod::Simple::Search\->new +\& \-> inc(0) \-> verbose(1) \-> callback(\e&blab) +\& \->survey(@there); +.Ve +.PP +\&...which works exactly as if you'd done this: +.PP +.Vb 5 +\& my $search = Pod::Simple::Search\->new; +\& $search\->inc(0); +\& $search\->verbose(1); +\& $search\->callback(\e&blab); +\& my $name2path = $search\->survey(@there); +.Ve +.ie n .IP "$search\->inc( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$search\fR\->inc( \fItrue-or-false\fR );" 4 +.IX Item "$search->inc( true-or-false );" +This attribute, if set to a true value, means that searches should +implicitly add perl's \fI\f(CI@INC\fI\fR paths. This +automatically considers paths specified in the \f(CW\*(C`PERL5LIB\*(C'\fR environment +as this is prepended to \fI\f(CI@INC\fI\fR by the Perl interpreter itself. +This attribute's default value is \fB\s-1TRUE\s0\fR. If you want to search +only specific directories, set \f(CW$self\fR\->\fBinc\fR\|(0) before calling +\&\f(CW$inc\fR\->survey or \f(CW$inc\fR\->find. +.ie n .IP "$search\->verbose( \fInonnegative-number\fR );" 4 +.el .IP "\f(CW$search\fR\->verbose( \fInonnegative-number\fR );" 4 +.IX Item "$search->verbose( nonnegative-number );" +This attribute, if set to a nonzero positive value, will make searches output +(via \f(CW\*(C`warn\*(C'\fR) notes about what they're doing as they do it. +This option may be useful for debugging a pod-related module. +This attribute's default value is zero, meaning that no \f(CW\*(C`warn\*(C'\fR messages +are produced. (Setting verbose to 1 turns on some messages, and setting +it to 2 turns on even more messages, i.e., makes the following search(es) +even more verbose than 1 would make them.) +.ie n .IP "$search\->limit_glob( \fIsome-glob-string\fR );" 4 +.el .IP "\f(CW$search\fR\->limit_glob( \fIsome-glob-string\fR );" 4 +.IX Item "$search->limit_glob( some-glob-string );" +This option means that you want to limit the results just to items whose +podnames match the given glob/wildcard expression. For example, you +might limit your search to just \*(L"LWP::*\*(R", to search only for modules +starting with \*(L"LWP::*\*(R" (but not including the module \*(L"\s-1LWP\*(R"\s0 itself); or +you might limit your search to \*(L"LW*\*(R" to see only modules whose (full) +names begin with \*(L"\s-1LW\*(R"\s0; or you might search for \*(L"*Find*\*(R" to search for +all modules with \*(L"Find\*(R" somewhere in their full name. (You can also use +\&\*(L"?\*(R" in a glob expression; so \*(L"\s-1DB\s0?\*(R" will match \*(L"\s-1DBI\*(R"\s0 and \*(L"\s-1DBD\*(R".\s0) +.ie n .IP "$search\->callback( \fI\e&some_routine\fR );" 4 +.el .IP "\f(CW$search\fR\->callback( \fI\e&some_routine\fR );" 4 +.IX Item "$search->callback( &some_routine );" +This attribute means that every time this search sees a matching +Pod file, it should call this callback routine. The routine is called +with two parameters: the current file's filespec, and its pod name. +(For example: \f(CW\*(C`("/etc/perljunk/File/Crunk.pm", "File::Crunk")\*(C'\fR would +be in \f(CW@_\fR.) +.Sp +The callback routine's return value is not used for anything. +.Sp +This attribute's default value is false, meaning that no callback +is called. +.ie n .IP "$search\->laborious( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$search\fR\->laborious( \fItrue-or-false\fR );" 4 +.IX Item "$search->laborious( true-or-false );" +Unless you set this attribute to a true value, Pod::Search will +apply Perl-specific heuristics to find the correct module PODs quickly. +This attribute's default value is false. You won't normally need +to set this to true. +.Sp +Specifically: Turning on this option will disable the heuristics for +seeing only files with Perl-like extensions, omitting subdirectories +that are numeric but do \fInot\fR match the current Perl interpreter's +version \s-1ID,\s0 suppressing \fIsite_perl\fR as a module hierarchy name, etc. +.ie n .IP "$search\->recurse( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$search\fR\->recurse( \fItrue-or-false\fR );" 4 +.IX Item "$search->recurse( true-or-false );" +Unless you set this attribute to a false value, Pod::Search will +recurse into subdirectories of the search directories. +.ie n .IP "$search\->shadows( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$search\fR\->shadows( \fItrue-or-false\fR );" 4 +.IX Item "$search->shadows( true-or-false );" +Unless you set this attribute to a true value, Pod::Simple::Search will +consider only the first file of a given modulename as it looks thru the +specified directories; that is, with this option off, if +Pod::Simple::Search has seen a \f(CW\*(C`somepathdir/Foo/Bar.pm\*(C'\fR already in this +search, then it won't bother looking at a \f(CW\*(C`somelaterpathdir/Foo/Bar.pm\*(C'\fR +later on in that search, because that file is merely a \*(L"shadow\*(R". But if +you turn on \f(CW\*(C`$self\->shadows(1)\*(C'\fR, then these \*(L"shadow\*(R" files are +inspected too, and are noted in the pathname2podname return hash. +.Sp +This attribute's default value is false; and normally you won't +need to turn it on. +.ie n .IP "$search\->is_case_insensitive( \fItrue-or-false\fR );" 4 +.el .IP "\f(CW$search\fR\->is_case_insensitive( \fItrue-or-false\fR );" 4 +.IX Item "$search->is_case_insensitive( true-or-false );" +Pod::Simple::Search will by default internally make an assumption +based on the underlying filesystem where the class file is found +whether it is case insensitive or not. +.Sp +If it is determined to be case insensitive, during \fBsurvey()\fR it may +skip pod files/modules that happen to be equal to names it's already +seen, ignoring case. +.Sp +However, it's possible to have distinct files in different directories +that intentionally has the same name, just differing in case, that should +be reported. Hence, you may force the behavior by setting this to true +or false. +.ie n .IP "$search\->limit_re( \fIsome-regxp\fR );" 4 +.el .IP "\f(CW$search\fR\->limit_re( \fIsome-regxp\fR );" 4 +.IX Item "$search->limit_re( some-regxp );" +Setting this attribute (to a value that's a regexp) means that you want +to limit the results just to items whose podnames match the given +regexp. Normally this option is not needed, and the more efficient +\&\f(CW\*(C`limit_glob\*(C'\fR attribute is used instead. +.ie n .IP "$search\->dir_prefix( \fIsome-string-value\fR );" 4 +.el .IP "\f(CW$search\fR\->dir_prefix( \fIsome-string-value\fR );" 4 +.IX Item "$search->dir_prefix( some-string-value );" +Setting this attribute to a string value means that the searches should +begin in the specified subdirectory name (like \*(L"Pod\*(R" or \*(L"File::Find\*(R", +also expressible as \*(L"File/Find\*(R"). For example, the search option +\&\f(CW\*(C`$search\->limit_glob("File::Find::R*")\*(C'\fR +is the same as the combination of the search options +\&\f(CW\*(C`$search\->limit_re("^File::Find::R") \-> dir_prefix("File::Find")\*(C'\fR. +.Sp +Normally you don't need to know about the \f(CW\*(C`dir_prefix\*(C'\fR option, but I +include it in case it might prove useful for someone somewhere. +.Sp +(Implementationally, searching with limit_glob ends up setting limit_re +and usually dir_prefix.) +.ie n .IP "$search\->progress( \fIsome-progress-object\fR );" 4 +.el .IP "\f(CW$search\fR\->progress( \fIsome-progress-object\fR );" 4 +.IX Item "$search->progress( some-progress-object );" +If you set a value for this attribute, the value is expected +to be an object (probably of a class that you define) that has a +\&\f(CW\*(C`reach\*(C'\fR method and a \f(CW\*(C`done\*(C'\fR method. This is meant for reporting +progress during the search, if you don't want to use a simple +callback. +.Sp +Normally you don't need to know about the \f(CW\*(C`progress\*(C'\fR option, but I +include it in case it might prove useful for someone somewhere. +.Sp +While a search is in progress, the progress object's \f(CW\*(C`reach\*(C'\fR and +\&\f(CW\*(C`done\*(C'\fR methods are called like this: +.Sp +.Vb 2 +\& # Every time a file is being scanned for pod: +\& $progress\->reach($count, "Scanning $file"); ++$count; +\& +\& # And then at the end of the search: +\& $progress\->done("Noted $count Pod files total"); +.Ve +.Sp +Internally, we often set this to an object of class +Pod::Simple::Progress. That class is probably undocumented, +but you may wish to look at its source. +.ie n .IP "$name2path = $self\->name2path;" 4 +.el .IP "\f(CW$name2path\fR = \f(CW$self\fR\->name2path;" 4 +.IX Item "$name2path = $self->name2path;" +This attribute is not a search parameter, but is used to report the +result of \f(CW\*(C`survey\*(C'\fR method, as discussed in the next section. +.ie n .IP "$path2name = $self\->path2name;" 4 +.el .IP "\f(CW$path2name\fR = \f(CW$self\fR\->path2name;" 4 +.IX Item "$path2name = $self->path2name;" +This attribute is not a search parameter, but is used to report the +result of \f(CW\*(C`survey\*(C'\fR method, as discussed in the next section. +.SH "MAIN SEARCH METHODS" +.IX Header "MAIN SEARCH METHODS" +Once you've actually set any options you want (if any), you can go +ahead and use the following methods to search for Pod files +in particular ways. +.ie n .SS """$search\->survey( @directories )""" +.el .SS "\f(CW$search\->survey( @directories )\fP" +.IX Subsection "$search->survey( @directories )" +The method \f(CW\*(C`survey\*(C'\fR searches for \s-1POD\s0 documents in a given set of +files and/or directories. This runs the search according to the various +options set by the accessors above. (For example, if the \f(CW\*(C`inc\*(C'\fR attribute +is on, as it is by default, then the perl \f(CW@INC\fR directories are implicitly +added to the list of directories (if any) that you specify.) +.PP +The return value of \f(CW\*(C`survey\*(C'\fR is two hashes: +.ie n .IP """name2path""" 4 +.el .IP "\f(CWname2path\fR" 4 +.IX Item "name2path" +A hash that maps from each pod-name to the filespec (like +\&\*(L"Stuff::Thing\*(R" => \*(L"/whatever/plib/Stuff/Thing.pm\*(R") +.ie n .IP """path2name""" 4 +.el .IP "\f(CWpath2name\fR" 4 +.IX Item "path2name" +A hash that maps from each Pod filespec to its pod-name (like +\&\*(L"/whatever/plib/Stuff/Thing.pm\*(R" => \*(L"Stuff::Thing\*(R") +.PP +Besides saving these hashes as the hashref attributes +\&\f(CW\*(C`name2path\*(C'\fR and \f(CW\*(C`path2name\*(C'\fR, calling this function also returns +these hashrefs. In list context, the return value of +\&\f(CW\*(C`$search\->survey\*(C'\fR is the list \f(CW\*(C`(\e%name2path, \e%path2name)\*(C'\fR. +In scalar context, the return value is \f(CW\*(C`\e%name2path\*(C'\fR. +Or you can just call this in void context. +.PP +Regardless of calling context, calling \f(CW\*(C`survey\*(C'\fR saves +its results in its \f(CW\*(C`name2path\*(C'\fR and \f(CW\*(C`path2name\*(C'\fR attributes. +.PP +E.g., when searching in \fI\f(CI$HOME\fI/perl5lib\fR, the file +\&\fI\f(CI$HOME\fI/perl5lib/MyModule.pm\fR would get the \s-1POD\s0 name \fIMyModule\fR, +whereas \fI\f(CI$HOME\fI/perl5lib/Myclass/Subclass.pm\fR would be +\&\fIMyclass::Subclass\fR. The name information can be used for \s-1POD\s0 +translators. +.PP +Only text files containing at least one valid \s-1POD\s0 command are found. +.PP +In verbose mode, a warning is printed if shadows are found (i.e., more +than one \s-1POD\s0 file with the same \s-1POD\s0 name is found, e.g. \fI\s-1CPAN\s0.pm\fR in +different directories). This usually indicates duplicate occurrences of +modules in the \fI\f(CI@INC\fI\fR search path, which is occasionally inadvertent +(but is often simply a case of a user's path dir having a more recent +version than the system's general path dirs in general.) +.PP +The options to this argument is a list of either directories that are +searched recursively, or files. (Usually you wouldn't specify files, +but just dirs.) Or you can just specify an empty-list, as in +\&\f(CW$name2path\fR; with the \f(CW\*(C`inc\*(C'\fR option on, as it is by default. +.PP +The \s-1POD\s0 names of files are the plain basenames with any Perl-like +extension (.pm, .pl, .pod) stripped, and path separators replaced by +\&\f(CW\*(C`::\*(C'\fR's. +.PP +Calling Pod::Simple::Search\->search(...) is short for +Pod::Simple::Search\->new\->search(...). That is, a throwaway object +with default attribute values is used. +.ie n .SS """$search\->simplify_name( $str )""" +.el .SS "\f(CW$search\->simplify_name( $str )\fP" +.IX Subsection "$search->simplify_name( $str )" +The method \fBsimplify_name\fR is equivalent to \fBbasename\fR, but also +strips Perl-like extensions (.pm, .pl, .pod) and extensions like +\&\fI.bat\fR, \fI.cmd\fR on Win32 and \s-1OS/2,\s0 or \fI.com\fR on \s-1VMS,\s0 respectively. +.ie n .SS """$search\->find( $pod )""" +.el .SS "\f(CW$search\->find( $pod )\fP" +.IX Subsection "$search->find( $pod )" +.ie n .SS """$search\->find( $pod, @search_dirs )""" +.el .SS "\f(CW$search\->find( $pod, @search_dirs )\fP" +.IX Subsection "$search->find( $pod, @search_dirs )" +Returns the location of a Pod file, given a Pod/module/script name +(like \*(L"Foo::Bar\*(R" or \*(L"perlvar\*(R" or \*(L"perldoc\*(R"), and an idea of +what files/directories to look in. +It searches according to the various options set by the accessors above. +(For example, if the \f(CW\*(C`inc\*(C'\fR attribute is on, as it is by default, then +the perl \f(CW@INC\fR directories are implicitly added to the list of +directories (if any) that you specify.) +.PP +This returns the full path of the first occurrence to the file. +Package names (eg 'A::B') are automatically converted to directory +names in the selected directory. Additionally, '.pm', '.pl' and '.pod' +are automatically appended to the search as required. +(So, for example, under Unix, \*(L"A::B\*(R" is converted to \*(L"somedir/A/B.pm\*(R", +\&\*(L"somedir/A/B.pod\*(R", or \*(L"somedir/A/B.pl\*(R", as appropriate.) +.PP +If no such Pod file is found, this method returns undef. +.PP +If any of the given search directories contains a \fIpod/\fR subdirectory, +then it is searched. (That's how we manage to find \fIperlfunc\fR, +for example, which is usually in \fIpod/perlfunc\fR in most Perl dists.) +.PP +The \f(CW\*(C`verbose\*(C'\fR and \f(CW\*(C`inc\*(C'\fR attributes influence the behavior of this +search; notably, \f(CW\*(C`inc\*(C'\fR, if true, adds \f(CW@INC\fR \fIand also +\&\f(CI$Config::Config\fI{'scriptdir'}\fR to the list of directories to search. +.PP +It is common to simply say \f(CW\*(C`$filename = Pod::Simple::Search\-> new +\&\->find("perlvar")\*(C'\fR so that just the \f(CW@INC\fR (well, and scriptdir) +directories are searched. (This happens because the \f(CW\*(C`inc\*(C'\fR +attribute is true by default.) +.PP +Calling Pod::Simple::Search\->find(...) is short for +Pod::Simple::Search\->new\->find(...). That is, a throwaway object +with default attribute values is used. +.ie n .SS """$self\->contains_pod( $file )""" +.el .SS "\f(CW$self\->contains_pod( $file )\fP" +.IX Subsection "$self->contains_pod( $file )" +Returns true if the supplied filename (not \s-1POD\s0 module) contains some Pod +documentation. +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke with code borrowed +from Marek Rouchal's Pod::Find, which in turn heavily borrowed code from +Nick Ing\-Simmons' \f(CW\*(C`PodToHtml\*(C'\fR. +.PP +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASimpleTree.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASimpleTree.3 new file mode 100644 index 0000000000000000000000000000000000000000..5f3c22cd095090dcb3eddd020e77b04acc0dc879 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASimpleTree.3 @@ -0,0 +1,244 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::SimpleTree 3" +.TH Pod::Simple::SimpleTree 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::SimpleTree \-\- parse Pod into a simple parse tree +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& % cat ptest.pod +\& +\& =head1 PIE +\& +\& I like B! +\& +\& % perl \-MPod::Simple::SimpleTree \-MData::Dumper \-e \e +\& "print Dumper(Pod::Simple::SimpleTree\->new\->parse_file(shift)\->root)" \e +\& ptest.pod +\& +\& $VAR1 = [ +\& \*(AqDocument\*(Aq, +\& { \*(Aqstart_line\*(Aq => 1 }, +\& [ +\& \*(Aqhead1\*(Aq, +\& { \*(Aqstart_line\*(Aq => 1 }, +\& \*(AqPIE\*(Aq +\& ], +\& [ +\& \*(AqPara\*(Aq, +\& { \*(Aqstart_line\*(Aq => 3 }, +\& \*(AqI like \*(Aq, +\& [ +\& \*(AqB\*(Aq, +\& {}, +\& \*(Aqpie\*(Aq +\& ], +\& \*(Aq!\*(Aq +\& ] +\& ]; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is of interest to people writing a Pod processor/formatter. +.PP +This class takes Pod and parses it, returning a parse tree made just +of arrayrefs, and hashrefs, and strings. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.PP +This class is inspired by XML::Parser's \*(L"Tree\*(R" parsing-style, although +it doesn't use exactly the same LoL format. +.SH "METHODS" +.IX Header "METHODS" +At the end of the parse, call \f(CW\*(C`$parser\->root\*(C'\fR to get the +tree's top node. +.SH "Tree Contents" +.IX Header "Tree Contents" +Every element node in the parse tree is represented by an arrayref of +the form: \f(CW\*(C`[ \f(CIelementname\f(CW, \e%attributes, \f(CI...subnodes...\f(CW ]\*(C'\fR. +See the example tree dump in the Synopsis, above. +.PP +Every text node in the tree is represented by a simple (non-ref) +string scalar. So you can test \f(CW\*(C`ref($node)\*(C'\fR to see whether you have +an element node or just a text node. +.PP +The top node in the tree is \f(CW\*(C`[ \*(AqDocument\*(Aq, \e%attributes, +\&\f(CI...subnodes...\f(CW ]\*(C'\fR +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple +.PP +perllol +.PP +The \*(L"Tree\*(R" subsubsection in XML::Parser +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AText.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AText.3 new file mode 100644 index 0000000000000000000000000000000000000000..9a7c3f8171d0f36bd20a1cba141a0855897f62f5 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AText.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::Text 3" +.TH Pod::Simple::Text 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::Text \-\- format Pod as plaintext +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::Text \-e \e +\& "exit Pod::Simple::Text\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is a formatter that takes Pod and renders it as +wrapped plaintext. +.PP +Its wrapping is done by Text::Wrap, so you can change +\&\f(CW$Text::Wrap::columns\fR as you like. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::TextContent, Pod::Text +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ATextContent.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ATextContent.3 new file mode 100644 index 0000000000000000000000000000000000000000..ef4e3bbf6f588518caa7509c050c33abfc192e29 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ATextContent.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::TextContent 3" +.TH Pod::Simple::TextContent 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::TextContent \-\- get the text content of Pod +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& TODO +\& +\& perl \-MPod::Simple::TextContent \-e \e +\& "exit Pod::Simple::TextContent\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is that parses Pod and dumps just the text content. It is +mainly meant for use by the Pod::Simple test suite, but you may find +some other use for it. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Text, Pod::Spell +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXHTML.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXHTML.3 new file mode 100644 index 0000000000000000000000000000000000000000..d29763397c64342b73ebebdbecb7a1b210575c61 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXHTML.3 @@ -0,0 +1,476 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::XHTML 3" +.TH Pod::Simple::XHTML 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::XHTML \-\- format Pod as validating XHTML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Simple::XHTML; +\& +\& my $parser = Pod::Simple::XHTML\->new(); +\& +\& ... +\& +\& $parser\->parse_file(\*(Aqpath/to/file.pod\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is a formatter that takes Pod and renders it as \s-1XHTML\s0 +validating \s-1HTML.\s0 +.PP +This is a subclass of Pod::Simple::Methody and inherits all its +methods. The implementation is entirely different than +Pod::Simple::HTML, but it largely preserves the same interface. +.SS "Minimal code" +.IX Subsection "Minimal code" +.Vb 6 +\& use Pod::Simple::XHTML; +\& my $psx = Pod::Simple::XHTML\->new; +\& $psx\->output_string(\emy $html); +\& $psx\->parse_file(\*(Aqpath/to/Module/Name.pm\*(Aq); +\& open my $out, \*(Aq>\*(Aq, \*(Aqout.html\*(Aq or die "Cannot open \*(Aqout.html\*(Aq: $!\en"; +\& print $out $html; +.Ve +.PP +You can also control the character encoding and entities. For example, if +you're sure that the \s-1POD\s0 is properly encoded (using the \f(CW\*(C`=encoding\*(C'\fR command), +you can prevent high-bit characters from being encoded as \s-1HTML\s0 entities and +declare the output character set as \s-1UTF\-8\s0 before parsing, like so: +.PP +.Vb 2 +\& $psx\->html_charset(\*(AqUTF\-8\*(Aq); +\& $psx\->html_encode_chars(q{&<>\*(Aq"}); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Pod::Simple::XHTML offers a number of methods that modify the format of +the \s-1HTML\s0 output. Call these after creating the parser object, but before +the call to \f(CW\*(C`parse_file\*(C'\fR: +.PP +.Vb 3 +\& my $parser = Pod::PseudoPod::HTML\->new(); +\& $parser\->set_optional_param("value"); +\& $parser\->parse_file($file); +.Ve +.SS "perldoc_url_prefix" +.IX Subsection "perldoc_url_prefix" +In turning Foo::Bar into http://whatever/Foo%3a%3aBar, what +to put before the \*(L"Foo%3a%3aBar\*(R". The default value is +\&\*(L"https://metacpan.org/pod/\*(R". +.SS "perldoc_url_postfix" +.IX Subsection "perldoc_url_postfix" +What to put after \*(L"Foo%3a%3aBar\*(R" in the \s-1URL.\s0 This option is not set by +default. +.SS "man_url_prefix" +.IX Subsection "man_url_prefix" +In turning \f(CWcrontab(5)\fR into http://whatever/man/1/crontab, what +to put before the \*(L"1/crontab\*(R". The default value is +\&\*(L"http://man.he.net/man\*(R". +.SS "man_url_postfix" +.IX Subsection "man_url_postfix" +What to put after \*(L"1/crontab\*(R" in the \s-1URL.\s0 This option is not set by default. +.SS "title_prefix, title_postfix" +.IX Subsection "title_prefix, title_postfix" +What to put before and after the title in the head. The values should +already be &\-escaped. +.SS "html_css" +.IX Subsection "html_css" +.Vb 1 +\& $parser\->html_css(\*(Aqpath/to/style.css\*(Aq); +.Ve +.PP +The \s-1URL\s0 or relative path of a \s-1CSS\s0 file to include. This option is not +set by default. +.SS "html_javascript" +.IX Subsection "html_javascript" +The \s-1URL\s0 or relative path of a JavaScript file to pull in. This option is +not set by default. +.SS "html_doctype" +.IX Subsection "html_doctype" +A document type tag for the file. This option is not set by default. +.SS "html_charset" +.IX Subsection "html_charset" +The character set to declare in the Content-Type meta tag created by default +for \f(CW\*(C`html_header_tags\*(C'\fR. Note that this option will be ignored if the value of +\&\f(CW\*(C`html_header_tags\*(C'\fR is changed. Defaults to \*(L"\s-1ISO\-8859\-1\*(R".\s0 +.SS "html_header_tags" +.IX Subsection "html_header_tags" +Additional arbitrary \s-1HTML\s0 tags for the header of the document. The +default value is just a content type header tag: +.PP +.Vb 1 +\& +.Ve +.PP +Add additional meta tags here, or blocks of inline \s-1CSS\s0 or JavaScript +(wrapped in the appropriate tags). +.PP +\fIhtml_encode_chars\fR +.IX Subsection "html_encode_chars" +.PP +A string containing all characters that should be encoded as \s-1HTML\s0 entities, +specified using the regular expression character class syntax (what you find +within brackets in regular expressions). This value will be passed as the +second argument to the \f(CW\*(C`encode_entities\*(C'\fR function of HTML::Entities. If +HTML::Entities is not installed, then any characters other than \f(CW\*(C`&<\*(C'\fR"'> +will be encoded numerically. +.SS "html_h_level" +.IX Subsection "html_h_level" +This is the level of \s-1HTML\s0 \*(L"Hn\*(R" element to which a Pod \*(L"head1\*(R" corresponds. For +example, if \f(CW\*(C`html_h_level\*(C'\fR is set to 2, a head1 will produce an H2, a head2 +will produce an H3, and so on. +.SS "default_title" +.IX Subsection "default_title" +Set a default title for the page if no title can be determined from the +content. The value of this string should already be &\-escaped. +.SS "force_title" +.IX Subsection "force_title" +Force a title for the page (don't try to determine it from the content). +The value of this string should already be &\-escaped. +.SS "html_header, html_footer" +.IX Subsection "html_header, html_footer" +Set the \s-1HTML\s0 output at the beginning and end of each file. The default +header includes a title, a doctype tag (if \f(CW\*(C`html_doctype\*(C'\fR is set), a +content tag (customized by \f(CW\*(C`html_header_tags\*(C'\fR), a tag for a \s-1CSS\s0 file +(if \f(CW\*(C`html_css\*(C'\fR is set), and a tag for a Javascript file (if +\&\f(CW\*(C`html_javascript\*(C'\fR is set). The default footer simply closes the \f(CW\*(C`html\*(C'\fR +and \f(CW\*(C`body\*(C'\fR tags. +.PP +The options listed above customize parts of the default header, but +setting \f(CW\*(C`html_header\*(C'\fR or \f(CW\*(C`html_footer\*(C'\fR completely overrides the +built-in header or footer. These may be useful if you want to use +template tags instead of literal \s-1HTML\s0 headers and footers or are +integrating converted \s-1POD\s0 pages in a larger website. +.PP +If you want no headers or footers output in the \s-1HTML,\s0 set these options +to the empty string. +.SS "index" +.IX Subsection "index" +Whether to add a table-of-contents at the top of each page (called an +index for the sake of tradition). +.SS "anchor_items" +.IX Subsection "anchor_items" +Whether to anchor every definition \f(CW\*(C`=item\*(C'\fR directive. This needs to be +enabled if you want to be able to link to specific \f(CW\*(C`=item\*(C'\fR directives, which +are output as \f(CW\*(C`
\*(C'\fR elements. Disabled by default. +.SS "backlink" +.IX Subsection "backlink" +Whether to turn every =head1 directive into a link pointing to the top +of the page (specifically, the opening body tag). +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +If the standard options aren't enough, you may want to subclass +Pod::Simple::XHMTL. These are the most likely candidates for methods +you'll want to override when subclassing. +.SS "handle_text" +.IX Subsection "handle_text" +This method handles the body of text within any element: it's the body +of a paragraph, or everything between a \*(L"=begin\*(R" tag and the +corresponding \*(L"=end\*(R" tag, or the text within an L entity, etc. You would +want to override this if you are adding a custom element type that does +more than just display formatted text. Perhaps adding a way to generate +\&\s-1HTML\s0 tables from an extended version of \s-1POD.\s0 +.PP +So, let's say you want to add a custom element called 'foo'. In your +subclass's \f(CW\*(C`new\*(C'\fR method, after calling \f(CW\*(C`SUPER::new\*(C'\fR you'd call: +.PP +.Vb 1 +\& $new\->accept_targets_as_text( \*(Aqfoo\*(Aq ); +.Ve +.PP +Then override the \f(CW\*(C`start_for\*(C'\fR method in the subclass to check for when +\&\*(L"$flags\->{'target'}\*(R" is equal to 'foo' and set a flag that marks that +you're in a foo block (maybe \*(L"$self\->{'in_foo'} = 1\*(R"). Then override the +\&\f(CW\*(C`handle_text\*(C'\fR method to check for the flag, and pass \f(CW$text\fR to your +custom subroutine to construct the \s-1HTML\s0 output for 'foo' elements, +something like: +.PP +.Vb 8 +\& sub handle_text { +\& my ($self, $text) = @_; +\& if ($self\->{\*(Aqin_foo\*(Aq}) { +\& $self\->{\*(Aqscratch\*(Aq} .= build_foo_html($text); +\& return; +\& } +\& $self\->SUPER::handle_text($text); +\& } +.Ve +.SS "handle_code" +.IX Subsection "handle_code" +This method handles the body of text that is marked up to be code. +You might for instance override this to plug in a syntax highlighter. +The base implementation just escapes the text. +.PP +The callback methods \f(CW\*(C`start_code\*(C'\fR and \f(CW\*(C`end_code\*(C'\fR emits the \f(CW\*(C`code\*(C'\fR tags +before and after \f(CW\*(C`handle_code\*(C'\fR is invoked, so you might want to override these +together with \f(CW\*(C`handle_code\*(C'\fR if this wrapping isn't suitable. +.PP +Note that the code might be broken into multiple segments if there are +nested formatting codes inside a \f(CW\*(C`C<...>\*(C'\fR sequence. In between the +calls to \f(CW\*(C`handle_code\*(C'\fR other markup tags might have been emitted in that +case. The same is true for verbatim sections if the \f(CW\*(C`codes_in_verbatim\*(C'\fR +option is turned on. +.SS "accept_targets_as_html" +.IX Subsection "accept_targets_as_html" +This method behaves like \f(CW\*(C`accept_targets_as_text\*(C'\fR, but also marks the region +as one whose content should be emitted literally, without \s-1HTML\s0 entity escaping +or wrapping in a \f(CW\*(C`div\*(C'\fR element. +.SS "resolve_pod_page_link" +.IX Subsection "resolve_pod_page_link" +.Vb 3 +\& my $url = $pod\->resolve_pod_page_link(\*(AqNet::Ping\*(Aq, \*(AqINSTALL\*(Aq); +\& my $url = $pod\->resolve_pod_page_link(\*(Aqperlpodspec\*(Aq); +\& my $url = $pod\->resolve_pod_page_link(undef, \*(AqSYNOPSIS\*(Aq); +.Ve +.PP +Resolves a \s-1POD\s0 link target (typically a module or \s-1POD\s0 file name) and section +name to a \s-1URL.\s0 The resulting link will be returned for the above examples as: +.PP +.Vb 3 +\& https://metacpan.org/pod/Net::Ping#INSTALL +\& https://metacpan.org/pod/perlpodspec +\& #SYNOPSIS +.Ve +.PP +Note that when there is only a section argument the \s-1URL\s0 will simply be a link +to a section in the current document. +.SS "resolve_man_page_link" +.IX Subsection "resolve_man_page_link" +.Vb 2 +\& my $url = $pod\->resolve_man_page_link(\*(Aqcrontab(5)\*(Aq, \*(AqEXAMPLE CRON FILE\*(Aq); +\& my $url = $pod\->resolve_man_page_link(\*(Aqcrontab\*(Aq); +.Ve +.PP +Resolves a man page link target and numeric section to a \s-1URL.\s0 The resulting +link will be returned for the above examples as: +.PP +.Vb 2 +\& http://man.he.net/man5/crontab +\& http://man.he.net/man1/crontab +.Ve +.PP +Note that the first argument is required. The section number will be parsed +from it, and if it's missing will default to 1. The second argument is +currently ignored, as man.he.net does not currently +include linkable IDs or anchor names in its pages. Subclass to link to a +different man page \s-1HTTP\s0 server. +.SS "idify" +.IX Subsection "idify" +.Vb 2 +\& my $id = $pod\->idify($text); +\& my $hash = $pod\->idify($text, 1); +.Ve +.PP +This method turns an arbitrary string into a valid \s-1XHTML ID\s0 attribute value. +The rules enforced, following +, are: +.IP "\(bu" 4 +The id must start with a letter (a\-z or A\-Z) +.IP "\(bu" 4 +All subsequent characters can be letters, numbers (0\-9), hyphens (\-), +underscores (_), colons (:), and periods (.). +.IP "\(bu" 4 +The final character can't be a hyphen, colon, or period. URLs ending with these +characters, while allowed by \s-1XHTML,\s0 can be awkward to extract from plain text. +.IP "\(bu" 4 +Each id must be unique within the document. +.PP +In addition, the returned value will be unique within the context of the +Pod::Simple::XHTML object unless a second argument is passed a true value. \s-1ID\s0 +attributes should always be unique within a single \s-1XHTML\s0 document, but pass +the true value if you are creating not an \s-1ID\s0 but a \s-1URL\s0 hash to point to +an \s-1ID\s0 (i.e., if you need to put the \*(L"#foo\*(R" in \f(CW\*(C`foo\*(C'\fR. +.SS "batch_mode_page_object_init" +.IX Subsection "batch_mode_page_object_init" +.Vb 1 +\& $pod\->batch_mode_page_object_init($batchconvobj, $module, $infile, $outfile, $depth); +.Ve +.PP +Called by Pod::Simple::HTMLBatch so that the class has a chance to +initialize the converter. Internally it sets the \f(CW\*(C`batch_mode\*(C'\fR property to +true and sets \f(CW\*(C`batch_mode_current_level()\*(C'\fR, but Pod::Simple::XHTML does not +currently use those features. Subclasses might, though. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Text, Pod::Spell +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2003\-2005 Allison Randal. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Thanks to Hurricane Electric for permission to use its +Linux man pages online site for man page links. +.PP +Thanks to search.cpan.org for permission to use the +site for Perl module links. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simpele::XHTML was created by Allison Randal . +.PP +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXMLOutStream.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXMLOutStream.3 new file mode 100644 index 0000000000000000000000000000000000000000..0b030a9b5bd69c4331d1a2b2414d2c6f8a42c726 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3AXMLOutStream.3 @@ -0,0 +1,206 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple::XMLOutStream 3" +.TH Pod::Simple::XMLOutStream 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple::XMLOutStream \-\- turn Pod into XML +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::XMLOutStream \-e \e +\& "exit Pod::Simple::XMLOutStream\->filter(shift)\->any_errata_seen" \e +\& thingy.pod +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Simple::XMLOutStream is a subclass of Pod::Simple that parses +Pod and turns it into \s-1XML.\s0 +.PP +Pod::Simple::XMLOutStream inherits methods from +Pod::Simple. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::DumpAsXML is rather like this class; see its +documentation for a discussion of the differences. +.PP +Pod::Simple, Pod::Simple::DumpAsXML, Pod::SAX +.PP +Pod::Simple::Subclassing +.PP +The older (and possibly obsolete) libraries Pod::PXML, Pod::XML +.SH "ABOUT EXTENDING POD" +.IX Header "ABOUT EXTENDING POD" +\&\s-1TODO:\s0 An example or two of =extend, then point to Pod::Simple::Subclassing +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Simple::Text, Pod::Spell +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002\-2004 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple.3 new file mode 100644 index 0000000000000000000000000000000000000000..bbcf9eea98a6b112b4ada619b3c8e75c460a3e64 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple.3 @@ -0,0 +1,602 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Simple 3" +.TH Pod::Simple 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Simple \- framework for parsing Pod +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& TODO +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Simple is a Perl library for parsing text in the Pod (\*(L"plain old +documentation\*(R") markup language that is typically used for writing +documentation for Perl and for Perl modules. The Pod format is explained +in perlpod; the most common formatter is called \f(CW\*(C`perldoc\*(C'\fR. +.PP +Be sure to read \*(L"\s-1ENCODING\*(R"\s0 if your Pod contains non-ASCII characters. +.PP +Pod formatters can use Pod::Simple to parse Pod documents and render them into +plain text, \s-1HTML,\s0 or any number of other formats. Typically, such formatters +will be subclasses of Pod::Simple, and so they will inherit its methods, like +\&\f(CW\*(C`parse_file\*(C'\fR. But note that Pod::Simple doesn't understand and +properly parse Perl itself, so if you have a file which contains a Perl +program that has a multi-line quoted string which has lines that look +like pod, Pod::Simple will treat them as pod. This can be avoided if +the file makes these into indented here documents instead. +.PP +If you're reading this document just because you have a Pod-processing +subclass that you want to use, this document (plus the documentation for the +subclass) is probably all you need to read. +.PP +If you're reading this document because you want to write a formatter +subclass, continue reading it and then read Pod::Simple::Subclassing, and +then possibly even read perlpodspec (some of which is for parser-writers, +but much of which is notes to formatter-writers). +.SH "MAIN METHODS" +.IX Header "MAIN METHODS" +.ie n .IP """$parser = \fISomeClass\fP\->new();""" 4 +.el .IP "\f(CW$parser = \f(CISomeClass\f(CW\->new();\fR" 4 +.IX Item "$parser = SomeClass->new();" +This returns a new parser object, where \fI\f(CI\*(C`SomeClass\*(C'\fI\fR is a subclass +of Pod::Simple. +.ie n .IP """$parser\->output_fh( *OUT );""" 4 +.el .IP "\f(CW$parser\->output_fh( *OUT );\fR" 4 +.IX Item "$parser->output_fh( *OUT );" +This sets the filehandle that \f(CW$parser\fR's output will be written to. +You can pass \f(CW*STDOUT\fR or \f(CW*STDERR\fR, otherwise you should probably do +something like this: +.Sp +.Vb 3 +\& my $outfile = "output.txt"; +\& open TXTOUT, ">$outfile" or die "Can\*(Aqt write to $outfile: $!"; +\& $parser\->output_fh(*TXTOUT); +.Ve +.Sp +\&...before you call one of the \f(CW\*(C`$parser\->parse_\f(CIwhatever\f(CW\*(C'\fR methods. +.ie n .IP """$parser\->output_string( \e$somestring );""" 4 +.el .IP "\f(CW$parser\->output_string( \e$somestring );\fR" 4 +.IX Item "$parser->output_string( $somestring );" +This sets the string that \f(CW$parser\fR's output will be sent to, +instead of any filehandle. +.ie n .IP """$parser\->parse_file( \fI$some_filename\fP );""" 4 +.el .IP "\f(CW$parser\->parse_file( \f(CI$some_filename\f(CW );\fR" 4 +.IX Item "$parser->parse_file( $some_filename );" +.PD 0 +.ie n .IP """$parser\->parse_file( *INPUT_FH );""" 4 +.el .IP "\f(CW$parser\->parse_file( *INPUT_FH );\fR" 4 +.IX Item "$parser->parse_file( *INPUT_FH );" +.PD +This reads the Pod content of the file (or filehandle) that you specify, +and processes it with that \f(CW$parser\fR object, according to however +\&\f(CW$parser\fR's class works, and according to whatever parser options you +have set up for this \f(CW$parser\fR object. +.ie n .IP """$parser\->parse_string_document( \fI$all_content\fP );""" 4 +.el .IP "\f(CW$parser\->parse_string_document( \f(CI$all_content\f(CW );\fR" 4 +.IX Item "$parser->parse_string_document( $all_content );" +This works just like \f(CW\*(C`parse_file\*(C'\fR except that it reads the Pod +content not from a file, but from a string that you have already +in memory. +.ie n .IP """$parser\->parse_lines( \fI...@lines...\fP, undef );""" 4 +.el .IP "\f(CW$parser\->parse_lines( \f(CI...@lines...\f(CW, undef );\fR" 4 +.IX Item "$parser->parse_lines( ...@lines..., undef );" +This processes the lines in \f(CW@lines\fR (where each list item must be a +defined value, and must contain exactly one line of content \*(-- so no +items like \f(CW"foo\enbar"\fR are allowed). The final \f(CW\*(C`undef\*(C'\fR is used to +indicate the end of document being parsed. +.Sp +The other \f(CW\*(C`parser_\f(CIwhatever\f(CW\*(C'\fR methods are meant to be called only once +per \f(CW$parser\fR object; but \f(CW\*(C`parse_lines\*(C'\fR can be called as many times per +\&\f(CW$parser\fR object as you want, as long as the last call (and only +the last call) ends with an \f(CW\*(C`undef\*(C'\fR value. +.ie n .IP """$parser\->content_seen""" 4 +.el .IP "\f(CW$parser\->content_seen\fR" 4 +.IX Item "$parser->content_seen" +This returns true only if there has been any real content seen for this +document. Returns false in cases where the document contains content, +but does not make use of any Pod markup. +.ie n .IP """\fISomeClass\fP\->filter( \fI$filename\fP );""" 4 +.el .IP "\f(CW\f(CISomeClass\f(CW\->filter( \f(CI$filename\f(CW );\fR" 4 +.IX Item "SomeClass->filter( $filename );" +.PD 0 +.ie n .IP """\fISomeClass\fP\->filter( \fI*INPUT_FH\fP );""" 4 +.el .IP "\f(CW\f(CISomeClass\f(CW\->filter( \f(CI*INPUT_FH\f(CW );\fR" 4 +.IX Item "SomeClass->filter( *INPUT_FH );" +.ie n .IP """\fISomeClass\fP\->filter( \fI\e$document_content\fP );""" 4 +.el .IP "\f(CW\f(CISomeClass\f(CW\->filter( \f(CI\e$document_content\f(CW );\fR" 4 +.IX Item "SomeClass->filter( $document_content );" +.PD +This is a shortcut method for creating a new parser object, setting the +output handle to \s-1STDOUT,\s0 and then processing the specified file (or +filehandle, or in-memory document). This is handy for one-liners like +this: +.Sp +.Vb 1 +\& perl \-MPod::Simple::Text \-e "Pod::Simple::Text\->filter(\*(Aqthingy.pod\*(Aq)" +.Ve +.SH "SECONDARY METHODS" +.IX Header "SECONDARY METHODS" +Some of these methods might be of interest to general users, as +well as of interest to formatter-writers. +.PP +Note that the general pattern here is that the accessor-methods +read the attribute's value with \f(CW\*(C`$value = $parser\->\f(CIattribute\f(CW\*(C'\fR +and set the attribute's value with +\&\f(CW\*(C`$parser\->\f(CIattribute\f(CW(\f(CInewvalue\f(CW)\*(C'\fR. For each accessor, I typically +only mention one syntax or another, based on which I think you are actually +most likely to use. +.ie n .IP """$parser\->parse_characters( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->parse_characters( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->parse_characters( SOMEVALUE )" +The Pod parser normally expects to read octets and to convert those octets +to characters based on the \f(CW\*(C`=encoding\*(C'\fR declaration in the Pod source. Set +this option to a true value to indicate that the Pod source is already a Perl +character stream. This tells the parser to ignore any \f(CW\*(C`=encoding\*(C'\fR command +and to skip all the code paths involving decoding octets. +.ie n .IP """$parser\->no_whining( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->no_whining( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->no_whining( SOMEVALUE )" +If you set this attribute to a true value, you will suppress the +parser's complaints about irregularities in the Pod coding. By default, +this attribute's value is false, meaning that irregularities will +be reported. +.Sp +Note that turning this attribute to true won't suppress one or two kinds +of complaints about rarely occurring unrecoverable errors. +.ie n .IP """$parser\->no_errata_section( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->no_errata_section( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->no_errata_section( SOMEVALUE )" +If you set this attribute to a true value, you will stop the parser from +generating a \*(L"\s-1POD ERRORS\*(R"\s0 section at the end of the document. By +default, this attribute's value is false, meaning that an errata section +will be generated, as necessary. +.ie n .IP """$parser\->complain_stderr( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->complain_stderr( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->complain_stderr( SOMEVALUE )" +If you set this attribute to a true value, it will send reports of +parsing errors to \s-1STDERR.\s0 By default, this attribute's value is false, +meaning that no output is sent to \s-1STDERR.\s0 +.Sp +Setting \f(CW\*(C`complain_stderr\*(C'\fR also sets \f(CW\*(C`no_errata_section\*(C'\fR. +.ie n .IP """$parser\->source_filename""" 4 +.el .IP "\f(CW$parser\->source_filename\fR" 4 +.IX Item "$parser->source_filename" +This returns the filename that this parser object was set to read from. +.ie n .IP """$parser\->doc_has_started""" 4 +.el .IP "\f(CW$parser\->doc_has_started\fR" 4 +.IX Item "$parser->doc_has_started" +This returns true if \f(CW$parser\fR has read from a source, and has seen +Pod content in it. +.ie n .IP """$parser\->source_dead""" 4 +.el .IP "\f(CW$parser\->source_dead\fR" 4 +.IX Item "$parser->source_dead" +This returns true if \f(CW$parser\fR has read from a source, and come to the +end of that source. +.ie n .IP """$parser\->strip_verbatim_indent( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->strip_verbatim_indent( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->strip_verbatim_indent( SOMEVALUE )" +The perlpod spec for a Verbatim paragraph is \*(L"It should be reproduced +exactly...\*(R", which means that the whitespace you've used to indent your +verbatim blocks will be preserved in the output. This can be annoying for +outputs such as \s-1HTML,\s0 where that whitespace will remain in front of every +line. It's an unfortunate case where syntax is turned into semantics. +.Sp +If the \s-1POD\s0 you're parsing adheres to a consistent indentation policy, you can +have such indentation stripped from the beginning of every line of your +verbatim blocks. This method tells Pod::Simple what to strip. For two-space +indents, you'd use: +.Sp +.Vb 1 +\& $parser\->strip_verbatim_indent(\*(Aq \*(Aq); +.Ve +.Sp +For tab indents, you'd use a tab character: +.Sp +.Vb 1 +\& $parser\->strip_verbatim_indent("\et"); +.Ve +.Sp +If the \s-1POD\s0 is inconsistent about the indentation of verbatim blocks, but you +have figured out a heuristic to determine how much a particular verbatim block +is indented, you can pass a code reference instead. The code reference will be +executed with one argument, an array reference of all the lines in the +verbatim block, and should return the value to be stripped from each line. For +example, if you decide that you're fine to use the first line of the verbatim +block to set the standard for indentation of the rest of the block, you can +look at the first line and return the appropriate value, like so: +.Sp +.Vb 5 +\& $new\->strip_verbatim_indent(sub { +\& my $lines = shift; +\& (my $indent = $lines\->[0]) =~ s/\eS.*//; +\& return $indent; +\& }); +.Ve +.Sp +If you'd rather treat each line individually, you can do that, too, by just +transforming them in-place in the code reference and returning \f(CW\*(C`undef\*(C'\fR. Say +that you don't want \fIany\fR lines indented. You can do something like this: +.Sp +.Vb 5 +\& $new\->strip_verbatim_indent(sub { +\& my $lines = shift; +\& sub { s/^\es+// for @{ $lines }, +\& return undef; +\& }); +.Ve +.ie n .IP """$parser\->expand_verbatim_tabs( \fIn\fP )""" 4 +.el .IP "\f(CW$parser\->expand_verbatim_tabs( \f(CIn\f(CW )\fR" 4 +.IX Item "$parser->expand_verbatim_tabs( n )" +Default: 8 +.Sp +If after any stripping of indentation in verbatim blocks, there remain +tabs, this method call indicates what to do with them. \f(CW0\fR +means leave them as tabs, any other number indicates that each tab is to +be translated so as to have tab stops every \f(CW\*(C`n\*(C'\fR columns. +.Sp +This is independent of other methods (except that it operates after any +verbatim input stripping is done). +.Sp +Like the other methods, the input parameter is not checked for validity. +\&\f(CW\*(C`undef\*(C'\fR or containing non-digits has the same effect as 8. +.SH "TERTIARY METHODS" +.IX Header "TERTIARY METHODS" +.ie n .IP """$parser\->abandon_output_fh()""" 4 +.el .IP "\f(CW$parser\->abandon_output_fh()\fR" 4 +.IX Xref "abandon_output_fh" +.IX Item "$parser->abandon_output_fh()" +Cancel output to the file handle. Any \s-1POD\s0 read by the \f(CW$parser\fR is not +effected. +.ie n .IP """$parser\->abandon_output_string()""" 4 +.el .IP "\f(CW$parser\->abandon_output_string()\fR" 4 +.IX Xref "abandon_output_string" +.IX Item "$parser->abandon_output_string()" +Cancel output to the output string. Any \s-1POD\s0 read by the \f(CW$parser\fR is not +effected. +.ie n .IP """$parser\->accept_code( @codes )""" 4 +.el .IP "\f(CW$parser\->accept_code( @codes )\fR" 4 +.IX Xref "accept_code" +.IX Item "$parser->accept_code( @codes )" +Alias for accept_codes. +.ie n .IP """$parser\->accept_codes( @codes )""" 4 +.el .IP "\f(CW$parser\->accept_codes( @codes )\fR" 4 +.IX Xref "accept_codes" +.IX Item "$parser->accept_codes( @codes )" +Allows \f(CW$parser\fR to accept a list of \*(L"Formatting Codes\*(R" in perlpod. This can be +used to implement user-defined codes. +.ie n .IP """$parser\->accept_directive_as_data( @directives )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_data( @directives )\fR" 4 +.IX Xref "accept_directive_as_data" +.IX Item "$parser->accept_directive_as_data( @directives )" +Allows \f(CW$parser\fR to accept a list of directives for data paragraphs. A +directive is the label of a \*(L"Command Paragraph\*(R" in perlpod. A data paragraph is +one delimited by \f(CW\*(C`=begin/=for/=end\*(C'\fR directives. This can be used to +implement user-defined directives. +.ie n .IP """$parser\->accept_directive_as_processed( @directives )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_processed( @directives )\fR" 4 +.IX Xref "accept_directive_as_processed" +.IX Item "$parser->accept_directive_as_processed( @directives )" +Allows \f(CW$parser\fR to accept a list of directives for processed paragraphs. A +directive is the label of a \*(L"Command Paragraph\*(R" in perlpod. A processed +paragraph is also known as \*(L"Ordinary Paragraph\*(R" in perlpod. This can be used to +implement user-defined directives. +.ie n .IP """$parser\->accept_directive_as_verbatim( @directives )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_verbatim( @directives )\fR" 4 +.IX Xref "accept_directive_as_verbatim" +.IX Item "$parser->accept_directive_as_verbatim( @directives )" +Allows \f(CW$parser\fR to accept a list of directives for \*(L"Verbatim +Paragraph\*(R" in perlpod. A directive is the label of a \*(L"Command Paragraph\*(R" in perlpod. This +can be used to implement user-defined directives. +.ie n .IP """$parser\->accept_target( @targets )""" 4 +.el .IP "\f(CW$parser\->accept_target( @targets )\fR" 4 +.IX Xref "accept_target" +.IX Item "$parser->accept_target( @targets )" +Alias for accept_targets. +.ie n .IP """$parser\->accept_target_as_text( @targets )""" 4 +.el .IP "\f(CW$parser\->accept_target_as_text( @targets )\fR" 4 +.IX Xref "accept_target_as_text" +.IX Item "$parser->accept_target_as_text( @targets )" +Alias for accept_targets_as_text. +.ie n .IP """$parser\->accept_targets( @targets )""" 4 +.el .IP "\f(CW$parser\->accept_targets( @targets )\fR" 4 +.IX Xref "accept_targets" +.IX Item "$parser->accept_targets( @targets )" +Accepts targets for \f(CW\*(C`=begin/=for/=end\*(C'\fR sections of the \s-1POD.\s0 +.ie n .IP """$parser\->accept_targets_as_text( @targets )""" 4 +.el .IP "\f(CW$parser\->accept_targets_as_text( @targets )\fR" 4 +.IX Xref "accept_targets_as_text" +.IX Item "$parser->accept_targets_as_text( @targets )" +Accepts targets for \f(CW\*(C`=begin/=for/=end\*(C'\fR sections that should be parsed as +\&\s-1POD.\s0 For details, see \*(L"About Data Paragraphs\*(R" in perlpodspec. +.ie n .IP """$parser\->any_errata_seen()""" 4 +.el .IP "\f(CW$parser\->any_errata_seen()\fR" 4 +.IX Xref "any_errata_seen" +.IX Item "$parser->any_errata_seen()" +Used to check if any errata was seen. +.Sp +\&\fIExample:\fR +.Sp +.Vb 1 +\& die "too many errors\en" if $parser\->any_errata_seen(); +.Ve +.ie n .IP """$parser\->errata_seen()""" 4 +.el .IP "\f(CW$parser\->errata_seen()\fR" 4 +.IX Xref "errata_seen" +.IX Item "$parser->errata_seen()" +Returns a hash reference of all errata seen, both whines and screams. The hash reference's keys are the line number and the value is an array reference of the errors for that line. +.Sp +\&\fIExample:\fR +.Sp +.Vb 3 +\& if ( $parser\->any_errata_seen() ) { +\& $logger\->log( $parser\->errata_seen() ); +\& } +.Ve +.ie n .IP """$parser\->detected_encoding()""" 4 +.el .IP "\f(CW$parser\->detected_encoding()\fR" 4 +.IX Xref "detected_encoding" +.IX Item "$parser->detected_encoding()" +Return the encoding corresponding to \f(CW\*(C`=encoding\*(C'\fR, but only if the +encoding was recognized and handled. +.ie n .IP """$parser\->encoding()""" 4 +.el .IP "\f(CW$parser\->encoding()\fR" 4 +.IX Xref "encoding" +.IX Item "$parser->encoding()" +Return encoding of the document, even if the encoding is not correctly +handled. +.ie n .IP """$parser\->parse_from_file( $source, $to )""" 4 +.el .IP "\f(CW$parser\->parse_from_file( $source, $to )\fR" 4 +.IX Xref "parse_from_file" +.IX Item "$parser->parse_from_file( $source, $to )" +Parses from \f(CW$source\fR file to \f(CW$to\fR file. Similar to \*(L"parse_from_file\*(R" in Pod::Parser. +.ie n .IP """$parser\->scream( @error_messages )""" 4 +.el .IP "\f(CW$parser\->scream( @error_messages )\fR" 4 +.IX Xref "scream" +.IX Item "$parser->scream( @error_messages )" +Log an error that can't be ignored. +.ie n .IP """$parser\->unaccept_code( @codes )""" 4 +.el .IP "\f(CW$parser\->unaccept_code( @codes )\fR" 4 +.IX Xref "unaccept_code" +.IX Item "$parser->unaccept_code( @codes )" +Alias for unaccept_codes. +.ie n .IP """$parser\->unaccept_codes( @codes )""" 4 +.el .IP "\f(CW$parser\->unaccept_codes( @codes )\fR" 4 +.IX Xref "unaccept_codes" +.IX Item "$parser->unaccept_codes( @codes )" +Removes \f(CW@codes\fR as valid codes for the parse. +.ie n .IP """$parser\->unaccept_directive( @directives )""" 4 +.el .IP "\f(CW$parser\->unaccept_directive( @directives )\fR" 4 +.IX Xref "unaccept_directive" +.IX Item "$parser->unaccept_directive( @directives )" +Alias for unaccept_directives. +.ie n .IP """$parser\->unaccept_directives( @directives )""" 4 +.el .IP "\f(CW$parser\->unaccept_directives( @directives )\fR" 4 +.IX Xref "unaccept_directives" +.IX Item "$parser->unaccept_directives( @directives )" +Removes \f(CW@directives\fR as valid directives for the parse. +.ie n .IP """$parser\->unaccept_target( @targets )""" 4 +.el .IP "\f(CW$parser\->unaccept_target( @targets )\fR" 4 +.IX Xref "unaccept_target" +.IX Item "$parser->unaccept_target( @targets )" +Alias for unaccept_targets. +.ie n .IP """$parser\->unaccept_targets( @targets )""" 4 +.el .IP "\f(CW$parser\->unaccept_targets( @targets )\fR" 4 +.IX Xref "unaccept_targets" +.IX Item "$parser->unaccept_targets( @targets )" +Removes \f(CW@targets\fR as valid targets for the parse. +.ie n .IP """$parser\->version_report()""" 4 +.el .IP "\f(CW$parser\->version_report()\fR" 4 +.IX Xref "version_report" +.IX Item "$parser->version_report()" +Returns a string describing the version. +.ie n .IP """$parser\->whine( @error_messages )""" 4 +.el .IP "\f(CW$parser\->whine( @error_messages )\fR" 4 +.IX Xref "whine" +.IX Item "$parser->whine( @error_messages )" +Log an error unless \f(CW\*(C`$parser\->no_whining( TRUE );\*(C'\fR. +.SH "ENCODING" +.IX Header "ENCODING" +The Pod::Simple parser expects to read \fBoctets\fR. The parser will decode the +octets into Perl's internal character string representation using the value of +the \f(CW\*(C`=encoding\*(C'\fR declaration in the \s-1POD\s0 source. +.PP +If the \s-1POD\s0 source does not include an \f(CW\*(C`=encoding\*(C'\fR declaration, the parser will +attempt to guess the encoding (selecting one of \s-1UTF\-8\s0 or \s-1CP 1252\s0) by examining +the first non-ASCII bytes and applying the heuristic described in +perlpodspec. (If the \s-1POD\s0 source contains only \s-1ASCII\s0 bytes, the +encoding is assumed to be \s-1ASCII.\s0) +.PP +If you set the \f(CW\*(C`parse_characters\*(C'\fR option to a true value the parser will +expect characters rather than octets; will ignore any \f(CW\*(C`=encoding\*(C'\fR; and will +make no attempt to decode the input. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple::Subclassing +.PP +perlpod +.PP +perlpodspec +.PP +Pod::Escapes +.PP +perldoc +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Please use to file a bug +report. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR +.IP "\(bu" 4 +Karl Williamson \f(CW\*(C`khw@cpan.org\*(C'\fR +.PP +Documentation has been contributed by: +.IP "\(bu" 4 +Gabor Szabo \f(CW\*(C`szabgab@gmail.com\*(C'\fR +.IP "\(bu" 4 +Shawn H Corey \f(CW\*(C`SHCOREY at cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AColor.3 b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AColor.3 new file mode 100644 index 0000000000000000000000000000000000000000..aa873e8b724dff8a39b19c6ff356ee66367dd088 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AColor.3 @@ -0,0 +1,185 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Text::Color 3" +.TH Pod::Text::Color 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Text::Color \- Convert POD data to formatted color ASCII text +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Text::Color; +\& my $parser = Pod::Text::Color\->new (sentence => 0, width => 78); +\& +\& # Read POD from STDIN and write to STDOUT. +\& $parser\->parse_from_filehandle; +\& +\& # Read POD from file.pod and write to file.txt. +\& $parser\->parse_from_file (\*(Aqfile.pod\*(Aq, \*(Aqfile.txt\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Text::Color is a simple subclass of Pod::Text that highlights output +text using \s-1ANSI\s0 color escape sequences. Apart from the color, it in all +ways functions like Pod::Text. See Pod::Text for details and available +options. +.PP +Term::ANSIColor is used to get colors and therefore must be installed to use +this module. +.SH "BUGS" +.IX Header "BUGS" +This is just a basic proof of concept. It should be seriously expanded to +support configurable coloration via options passed to the constructor, and +\&\fBpod2text\fR should be taught about those. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery . +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1999, 2001, 2004, 2006, 2008, 2009, 2018\-2019 Russ Allbery + +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Simple +.PP +The current version of this module is always available from its web site at +. It is also part of the +Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AOverstrike.3 b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AOverstrike.3 new file mode 100644 index 0000000000000000000000000000000000000000..55d20a60b63d74cf90786fcc7155f5dc17a28939 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3AOverstrike.3 @@ -0,0 +1,194 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Text::Overstrike 3" +.TH Pod::Text::Overstrike 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Text::Overstrike \- Convert POD data to formatted overstrike text +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Text::Overstrike; +\& my $parser = Pod::Text::Overstrike\->new (sentence => 0, width => 78); +\& +\& # Read POD from STDIN and write to STDOUT. +\& $parser\->parse_from_filehandle; +\& +\& # Read POD from file.pod and write to file.txt. +\& $parser\->parse_from_file (\*(Aqfile.pod\*(Aq, \*(Aqfile.txt\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Text::Overstrike is a simple subclass of Pod::Text that highlights +output text using overstrike sequences, in a manner similar to nroff. +Characters in bold text are overstruck (character, backspace, character) +and characters in underlined text are converted to overstruck underscores +(underscore, backspace, character). This format was originally designed +for hard-copy terminals and/or line printers, yet is readable on soft-copy +(\s-1CRT\s0) terminals. +.PP +Overstruck text is best viewed by page-at-a-time programs that take +advantage of the terminal's \fBstand-out\fR and \fIunderline\fR capabilities, such +as the less program on Unix. +.PP +Apart from the overstrike, it in all ways functions like Pod::Text. See +Pod::Text for details and available options. +.SH "BUGS" +.IX Header "BUGS" +Currently, the outermost formatting instruction wins, so for example +underlined text inside a region of bold text is displayed as simply bold. +There may be some better approach possible. +.SH "AUTHOR" +.IX Header "AUTHOR" +Originally written by Joe Smith , using the framework +created by Russ Allbery . Subsequently updated by Russ Allbery. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2000 by Joe Smith +.PP +Copyright 2001, 2004, 2008, 2014, 2018\-2019 by Russ Allbery +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Simple +.PP +The current version of this module is always available from its web site at +. It is also part of the +Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Pod%3A%3AText%3A%3ATermcap.3 b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3ATermcap.3 new file mode 100644 index 0000000000000000000000000000000000000000..c537218233c8db6aa6b930b8c01061a7bf761887 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AText%3A%3ATermcap.3 @@ -0,0 +1,183 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Text::Termcap 3" +.TH Pod::Text::Termcap 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Text::Termcap \- Convert POD data to ASCII text with format escapes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Text::Termcap; +\& my $parser = Pod::Text::Termcap\->new (sentence => 0, width => 78); +\& +\& # Read POD from STDIN and write to STDOUT. +\& $parser\->parse_from_filehandle; +\& +\& # Read POD from file.pod and write to file.txt. +\& $parser\->parse_from_file (\*(Aqfile.pod\*(Aq, \*(Aqfile.txt\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Text::Termcap is a simple subclass of Pod::Text that highlights output +text using the correct termcap escape sequences for the current terminal. +Apart from the format codes, it in all ways functions like Pod::Text. See +Pod::Text for details and available options. +.PP +This module uses Term::Cap to find the correct terminal settings. See the +documentation of that module for how it finds terminal database information +and how to override that behavior if necessary. If unable to find control +strings for bold and underscore formatting, that formatting is skipped, +resulting in the same output as Pod::Text. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1999, 2001\-2002, 2004, 2006, 2008\-2009, 2014\-2015, 2018\-2019 Russ +Allbery +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Simple, Term::Cap +.PP +The current version of this module is always available from its web site at +. It is also part of the +Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Pod%3A%3AText.3 b/data/miniconda3/man/man3/Pod%3A%3AText.3 new file mode 100644 index 0000000000000000000000000000000000000000..e299d5bc5aa203c94ff1df03c8ec99ddfce075b2 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AText.3 @@ -0,0 +1,363 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Text 3" +.TH Pod::Text 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Text \- Convert POD data to formatted text +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Pod::Text; +\& my $parser = Pod::Text\->new (sentence => 1, width => 78); +\& +\& # Read POD from STDIN and write to STDOUT. +\& $parser\->parse_from_filehandle; +\& +\& # Read POD from file.pod and write to file.txt. +\& $parser\->parse_from_file (\*(Aqfile.pod\*(Aq, \*(Aqfile.txt\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pod::Text is a module that can convert documentation in the \s-1POD\s0 format +(the preferred language for documenting Perl) into formatted text. It +uses no special formatting controls or codes whatsoever, and its output is +therefore suitable for nearly any device. +.PP +As a derived class from Pod::Simple, Pod::Text supports the same methods and +interfaces. See Pod::Simple for all the details; briefly, one creates a +new parser with \f(CW\*(C`Pod::Text\->new()\*(C'\fR and then normally calls \fBparse_file()\fR. +.PP +\&\fBnew()\fR can take options, in the form of key/value pairs, that control the +behavior of the parser. The currently recognized options are: +.IP "alt" 4 +.IX Item "alt" +If set to a true value, selects an alternate output format that, among other +things, uses a different heading style and marks \f(CW\*(C`=item\*(C'\fR entries with a +colon in the left margin. Defaults to false. +.IP "code" 4 +.IX Item "code" +If set to a true value, the non-POD parts of the input file will be included +in the output. Useful for viewing code documented with \s-1POD\s0 blocks with the +\&\s-1POD\s0 rendered and the code left intact. +.IP "errors" 4 +.IX Item "errors" +How to report errors. \f(CW\*(C`die\*(C'\fR says to throw an exception on any \s-1POD\s0 +formatting error. \f(CW\*(C`stderr\*(C'\fR says to report errors on standard error, but +not to throw an exception. \f(CW\*(C`pod\*(C'\fR says to include a \s-1POD ERRORS\s0 section +in the resulting documentation summarizing the errors. \f(CW\*(C`none\*(C'\fR ignores +\&\s-1POD\s0 errors entirely, as much as possible. +.Sp +The default is \f(CW\*(C`pod\*(C'\fR. +.IP "indent" 4 +.IX Item "indent" +The number of spaces to indent regular text, and the default indentation for +\&\f(CW\*(C`=over\*(C'\fR blocks. Defaults to 4. +.IP "loose" 4 +.IX Item "loose" +If set to a true value, a blank line is printed after a \f(CW\*(C`=head1\*(C'\fR heading. +If set to false (the default), no blank line is printed after \f(CW\*(C`=head1\*(C'\fR, +although one is still printed after \f(CW\*(C`=head2\*(C'\fR. This is the default because +it's the expected formatting for manual pages; if you're formatting +arbitrary text documents, setting this to true may result in more pleasing +output. +.IP "margin" 4 +.IX Item "margin" +The width of the left margin in spaces. Defaults to 0. This is the margin +for all text, including headings, not the amount by which regular text is +indented; for the latter, see the \fIindent\fR option. To set the right +margin, see the \fIwidth\fR option. +.IP "nourls" 4 +.IX Item "nourls" +Normally, L<> formatting codes with a \s-1URL\s0 but anchor text are formatted +to show both the anchor text and the \s-1URL.\s0 In other words: +.Sp +.Vb 1 +\& L +.Ve +.Sp +is formatted as: +.Sp +.Vb 1 +\& foo +.Ve +.Sp +This option, if set to a true value, suppresses the \s-1URL\s0 when anchor text +is given, so this example would be formatted as just \f(CW\*(C`foo\*(C'\fR. This can +produce less cluttered output in cases where the URLs are not particularly +important. +.IP "quotes" 4 +.IX Item "quotes" +Sets the quote marks used to surround C<> text. If the value is a +single character, it is used as both the left and right quote. Otherwise, +it is split in half, and the first half of the string is used as the left +quote and the second is used as the right quote. +.Sp +This may also be set to the special value \f(CW\*(C`none\*(C'\fR, in which case no quote +marks are added around C<> text. +.IP "sentence" 4 +.IX Item "sentence" +If set to a true value, Pod::Text will assume that each sentence ends in two +spaces, and will try to preserve that spacing. If set to false, all +consecutive whitespace in non-verbatim paragraphs is compressed into a +single space. Defaults to false. +.IP "stderr" 4 +.IX Item "stderr" +Send error messages about invalid \s-1POD\s0 to standard error instead of +appending a \s-1POD ERRORS\s0 section to the generated output. This is +equivalent to setting \f(CW\*(C`errors\*(C'\fR to \f(CW\*(C`stderr\*(C'\fR if \f(CW\*(C`errors\*(C'\fR is not already +set. It is supported for backward compatibility. +.IP "utf8" 4 +.IX Item "utf8" +By default, Pod::Text uses the same output encoding as the input encoding +of the \s-1POD\s0 source (provided that Perl was built with PerlIO; otherwise, it +doesn't encode its output). If this option is given, the output encoding +is forced to \s-1UTF\-8.\s0 +.Sp +Be aware that, when using this option, the input encoding of your \s-1POD\s0 +source should be properly declared unless it's US-ASCII. Pod::Simple will +attempt to guess the encoding and may be successful if it's Latin\-1 or +\&\s-1UTF\-8,\s0 but it will produce warnings. Use the \f(CW\*(C`=encoding\*(C'\fR command to +declare the encoding. See \fBperlpod\fR\|(1) for more information. +.IP "width" 4 +.IX Item "width" +The column at which to wrap text on the right-hand side. Defaults to 76. +.PP +The standard Pod::Simple method \fBparse_file()\fR takes one argument naming the +\&\s-1POD\s0 file to read from. By default, the output is sent to \f(CW\*(C`STDOUT\*(C'\fR, but +this can be changed with the \fBoutput_fh()\fR method. +.PP +The standard Pod::Simple method \fBparse_from_file()\fR takes up to two +arguments, the first being the input file to read \s-1POD\s0 from and the second +being the file to write the formatted output to. +.PP +You can also call \fBparse_lines()\fR to parse an array of lines or +\&\fBparse_string_document()\fR to parse a document already in memory. As with +\&\fBparse_file()\fR, \fBparse_lines()\fR and \fBparse_string_document()\fR default to sending +their output to \f(CW\*(C`STDOUT\*(C'\fR unless changed with the \fBoutput_fh()\fR method. Be +aware that \fBparse_lines()\fR and \fBparse_string_document()\fR both expect raw bytes, +not decoded characters. +.PP +To put the output from any parse method into a string instead of a file +handle, call the \fBoutput_string()\fR method instead of \fBoutput_fh()\fR. +.PP +See Pod::Simple for more specific details on the methods available to +all derived parsers. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.IP "Bizarre space in item" 4 +.IX Item "Bizarre space in item" +.PD 0 +.IP "Item called without tag" 4 +.IX Item "Item called without tag" +.PD +(W) Something has gone wrong in internal \f(CW\*(C`=item\*(C'\fR processing. These +messages indicate a bug in Pod::Text; you should never see them. +.ie n .IP "Can't open %s for reading: %s" 4 +.el .IP "Can't open \f(CW%s\fR for reading: \f(CW%s\fR" 4 +.IX Item "Can't open %s for reading: %s" +(F) Pod::Text was invoked via the compatibility mode \fBpod2text()\fR interface +and the input file it was given could not be opened. +.ie n .IP "Invalid errors setting ""%s""" 4 +.el .IP "Invalid errors setting ``%s''" 4 +.IX Item "Invalid errors setting %s" +(F) The \f(CW\*(C`errors\*(C'\fR parameter to the constructor was set to an unknown value. +.ie n .IP "Invalid quote specification ""%s""" 4 +.el .IP "Invalid quote specification ``%s''" 4 +.IX Item "Invalid quote specification %s" +(F) The quote specification given (the \f(CW\*(C`quotes\*(C'\fR option to the +constructor) was invalid. A quote specification must be either one +character long or an even number (greater than one) characters long. +.IP "\s-1POD\s0 document had syntax errors" 4 +.IX Item "POD document had syntax errors" +(F) The \s-1POD\s0 document being formatted had syntax errors and the \f(CW\*(C`errors\*(C'\fR +option was set to \f(CW\*(C`die\*(C'\fR. +.SH "BUGS" +.IX Header "BUGS" +Encoding handling assumes that PerlIO is available and does not work +properly if it isn't. The \f(CW\*(C`utf8\*(C'\fR option is therefore not supported +unless Perl is built with PerlIO support. +.SH "CAVEATS" +.IX Header "CAVEATS" +If Pod::Text is given the \f(CW\*(C`utf8\*(C'\fR option, the encoding of its output file +handle will be forced to \s-1UTF\-8\s0 if possible, overriding any existing +encoding. This will be done even if the file handle is not created by +Pod::Text and was passed in from outside. This maintains consistency +regardless of \s-1PERL_UNICODE\s0 and other settings. +.PP +If the \f(CW\*(C`utf8\*(C'\fR option is not given, the encoding of its output file handle +will be forced to the detected encoding of the input \s-1POD,\s0 which preserves +whatever the input text is. This ensures backward compatibility with +earlier, pre-Unicode versions of this module, without large numbers of +Perl warnings. +.PP +This is not ideal, but it seems to be the best compromise. If it doesn't +work for you, please let me know the details of how it broke. +.SH "NOTES" +.IX Header "NOTES" +This is a replacement for an earlier Pod::Text module written by Tom +Christiansen. It has a revamped interface, since it now uses Pod::Simple, +but an interface roughly compatible with the old \fBPod::Text::pod2text()\fR +function is still available. Please change to the new calling convention, +though. +.PP +The original Pod::Text contained code to do formatting via termcap +sequences, although it wasn't turned on by default and it was problematic to +get it to work at all. This rewrite doesn't even try to do that, but a +subclass of it does. Look for Pod::Text::Termcap. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery , based \fIvery\fR heavily on the original +Pod::Text by Tom Christiansen and its conversion to +Pod::Parser by Brad Appleton . Sean Burke's initial +conversion of Pod::Man to use Pod::Simple provided much-needed guidance on +how to use Pod::Simple. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1999\-2002, 2004, 2006, 2008\-2009, 2012\-2016, 2018\-2019 Russ Allbery + +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, Pod::Text::Termcap, \fBperlpod\fR\|(1), \fBpod2text\fR\|(1) +.PP +The current version of this module is always available from its web site at +. It is also part of the +Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Pod%3A%3AUsage.3 b/data/miniconda3/man/man3/Pod%3A%3AUsage.3 new file mode 100644 index 0000000000000000000000000000000000000000..591056be01ddf514fe65466d4147ddbb301372fc --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3AUsage.3 @@ -0,0 +1,639 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Pod::Usage 3" +.TH Pod::Usage 3 "2020-12-18" "perl v5.32.1" "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" +Pod::Usage \- print a usage message from embedded pod documentation +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Pod::Usage +\& +\& my $message_text = "This text precedes the usage message."; +\& my $exit_status = 2; ## The exit status to use +\& my $verbose_level = 0; ## The verbose level to use +\& my $filehandle = \e*STDERR; ## The filehandle to write to +\& +\& pod2usage($message_text); +\& +\& pod2usage($exit_status); +\& +\& pod2usage( { \-message => $message_text , +\& \-exitval => $exit_status , +\& \-verbose => $verbose_level, +\& \-output => $filehandle } ); +\& +\& pod2usage( \-msg => $message_text , +\& \-exitval => $exit_status , +\& \-verbose => $verbose_level, +\& \-output => $filehandle ); +\& +\& pod2usage( \-verbose => 2, +\& \-noperldoc => 1 ); +\& +\& pod2usage( \-verbose => 2, +\& \-perlcmd => $path_to_perl, +\& \-perldoc => $path_to_perldoc, +\& \-perldocopt => $perldoc_options ); +.Ve +.SH "ARGUMENTS" +.IX Header "ARGUMENTS" +\&\fBpod2usage\fR should be given either a single argument, or a list of +arguments corresponding to an associative array (a \*(L"hash\*(R"). When a single +argument is given, it should correspond to exactly one of the following: +.IP "\(bu" 4 +A string containing the text of a message to print \fIbefore\fR printing +the usage message +.IP "\(bu" 4 +A numeric value corresponding to the desired exit status +.IP "\(bu" 4 +A reference to a hash +.PP +If more than one argument is given then the entire argument list is +assumed to be a hash. If a hash is supplied (either as a reference or +as a list) it should contain one or more elements with the following +keys: +.ie n .IP """\-message"" \fIstring\fR" 4 +.el .IP "\f(CW\-message\fR \fIstring\fR" 4 +.IX Item "-message string" +.PD 0 +.ie n .IP """\-msg"" \fIstring\fR" 4 +.el .IP "\f(CW\-msg\fR \fIstring\fR" 4 +.IX Item "-msg string" +.PD +The text of a message to print immediately prior to printing the +program's usage message. +.ie n .IP """\-exitval"" \fIvalue\fR" 4 +.el .IP "\f(CW\-exitval\fR \fIvalue\fR" 4 +.IX Item "-exitval value" +The desired exit status to pass to the \fB\fBexit()\fB\fR function. +This should be an integer, or else the string \*(L"\s-1NOEXIT\*(R"\s0 to +indicate that control should simply be returned without +terminating the invoking process. +.ie n .IP """\-verbose"" \fIvalue\fR" 4 +.el .IP "\f(CW\-verbose\fR \fIvalue\fR" 4 +.IX Item "-verbose value" +The desired level of \*(L"verboseness\*(R" to use when printing the usage message. +If the value is 0, then only the \*(L"\s-1SYNOPSIS\*(R"\s0 section of the pod documentation +is printed. If the value is 1, then the \*(L"\s-1SYNOPSIS\*(R"\s0 section, along with any +section entitled \*(L"\s-1OPTIONS\*(R", \*(L"ARGUMENTS\*(R",\s0 or \*(L"\s-1OPTIONS AND ARGUMENTS\*(R"\s0 is +printed. If the corresponding value is 2 or more then the entire manpage is +printed, using perldoc if available; otherwise Pod::Text is used for +the formatting. For better readability, the all-capital headings are +downcased, e.g. \f(CW\*(C`SYNOPSIS\*(C'\fR => \f(CW\*(C`Synopsis\*(C'\fR. +.Sp +The special verbosity level 99 requires to also specify the \-sections +parameter; then these sections are extracted and printed. +.ie n .IP """\-sections"" \fIspec\fR" 4 +.el .IP "\f(CW\-sections\fR \fIspec\fR" 4 +.IX Item "-sections spec" +There are two ways to specify the selection. Either a string (scalar) +representing a selection regexp for sections to be printed when \-verbose +is set to 99, e.g. +.Sp +.Vb 1 +\& "NAME|SYNOPSIS|DESCRIPTION|VERSION" +.Ve +.Sp +With the above regexp all content following (and including) any of the +given \f(CW\*(C`=head1\*(C'\fR headings will be shown. It is possible to restrict the +output to particular subsections only, e.g.: +.Sp +.Vb 1 +\& "DESCRIPTION/Algorithm" +.Ve +.Sp +This will output only the \f(CW\*(C`=head2 Algorithm\*(C'\fR heading and content within +the \f(CW\*(C`=head1 DESCRIPTION\*(C'\fR section. The regexp binding is stronger than the +section separator, such that e.g.: +.Sp +.Vb 1 +\& "DESCRIPTION|OPTIONS|ENVIORNMENT/Caveats" +.Ve +.Sp +will print any \f(CW\*(C`=head2 Caveats\*(C'\fR section (only) within any of the three +\&\f(CW\*(C`=head1\*(C'\fR sections. +.Sp +Alternatively, an array reference of section specifications can be used: +.Sp +.Vb 2 +\& pod2usage(\-verbose => 99, \-sections => [ +\& qw(DESCRIPTION DESCRIPTION/Introduction) ] ); +.Ve +.Sp +This will print only the content of \f(CW\*(C`=head1 DESCRIPTION\*(C'\fR and the +\&\f(CW\*(C`=head2 Introduction\*(C'\fR sections, but no other \f(CW\*(C`=head2\*(C'\fR, and no other +\&\f(CW\*(C`=head1\*(C'\fR either. +.ie n .IP """\-output"" \fIhandle\fR" 4 +.el .IP "\f(CW\-output\fR \fIhandle\fR" 4 +.IX Item "-output handle" +A reference to a filehandle, or the pathname of a file to which the +usage message should be written. The default is \f(CW\*(C`\e*STDERR\*(C'\fR unless the +exit value is less than 2 (in which case the default is \f(CW\*(C`\e*STDOUT\*(C'\fR). +.ie n .IP """\-input"" \fIhandle\fR" 4 +.el .IP "\f(CW\-input\fR \fIhandle\fR" 4 +.IX Item "-input handle" +A reference to a filehandle, or the pathname of a file from which the +invoking script's pod documentation should be read. It defaults to the +file indicated by \f(CW$0\fR (\f(CW$PROGRAM_NAME\fR for users of \fIEnglish.pm\fR). +.Sp +If you are calling \fB\fBpod2usage()\fB\fR from a module and want to display +that module's \s-1POD,\s0 you can use this: +.Sp +.Vb 2 +\& use Pod::Find qw(pod_where); +\& pod2usage( \-input => pod_where({\-inc => 1}, _\|_PACKAGE_\|_) ); +.Ve +.ie n .IP """\-pathlist"" \fIstring\fR" 4 +.el .IP "\f(CW\-pathlist\fR \fIstring\fR" 4 +.IX Item "-pathlist string" +A list of directory paths. If the input file does not exist, then it +will be searched for in the given directory list (in the order the +directories appear in the list). It defaults to the list of directories +implied by \f(CW$ENV{PATH}\fR. The list may be specified either by a reference +to an array, or by a string of directory paths which use the same path +separator as \f(CW$ENV{PATH}\fR on your system (e.g., \f(CW\*(C`:\*(C'\fR for Unix, \f(CW\*(C`;\*(C'\fR for +MSWin32 and \s-1DOS\s0). +.ie n .IP """\-noperldoc""" 4 +.el .IP "\f(CW\-noperldoc\fR" 4 +.IX Item "-noperldoc" +By default, Pod::Usage will call perldoc when \-verbose >= 2 is +specified. This does not work well e.g. if the script was packed +with \s-1PAR\s0. The \-noperldoc option suppresses the external call to +perldoc and uses the simple text formatter (Pod::Text) to +output the \s-1POD.\s0 +.ie n .IP """\-perlcmd""" 4 +.el .IP "\f(CW\-perlcmd\fR" 4 +.IX Item "-perlcmd" +By default, Pod::Usage will call perldoc when \-verbose >= 2 is +specified. In case of special or unusual Perl installations, +the \-perlcmd option may be used to supply the path to a perl executable +which should run perldoc. +.ie n .IP """\-perldoc"" \fIpath-to-perldoc\fR" 4 +.el .IP "\f(CW\-perldoc\fR \fIpath-to-perldoc\fR" 4 +.IX Item "-perldoc path-to-perldoc" +By default, Pod::Usage will call perldoc when \-verbose >= 2 is +specified. In case perldoc is not installed where the perl interpreter +thinks it is (see Config), the \-perldoc option may be used to supply +the correct path to perldoc. +.ie n .IP """\-perldocopt"" \fIstring\fR" 4 +.el .IP "\f(CW\-perldocopt\fR \fIstring\fR" 4 +.IX Item "-perldocopt string" +By default, Pod::Usage will call perldoc when \-verbose >= 2 is specified. +The \-perldocopt option may be used to supply options to perldoc. The +string may contain several, space-separated options. +.SS "Formatting base class" +.IX Subsection "Formatting base class" +The default text formatter is Pod::Text. The base class for Pod::Usage can +be defined by pre-setting \f(CW$Pod::Usage::Formatter\fR \fIbefore\fR +loading Pod::Usage, e.g.: +.PP +.Vb 2 +\& BEGIN { $Pod::Usage::Formatter = \*(AqPod::Text::Termcap\*(Aq; } +\& use Pod::Usage qw(pod2usage); +.Ve +.PP +Pod::Usage uses Pod::Simple's \fB_handle_element_end()\fR method to implement +the section selection, and in case of verbosity < 2 it down-cases the +all-caps headings to first capital letter and rest lowercase, and adds +a colon/newline at the end of the headings, for better readability. Same for +verbosity = 99. +.SS "Pass-through options" +.IX Subsection "Pass-through options" +The following options are passed through to the underlying text formatter. +See the manual pages of these modules for more information. +.PP +.Vb 1 +\& alt code indent loose margin quotes sentence stderr utf8 width +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBpod2usage\fR will print a usage message for the invoking script (using +its embedded pod documentation) and then exit the script with the +desired exit status. The usage message printed may have any one of three +levels of \*(L"verboseness\*(R": If the verbose level is 0, then only a synopsis +is printed. If the verbose level is 1, then the synopsis is printed +along with a description (if present) of the command line options and +arguments. If the verbose level is 2, then the entire manual page is +printed. +.PP +Unless they are explicitly specified, the default values for the exit +status, verbose level, and output stream to use are determined as +follows: +.IP "\(bu" 4 +If neither the exit status nor the verbose level is specified, then the +default is to use an exit status of 2 with a verbose level of 0. +.IP "\(bu" 4 +If an exit status \fIis\fR specified but the verbose level is \fInot\fR, then the +verbose level will default to 1 if the exit status is less than 2 and +will default to 0 otherwise. +.IP "\(bu" 4 +If an exit status is \fInot\fR specified but verbose level \fIis\fR given, then +the exit status will default to 2 if the verbose level is 0 and will +default to 1 otherwise. +.IP "\(bu" 4 +If the exit status used is less than 2, then output is printed on +\&\f(CW\*(C`STDOUT\*(C'\fR. Otherwise output is printed on \f(CW\*(C`STDERR\*(C'\fR. +.PP +Although the above may seem a bit confusing at first, it generally does +\&\*(L"the right thing\*(R" in most situations. This determination of the default +values to use is based upon the following typical Unix conventions: +.IP "\(bu" 4 +An exit status of 0 implies \*(L"success\*(R". For example, \fB\fBdiff\fB\|(1)\fR exits +with a status of 0 if the two files have the same contents. +.IP "\(bu" 4 +An exit status of 1 implies possibly abnormal, but non-defective, program +termination. For example, \fB\fBgrep\fB\|(1)\fR exits with a status of 1 if +it did \fInot\fR find a matching line for the given regular expression. +.IP "\(bu" 4 +An exit status of 2 or more implies a fatal error. For example, \fB\fBls\fB\|(1)\fR +exits with a status of 2 if you specify an illegal (unknown) option on +the command line. +.IP "\(bu" 4 +Usage messages issued as a result of bad command-line syntax should go +to \f(CW\*(C`STDERR\*(C'\fR. However, usage messages issued due to an explicit request +to print usage (like specifying \fB\-help\fR on the command line) should go +to \f(CW\*(C`STDOUT\*(C'\fR, just in case the user wants to pipe the output to a pager +(such as \fB\fBmore\fB\|(1)\fR). +.IP "\(bu" 4 +If program usage has been explicitly requested by the user, it is often +desirable to exit with a status of 1 (as opposed to 0) after issuing +the user-requested usage message. It is also desirable to give a +more verbose description of program usage in this case. +.PP +\&\fBpod2usage\fR doesn't force the above conventions upon you, but it will +use them by default if you don't expressly tell it to do otherwise. The +ability of \fB\fBpod2usage()\fB\fR to accept a single number or a string makes it +convenient to use as an innocent looking error message handling function: +.PP +.Vb 3 +\& use strict; +\& use Pod::Usage; +\& use Getopt::Long; +\& +\& ## Parse options +\& my %opt; +\& GetOptions(\e%opt, "help|?", "man", "flag1") || pod2usage(2); +\& pod2usage(1) if ($opt{help}); +\& pod2usage(\-exitval => 0, \-verbose => 2) if ($opt{man}); +\& +\& ## Check for too many filenames +\& pod2usage("$0: Too many files given.\en") if (@ARGV > 1); +.Ve +.PP +Some user's however may feel that the above \*(L"economy of expression\*(R" is +not particularly readable nor consistent and may instead choose to do +something more like the following: +.PP +.Vb 3 +\& use strict; +\& use Pod::Usage qw(pod2usage); +\& use Getopt::Long qw(GetOptions); +\& +\& ## Parse options +\& my %opt; +\& GetOptions(\e%opt, "help|?", "man", "flag1") || +\& pod2usage(\-verbose => 0); +\& +\& pod2usage(\-verbose => 1) if ($opt{help}); +\& pod2usage(\-verbose => 2) if ($opt{man}); +\& +\& ## Check for too many filenames +\& pod2usage(\-verbose => 2, \-message => "$0: Too many files given.\en") +\& if (@ARGV > 1); +.Ve +.PP +As with all things in Perl, \fIthere's more than one way to do it\fR, and +\&\fB\fBpod2usage()\fB\fR adheres to this philosophy. If you are interested in +seeing a number of different ways to invoke \fBpod2usage\fR (although by no +means exhaustive), please refer to \*(L"\s-1EXAMPLES\*(R"\s0. +.SS "Scripts" +.IX Subsection "Scripts" +The Pod::Usage distribution comes with a script pod2usage which offers +a command line interface to the functionality of Pod::Usage. See +pod2usage. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Each of the following invocations of \f(CW\*(C`pod2usage()\*(C'\fR will print just the +\&\*(L"\s-1SYNOPSIS\*(R"\s0 section to \f(CW\*(C`STDERR\*(C'\fR and will exit with a status of 2: +.PP +.Vb 1 +\& pod2usage(); +\& +\& pod2usage(2); +\& +\& pod2usage(\-verbose => 0); +\& +\& pod2usage(\-exitval => 2); +\& +\& pod2usage({\-exitval => 2, \-output => \e*STDERR}); +\& +\& pod2usage({\-verbose => 0, \-output => \e*STDERR}); +\& +\& pod2usage(\-exitval => 2, \-verbose => 0); +\& +\& pod2usage(\-exitval => 2, \-verbose => 0, \-output => \e*STDERR); +.Ve +.PP +Each of the following invocations of \f(CW\*(C`pod2usage()\*(C'\fR will print a message +of \*(L"Syntax error.\*(R" (followed by a newline) to \f(CW\*(C`STDERR\*(C'\fR, immediately +followed by just the \*(L"\s-1SYNOPSIS\*(R"\s0 section (also printed to \f(CW\*(C`STDERR\*(C'\fR) and +will exit with a status of 2: +.PP +.Vb 1 +\& pod2usage("Syntax error."); +\& +\& pod2usage(\-message => "Syntax error.", \-verbose => 0); +\& +\& pod2usage(\-msg => "Syntax error.", \-exitval => 2); +\& +\& pod2usage({\-msg => "Syntax error.", \-exitval => 2, \-output => \e*STDERR}); +\& +\& pod2usage({\-msg => "Syntax error.", \-verbose => 0, \-output => \e*STDERR}); +\& +\& pod2usage(\-msg => "Syntax error.", \-exitval => 2, \-verbose => 0); +\& +\& pod2usage(\-message => "Syntax error.", +\& \-exitval => 2, +\& \-verbose => 0, +\& \-output => \e*STDERR); +.Ve +.PP +Each of the following invocations of \f(CW\*(C`pod2usage()\*(C'\fR will print the +\&\*(L"\s-1SYNOPSIS\*(R"\s0 section and any \*(L"\s-1OPTIONS\*(R"\s0 and/or \*(L"\s-1ARGUMENTS\*(R"\s0 sections to +\&\f(CW\*(C`STDOUT\*(C'\fR and will exit with a status of 1: +.PP +.Vb 1 +\& pod2usage(1); +\& +\& pod2usage(\-verbose => 1); +\& +\& pod2usage(\-exitval => 1); +\& +\& pod2usage({\-exitval => 1, \-output => \e*STDOUT}); +\& +\& pod2usage({\-verbose => 1, \-output => \e*STDOUT}); +\& +\& pod2usage(\-exitval => 1, \-verbose => 1); +\& +\& pod2usage(\-exitval => 1, \-verbose => 1, \-output => \e*STDOUT}); +.Ve +.PP +Each of the following invocations of \f(CW\*(C`pod2usage()\*(C'\fR will print the +entire manual page to \f(CW\*(C`STDOUT\*(C'\fR and will exit with a status of 1: +.PP +.Vb 1 +\& pod2usage(\-verbose => 2); +\& +\& pod2usage({\-verbose => 2, \-output => \e*STDOUT}); +\& +\& pod2usage(\-exitval => 1, \-verbose => 2); +\& +\& pod2usage({\-exitval => 1, \-verbose => 2, \-output => \e*STDOUT}); +.Ve +.SS "Recommended Use" +.IX Subsection "Recommended Use" +Most scripts should print some type of usage message to \f(CW\*(C`STDERR\*(C'\fR when a +command line syntax error is detected. They should also provide an +option (usually \f(CW\*(C`\-H\*(C'\fR or \f(CW\*(C`\-help\*(C'\fR) to print a (possibly more verbose) +usage message to \f(CW\*(C`STDOUT\*(C'\fR. Some scripts may even wish to go so far as to +provide a means of printing their complete documentation to \f(CW\*(C`STDOUT\*(C'\fR +(perhaps by allowing a \f(CW\*(C`\-man\*(C'\fR option). The following complete example +uses \fBPod::Usage\fR in combination with \fBGetopt::Long\fR to do all of these +things: +.PP +.Vb 3 +\& use strict; +\& use Getopt::Long qw(GetOptions); +\& use Pod::Usage qw(pod2usage); +\& +\& my $man = 0; +\& my $help = 0; +\& ## Parse options and print usage if there is a syntax error, +\& ## or if usage was explicitly requested. +\& GetOptions(\*(Aqhelp|?\*(Aq => \e$help, man => \e$man) or pod2usage(2); +\& pod2usage(1) if $help; +\& pod2usage(\-verbose => 2) if $man; +\& +\& ## If no arguments were given, then allow STDIN to be used only +\& ## if it\*(Aqs not connected to a terminal (otherwise print usage) +\& pod2usage("$0: No files given.") if ((@ARGV == 0) && (\-t STDIN)); +\& +\& _\|_END_\|_ +\& +\& =head1 NAME +\& +\& sample \- Using GetOpt::Long and Pod::Usage +\& +\& =head1 SYNOPSIS +\& +\& sample [options] [file ...] +\& +\& Options: +\& \-help brief help message +\& \-man full documentation +\& +\& =head1 OPTIONS +\& +\& =over 4 +\& +\& =item B<\-help> +\& +\& Print a brief help message and exits. +\& +\& =item B<\-man> +\& +\& Prints the manual page and exits. +\& +\& =back +\& +\& =head1 DESCRIPTION +\& +\& B will read the given input file(s) and do something +\& useful with the contents thereof. +\& +\& =cut +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +By default, \fB\fBpod2usage()\fB\fR will use \f(CW$0\fR as the path to the pod input +file. Unfortunately, not all systems on which Perl runs will set \f(CW$0\fR +properly (although if \f(CW$0\fR isn't found, \fB\fBpod2usage()\fB\fR will search +\&\f(CW$ENV{PATH}\fR or else the list specified by the \f(CW\*(C`\-pathlist\*(C'\fR option). +If this is the case for your system, you may need to explicitly specify +the path to the pod docs for the invoking script using something +similar to the following: +.PP +.Vb 1 +\& pod2usage(\-exitval => 2, \-input => "/path/to/your/pod/docs"); +.Ve +.PP +In the pathological case that a script is called via a relative path +\&\fIand\fR the script itself changes the current working directory +(see \*(L"chdir\*(R" in perlfunc) \fIbefore\fR calling pod2usage, Pod::Usage will +fail even on robust platforms. Don't do that. Or use FindBin to locate +the script: +.PP +.Vb 2 +\& use FindBin; +\& pod2usage(\-input => $FindBin::Bin . "/" . $FindBin::Script); +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Please report bugs using . +.PP +Marek Rouchal +.PP +Brad Appleton +.PP +Based on code for \fB\fBPod::Text::pod2text()\fB\fR written by +Tom Christiansen +.SH "ACKNOWLEDGMENTS" +.IX Header "ACKNOWLEDGMENTS" +rjbs for refactoring Pod::Usage to not use Pod::Parser any more. +.PP +Steven McDougall for his help and patience +with re-writing this manpage. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBPod::Usage\fR is now a standalone distribution, depending on +Pod::Text which in turn depends on Pod::Simple. +.PP +Pod::Perldoc, Getopt::Long, Pod::Find, FindBin, +Pod::Text, Pod::Text::Termcap, Pod::Simple diff --git a/data/miniconda3/man/man3/SDBM_File.3 b/data/miniconda3/man/man3/SDBM_File.3 new file mode 100644 index 0000000000000000000000000000000000000000..4c3cd466c8534e772b3410598bdf3c1d6a467e4e --- /dev/null +++ b/data/miniconda3/man/man3/SDBM_File.3 @@ -0,0 +1,249 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "SDBM_File 3" +.TH SDBM_File 3 "2020-12-18" "perl v5.32.1" "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" +SDBM_File \- Tied access to sdbm files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Fcntl; # For O_RDWR, O_CREAT, etc. +\& use SDBM_File; +\& +\& tie(%h, \*(AqSDBM_File\*(Aq, \*(Aqfilename\*(Aq, O_RDWR|O_CREAT, 0666) +\& or die "Couldn\*(Aqt tie SDBM file \*(Aqfilename\*(Aq: $!; aborting"; +\& +\& # Now read and change the hash +\& $h{newkey} = newvalue; +\& print $h{oldkey}; +\& ... +\& +\& untie %h; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`SDBM_File\*(C'\fR establishes a connection between a Perl hash variable and +a file in SDBM_File format. You can manipulate the data in the file +just as if it were in a Perl hash, but when your program exits, the +data will remain in the file, to be used the next time your program +runs. +.SS "Tie" +.IX Subsection "Tie" +Use \f(CW\*(C`SDBM_File\*(C'\fR with the Perl built-in \f(CW\*(C`tie\*(C'\fR function to establish +the connection between the variable and the file. +.PP +.Vb 1 +\& tie %hash, \*(AqSDBM_File\*(Aq, $basename, $modeflags, $perms; +\& +\& tie %hash, \*(AqSDBM_File\*(Aq, $dirfile, $modeflags, $perms, $pagfilename; +.Ve +.PP +\&\f(CW$basename\fR is the base filename for the database. The database is two +files with \*(L".dir\*(R" and \*(L".pag\*(R" extensions appended to \f(CW$basename\fR, +.PP +.Vb 2 +\& $basename.dir (or .sdbm_dir on VMS, per DIRFEXT constant) +\& $basename.pag +.Ve +.PP +The two filenames can also be given separately in full as \f(CW$dirfile\fR +and \f(CW$pagfilename\fR. This suits for two files without \*(L".dir\*(R" and \*(L".pag\*(R" +extensions, perhaps for example two files from File::Temp. +.PP +\&\f(CW$modeflags\fR can be the following constants from the \f(CW\*(C`Fcntl\*(C'\fR module (in +the style of the \fBopen\fR\|(2) system call), +.PP +.Vb 3 +\& O_RDONLY read\-only access +\& O_WRONLY write\-only access +\& O_RDWR read and write access +.Ve +.PP +If you want to create the file if it does not already exist then bitwise-OR +(\f(CW\*(C`|\*(C'\fR) \f(CW\*(C`O_CREAT\*(C'\fR too. If you omit \f(CW\*(C`O_CREAT\*(C'\fR and the database does not +already exist then the \f(CW\*(C`tie\*(C'\fR call will fail. +.PP +.Vb 1 +\& O_CREAT create database if doesn\*(Aqt already exist +.Ve +.PP +\&\f(CW$perms\fR is the file permissions bits to use if new database files are +created. This parameter is mandatory even when not creating a new database. +The permissions will be reduced by the user's umask so the usual value here +would be 0666, or if some very private data then 0600. (See +\&\*(L"umask\*(R" in perlfunc.) +.SH "EXPORTS" +.IX Header "EXPORTS" +SDBM_File optionally exports the following constants: +.IP "\(bu" 4 +\&\f(CW\*(C`PAGFEXT\*(C'\fR \- the extension used for the page file, usually \f(CW\*(C`.pag\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`DIRFEXT\*(C'\fR \- the extension used for the directory file, \f(CW\*(C`.dir\*(C'\fR +everywhere but \s-1VMS,\s0 where it is \f(CW\*(C`.sdbm_dir\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`PAIRMAX\*(C'\fR \- the maximum size of a stored hash entry, including the +length of both the key and value. +.PP +These constants can also be used with fully qualified names, +eg. \f(CW\*(C`SDBM_File::PAGFEXT\*(C'\fR. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +On failure, the \f(CW\*(C`tie\*(C'\fR call returns an undefined value and probably +sets \f(CW$!\fR to contain the reason the file could not be tied. +.ie n .SS """sdbm store returned \-1, errno 22, key ""..."" at ...""" +.el .SS "\f(CWsdbm store returned \-1, errno 22, key ``...'' at ...\fP" +.IX Subsection "sdbm store returned -1, errno 22, key ""..."" at ..." +This warning is emitted when you try to store a key or a value that +is too long. It means that the change was not recorded in the +database. See \s-1BUGS AND WARNINGS\s0 below. +.SH "SECURITY WARNING" +.IX Header "SECURITY WARNING" +\&\fBDo not accept \s-1SDBM\s0 files from untrusted sources!\fR +.PP +The sdbm file format was designed for speed and convenience, not for +portability or security. A maliciously crafted file might cause perl to +crash or even expose a security vulnerability. +.SH "BUGS AND WARNINGS" +.IX Header "BUGS AND WARNINGS" +There are a number of limits on the size of the data that you can +store in the \s-1SDBM\s0 file. The most important is that the length of a +key, plus the length of its associated value, may not exceed 1008 +bytes. +.PP +See \*(L"tie\*(R" in perlfunc, perldbmfilter, Fcntl diff --git a/data/miniconda3/man/man3/Scalar%3A%3AUtil.3 b/data/miniconda3/man/man3/Scalar%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..ff0964c320d5141b635841dd1fd834829c7f00b2 --- /dev/null +++ b/data/miniconda3/man/man3/Scalar%3A%3AUtil.3 @@ -0,0 +1,479 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Scalar::Util 3" +.TH Scalar::Util 3 "2020-12-18" "perl v5.32.1" "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" +Scalar::Util \- A selection of general\-utility scalar subroutines +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Scalar::Util qw(blessed dualvar isdual readonly refaddr reftype +\& tainted weaken isweak isvstring looks_like_number +\& set_prototype); +\& # and other useful utils appearing below +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Scalar::Util\*(C'\fR contains a selection of subroutines that people have expressed +would be nice to have in the perl core, but the usage would not really be high +enough to warrant the use of a keyword, and the size would be so small that +being individual extensions would be wasteful. +.PP +By default \f(CW\*(C`Scalar::Util\*(C'\fR does not export any subroutines. +.SH "FUNCTIONS FOR REFERENCES" +.IX Header "FUNCTIONS FOR REFERENCES" +The following functions all perform some useful activity on reference values. +.SS "blessed" +.IX Subsection "blessed" +.Vb 1 +\& my $pkg = blessed( $ref ); +.Ve +.PP +If \f(CW$ref\fR is a blessed reference, the name of the package that it is blessed +into is returned. Otherwise \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 2 +\& $scalar = "foo"; +\& $class = blessed $scalar; # undef +\& +\& $ref = []; +\& $class = blessed $ref; # undef +\& +\& $obj = bless [], "Foo"; +\& $class = blessed $obj; # "Foo" +.Ve +.PP +Take care when using this function simply as a truth test (such as in +\&\f(CW\*(C`if(blessed $ref)...\*(C'\fR) because the package name \f(CW"0"\fR is defined yet false. +.SS "refaddr" +.IX Subsection "refaddr" +.Vb 1 +\& my $addr = refaddr( $ref ); +.Ve +.PP +If \f(CW$ref\fR is reference, the internal memory address of the referenced value is +returned as a plain integer. Otherwise \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 3 +\& $addr = refaddr "string"; # undef +\& $addr = refaddr \e$var; # eg 12345678 +\& $addr = refaddr []; # eg 23456784 +\& +\& $obj = bless {}, "Foo"; +\& $addr = refaddr $obj; # eg 88123488 +.Ve +.SS "reftype" +.IX Subsection "reftype" +.Vb 1 +\& my $type = reftype( $ref ); +.Ve +.PP +If \f(CW$ref\fR is a reference, the basic Perl type of the variable referenced is +returned as a plain string (such as \f(CW\*(C`ARRAY\*(C'\fR or \f(CW\*(C`HASH\*(C'\fR). Otherwise \f(CW\*(C`undef\*(C'\fR +is returned. +.PP +.Vb 3 +\& $type = reftype "string"; # undef +\& $type = reftype \e$var; # SCALAR +\& $type = reftype []; # ARRAY +\& +\& $obj = bless {}, "Foo"; +\& $type = reftype $obj; # HASH +.Ve +.PP +Note that for internal reasons, all precompiled regexps (\f(CW\*(C`qr/.../\*(C'\fR) are +blessed references; thus \f(CW\*(C`ref()\*(C'\fR returns the package name string \f(CW"Regexp"\fR +on these but \f(CW\*(C`reftype()\*(C'\fR will return the underlying C structure type of +\&\f(CW"REGEXP"\fR in all capitals. +.SS "weaken" +.IX Subsection "weaken" +.Vb 1 +\& weaken( $ref ); +.Ve +.PP +The lvalue \f(CW$ref\fR will be turned into a weak reference. This means that it +will not hold a reference count on the object it references. Also, when the +reference count on that object reaches zero, the reference will be set to +undef. This function mutates the lvalue passed as its argument and returns no +value. +.PP +This is useful for keeping copies of references, but you don't want to prevent +the object being DESTROY-ed at its usual time. +.PP +.Vb 6 +\& { +\& my $var; +\& $ref = \e$var; +\& weaken($ref); # Make $ref a weak reference +\& } +\& # $ref is now undef +.Ve +.PP +Note that if you take a copy of a scalar with a weakened reference, the copy +will be a strong reference. +.PP +.Vb 4 +\& my $var; +\& my $foo = \e$var; +\& weaken($foo); # Make $foo a weak reference +\& my $bar = $foo; # $bar is now a strong reference +.Ve +.PP +This may be less obvious in other situations, such as \f(CW\*(C`grep()\*(C'\fR, for instance +when grepping through a list of weakened references to objects that may have +been destroyed already: +.PP +.Vb 1 +\& @object = grep { defined } @object; +.Ve +.PP +This will indeed remove all references to destroyed objects, but the remaining +references to objects will be strong, causing the remaining objects to never be +destroyed because there is now always a strong reference to them in the \f(CW@object\fR +array. +.SS "unweaken" +.IX Subsection "unweaken" +.Vb 1 +\& unweaken( $ref ); +.Ve +.PP +\&\fISince version 1.36.\fR +.PP +The lvalue \f(CW\*(C`REF\*(C'\fR will be turned from a weak reference back into a normal +(strong) reference again. This function mutates the lvalue passed as its +argument and returns no value. This undoes the action performed by +\&\*(L"weaken\*(R". +.PP +This function is slightly neater and more convenient than the +otherwise-equivalent code +.PP +.Vb 3 +\& my $tmp = $REF; +\& undef $REF; +\& $REF = $tmp; +.Ve +.PP +(because in particular, simply assigning a weak reference back to itself does +not work to unweaken it; \f(CW\*(C`$REF = $REF\*(C'\fR does not work). +.SS "isweak" +.IX Subsection "isweak" +.Vb 1 +\& my $weak = isweak( $ref ); +.Ve +.PP +Returns true if \f(CW$ref\fR is a weak reference. +.PP +.Vb 4 +\& $ref = \e$foo; +\& $weak = isweak($ref); # false +\& weaken($ref); +\& $weak = isweak($ref); # true +.Ve +.PP +\&\fB\s-1NOTE\s0\fR: Copying a weak reference creates a normal, strong, reference. +.PP +.Vb 2 +\& $copy = $ref; +\& $weak = isweak($copy); # false +.Ve +.SH "OTHER FUNCTIONS" +.IX Header "OTHER FUNCTIONS" +.SS "dualvar" +.IX Subsection "dualvar" +.Vb 1 +\& my $var = dualvar( $num, $string ); +.Ve +.PP +Returns a scalar that has the value \f(CW$num\fR in a numeric context and the value +\&\f(CW$string\fR in a string context. +.PP +.Vb 3 +\& $foo = dualvar 10, "Hello"; +\& $num = $foo + 2; # 12 +\& $str = $foo . " world"; # Hello world +.Ve +.SS "isdual" +.IX Subsection "isdual" +.Vb 1 +\& my $dual = isdual( $var ); +.Ve +.PP +\&\fISince version 1.26.\fR +.PP +If \f(CW$var\fR is a scalar that has both numeric and string values, the result is +true. +.PP +.Vb 2 +\& $foo = dualvar 86, "Nix"; +\& $dual = isdual($foo); # true +.Ve +.PP +Note that a scalar can be made to have both string and numeric content through +numeric operations: +.PP +.Vb 4 +\& $foo = "10"; +\& $dual = isdual($foo); # false +\& $bar = $foo + 0; +\& $dual = isdual($foo); # true +.Ve +.PP +Note that although \f(CW$!\fR appears to be a dual-valued variable, it is +actually implemented as a magical variable inside the interpreter: +.PP +.Vb 3 +\& $! = 1; +\& print("$!\en"); # "Operation not permitted" +\& $dual = isdual($!); # false +.Ve +.PP +You can capture its numeric and string content using: +.PP +.Vb 2 +\& $err = dualvar $!, $!; +\& $dual = isdual($err); # true +.Ve +.SS "isvstring" +.IX Subsection "isvstring" +.Vb 1 +\& my $vstring = isvstring( $var ); +.Ve +.PP +If \f(CW$var\fR is a scalar which was coded as a vstring, the result is true. +.PP +.Vb 3 +\& $vs = v49.46.48; +\& $fmt = isvstring($vs) ? "%vd" : "%s"; #true +\& printf($fmt,$vs); +.Ve +.SS "looks_like_number" +.IX Subsection "looks_like_number" +.Vb 1 +\& my $isnum = looks_like_number( $var ); +.Ve +.PP +Returns true if perl thinks \f(CW$var\fR is a number. See +\&\*(L"looks_like_number\*(R" in perlapi. +.SS "openhandle" +.IX Subsection "openhandle" +.Vb 1 +\& my $fh = openhandle( $fh ); +.Ve +.PP +Returns \f(CW$fh\fR itself, if \f(CW$fh\fR may be used as a filehandle and is open, or if +it is a tied handle. Otherwise \f(CW\*(C`undef\*(C'\fR is returned. +.PP +.Vb 4 +\& $fh = openhandle(*STDIN); # \e*STDIN +\& $fh = openhandle(\e*STDIN); # \e*STDIN +\& $fh = openhandle(*NOTOPEN); # undef +\& $fh = openhandle("scalar"); # undef +.Ve +.SS "readonly" +.IX Subsection "readonly" +.Vb 1 +\& my $ro = readonly( $var ); +.Ve +.PP +Returns true if \f(CW$var\fR is readonly. +.PP +.Vb 1 +\& sub foo { readonly($_[0]) } +\& +\& $readonly = foo($bar); # false +\& $readonly = foo(0); # true +.Ve +.SS "set_prototype" +.IX Subsection "set_prototype" +.Vb 1 +\& my $code = set_prototype( $code, $prototype ); +.Ve +.PP +Sets the prototype of the function given by the \f(CW$code\fR reference, or deletes +it if \f(CW$prototype\fR is \f(CW\*(C`undef\*(C'\fR. Returns the \f(CW$code\fR reference itself. +.PP +.Vb 1 +\& set_prototype \e&foo, \*(Aq$$\*(Aq; +.Ve +.SS "tainted" +.IX Subsection "tainted" +.Vb 1 +\& my $t = tainted( $var ); +.Ve +.PP +Return true if \f(CW$var\fR is tainted. +.PP +.Vb 2 +\& $taint = tainted("constant"); # false +\& $taint = tainted($ENV{PWD}); # true if running under \-T +.Ve +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +Module use may give one of the following errors during import. +.IP "Weak references are not implemented in the version of perl" 4 +.IX Item "Weak references are not implemented in the version of perl" +The version of perl that you are using does not implement weak references, to +use \*(L"isweak\*(R" or \*(L"weaken\*(R" you will need to use a newer release of perl. +.IP "Vstrings are not implemented in the version of perl" 4 +.IX Item "Vstrings are not implemented in the version of perl" +The version of perl that you are using does not implement Vstrings, to use +\&\*(L"isvstring\*(R" you will need to use a newer release of perl. +.SH "KNOWN BUGS" +.IX Header "KNOWN BUGS" +There is a bug in perl5.6.0 with \s-1UV\s0's that are >= 1<<31. This will +show up as tests 8 and 9 of dualvar.t failing +.SH "SEE ALSO" +.IX Header "SEE ALSO" +List::Util +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-2007 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +Additionally \*(L"weaken\*(R" and \*(L"isweak\*(R" which are +.PP +Copyright (c) 1999 Tuomas J. Lukka . All rights reserved. +This program is free software; you can redistribute it and/or modify it +under the same terms as perl itself. +.PP +Copyright (C) 2004, 2008 Matthijs van Duin. All rights reserved. +Copyright (C) 2014 cPanel Inc. All rights reserved. +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Search%3A%3ADict.3 b/data/miniconda3/man/man3/Search%3A%3ADict.3 new file mode 100644 index 0000000000000000000000000000000000000000..001f76f37f8d9742086ab79be03367d21c473e67 --- /dev/null +++ b/data/miniconda3/man/man3/Search%3A%3ADict.3 @@ -0,0 +1,175 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Search::Dict 3" +.TH Search::Dict 3 "2020-12-18" "perl v5.32.1" "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" +Search::Dict \- look \- search for key in dictionary file +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Search::Dict; +\& look *FILEHANDLE, $key, $dict, $fold; +\& +\& use Search::Dict; +\& look *FILEHANDLE, $params; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Sets file position in \s-1FILEHANDLE\s0 to be first line greater than or equal +(stringwise) to \fI\f(CI$key\fI\fR. Returns the new file position, or \-1 if an error +occurs. +.PP +The flags specify dictionary order and case folding: +.PP +If \fI\f(CI$dict\fI\fR is true, search by dictionary order (ignore anything but word +characters and whitespace). The default is honour all characters. +.PP +If \fI\f(CI$fold\fI\fR is true, ignore case. The default is to honour case. +.PP +If there are only three arguments and the third argument is a hash +reference, the keys of that hash can have values \f(CW\*(C`dict\*(C'\fR, \f(CW\*(C`fold\*(C'\fR, and +\&\f(CW\*(C`comp\*(C'\fR or \f(CW\*(C`xfrm\*(C'\fR (see below), and their corresponding values will be +used as the parameters. +.PP +If a comparison subroutine (comp) is defined, it must return less than zero, +zero, or greater than zero, if the first comparand is less than, +equal, or greater than the second comparand. +.PP +If a transformation subroutine (xfrm) is defined, its value is used to +transform the lines read from the filehandle before their comparison. diff --git a/data/miniconda3/man/man3/SelectSaver.3 b/data/miniconda3/man/man3/SelectSaver.3 new file mode 100644 index 0000000000000000000000000000000000000000..4c1401919d72a2c7335b86347d4004f1713edcf3 --- /dev/null +++ b/data/miniconda3/man/man3/SelectSaver.3 @@ -0,0 +1,168 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "SelectSaver 3" +.TH SelectSaver 3 "2020-12-18" "perl v5.32.1" "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" +SelectSaver \- save and restore selected file handle +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use SelectSaver; +\& +\& { +\& my $saver = SelectSaver\->new(FILEHANDLE); +\& # FILEHANDLE is selected +\& } +\& # previous handle is selected +\& +\& { +\& my $saver = SelectSaver\->new; +\& # new handle may be selected, or not +\& } +\& # previous handle is selected +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A \f(CW\*(C`SelectSaver\*(C'\fR object contains a reference to the file handle that +was selected when it was created. If its \f(CW\*(C`new\*(C'\fR method gets an extra +parameter, then that parameter is selected; otherwise, the selected +file handle remains unchanged. +.PP +When a \f(CW\*(C`SelectSaver\*(C'\fR is destroyed, it re-selects the file handle +that was selected when it was created. diff --git a/data/miniconda3/man/man3/SelfLoader.3 b/data/miniconda3/man/man3/SelfLoader.3 new file mode 100644 index 0000000000000000000000000000000000000000..c6a3684dfd6e81efd65e2c9d1f605ed37151d851 --- /dev/null +++ b/data/miniconda3/man/man3/SelfLoader.3 @@ -0,0 +1,390 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "SelfLoader 3" +.TH SelfLoader 3 "2020-12-18" "perl v5.32.1" "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" +SelfLoader \- load functions only on demand +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package FOOBAR; +\& use SelfLoader; +\& +\& ... (initializing code) +\& +\& _\|_DATA_\|_ +\& sub {.... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module tells its users that functions in the \s-1FOOBAR\s0 package are to be +autoloaded from after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token. See also +\&\*(L"Autoloading\*(R" in perlsub. +.SS "The _\|_DATA_\|_ token" +.IX Subsection "The __DATA__ token" +The \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token tells the perl compiler that the perl code +for compilation is finished. Everything after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token +is available for reading via the filehandle \s-1FOOBAR::DATA,\s0 +where \s-1FOOBAR\s0 is the name of the current package when the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR +token is reached. This works just the same as \f(CW\*(C`_\|_END_\|_\*(C'\fR does in +package 'main', but for other modules data after \f(CW\*(C`_\|_END_\|_\*(C'\fR is not +automatically retrievable, whereas data after \f(CW\*(C`_\|_DATA_\|_\*(C'\fR is. +The \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token is not recognized in versions of perl prior to +5.001m. +.PP +Note that it is possible to have \f(CW\*(C`_\|_DATA_\|_\*(C'\fR tokens in the same package +in multiple files, and that the last \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token in a given +package that is encountered by the compiler is the one accessible +by the filehandle. This also applies to \f(CW\*(C`_\|_END_\|_\*(C'\fR and main, i.e. if +the 'main' program has an \f(CW\*(C`_\|_END_\|_\*(C'\fR, but a module 'require'd (_not_ 'use'd) +by that program has a 'package main;' declaration followed by an '\f(CW\*(C`_\|_DATA_\|_\*(C'\fR', +then the \f(CW\*(C`DATA\*(C'\fR filehandle is set to access the data after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR +in the module, _not_ the data after the \f(CW\*(C`_\|_END_\|_\*(C'\fR token in the 'main' +program, since the compiler encounters the 'require'd file later. +.SS "SelfLoader autoloading" +.IX Subsection "SelfLoader autoloading" +The \fBSelfLoader\fR works by the user placing the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR +token \fIafter\fR perl code which needs to be compiled and +run at 'require' time, but \fIbefore\fR subroutine declarations +that can be loaded in later \- usually because they may never +be called. +.PP +The \fBSelfLoader\fR will read from the \s-1FOOBAR::DATA\s0 filehandle to +load in the data after \f(CW\*(C`_\|_DATA_\|_\*(C'\fR, and load in any subroutine +when it is called. The costs are the one-time parsing of the +data after \f(CW\*(C`_\|_DATA_\|_\*(C'\fR, and a load delay for the _first_ +call of any autoloaded function. The benefits (hopefully) +are a speeded up compilation phase, with no need to load +functions which are never used. +.PP +The \fBSelfLoader\fR will stop reading from \f(CW\*(C`_\|_DATA_\|_\*(C'\fR if +it encounters the \f(CW\*(C`_\|_END_\|_\*(C'\fR token \- just as you would expect. +If the \f(CW\*(C`_\|_END_\|_\*(C'\fR token is present, and is followed by the +token \s-1DATA,\s0 then the \fBSelfLoader\fR leaves the \s-1FOOBAR::DATA\s0 +filehandle open on the line after that token. +.PP +The \fBSelfLoader\fR exports the \f(CW\*(C`AUTOLOAD\*(C'\fR subroutine to the +package using the \fBSelfLoader\fR, and this loads the called +subroutine when it is first called. +.PP +There is no advantage to putting subroutines which will _always_ +be called after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token. +.SS "Autoloading and package lexicals" +.IX Subsection "Autoloading and package lexicals" +A 'my \f(CW$pack_lexical\fR' statement makes the variable \f(CW$pack_lexical\fR +local _only_ to the file up to the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token. Subroutines +declared elsewhere _cannot_ see these types of variables, +just as if you declared subroutines in the package but in another +file, they cannot see these variables. +.PP +So specifically, autoloaded functions cannot see package +lexicals (this applies to both the \fBSelfLoader\fR and the Autoloader). +The \f(CW\*(C`vars\*(C'\fR pragma provides an alternative to defining package-level +globals that will be visible to autoloaded routines. See the documentation +on \fBvars\fR in the pragma section of perlmod. +.SS "SelfLoader and AutoLoader" +.IX Subsection "SelfLoader and AutoLoader" +The \fBSelfLoader\fR can replace the AutoLoader \- just change 'use AutoLoader' +to 'use SelfLoader' (though note that the \fBSelfLoader\fR exports +the \s-1AUTOLOAD\s0 function \- but if you have your own \s-1AUTOLOAD\s0 and +are using the AutoLoader too, you probably know what you're doing), +and the \f(CW\*(C`_\|_END_\|_\*(C'\fR token to \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. You will need perl version 5.001m +or later to use this (version 5.001 with all patches up to patch m). +.PP +There is no need to inherit from the \fBSelfLoader\fR. +.PP +The \fBSelfLoader\fR works similarly to the AutoLoader, but picks up the +subs from after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR instead of in the 'lib/auto' directory. +There is a maintenance gain in not needing to run AutoSplit on the module +at installation, and a runtime gain in not needing to keep opening and +closing files to load subs. There is a runtime loss in needing +to parse the code after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR. Details of the \fBAutoLoader\fR and +another view of these distinctions can be found in that module's +documentation. +.SS "_\|_DATA_\|_, _\|_END_\|_, and the \s-1FOOBAR::DATA\s0 filehandle." +.IX Subsection "__DATA__, __END__, and the FOOBAR::DATA filehandle." +This section is only relevant if you want to use +the \f(CW\*(C`FOOBAR::DATA\*(C'\fR together with the \fBSelfLoader\fR. +.PP +Data after the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token in a module is read using the +\&\s-1FOOBAR::DATA\s0 filehandle. \f(CW\*(C`_\|_END_\|_\*(C'\fR can still be used to denote the end +of the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR section if followed by the token \s-1DATA\s0 \- this is supported +by the \fBSelfLoader\fR. The \f(CW\*(C`FOOBAR::DATA\*(C'\fR filehandle is left open if an +\&\f(CW\*(C`_\|_END_\|_\*(C'\fR followed by a \s-1DATA\s0 is found, with the filehandle positioned at +the start of the line after the \f(CW\*(C`_\|_END_\|_\*(C'\fR token. If no \f(CW\*(C`_\|_END_\|_\*(C'\fR token is +present, or an \f(CW\*(C`_\|_END_\|_\*(C'\fR token with no \s-1DATA\s0 token on the same line, then +the filehandle is closed. +.PP +The \fBSelfLoader\fR reads from wherever the current +position of the \f(CW\*(C`FOOBAR::DATA\*(C'\fR filehandle is, until the +\&\s-1EOF\s0 or \f(CW\*(C`_\|_END_\|_\*(C'\fR. This means that if you want to use +that filehandle (and \s-1ONLY\s0 if you want to), you should either +.PP +1. Put all your subroutine declarations immediately after +the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token and put your own data after those +declarations, using the \f(CW\*(C`_\|_END_\|_\*(C'\fR token to mark the end +of subroutine declarations. You must also ensure that the \fBSelfLoader\fR +reads first by calling 'SelfLoader\->\fBload_stubs()\fR;', or by using a +function which is selfloaded; +.PP +or +.PP +2. You should read the \f(CW\*(C`FOOBAR::DATA\*(C'\fR filehandle first, leaving +the handle open and positioned at the first line of subroutine +declarations. +.PP +You could conceivably do both. +.SS "Classes and inherited methods." +.IX Subsection "Classes and inherited methods." +For modules which are not classes, this section is not relevant. +This section is only relevant if you have methods which could +be inherited. +.PP +A subroutine stub (or forward declaration) looks like +.PP +.Vb 1 +\& sub stub; +.Ve +.PP +i.e. it is a subroutine declaration without the body of the +subroutine. For modules which are not classes, there is no real +need for stubs as far as autoloading is concerned. +.PP +For modules which \s-1ARE\s0 classes, and need to handle inherited methods, +stubs are needed to ensure that the method inheritance mechanism works +properly. You can load the stubs into the module at 'require' time, by +adding the statement 'SelfLoader\->\fBload_stubs()\fR;' to the module to do +this. +.PP +The alternative is to put the stubs in before the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR token \s-1BEFORE\s0 +releasing the module, and for this purpose the \f(CW\*(C`Devel::SelfStubber\*(C'\fR +module is available. However this does require the extra step of ensuring +that the stubs are in the module. If this is done I strongly recommend +that this is done \s-1BEFORE\s0 releasing the module \- it should \s-1NOT\s0 be done +at install time in general. +.SH "Multiple packages and fully qualified subroutine names" +.IX Header "Multiple packages and fully qualified subroutine names" +Subroutines in multiple packages within the same file are supported \- but you +should note that this requires exporting the \f(CW\*(C`SelfLoader::AUTOLOAD\*(C'\fR to +every package which requires it. This is done automatically by the +\&\fBSelfLoader\fR when it first loads the subs into the cache, but you should +really specify it in the initialization before the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR by putting +a 'use SelfLoader' statement in each package. +.PP +Fully qualified subroutine names are also supported. For example, +.PP +.Vb 4 +\& _\|_DATA_\|_ +\& sub foo::bar {23} +\& package baz; +\& sub dob {32} +.Ve +.PP +will all be loaded correctly by the \fBSelfLoader\fR, and the \fBSelfLoader\fR +will ensure that the packages 'foo' and 'baz' correctly have the +\&\fBSelfLoader\fR \f(CW\*(C`AUTOLOAD\*(C'\fR method when the data after \f(CW\*(C`_\|_DATA_\|_\*(C'\fR is first +parsed. +.SH "AUTHOR" +.IX Header "AUTHOR" +\&\f(CW\*(C`SelfLoader\*(C'\fR is maintained by the perl5\-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the \s-1CPAN\s0 release can be sent to its maintainer, +though. +.PP +Author and Maintainer: The Perl5\-Porters +.PP +Maintainer of the \s-1CPAN\s0 release: Steffen Mueller +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This package has been part of the perl core since the first release +of perl5. It has been released separately to \s-1CPAN\s0 so older installations +can benefit from bug fixes. +.PP +This package has the same copyright and license as the perl core: +.PP +Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, +2000, 2001, 2002, 2003, 2004, 2005, 2006 by Larry Wall and others +.PP +All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the terms of either: +.IP "a)" 4 +.IX Item "a)" +the \s-1GNU\s0 General Public License as published by the Free Software Foundation; +either version 1, or (at your option) any later version, or +.IP "b)" 4 +.IX Item "b)" +the \*(L"Artistic License\*(R" which comes with this Kit. +.PP +This program is distributed in the hope that it will be useful, +but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of +\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See either +the \s-1GNU\s0 General Public License or the Artistic License for more details. +.PP +You should have received a copy of the Artistic License with this +Kit, in the file named \*(L"Artistic\*(R". If not, I'll be glad to provide one. +.PP +You should also have received a copy of the \s-1GNU\s0 General Public License +along with this program in the file named \*(L"Copying\*(R". If not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +\&\s-1MA 02110\-1301, USA\s0 or visit their web page on the internet at +. +.PP +For those of you that choose to use the \s-1GNU\s0 General Public License, +my interpretation of the \s-1GNU\s0 General Public License is that no Perl +script falls under the terms of the \s-1GPL\s0 unless you explicitly put +said script under the terms of the \s-1GPL\s0 yourself. Furthermore, any +object code linked with perl does not automatically fall under the +terms of the \s-1GPL,\s0 provided such object code only adds definitions +of subroutines and variables, and does not otherwise impair the +resulting interpreter from executing any standard Perl script. I +consider linking in C subroutines in this manner to be the moral +equivalent of defining subroutines in the Perl language itself. You +may sell such an object file as proprietary provided that you provide +or offer to provide the Perl source, as specified by the \s-1GNU\s0 General +Public License. (This is merely an alternate way of specifying input +to the program.) You may also sell a binary produced by the dumping of +a running Perl script that belongs to you, provided that you provide or +offer to provide the Perl source as specified by the \s-1GPL.\s0 (The +fact that a Perl interpreter and your code are in the same binary file +is, in this case, a form of mere aggregation.) This is my interpretation +of the \s-1GPL.\s0 If you still have concerns or difficulties understanding +my intent, feel free to contact me. Of course, the Artistic License +spells all this out for your protection, so you may prefer to use that. diff --git a/data/miniconda3/man/man3/Socket.3 b/data/miniconda3/man/man3/Socket.3 new file mode 100644 index 0000000000000000000000000000000000000000..4bb5de1189e9e4a498516637723d245210d67273 --- /dev/null +++ b/data/miniconda3/man/man3/Socket.3 @@ -0,0 +1,752 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Socket 3" +.TH Socket 3 "2020-12-18" "perl v5.32.1" "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" +"Socket" \- networking constants and support functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\f(CW\*(C`Socket\*(C'\fR a low-level module used by, among other things, the IO::Socket +family of modules. The following examples demonstrate some low-level uses but +a practical program would likely use the higher-level \s-1API\s0 provided by +\&\f(CW\*(C`IO::Socket\*(C'\fR or similar instead. +.PP +.Vb 1 +\& use Socket qw(PF_INET SOCK_STREAM pack_sockaddr_in inet_aton); +\& +\& socket(my $socket, PF_INET, SOCK_STREAM, 0) +\& or die "socket: $!"; +\& +\& my $port = getservbyname "echo", "tcp"; +\& connect($socket, pack_sockaddr_in($port, inet_aton("localhost"))) +\& or die "connect: $!"; +\& +\& print $socket "Hello, world!\en"; +\& print <$socket>; +.Ve +.PP +See also the \*(L"\s-1EXAMPLES\*(R"\s0 section. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a variety of constants, structure manipulators and other +functions related to socket-based networking. The values and functions +provided are useful when used in conjunction with Perl core functions such as +\&\fBsocket()\fR, \fBsetsockopt()\fR and \fBbind()\fR. It also provides several other support +functions, mostly for dealing with conversions of network addresses between +human-readable and native binary forms, and for hostname resolver operations. +.PP +Some constants and functions are exported by default by this module; but for +backward-compatibility any recently-added symbols are not exported by default +and must be requested explicitly. When an import list is provided to the +\&\f(CW\*(C`use Socket\*(C'\fR line, the default exports are not automatically imported. It is +therefore best practice to always to explicitly list all the symbols required. +.PP +Also, some common socket \*(L"newline\*(R" constants are provided: the constants +\&\f(CW\*(C`CR\*(C'\fR, \f(CW\*(C`LF\*(C'\fR, and \f(CW\*(C`CRLF\*(C'\fR, as well as \f(CW$CR\fR, \f(CW$LF\fR, and \f(CW$CRLF\fR, which map +to \f(CW\*(C`\e015\*(C'\fR, \f(CW\*(C`\e012\*(C'\fR, and \f(CW\*(C`\e015\e012\*(C'\fR. If you do not want to use the literal +characters in your programs, then use the constants provided here. They are +not exported by default, but can be imported individually, and with the +\&\f(CW\*(C`:crlf\*(C'\fR export tag: +.PP +.Vb 1 +\& use Socket qw(:DEFAULT :crlf); +\& +\& $sock\->print("GET / HTTP/1.0$CRLF"); +.Ve +.PP +The entire \fBgetaddrinfo()\fR subsystem can be exported using the tag \f(CW\*(C`:addrinfo\*(C'\fR; +this exports the \fBgetaddrinfo()\fR and \fBgetnameinfo()\fR functions, and all the +\&\f(CW\*(C`AI_*\*(C'\fR, \f(CW\*(C`NI_*\*(C'\fR, \f(CW\*(C`NIx_*\*(C'\fR and \f(CW\*(C`EAI_*\*(C'\fR constants. +.SH "CONSTANTS" +.IX Header "CONSTANTS" +In each of the following groups, there may be many more constants provided +than just the ones given as examples in the section heading. If the heading +ends \f(CW\*(C`...\*(C'\fR then this means there are likely more; the exact constants +provided will depend on the \s-1OS\s0 and headers found at compile-time. +.SS "\s-1PF_INET, PF_INET6, PF_UNIX, ...\s0" +.IX Subsection "PF_INET, PF_INET6, PF_UNIX, ..." +Protocol family constants to use as the first argument to \fBsocket()\fR or the +value of the \f(CW\*(C`SO_DOMAIN\*(C'\fR or \f(CW\*(C`SO_FAMILY\*(C'\fR socket option. +.SS "\s-1AF_INET, AF_INET6, AF_UNIX, ...\s0" +.IX Subsection "AF_INET, AF_INET6, AF_UNIX, ..." +Address family constants used by the socket address structures, to pass to +such functions as \fBinet_pton()\fR or \fBgetaddrinfo()\fR, or are returned by such +functions as \fBsockaddr_family()\fR. +.SS "\s-1SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, ...\s0" +.IX Subsection "SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, ..." +Socket type constants to use as the second argument to \fBsocket()\fR, or the value +of the \f(CW\*(C`SO_TYPE\*(C'\fR socket option. +.SS "\s-1SOCK_NONBLOCK. SOCK_CLOEXEC\s0" +.IX Subsection "SOCK_NONBLOCK. SOCK_CLOEXEC" +Linux-specific shortcuts to specify the \f(CW\*(C`O_NONBLOCK\*(C'\fR and \f(CW\*(C`FD_CLOEXEC\*(C'\fR flags +during a \f(CWsocket(2)\fR call. +.PP +.Vb 1 +\& socket( my $sockh, PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, 0 ) +.Ve +.SS "\s-1SOL_SOCKET\s0" +.IX Subsection "SOL_SOCKET" +Socket option level constant for \fBsetsockopt()\fR and \fBgetsockopt()\fR. +.SS "\s-1SO_ACCEPTCONN, SO_BROADCAST, SO_ERROR, ...\s0" +.IX Subsection "SO_ACCEPTCONN, SO_BROADCAST, SO_ERROR, ..." +Socket option name constants for \fBsetsockopt()\fR and \fBgetsockopt()\fR at the +\&\f(CW\*(C`SOL_SOCKET\*(C'\fR level. +.SS "\s-1IP_OPTIONS, IP_TOS, IP_TTL, ...\s0" +.IX Subsection "IP_OPTIONS, IP_TOS, IP_TTL, ..." +Socket option name constants for IPv4 socket options at the \f(CW\*(C`IPPROTO_IP\*(C'\fR +level. +.SS "\s-1IP_PMTUDISC_WANT, IP_PMTUDISC_DONT, ...\s0" +.IX Subsection "IP_PMTUDISC_WANT, IP_PMTUDISC_DONT, ..." +Socket option value contants for \f(CW\*(C`IP_MTU_DISCOVER\*(C'\fR socket option. +.SS "\s-1IPTOS_LOWDELAY, IPTOS_THROUGHPUT, IPTOS_RELIABILITY, ...\s0" +.IX Subsection "IPTOS_LOWDELAY, IPTOS_THROUGHPUT, IPTOS_RELIABILITY, ..." +Socket option value constants for \f(CW\*(C`IP_TOS\*(C'\fR socket option. +.SS "\s-1MSG_BCAST, MSG_OOB, MSG_TRUNC, ...\s0" +.IX Subsection "MSG_BCAST, MSG_OOB, MSG_TRUNC, ..." +Message flag constants for \fBsend()\fR and \fBrecv()\fR. +.SS "\s-1SHUT_RD, SHUT_RDWR, SHUT_WR\s0" +.IX Subsection "SHUT_RD, SHUT_RDWR, SHUT_WR" +Direction constants for \fBshutdown()\fR. +.SS "\s-1INADDR_ANY, INADDR_BROADCAST, INADDR_LOOPBACK, INADDR_NONE\s0" +.IX Subsection "INADDR_ANY, INADDR_BROADCAST, INADDR_LOOPBACK, INADDR_NONE" +Constants giving the special \f(CW\*(C`AF_INET\*(C'\fR addresses for wildcard, broadcast, +local loopback, and invalid addresses. +.PP +Normally equivalent to inet_aton('0.0.0.0'), inet_aton('255.255.255.255'), +inet_aton('localhost') and inet_aton('255.255.255.255') respectively. +.SS "\s-1IPPROTO_IP, IPPROTO_IPV6, IPPROTO_TCP, ...\s0" +.IX Subsection "IPPROTO_IP, IPPROTO_IPV6, IPPROTO_TCP, ..." +\&\s-1IP\s0 protocol constants to use as the third argument to \fBsocket()\fR, the level +argument to \fBgetsockopt()\fR or \fBsetsockopt()\fR, or the value of the \f(CW\*(C`SO_PROTOCOL\*(C'\fR +socket option. +.SS "\s-1TCP_CORK, TCP_KEEPALIVE, TCP_NODELAY, ...\s0" +.IX Subsection "TCP_CORK, TCP_KEEPALIVE, TCP_NODELAY, ..." +Socket option name constants for \s-1TCP\s0 socket options at the \f(CW\*(C`IPPROTO_TCP\*(C'\fR +level. +.SS "\s-1IN6ADDR_ANY, IN6ADDR_LOOPBACK\s0" +.IX Subsection "IN6ADDR_ANY, IN6ADDR_LOOPBACK" +Constants giving the special \f(CW\*(C`AF_INET6\*(C'\fR addresses for wildcard and local +loopback. +.PP +Normally equivalent to inet_pton(\s-1AF_INET6, \*(L"::\*(R"\s0) and +inet_pton(\s-1AF_INET6, \*(L"::1\*(R"\s0) respectively. +.SS "\s-1IPV6_ADD_MEMBERSHIP, IPV6_MTU, IPV6_V6ONLY, ...\s0" +.IX Subsection "IPV6_ADD_MEMBERSHIP, IPV6_MTU, IPV6_V6ONLY, ..." +Socket option name constants for IPv6 socket options at the \f(CW\*(C`IPPROTO_IPV6\*(C'\fR +level. +.SH "STRUCTURE MANIPULATORS" +.IX Header "STRUCTURE MANIPULATORS" +The following functions convert between lists of Perl values and packed binary +strings representing structures. +.ie n .SS "$family = sockaddr_family $sockaddr" +.el .SS "\f(CW$family\fP = sockaddr_family \f(CW$sockaddr\fP" +.IX Subsection "$family = sockaddr_family $sockaddr" +Takes a packed socket address (as returned by \fBpack_sockaddr_in()\fR, +\&\fBpack_sockaddr_un()\fR or the perl builtin functions \fBgetsockname()\fR and +\&\fBgetpeername()\fR). Returns the address family tag. This will be one of the +\&\f(CW\*(C`AF_*\*(C'\fR constants, such as \f(CW\*(C`AF_INET\*(C'\fR for a \f(CW\*(C`sockaddr_in\*(C'\fR addresses or +\&\f(CW\*(C`AF_UNIX\*(C'\fR for a \f(CW\*(C`sockaddr_un\*(C'\fR. It can be used to figure out what unpack to +use for a sockaddr of unknown type. +.ie n .SS "$sockaddr = pack_sockaddr_in $port, $ip_address" +.el .SS "\f(CW$sockaddr\fP = pack_sockaddr_in \f(CW$port\fP, \f(CW$ip_address\fP" +.IX Subsection "$sockaddr = pack_sockaddr_in $port, $ip_address" +Takes two arguments, a port number and an opaque string (as returned by +\&\fBinet_aton()\fR, or a v\-string). Returns the \f(CW\*(C`sockaddr_in\*(C'\fR structure with those +arguments packed in and \f(CW\*(C`AF_INET\*(C'\fR filled in. For Internet domain sockets, +this structure is normally what you need for the arguments in \fBbind()\fR, +\&\fBconnect()\fR, and \fBsend()\fR. +.PP +An undefined \f(CW$port\fR argument is taken as zero; an undefined \f(CW$ip_address\fR is +considered a fatal error. +.ie n .SS "($port, $ip_address) = unpack_sockaddr_in $sockaddr" +.el .SS "($port, \f(CW$ip_address\fP) = unpack_sockaddr_in \f(CW$sockaddr\fP" +.IX Subsection "($port, $ip_address) = unpack_sockaddr_in $sockaddr" +Takes a \f(CW\*(C`sockaddr_in\*(C'\fR structure (as returned by \fBpack_sockaddr_in()\fR, +\&\fBgetpeername()\fR or \fBrecv()\fR). Returns a list of two elements: the port and an +opaque string representing the \s-1IP\s0 address (you can use \fBinet_ntoa()\fR to convert +the address to the four-dotted numeric format). Will croak if the structure +does not represent an \f(CW\*(C`AF_INET\*(C'\fR address. +.PP +In scalar context will return just the \s-1IP\s0 address. +.ie n .SS "$sockaddr = sockaddr_in $port, $ip_address" +.el .SS "\f(CW$sockaddr\fP = sockaddr_in \f(CW$port\fP, \f(CW$ip_address\fP" +.IX Subsection "$sockaddr = sockaddr_in $port, $ip_address" +.ie n .SS "($port, $ip_address) = sockaddr_in $sockaddr" +.el .SS "($port, \f(CW$ip_address\fP) = sockaddr_in \f(CW$sockaddr\fP" +.IX Subsection "($port, $ip_address) = sockaddr_in $sockaddr" +A wrapper of \fBpack_sockaddr_in()\fR or \fBunpack_sockaddr_in()\fR. In list context, +unpacks its argument and returns a list consisting of the port and \s-1IP\s0 address. +In scalar context, packs its port and \s-1IP\s0 address arguments as a \f(CW\*(C`sockaddr_in\*(C'\fR +and returns it. +.PP +Provided largely for legacy compatibility; it is better to use +\&\fBpack_sockaddr_in()\fR or \fBunpack_sockaddr_in()\fR explicitly. +.ie n .SS "$sockaddr = pack_sockaddr_in6 $port, $ip6_address, [$scope_id, [$flowinfo]]" +.el .SS "\f(CW$sockaddr\fP = pack_sockaddr_in6 \f(CW$port\fP, \f(CW$ip6_address\fP, [$scope_id, [$flowinfo]]" +.IX Subsection "$sockaddr = pack_sockaddr_in6 $port, $ip6_address, [$scope_id, [$flowinfo]]" +Takes two to four arguments, a port number, an opaque string (as returned by +\&\fBinet_pton()\fR), optionally a scope \s-1ID\s0 number, and optionally a flow label +number. Returns the \f(CW\*(C`sockaddr_in6\*(C'\fR structure with those arguments packed in +and \f(CW\*(C`AF_INET6\*(C'\fR filled in. IPv6 equivalent of \fBpack_sockaddr_in()\fR. +.PP +An undefined \f(CW$port\fR argument is taken as zero; an undefined \f(CW$ip6_address\fR is +considered a fatal error. +.ie n .SS "($port, $ip6_address, $scope_id, $flowinfo) = unpack_sockaddr_in6 $sockaddr" +.el .SS "($port, \f(CW$ip6_address\fP, \f(CW$scope_id\fP, \f(CW$flowinfo\fP) = unpack_sockaddr_in6 \f(CW$sockaddr\fP" +.IX Subsection "($port, $ip6_address, $scope_id, $flowinfo) = unpack_sockaddr_in6 $sockaddr" +Takes a \f(CW\*(C`sockaddr_in6\*(C'\fR structure. Returns a list of four elements: the port +number, an opaque string representing the IPv6 address, the scope \s-1ID,\s0 and the +flow label. (You can use \fBinet_ntop()\fR to convert the address to the usual +string format). Will croak if the structure does not represent an \f(CW\*(C`AF_INET6\*(C'\fR +address. +.PP +In scalar context will return just the \s-1IP\s0 address. +.ie n .SS "$sockaddr = sockaddr_in6 $port, $ip6_address, [$scope_id, [$flowinfo]]" +.el .SS "\f(CW$sockaddr\fP = sockaddr_in6 \f(CW$port\fP, \f(CW$ip6_address\fP, [$scope_id, [$flowinfo]]" +.IX Subsection "$sockaddr = sockaddr_in6 $port, $ip6_address, [$scope_id, [$flowinfo]]" +.ie n .SS "($port, $ip6_address, $scope_id, $flowinfo) = sockaddr_in6 $sockaddr" +.el .SS "($port, \f(CW$ip6_address\fP, \f(CW$scope_id\fP, \f(CW$flowinfo\fP) = sockaddr_in6 \f(CW$sockaddr\fP" +.IX Subsection "($port, $ip6_address, $scope_id, $flowinfo) = sockaddr_in6 $sockaddr" +A wrapper of \fBpack_sockaddr_in6()\fR or \fBunpack_sockaddr_in6()\fR. In list context, +unpacks its argument according to \fBunpack_sockaddr_in6()\fR. In scalar context, +packs its arguments according to \fBpack_sockaddr_in6()\fR. +.PP +Provided largely for legacy compatibility; it is better to use +\&\fBpack_sockaddr_in6()\fR or \fBunpack_sockaddr_in6()\fR explicitly. +.ie n .SS "$sockaddr = pack_sockaddr_un $path" +.el .SS "\f(CW$sockaddr\fP = pack_sockaddr_un \f(CW$path\fP" +.IX Subsection "$sockaddr = pack_sockaddr_un $path" +Takes one argument, a pathname. Returns the \f(CW\*(C`sockaddr_un\*(C'\fR structure with that +path packed in with \f(CW\*(C`AF_UNIX\*(C'\fR filled in. For \f(CW\*(C`PF_UNIX\*(C'\fR sockets, this +structure is normally what you need for the arguments in \fBbind()\fR, \fBconnect()\fR, +and \fBsend()\fR. +.ie n .SS "($path) = unpack_sockaddr_un $sockaddr" +.el .SS "($path) = unpack_sockaddr_un \f(CW$sockaddr\fP" +.IX Subsection "($path) = unpack_sockaddr_un $sockaddr" +Takes a \f(CW\*(C`sockaddr_un\*(C'\fR structure (as returned by \fBpack_sockaddr_un()\fR, +\&\fBgetpeername()\fR or \fBrecv()\fR). Returns a list of one element: the pathname. Will +croak if the structure does not represent an \f(CW\*(C`AF_UNIX\*(C'\fR address. +.ie n .SS "$sockaddr = sockaddr_un $path" +.el .SS "\f(CW$sockaddr\fP = sockaddr_un \f(CW$path\fP" +.IX Subsection "$sockaddr = sockaddr_un $path" +.ie n .SS "($path) = sockaddr_un $sockaddr" +.el .SS "($path) = sockaddr_un \f(CW$sockaddr\fP" +.IX Subsection "($path) = sockaddr_un $sockaddr" +A wrapper of \fBpack_sockaddr_un()\fR or \fBunpack_sockaddr_un()\fR. In a list context, +unpacks its argument and returns a list consisting of the pathname. In a +scalar context, packs its pathname as a \f(CW\*(C`sockaddr_un\*(C'\fR and returns it. +.PP +Provided largely for legacy compatibility; it is better to use +\&\fBpack_sockaddr_un()\fR or \fBunpack_sockaddr_un()\fR explicitly. +.PP +These are only supported if your system has <\fIsys/un.h\fR>. +.ie n .SS "$ip_mreq = pack_ip_mreq $multiaddr, $interface" +.el .SS "\f(CW$ip_mreq\fP = pack_ip_mreq \f(CW$multiaddr\fP, \f(CW$interface\fP" +.IX Subsection "$ip_mreq = pack_ip_mreq $multiaddr, $interface" +Takes an IPv4 multicast address and optionally an interface address (or +\&\f(CW\*(C`INADDR_ANY\*(C'\fR). Returns the \f(CW\*(C`ip_mreq\*(C'\fR structure with those arguments packed +in. Suitable for use with the \f(CW\*(C`IP_ADD_MEMBERSHIP\*(C'\fR and \f(CW\*(C`IP_DROP_MEMBERSHIP\*(C'\fR +sockopts. +.ie n .SS "($multiaddr, $interface) = unpack_ip_mreq $ip_mreq" +.el .SS "($multiaddr, \f(CW$interface\fP) = unpack_ip_mreq \f(CW$ip_mreq\fP" +.IX Subsection "($multiaddr, $interface) = unpack_ip_mreq $ip_mreq" +Takes an \f(CW\*(C`ip_mreq\*(C'\fR structure. Returns a list of two elements; the IPv4 +multicast address and interface address. +.ie n .SS "$ip_mreq_source = pack_ip_mreq_source $multiaddr, $source, $interface" +.el .SS "\f(CW$ip_mreq_source\fP = pack_ip_mreq_source \f(CW$multiaddr\fP, \f(CW$source\fP, \f(CW$interface\fP" +.IX Subsection "$ip_mreq_source = pack_ip_mreq_source $multiaddr, $source, $interface" +Takes an IPv4 multicast address, source address, and optionally an interface +address (or \f(CW\*(C`INADDR_ANY\*(C'\fR). Returns the \f(CW\*(C`ip_mreq_source\*(C'\fR structure with those +arguments packed in. Suitable for use with the \f(CW\*(C`IP_ADD_SOURCE_MEMBERSHIP\*(C'\fR +and \f(CW\*(C`IP_DROP_SOURCE_MEMBERSHIP\*(C'\fR sockopts. +.ie n .SS "($multiaddr, $source, $interface) = unpack_ip_mreq_source $ip_mreq" +.el .SS "($multiaddr, \f(CW$source\fP, \f(CW$interface\fP) = unpack_ip_mreq_source \f(CW$ip_mreq\fP" +.IX Subsection "($multiaddr, $source, $interface) = unpack_ip_mreq_source $ip_mreq" +Takes an \f(CW\*(C`ip_mreq_source\*(C'\fR structure. Returns a list of three elements; the +IPv4 multicast address, source address and interface address. +.ie n .SS "$ipv6_mreq = pack_ipv6_mreq $multiaddr6, $ifindex" +.el .SS "\f(CW$ipv6_mreq\fP = pack_ipv6_mreq \f(CW$multiaddr6\fP, \f(CW$ifindex\fP" +.IX Subsection "$ipv6_mreq = pack_ipv6_mreq $multiaddr6, $ifindex" +Takes an IPv6 multicast address and an interface number. Returns the +\&\f(CW\*(C`ipv6_mreq\*(C'\fR structure with those arguments packed in. Suitable for use with +the \f(CW\*(C`IPV6_ADD_MEMBERSHIP\*(C'\fR and \f(CW\*(C`IPV6_DROP_MEMBERSHIP\*(C'\fR sockopts. +.ie n .SS "($multiaddr6, $ifindex) = unpack_ipv6_mreq $ipv6_mreq" +.el .SS "($multiaddr6, \f(CW$ifindex\fP) = unpack_ipv6_mreq \f(CW$ipv6_mreq\fP" +.IX Subsection "($multiaddr6, $ifindex) = unpack_ipv6_mreq $ipv6_mreq" +Takes an \f(CW\*(C`ipv6_mreq\*(C'\fR structure. Returns a list of two elements; the IPv6 +address and an interface number. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .SS "$ip_address = inet_aton $string" +.el .SS "\f(CW$ip_address\fP = inet_aton \f(CW$string\fP" +.IX Subsection "$ip_address = inet_aton $string" +Takes a string giving the name of a host, or a textual representation of an \s-1IP\s0 +address and translates that to an packed binary address structure suitable to +pass to \fBpack_sockaddr_in()\fR. If passed a hostname that cannot be resolved, +returns \f(CW\*(C`undef\*(C'\fR. For multi-homed hosts (hosts with more than one address), +the first address found is returned. +.PP +For portability do not assume that the result of \fBinet_aton()\fR is 32 bits wide, +in other words, that it would contain only the IPv4 address in network order. +.PP +This IPv4\-only function is provided largely for legacy reasons. Newly-written +code should use \fBgetaddrinfo()\fR or \fBinet_pton()\fR instead for IPv6 support. +.ie n .SS "$string = inet_ntoa $ip_address" +.el .SS "\f(CW$string\fP = inet_ntoa \f(CW$ip_address\fP" +.IX Subsection "$string = inet_ntoa $ip_address" +Takes a packed binary address structure such as returned by +\&\fBunpack_sockaddr_in()\fR (or a v\-string representing the four octets of the IPv4 +address in network order) and translates it into a string of the form +\&\f(CW\*(C`d.d.d.d\*(C'\fR where the \f(CW\*(C`d\*(C'\fRs are numbers less than 256 (the normal +human-readable four dotted number notation for Internet addresses). +.PP +This IPv4\-only function is provided largely for legacy reasons. Newly-written +code should use \fBgetnameinfo()\fR or \fBinet_ntop()\fR instead for IPv6 support. +.ie n .SS "$address = inet_pton $family, $string" +.el .SS "\f(CW$address\fP = inet_pton \f(CW$family\fP, \f(CW$string\fP" +.IX Subsection "$address = inet_pton $family, $string" +Takes an address family (such as \f(CW\*(C`AF_INET\*(C'\fR or \f(CW\*(C`AF_INET6\*(C'\fR) and a string +containing a textual representation of an address in that family and +translates that to an packed binary address structure. +.PP +See also \fBgetaddrinfo()\fR for a more powerful and flexible function to look up +socket addresses given hostnames or textual addresses. +.ie n .SS "$string = inet_ntop $family, $address" +.el .SS "\f(CW$string\fP = inet_ntop \f(CW$family\fP, \f(CW$address\fP" +.IX Subsection "$string = inet_ntop $family, $address" +Takes an address family and a packed binary address structure and translates +it into a human-readable textual representation of the address; typically in +\&\f(CW\*(C`d.d.d.d\*(C'\fR form for \f(CW\*(C`AF_INET\*(C'\fR or \f(CW\*(C`hhhh:hhhh::hhhh\*(C'\fR form for \f(CW\*(C`AF_INET6\*(C'\fR. +.PP +See also \fBgetnameinfo()\fR for a more powerful and flexible function to turn +socket addresses into human-readable textual representations. +.ie n .SS "($err, @result) = getaddrinfo $host, $service, [$hints]" +.el .SS "($err, \f(CW@result\fP) = getaddrinfo \f(CW$host\fP, \f(CW$service\fP, [$hints]" +.IX Subsection "($err, @result) = getaddrinfo $host, $service, [$hints]" +Given both a hostname and service name, this function attempts to resolve the +host name into a list of network addresses, and the service name into a +protocol and port number, and then returns a list of address structures +suitable to \fBconnect()\fR to it. +.PP +Given just a host name, this function attempts to resolve it to a list of +network addresses, and then returns a list of address structures giving these +addresses. +.PP +Given just a service name, this function attempts to resolve it to a protocol +and port number, and then returns a list of address structures that represent +it suitable to \fBbind()\fR to. This use should be combined with the \f(CW\*(C`AI_PASSIVE\*(C'\fR +flag; see below. +.PP +Given neither name, it generates an error. +.PP +If present, \f(CW$hints\fR should be a reference to a hash, where the following keys +are recognised: +.IP "flags => \s-1INT\s0" 4 +.IX Item "flags => INT" +A bitfield containing \f(CW\*(C`AI_*\*(C'\fR constants; see below. +.IP "family => \s-1INT\s0" 4 +.IX Item "family => INT" +Restrict to only generating addresses in this address family +.IP "socktype => \s-1INT\s0" 4 +.IX Item "socktype => INT" +Restrict to only generating addresses of this socket type +.IP "protocol => \s-1INT\s0" 4 +.IX Item "protocol => INT" +Restrict to only generating addresses for this protocol +.PP +The return value will be a list; the first value being an error indication, +followed by a list of address structures (if no error occurred). +.PP +The error value will be a dualvar; comparable to the \f(CW\*(C`EAI_*\*(C'\fR error constants, +or printable as a human-readable error message string. If no error occurred it +will be zero numerically and an empty string. +.PP +Each value in the results list will be a hash reference containing the following +fields: +.IP "family => \s-1INT\s0" 4 +.IX Item "family => INT" +The address family (e.g. \f(CW\*(C`AF_INET\*(C'\fR) +.IP "socktype => \s-1INT\s0" 4 +.IX Item "socktype => INT" +The socket type (e.g. \f(CW\*(C`SOCK_STREAM\*(C'\fR) +.IP "protocol => \s-1INT\s0" 4 +.IX Item "protocol => INT" +The protocol (e.g. \f(CW\*(C`IPPROTO_TCP\*(C'\fR) +.IP "addr => \s-1STRING\s0" 4 +.IX Item "addr => STRING" +The address in a packed string (such as would be returned by +\&\fBpack_sockaddr_in()\fR) +.IP "canonname => \s-1STRING\s0" 4 +.IX Item "canonname => STRING" +The canonical name for the host if the \f(CW\*(C`AI_CANONNAME\*(C'\fR flag was provided, or +\&\f(CW\*(C`undef\*(C'\fR otherwise. This field will only be present on the first returned +address. +.PP +The following flag constants are recognised in the \f(CW$hints\fR hash. Other flag +constants may exist as provided by the \s-1OS.\s0 +.IP "\s-1AI_PASSIVE\s0" 4 +.IX Item "AI_PASSIVE" +Indicates that this resolution is for a local \fBbind()\fR for a passive (i.e. +listening) socket, rather than an active (i.e. connecting) socket. +.IP "\s-1AI_CANONNAME\s0" 4 +.IX Item "AI_CANONNAME" +Indicates that the caller wishes the canonical hostname (\f(CW\*(C`canonname\*(C'\fR) field +of the result to be filled in. +.IP "\s-1AI_NUMERICHOST\s0" 4 +.IX Item "AI_NUMERICHOST" +Indicates that the caller will pass a numeric address, rather than a hostname, +and that \fBgetaddrinfo()\fR must not perform a resolve operation on this name. This +flag will prevent a possibly-slow network lookup operation, and instead return +an error if a hostname is passed. +.ie n .SS "($err, $hostname, $servicename) = getnameinfo $sockaddr, [$flags, [$xflags]]" +.el .SS "($err, \f(CW$hostname\fP, \f(CW$servicename\fP) = getnameinfo \f(CW$sockaddr\fP, [$flags, [$xflags]]" +.IX Subsection "($err, $hostname, $servicename) = getnameinfo $sockaddr, [$flags, [$xflags]]" +Given a packed socket address (such as from \fBgetsockname()\fR, \fBgetpeername()\fR, or +returned by \fBgetaddrinfo()\fR in a \f(CW\*(C`addr\*(C'\fR field), returns the hostname and +symbolic service name it represents. \f(CW$flags\fR may be a bitmask of \f(CW\*(C`NI_*\*(C'\fR +constants, or defaults to 0 if unspecified. +.PP +The return value will be a list; the first value being an error condition, +followed by the hostname and service name. +.PP +The error value will be a dualvar; comparable to the \f(CW\*(C`EAI_*\*(C'\fR error constants, +or printable as a human-readable error message string. The host and service +names will be plain strings. +.PP +The following flag constants are recognised as \f(CW$flags\fR. Other flag constants may +exist as provided by the \s-1OS.\s0 +.IP "\s-1NI_NUMERICHOST\s0" 4 +.IX Item "NI_NUMERICHOST" +Requests that a human-readable string representation of the numeric address be +returned directly, rather than performing a name resolve operation that may +convert it into a hostname. This will also avoid potentially-blocking network +\&\s-1IO.\s0 +.IP "\s-1NI_NUMERICSERV\s0" 4 +.IX Item "NI_NUMERICSERV" +Requests that the port number be returned directly as a number representation +rather than performing a name resolve operation that may convert it into a +service name. +.IP "\s-1NI_NAMEREQD\s0" 4 +.IX Item "NI_NAMEREQD" +If a name resolve operation fails to provide a name, then this flag will cause +\&\fBgetnameinfo()\fR to indicate an error, rather than returning the numeric +representation as a human-readable string. +.IP "\s-1NI_DGRAM\s0" 4 +.IX Item "NI_DGRAM" +Indicates that the socket address relates to a \f(CW\*(C`SOCK_DGRAM\*(C'\fR socket, for the +services whose name differs between \s-1TCP\s0 and \s-1UDP\s0 protocols. +.PP +The following constants may be supplied as \f(CW$xflags\fR. +.IP "NIx_NOHOST" 4 +.IX Item "NIx_NOHOST" +Indicates that the caller is not interested in the hostname of the result, so +it does not have to be converted. \f(CW\*(C`undef\*(C'\fR will be returned as the hostname. +.IP "NIx_NOSERV" 4 +.IX Item "NIx_NOSERV" +Indicates that the caller is not interested in the service name of the result, +so it does not have to be converted. \f(CW\*(C`undef\*(C'\fR will be returned as the service +name. +.SH "\fBgetaddrinfo()\fP / \fBgetnameinfo()\fP ERROR CONSTANTS" +.IX Header "getaddrinfo() / getnameinfo() ERROR CONSTANTS" +The following constants may be returned by \fBgetaddrinfo()\fR or \fBgetnameinfo()\fR. +Others may be provided by the \s-1OS.\s0 +.IP "\s-1EAI_AGAIN\s0" 4 +.IX Item "EAI_AGAIN" +A temporary failure occurred during name resolution. The operation may be +successful if it is retried later. +.IP "\s-1EAI_BADFLAGS\s0" 4 +.IX Item "EAI_BADFLAGS" +The value of the \f(CW\*(C`flags\*(C'\fR hint to \fBgetaddrinfo()\fR, or the \f(CW$flags\fR parameter to +\&\fBgetnameinfo()\fR contains unrecognised flags. +.IP "\s-1EAI_FAMILY\s0" 4 +.IX Item "EAI_FAMILY" +The \f(CW\*(C`family\*(C'\fR hint to \fBgetaddrinfo()\fR, or the family of the socket address +passed to \fBgetnameinfo()\fR is not supported. +.IP "\s-1EAI_NODATA\s0" 4 +.IX Item "EAI_NODATA" +The host name supplied to \fBgetaddrinfo()\fR did not provide any usable address +data. +.IP "\s-1EAI_NONAME\s0" 4 +.IX Item "EAI_NONAME" +The host name supplied to \fBgetaddrinfo()\fR does not exist, or the address +supplied to \fBgetnameinfo()\fR is not associated with a host name and the +\&\f(CW\*(C`NI_NAMEREQD\*(C'\fR flag was supplied. +.IP "\s-1EAI_SERVICE\s0" 4 +.IX Item "EAI_SERVICE" +The service name supplied to \fBgetaddrinfo()\fR is not available for the socket +type given in the \f(CW$hints\fR. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Lookup for \fBconnect()\fP" +.IX Subsection "Lookup for connect()" +The \fBgetaddrinfo()\fR function converts a hostname and a service name into a list +of structures, each containing a potential way to \fBconnect()\fR to the named +service on the named host. +.PP +.Vb 2 +\& use IO::Socket; +\& use Socket qw(SOCK_STREAM getaddrinfo); +\& +\& my %hints = (socktype => SOCK_STREAM); +\& my ($err, @res) = getaddrinfo("localhost", "echo", \e%hints); +\& die "Cannot getaddrinfo \- $err" if $err; +\& +\& my $sock; +\& +\& foreach my $ai (@res) { +\& my $candidate = IO::Socket\->new(); +\& +\& $candidate\->socket($ai\->{family}, $ai\->{socktype}, $ai\->{protocol}) +\& or next; +\& +\& $candidate\->connect($ai\->{addr}) +\& or next; +\& +\& $sock = $candidate; +\& last; +\& } +\& +\& die "Cannot connect to localhost:echo" unless $sock; +\& +\& $sock\->print("Hello, world!\en"); +\& print <$sock>; +.Ve +.PP +Because a list of potential candidates is returned, the \f(CW\*(C`while\*(C'\fR loop tries +each in turn until it finds one that succeeds both the \fBsocket()\fR and \fBconnect()\fR +calls. +.PP +This function performs the work of the legacy functions \fBgethostbyname()\fR, +\&\fBgetservbyname()\fR, \fBinet_aton()\fR and \fBpack_sockaddr_in()\fR. +.PP +In practice this logic is better performed by IO::Socket::IP. +.SS "Making a human-readable string out of an address" +.IX Subsection "Making a human-readable string out of an address" +The \fBgetnameinfo()\fR function converts a socket address, such as returned by +\&\fBgetsockname()\fR or \fBgetpeername()\fR, into a pair of human-readable strings +representing the address and service name. +.PP +.Vb 2 +\& use IO::Socket::IP; +\& use Socket qw(getnameinfo); +\& +\& my $server = IO::Socket::IP\->new(LocalPort => 12345, Listen => 1) or +\& die "Cannot listen \- $@"; +\& +\& my $socket = $server\->accept or die "accept: $!"; +\& +\& my ($err, $hostname, $servicename) = getnameinfo($socket\->peername); +\& die "Cannot getnameinfo \- $err" if $err; +\& +\& print "The peer is connected from $hostname\en"; +.Ve +.PP +Since in this example only the hostname was used, the redundant conversion of +the port number into a service name may be omitted by passing the +\&\f(CW\*(C`NIx_NOSERV\*(C'\fR flag. +.PP +.Vb 1 +\& use Socket qw(getnameinfo NIx_NOSERV); +\& +\& my ($err, $hostname) = getnameinfo($socket\->peername, 0, NIx_NOSERV); +.Ve +.PP +This function performs the work of the legacy functions \fBunpack_sockaddr_in()\fR, +\&\fBinet_ntoa()\fR, \fBgethostbyaddr()\fR and \fBgetservbyport()\fR. +.PP +In practice this logic is better performed by IO::Socket::IP. +.SS "Resolving hostnames into \s-1IP\s0 addresses" +.IX Subsection "Resolving hostnames into IP addresses" +To turn a hostname into a human-readable plain \s-1IP\s0 address use \fBgetaddrinfo()\fR +to turn the hostname into a list of socket structures, then \fBgetnameinfo()\fR on +each one to make it a readable \s-1IP\s0 address again. +.PP +.Vb 1 +\& use Socket qw(:addrinfo SOCK_RAW); +\& +\& my ($err, @res) = getaddrinfo($hostname, "", {socktype => SOCK_RAW}); +\& die "Cannot getaddrinfo \- $err" if $err; +\& +\& while( my $ai = shift @res ) { +\& my ($err, $ipaddr) = getnameinfo($ai\->{addr}, NI_NUMERICHOST, NIx_NOSERV); +\& die "Cannot getnameinfo \- $err" if $err; +\& +\& print "$ipaddr\en"; +\& } +.Ve +.PP +The \f(CW\*(C`socktype\*(C'\fR hint to \fBgetaddrinfo()\fR filters the results to only include one +socket type and protocol. Without this most OSes return three combinations, +for \f(CW\*(C`SOCK_STREAM\*(C'\fR, \f(CW\*(C`SOCK_DGRAM\*(C'\fR and \f(CW\*(C`SOCK_RAW\*(C'\fR, resulting in triplicate +output of addresses. The \f(CW\*(C`NI_NUMERICHOST\*(C'\fR flag to \fBgetnameinfo()\fR causes it to +return a string-formatted plain \s-1IP\s0 address, rather than reverse resolving it +back into a hostname. +.PP +This combination performs the work of the legacy functions \fBgethostbyname()\fR +and \fBinet_ntoa()\fR. +.SS "Accessing socket options" +.IX Subsection "Accessing socket options" +The many \f(CW\*(C`SO_*\*(C'\fR and other constants provide the socket option names for +\&\fBgetsockopt()\fR and \fBsetsockopt()\fR. +.PP +.Vb 2 +\& use IO::Socket::INET; +\& use Socket qw(SOL_SOCKET SO_RCVBUF IPPROTO_IP IP_TTL); +\& +\& my $socket = IO::Socket::INET\->new(LocalPort => 0, Proto => \*(Aqudp\*(Aq) +\& or die "Cannot create socket: $@"; +\& +\& $socket\->setsockopt(SOL_SOCKET, SO_RCVBUF, 64*1024) or +\& die "setsockopt: $!"; +\& +\& print "Receive buffer is ", $socket\->getsockopt(SOL_SOCKET, SO_RCVBUF), +\& " bytes\en"; +\& +\& print "IP TTL is ", $socket\->getsockopt(IPPROTO_IP, IP_TTL), "\en"; +.Ve +.PP +As a convenience, IO::Socket's \fBsetsockopt()\fR method will convert a number +into a packed byte buffer, and \fBgetsockopt()\fR will unpack a byte buffer of the +correct size back into a number. +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was originally maintained in Perl core by the Perl 5 Porters. +.PP +It was extracted to dual-life on \s-1CPAN\s0 at version 1.95 by +Paul Evans diff --git a/data/miniconda3/man/man3/Storable.3 b/data/miniconda3/man/man3/Storable.3 new file mode 100644 index 0000000000000000000000000000000000000000..c069bdba8704523aeda8c09c47ebbf585fd5f874 --- /dev/null +++ b/data/miniconda3/man/man3/Storable.3 @@ -0,0 +1,997 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Storable 3" +.TH Storable 3 "2020-12-18" "perl v5.32.1" "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" +Storable \- persistence for Perl data structures +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Storable; +\& store \e%table, \*(Aqfile\*(Aq; +\& $hashref = retrieve(\*(Aqfile\*(Aq); +\& +\& use Storable qw(nstore store_fd nstore_fd freeze thaw dclone); +\& +\& # Network order +\& nstore \e%table, \*(Aqfile\*(Aq; +\& $hashref = retrieve(\*(Aqfile\*(Aq); # There is NO nretrieve() +\& +\& # Storing to and retrieving from an already opened file +\& store_fd \e@array, \e*STDOUT; +\& nstore_fd \e%table, \e*STDOUT; +\& $aryref = fd_retrieve(\e*SOCKET); +\& $hashref = fd_retrieve(\e*SOCKET); +\& +\& # Serializing to memory +\& $serialized = freeze \e%table; +\& %table_clone = %{ thaw($serialized) }; +\& +\& # Deep (recursive) cloning +\& $cloneref = dclone($ref); +\& +\& # Advisory locking +\& use Storable qw(lock_store lock_nstore lock_retrieve) +\& lock_store \e%table, \*(Aqfile\*(Aq; +\& lock_nstore \e%table, \*(Aqfile\*(Aq; +\& $hashref = lock_retrieve(\*(Aqfile\*(Aq); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Storable package brings persistence to your Perl data structures +containing \s-1SCALAR, ARRAY, HASH\s0 or \s-1REF\s0 objects, i.e. anything that can be +conveniently stored to disk and retrieved at a later time. +.PP +It can be used in the regular procedural way by calling \f(CW\*(C`store\*(C'\fR with +a reference to the object to be stored, along with the file name where +the image should be written. +.PP +The routine returns \f(CW\*(C`undef\*(C'\fR for I/O problems or other internal error, +a true value otherwise. Serious errors are propagated as a \f(CW\*(C`die\*(C'\fR exception. +.PP +To retrieve data stored to disk, use \f(CW\*(C`retrieve\*(C'\fR with a file name. +The objects stored into that file are recreated into memory for you, +and a \fIreference\fR to the root object is returned. In case an I/O error +occurs while reading, \f(CW\*(C`undef\*(C'\fR is returned instead. Other serious +errors are propagated via \f(CW\*(C`die\*(C'\fR. +.PP +Since storage is performed recursively, you might want to stuff references +to objects that share a lot of common data into a single array or hash +table, and then store that object. That way, when you retrieve back the +whole thing, the objects will continue to share what they originally shared. +.PP +At the cost of a slight header overhead, you may store to an already +opened file descriptor using the \f(CW\*(C`store_fd\*(C'\fR routine, and retrieve +from a file via \f(CW\*(C`fd_retrieve\*(C'\fR. Those names aren't imported by default, +so you will have to do that explicitly if you need those routines. +The file descriptor you supply must be already opened, for read +if you're going to retrieve and for write if you wish to store. +.PP +.Vb 2 +\& store_fd(\e%table, *STDOUT) || die "can\*(Aqt store to stdout\en"; +\& $hashref = fd_retrieve(*STDIN); +.Ve +.PP +You can also store data in network order to allow easy sharing across +multiple platforms, or when storing on a socket known to be remotely +connected. The routines to call have an initial \f(CW\*(C`n\*(C'\fR prefix for \fInetwork\fR, +as in \f(CW\*(C`nstore\*(C'\fR and \f(CW\*(C`nstore_fd\*(C'\fR. At retrieval time, your data will be +correctly restored so you don't have to know whether you're restoring +from native or network ordered data. Double values are stored stringified +to ensure portability as well, at the slight risk of loosing some precision +in the last decimals. +.PP +When using \f(CW\*(C`fd_retrieve\*(C'\fR, objects are retrieved in sequence, one +object (i.e. one recursive tree) per associated \f(CW\*(C`store_fd\*(C'\fR. +.PP +If you're more from the object-oriented camp, you can inherit from +Storable and directly store your objects by invoking \f(CW\*(C`store\*(C'\fR as +a method. The fact that the root of the to-be-stored tree is a +blessed reference (i.e. an object) is special-cased so that the +retrieve does not provide a reference to that object but rather the +blessed object reference itself. (Otherwise, you'd get a reference +to that blessed object). +.SH "MEMORY STORE" +.IX Header "MEMORY STORE" +The Storable engine can also store data into a Perl scalar instead, to +later retrieve them. This is mainly used to freeze a complex structure in +some safe compact memory place (where it can possibly be sent to another +process via some \s-1IPC,\s0 since freezing the structure also serializes it in +effect). Later on, and maybe somewhere else, you can thaw the Perl scalar +out and recreate the original complex structure in memory. +.PP +Surprisingly, the routines to be called are named \f(CW\*(C`freeze\*(C'\fR and \f(CW\*(C`thaw\*(C'\fR. +If you wish to send out the frozen scalar to another machine, use +\&\f(CW\*(C`nfreeze\*(C'\fR instead to get a portable image. +.PP +Note that freezing an object structure and immediately thawing it +actually achieves a deep cloning of that structure: +.PP +.Vb 1 +\& dclone(.) = thaw(freeze(.)) +.Ve +.PP +Storable provides you with a \f(CW\*(C`dclone\*(C'\fR interface which does not create +that intermediary scalar but instead freezes the structure in some +internal memory space and then immediately thaws it out. +.SH "ADVISORY LOCKING" +.IX Header "ADVISORY LOCKING" +The \f(CW\*(C`lock_store\*(C'\fR and \f(CW\*(C`lock_nstore\*(C'\fR routine are equivalent to +\&\f(CW\*(C`store\*(C'\fR and \f(CW\*(C`nstore\*(C'\fR, except that they get an exclusive lock on +the file before writing. Likewise, \f(CW\*(C`lock_retrieve\*(C'\fR does the same +as \f(CW\*(C`retrieve\*(C'\fR, but also gets a shared lock on the file before reading. +.PP +As with any advisory locking scheme, the protection only works if you +systematically use \f(CW\*(C`lock_store\*(C'\fR and \f(CW\*(C`lock_retrieve\*(C'\fR. If one side of +your application uses \f(CW\*(C`store\*(C'\fR whilst the other uses \f(CW\*(C`lock_retrieve\*(C'\fR, +you will get no protection at all. +.PP +The internal advisory locking is implemented using Perl's \fBflock()\fR +routine. If your system does not support any form of \fBflock()\fR, or if +you share your files across \s-1NFS,\s0 you might wish to use other forms +of locking by using modules such as LockFile::Simple which lock a +file using a filesystem entry, instead of locking the file descriptor. +.SH "SPEED" +.IX Header "SPEED" +The heart of Storable is written in C for decent speed. Extra low-level +optimizations have been made when manipulating perl internals, to +sacrifice encapsulation for the benefit of greater speed. +.SH "CANONICAL REPRESENTATION" +.IX Header "CANONICAL REPRESENTATION" +Normally, Storable stores elements of hashes in the order they are +stored internally by Perl, i.e. pseudo-randomly. If you set +\&\f(CW$Storable::canonical\fR to some \f(CW\*(C`TRUE\*(C'\fR value, Storable will store +hashes with the elements sorted by their key. This allows you to +compare data structures by comparing their frozen representations (or +even the compressed frozen representations), which can be useful for +creating lookup tables for complicated queries. +.PP +Canonical order does not imply network order; those are two orthogonal +settings. +.SH "CODE REFERENCES" +.IX Header "CODE REFERENCES" +Since Storable version 2.05, \s-1CODE\s0 references may be serialized with +the help of B::Deparse. To enable this feature, set +\&\f(CW$Storable::Deparse\fR to a true value. To enable deserialization, +\&\f(CW$Storable::Eval\fR should be set to a true value. Be aware that +deserialization is done through \f(CW\*(C`eval\*(C'\fR, which is dangerous if the +Storable file contains malicious data. You can set \f(CW$Storable::Eval\fR +to a subroutine reference which would be used instead of \f(CW\*(C`eval\*(C'\fR. See +below for an example using a Safe compartment for deserialization +of \s-1CODE\s0 references. +.PP +If \f(CW$Storable::Deparse\fR and/or \f(CW$Storable::Eval\fR are set to false +values, then the value of \f(CW$Storable::forgive_me\fR (see below) is +respected while serializing and deserializing. +.SH "FORWARD COMPATIBILITY" +.IX Header "FORWARD COMPATIBILITY" +This release of Storable can be used on a newer version of Perl to +serialize data which is not supported by earlier Perls. By default, +Storable will attempt to do the right thing, by \f(CW\*(C`croak()\*(C'\fRing if it +encounters data that it cannot deserialize. However, the defaults +can be changed as follows: +.IP "utf8 data" 4 +.IX Item "utf8 data" +Perl 5.6 added support for Unicode characters with code points > 255, +and Perl 5.8 has full support for Unicode characters in hash keys. +Perl internally encodes strings with these characters using utf8, and +Storable serializes them as utf8. By default, if an older version of +Perl encounters a utf8 value it cannot represent, it will \f(CW\*(C`croak()\*(C'\fR. +To change this behaviour so that Storable deserializes utf8 encoded +values as the string of bytes (effectively dropping the \fIis_utf8\fR flag) +set \f(CW$Storable::drop_utf8\fR to some \f(CW\*(C`TRUE\*(C'\fR value. This is a form of +data loss, because with \f(CW$drop_utf8\fR true, it becomes impossible to tell +whether the original data was the Unicode string, or a series of bytes +that happen to be valid utf8. +.IP "restricted hashes" 4 +.IX Item "restricted hashes" +Perl 5.8 adds support for restricted hashes, which have keys +restricted to a given set, and can have values locked to be read only. +By default, when Storable encounters a restricted hash on a perl +that doesn't support them, it will deserialize it as a normal hash, +silently discarding any placeholder keys and leaving the keys and +all values unlocked. To make Storable \f(CW\*(C`croak()\*(C'\fR instead, set +\&\f(CW$Storable::downgrade_restricted\fR to a \f(CW\*(C`FALSE\*(C'\fR value. To restore +the default set it back to some \f(CW\*(C`TRUE\*(C'\fR value. +.Sp +The cperl \s-1PERL_PERTURB_KEYS_TOP\s0 hash strategy has a known problem with +restricted hashes. +.IP "huge objects" 4 +.IX Item "huge objects" +On 64bit systems some data structures may exceed the 2G (i.e. I32_MAX) +limit. On 32bit systems also strings between I32 and U32 (2G\-4G). +Since Storable 3.00 (not in perl5 core) we are able to store and +retrieve these objects, even if perl5 itself is not able to handle +them. These are strings longer then 4G, arrays with more then 2G +elements and hashes with more then 2G elements. cperl forbids hashes +with more than 2G elements, but this fail in cperl then. perl5 itself +at least until 5.26 allows it, but cannot iterate over them. +Note that creating those objects might cause out of memory +exceptions by the operating system before perl has a chance to abort. +.IP "files from future versions of Storable" 4 +.IX Item "files from future versions of Storable" +Earlier versions of Storable would immediately croak if they encountered +a file with a higher internal version number than the reading Storable +knew about. Internal version numbers are increased each time new data +types (such as restricted hashes) are added to the vocabulary of the file +format. This meant that a newer Storable module had no way of writing a +file readable by an older Storable, even if the writer didn't store newer +data types. +.Sp +This version of Storable will defer croaking until it encounters a data +type in the file that it does not recognize. This means that it will +continue to read files generated by newer Storable modules which are careful +in what they write out, making it easier to upgrade Storable modules in a +mixed environment. +.Sp +The old behaviour of immediate croaking can be re-instated by setting +\&\f(CW$Storable::accept_future_minor\fR to some \f(CW\*(C`FALSE\*(C'\fR value. +.PP +All these variables have no effect on a newer Perl which supports the +relevant feature. +.SH "ERROR REPORTING" +.IX Header "ERROR REPORTING" +Storable uses the \*(L"exception\*(R" paradigm, in that it does not try to +workaround failures: if something bad happens, an exception is +generated from the caller's perspective (see Carp and \f(CW\*(C`croak()\*(C'\fR). +Use eval {} to trap those exceptions. +.PP +When Storable croaks, it tries to report the error via the \f(CW\*(C`logcroak()\*(C'\fR +routine from the \f(CW\*(C`Log::Agent\*(C'\fR package, if it is available. +.PP +Normal errors are reported by having \fBstore()\fR or \fBretrieve()\fR return \f(CW\*(C`undef\*(C'\fR. +Such errors are usually I/O errors (or truncated stream errors at retrieval). +.PP +When Storable throws the \*(L"Max. recursion depth with nested structures +exceeded\*(R" error we are already out of stack space. Unfortunately on +some earlier perl versions cleaning up a recursive data structure +recurses into the free calls, which will lead to stack overflows in +the cleanup. This data structure is not properly cleaned up then, it +will only be destroyed during global destruction. +.SH "WIZARDS ONLY" +.IX Header "WIZARDS ONLY" +.SS "Hooks" +.IX Subsection "Hooks" +Any class may define hooks that will be called during the serialization +and deserialization process on objects that are instances of that class. +Those hooks can redefine the way serialization is performed (and therefore, +how the symmetrical deserialization should be conducted). +.PP +Since we said earlier: +.PP +.Vb 1 +\& dclone(.) = thaw(freeze(.)) +.Ve +.PP +everything we say about hooks should also hold for deep cloning. However, +hooks get to know whether the operation is a mere serialization, or a cloning. +.PP +Therefore, when serializing hooks are involved, +.PP +.Vb 1 +\& dclone(.) <> thaw(freeze(.)) +.Ve +.PP +Well, you could keep them in sync, but there's no guarantee it will always +hold on classes somebody else wrote. Besides, there is little to gain in +doing so: a serializing hook could keep only one attribute of an object, +which is probably not what should happen during a deep cloning of that +same object. +.PP +Here is the hooking interface: +.ie n .IP """STORABLE_freeze"" \fIobj\fR, \fIcloning\fR" 4 +.el .IP "\f(CWSTORABLE_freeze\fR \fIobj\fR, \fIcloning\fR" 4 +.IX Item "STORABLE_freeze obj, cloning" +The serializing hook, called on the object during serialization. It can be +inherited, or defined in the class itself, like any other method. +.Sp +Arguments: \fIobj\fR is the object to serialize, \fIcloning\fR is a flag indicating +whether we're in a \fBdclone()\fR or a regular serialization via \fBstore()\fR or \fBfreeze()\fR. +.Sp +Returned value: A \s-1LIST\s0 \f(CW\*(C`($serialized, $ref1, $ref2, ...)\*(C'\fR where \f(CW$serialized\fR +is the serialized form to be used, and the optional \f(CW$ref1\fR, \f(CW$ref2\fR, etc... are +extra references that you wish to let the Storable engine serialize. +.Sp +At deserialization time, you will be given back the same \s-1LIST,\s0 but all the +extra references will be pointing into the deserialized structure. +.Sp +The \fBfirst time\fR the hook is hit in a serialization flow, you may have it +return an empty list. That will signal the Storable engine to further +discard that hook for this class and to therefore revert to the default +serialization of the underlying Perl data. The hook will again be normally +processed in the next serialization. +.Sp +Unless you know better, serializing hook should always say: +.Sp +.Vb 5 +\& sub STORABLE_freeze { +\& my ($self, $cloning) = @_; +\& return if $cloning; # Regular default serialization +\& .... +\& } +.Ve +.Sp +in order to keep reasonable \fBdclone()\fR semantics. +.ie n .IP """STORABLE_thaw"" \fIobj\fR, \fIcloning\fR, \fIserialized\fR, ..." 4 +.el .IP "\f(CWSTORABLE_thaw\fR \fIobj\fR, \fIcloning\fR, \fIserialized\fR, ..." 4 +.IX Item "STORABLE_thaw obj, cloning, serialized, ..." +The deserializing hook called on the object during deserialization. +But wait: if we're deserializing, there's no object yet... right? +.Sp +Wrong: the Storable engine creates an empty one for you. If you know Eiffel, +you can view \f(CW\*(C`STORABLE_thaw\*(C'\fR as an alternate creation routine. +.Sp +This means the hook can be inherited like any other method, and that +\&\fIobj\fR is your blessed reference for this particular instance. +.Sp +The other arguments should look familiar if you know \f(CW\*(C`STORABLE_freeze\*(C'\fR: +\&\fIcloning\fR is true when we're part of a deep clone operation, \fIserialized\fR +is the serialized string you returned to the engine in \f(CW\*(C`STORABLE_freeze\*(C'\fR, +and there may be an optional list of references, in the same order you gave +them at serialization time, pointing to the deserialized objects (which +have been processed courtesy of the Storable engine). +.Sp +When the Storable engine does not find any \f(CW\*(C`STORABLE_thaw\*(C'\fR hook routine, +it tries to load the class by requiring the package dynamically (using +the blessed package name), and then re-attempts the lookup. If at that +time the hook cannot be located, the engine croaks. Note that this mechanism +will fail if you define several classes in the same file, but perlmod +warned you. +.Sp +It is up to you to use this information to populate \fIobj\fR the way you want. +.Sp +Returned value: none. +.ie n .IP """STORABLE_attach"" \fIclass\fR, \fIcloning\fR, \fIserialized\fR" 4 +.el .IP "\f(CWSTORABLE_attach\fR \fIclass\fR, \fIcloning\fR, \fIserialized\fR" 4 +.IX Item "STORABLE_attach class, cloning, serialized" +While \f(CW\*(C`STORABLE_freeze\*(C'\fR and \f(CW\*(C`STORABLE_thaw\*(C'\fR are useful for classes where +each instance is independent, this mechanism has difficulty (or is +incompatible) with objects that exist as common process-level or +system-level resources, such as singleton objects, database pools, caches +or memoized objects. +.Sp +The alternative \f(CW\*(C`STORABLE_attach\*(C'\fR method provides a solution for these +shared objects. Instead of \f(CW\*(C`STORABLE_freeze\*(C'\fR \-\-> \f(CW\*(C`STORABLE_thaw\*(C'\fR, +you implement \f(CW\*(C`STORABLE_freeze\*(C'\fR \-\-> \f(CW\*(C`STORABLE_attach\*(C'\fR instead. +.Sp +Arguments: \fIclass\fR is the class we are attaching to, \fIcloning\fR is a flag +indicating whether we're in a \fBdclone()\fR or a regular de-serialization via +\&\fBthaw()\fR, and \fIserialized\fR is the stored string for the resource object. +.Sp +Because these resource objects are considered to be owned by the entire +process/system, and not the \*(L"property\*(R" of whatever is being serialized, +no references underneath the object should be included in the serialized +string. Thus, in any class that implements \f(CW\*(C`STORABLE_attach\*(C'\fR, the +\&\f(CW\*(C`STORABLE_freeze\*(C'\fR method cannot return any references, and \f(CW\*(C`Storable\*(C'\fR +will throw an error if \f(CW\*(C`STORABLE_freeze\*(C'\fR tries to return references. +.Sp +All information required to \*(L"attach\*(R" back to the shared resource object +\&\fBmust\fR be contained \fBonly\fR in the \f(CW\*(C`STORABLE_freeze\*(C'\fR return string. +Otherwise, \f(CW\*(C`STORABLE_freeze\*(C'\fR behaves as normal for \f(CW\*(C`STORABLE_attach\*(C'\fR +classes. +.Sp +Because \f(CW\*(C`STORABLE_attach\*(C'\fR is passed the class (rather than an object), +it also returns the object directly, rather than modifying the passed +object. +.Sp +Returned value: object of type \f(CW\*(C`class\*(C'\fR +.SS "Predicates" +.IX Subsection "Predicates" +Predicates are not exportable. They must be called by explicitly prefixing +them with the Storable package name. +.ie n .IP """Storable::last_op_in_netorder""" 4 +.el .IP "\f(CWStorable::last_op_in_netorder\fR" 4 +.IX Item "Storable::last_op_in_netorder" +The \f(CW\*(C`Storable::last_op_in_netorder()\*(C'\fR predicate will tell you whether +network order was used in the last store or retrieve operation. If you +don't know how to use this, just forget about it. +.ie n .IP """Storable::is_storing""" 4 +.el .IP "\f(CWStorable::is_storing\fR" 4 +.IX Item "Storable::is_storing" +Returns true if within a store operation (via STORABLE_freeze hook). +.ie n .IP """Storable::is_retrieving""" 4 +.el .IP "\f(CWStorable::is_retrieving\fR" 4 +.IX Item "Storable::is_retrieving" +Returns true if within a retrieve operation (via STORABLE_thaw hook). +.SS "Recursion" +.IX Subsection "Recursion" +With hooks comes the ability to recurse back to the Storable engine. +Indeed, hooks are regular Perl code, and Storable is convenient when +it comes to serializing and deserializing things, so why not use it +to handle the serialization string? +.PP +There are a few things you need to know, however: +.IP "\(bu" 4 +From Storable 3.05 to 3.13 we probed for the stack recursion limit for references, +arrays and hashes to a maximal depth of ~1200\-35000, otherwise we might +fall into a stack-overflow. On \s-1JSON::XS\s0 this limit is 512 btw. With +references not immediately referencing each other there's no such +limit yet, so you might fall into such a stack-overflow segfault. +.Sp +This probing and the checks we performed have some limitations: +.RS 4 +.IP "\(bu" 4 +the stack size at build time might be different at run time, eg. the +stack size may have been modified with \fBulimit\fR\|(1). If it's larger at +run time Storable may fail the \fBfreeze()\fR or \fBthaw()\fR unnecessarily. If +it's larger at build time Storable may segmentation fault when +processing a deep structure at run time. +.IP "\(bu" 4 +the stack size might be different in a thread. +.IP "\(bu" 4 +array and hash recursion limits are checked separately against the +same recursion depth, a frozen structure with a large sequence of +nested arrays within many nested hashes may exhaust the processor +stack without triggering Storable's recursion protection. +.RE +.RS 4 +.Sp +So these now have simple defaults rather than probing at build-time. +.Sp +You can control the maximum array and hash recursion depths by +modifying \f(CW$Storable::recursion_limit\fR and +\&\f(CW$Storable::recursion_limit_hash\fR respectively. Either can be set to +\&\f(CW\*(C`\-1\*(C'\fR to prevent any depth checks, though this isn't recommended. +.Sp +If you want to test what the limits are, the \fIstacksize\fR tool is +included in the \f(CW\*(C`Storable\*(C'\fR distribution. +.RE +.IP "\(bu" 4 +You can create endless loops if the things you serialize via \fBfreeze()\fR +(for instance) point back to the object we're trying to serialize in +the hook. +.IP "\(bu" 4 +Shared references among objects will not stay shared: if we're serializing +the list of object [A, C] where both object A and C refer to the \s-1SAME\s0 object +B, and if there is a serializing hook in A that says freeze(B), then when +deserializing, we'll get [A', C'] where A' refers to B', but C' refers to D, +a deep clone of B'. The topology was not preserved. +.IP "\(bu" 4 +The maximal stack recursion limit for your system is returned by +\&\f(CW\*(C`stack_depth()\*(C'\fR and \f(CW\*(C`stack_depth_hash()\*(C'\fR. The hash limit is usually +half the size of the array and ref limit, as the Perl hash \s-1API\s0 is not optimal. +.PP +That's why \f(CW\*(C`STORABLE_freeze\*(C'\fR lets you provide a list of references +to serialize. The engine guarantees that those will be serialized in the +same context as the other objects, and therefore that shared objects will +stay shared. +.PP +In the above [A, C] example, the \f(CW\*(C`STORABLE_freeze\*(C'\fR hook could return: +.PP +.Vb 1 +\& ("something", $self\->{B}) +.Ve +.PP +and the B part would be serialized by the engine. In \f(CW\*(C`STORABLE_thaw\*(C'\fR, you +would get back the reference to the B' object, deserialized for you. +.PP +Therefore, recursion should normally be avoided, but is nonetheless supported. +.SS "Deep Cloning" +.IX Subsection "Deep Cloning" +There is a Clone module available on \s-1CPAN\s0 which implements deep cloning +natively, i.e. without freezing to memory and thawing the result. It is +aimed to replace Storable's \fBdclone()\fR some day. However, it does not currently +support Storable hooks to redefine the way deep cloning is performed. +.SH "Storable magic" +.IX Header "Storable magic" +Yes, there's a lot of that :\-) But more precisely, in \s-1UNIX\s0 systems +there's a utility called \f(CW\*(C`file\*(C'\fR, which recognizes data files based on +their contents (usually their first few bytes). For this to work, +a certain file called \fImagic\fR needs to taught about the \fIsignature\fR +of the data. Where that configuration file lives depends on the \s-1UNIX\s0 +flavour; often it's something like \fI/usr/share/misc/magic\fR or +\&\fI/etc/magic\fR. Your system administrator needs to do the updating of +the \fImagic\fR file. The necessary signature information is output to +\&\s-1STDOUT\s0 by invoking \fBStorable::show_file_magic()\fR. Note that the \s-1GNU\s0 +implementation of the \f(CW\*(C`file\*(C'\fR utility, version 3.38 or later, +is expected to contain support for recognising Storable files +out-of-the-box, in addition to other kinds of Perl files. +.PP +You can also use the following functions to extract the file header +information from Storable images: +.ie n .IP "$info = Storable::file_magic( $filename )" 4 +.el .IP "\f(CW$info\fR = Storable::file_magic( \f(CW$filename\fR )" 4 +.IX Item "$info = Storable::file_magic( $filename )" +If the given file is a Storable image return a hash describing it. If +the file is readable, but not a Storable image return \f(CW\*(C`undef\*(C'\fR. If +the file does not exist or is unreadable then croak. +.Sp +The hash returned has the following elements: +.RS 4 +.ie n .IP """version""" 4 +.el .IP "\f(CWversion\fR" 4 +.IX Item "version" +This returns the file format version. It is a string like \*(L"2.7\*(R". +.Sp +Note that this version number is not the same as the version number of +the Storable module itself. For instance Storable v0.7 create files +in format v2.0 and Storable v2.15 create files in format v2.7. The +file format version number only increment when additional features +that would confuse older versions of the module are added. +.Sp +Files older than v2.0 will have the one of the version numbers \*(L"\-1\*(R", +\&\*(L"0\*(R" or \*(L"1\*(R". No minor number was used at that time. +.ie n .IP """version_nv""" 4 +.el .IP "\f(CWversion_nv\fR" 4 +.IX Item "version_nv" +This returns the file format version as number. It is a string like +\&\*(L"2.007\*(R". This value is suitable for numeric comparisons. +.Sp +The constant function \f(CW\*(C`Storable::BIN_VERSION_NV\*(C'\fR returns a comparable +number that represents the highest file version number that this +version of Storable fully supports (but see discussion of +\&\f(CW$Storable::accept_future_minor\fR above). The constant +\&\f(CW\*(C`Storable::BIN_WRITE_VERSION_NV\*(C'\fR function returns what file version +is written and might be less than \f(CW\*(C`Storable::BIN_VERSION_NV\*(C'\fR in some +configurations. +.ie n .IP """major"", ""minor""" 4 +.el .IP "\f(CWmajor\fR, \f(CWminor\fR" 4 +.IX Item "major, minor" +This also returns the file format version. If the version is \*(L"2.7\*(R" +then major would be 2 and minor would be 7. The minor element is +missing for when major is less than 2. +.ie n .IP """hdrsize""" 4 +.el .IP "\f(CWhdrsize\fR" 4 +.IX Item "hdrsize" +The is the number of bytes that the Storable header occupies. +.ie n .IP """netorder""" 4 +.el .IP "\f(CWnetorder\fR" 4 +.IX Item "netorder" +This is \s-1TRUE\s0 if the image store data in network order. This means +that it was created with \fBnstore()\fR or similar. +.ie n .IP """byteorder""" 4 +.el .IP "\f(CWbyteorder\fR" 4 +.IX Item "byteorder" +This is only present when \f(CW\*(C`netorder\*(C'\fR is \s-1FALSE.\s0 It is the +\&\f(CW$Config\fR{byteorder} string of the perl that created this image. It is +a string like \*(L"1234\*(R" (32 bit little endian) or \*(L"87654321\*(R" (64 bit big +endian). This must match the current perl for the image to be +readable by Storable. +.ie n .IP """intsize"", ""longsize"", ""ptrsize"", ""nvsize""" 4 +.el .IP "\f(CWintsize\fR, \f(CWlongsize\fR, \f(CWptrsize\fR, \f(CWnvsize\fR" 4 +.IX Item "intsize, longsize, ptrsize, nvsize" +These are only present when \f(CW\*(C`netorder\*(C'\fR is \s-1FALSE.\s0 These are the sizes of +various C datatypes of the perl that created this image. These must +match the current perl for the image to be readable by Storable. +.Sp +The \f(CW\*(C`nvsize\*(C'\fR element is only present for file format v2.2 and +higher. +.ie n .IP """file""" 4 +.el .IP "\f(CWfile\fR" 4 +.IX Item "file" +The name of the file. +.RE +.RS 4 +.RE +.ie n .IP "$info = Storable::read_magic( $buffer )" 4 +.el .IP "\f(CW$info\fR = Storable::read_magic( \f(CW$buffer\fR )" 4 +.IX Item "$info = Storable::read_magic( $buffer )" +.PD 0 +.ie n .IP "$info = Storable::read_magic( $buffer, $must_be_file )" 4 +.el .IP "\f(CW$info\fR = Storable::read_magic( \f(CW$buffer\fR, \f(CW$must_be_file\fR )" 4 +.IX Item "$info = Storable::read_magic( $buffer, $must_be_file )" +.PD +The \f(CW$buffer\fR should be a Storable image or the first few bytes of it. +If \f(CW$buffer\fR starts with a Storable header, then a hash describing the +image is returned, otherwise \f(CW\*(C`undef\*(C'\fR is returned. +.Sp +The hash has the same structure as the one returned by +\&\fBStorable::file_magic()\fR. The \f(CW\*(C`file\*(C'\fR element is true if the image is a +file image. +.Sp +If the \f(CW$must_be_file\fR argument is provided and is \s-1TRUE,\s0 then return +\&\f(CW\*(C`undef\*(C'\fR unless the image looks like it belongs to a file dump. +.Sp +The maximum size of a Storable header is currently 21 bytes. If the +provided \f(CW$buffer\fR is only the first part of a Storable image it should +at least be this long to ensure that \fBread_magic()\fR will recognize it as +such. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Here are some code samples showing a possible usage of Storable: +.PP +.Vb 1 +\& use Storable qw(store retrieve freeze thaw dclone); +\& +\& %color = (\*(AqBlue\*(Aq => 0.1, \*(AqRed\*(Aq => 0.8, \*(AqBlack\*(Aq => 0, \*(AqWhite\*(Aq => 1); +\& +\& store(\e%color, \*(Aqmycolors\*(Aq) or die "Can\*(Aqt store %a in mycolors!\en"; +\& +\& $colref = retrieve(\*(Aqmycolors\*(Aq); +\& die "Unable to retrieve from mycolors!\en" unless defined $colref; +\& printf "Blue is still %lf\en", $colref\->{\*(AqBlue\*(Aq}; +\& +\& $colref2 = dclone(\e%color); +\& +\& $str = freeze(\e%color); +\& printf "Serialization of %%color is %d bytes long.\en", length($str); +\& $colref3 = thaw($str); +.Ve +.PP +which prints (on my machine): +.PP +.Vb 2 +\& Blue is still 0.100000 +\& Serialization of %color is 102 bytes long. +.Ve +.PP +Serialization of \s-1CODE\s0 references and deserialization in a safe +compartment: +.PP +.Vb 11 +\& use Storable qw(freeze thaw); +\& use Safe; +\& use strict; +\& my $safe = new Safe; +\& # because of opcodes used in "use strict": +\& $safe\->permit(qw(:default require)); +\& local $Storable::Deparse = 1; +\& local $Storable::Eval = sub { $safe\->reval($_[0]) }; +\& my $serialized = freeze(sub { 42 }); +\& my $code = thaw($serialized); +\& $code\->() == 42; +.Ve +.SH "SECURITY WARNING" +.IX Header "SECURITY WARNING" +\&\fBDo not accept Storable documents from untrusted sources!\fR +.PP +Some features of Storable can lead to security vulnerabilities if you +accept Storable documents from untrusted sources with the default +flags. Most obviously, the optional (off by default) \s-1CODE\s0 reference +serialization feature allows transfer of code to the deserializing +process. Furthermore, any serialized object will cause Storable to +helpfully load the module corresponding to the class of the object in +the deserializing module. For manipulated module names, this can load +almost arbitrary code. Finally, the deserialized object's destructors +will be invoked when the objects get destroyed in the deserializing +process. Maliciously crafted Storable documents may put such objects +in the value of a hash key that is overridden by another key/value +pair in the same hash, thus causing immediate destructor execution. +.PP +To disable blessing objects while thawing/retrieving remove the flag +\&\f(CW\*(C`BLESS_OK\*(C'\fR = 2 from \f(CW$Storable::flags\fR or set the 2nd argument for +thaw/retrieve to 0. +.PP +To disable tieing data while thawing/retrieving remove the flag \f(CW\*(C`TIE_OK\*(C'\fR += 4 from \f(CW$Storable::flags\fR or set the 2nd argument for thaw/retrieve +to 0. +.PP +With the default setting of \f(CW$Storable::flags\fR = 6, creating or destroying +random objects, even renamed objects can be controlled by an attacker. +See \s-1CVE\-2015\-1592\s0 and its metasploit module. +.PP +If your application requires accepting data from untrusted sources, +you are best off with a less powerful and more-likely safe +serialization format and implementation. If your data is sufficiently +simple, Cpanel::JSON::XS, Data::MessagePack or Sereal are the best +choices and offer maximum interoperability, but note that Sereal is +unsafe by default. +.SH "WARNING" +.IX Header "WARNING" +If you're using references as keys within your hash tables, you're bound +to be disappointed when retrieving your data. Indeed, Perl stringifies +references used as hash table keys. If you later wish to access the +items via another reference stringification (i.e. using the same +reference that was used for the key originally to record the value into +the hash table), it will work because both references stringify to the +same string. +.PP +It won't work across a sequence of \f(CW\*(C`store\*(C'\fR and \f(CW\*(C`retrieve\*(C'\fR operations, +however, because the addresses in the retrieved objects, which are +part of the stringified references, will probably differ from the +original addresses. The topology of your structure is preserved, +but not hidden semantics like those. +.PP +On platforms where it matters, be sure to call \f(CW\*(C`binmode()\*(C'\fR on the +descriptors that you pass to Storable functions. +.PP +Storing data canonically that contains large hashes can be +significantly slower than storing the same data normally, as +temporary arrays to hold the keys for each hash have to be allocated, +populated, sorted and freed. Some tests have shown a halving of the +speed of storing \*(-- the exact penalty will depend on the complexity of +your data. There is no slowdown on retrieval. +.SH "REGULAR EXPRESSIONS" +.IX Header "REGULAR EXPRESSIONS" +Storable now has experimental support for storing regular expressions, +but there are significant limitations: +.IP "\(bu" 4 +perl 5.8 or later is required. +.IP "\(bu" 4 +regular expressions with code blocks, ie \f(CW\*(C`/(?{ ... })/\*(C'\fR or \f(CW\*(C`/(??{ +\&... })/\*(C'\fR will throw an exception when thawed. +.IP "\(bu" 4 +regular expression syntax and flags have changed over the history of +perl, so a regular expression that you freeze in one version of perl +may fail to thaw or behave differently in another version of perl. +.IP "\(bu" 4 +depending on the version of perl, regular expressions can change in +behaviour depending on the context, but later perls will bake that +behaviour into the regexp. +.PP +Storable will throw an exception if a frozen regular expression cannot +be thawed. +.SH "BUGS" +.IX Header "BUGS" +You can't store \s-1GLOB, FORMLINE,\s0 etc.... If you can define semantics +for those operations, feel free to enhance Storable so that it can +deal with them. +.PP +The store functions will \f(CW\*(C`croak\*(C'\fR if they run into such references +unless you set \f(CW$Storable::forgive_me\fR to some \f(CW\*(C`TRUE\*(C'\fR value. In that +case, the fatal message is converted to a warning and some meaningless +string is stored instead. +.PP +Setting \f(CW$Storable::canonical\fR may not yield frozen strings that +compare equal due to possible stringification of numbers. When the +string version of a scalar exists, it is the form stored; therefore, +if you happen to use your numbers as strings between two freezing +operations on the same data structures, you will get different +results. +.PP +When storing doubles in network order, their value is stored as text. +However, you should also not expect non-numeric floating-point values +such as infinity and \*(L"not a number\*(R" to pass successfully through a +\&\fBnstore()\fR/\fBretrieve()\fR pair. +.PP +As Storable neither knows nor cares about character sets (although it +does know that characters may be more than eight bits wide), any difference +in the interpretation of character codes between a host and a target +system is your problem. In particular, if host and target use different +code points to represent the characters used in the text representation +of floating-point numbers, you will not be able be able to exchange +floating-point data, even with \fBnstore()\fR. +.PP +\&\f(CW\*(C`Storable::drop_utf8\*(C'\fR is a blunt tool. There is no facility either to +return \fBall\fR strings as utf8 sequences, or to attempt to convert utf8 +data back to 8 bit and \f(CW\*(C`croak()\*(C'\fR if the conversion fails. +.PP +Prior to Storable 2.01, no distinction was made between signed and +unsigned integers on storing. By default Storable prefers to store a +scalars string representation (if it has one) so this would only cause +problems when storing large unsigned integers that had never been converted +to string or floating point. In other words values that had been generated +by integer operations such as logic ops and then not used in any string or +arithmetic context before storing. +.SS "64 bit data in perl 5.6.0 and 5.6.1" +.IX Subsection "64 bit data in perl 5.6.0 and 5.6.1" +This section only applies to you if you have existing data written out +by Storable 2.02 or earlier on perl 5.6.0 or 5.6.1 on Unix or Linux which +has been configured with 64 bit integer support (not the default) +If you got a precompiled perl, rather than running Configure to build +your own perl from source, then it almost certainly does not affect you, +and you can stop reading now (unless you're curious). If you're using perl +on Windows it does not affect you. +.PP +Storable writes a file header which contains the sizes of various C +language types for the C compiler that built Storable (when not writing in +network order), and will refuse to load files written by a Storable not +on the same (or compatible) architecture. This check and a check on +machine byteorder is needed because the size of various fields in the file +are given by the sizes of the C language types, and so files written on +different architectures are incompatible. This is done for increased speed. +(When writing in network order, all fields are written out as standard +lengths, which allows full interworking, but takes longer to read and write) +.PP +Perl 5.6.x introduced the ability to optional configure the perl interpreter +to use C's \f(CW\*(C`long long\*(C'\fR type to allow scalars to store 64 bit integers on 32 +bit systems. However, due to the way the Perl configuration system +generated the C configuration files on non-Windows platforms, and the way +Storable generates its header, nothing in the Storable file header reflected +whether the perl writing was using 32 or 64 bit integers, despite the fact +that Storable was storing some data differently in the file. Hence Storable +running on perl with 64 bit integers will read the header from a file +written by a 32 bit perl, not realise that the data is actually in a subtly +incompatible format, and then go horribly wrong (possibly crashing) if it +encountered a stored integer. This is a design failure. +.PP +Storable has now been changed to write out and read in a file header with +information about the size of integers. It's impossible to detect whether +an old file being read in was written with 32 or 64 bit integers (they have +the same header) so it's impossible to automatically switch to a correct +backwards compatibility mode. Hence this Storable defaults to the new, +correct behaviour. +.PP +What this means is that if you have data written by Storable 1.x running +on perl 5.6.0 or 5.6.1 configured with 64 bit integers on Unix or Linux +then by default this Storable will refuse to read it, giving the error +\&\fIByte order is not compatible\fR. If you have such data then you +should set \f(CW$Storable::interwork_56_64bit\fR to a true value to make this +Storable read and write files with the old header. You should also +migrate your data, or any older perl you are communicating with, to this +current version of Storable. +.PP +If you don't have data written with specific configuration of perl described +above, then you do not and should not do anything. Don't set the flag \- +not only will Storable on an identically configured perl refuse to load them, +but Storable a differently configured perl will load them believing them +to be correct for it, and then may well fail or crash part way through +reading them. +.SH "CREDITS" +.IX Header "CREDITS" +Thank you to (in chronological order): +.PP +.Vb 10 +\& Jarkko Hietaniemi +\& Ulrich Pfeifer +\& Benjamin A. Holzman +\& Andrew Ford +\& Gisle Aas +\& Jeff Gresham +\& Murray Nesbitt +\& Marc Lehmann +\& Justin Banks +\& Jarkko Hietaniemi (AGAIN, as perl 5.7.0 Pumpkin!) +\& Salvador Ortiz Garcia +\& Dominic Dunlop +\& Erik Haugan +\& Benjamin A. Holzman +\& Reini Urban +\& Todd Rinaldo +\& Aaron Crane +.Ve +.PP +for their bug reports, suggestions and contributions. +.PP +Benjamin Holzman contributed the tied variable support, Andrew Ford +contributed the canonical order for hashes, and Gisle Aas fixed +a few misunderstandings of mine regarding the perl internals, +and optimized the emission of \*(L"tags\*(R" in the output streams by +simply counting the objects instead of tagging them (leading to +a binary incompatibility for the Storable image starting at version +0.6\-\-older images are, of course, still properly understood). +Murray Nesbitt made Storable thread-safe. Marc Lehmann added overloading +and references to tied items support. Benjamin Holzman added a performance +improvement for overloaded classes; thanks to Grant Street Group for footing +the bill. +Reini Urban took over maintainance from p5p, and added security fixes +and huge object support. +.SH "AUTHOR" +.IX Header "AUTHOR" +Storable was written by Raphael Manfredi +\&\fI\fR +Maintenance is now done by cperl +.PP +Please e\-mail us with problems, bug fixes, comments and complaints, +although if you have compliments you should send them to Raphael. +Please don't e\-mail Raphael with problems, as he no longer works on +Storable, and your message will be delayed while he forwards it to us. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Clone. diff --git a/data/miniconda3/man/man3/Sub%3A%3AUtil.3 b/data/miniconda3/man/man3/Sub%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..6f328b1cc62ae20b4307ee5630526e1b2c45b5b9 --- /dev/null +++ b/data/miniconda3/man/man3/Sub%3A%3AUtil.3 @@ -0,0 +1,254 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Sub::Util 3" +.TH Sub::Util 3 "2020-12-18" "perl v5.32.1" "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" +Sub::Util \- A selection of utility subroutines for subs and CODE references +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Sub::Util qw( prototype set_prototype subname set_subname ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Sub::Util\*(C'\fR contains a selection of utility subroutines that are useful for +operating on subs and \s-1CODE\s0 references. +.PP +The rationale for inclusion in this module is that the function performs some +work for which an \s-1XS\s0 implementation is essential because it cannot be +implemented in Pure Perl, and which is sufficiently-widely used across \s-1CPAN\s0 +that its popularity warrants inclusion in a core module, which this is. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.SS "prototype" +.IX Subsection "prototype" +.Vb 1 +\& my $proto = prototype( $code ) +.Ve +.PP +\&\fISince version 1.40.\fR +.PP +Returns the prototype of the given \f(CW$code\fR reference, if it has one, as a +string. This is the same as the \f(CW\*(C`CORE::prototype\*(C'\fR operator; it is included +here simply for symmetry and completeness with the other functions. +.SS "set_prototype" +.IX Subsection "set_prototype" +.Vb 1 +\& my $code = set_prototype $prototype, $code; +.Ve +.PP +\&\fISince version 1.40.\fR +.PP +Sets the prototype of the function given by the \f(CW$code\fR reference, or deletes +it if \f(CW$prototype\fR is \f(CW\*(C`undef\*(C'\fR. Returns the \f(CW$code\fR reference itself. +.PP +\&\fICaution\fR: This function takes arguments in a different order to the previous +copy of the code from \f(CW\*(C`Scalar::Util\*(C'\fR. This is to match the order of +\&\f(CW\*(C`set_subname\*(C'\fR, and other potential additions in this file. This order has +been chosen as it allows a neat and simple chaining of other +\&\f(CW\*(C`Sub::Util::set_*\*(C'\fR functions as might become available, such as: +.PP +.Vb 5 +\& my $code = +\& set_subname name_here => +\& set_prototype \*(Aq&@\*(Aq => +\& set_attribute \*(Aq:lvalue\*(Aq => +\& sub { ...... }; +.Ve +.SS "subname" +.IX Subsection "subname" +.Vb 1 +\& my $name = subname( $code ) +.Ve +.PP +\&\fISince version 1.40.\fR +.PP +Returns the name of the given \f(CW$code\fR reference, if it has one. Normal named +subs will give a fully-qualified name consisting of the package and the +localname separated by \f(CW\*(C`::\*(C'\fR. Anonymous code references will give \f(CW\*(C`_\|_ANON_\|_\*(C'\fR +as the localname. If the package the code was compiled in has been deleted +(e.g. using \f(CW\*(C`delete_package\*(C'\fR from Symbol), \f(CW\*(C`_\|_ANON_\|_\*(C'\fR will be returned as +the package name. If a name has been set using \*(L"set_subname\*(R", this name will be +returned instead. +.PP +This function was inspired by \f(CW\*(C`sub_fullname\*(C'\fR from Sub::Identify. The +remaining functions that \f(CW\*(C`Sub::Identify\*(C'\fR implements can easily be emulated +using regexp operations, such as +.PP +.Vb 3 +\& sub get_code_info { return (subname $_[0]) =~ m/^(.+)::(.*?)$/ } +\& sub sub_name { return (get_code_info $_[0])[0] } +\& sub stash_name { return (get_code_info $_[0])[1] } +.Ve +.PP +\&\fIUsers of Sub::Name beware\fR: This function is \fBnot\fR the same as +\&\f(CW\*(C`Sub::Name::subname\*(C'\fR; it returns the existing name of the sub rather than +changing it. To set or change a name, see instead \*(L"set_subname\*(R". +.SS "set_subname" +.IX Subsection "set_subname" +.Vb 1 +\& my $code = set_subname $name, $code; +.Ve +.PP +\&\fISince version 1.40.\fR +.PP +Sets the name of the function given by the \f(CW$code\fR reference. Returns the +\&\f(CW$code\fR reference itself. If the \f(CW$name\fR is unqualified, the package of the +caller is used to qualify it. +.PP +This is useful for applying names to anonymous \s-1CODE\s0 references so that stack +traces and similar situations, to give a useful name rather than having the +default of \f(CW\*(C`_\|_ANON_\|_\*(C'\fR. Note that this name is only used for this situation; +the \f(CW\*(C`set_subname\*(C'\fR will not install it into the symbol table; you will have to +do that yourself if required. +.PP +However, since the name is not used by perl except as the return value of +\&\f(CW\*(C`caller\*(C'\fR, for stack traces or similar, there is no actual requirement that +the name be syntactically valid as a perl function name. This could be used to +attach extra information that could be useful in debugging stack traces. +.PP +This function was copied from \f(CW\*(C`Sub::Name::subname\*(C'\fR and renamed to the naming +convention of this module. +.SH "AUTHOR" +.IX Header "AUTHOR" +The general structure of this module was written by Paul Evans +. +.PP +The \s-1XS\s0 implementation of \*(L"set_subname\*(R" was copied from Sub::Name by +Matthijs van Duin diff --git a/data/miniconda3/man/man3/Symbol.3 b/data/miniconda3/man/man3/Symbol.3 new file mode 100644 index 0000000000000000000000000000000000000000..2f6bd42dc5d0aaf6295eca9cfbc1b27241397723 --- /dev/null +++ b/data/miniconda3/man/man3/Symbol.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Symbol 3" +.TH Symbol 3 "2020-12-18" "perl v5.32.1" "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" +Symbol \- manipulate Perl symbols and their names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Symbol; +\& +\& $sym = gensym; +\& open($sym, \*(Aq<\*(Aq, "filename"); +\& $_ = <$sym>; +\& # etc. +\& +\& ungensym $sym; # no effect +\& +\& # replace *FOO{IO} handle but not $FOO, %FOO, etc. +\& *FOO = geniosym; +\& +\& print qualify("x"), "\en"; # "main::x" +\& print qualify("x", "FOO"), "\en"; # "FOO::x" +\& print qualify("BAR::x"), "\en"; # "BAR::x" +\& print qualify("BAR::x", "FOO"), "\en"; # "BAR::x" +\& print qualify("STDOUT", "FOO"), "\en"; # "main::STDOUT" (global) +\& print qualify(\e*x), "\en"; # returns \e*x +\& print qualify(\e*x, "FOO"), "\en"; # returns \e*x +\& +\& use strict refs; +\& print { qualify_to_ref $fh } "foo!\en"; +\& $ref = qualify_to_ref $name, $pkg; +\& +\& use Symbol qw(delete_package); +\& delete_package(\*(AqFoo::Bar\*(Aq); +\& print "deleted\en" unless exists $Foo::{\*(AqBar::\*(Aq}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Symbol::gensym\*(C'\fR creates an anonymous glob and returns a reference +to it. Such a glob reference can be used as a file or directory +handle. +.PP +For backward compatibility with older implementations that didn't +support anonymous globs, \f(CW\*(C`Symbol::ungensym\*(C'\fR is also provided. +But it doesn't do anything. +.PP +\&\f(CW\*(C`Symbol::geniosym\*(C'\fR creates an anonymous \s-1IO\s0 handle. This can be +assigned into an existing glob without affecting the non-IO portions +of the glob. +.PP +\&\f(CW\*(C`Symbol::qualify\*(C'\fR turns unqualified symbol names into qualified +variable names (e.g. \*(L"myvar\*(R" \-> \*(L"MyPackage::myvar\*(R"). If it is given a +second parameter, \f(CW\*(C`qualify\*(C'\fR uses it as the default package; +otherwise, it uses the package of its caller. Regardless, global +variable names (e.g. \*(L"\s-1STDOUT\*(R", \*(L"ENV\*(R", \*(L"SIG\*(R"\s0) are always qualified with +\&\*(L"main::\*(R". +.PP +Qualification applies only to symbol names (strings). References are +left unchanged under the assumption that they are glob references, +which are qualified by their nature. +.PP +\&\f(CW\*(C`Symbol::qualify_to_ref\*(C'\fR is just like \f(CW\*(C`Symbol::qualify\*(C'\fR except that it +returns a glob ref rather than a symbol name, so you can use the result +even if \f(CW\*(C`use strict \*(Aqrefs\*(Aq\*(C'\fR is in effect. +.PP +\&\f(CW\*(C`Symbol::delete_package\*(C'\fR wipes out a whole package namespace. Note +this routine is not exported by default\*(--you may want to import it +explicitly. +.SH "BUGS" +.IX Header "BUGS" +\&\f(CW\*(C`Symbol::delete_package\*(C'\fR is a bit too powerful. It undefines every symbol that +lives in the specified package. Since perl, for performance reasons, does not +perform a symbol table lookup each time a function is called or a global +variable is accessed, some code that has already been loaded and that makes use +of symbols in package \f(CW\*(C`Foo\*(C'\fR may stop working after you delete \f(CW\*(C`Foo\*(C'\fR, even if +you reload the \f(CW\*(C`Foo\*(C'\fR module afterwards. diff --git a/data/miniconda3/man/man3/Sys%3A%3AHostname.3 b/data/miniconda3/man/man3/Sys%3A%3AHostname.3 new file mode 100644 index 0000000000000000000000000000000000000000..f4dadd43d77a625639ba8cbffba28870b8e30160 --- /dev/null +++ b/data/miniconda3/man/man3/Sys%3A%3AHostname.3 @@ -0,0 +1,164 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Sys::Hostname 3" +.TH Sys::Hostname 3 "2020-12-18" "perl v5.32.1" "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" +Sys::Hostname \- Try every conceivable way to get hostname +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Sys::Hostname; +\& $host = hostname; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Attempts several methods of getting the system hostname and +then caches the result. It tries the first available of the C +library's \fBgethostname()\fR, \f(CW\*(C`\`$Config{aphostname}\`\*(C'\fR, \fBuname\fR\|(2), +\&\f(CW\*(C`syscall(SYS_gethostname)\*(C'\fR, \f(CW\*(C`\`hostname\`\*(C'\fR, \f(CW\*(C`\`uname \-n\`\*(C'\fR, +and the file \fI/com/host\fR. If all that fails it \f(CW\*(C`croak\*(C'\fRs. +.PP +All NULs, returns, and newlines are removed from the result. +.SH "AUTHOR" +.IX Header "AUTHOR" +David Sundstrom <\fIsunds@asictest.sc.ti.com\fR> +.PP +Texas Instruments +.PP +\&\s-1XS\s0 code added by Greg Bacon <\fIgbacon@cs.uah.edu\fR> diff --git a/data/miniconda3/man/man3/Sys%3A%3ASyslog.3 b/data/miniconda3/man/man3/Sys%3A%3ASyslog.3 new file mode 100644 index 0000000000000000000000000000000000000000..f94d1daef80a2583bafca53946eacbdeb2e8e8f2 --- /dev/null +++ b/data/miniconda3/man/man3/Sys%3A%3ASyslog.3 @@ -0,0 +1,804 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Sys::Syslog 3" +.TH Sys::Syslog 3 "2020-12-18" "perl v5.32.1" "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" +Sys::Syslog \- Perl interface to the UNIX syslog(3) calls +.SH "VERSION" +.IX Header "VERSION" +This is the documentation of version 0.36 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Sys::Syslog; # all except setlogsock() +\& use Sys::Syslog qw(:standard :macros); # standard functions & macros +\& +\& openlog($ident, $logopt, $facility); # don\*(Aqt forget this +\& syslog($priority, $format, @args); +\& $oldmask = setlogmask($mask_priority); +\& closelog(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Sys::Syslog\*(C'\fR is an interface to the \s-1UNIX\s0 \f(CWsyslog(3)\fR program. +Call \f(CW\*(C`syslog()\*(C'\fR with a string priority and a list of \f(CW\*(C`printf()\*(C'\fR args +just like \f(CWsyslog(3)\fR. +.SH "EXPORTS" +.IX Header "EXPORTS" +\&\f(CW\*(C`Sys::Syslog\*(C'\fR exports the following \f(CW\*(C`Exporter\*(C'\fR tags: +.IP "\(bu" 4 +\&\f(CW\*(C`:standard\*(C'\fR exports the standard \f(CWsyslog(3)\fR functions: +.Sp +.Vb 1 +\& openlog closelog setlogmask syslog +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`:extended\*(C'\fR exports the Perl specific functions for \f(CWsyslog(3)\fR: +.Sp +.Vb 1 +\& setlogsock +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`:macros\*(C'\fR exports the symbols corresponding to most of your \f(CWsyslog(3)\fR +macros and the \f(CW\*(C`LOG_UPTO()\*(C'\fR and \f(CW\*(C`LOG_MASK()\*(C'\fR functions. +See \*(L"\s-1CONSTANTS\*(R"\s0 for the supported constants and their meaning. +.PP +By default, \f(CW\*(C`Sys::Syslog\*(C'\fR exports the symbols from the \f(CW\*(C`:standard\*(C'\fR tag. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "\fBopenlog($ident, \f(CB$logopt\fB, \f(CB$facility\fB)\fR" 4 +.IX Item "openlog($ident, $logopt, $facility)" +Opens the syslog. +\&\f(CW$ident\fR is prepended to every message. \f(CW$logopt\fR contains zero or +more of the options detailed below. \f(CW$facility\fR specifies the part +of the system to report about, for example \f(CW\*(C`LOG_USER\*(C'\fR or \f(CW\*(C`LOG_LOCAL0\*(C'\fR: +see \*(L"Facilities\*(R" for a list of well-known facilities, and your +\&\f(CWsyslog(3)\fR documentation for the facilities available in your system. +Check \*(L"\s-1SEE ALSO\*(R"\s0 for useful links. Facility can be given as a string +or a numeric macro. +.Sp +This function will croak if it can't connect to the syslog daemon. +.Sp +Note that \f(CW\*(C`openlog()\*(C'\fR now takes three arguments, just like \f(CWopenlog(3)\fR. +.Sp +\&\fBYou should use \f(CB\*(C`openlog()\*(C'\fB before calling \f(CB\*(C`syslog()\*(C'\fB.\fR +.Sp +\&\fBOptions\fR +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`cons\*(C'\fR \- This option is ignored, since the failover mechanism will drop +down to the console automatically if all other media fail. +.IP "\(bu" 4 +\&\f(CW\*(C`ndelay\*(C'\fR \- Open the connection immediately (normally, the connection is +opened when the first message is logged). +.IP "\(bu" 4 +\&\f(CW\*(C`noeol\*(C'\fR \- When set to true, no end of line character (\f(CW\*(C`\en\*(C'\fR) will be +appended to the message. This can be useful for some syslog daemons. +Added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.29. +.IP "\(bu" 4 +\&\f(CW\*(C`nofatal\*(C'\fR \- When set to true, \f(CW\*(C`openlog()\*(C'\fR and \f(CW\*(C`syslog()\*(C'\fR will only +emit warnings instead of dying if the connection to the syslog can't +be established. Added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.15. +.IP "\(bu" 4 +\&\f(CW\*(C`nonul\*(C'\fR \- When set to true, no \f(CW\*(C`NUL\*(C'\fR character (\f(CW\*(C`\e0\*(C'\fR) will be +appended to the message. This can be useful for some syslog daemons. +Added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.29. +.IP "\(bu" 4 +\&\f(CW\*(C`nowait\*(C'\fR \- Don't wait for child processes that may have been created +while logging the message. (The \s-1GNU C\s0 library does not create a child +process, so this option has no effect on Linux.) +.IP "\(bu" 4 +\&\f(CW\*(C`perror\*(C'\fR \- Write the message to standard error output as well to the +system log. Added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.22. +.IP "\(bu" 4 +\&\f(CW\*(C`pid\*(C'\fR \- Include \s-1PID\s0 with each message. +.RE +.RS 4 +.Sp +\&\fBExamples\fR +.Sp +Open the syslog with options \f(CW\*(C`ndelay\*(C'\fR and \f(CW\*(C`pid\*(C'\fR, and with facility \f(CW\*(C`LOCAL0\*(C'\fR: +.Sp +.Vb 1 +\& openlog($name, "ndelay,pid", "local0"); +.Ve +.Sp +Same thing, but this time using the macro corresponding to \f(CW\*(C`LOCAL0\*(C'\fR: +.Sp +.Vb 1 +\& openlog($name, "ndelay,pid", LOG_LOCAL0); +.Ve +.RE +.IP "\fBsyslog($priority, \f(CB$message\fB)\fR" 4 +.IX Item "syslog($priority, $message)" +.PD 0 +.IP "\fBsyslog($priority, \f(CB$format\fB, \f(CB@args\fB)\fR" 4 +.IX Item "syslog($priority, $format, @args)" +.PD +If \f(CW$priority\fR permits, logs \f(CW$message\fR or \f(CW\*(C`sprintf($format, @args)\*(C'\fR +with the addition that \f(CW%m\fR in \f(CW$message\fR or \f(CW$format\fR is replaced with +\&\f(CW"$!"\fR (the latest error message). +.Sp +\&\f(CW$priority\fR can specify a level, or a level and a facility. Levels and +facilities can be given as strings or as macros. When using the \f(CW\*(C`eventlog\*(C'\fR +mechanism, priorities \f(CW\*(C`DEBUG\*(C'\fR and \f(CW\*(C`INFO\*(C'\fR are mapped to event type +\&\f(CW\*(C`informational\*(C'\fR, \f(CW\*(C`NOTICE\*(C'\fR and \f(CW\*(C`WARNING\*(C'\fR to \f(CW\*(C`warning\*(C'\fR and \f(CW\*(C`ERR\*(C'\fR to +\&\f(CW\*(C`EMERG\*(C'\fR to \f(CW\*(C`error\*(C'\fR. +.Sp +If you didn't use \f(CW\*(C`openlog()\*(C'\fR before using \f(CW\*(C`syslog()\*(C'\fR, \f(CW\*(C`syslog()\*(C'\fR will +try to guess the \f(CW$ident\fR by extracting the shortest prefix of +\&\f(CW$format\fR that ends in a \f(CW":"\fR. +.Sp +\&\fBExamples\fR +.Sp +.Vb 3 +\& # informational level +\& syslog("info", $message); +\& syslog(LOG_INFO, $message); +\& +\& # information level, Local0 facility +\& syslog("info|local0", $message); +\& syslog(LOG_INFO|LOG_LOCAL0, $message); +.Ve +.RS 4 +.IP "\fBNote\fR" 4 +.IX Item "Note" +\&\f(CW\*(C`Sys::Syslog\*(C'\fR version v0.07 and older passed the \f(CW$message\fR as the +formatting string to \f(CW\*(C`sprintf()\*(C'\fR even when no formatting arguments +were provided. If the code calling \f(CW\*(C`syslog()\*(C'\fR might execute with +older versions of this module, make sure to call the function as +\&\f(CW\*(C`syslog($priority, "%s", $message)\*(C'\fR instead of \f(CW\*(C`syslog($priority, +$message)\*(C'\fR. This protects against hostile formatting sequences that +might show up if \f(CW$message\fR contains tainted data. +.RE +.RS 4 +.RE +.IP "\fBsetlogmask($mask_priority)\fR" 4 +.IX Item "setlogmask($mask_priority)" +Sets the log mask for the current process to \f(CW$mask_priority\fR and +returns the old mask. If the mask argument is 0, the current log mask +is not modified. See \*(L"Levels\*(R" for the list of available levels. +You can use the \f(CW\*(C`LOG_UPTO()\*(C'\fR function to allow all levels up to a +given priority (but it only accept the numeric macros as arguments). +.Sp +\&\fBExamples\fR +.Sp +Only log errors: +.Sp +.Vb 1 +\& setlogmask( LOG_MASK(LOG_ERR) ); +.Ve +.Sp +Log everything except informational messages: +.Sp +.Vb 1 +\& setlogmask( ~(LOG_MASK(LOG_INFO)) ); +.Ve +.Sp +Log critical messages, errors and warnings: +.Sp +.Vb 3 +\& setlogmask( LOG_MASK(LOG_CRIT) +\& | LOG_MASK(LOG_ERR) +\& | LOG_MASK(LOG_WARNING) ); +.Ve +.Sp +Log all messages up to debug: +.Sp +.Vb 1 +\& setlogmask( LOG_UPTO(LOG_DEBUG) ); +.Ve +.IP "\fB\fBsetlogsock()\fB\fR" 4 +.IX Item "setlogsock()" +Sets the socket type and options to be used for the next call to \f(CW\*(C`openlog()\*(C'\fR +or \f(CW\*(C`syslog()\*(C'\fR. Returns true on success, \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +Being Perl-specific, this function has evolved along time. It can currently +be called as follow: +.RS 4 +.IP "\(bu" 4 +\&\f(CW\*(C`setlogsock($sock_type)\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`setlogsock($sock_type, $stream_location)\*(C'\fR (added in Perl 5.004_02) +.IP "\(bu" 4 +\&\f(CW\*(C`setlogsock($sock_type, $stream_location, $sock_timeout)\*(C'\fR (added in +\&\f(CW\*(C`Sys::Syslog\*(C'\fR 0.25) +.IP "\(bu" 4 +\&\f(CW\*(C`setlogsock(\e%options)\*(C'\fR (added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.28) +.RE +.RS 4 +.Sp +The available options are: +.IP "\(bu" 4 +\&\f(CW\*(C`type\*(C'\fR \- equivalent to \f(CW$sock_type\fR, selects the socket type (or +\&\*(L"mechanism\*(R"). An array reference can be passed to specify several +mechanisms to try, in the given order. +.IP "\(bu" 4 +\&\f(CW\*(C`path\*(C'\fR \- equivalent to \f(CW$stream_location\fR, sets the stream location. +Defaults to standard Unix location, or \f(CW\*(C`_PATH_LOG\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`timeout\*(C'\fR \- equivalent to \f(CW$sock_timeout\fR, sets the socket timeout +in seconds. Defaults to 0 on all systems except Mac\ \s-1OS\s0\ X where it +is set to 0.25 sec. +.IP "\(bu" 4 +\&\f(CW\*(C`host\*(C'\fR \- sets the hostname to send the messages to. Defaults to +the local host. +.IP "\(bu" 4 +\&\f(CW\*(C`port\*(C'\fR \- sets the \s-1TCP\s0 or \s-1UDP\s0 port to connect to. Defaults to the +first standard syslog port available on the system. +.RE +.RS 4 +.Sp +The available mechanisms are: +.IP "\(bu" 4 +\&\f(CW"native"\fR \- use the native C functions from your \f(CWsyslog(3)\fR library +(added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.15). +.IP "\(bu" 4 +\&\f(CW"eventlog"\fR \- send messages to the Win32 events logger (Win32 only; +added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.19). +.IP "\(bu" 4 +\&\f(CW"tcp"\fR \- connect to a \s-1TCP\s0 socket, on the \f(CW\*(C`syslog/tcp\*(C'\fR or \f(CW\*(C`syslogng/tcp\*(C'\fR +service. See also the \f(CW\*(C`host\*(C'\fR, \f(CW\*(C`port\*(C'\fR and \f(CW\*(C`timeout\*(C'\fR options. +.IP "\(bu" 4 +\&\f(CW"udp"\fR \- connect to a \s-1UDP\s0 socket, on the \f(CW\*(C`syslog/udp\*(C'\fR service. +See also the \f(CW\*(C`host\*(C'\fR, \f(CW\*(C`port\*(C'\fR and \f(CW\*(C`timeout\*(C'\fR options. +.IP "\(bu" 4 +\&\f(CW"inet"\fR \- connect to an \s-1INET\s0 socket, either \s-1TCP\s0 or \s-1UDP,\s0 tried in that +order. See also the \f(CW\*(C`host\*(C'\fR, \f(CW\*(C`port\*(C'\fR and \f(CW\*(C`timeout\*(C'\fR options. +.IP "\(bu" 4 +\&\f(CW"unix"\fR \- connect to a \s-1UNIX\s0 domain socket (in some systems a character +special device). The name of that socket is given by the \f(CW\*(C`path\*(C'\fR option +or, if omitted, the value returned by the \f(CW\*(C`_PATH_LOG\*(C'\fR macro (if your +system defines it), \fI/dev/log\fR or \fI/dev/conslog\fR, whichever is writable. +.IP "\(bu" 4 +\&\f(CW"stream"\fR \- connect to the stream indicated by the \f(CW\*(C`path\*(C'\fR option, or, +if omitted, the value returned by the \f(CW\*(C`_PATH_LOG\*(C'\fR macro (if your system +defines it), \fI/dev/log\fR or \fI/dev/conslog\fR, whichever is writable. For +example Solaris and \s-1IRIX\s0 system may prefer \f(CW"stream"\fR instead of \f(CW"unix"\fR. +.IP "\(bu" 4 +\&\f(CW"pipe"\fR \- connect to the named pipe indicated by the \f(CW\*(C`path\*(C'\fR option, +or, if omitted, to the value returned by the \f(CW\*(C`_PATH_LOG\*(C'\fR macro (if your +system defines it), or \fI/dev/log\fR (added in \f(CW\*(C`Sys::Syslog\*(C'\fR 0.21). +HP-UX is a system which uses such a named pipe. +.IP "\(bu" 4 +\&\f(CW"console"\fR \- send messages directly to the console, as for the \f(CW"cons"\fR +option of \f(CW\*(C`openlog()\*(C'\fR. +.RE +.RS 4 +.Sp +The default is to try \f(CW\*(C`native\*(C'\fR, \f(CW\*(C`tcp\*(C'\fR, \f(CW\*(C`udp\*(C'\fR, \f(CW\*(C`unix\*(C'\fR, \f(CW\*(C`pipe\*(C'\fR, \f(CW\*(C`stream\*(C'\fR, +\&\f(CW\*(C`console\*(C'\fR. +Under systems with the Win32 \s-1API,\s0 \f(CW\*(C`eventlog\*(C'\fR will be added as the first +mechanism to try if \f(CW\*(C`Win32::EventLog\*(C'\fR is available. +.Sp +Giving an invalid value for \f(CW$sock_type\fR will \f(CW\*(C`croak\*(C'\fR. +.Sp +\&\fBExamples\fR +.Sp +Select the \s-1UDP\s0 socket mechanism: +.Sp +.Vb 1 +\& setlogsock("udp"); +.Ve +.Sp +Send messages using the \s-1TCP\s0 socket mechanism on a custom port: +.Sp +.Vb 1 +\& setlogsock({ type => "tcp", port => 2486 }); +.Ve +.Sp +Send messages to a remote host using the \s-1TCP\s0 socket mechanism: +.Sp +.Vb 1 +\& setlogsock({ type => "tcp", host => $loghost }); +.Ve +.Sp +Try the native, \s-1UDP\s0 socket then \s-1UNIX\s0 domain socket mechanisms: +.Sp +.Vb 1 +\& setlogsock(["native", "udp", "unix"]); +.Ve +.IP "\fBNote\fR" 4 +.IX Item "Note" +Now that the \*(L"native\*(R" mechanism is supported by \f(CW\*(C`Sys::Syslog\*(C'\fR and selected +by default, the use of the \f(CW\*(C`setlogsock()\*(C'\fR function is discouraged because +other mechanisms are less portable across operating systems. Authors of +modules and programs that use this function, especially its cargo-cult form +\&\f(CW\*(C`setlogsock("unix")\*(C'\fR, are advised to remove any occurrence of it unless they +specifically want to use a given mechanism (like \s-1TCP\s0 or \s-1UDP\s0 to connect to +a remote host). +.RE +.RS 4 +.RE +.IP "\fB\fBcloselog()\fB\fR" 4 +.IX Item "closelog()" +Closes the log file and returns true on success. +.SH "THE RULES OF SYS::SYSLOG" +.IX Header "THE RULES OF SYS::SYSLOG" +\&\fIThe First Rule of Sys::Syslog is:\fR +You do not call \f(CW\*(C`setlogsock\*(C'\fR. +.PP +\&\fIThe Second Rule of Sys::Syslog is:\fR +You \fBdo not\fR call \f(CW\*(C`setlogsock\*(C'\fR. +.PP +\&\fIThe Third Rule of Sys::Syslog is:\fR +The program crashes, \f(CW\*(C`die\*(C'\fRs, calls \f(CW\*(C`closelog\*(C'\fR, the log is over. +.PP +\&\fIThe Fourth Rule of Sys::Syslog is:\fR +One facility, one priority. +.PP +\&\fIThe Fifth Rule of Sys::Syslog is:\fR +One log at a time. +.PP +\&\fIThe Sixth Rule of Sys::Syslog is:\fR +No \f(CW\*(C`syslog\*(C'\fR before \f(CW\*(C`openlog\*(C'\fR. +.PP +\&\fIThe Seventh Rule of Sys::Syslog is:\fR +Logs will go on as long as they have to. +.PP +\&\fIThe Eighth, and Final Rule of Sys::Syslog is:\fR +If this is your first use of Sys::Syslog, you must read the doc. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +An example: +.PP +.Vb 4 +\& openlog($program, \*(Aqcons,pid\*(Aq, \*(Aquser\*(Aq); +\& syslog(\*(Aqinfo\*(Aq, \*(Aq%s\*(Aq, \*(Aqthis is another test\*(Aq); +\& syslog(\*(Aqmail|warning\*(Aq, \*(Aqthis is a better test: %d\*(Aq, time); +\& closelog(); +\& +\& syslog(\*(Aqdebug\*(Aq, \*(Aqthis is the last test\*(Aq); +.Ve +.PP +Another example: +.PP +.Vb 2 +\& openlog("$program $$", \*(Aqndelay\*(Aq, \*(Aquser\*(Aq); +\& syslog(\*(Aqnotice\*(Aq, \*(Aqfooprogram: this is really done\*(Aq); +.Ve +.PP +Example of use of \f(CW%m\fR: +.PP +.Vb 2 +\& $! = 55; +\& syslog(\*(Aqinfo\*(Aq, \*(Aqproblem was %m\*(Aq); # %m == $! in syslog(3) +.Ve +.PP +Log to \s-1UDP\s0 port on \f(CW$remotehost\fR instead of logging locally: +.PP +.Vb 3 +\& setlogsock("udp", $remotehost); +\& openlog($program, \*(Aqndelay\*(Aq, \*(Aquser\*(Aq); +\& syslog(\*(Aqinfo\*(Aq, \*(Aqsomething happened over here\*(Aq); +.Ve +.SH "CONSTANTS" +.IX Header "CONSTANTS" +.SS "Facilities" +.IX Subsection "Facilities" +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_AUDIT\*(C'\fR \- audit daemon (\s-1IRIX\s0); falls back to \f(CW\*(C`LOG_AUTH\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_AUTH\*(C'\fR \- security/authorization messages +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_AUTHPRIV\*(C'\fR \- security/authorization messages (private) +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_CONSOLE\*(C'\fR \- \f(CW\*(C`/dev/console\*(C'\fR output (FreeBSD); falls back to \f(CW\*(C`LOG_USER\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_CRON\*(C'\fR \- clock daemons (\fBcron\fR and \fBat\fR) +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_DAEMON\*(C'\fR \- system daemons without separate facility value +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_FTP\*(C'\fR \- \s-1FTP\s0 daemon +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_KERN\*(C'\fR \- kernel messages +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_INSTALL\*(C'\fR \- installer subsystem (Mac \s-1OS X\s0); falls back to \f(CW\*(C`LOG_USER\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_LAUNCHD\*(C'\fR \- launchd \- general bootstrap daemon (Mac \s-1OS X\s0); +falls back to \f(CW\*(C`LOG_DAEMON\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_LFMT\*(C'\fR \- logalert facility; falls back to \f(CW\*(C`LOG_USER\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_LOCAL0\*(C'\fR through \f(CW\*(C`LOG_LOCAL7\*(C'\fR \- reserved for local use +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_LPR\*(C'\fR \- line printer subsystem +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_MAIL\*(C'\fR \- mail subsystem +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_NETINFO\*(C'\fR \- NetInfo subsystem (Mac \s-1OS X\s0); falls back to \f(CW\*(C`LOG_DAEMON\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_NEWS\*(C'\fR \- \s-1USENET\s0 news subsystem +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_NTP\*(C'\fR \- \s-1NTP\s0 subsystem (FreeBSD, NetBSD); falls back to \f(CW\*(C`LOG_DAEMON\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_RAS\*(C'\fR \- Remote Access Service (\s-1VPN / PPP\s0) (Mac \s-1OS X\s0); +falls back to \f(CW\*(C`LOG_AUTH\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_REMOTEAUTH\*(C'\fR \- remote authentication/authorization (Mac \s-1OS X\s0); +falls back to \f(CW\*(C`LOG_AUTH\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_SECURITY\*(C'\fR \- security subsystems (firewalling, etc.) (FreeBSD); +falls back to \f(CW\*(C`LOG_AUTH\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_SYSLOG\*(C'\fR \- messages generated internally by \fBsyslogd\fR +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_USER\*(C'\fR (default) \- generic user-level messages +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_UUCP\*(C'\fR \- \s-1UUCP\s0 subsystem +.SS "Levels" +.IX Subsection "Levels" +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_EMERG\*(C'\fR \- system is unusable +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_ALERT\*(C'\fR \- action must be taken immediately +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_CRIT\*(C'\fR \- critical conditions +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_ERR\*(C'\fR \- error conditions +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_WARNING\*(C'\fR \- warning conditions +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_NOTICE\*(C'\fR \- normal, but significant, condition +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_INFO\*(C'\fR \- informational message +.IP "\(bu" 4 +\&\f(CW\*(C`LOG_DEBUG\*(C'\fR \- debug-level message +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP """Invalid argument passed to setlogsock""" 4 +.el .IP "\f(CWInvalid argument passed to setlogsock\fR" 4 +.IX Item "Invalid argument passed to setlogsock" +\&\fB(F)\fR You gave \f(CW\*(C`setlogsock()\*(C'\fR an invalid value for \f(CW$sock_type\fR. +.ie n .IP """eventlog passed to setlogsock, but no Win32 API available""" 4 +.el .IP "\f(CWeventlog passed to setlogsock, but no Win32 API available\fR" 4 +.IX Item "eventlog passed to setlogsock, but no Win32 API available" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use the Win32 event logger but the +operating system running the program isn't Win32 or does not provides Win32 +compatible facilities. +.ie n .IP """no connection to syslog available""" 4 +.el .IP "\f(CWno connection to syslog available\fR" 4 +.IX Item "no connection to syslog available" +\&\fB(F)\fR \f(CW\*(C`syslog()\*(C'\fR failed to connect to the specified socket. +.ie n .IP """stream passed to setlogsock, but %s is not writable""" 4 +.el .IP "\f(CWstream passed to setlogsock, but %s is not writable\fR" 4 +.IX Item "stream passed to setlogsock, but %s is not writable" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use a stream socket, but the given +path is not writable. +.ie n .IP """stream passed to setlogsock, but could not find any device""" 4 +.el .IP "\f(CWstream passed to setlogsock, but could not find any device\fR" 4 +.IX Item "stream passed to setlogsock, but could not find any device" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use a stream socket, but didn't +provide a path, and \f(CW\*(C`Sys::Syslog\*(C'\fR was unable to find an appropriate one. +.ie n .IP """tcp passed to setlogsock, but tcp service unavailable""" 4 +.el .IP "\f(CWtcp passed to setlogsock, but tcp service unavailable\fR" 4 +.IX Item "tcp passed to setlogsock, but tcp service unavailable" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use a \s-1TCP\s0 socket, but the service +is not available on the system. +.ie n .IP """syslog: expecting argument %s""" 4 +.el .IP "\f(CWsyslog: expecting argument %s\fR" 4 +.IX Item "syslog: expecting argument %s" +\&\fB(F)\fR You forgot to give \f(CW\*(C`syslog()\*(C'\fR the indicated argument. +.ie n .IP """syslog: invalid level/facility: %s""" 4 +.el .IP "\f(CWsyslog: invalid level/facility: %s\fR" 4 +.IX Item "syslog: invalid level/facility: %s" +\&\fB(F)\fR You specified an invalid level or facility. +.ie n .IP """syslog: too many levels given: %s""" 4 +.el .IP "\f(CWsyslog: too many levels given: %s\fR" 4 +.IX Item "syslog: too many levels given: %s" +\&\fB(F)\fR You specified too many levels. +.ie n .IP """syslog: too many facilities given: %s""" 4 +.el .IP "\f(CWsyslog: too many facilities given: %s\fR" 4 +.IX Item "syslog: too many facilities given: %s" +\&\fB(F)\fR You specified too many facilities. +.ie n .IP """syslog: level must be given""" 4 +.el .IP "\f(CWsyslog: level must be given\fR" 4 +.IX Item "syslog: level must be given" +\&\fB(F)\fR You forgot to specify a level. +.ie n .IP """udp passed to setlogsock, but udp service unavailable""" 4 +.el .IP "\f(CWudp passed to setlogsock, but udp service unavailable\fR" 4 +.IX Item "udp passed to setlogsock, but udp service unavailable" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use a \s-1UDP\s0 socket, but the service +is not available on the system. +.ie n .IP """unix passed to setlogsock, but path not available""" 4 +.el .IP "\f(CWunix passed to setlogsock, but path not available\fR" 4 +.IX Item "unix passed to setlogsock, but path not available" +\&\fB(W)\fR You asked \f(CW\*(C`setlogsock()\*(C'\fR to use a \s-1UNIX\s0 socket, but \f(CW\*(C`Sys::Syslog\*(C'\fR +was unable to find an appropriate an appropriate device. +.SH "HISTORY" +.IX Header "HISTORY" +\&\f(CW\*(C`Sys::Syslog\*(C'\fR is a core module, part of the standard Perl distribution +since 1990. At this time, modules as we know them didn't exist, the +Perl library was a collection of \fI.pl\fR files, and the one for sending +syslog messages with was simply \fIlib/syslog.pl\fR, included with Perl 3.0. +It was converted as a module with Perl 5.0, but had a version number +only starting with Perl 5.6. Here is a small table with the matching +Perl and \f(CW\*(C`Sys::Syslog\*(C'\fR versions. +.PP +.Vb 10 +\& Sys::Syslog Perl +\& \-\-\-\-\-\-\-\-\-\-\- \-\-\-\- +\& undef 5.0.0 ~ 5.5.4 +\& 0.01 5.6.* +\& 0.03 5.8.0 +\& 0.04 5.8.1, 5.8.2, 5.8.3 +\& 0.05 5.8.4, 5.8.5, 5.8.6 +\& 0.06 5.8.7 +\& 0.13 5.8.8 +\& 0.22 5.10.0 +\& 0.27 5.8.9, 5.10.1 ~ 5.14.* +\& 0.29 5.16.* +\& 0.32 5.18.* +\& 0.33 5.20.* +\& 0.33 5.22.* +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.SS "Other modules" +.IX Subsection "Other modules" +Log::Log4perl \- Perl implementation of the Log4j \s-1API\s0 +.PP +Log::Dispatch \- Dispatches messages to one or more outputs +.PP +Log::Report \- Report a problem, with exceptions and language support +.SS "Manual Pages" +.IX Subsection "Manual Pages" +\&\fBsyslog\fR\|(3) +.PP +SUSv3 issue 6, \s-1IEEE\s0 Std 1003.1, 2004 edition, + +.PP +\&\s-1GNU C\s0 Library documentation on syslog, + +.PP +FreeBSD documentation on syslog, + +.PP +Solaris 11 documentation on syslog, + +.PP +Mac \s-1OS X\s0 documentation on syslog, + +.PP +\&\s-1IRIX\s0 documentation on syslog, + +.PP +\&\s-1AIX 5L 5.3\s0 documentation on syslog, + +.PP +HP-UX 11i documentation on syslog, + +.PP +Tru64 documentation on syslog, + +.PP +Stratus \s-1VOS 15.1,\s0 + +.SS "RFCs" +.IX Subsection "RFCs" +\&\fI\s-1RFC 3164\s0 \- The \s-1BSD\s0 syslog Protocol\fR, +\&\*(-- Please note that this is an informational \s-1RFC,\s0 and therefore does not +specify a standard of any kind. +.PP +\&\fI\s-1RFC 3195\s0 \- Reliable Delivery for syslog\fR, +.SS "Articles" +.IX Subsection "Articles" +\&\fISyslogging with Perl\fR, +.SS "Event Log" +.IX Subsection "Event Log" +Windows Event Log, + +.SH "AUTHORS & ACKNOWLEDGEMENTS" +.IX Header "AUTHORS & ACKNOWLEDGEMENTS" +Tom Christiansen <\fItchrist (at) perl.com\fR> and Larry Wall +<\fIlarry (at) wall.org\fR>. +.PP +\&\s-1UNIX\s0 domain sockets added by Sean Robinson +<\fIrobinson_s (at) sc.maricopa.edu\fR> with support from Tim Bunce +<\fITim.Bunce (at) ig.co.uk\fR> and the \f(CW\*(C`perl5\-porters\*(C'\fR mailing list. +.PP +Dependency on \fIsyslog.ph\fR replaced with \s-1XS\s0 code by Tom Hughes +<\fItom (at) compton.nu\fR>. +.PP +Code for \f(CW\*(C`constant()\*(C'\fRs regenerated by Nicholas Clark <\fInick (at) ccl4.org\fR>. +.PP +Failover to different communication modes by Nick Williams +<\fINick.Williams (at) morganstanley.com\fR>. +.PP +Extracted from core distribution for publishing on the \s-1CPAN\s0 by +Se\*'bastien Aperghis-Tramoni . +.PP +\&\s-1XS\s0 code for using native C functions borrowed from \f(CW\*(C`Unix::Syslog\*(C'\fR, +written by Marcus Harnisch <\fImarcus.harnisch (at) gmx.net\fR>. +.PP +Yves Orton suggested and helped for making \f(CW\*(C`Sys::Syslog\*(C'\fR use the native +event logger under Win32 systems. +.PP +Jerry D. Hedden and Reini Urban provided greatly appreciated help to +debug and polish \f(CW\*(C`Sys::Syslog\*(C'\fR under Cygwin. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-sys\-syslog (at) rt.cpan.org\*(C'\fR, or through the web interface at +. +I will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Sys::Syslog +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +Perl Documentation +.Sp + +.IP "\(bu" 4 +MetaCPAN +.Sp + +.IP "\(bu" 4 +Search \s-1CPAN\s0 +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.PP +The source code is available on Git Hub: + +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1990\-2012 by Larry Wall and others. +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/TAP%3A%3ABase.3 b/data/miniconda3/man/man3/TAP%3A%3ABase.3 new file mode 100644 index 0000000000000000000000000000000000000000..bf29934fb4cea0d4f7897f19d419c6ced449df6b --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3ABase.3 @@ -0,0 +1,188 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Base 3" +.TH TAP::Base 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Base \- Base class that provides common functionality to TAP::Parser +and TAP::Harness +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package TAP::Whatever; +\& +\& use base \*(AqTAP::Base\*(Aq; +\& +\& # ... later ... +\& +\& my $thing = TAP::Whatever\->new(); +\& +\& $thing\->callback( event => sub { +\& # do something interesting +\& } ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Base\*(C'\fR provides callback management. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`callback\*(C'\fI\fR +.IX Subsection "callback" +.PP +Install a callback for a named event. +.PP +\fI\f(CI\*(C`get_time\*(C'\fI\fR +.IX Subsection "get_time" +.PP +Return the current time using Time::HiRes if available. +.PP +\fI\f(CI\*(C`time_is_hires\*(C'\fI\fR +.IX Subsection "time_is_hires" +.PP +Return true if the time returned by get_time is high resolution (i.e. if Time::HiRes is available). +.PP +\fI\f(CI\*(C`get_times\*(C'\fI\fR +.IX Subsection "get_times" +.PP +Return array reference of the four-element list of \s-1CPU\s0 seconds, +as with \*(L"times\*(R" in perlfunc. diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ABase.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ABase.3 new file mode 100644 index 0000000000000000000000000000000000000000..4ac0574521d2cbe8dca372b00cb6108d9191c87f --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ABase.3 @@ -0,0 +1,275 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Base 3" +.TH TAP::Formatter::Base 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Base \- Base class for harness output delegates +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides console orientated output formatting for TAP::Harness. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Formatter::Console; +\& my $harness = TAP::Formatter::Console\->new( \e%args ); +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 4 +\& my %args = ( +\& verbose => 1, +\& ) +\& my $harness = TAP::Formatter::Console\->new( \e%args ); +.Ve +.PP +The constructor returns a new \f(CW\*(C`TAP::Formatter::Console\*(C'\fR object. If +a TAP::Harness is created with no \f(CW\*(C`formatter\*(C'\fR a +\&\f(CW\*(C`TAP::Formatter::Console\*(C'\fR is automatically created. If any of the +following options were given to TAP::Harness\->new they well be passed to +this constructor which accepts an optional hashref whose allowed keys are: +.IP "\(bu" 4 +\&\f(CW\*(C`verbosity\*(C'\fR +.Sp +Set the verbosity level. +.IP "\(bu" 4 +\&\f(CW\*(C`verbose\*(C'\fR +.Sp +Printing individual test results to \s-1STDOUT.\s0 +.IP "\(bu" 4 +\&\f(CW\*(C`timer\*(C'\fR +.Sp +Append run time for each test to output. Uses Time::HiRes if available. +.IP "\(bu" 4 +\&\f(CW\*(C`failures\*(C'\fR +.Sp +Show test failures (this is a no-op if \f(CW\*(C`verbose\*(C'\fR is selected). +.IP "\(bu" 4 +\&\f(CW\*(C`comments\*(C'\fR +.Sp +Show test comments (this is a no-op if \f(CW\*(C`verbose\*(C'\fR is selected). +.IP "\(bu" 4 +\&\f(CW\*(C`quiet\*(C'\fR +.Sp +Suppressing some test output (mostly failures while tests are running). +.IP "\(bu" 4 +\&\f(CW\*(C`really_quiet\*(C'\fR +.Sp +Suppressing everything but the tests summary. +.IP "\(bu" 4 +\&\f(CW\*(C`silent\*(C'\fR +.Sp +Suppressing all output. +.IP "\(bu" 4 +\&\f(CW\*(C`errors\*(C'\fR +.Sp +If parse errors are found in the \s-1TAP\s0 output, a note of this will be made +in the summary report. To see all of the parse errors, set this argument to +true: +.Sp +.Vb 1 +\& errors => 1 +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`directives\*(C'\fR +.Sp +If set to a true value, only test results with directives will be displayed. +This overrides other settings such as \f(CW\*(C`verbose\*(C'\fR, \f(CW\*(C`failures\*(C'\fR, or \f(CW\*(C`comments\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`stdout\*(C'\fR +.Sp +A filehandle for catching standard output. +.IP "\(bu" 4 +\&\f(CW\*(C`color\*(C'\fR +.Sp +If defined specifies whether color output is desired. If \f(CW\*(C`color\*(C'\fR is not +defined it will default to color output if color support is available on +the current platform and output is not being redirected. +.IP "\(bu" 4 +\&\f(CW\*(C`jobs\*(C'\fR +.Sp +The number of concurrent jobs this formatter will handle. +.IP "\(bu" 4 +\&\f(CW\*(C`show_count\*(C'\fR +.Sp +Boolean value. If false, disables the \f(CW\*(C`X/Y\*(C'\fR test count which shows up while +tests are running. +.PP +Any keys for which the value is \f(CW\*(C`undef\*(C'\fR will be ignored. +.PP +\fI\f(CI\*(C`prepare\*(C'\fI\fR +.IX Subsection "prepare" +.PP +Called by Test::Harness before any test output is generated. +.PP +This is an advisory and may not be called in the case where tests are +being supplied to Test::Harness by an iterator. +.PP +\fI\f(CI\*(C`open_test\*(C'\fI\fR +.IX Subsection "open_test" +.PP +Called to create a new test session. A test session looks like this: +.PP +.Vb 6 +\& my $session = $formatter\->open_test( $test, $parser ); +\& while ( defined( my $result = $parser\->next ) ) { +\& $session\->result($result); +\& exit 1 if $result\->is_bailout; +\& } +\& $session\->close_test; +.Ve +.PP +\fI\f(CI\*(C`summary\*(C'\fI\fR +.IX Subsection "summary" +.PP +.Vb 1 +\& $harness\->summary( $aggregate ); +.Ve +.PP +\&\f(CW\*(C`summary\*(C'\fR prints the summary report after all tests are run. The first +argument is an aggregate to summarise. An optional second argument may +be set to a true value to indicate that the summary is being output as a +result of an interrupted test run. diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AColor.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AColor.3 new file mode 100644 index 0000000000000000000000000000000000000000..1668a1277b7313e69b1b59718353b37d218b5ea4 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AColor.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Color 3" +.TH TAP::Formatter::Color 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Color \- Run Perl test scripts with color +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Note that this harness is \fIexperimental\fR. You may not like the colors I've +chosen and I haven't yet provided an easy way to override them. +.PP +This test harness is the same as TAP::Harness, but test results are output +in color. Passing tests are printed in green. Failing tests are in red. +Skipped tests are blue on a white background and \s-1TODO\s0 tests are printed in +white. +.PP +If Term::ANSIColor cannot be found (and Win32::Console::ANSI if running +under Windows) tests will be run without color. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use TAP::Formatter::Color; +\& my $harness = TAP::Formatter::Color\->new( \e%args ); +\& $harness\->runtests(@tests); +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +The constructor returns a new \f(CW\*(C`TAP::Formatter::Color\*(C'\fR object. If +Term::ANSIColor is not installed, returns undef. +.PP +\fI\f(CI\*(C`can_color\*(C'\fI\fR +.IX Subsection "can_color" +.PP +.Vb 1 +\& Test::Formatter::Color\->can_color() +.Ve +.PP +Returns a boolean indicating whether or not this module can actually +generate colored output. This will be false if it could not load the +modules needed for the current platform. +.PP +\fI\f(CI\*(C`set_color\*(C'\fI\fR +.IX Subsection "set_color" +.PP +Set the output color. diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3AParallelSession.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3AParallelSession.3 new file mode 100644 index 0000000000000000000000000000000000000000..d3ede9841813cf11e4db037911d9057c2e165500 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3AParallelSession.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Console::ParallelSession 3" +.TH TAP::Formatter::Console::ParallelSession 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Console::ParallelSession \- Harness output delegate for parallel console output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides console orientated output formatting for TAP::Harness +when run with multiple \*(L"jobs\*(R" in TAP::Harness. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`header\*(C'\fI\fR +.IX Subsection "header" +.PP +Output test preamble +.PP +\fI\f(CI\*(C`result\*(C'\fI\fR +.IX Subsection "result" +.PP +.Vb 1 +\& Called by the harness for each line of TAP it receives . +.Ve +.PP +\fI\f(CI\*(C`clear_for_close\*(C'\fI\fR +.IX Subsection "clear_for_close" +.PP +\fI\f(CI\*(C`close_test\*(C'\fI\fR +.IX Subsection "close_test" diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3ASession.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3ASession.3 new file mode 100644 index 0000000000000000000000000000000000000000..ee2bbf064bf92f71869ffbbfe5ce8d09d63138e6 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole%3A%3ASession.3 @@ -0,0 +1,160 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Console::Session 3" +.TH TAP::Formatter::Console::Session 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Console::Session \- Harness output delegate for default console output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides console orientated output formatting for TAP::Harness. +.ie n .SS """clear_for_close""" +.el .SS "\f(CWclear_for_close\fP" +.IX Subsection "clear_for_close" +.ie n .SS """close_test""" +.el .SS "\f(CWclose_test\fP" +.IX Subsection "close_test" +.ie n .SS """header""" +.el .SS "\f(CWheader\fP" +.IX Subsection "header" +.ie n .SS """result""" +.el .SS "\f(CWresult\fP" +.IX Subsection "result" diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole.3 new file mode 100644 index 0000000000000000000000000000000000000000..6c6841bb74d86af2f8124198badfd90f0412efad --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AConsole.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Console 3" +.TH TAP::Formatter::Console 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Console \- Harness output delegate for default console output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides console orientated output formatting for TAP::Harness. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Formatter::Console; +\& my $harness = TAP::Formatter::Console\->new( \e%args ); +.Ve +.ie n .SS """open_test""" +.el .SS "\f(CWopen_test\fP" +.IX Subsection "open_test" +See TAP::Formatter::Base diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile%3A%3ASession.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile%3A%3ASession.3 new file mode 100644 index 0000000000000000000000000000000000000000..efde311a85cd4729c95116ce9545af46a95109b6 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile%3A%3ASession.3 @@ -0,0 +1,159 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::File::Session 3" +.TH TAP::Formatter::File::Session 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::File::Session \- Harness output delegate for file output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides file orientated output formatting for TAP::Harness. +It is particularly important when running with parallel tests, as it +ensures that test results are not interleaved, even when run +verbosely. +.SH "METHODS" +.IX Header "METHODS" +.SS "result" +.IX Subsection "result" +Stores results for later output, all together. +.SS "close_test" +.IX Subsection "close_test" +When the test file finishes, outputs the summary, together. diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..f11c15447050e49c425487da26b184a528c80cf5 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3AFile.3 @@ -0,0 +1,158 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::File 3" +.TH TAP::Formatter::File 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::File \- Harness output delegate for file output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This provides file orientated output formatting for TAP::Harness. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Formatter::File; +\& my $harness = TAP::Formatter::File\->new( \e%args ); +.Ve +.ie n .SS """open_test""" +.el .SS "\f(CWopen_test\fP" +.IX Subsection "open_test" +See TAP::Formatter::Base diff --git a/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ASession.3 b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ASession.3 new file mode 100644 index 0000000000000000000000000000000000000000..ceefbd2c049e9f73f941f2539db2c8cfd43c6b87 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AFormatter%3A%3ASession.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Formatter::Session 3" +.TH TAP::Formatter::Session 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Formatter::Session \- Abstract base class for harness output delegate +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 4 +\& my %args = ( +\& formatter => $self, +\& ) +\& my $harness = TAP::Formatter::Console::Session\->new( \e%args ); +.Ve +.PP +The constructor returns a new \f(CW\*(C`TAP::Formatter::Console::Session\*(C'\fR object. +.IP "\(bu" 4 +\&\f(CW\*(C`formatter\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`parser\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`name\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`show_count\*(C'\fR +.PP +\fI\f(CI\*(C`header\*(C'\fI\fR +.IX Subsection "header" +.PP +Output test preamble +.PP +\fI\f(CI\*(C`result\*(C'\fI\fR +.IX Subsection "result" +.PP +Called by the harness for each line of \s-1TAP\s0 it receives. +.PP +\fI\f(CI\*(C`close_test\*(C'\fI\fR +.IX Subsection "close_test" +.PP +Called to close a test session. +.PP +\fI\f(CI\*(C`clear_for_close\*(C'\fI\fR +.IX Subsection "clear_for_close" +.PP +Called by \f(CW\*(C`close_test\*(C'\fR to clear the line showing test progress, or the parallel +test ruler, prior to printing the final test result. +.PP +\fI\f(CI\*(C`time_report\*(C'\fI\fR +.IX Subsection "time_report" +.PP +Return a formatted string about the elapsed (wall-clock) time +and about the consumed \s-1CPU\s0 time. diff --git a/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3ABeyond.3 b/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3ABeyond.3 new file mode 100644 index 0000000000000000000000000000000000000000..bf3cc48ce2d2cf7b01b3bb3dfa4611542edb6120 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3ABeyond.3 @@ -0,0 +1,611 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Harness::Beyond 3" +.TH TAP::Harness::Beyond 3 "2020-12-18" "perl v5.32.1" "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" +Test::Harness::Beyond \- Beyond make test +.SH "Beyond make test" +.IX Header "Beyond make test" +Test::Harness is responsible for running test scripts, analysing +their output and reporting success or failure. When I type +\&\fImake test\fR (or \fI./Build test\fR) for a module, Test::Harness is usually +used to run the tests (not all modules use Test::Harness but the +majority do). +.PP +To start exploring some of the features of Test::Harness I need to +switch from \fImake test\fR to the \fIprove\fR command (which ships with +Test::Harness). For the following examples I'll also need a recent +version of Test::Harness installed; 3.14 is current as I write. +.PP +For the examples I'm going to assume that we're working with a +\&'normal' Perl module distribution. Specifically I'll assume that +typing \fImake\fR or \fI./Build\fR causes the built, ready-to-install module +code to be available below ./blib/lib and ./blib/arch and that +there's a directory called 't' that contains our tests. Test::Harness +isn't hardwired to that configuration but it saves me from explaining +which files live where for each example. +.PP +Back to \fIprove\fR; like \fImake test\fR it runs a test suite \- but it +provides far more control over which tests are executed, in what +order and how their results are reported. Typically \fImake test\fR +runs all the test scripts below the 't' directory. To do the same +thing with prove I type: +.PP +.Vb 1 +\& prove \-rb t +.Ve +.PP +The switches here are \-r to recurse into any directories below 't' +and \-b which adds ./blib/lib and ./blib/arch to Perl's include path +so that the tests can find the code they will be testing. If I'm +testing a module of which an earlier version is already installed +I need to be careful about the include path to make sure I'm not +running my tests against the installed version rather than the new +one that I'm working on. +.PP +Unlike \fImake test\fR, typing \fIprove\fR doesn't automatically rebuild +my module. If I forget to make before prove I will be testing against +older versions of those files \- which inevitably leads to confusion. +I either get into the habit of typing +.PP +.Vb 1 +\& make && prove \-rb t +.Ve +.PP +or \- if I have no \s-1XS\s0 code that needs to be built I use the modules +below \fIlib\fR instead +.PP +.Vb 1 +\& prove \-Ilib \-r t +.Ve +.PP +So far I've shown you nothing that \fImake test\fR doesn't do. Let's +fix that. +.SS "Saved State" +.IX Subsection "Saved State" +If I have failing tests in a test suite that consists of more than +a handful of scripts and takes more than a few seconds to run it +rapidly becomes tedious to run the whole test suite repeatedly as +I track down the problems. +.PP +I can tell prove just to run the tests that are failing like this: +.PP +.Vb 1 +\& prove \-b t/this_fails.t t/so_does_this.t +.Ve +.PP +That speeds things up but I have to make a note of which tests are +failing and make sure that I run those tests. Instead I can use +prove's \-\-state switch and have it keep track of failing tests for +me. First I do a complete run of the test suite and tell prove to +save the results: +.PP +.Vb 1 +\& prove \-rb \-\-state=save t +.Ve +.PP +That stores a machine readable summary of the test run in a file +called '.prove' in the current directory. If I have failures I can +then run just the failing scripts like this: +.PP +.Vb 1 +\& prove \-b \-\-state=failed +.Ve +.PP +I can also tell prove to save the results again so that it updates +its idea of which tests failed: +.PP +.Vb 1 +\& prove \-b \-\-state=failed,save +.Ve +.PP +As soon as one of my failing tests passes it will be removed from +the list of failed tests. Eventually I fix them all and prove can +find no failing tests to run: +.PP +.Vb 2 +\& Files=0, Tests=0, 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) +\& Result: NOTESTS +.Ve +.PP +As I work on a particular part of my module it's most likely that +the tests that cover that code will fail. I'd like to run the whole +test suite but have it prioritize these 'hot' tests. I can tell +prove to do this: +.PP +.Vb 1 +\& prove \-rb \-\-state=hot,save t +.Ve +.PP +All the tests will run but those that failed most recently will be +run first. If no tests have failed since I started saving state all +tests will run in their normal order. This combines full test +coverage with early notification of failures. +.PP +The \-\-state switch supports a number of options; for example to run +failed tests first followed by all remaining tests ordered by the +timestamps of the test scripts \- and save the results \- I can use +.PP +.Vb 1 +\& prove \-rb \-\-state=failed,new,save t +.Ve +.PP +See the prove documentation (type prove \-\-man) for the full list +of state options. +.PP +When I tell prove to save state it writes a file called '.prove' +('_prove' on Windows) in the current directory. It's a \s-1YAML\s0 document +so it's quite easy to write tools of your own that work on the saved +test state \- but the format isn't officially documented so it might +change without (much) warning in the future. +.SS "Parallel Testing" +.IX Subsection "Parallel Testing" +If my tests take too long to run I may be able to speed them up by +running multiple test scripts in parallel. This is particularly +effective if the tests are I/O bound or if I have multiple \s-1CPU\s0 +cores. I tell prove to run my tests in parallel like this: +.PP +.Vb 1 +\& prove \-rb \-j 9 t +.Ve +.PP +The \-j switch enables parallel testing; the number that follows it +is the maximum number of tests to run in parallel. Sometimes tests +that pass when run sequentially will fail when run in parallel. For +example if two different test scripts use the same temporary file +or attempt to listen on the same socket I'll have problems running +them in parallel. If I see unexpected failures I need to check my +tests to work out which of them are trampling on the same resource +and rename temporary files or add locks as appropriate. +.PP +To get the most performance benefit I want to have the test scripts +that take the longest to run start first \- otherwise I'll be waiting +for the one test that takes nearly a minute to complete after all +the others are done. I can use the \-\-state switch to run the tests +in slowest to fastest order: +.PP +.Vb 1 +\& prove \-rb \-j 9 \-\-state=slow,save t +.Ve +.SS "Non-Perl Tests" +.IX Subsection "Non-Perl Tests" +The Test Anything Protocol (http://testanything.org/) isn't just +for Perl. Just about any language can be used to write tests that +output \s-1TAP.\s0 There are \s-1TAP\s0 based testing libraries for C, \*(C+, \s-1PHP,\s0 +Python and many others. If I can't find a \s-1TAP\s0 library for my language +of choice it's easy to generate valid \s-1TAP.\s0 It looks like this: +.PP +.Vb 4 +\& 1..3 +\& ok 1 \- init OK +\& ok 2 \- opened file +\& not ok 3 \- appended to file +.Ve +.PP +The first line is the plan \- it specifies the number of tests I'm +going to run so that it's easy to check that the test script didn't +exit before running all the expected tests. The following lines are +the test results \- 'ok' for pass, 'not ok' for fail. Each test has +a number and, optionally, a description. And that's it. Any language +that can produce output like that on \s-1STDOUT\s0 can be used to write +tests. +.PP +Recently I've been rekindling a two-decades-old interest in Forth. +Evidently I have a masochistic streak that even Perl can't satisfy. +I want to write tests in Forth and run them using prove (you can +find my gforth \s-1TAP\s0 experiments at +https://svn.hexten.net/andy/Forth/Testing/). I can use the \-\-exec +switch to tell prove to run the tests using gforth like this: +.PP +.Vb 1 +\& prove \-r \-\-exec gforth t +.Ve +.PP +Alternately, if the language used to write my tests allows a shebang +line I can use that to specify the interpreter. Here's a test written +in \s-1PHP:\s0 +.PP +.Vb 6 +\& #!/usr/bin/php +\& +.Ve +.PP +If I save that as t/phptest.t the shebang line will ensure that it +runs correctly along with all my other tests. +.SS "Mixing it up" +.IX Subsection "Mixing it up" +Subtle interdependencies between test programs can mask problems \- +for example an earlier test may neglect to remove a temporary file +that affects the behaviour of a later test. To find this kind of +problem I use the \-\-shuffle and \-\-reverse options to run my tests +in random or reversed order. +.SS "Rolling My Own" +.IX Subsection "Rolling My Own" +If I need a feature that prove doesn't provide I can easily write my own. +.PP +Typically you'll want to change how \s-1TAP\s0 gets \fIinput\fR into and \fIoutput\fR +from the parser. App::Prove supports arbitrary plugins, and TAP::Harness +supports custom \fIformatters\fR and \fIsource handlers\fR that you can load using +either prove or Module::Build; there are many examples to base mine on. +For more details see App::Prove, TAP::Parser::SourceHandler, and +TAP::Formatter::Base. +.PP +If writing a plugin is not enough, you can write your own test harness; one of +the motives for the 3.00 rewrite of Test::Harness was to make it easier to +subclass and extend. +.PP +The Test::Harness module is a compatibility wrapper around TAP::Harness. +For new applications I should use TAP::Harness directly. As we'll +see, prove uses TAP::Harness. +.PP +When I run prove it processes its arguments, figures out which test +scripts to run and then passes control to TAP::Harness to run the +tests, parse, analyse and present the results. By subclassing +TAP::Harness I can customise many aspects of the test run. +.PP +I want to log my test results in a database so I can track them +over time. To do this I override the summary method in TAP::Harness. +I start with a simple prototype that dumps the results as a \s-1YAML\s0 +document: +.PP +.Vb 1 +\& package My::TAP::Harness; +\& +\& use base \*(AqTAP::Harness\*(Aq; +\& use YAML; +\& +\& sub summary { +\& my ( $self, $aggregate ) = @_; +\& print Dump( $aggregate ); +\& $self\->SUPER::summary( $aggregate ); +\& } +\& +\& 1; +.Ve +.PP +I need to tell prove to use my My::TAP::Harness. If My::TAP::Harness +is on Perl's \f(CW@INC\fR include path I can +.PP +.Vb 1 +\& prove \-\-harness=My::TAP::Harness \-rb t +.Ve +.PP +If I don't have My::TAP::Harness installed on \f(CW@INC\fR I need to provide +the correct path to perl when I run prove: +.PP +.Vb 1 +\& perl \-Ilib \`which prove\` \-\-harness=My::TAP::Harness \-rb t +.Ve +.PP +I can incorporate these options into my own version of prove. It's +pretty simple. Most of the work of prove is handled by App::Prove. +The important code in prove is just: +.PP +.Vb 1 +\& use App::Prove; +\& +\& my $app = App::Prove\->new; +\& $app\->process_args(@ARGV); +\& exit( $app\->run ? 0 : 1 ); +.Ve +.PP +If I write a subclass of App::Prove I can customise any aspect of +the test runner while inheriting all of prove's behaviour. Here's +myprove: +.PP +.Vb 2 +\& #!/usr/bin/env perl use lib qw( lib ); # Add ./lib to @INC +\& use App::Prove; +\& +\& my $app = App::Prove\->new; +\& +\& # Use custom TAP::Harness subclass +\& $app\->harness( \*(AqMy::TAP::Harness\*(Aq ); +\& +\& $app\->process_args( @ARGV ); exit( $app\->run ? 0 : 1 ); +.Ve +.PP +Now I can run my tests like this +.PP +.Vb 1 +\& ./myprove \-rb t +.Ve +.SS "Deeper Customisation" +.IX Subsection "Deeper Customisation" +Now that I know how to subclass and replace TAP::Harness I can +replace any other part of the harness. To do that I need to know +which classes are responsible for which functionality. Here's a +brief guided tour; the default class for each component is shown +in parentheses. Normally any replacements I write will be subclasses +of these default classes. +.PP +When I run my tests TAP::Harness creates a scheduler +(TAP::Parser::Scheduler) to work out the running order for the +tests, an aggregator (TAP::Parser::Aggregator) to collect and analyse +the test results and a formatter (TAP::Formatter::Console) to display +those results. +.PP +If I'm running my tests in parallel there may also be a multiplexer +(TAP::Parser::Multiplexer) \- the component that allows multiple +tests to run simultaneously. +.PP +Once it has created those helpers TAP::Harness starts running the +tests. For each test it creates a new parser (TAP::Parser) which +is responsible for running the test script and parsing its output. +.PP +To replace any of these components I call one of these harness +methods with the name of the replacement class: +.PP +.Vb 5 +\& aggregator_class +\& formatter_class +\& multiplexer_class +\& parser_class +\& scheduler_class +.Ve +.PP +For example, to replace the aggregator I would +.PP +.Vb 1 +\& $harness\->aggregator_class( \*(AqMy::Aggregator\*(Aq ); +.Ve +.PP +Alternately I can supply the names of my substitute classes to the +TAP::Harness constructor: +.PP +.Vb 3 +\& my $harness = TAP::Harness\->new( +\& { aggregator_class => \*(AqMy::Aggregator\*(Aq } +\& ); +.Ve +.PP +If I need to reach even deeper into the internals of the harness I +can replace the classes that TAP::Parser uses to execute test scripts +and tokenise their output. Before running a test script TAP::Parser +creates a grammar (TAP::Parser::Grammar) to decode the raw \s-1TAP\s0 into +tokens, a result factory (TAP::Parser::ResultFactory) to turn the +decoded \s-1TAP\s0 results into objects and, depending on whether it's +running a test script or reading \s-1TAP\s0 from a file, scalar or array +a source or an iterator (TAP::Parser::IteratorFactory). +.PP +Each of these objects may be replaced by calling one of these parser +methods: +.PP +.Vb 5 +\& source_class +\& perl_source_class +\& grammar_class +\& iterator_factory_class +\& result_factory_class +.Ve +.SS "Callbacks" +.IX Subsection "Callbacks" +As an alternative to subclassing the components I need to change I +can attach callbacks to the default classes. TAP::Harness exposes +these callbacks: +.PP +.Vb 5 +\& parser_args Tweak the parameters used to create the parser +\& made_parser Just made a new parser +\& before_runtests About to run tests +\& after_runtests Have run all tests +\& after_test Have run an individual test script +.Ve +.PP +TAP::Parser also supports callbacks; bailout, comment, plan, test, +unknown, version and yaml are called for the corresponding \s-1TAP\s0 +result types, \s-1ALL\s0 is called for all results, \s-1ELSE\s0 is called for all +results for which a named callback is not installed and \s-1EOF\s0 is +called once at the end of each \s-1TAP\s0 stream. +.PP +To install a callback I pass the name of the callback and a subroutine +reference to TAP::Harness or TAP::Parser's callback method: +.PP +.Vb 3 +\& $harness\->callback( after_test => sub { +\& my ( $script, $desc, $parser ) = @_; +\& } ); +.Ve +.PP +I can also pass callbacks to the constructor: +.PP +.Vb 8 +\& my $harness = TAP::Harness\->new({ +\& callbacks => { +\& after_test => sub { +\& my ( $script, $desc, $parser ) = @_; +\& # Do something interesting here +\& } +\& } +\& }); +.Ve +.PP +When it comes to altering the behaviour of the test harness there's +more than one way to do it. Which way is best depends on my +requirements. In general if I only want to observe test execution +without changing the harness' behaviour (for example to log test +results to a database) I choose callbacks. If I want to make the +harness behave differently subclassing gives me more control. +.SS "Parsing \s-1TAP\s0" +.IX Subsection "Parsing TAP" +Perhaps I don't need a complete test harness. If I already have a +\&\s-1TAP\s0 test log that I need to parse all I need is TAP::Parser and the +various classes it depends upon. Here's the code I need to run a +test and parse its \s-1TAP\s0 output +.PP +.Vb 1 +\& use TAP::Parser; +\& +\& my $parser = TAP::Parser\->new( { source => \*(Aqt/simple.t\*(Aq } ); +\& while ( my $result = $parser\->next ) { +\& print $result\->as_string, "\en"; +\& } +.Ve +.PP +Alternately I can pass an open filehandle as source and have the +parser read from that rather than attempting to run a test script: +.PP +.Vb 6 +\& open my $tap, \*(Aq<\*(Aq, \*(Aqtests.tap\*(Aq +\& or die "Can\*(Aqt read TAP transcript ($!)\en"; +\& my $parser = TAP::Parser\->new( { source => $tap } ); +\& while ( my $result = $parser\->next ) { +\& print $result\->as_string, "\en"; +\& } +.Ve +.PP +This approach is useful if I need to convert my \s-1TAP\s0 based test +results into some other representation. See TAP::Convert::TET +(http://search.cpan.org/dist/TAP\-Convert\-TET/) for an example of +this approach. +.SS "Getting Support" +.IX Subsection "Getting Support" +The Test::Harness developers hang out on the tapx-dev mailing +list[1]. For discussion of general, language independent \s-1TAP\s0 issues +there's the tap\-l[2] list. Finally there's a wiki dedicated to the +Test Anything Protocol[3]. Contributions to the wiki, patches and +suggestions are all welcome. +.PP +[1] +[2] +[3] diff --git a/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3AEnv.3 b/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3AEnv.3 new file mode 100644 index 0000000000000000000000000000000000000000..8f04904701c96e5954f40b69cd529d4ec1a9f54e --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AHarness%3A%3AEnv.3 @@ -0,0 +1,225 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Harness::Env 3" +.TH TAP::Harness::Env 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Harness::Env \- Parsing harness related environmental variables where appropriate +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& my $harness = TAP::Harness::Env\->create(\e%extra_args) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module implements the environmental variables that Test::Harness uses with TAP::Harness, and instantiates the appropriate class with the appropriate arguments. +.SH "METHODS" +.IX Header "METHODS" +.IP "\(bu" 4 +create( \e%args ) +.Sp +This function reads the environment and generates an appropriate argument hash from it. If given any arguments in \f(CW%extra_args\fR, these will override the environmental defaults. In accepts \f(CW\*(C`harness_class\*(C'\fR (which defaults to \f(CW\*(C`TAP::Harness\*(C'\fR), and any argument the harness class accepts. +.SH "ENVIRONMENTAL VARIABLES" +.IX Header "ENVIRONMENTAL VARIABLES" +.ie n .IP """HARNESS_PERL_SWITCHES""" 4 +.el .IP "\f(CWHARNESS_PERL_SWITCHES\fR" 4 +.IX Item "HARNESS_PERL_SWITCHES" +Setting this adds perl command line switches to each test file run. +.Sp +For example, \f(CW\*(C`HARNESS_PERL_SWITCHES=\-T\*(C'\fR will turn on taint mode. +\&\f(CW\*(C`HARNESS_PERL_SWITCHES=\-MDevel::Cover\*(C'\fR will run \f(CW\*(C`Devel::Cover\*(C'\fR for +each test. +.ie n .IP """HARNESS_VERBOSE""" 4 +.el .IP "\f(CWHARNESS_VERBOSE\fR" 4 +.IX Item "HARNESS_VERBOSE" +If true, \f(CW\*(C`TAP::Harness\*(C'\fR will output the verbose results of running +its tests. +.ie n .IP """HARNESS_SUBCLASS""" 4 +.el .IP "\f(CWHARNESS_SUBCLASS\fR" 4 +.IX Item "HARNESS_SUBCLASS" +Specifies a TAP::Harness subclass to be used in place of TAP::Harness. +.ie n .IP """HARNESS_OPTIONS""" 4 +.el .IP "\f(CWHARNESS_OPTIONS\fR" 4 +.IX Item "HARNESS_OPTIONS" +Provide additional options to the harness. Currently supported options are: +.RS 4 +.ie n .IP """j""" 4 +.el .IP "\f(CWj\fR" 4 +.IX Item "j" +Run (default 9) parallel jobs. +.ie n .IP """c""" 4 +.el .IP "\f(CWc\fR" 4 +.IX Item "c" +Try to color output. See \*(L"new\*(R" in TAP::Formatter::Base. +.ie n .IP """a""" 4 +.el .IP "\f(CWa\fR" 4 +.IX Item "a" +Will use TAP::Harness::Archive as the harness class, and save the \s-1TAP\s0 to +\&\f(CW\*(C`file.tgz\*(C'\fR +.ie n .IP """fPackage\-With\-Dashes""" 4 +.el .IP "\f(CWfPackage\-With\-Dashes\fR" 4 +.IX Item "fPackage-With-Dashes" +Set the formatter_class of the harness being run. Since the \f(CW\*(C`HARNESS_OPTIONS\*(C'\fR +is seperated by \f(CW\*(C`:\*(C'\fR, we use \f(CW\*(C`\-\*(C'\fR instead. +.RE +.RS 4 +.Sp +Multiple options may be separated by colons: +.Sp +.Vb 1 +\& HARNESS_OPTIONS=j9:c make test +.Ve +.RE +.ie n .IP """HARNESS_TIMER""" 4 +.el .IP "\f(CWHARNESS_TIMER\fR" 4 +.IX Item "HARNESS_TIMER" +Setting this to true will make the harness display the number of +milliseconds each test took. You can also use \fIprove\fR's \f(CW\*(C`\-\-timer\*(C'\fR +switch. +.ie n .IP """HARNESS_COLOR""" 4 +.el .IP "\f(CWHARNESS_COLOR\fR" 4 +.IX Item "HARNESS_COLOR" +Attempt to produce color output. +.ie n .IP """HARNESS_IGNORE_EXIT""" 4 +.el .IP "\f(CWHARNESS_IGNORE_EXIT\fR" 4 +.IX Item "HARNESS_IGNORE_EXIT" +If set to a true value instruct \f(CW\*(C`TAP::Parser\*(C'\fR to ignore exit and wait +status from test scripts. diff --git a/data/miniconda3/man/man3/TAP%3A%3AHarness.3 b/data/miniconda3/man/man3/TAP%3A%3AHarness.3 new file mode 100644 index 0000000000000000000000000000000000000000..4bec7d61c7bf15bdff25810afcb2a3ee2330a66f --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AHarness.3 @@ -0,0 +1,690 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Harness 3" +.TH TAP::Harness 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Harness \- Run test scripts with statistics +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a simple test harness which allows tests to be run and results +automatically aggregated and output to \s-1STDOUT.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use TAP::Harness; +\& my $harness = TAP::Harness\->new( \e%args ); +\& $harness\->runtests(@tests); +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 5 +\& my %args = ( +\& verbosity => 1, +\& lib => [ \*(Aqlib\*(Aq, \*(Aqblib/lib\*(Aq, \*(Aqblib/arch\*(Aq ], +\& ) +\& my $harness = TAP::Harness\->new( \e%args ); +.Ve +.PP +The constructor returns a new \f(CW\*(C`TAP::Harness\*(C'\fR object. It accepts an +optional hashref whose allowed keys are: +.IP "\(bu" 4 +\&\f(CW\*(C`verbosity\*(C'\fR +.Sp +Set the verbosity level: +.Sp +.Vb 6 +\& 1 verbose Print individual test results to STDOUT. +\& 0 normal +\& \-1 quiet Suppress some test output (mostly failures +\& while tests are running). +\& \-2 really quiet Suppress everything but the tests summary. +\& \-3 silent Suppress everything. +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`timer\*(C'\fR +.Sp +Append run time for each test to output. Uses Time::HiRes if +available. +.IP "\(bu" 4 +\&\f(CW\*(C`failures\*(C'\fR +.Sp +Show test failures (this is a no-op if \f(CW\*(C`verbose\*(C'\fR is selected). +.IP "\(bu" 4 +\&\f(CW\*(C`comments\*(C'\fR +.Sp +Show test comments (this is a no-op if \f(CW\*(C`verbose\*(C'\fR is selected). +.IP "\(bu" 4 +\&\f(CW\*(C`show_count\*(C'\fR +.Sp +Update the running test count during testing. +.IP "\(bu" 4 +\&\f(CW\*(C`normalize\*(C'\fR +.Sp +Set to a true value to normalize the \s-1TAP\s0 that is emitted in verbose modes. +.IP "\(bu" 4 +\&\f(CW\*(C`lib\*(C'\fR +.Sp +Accepts a scalar value or array ref of scalar values indicating which +paths to allowed libraries should be included if Perl tests are +executed. Naturally, this only makes sense in the context of tests +written in Perl. +.IP "\(bu" 4 +\&\f(CW\*(C`switches\*(C'\fR +.Sp +Accepts a scalar value or array ref of scalar values indicating which +switches should be included if Perl tests are executed. Naturally, this +only makes sense in the context of tests written in Perl. +.IP "\(bu" 4 +\&\f(CW\*(C`test_args\*(C'\fR +.Sp +A reference to an \f(CW@INC\fR style array of arguments to be passed to each +test program. +.Sp +.Vb 1 +\& test_args => [\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq], +.Ve +.Sp +if you want to pass different arguments to each test then you should +pass a hash of arrays, keyed by the alias for each test: +.Sp +.Vb 4 +\& test_args => { +\& my_test => [\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq], +\& other_test => [\*(Aqbaz\*(Aq], +\& } +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`color\*(C'\fR +.Sp +Attempt to produce color output. +.IP "\(bu" 4 +\&\f(CW\*(C`exec\*(C'\fR +.Sp +Typically, Perl tests are run through this. However, anything which +spits out \s-1TAP\s0 is fine. You can use this argument to specify the name of +the program (and optional switches) to run your tests with: +.Sp +.Vb 1 +\& exec => [\*(Aq/usr/bin/ruby\*(Aq, \*(Aq\-w\*(Aq] +.Ve +.Sp +You can also pass a subroutine reference in order to determine and +return the proper program to run based on a given test script. The +subroutine reference should expect the TAP::Harness object itself as the +first argument, and the file name as the second argument. It should +return an array reference containing the command to be run and including +the test file name. It can also simply return \f(CW\*(C`undef\*(C'\fR, in which case +TAP::Harness will fall back on executing the test script in Perl: +.Sp +.Vb 2 +\& exec => sub { +\& my ( $harness, $test_file ) = @_; +\& +\& # Let Perl tests run. +\& return undef if $test_file =~ /[.]t$/; +\& return [ qw( /usr/bin/ruby \-w ), $test_file ] +\& if $test_file =~ /[.]rb$/; +\& } +.Ve +.Sp +If the subroutine returns a scalar with a newline or a filehandle, it +will be interpreted as raw \s-1TAP\s0 or as a \s-1TAP\s0 stream, respectively. +.IP "\(bu" 4 +\&\f(CW\*(C`merge\*(C'\fR +.Sp +If \f(CW\*(C`merge\*(C'\fR is true the harness will create parsers that merge \s-1STDOUT\s0 +and \s-1STDERR\s0 together for any processes they start. +.IP "\(bu" 4 +\&\f(CW\*(C`sources\*(C'\fR +.Sp +\&\fI\s-1NEW\s0 to 3.18\fR. +.Sp +If set, \f(CW\*(C`sources\*(C'\fR must be a hashref containing the names of the +TAP::Parser::SourceHandlers to load and/or configure. The values are a +hash of configuration that will be accessible to the source handlers via +\&\*(L"config_for\*(R" in TAP::Parser::Source. +.Sp +For example: +.Sp +.Vb 5 +\& sources => { +\& Perl => { exec => \*(Aq/path/to/custom/perl\*(Aq }, +\& File => { extensions => [ \*(Aq.tap\*(Aq, \*(Aq.txt\*(Aq ] }, +\& MyCustom => { some => \*(Aqconfig\*(Aq }, +\& } +.Ve +.Sp +The \f(CW\*(C`sources\*(C'\fR parameter affects how \f(CW\*(C`source\*(C'\fR, \f(CW\*(C`tap\*(C'\fR and \f(CW\*(C`exec\*(C'\fR parameters +are handled. +.Sp +For more details, see the \f(CW\*(C`sources\*(C'\fR parameter in \*(L"new\*(R" in TAP::Parser, +TAP::Parser::Source, and TAP::Parser::IteratorFactory. +.IP "\(bu" 4 +\&\f(CW\*(C`aggregator_class\*(C'\fR +.Sp +The name of the class to use to aggregate test results. The default is +TAP::Parser::Aggregator. +.IP "\(bu" 4 +\&\f(CW\*(C`version\*(C'\fR +.Sp +\&\fI\s-1NEW\s0 to 3.22\fR. +.Sp +Assume this \s-1TAP\s0 version for TAP::Parser instead of default \s-1TAP\s0 +version 12. +.IP "\(bu" 4 +\&\f(CW\*(C`formatter_class\*(C'\fR +.Sp +The name of the class to use to format output. The default is +TAP::Formatter::Console, or TAP::Formatter::File if the output +isn't a \s-1TTY.\s0 +.IP "\(bu" 4 +\&\f(CW\*(C`multiplexer_class\*(C'\fR +.Sp +The name of the class to use to multiplex tests during parallel testing. +The default is TAP::Parser::Multiplexer. +.IP "\(bu" 4 +\&\f(CW\*(C`parser_class\*(C'\fR +.Sp +The name of the class to use to parse \s-1TAP.\s0 The default is +TAP::Parser. +.IP "\(bu" 4 +\&\f(CW\*(C`scheduler_class\*(C'\fR +.Sp +The name of the class to use to schedule test execution. The default is +TAP::Parser::Scheduler. +.IP "\(bu" 4 +\&\f(CW\*(C`formatter\*(C'\fR +.Sp +If set \f(CW\*(C`formatter\*(C'\fR must be an object that is capable of formatting the +\&\s-1TAP\s0 output. See TAP::Formatter::Console for an example. +.IP "\(bu" 4 +\&\f(CW\*(C`errors\*(C'\fR +.Sp +If parse errors are found in the \s-1TAP\s0 output, a note of this will be +made in the summary report. To see all of the parse errors, set this +argument to true: +.Sp +.Vb 1 +\& errors => 1 +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`directives\*(C'\fR +.Sp +If set to a true value, only test results with directives will be +displayed. This overrides other settings such as \f(CW\*(C`verbose\*(C'\fR or +\&\f(CW\*(C`failures\*(C'\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`ignore_exit\*(C'\fR +.Sp +If set to a true value instruct \f(CW\*(C`TAP::Parser\*(C'\fR to ignore exit and wait +status from test scripts. +.IP "\(bu" 4 +\&\f(CW\*(C`jobs\*(C'\fR +.Sp +The maximum number of parallel tests to run at any time. Which tests +can be run in parallel is controlled by \f(CW\*(C`rules\*(C'\fR. The default is to +run only one test at a time. +.IP "\(bu" 4 +\&\f(CW\*(C`rules\*(C'\fR +.Sp +A reference to a hash of rules that control which tests may be executed in +parallel. If no rules are declared and CPAN::Meta::YAML is available, +\&\f(CW\*(C`TAP::Harness\*(C'\fR attempts to load rules from a \s-1YAML\s0 file specified by the +\&\f(CW\*(C`rulesfile\*(C'\fR parameter. If no rules file exists, the default is for all +tests to be eligible to be run in parallel. +.Sp +Here some simple examples. For the full details of the data structure +and the related glob-style pattern matching, see +\&\*(L"Rules data structure\*(R" in TAP::Parser::Scheduler. +.Sp +.Vb 4 +\& # Run all tests in sequence, except those starting with "p" +\& $harness\->rules({ +\& par => \*(Aqt/p*.t\*(Aq +\& }); +\& +\& # Equivalent YAML file +\& \-\-\- +\& par: t/p*.t +\& +\& # Run all tests in parallel, except those starting with "p" +\& $harness\->rules({ +\& seq => [ +\& { seq => \*(Aqt/p*.t\*(Aq }, +\& { par => \*(Aq**\*(Aq }, +\& ], +\& }); +\& +\& # Equivalent YAML file +\& \-\-\- +\& seq: +\& \- seq: t/p*.t +\& \- par: ** +\& +\& # Run some startup tests in sequence, then some parallel tests than some +\& # teardown tests in sequence. +\& $harness\->rules({ +\& seq => [ +\& { seq => \*(Aqt/startup/*.t\*(Aq }, +\& { par => [\*(Aqt/a/*.t\*(Aq,\*(Aqt/b/*.t\*(Aq,\*(Aqt/c/*.t\*(Aq], } +\& { seq => \*(Aqt/shutdown/*.t\*(Aq }, +\& ], +\& +\& }); +\& +\& # Equivalent YAML file +\& \-\-\- +\& seq: +\& \- seq: t/startup/*.t +\& \- par: +\& \- t/a/*.t +\& \- t/b/*.t +\& \- t/c/*.t +\& \- seq: t/shutdown/*.t +.Ve +.Sp +This is an experimental feature and the interface may change. +.IP "\(bu" 4 +\&\f(CW\*(C`rulesfiles\*(C'\fR +.Sp +This specifies where to find a \s-1YAML\s0 file of test scheduling rules. If not +provided, it looks for a default file to use. It first checks for a file given +in the \f(CW\*(C`HARNESS_RULESFILE\*(C'\fR environment variable, then it checks for +\&\fItestrules.yml\fR and then \fIt/testrules.yml\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`stdout\*(C'\fR +.Sp +A filehandle for catching standard output. +.IP "\(bu" 4 +\&\f(CW\*(C`trap\*(C'\fR +.Sp +Attempt to print summary information if run is interrupted by +\&\s-1SIGINT\s0 (Ctrl-C). +.PP +Any keys for which the value is \f(CW\*(C`undef\*(C'\fR will be ignored. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`runtests\*(C'\fI\fR +.IX Subsection "runtests" +.PP +.Vb 1 +\& $harness\->runtests(@tests); +.Ve +.PP +Accepts an array of \f(CW@tests\fR to be run. This should generally be the +names of test files, but this is not required. Each element in \f(CW@tests\fR +will be passed to \f(CW\*(C`TAP::Parser::new()\*(C'\fR as a \f(CW\*(C`source\*(C'\fR. See +TAP::Parser for more information. +.PP +It is possible to provide aliases that will be displayed in place of the +test name by supplying the test as a reference to an array containing +\&\f(CW\*(C`[ $test, $alias ]\*(C'\fR: +.PP +.Vb 2 +\& $harness\->runtests( [ \*(Aqt/foo.t\*(Aq, \*(AqFoo Once\*(Aq ], +\& [ \*(Aqt/foo.t\*(Aq, \*(AqFoo Twice\*(Aq ] ); +.Ve +.PP +Normally it is an error to attempt to run the same test twice. Aliases +allow you to overcome this limitation by giving each run of the test a +unique name. +.PP +Tests will be run in the order found. +.PP +If the environment variable \f(CW\*(C`PERL_TEST_HARNESS_DUMP_TAP\*(C'\fR is defined it +should name a directory into which a copy of the raw \s-1TAP\s0 for each test +will be written. \s-1TAP\s0 is written to files named for each test. +Subdirectories will be created as needed. +.PP +Returns a TAP::Parser::Aggregator containing the test results. +.PP +\fI\f(CI\*(C`summary\*(C'\fI\fR +.IX Subsection "summary" +.PP +.Vb 1 +\& $harness\->summary( $aggregator ); +.Ve +.PP +Output the summary for a TAP::Parser::Aggregator. +.PP +\fI\f(CI\*(C`aggregate_tests\*(C'\fI\fR +.IX Subsection "aggregate_tests" +.PP +.Vb 1 +\& $harness\->aggregate_tests( $aggregate, @tests ); +.Ve +.PP +Run the named tests and display a summary of result. Tests will be run +in the order found. +.PP +Test results will be added to the supplied TAP::Parser::Aggregator. +\&\f(CW\*(C`aggregate_tests\*(C'\fR may be called multiple times to run several sets of +tests. Multiple \f(CW\*(C`Test::Harness\*(C'\fR instances may be used to pass results +to a single aggregator so that different parts of a complex test suite +may be run using different \f(CW\*(C`TAP::Harness\*(C'\fR settings. This is useful, for +example, in the case where some tests should run in parallel but others +are unsuitable for parallel execution. +.PP +.Vb 8 +\& my $formatter = TAP::Formatter::Console\->new; +\& my $ser_harness = TAP::Harness\->new( { formatter => $formatter } ); +\& my $par_harness = TAP::Harness\->new( +\& { formatter => $formatter, +\& jobs => 9 +\& } +\& ); +\& my $aggregator = TAP::Parser::Aggregator\->new; +\& +\& $aggregator\->start(); +\& $ser_harness\->aggregate_tests( $aggregator, @ser_tests ); +\& $par_harness\->aggregate_tests( $aggregator, @par_tests ); +\& $aggregator\->stop(); +\& $formatter\->summary($aggregator); +.Ve +.PP +Note that for simpler testing requirements it will often be possible to +replace the above code with a single call to \f(CW\*(C`runtests\*(C'\fR. +.PP +Each element of the \f(CW@tests\fR array is either: +.IP "\(bu" 4 +the source name of a test to run +.IP "\(bu" 4 +a reference to a [ source name, display name ] array +.PP +In the case of a perl test suite, typically \fIsource names\fR are simply the file +names of the test scripts to run. +.PP +When you supply a separate display name it becomes possible to run a +test more than once; the display name is effectively the alias by which +the test is known inside the harness. The harness doesn't care if it +runs the same test more than once when each invocation uses a +different name. +.PP +\fI\f(CI\*(C`make_scheduler\*(C'\fI\fR +.IX Subsection "make_scheduler" +.PP +Called by the harness when it needs to create a +TAP::Parser::Scheduler. Override in a subclass to provide an +alternative scheduler. \f(CW\*(C`make_scheduler\*(C'\fR is passed the list of tests +that was passed to \f(CW\*(C`aggregate_tests\*(C'\fR. +.PP +\fI\f(CI\*(C`jobs\*(C'\fI\fR +.IX Subsection "jobs" +.PP +Gets or sets the number of concurrent test runs the harness is +handling. By default, this value is 1 \*(-- for parallel testing, this +should be set higher. +.PP +\fI\f(CI\*(C`make_parser\*(C'\fI\fR +.IX Subsection "make_parser" +.PP +Make a new parser and display formatter session. Typically used and/or +overridden in subclasses. +.PP +.Vb 1 +\& my ( $parser, $session ) = $harness\->make_parser; +.Ve +.PP +\fI\f(CI\*(C`finish_parser\*(C'\fI\fR +.IX Subsection "finish_parser" +.PP +Terminate use of a parser. Typically used and/or overridden in +subclasses. The parser isn't destroyed as a result of this. +.SH "CONFIGURING" +.IX Header "CONFIGURING" +\&\f(CW\*(C`TAP::Harness\*(C'\fR is designed to be easy to configure. +.SS "Plugins" +.IX Subsection "Plugins" +\&\f(CW\*(C`TAP::Parser\*(C'\fR plugins let you change the way \s-1TAP\s0 is \fIinput\fR to and \fIoutput\fR +from the parser. +.PP +TAP::Parser::SourceHandlers handle \s-1TAP\s0 \fIinput\fR. You can configure them +and load custom handlers using the \f(CW\*(C`sources\*(C'\fR parameter to \*(L"new\*(R". +.PP +TAP::Formatters handle \s-1TAP\s0 \fIoutput\fR. You can load custom formatters by +using the \f(CW\*(C`formatter_class\*(C'\fR parameter to \*(L"new\*(R". To configure a formatter, +you currently need to instantiate it outside of TAP::Harness and pass it in +with the \f(CW\*(C`formatter\*(C'\fR parameter to \*(L"new\*(R". This \fImay\fR be addressed by adding +a \fIformatters\fR parameter to \*(L"new\*(R" in the future. +.ie n .SS """Module::Build""" +.el .SS "\f(CWModule::Build\fP" +.IX Subsection "Module::Build" +Module::Build version \f(CW0.30\fR supports \f(CW\*(C`TAP::Harness\*(C'\fR. +.PP +To load \f(CW\*(C`TAP::Harness\*(C'\fR plugins, you'll need to use the \f(CW\*(C`tap_harness_args\*(C'\fR +parameter to \f(CW\*(C`new\*(C'\fR, typically from your \f(CW\*(C`Build.PL\*(C'\fR. For example: +.PP +.Vb 10 +\& Module::Build\->new( +\& module_name => \*(AqMyApp\*(Aq, +\& test_file_exts => [qw(.t .tap .txt)], +\& use_tap_harness => 1, +\& tap_harness_args => { +\& sources => { +\& MyCustom => {}, +\& File => { +\& extensions => [\*(Aq.tap\*(Aq, \*(Aq.txt\*(Aq], +\& }, +\& }, +\& formatter_class => \*(AqTAP::Formatter::HTML\*(Aq, +\& }, +\& build_requires => { +\& \*(AqModule::Build\*(Aq => \*(Aq0.30\*(Aq, +\& \*(AqTAP::Harness\*(Aq => \*(Aq3.18\*(Aq, +\& }, +\& )\->create_build_script; +.Ve +.PP +See \*(L"new\*(R" +.ie n .SS """ExtUtils::MakeMaker""" +.el .SS "\f(CWExtUtils::MakeMaker\fP" +.IX Subsection "ExtUtils::MakeMaker" +ExtUtils::MakeMaker does not support TAP::Harness out-of-the-box. +.ie n .SS """prove""" +.el .SS "\f(CWprove\fP" +.IX Subsection "prove" +prove supports \f(CW\*(C`TAP::Harness\*(C'\fR plugins, and has a plugin system of its +own. See \*(L"\s-1FORMATTERS\*(R"\s0 in prove, \*(L"\s-1SOURCE HANDLERS\*(R"\s0 in prove and App::Prove +for more details. +.SH "WRITING PLUGINS" +.IX Header "WRITING PLUGINS" +If you can't configure \f(CW\*(C`TAP::Harness\*(C'\fR to do what you want, and you can't find +an existing plugin, consider writing one. +.PP +The two primary use cases supported by TAP::Harness for plugins are \fIinput\fR +and \fIoutput\fR: +.IP "Customize how \s-1TAP\s0 gets into the parser" 2 +.IX Item "Customize how TAP gets into the parser" +To do this, you can either extend an existing TAP::Parser::SourceHandler, +or write your own. It's a pretty simple \s-1API,\s0 and they can be loaded and +configured using the \f(CW\*(C`sources\*(C'\fR parameter to \*(L"new\*(R". +.IP "Customize how \s-1TAP\s0 results are output from the parser" 2 +.IX Item "Customize how TAP results are output from the parser" +To do this, you can either extend an existing TAP::Formatter, or write your +own. Writing formatters are a bit more involved than writing a +\&\fISourceHandler\fR, as you'll need to understand the TAP::Parser \s-1API.\s0 A +good place to start is by understanding how \*(L"aggregate_tests\*(R" works. +.Sp +Custom formatters can be loaded configured using the \f(CW\*(C`formatter_class\*(C'\fR +parameter to \*(L"new\*(R". +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +If you can't configure \f(CW\*(C`TAP::Harness\*(C'\fR to do exactly what you want, and writing +a plugin isn't an option, consider extending it. It is designed to be (mostly) +easy to subclass, though the cases when sub-classing is necessary should be few +and far between. +.SS "Methods" +.IX Subsection "Methods" +The following methods are ones you may wish to override if you want to +subclass \f(CW\*(C`TAP::Harness\*(C'\fR. +.ie n .IP """new""" 4 +.el .IP "``new''" 4 +.IX Item "new" +.PD 0 +.ie n .IP """runtests""" 4 +.el .IP "``runtests''" 4 +.IX Item "runtests" +.ie n .IP """summary""" 4 +.el .IP "``summary''" 4 +.IX Item "summary" +.PD +.SH "REPLACING" +.IX Header "REPLACING" +If you like the \f(CW\*(C`prove\*(C'\fR utility and TAP::Parser but you want your +own harness, all you need to do is write one and provide \f(CW\*(C`new\*(C'\fR and +\&\f(CW\*(C`runtests\*(C'\fR methods. Then you can use the \f(CW\*(C`prove\*(C'\fR utility like so: +.PP +.Vb 1 +\& prove \-\-harness My::Test::Harness +.Ve +.PP +Note that while \f(CW\*(C`prove\*(C'\fR accepts a list of tests (or things to be +tested), \f(CW\*(C`new\*(C'\fR has a fairly rich set of arguments. You'll probably want +to read over this code carefully to see how all of them are being used. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::Harness diff --git a/data/miniconda3/man/man3/TAP%3A%3AObject.3 b/data/miniconda3/man/man3/TAP%3A%3AObject.3 new file mode 100644 index 0000000000000000000000000000000000000000..57ee4b243834b4972f12ae430e5cb002ccda5488 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AObject.3 @@ -0,0 +1,231 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Object 3" +.TH TAP::Object 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Object \- Base class that provides common functionality to all "TAP::*" modules +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package TAP::Whatever; +\& +\& use strict; +\& +\& use base \*(AqTAP::Object\*(Aq; +\& +\& # new() implementation by TAP::Object +\& sub _initialize { +\& my ( $self, @args) = @_; +\& # initialize your object +\& return $self; +\& } +\& +\& # ... later ... +\& my $obj = TAP::Whatever\->new(@args); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Object\*(C'\fR provides a default constructor and exception model for all +\&\f(CW\*(C`TAP::*\*(C'\fR classes. Exceptions are raised using Carp. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create a new object. Any arguments passed to \f(CW\*(C`new\*(C'\fR will be passed on to the +\&\*(L"_initialize\*(R" method. Returns a new object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`_initialize\*(C'\fI\fR +.IX Subsection "_initialize" +.PP +Initializes a new object. This method is a stub by default, you should override +it as appropriate. +.PP +\&\fINote:\fR \*(L"new\*(R" expects you to return \f(CW$self\fR or raise an exception. See +\&\*(L"_croak\*(R", and Carp. +.PP +\fI\f(CI\*(C`_croak\*(C'\fI\fR +.IX Subsection "_croak" +.PP +Raise an exception using \f(CW\*(C`croak\*(C'\fR from Carp, eg: +.PP +.Vb 1 +\& $self\->_croak( \*(Aqwhy me?\*(Aq, \*(Aqaaarrgh!\*(Aq ); +.Ve +.PP +May also be called as a \fIclass\fR method. +.PP +.Vb 1 +\& $class\->_croak( \*(Aqthis works too\*(Aq ); +.Ve +.PP +\fI\f(CI\*(C`_confess\*(C'\fI\fR +.IX Subsection "_confess" +.PP +Raise an exception using \f(CW\*(C`confess\*(C'\fR from Carp, eg: +.PP +.Vb 1 +\& $self\->_confess( \*(Aqwhy me?\*(Aq, \*(Aqaaarrgh!\*(Aq ); +.Ve +.PP +May also be called as a \fIclass\fR method. +.PP +.Vb 1 +\& $class\->_confess( \*(Aqthis works too\*(Aq ); +.Ve +.PP +\fI\f(CI\*(C`_construct\*(C'\fI\fR +.IX Subsection "_construct" +.PP +Create a new instance of the specified class. +.PP +\fI\f(CI\*(C`mk_methods\*(C'\fI\fR +.IX Subsection "mk_methods" +.PP +Create simple getter/setters. +.PP +.Vb 1 +\& _\|_PACKAGE_\|_\->mk_methods(@method_names); +.Ve diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AAggregator.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AAggregator.3 new file mode 100644 index 0000000000000000000000000000000000000000..a60415249ed21d8184e25e7559cef6c591785105 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AAggregator.3 @@ -0,0 +1,346 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Aggregator 3" +.TH TAP::Parser::Aggregator 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Aggregator \- Aggregate TAP::Parser results +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::Aggregator; +\& +\& my $aggregate = TAP::Parser::Aggregator\->new; +\& $aggregate\->add( \*(Aqt/00\-load.t\*(Aq, $load_parser ); +\& $aggregate\->add( \*(Aqt/10\-lex.t\*(Aq, $lex_parser ); +\& +\& my $summary = <<\*(AqEND_SUMMARY\*(Aq; +\& Passed: %s +\& Failed: %s +\& Unexpectedly succeeded: %s +\& END_SUMMARY +\& printf $summary, +\& scalar $aggregate\->passed, +\& scalar $aggregate\->failed, +\& scalar $aggregate\->todo_passed; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Parser::Aggregator\*(C'\fR collects parser objects and allows +reporting/querying their aggregate results. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $aggregate = TAP::Parser::Aggregator\->new; +.Ve +.PP +Returns a new \f(CW\*(C`TAP::Parser::Aggregator\*(C'\fR object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`add\*(C'\fI\fR +.IX Subsection "add" +.PP +.Vb 1 +\& $aggregate\->add( $description => $parser ); +.Ve +.PP +The \f(CW$description\fR is usually a test file name (but only by +convention.) It is used as a unique identifier (see e.g. +\&\*(L"parsers\*(R".) Reusing a description is a fatal error. +.PP +The \f(CW$parser\fR is a TAP::Parser object. +.PP +\fI\f(CI\*(C`parsers\*(C'\fI\fR +.IX Subsection "parsers" +.PP +.Vb 3 +\& my $count = $aggregate\->parsers; +\& my @parsers = $aggregate\->parsers; +\& my @parsers = $aggregate\->parsers(@descriptions); +.Ve +.PP +In scalar context without arguments, this method returns the number of parsers +aggregated. In list context without arguments, returns the parsers in the +order they were added. +.PP +If \f(CW@descriptions\fR is given, these correspond to the keys used in each +call to the \fBadd()\fR method. Returns an array of the requested parsers (in +the requested order) in list context or an array reference in scalar +context. +.PP +Requesting an unknown identifier is a fatal error. +.PP +\fI\f(CI\*(C`descriptions\*(C'\fI\fR +.IX Subsection "descriptions" +.PP +Get an array of descriptions in the order in which they were added to +the aggregator. +.PP +\fI\f(CI\*(C`start\*(C'\fI\fR +.IX Subsection "start" +.PP +Call \f(CW\*(C`start\*(C'\fR immediately before adding any results to the aggregator. +Among other times it records the start time for the test run. +.PP +\fI\f(CI\*(C`stop\*(C'\fI\fR +.IX Subsection "stop" +.PP +Call \f(CW\*(C`stop\*(C'\fR immediately after adding all test results to the aggregator. +.PP +\fI\f(CI\*(C`elapsed\*(C'\fI\fR +.IX Subsection "elapsed" +.PP +Elapsed returns a Benchmark object that represents the running time +of the aggregated tests. In order for \f(CW\*(C`elapsed\*(C'\fR to be valid you must +call \f(CW\*(C`start\*(C'\fR before running the tests and \f(CW\*(C`stop\*(C'\fR immediately +afterwards. +.PP +\fI\f(CI\*(C`elapsed_timestr\*(C'\fI\fR +.IX Subsection "elapsed_timestr" +.PP +Returns a formatted string representing the runtime returned by +\&\f(CW\*(C`elapsed()\*(C'\fR. This lets the caller not worry about Benchmark. +.PP +\fI\f(CI\*(C`all_passed\*(C'\fI\fR +.IX Subsection "all_passed" +.PP +Return true if all the tests passed and no parse errors were detected. +.PP +\fI\f(CI\*(C`get_status\*(C'\fI\fR +.IX Subsection "get_status" +.PP +Get a single word describing the status of the aggregated tests. +Depending on the outcome of the tests returns '\s-1PASS\s0', '\s-1FAIL\s0' or +\&'\s-1NOTESTS\s0'. This token is understood by CPAN::Reporter. +.SS "Summary methods" +.IX Subsection "Summary methods" +Each of the following methods will return the total number of corresponding +tests if called in scalar context. If called in list context, returns the +descriptions of the parsers which contain the corresponding tests (see \f(CW\*(C`add\*(C'\fR +for an explanation of description. +.IP "\(bu" 4 +failed +.IP "\(bu" 4 +parse_errors +.IP "\(bu" 4 +passed +.IP "\(bu" 4 +planned +.IP "\(bu" 4 +skipped +.IP "\(bu" 4 +todo +.IP "\(bu" 4 +todo_passed +.IP "\(bu" 4 +wait +.IP "\(bu" 4 +exit +.PP +For example, to find out how many tests unexpectedly succeeded (\s-1TODO\s0 tests +which passed when they shouldn't): +.PP +.Vb 2 +\& my $count = $aggregate\->todo_passed; +\& my @descriptions = $aggregate\->todo_passed; +.Ve +.PP +Note that \f(CW\*(C`wait\*(C'\fR and \f(CW\*(C`exit\*(C'\fR are the totals of the wait and exit +statuses of each of the tests. These values are totalled only to provide +a true value if any of them are non-zero. +.PP +\fI\f(CI\*(C`total\*(C'\fI\fR +.IX Subsection "total" +.PP +.Vb 1 +\& my $tests_run = $aggregate\->total; +.Ve +.PP +Returns the total number of tests run. +.PP +\fI\f(CI\*(C`has_problems\*(C'\fI\fR +.IX Subsection "has_problems" +.PP +.Vb 3 +\& if ( $parser\->has_problems ) { +\& ... +\& } +.Ve +.PP +Identical to \f(CW\*(C`has_errors\*(C'\fR, but also returns true if any \s-1TODO\s0 tests +unexpectedly succeeded. This is more akin to \*(L"warnings\*(R". +.PP +\fI\f(CI\*(C`has_errors\*(C'\fI\fR +.IX Subsection "has_errors" +.PP +.Vb 3 +\& if ( $parser\->has_errors ) { +\& ... +\& } +.Ve +.PP +Returns true if \fIany\fR of the parsers failed. This includes: +.IP "\(bu" 4 +Failed tests +.IP "\(bu" 4 +Parse errors +.IP "\(bu" 4 +Bad exit or wait status +.PP +\fI\f(CI\*(C`todo_failed\*(C'\fI\fR +.IX Subsection "todo_failed" +.PP +.Vb 1 +\& # deprecated in favor of \*(Aqtodo_passed\*(Aq. This method was horribly misnamed. +.Ve +.PP +This was a badly misnamed method. It indicates which \s-1TODO\s0 tests unexpectedly +succeeded. Will now issue a warning and call \f(CW\*(C`todo_passed\*(C'\fR. +.SH "See Also" +.IX Header "See Also" +TAP::Parser +.PP +TAP::Harness diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AArray.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AArray.3 new file mode 100644 index 0000000000000000000000000000000000000000..ef9e9368543a646fa6bbce9cd2af26177d559813 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AArray.3 @@ -0,0 +1,197 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Iterator::Array 3" +.TH TAP::Parser::Iterator::Array 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Iterator::Array \- Iterator for array\-based TAP sources +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use TAP::Parser::Iterator::Array; +\& my @data = (\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq, baz\*(Aq); +\& my $it = TAP::Parser::Iterator::Array\->new(\e@data); +\& my $line = $it\->next; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a simple iterator wrapper for arrays of scalar content, used by +TAP::Parser. Unless you're writing a plugin or subclassing, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create an iterator. Takes one argument: an \f(CW$array_ref\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +Iterate through it, of course. +.PP +\fI\f(CI\*(C`next_raw\*(C'\fI\fR +.IX Subsection "next_raw" +.PP +Iterate raw input without applying any fixes for quirky input syntax. +.PP +\fI\f(CI\*(C`wait\*(C'\fI\fR +.IX Subsection "wait" +.PP +Get the wait status for this iterator. For an array iterator this will always +be zero. +.PP +\fI\f(CI\*(C`exit\*(C'\fI\fR +.IX Subsection "exit" +.PP +Get the exit status for this iterator. For an array iterator this will always +be zero. +.SH "ATTRIBUTION" +.IX Header "ATTRIBUTION" +Originally ripped off from Test::Harness. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AProcess.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AProcess.3 new file mode 100644 index 0000000000000000000000000000000000000000..827627917b492f91fc907c028f9ec59079316dcc --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AProcess.3 @@ -0,0 +1,222 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Iterator::Process 3" +.TH TAP::Parser::Iterator::Process 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Iterator::Process \- Iterator for process\-based TAP sources +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 9 +\& use TAP::Parser::Iterator::Process; +\& my %args = ( +\& command => [\*(Aqpython\*(Aq, \*(Aqsetup.py\*(Aq, \*(Aqtest\*(Aq], +\& merge => 1, +\& setup => sub { ... }, +\& teardown => sub { ... }, +\& ); +\& my $it = TAP::Parser::Iterator::Process\->new(\e%args); +\& my $line = $it\->next; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a simple iterator wrapper for executing external processes, used by +TAP::Parser. Unless you're writing a plugin or subclassing, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create an iterator. Expects one argument containing a hashref of the form: +.PP +.Vb 4 +\& command => \e@command_to_execute +\& merge => $attempt_merge_stderr_and_stdout? +\& setup => $callback_to_setup_command +\& teardown => $callback_to_teardown_command +.Ve +.PP +Tries to uses IPC::Open3 & IO::Select to communicate with the spawned +process if they are available. Falls back onto \f(CW\*(C`open()\*(C'\fR. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +Iterate through the process output, of course. +.PP +\fI\f(CI\*(C`next_raw\*(C'\fI\fR +.IX Subsection "next_raw" +.PP +Iterate raw input without applying any fixes for quirky input syntax. +.PP +\fI\f(CI\*(C`wait\*(C'\fI\fR +.IX Subsection "wait" +.PP +Get the wait status for this iterator's process. +.PP +\fI\f(CI\*(C`exit\*(C'\fI\fR +.IX Subsection "exit" +.PP +Get the exit status for this iterator's process. +.PP +\fI\f(CI\*(C`handle_unicode\*(C'\fI\fR +.IX Subsection "handle_unicode" +.PP +Upgrade the input stream to handle \s-1UTF8.\s0 +.PP +\fI\f(CI\*(C`get_select_handles\*(C'\fI\fR +.IX Subsection "get_select_handles" +.PP +Return a list of filehandles that may be used upstream in a \fBselect()\fR +call to signal that this Iterator is ready. Iterators that are not +handle based should return an empty list. +.SH "ATTRIBUTION" +.IX Header "ATTRIBUTION" +Originally ripped off from Test::Harness. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AStream.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AStream.3 new file mode 100644 index 0000000000000000000000000000000000000000..edee88aefb84913a283e86e99cf5305a0d5f6f73 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator%3A%3AStream.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Iterator::Stream 3" +.TH TAP::Parser::Iterator::Stream 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Iterator::Stream \- Iterator for filehandle\-based TAP sources +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use TAP::Parser::Iterator::Stream; +\& open( TEST, \*(Aqtest.tap\*(Aq ); +\& my $it = TAP::Parser::Iterator::Stream\->new(\e*TEST); +\& my $line = $it\->next; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a simple iterator wrapper for reading from filehandles, used by +TAP::Parser. Unless you're writing a plugin or subclassing, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create an iterator. Expects one argument containing a filehandle. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +Iterate through it, of course. +.PP +\fI\f(CI\*(C`next_raw\*(C'\fI\fR +.IX Subsection "next_raw" +.PP +Iterate raw input without applying any fixes for quirky input syntax. +.PP +\fI\f(CI\*(C`wait\*(C'\fI\fR +.IX Subsection "wait" +.PP +Get the wait status for this iterator. Always returns zero. +.PP +\fI\f(CI\*(C`exit\*(C'\fI\fR +.IX Subsection "exit" +.PP +Get the exit status for this iterator. Always returns zero. +.SH "ATTRIBUTION" +.IX Header "ATTRIBUTION" +Originally ripped off from Test::Harness. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator.3 new file mode 100644 index 0000000000000000000000000000000000000000..a1c818c0374c707763c2d1bd1f77ba0133209b2b --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIterator.3 @@ -0,0 +1,247 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Iterator 3" +.TH TAP::Parser::Iterator 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Iterator \- Base class for TAP source iterators +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& # to subclass: +\& use TAP::Parser::Iterator (); +\& use base \*(AqTAP::Parser::Iterator\*(Aq; +\& sub _initialize { +\& # see TAP::Object... +\& } +\& +\& sub next_raw { ... } +\& sub wait { ... } +\& sub exit { ... } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a simple iterator base class that defines TAP::Parser's iterator +\&\s-1API.\s0 Iterators are typically created from TAP::Parser::SourceHandlers. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Create an iterator. Provided by TAP::Object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +.Vb 1 +\& while ( my $item = $iter\->next ) { ... } +.Ve +.PP +Iterate through it, of course. +.PP +\fI\f(CI\*(C`next_raw\*(C'\fI\fR +.IX Subsection "next_raw" +.PP +\&\fBNote:\fR this method is abstract and should be overridden. +.PP +.Vb 1 +\& while ( my $item = $iter\->next_raw ) { ... } +.Ve +.PP +Iterate raw input without applying any fixes for quirky input syntax. +.PP +\fI\f(CI\*(C`handle_unicode\*(C'\fI\fR +.IX Subsection "handle_unicode" +.PP +If necessary switch the input stream to handle unicode. This only has +any effect for I/O handle based streams. +.PP +The default implementation does nothing. +.PP +\fI\f(CI\*(C`get_select_handles\*(C'\fI\fR +.IX Subsection "get_select_handles" +.PP +Return a list of filehandles that may be used upstream in a \fBselect()\fR +call to signal that this Iterator is ready. Iterators that are not +handle-based should return an empty list. +.PP +The default implementation does nothing. +.PP +\fI\f(CI\*(C`wait\*(C'\fI\fR +.IX Subsection "wait" +.PP +\&\fBNote:\fR this method is abstract and should be overridden. +.PP +.Vb 1 +\& my $wait_status = $iter\->wait; +.Ve +.PP +Return the \f(CW\*(C`wait\*(C'\fR status for this iterator. +.PP +\fI\f(CI\*(C`exit\*(C'\fI\fR +.IX Subsection "exit" +.PP +\&\fBNote:\fR this method is abstract and should be overridden. +.PP +.Vb 1 +\& my $wait_status = $iter\->exit; +.Ve +.PP +Return the \f(CW\*(C`exit\*(C'\fR status for this iterator. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.PP +You must override the abstract methods as noted above. +.SS "Example" +.IX Subsection "Example" +TAP::Parser::Iterator::Array is probably the easiest example to follow. +There's not much point repeating it here. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator::Array, +TAP::Parser::Iterator::Stream, +TAP::Parser::Iterator::Process, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIteratorFactory.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIteratorFactory.3 new file mode 100644 index 0000000000000000000000000000000000000000..523e0cd4a3aaa04230ab7c23824f5ab8b9626eb1 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AIteratorFactory.3 @@ -0,0 +1,305 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::IteratorFactory 3" +.TH TAP::Parser::IteratorFactory 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::IteratorFactory \- Figures out which SourceHandler objects to use for a given Source +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use TAP::Parser::IteratorFactory; +\& my $factory = TAP::Parser::IteratorFactory\->new({ %config }); +\& my $iterator = $factory\->make_iterator( $filename ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a factory class that takes a TAP::Parser::Source and runs it through all the +registered TAP::Parser::SourceHandlers to see which one should handle the source. +.PP +If you're a plugin author, you'll be interested in how to \*(L"register_handler\*(R"s, +how \*(L"detect_source\*(R" works. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Creates a new factory class: +.PP +.Vb 1 +\& my $sf = TAP::Parser::IteratorFactory\->new( $config ); +.Ve +.PP +\&\f(CW$config\fR is optional. If given, sets \*(L"config\*(R" and calls \*(L"load_handlers\*(R". +.PP +\fI\f(CI\*(C`register_handler\*(C'\fI\fR +.IX Subsection "register_handler" +.PP +Registers a new TAP::Parser::SourceHandler with this factory. +.PP +.Vb 1 +\& _\|_PACKAGE_\|_\->register_handler( $handler_class ); +.Ve +.PP +\fI\f(CI\*(C`handlers\*(C'\fI\fR +.IX Subsection "handlers" +.PP +List of handlers that have been registered. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`config\*(C'\fI\fR +.IX Subsection "config" +.PP +.Vb 2 +\& my $cfg = $sf\->config; +\& $sf\->config({ Perl => { %config } }); +.Ve +.PP +Chaining getter/setter for the configuration of the available source handlers. +This is a hashref keyed on handler class whose values contain config to be passed +onto the handlers during detection & creation. Class names may be fully qualified +or abbreviated, eg: +.PP +.Vb 3 +\& # these are equivalent +\& $sf\->config({ \*(AqTAP::Parser::SourceHandler::Perl\*(Aq => { %config } }); +\& $sf\->config({ \*(AqPerl\*(Aq => { %config } }); +.Ve +.PP +\fI\f(CI\*(C`load_handlers\*(C'\fI\fR +.IX Subsection "load_handlers" +.PP +.Vb 1 +\& $sf\->load_handlers; +.Ve +.PP +Loads the handler classes defined in \*(L"config\*(R". For example, given a config: +.PP +.Vb 3 +\& $sf\->config({ +\& MySourceHandler => { some => \*(Aqconfig\*(Aq }, +\& }); +.Ve +.PP +\&\f(CW\*(C`load_handlers\*(C'\fR will attempt to load the \f(CW\*(C`MySourceHandler\*(C'\fR class by looking in +\&\f(CW@INC\fR for it in this order: +.PP +.Vb 2 +\& TAP::Parser::SourceHandler::MySourceHandler +\& MySourceHandler +.Ve +.PP +\&\f(CW\*(C`croak\*(C'\fRs on error. +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $src_factory\->make_iterator( $source ); +.Ve +.PP +Given a TAP::Parser::Source, finds the most suitable TAP::Parser::SourceHandler +to use to create a TAP::Parser::Iterator (see \*(L"detect_source\*(R"). Dies on error. +.PP +\fI\f(CI\*(C`detect_source\*(C'\fI\fR +.IX Subsection "detect_source" +.PP +Given a TAP::Parser::Source, detects what kind of source it is and +returns \fIone\fR TAP::Parser::SourceHandler (the most confident one). Dies +on error. +.PP +The detection algorithm works something like this: +.PP +.Vb 5 +\& for (@registered_handlers) { +\& # ask them how confident they are about handling this source +\& $confidence{$handler} = $handler\->can_handle( $source ) +\& } +\& # choose the most confident handler +.Ve +.PP +Ties are handled by choosing the first handler. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SS "Example" +.IX Subsection "Example" +If we've done things right, you'll probably want to write a new source, +rather than sub-classing this (see TAP::Parser::SourceHandler for that). +.PP +But in case you find the need to... +.PP +.Vb 1 +\& package MyIteratorFactory; +\& +\& use strict; +\& +\& use base \*(AqTAP::Parser::IteratorFactory\*(Aq; +\& +\& # override source detection algorithm +\& sub detect_source { +\& my ($self, $raw_source_ref, $meta) = @_; +\& # do detective work, using $meta and whatever else... +\& } +\& +\& 1; +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +Steve Purkis +.SH "ATTRIBUTION" +.IX Header "ATTRIBUTION" +Originally ripped off from Test::Harness. +.PP +Moved out of TAP::Parser & converted to a factory class to support +extensible \s-1TAP\s0 source detective work by Steve Purkis. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::RawTAP, +TAP::Parser::SourceHandler::Handle, +TAP::Parser::SourceHandler::Executable diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AMultiplexer.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AMultiplexer.3 new file mode 100644 index 0000000000000000000000000000000000000000..38ba53b3ae9cb7ba8899a7f91873ee586cb90700 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AMultiplexer.3 @@ -0,0 +1,233 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Multiplexer 3" +.TH TAP::Parser::Multiplexer 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Multiplexer \- Multiplex multiple TAP::Parsers +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::Multiplexer; +\& +\& my $mux = TAP::Parser::Multiplexer\->new; +\& $mux\->add( $parser1, $stash1 ); +\& $mux\->add( $parser2, $stash2 ); +\& while ( my ( $parser, $stash, $result ) = $mux\->next ) { +\& # do stuff +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Parser::Multiplexer\*(C'\fR gathers input from multiple TAP::Parsers. +Internally it calls select on the input file handles for those parsers +to wait for one or more of them to have input available. +.PP +See TAP::Harness for an example of its use. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $mux = TAP::Parser::Multiplexer\->new; +.Ve +.PP +Returns a new \f(CW\*(C`TAP::Parser::Multiplexer\*(C'\fR object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`add\*(C'\fI\fR +.IX Subsection "add" +.PP +.Vb 1 +\& $mux\->add( $parser, $stash ); +.Ve +.PP +Add a TAP::Parser to the multiplexer. \f(CW$stash\fR is an optional opaque +reference that will be returned from \f(CW\*(C`next\*(C'\fR along with the parser and +the next result. +.PP +\fI\f(CI\*(C`parsers\*(C'\fI\fR +.IX Subsection "parsers" +.PP +.Vb 1 +\& my $count = $mux\->parsers; +.Ve +.PP +Returns the number of parsers. Parsers are removed from the multiplexer +when their input is exhausted. +.PP +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +Return a result from the next available parser. Returns a list +containing the parser from which the result came, the stash that +corresponds with that parser and the result. +.PP +.Vb 1 +\& my ( $parser, $stash, $result ) = $mux\->next; +.Ve +.PP +If \f(CW$result\fR is undefined the corresponding parser has reached the end +of its input (and will automatically be removed from the multiplexer). +.PP +When all parsers are exhausted an empty list will be returned. +.PP +.Vb 11 +\& if ( my ( $parser, $stash, $result ) = $mux\->next ) { +\& if ( ! defined $result ) { +\& # End of this parser +\& } +\& else { +\& # Process result +\& } +\& } +\& else { +\& # All parsers finished +\& } +.Ve +.SH "See Also" +.IX Header "See Also" +TAP::Parser +.PP +TAP::Harness diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APlan.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APlan.3 new file mode 100644 index 0000000000000000000000000000000000000000..86fd8d38362e28e9e2f532bc09569b5a5420cbb9 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APlan.3 @@ -0,0 +1,229 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::Plan 3" +.TH TAP::Parser::Result::Plan 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::Plan \- Plan result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a plan line is encountered. +.PP +.Vb 2 +\& 1..1 +\& ok 1 \- woo hooo! +.Ve +.PP +\&\f(CW1..1\fR is the plan. Gotta have a plan. +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`raw\*(C'\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`plan\*(C'\fI\fR +.IX Subsection "plan" +.PP +.Vb 3 +\& if ( $result\->is_plan ) { +\& print $result\->plan; +\& } +.Ve +.PP +This is merely a synonym for \f(CW\*(C`as_string\*(C'\fR. +.PP +\fI\f(CI\*(C`tests_planned\*(C'\fI\fR +.IX Subsection "tests_planned" +.PP +.Vb 1 +\& my $planned = $result\->tests_planned; +.Ve +.PP +Returns the number of tests planned. For example, a plan of \f(CW1..17\fR will +cause this method to return '17'. +.PP +\fI\f(CI\*(C`directive\*(C'\fI\fR +.IX Subsection "directive" +.PP +.Vb 1 +\& my $directive = $plan\->directive; +.Ve +.PP +If a \s-1SKIP\s0 directive is included with the plan, this method will return it. +.PP +.Vb 1 +\& 1..0 # SKIP: why bother? +.Ve +.PP +\fI\f(CI\*(C`has_skip\*(C'\fI\fR +.IX Subsection "has_skip" +.PP +.Vb 1 +\& if ( $result\->has_skip ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not this test has a \s-1SKIP\s0 +directive. +.PP +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 1 +\& my $explanation = $plan\->explanation; +.Ve +.PP +If a \s-1SKIP\s0 directive was included with the plan, this method will return the +explanation, if any. +.PP +\fI\f(CI\*(C`todo_list\*(C'\fI\fR +.IX Subsection "todo_list" +.PP +.Vb 4 +\& my $todo = $result\->todo_list; +\& for ( @$todo ) { +\& ... +\& } +.Ve diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APragma.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APragma.3 new file mode 100644 index 0000000000000000000000000000000000000000..3f70ae69c501fc2835e415685d04da770300c535 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3APragma.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::Pragma 3" +.TH TAP::Parser::Result::Pragma 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::Pragma \- TAP pragma token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a pragma is encountered. +.PP +.Vb 2 +\& TAP version 13 +\& pragma +strict, \-foo +.Ve +.PP +Pragmas are only supported from \s-1TAP\s0 version 13 onwards. +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`raw\*(C'\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`pragmas\*(C'\fI\fR +.IX Subsection "pragmas" +.PP +if ( \f(CW$result\fR\->is_pragma ) { + \f(CW@pragmas\fR = \f(CW$result\fR\->pragmas; +} diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ATest.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ATest.3 new file mode 100644 index 0000000000000000000000000000000000000000..1214e01d04b0908de302f196c36056c081792f14 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ATest.3 @@ -0,0 +1,325 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::Test 3" +.TH TAP::Parser::Result::Test 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::Test \- Test result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a test line is encountered. +.PP +.Vb 2 +\& 1..1 +\& ok 1 \- woo hooo! +.Ve +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +This class is the workhorse of the TAP::Parser system. Most \s-1TAP\s0 lines will +be test lines and if \f(CW\*(C`$result\->is_test\*(C'\fR, then you have a bunch of methods +at your disposal. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`ok\*(C'\fI\fR +.IX Subsection "ok" +.PP +.Vb 1 +\& my $ok = $result\->ok; +.Ve +.PP +Returns the literal text of the \f(CW\*(C`ok\*(C'\fR or \f(CW\*(C`not ok\*(C'\fR status. +.PP +\fI\f(CI\*(C`number\*(C'\fI\fR +.IX Subsection "number" +.PP +.Vb 1 +\& my $test_number = $result\->number; +.Ve +.PP +Returns the number of the test, even if the original \s-1TAP\s0 output did not supply +that number. +.PP +\fI\f(CI\*(C`description\*(C'\fI\fR +.IX Subsection "description" +.PP +.Vb 1 +\& my $description = $result\->description; +.Ve +.PP +Returns the description of the test, if any. This is the portion after the +test number but before the directive. +.PP +\fI\f(CI\*(C`directive\*(C'\fI\fR +.IX Subsection "directive" +.PP +.Vb 1 +\& my $directive = $result\->directive; +.Ve +.PP +Returns either \f(CW\*(C`TODO\*(C'\fR or \f(CW\*(C`SKIP\*(C'\fR if either directive was present for a test +line. +.PP +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 1 +\& my $explanation = $result\->explanation; +.Ve +.PP +If a test had either a \f(CW\*(C`TODO\*(C'\fR or \f(CW\*(C`SKIP\*(C'\fR directive, this method will return +the accompanying explanation, if present. +.PP +.Vb 1 +\& not ok 17 \- \*(AqPigs can fly\*(Aq # TODO not enough acid +.Ve +.PP +For the above line, the explanation is \fInot enough acid\fR. +.PP +\fI\f(CI\*(C`is_ok\*(C'\fI\fR +.IX Subsection "is_ok" +.PP +.Vb 1 +\& if ( $result\->is_ok ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not the test passed. Remember +that for \s-1TODO\s0 tests, the test always passes. +.PP +If the test is unplanned, this method will always return false. See +\&\f(CW\*(C`is_unplanned\*(C'\fR. +.PP +\fI\f(CI\*(C`is_actual_ok\*(C'\fI\fR +.IX Subsection "is_actual_ok" +.PP +.Vb 1 +\& if ( $result\->is_actual_ok ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not the test passed, regardless +of its \s-1TODO\s0 status. +.PP +\fI\f(CI\*(C`actual_passed\*(C'\fI\fR +.IX Subsection "actual_passed" +.PP +Deprecated. Please use \f(CW\*(C`is_actual_ok\*(C'\fR instead. +.PP +\fI\f(CI\*(C`todo_passed\*(C'\fI\fR +.IX Subsection "todo_passed" +.PP +.Vb 3 +\& if ( $test\->todo_passed ) { +\& # test unexpectedly succeeded +\& } +.Ve +.PP +If this is a \s-1TODO\s0 test and an 'ok' line, this method returns true. +Otherwise, it will always return false (regardless of passing status on +non-todo tests). +.PP +This is used to track which tests unexpectedly succeeded. +.PP +\fI\f(CI\*(C`todo_failed\*(C'\fI\fR +.IX Subsection "todo_failed" +.PP +.Vb 1 +\& # deprecated in favor of \*(Aqtodo_passed\*(Aq. This method was horribly misnamed. +.Ve +.PP +This was a badly misnamed method. It indicates which \s-1TODO\s0 tests unexpectedly +succeeded. Will now issue a warning and call \f(CW\*(C`todo_passed\*(C'\fR. +.PP +\fI\f(CI\*(C`has_skip\*(C'\fI\fR +.IX Subsection "has_skip" +.PP +.Vb 1 +\& if ( $result\->has_skip ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not this test has a \s-1SKIP\s0 +directive. +.PP +\fI\f(CI\*(C`has_todo\*(C'\fI\fR +.IX Subsection "has_todo" +.PP +.Vb 1 +\& if ( $result\->has_todo ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not this test has a \s-1TODO\s0 +directive. +.PP +\fI\f(CI\*(C`as_string\*(C'\fI\fR +.IX Subsection "as_string" +.PP +.Vb 1 +\& print $result\->as_string; +.Ve +.PP +This method prints the test as a string. It will probably be similar, but +not necessarily identical, to the original test line. Directives are +capitalized, some whitespace may be trimmed and a test number will be added if +it was not present in the original line. If you need the original text of the +test line, use the \f(CW\*(C`raw\*(C'\fR method. +.PP +\fI\f(CI\*(C`is_unplanned\*(C'\fI\fR +.IX Subsection "is_unplanned" +.PP +.Vb 2 +\& if ( $test\->is_unplanned ) { ... } +\& $test\->is_unplanned(1); +.Ve +.PP +If a test number is greater than the number of planned tests, this method will +return true. Unplanned tests will \fIalways\fR return false for \f(CW\*(C`is_ok\*(C'\fR, +regardless of whether or not the test \f(CW\*(C`has_todo\*(C'\fR. +.PP +Note that if tests have a trailing plan, it is not possible to set this +property for unplanned tests as we do not know it's unplanned until the plan +is reached: +.PP +.Vb 5 +\& print <<\*(AqEND\*(Aq; +\& ok 1 +\& ok 2 +\& 1..1 +\& END +.Ve diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AUnknown.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AUnknown.3 new file mode 100644 index 0000000000000000000000000000000000000000..59546cd262b04e5b13c039298fc0d8988893f12d --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AUnknown.3 @@ -0,0 +1,167 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::Unknown 3" +.TH TAP::Parser::Result::Unknown 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::Unknown \- Unknown result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if the parser does not recognize the token line. For example: +.PP +.Vb 4 +\& 1..5 +\& VERSION 7 +\& ok 1 \- woo hooo! +\& ... woo hooo! is cool! +.Ve +.PP +In the above \*(L"\s-1TAP\*(R",\s0 the second and fourth lines will generate \*(L"Unknown\*(R" +tokens. +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`raw\*(C'\fR diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AVersion.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AVersion.3 new file mode 100644 index 0000000000000000000000000000000000000000..c4f5252b7ac905a35e0cfbad0fa8939c04531e6d --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AVersion.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::Version 3" +.TH TAP::Parser::Result::Version 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::Version \- TAP syntax version token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a version line is encountered. +.PP +.Vb 3 +\& TAP version 13 +\& ok 1 +\& not ok 2 +.Ve +.PP +The first version of \s-1TAP\s0 to include an explicit version number is 13. +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`raw\*(C'\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`version\*(C'\fI\fR +.IX Subsection "version" +.PP +.Vb 3 +\& if ( $result\->is_version ) { +\& print $result\->version; +\& } +.Ve +.PP +This is merely a synonym for \f(CW\*(C`as_string\*(C'\fR. diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AYAML.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AYAML.3 new file mode 100644 index 0000000000000000000000000000000000000000..ed7eaf2a4e89dfefa5c2c68a7e841ca6ac56169d --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AYAML.3 @@ -0,0 +1,176 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Result::YAML 3" +.TH TAP::Parser::Result::YAML 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Result::YAML \- YAML result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a \s-1YAML\s0 block is encountered. +.PP +.Vb 2 +\& 1..1 +\& ok 1 \- woo hooo! +.Ve +.PP +\&\f(CW1..1\fR is the plan. Gotta have a plan. +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.IP "\(bu" 4 +\&\f(CW\*(C`raw\*(C'\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`data\*(C'\fI\fR +.IX Subsection "data" +.PP +.Vb 3 +\& if ( $result\->is_yaml ) { +\& print $result\->data; +\& } +.Ve +.PP +Return the parsed \s-1YAML\s0 data for this result diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResultFactory.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResultFactory.3 new file mode 100644 index 0000000000000000000000000000000000000000..579e539740b7d1a2a6b7a52ff913b24735e1035b --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResultFactory.3 @@ -0,0 +1,253 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::ResultFactory 3" +.TH TAP::Parser::ResultFactory 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::ResultFactory \- Factory for creating TAP::Parser output objects +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use TAP::Parser::ResultFactory; +\& my $token = {...}; +\& my $factory = TAP::Parser::ResultFactory\->new; +\& my $result = $factory\->make_result( $token ); +.Ve +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SS "\s-1DESCRIPTION\s0" +.IX Subsection "DESCRIPTION" +This is a simple factory class which returns a TAP::Parser::Result subclass +representing the current bit of test data from \s-1TAP\s0 (usually a single line). +It is used primarily by TAP::Parser::Grammar. Unless you're subclassing, +you probably won't need to use this module directly. +.SS "\s-1METHODS\s0" +.IX Subsection "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +Creates a new factory class. +\&\fINote:\fR You currently don't need to instantiate a factory in order to use it. +.PP +\fI\f(CI\*(C`make_result\*(C'\fI\fR +.IX Subsection "make_result" +.PP +Returns an instance the appropriate class for the test token passed in. +.PP +.Vb 1 +\& my $result = TAP::Parser::ResultFactory\->make_result($token); +.Ve +.PP +Can also be called as an instance method. +.PP +\fI\f(CI\*(C`class_for\*(C'\fI\fR +.IX Subsection "class_for" +.PP +Takes one argument: \f(CW$type\fR. Returns the class for this \f(CW$type\fR, or \f(CW\*(C`croak\*(C'\fRs +with an error. +.PP +\fI\f(CI\*(C`register_type\*(C'\fI\fR +.IX Subsection "register_type" +.PP +Takes two arguments: \f(CW$type\fR, \f(CW$class\fR +.PP +This lets you override an existing type with your own custom type, or register +a completely new type, eg: +.PP +.Vb 4 +\& # create a custom result type: +\& package MyResult; +\& use strict; +\& use base \*(AqTAP::Parser::Result\*(Aq; +\& +\& # register with the factory: +\& TAP::Parser::ResultFactory\->register_type( \*(Aqmy_type\*(Aq => _\|_PACKAGE_\|_ ); +\& +\& # use it: +\& my $r = TAP::Parser::ResultFactory\->( { type => \*(Aqmy_type\*(Aq } ); +.Ve +.PP +Your custom type should then be picked up automatically by the TAP::Parser. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.PP +There are a few things to bear in mind when creating your own +\&\f(CW\*(C`ResultFactory\*(C'\fR: +.IP "1." 4 +The factory itself is never instantiated (this \fImay\fR change in the future). +This means that \f(CW\*(C`_initialize\*(C'\fR is never called. +.IP "2." 4 +\&\f(CW\*(C`TAP::Parser::Result\->new\*(C'\fR is never called, \f(CW$tokens\fR are reblessed. +This \fIwill\fR change in a future version! +.IP "3." 4 +TAP::Parser::Result subclasses will register themselves with +TAP::Parser::ResultFactory directly: +.Sp +.Vb 2 +\& package MyFooResult; +\& TAP::Parser::ResultFactory\->register_type( foo => _\|_PACKAGE_\|_ ); +.Ve +.Sp +Of course, it's up to you to decide whether or not to ignore them. +.SS "Example" +.IX Subsection "Example" +.Vb 1 +\& package MyResultFactory; +\& +\& use strict; +\& +\& use MyResult; +\& +\& use base \*(AqTAP::Parser::ResultFactory\*(Aq; +\& +\& # force all results to be \*(AqMyResult\*(Aq +\& sub class_for { +\& return \*(AqMyResult\*(Aq; +\& } +\& +\& 1; +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Parser, +TAP::Parser::Result, +TAP::Parser::Grammar diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3AJob.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3AJob.3 new file mode 100644 index 0000000000000000000000000000000000000000..ad1c63d70f683993eead06e392af943c94611a60 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3AJob.3 @@ -0,0 +1,223 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Scheduler::Job 3" +.TH TAP::Parser::Scheduler::Job 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Scheduler::Job \- A single testing job. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::Scheduler::Job; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Represents a single test 'job'. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 3 +\& my $job = TAP::Parser::Scheduler::Job\->new( +\& $filename, $description +\& ); +.Ve +.PP +Given the filename and description of a test as scalars, returns a new +TAP::Parser::Scheduler::Job object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`on_finish\*(C'\fI\fR +.IX Subsection "on_finish" +.PP +.Vb 1 +\& $self\->on_finish(\e&method). +.Ve +.PP +Register a closure to be called when this job is destroyed. The callback +will be passed the \f(CW\*(C`TAP::Parser::Scheduler::Job\*(C'\fR object as it's only argument. +.PP +\fI\f(CI\*(C`finish\*(C'\fI\fR +.IX Subsection "finish" +.PP +.Vb 1 +\& $self\->finish; +.Ve +.PP +Called when a job is complete to unlock it. If a callback has been registered +with \f(CW\*(C`on_finish\*(C'\fR, it calls it. Otherwise, it does nothing. +.SS "Attributes" +.IX Subsection "Attributes" +.Vb 3 +\& $self\->filename; +\& $self\->description; +\& $self\->context; +.Ve +.PP +These are all \*(L"getters\*(R" which return the data set for these attributes during object construction. +.PP +\fI\f(CI\*(C`filename\*(C'\fI\fR +.IX Subsection "filename" +.PP +\fI\f(CI\*(C`description\*(C'\fI\fR +.IX Subsection "description" +.PP +\fI\f(CI\*(C`context\*(C'\fI\fR +.IX Subsection "context" +.PP +\fI\f(CI\*(C`as_array_ref\*(C'\fI\fR +.IX Subsection "as_array_ref" +.PP +For backwards compatibility in callbacks. +.PP +\fI\f(CI\*(C`is_spinner\*(C'\fI\fR +.IX Subsection "is_spinner" +.PP +.Vb 1 +\& $self\->is_spinner; +.Ve +.PP +Returns false indicating that this is a real job rather than a +\&'spinner'. Spinners are returned when the scheduler still has pending +jobs but can't (because of locking) return one right now. diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3ASpinner.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3ASpinner.3 new file mode 100644 index 0000000000000000000000000000000000000000..2f77dd51099e7dd475e3e7e5b6b8c9eef852bec7 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler%3A%3ASpinner.3 @@ -0,0 +1,178 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Scheduler::Spinner 3" +.TH TAP::Parser::Scheduler::Spinner 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Scheduler::Spinner \- A no\-op job. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::Scheduler::Spinner; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A no-op job. Returned by \f(CW\*(C`TAP::Parser::Scheduler\*(C'\fR as an instruction to +the harness to spin (keep executing tests) while the scheduler can't +return a real job. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $job = TAP::Parser::Scheduler::Spinner\->new; +.Ve +.PP +Ignores any arguments and returns a new \f(CW\*(C`TAP::Parser::Scheduler::Spinner\*(C'\fR object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`is_spinner\*(C'\fI\fR +.IX Subsection "is_spinner" +.PP +Returns true indicating that is a 'spinner' job. Spinners are returned +when the scheduler still has pending jobs but can't (because of locking) +return one right now. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Parser::Scheduler, TAP::Parser::Scheduler::Job diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler.3 new file mode 100644 index 0000000000000000000000000000000000000000..57f995ccd8195d4ae9040df7852bb40f13dd1d09 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AScheduler.3 @@ -0,0 +1,317 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Scheduler 3" +.TH TAP::Parser::Scheduler 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Scheduler \- Schedule tests during parallel testing +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::Scheduler; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 5 +\& my $sched = TAP::Parser::Scheduler\->new(tests => \e@tests); +\& my $sched = TAP::Parser::Scheduler\->new( +\& tests => [ [\*(Aqt/test_name.t\*(Aq,\*(AqTest Description\*(Aq], ... ], +\& rules => \e%rules, +\& ); +.Ve +.PP +Given 'tests' and optional 'rules' as input, returns a new +\&\f(CW\*(C`TAP::Parser::Scheduler\*(C'\fR object. Each member of \f(CW@tests\fR should be either a +a test file name, or a two element arrayref, where the first element is a test +file name, and the second element is a test description. By default, we'll use +the test name as the description. +.PP +The optional \f(CW\*(C`rules\*(C'\fR attribute provides direction on which tests should be run +in parallel and which should be run sequentially. If no rule data structure is +provided, a default data structure is used which makes every test eligible to +be run in parallel: +.PP +.Vb 1 +\& { par => \*(Aq**\*(Aq }, +.Ve +.PP +The rules data structure is documented more in the next section. +.SS "Rules data structure" +.IX Subsection "Rules data structure" +The "\f(CW\*(C`rules\*(C'\fR\*(L" data structure is the the heart of the scheduler. It allows you +to express simple rules like \*(R"run all tests in sequence\*(L" or \*(R"run all tests in +parallel except these five tests.". However, the rules structure also supports +glob-style pattern matching and recursive definitions, so you can also express +arbitarily complicated patterns. +.PP +The rule must only have one top level key: either 'par' for \*(L"parallel\*(R" or 'seq' +for \*(L"sequence\*(R". +.PP +Values must be either strings with possible glob-style matching, or arrayrefs +of strings or hashrefs which follow this pattern recursively. +.PP +Every element in an arrayref directly below a 'par' key is eligible to be run +in parallel, while vavalues directly below a 'seq' key must be run in sequence. +.PP +\fIRules examples\fR +.IX Subsection "Rules examples" +.PP +Here are some examples: +.PP +.Vb 2 +\& # All tests be run in parallel (the default rule) +\& { par => \*(Aq**\*(Aq }, +\& +\& # Run all tests in sequence, except those starting with "p" +\& { par => \*(Aqt/p*.t\*(Aq }, +\& +\& # Run all tests in parallel, except those starting with "p" +\& { +\& seq => [ +\& { seq => \*(Aqt/p*.t\*(Aq }, +\& { par => \*(Aq**\*(Aq }, +\& ], +\& } +\& +\& # Run some startup tests in sequence, then some parallel tests then some +\& # teardown tests in sequence. +\& { +\& seq => [ +\& { seq => \*(Aqt/startup/*.t\*(Aq }, +\& { par => [\*(Aqt/a/*.t\*(Aq,\*(Aqt/b/*.t\*(Aq,\*(Aqt/c/*.t\*(Aq], } +\& { seq => \*(Aqt/shutdown/*.t\*(Aq }, +\& ], +\& }, +.Ve +.PP +\fIRules resolution\fR +.IX Subsection "Rules resolution" +.IP "\(bu" 4 +By default, all tests are eligible to be run in parallel. Specifying any of your own rules removes this one. +.IP "\(bu" 4 +\&\*(L"First match wins\*(R". The first rule that matches a test will be the one that applies. +.IP "\(bu" 4 +Any test which does not match a rule will be run in sequence at the end of the run. +.IP "\(bu" 4 +The existence of a rule does not imply selecting a test. You must still specify the tests to run. +.IP "\(bu" 4 +Specifying a rule to allow tests to run in parallel does not make the run in parallel. You still need specify the number of parallel \f(CW\*(C`jobs\*(C'\fR in your Harness object. +.PP +\fIGlob-style pattern matching for rules\fR +.IX Subsection "Glob-style pattern matching for rules" +.PP +We implement our own glob-style pattern matching. Here are the patterns it supports: +.PP +.Vb 5 +\& ** is any number of characters, including /, within a pathname +\& * is zero or more characters within a filename/directory name +\& ? is exactly one character within a filename/directory name +\& {foo,bar,baz} is any of foo, bar or baz. +\& \e is an escape character +.Ve +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`get_all\*(C'\fI\fR +.IX Subsection "get_all" +.PP +Get a list of all remaining tests. +.PP +\fI\f(CI\*(C`get_job\*(C'\fI\fR +.IX Subsection "get_job" +.PP +Return the next available job as TAP::Parser::Scheduler::Job object or +\&\f(CW\*(C`undef\*(C'\fR if none are available. Returns a TAP::Parser::Scheduler::Spinner if +the scheduler still has pending jobs but none are available to run right now. +.PP +\fI\f(CI\*(C`as_string\*(C'\fI\fR +.IX Subsection "as_string" +.PP +Return a human readable representation of the scheduling tree. +For example: +.PP +.Vb 3 +\& my @tests = (qw{ +\& t/startup/foo.t +\& t/shutdown/foo.t +\& +\& t/a/foo.t t/b/foo.t t/c/foo.t t/d/foo.t +\& }); +\& my $sched = TAP::Parser::Scheduler\->new( +\& tests => \e@tests, +\& rules => { +\& seq => [ +\& { seq => \*(Aqt/startup/*.t\*(Aq }, +\& { par => [\*(Aqt/a/*.t\*(Aq,\*(Aqt/b/*.t\*(Aq,\*(Aqt/c/*.t\*(Aq] }, +\& { seq => \*(Aqt/shutdown/*.t\*(Aq }, +\& ], +\& }, +\& ); +.Ve +.PP +Produces: +.PP +.Vb 10 +\& par: +\& seq: +\& par: +\& seq: +\& par: +\& seq: +\& \*(Aqt/startup/foo.t\*(Aq +\& par: +\& seq: +\& \*(Aqt/a/foo.t\*(Aq +\& seq: +\& \*(Aqt/b/foo.t\*(Aq +\& seq: +\& \*(Aqt/c/foo.t\*(Aq +\& par: +\& seq: +\& \*(Aqt/shutdown/foo.t\*(Aq +\& \*(Aqt/d/foo.t\*(Aq +.Ve diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASource.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASource.3 new file mode 100644 index 0000000000000000000000000000000000000000..d718bca12abb6ec9cef64a04547a36ffdae491cc --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASource.3 @@ -0,0 +1,351 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::Source 3" +.TH TAP::Parser::Source 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::Source \- a TAP source & meta data about it +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 8 +\& use TAP::Parser::Source; +\& my $source = TAP::Parser::Source\->new; +\& $source\->raw( \e\*(Aqreference to raw TAP source\*(Aq ) +\& \->config( \e%config ) +\& \->merge( $boolean ) +\& \->switches( \e@switches ) +\& \->test_args( \e@args ) +\& \->assemble_meta; +\& +\& do { ... } if $source\->meta\->{is_file}; +\& # see assemble_meta for a full list of data available +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A \s-1TAP\s0 \fIsource\fR is something that produces a stream of \s-1TAP\s0 for the parser to +consume, such as an executable file, a text file, an archive, an \s-1IO\s0 handle, a +database, etc. \f(CW\*(C`TAP::Parser::Source\*(C'\fRs encapsulate these \fIraw\fR sources, and +provide some useful meta data about them. They are used by +TAP::Parser::SourceHandlers, which do whatever is required to produce & +capture a stream of \s-1TAP\s0 from the \fIraw\fR source, and package it up in a +TAP::Parser::Iterator for the parser to consume. +.PP +Unless you're writing a new TAP::Parser::SourceHandler, a plugin or +subclassing TAP::Parser, you probably won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $source = TAP::Parser::Source\->new; +.Ve +.PP +Returns a new \f(CW\*(C`TAP::Parser::Source\*(C'\fR object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`raw\*(C'\fI\fR +.IX Subsection "raw" +.PP +.Vb 2 +\& my $raw = $source\->raw; +\& $source\->raw( $some_value ); +.Ve +.PP +Chaining getter/setter for the raw \s-1TAP\s0 source. This is a reference, as it may +contain large amounts of data (eg: raw \s-1TAP\s0). +.PP +\fI\f(CI\*(C`meta\*(C'\fI\fR +.IX Subsection "meta" +.PP +.Vb 2 +\& my $meta = $source\->meta; +\& $source\->meta({ %some_value }); +.Ve +.PP +Chaining getter/setter for meta data about the source. This defaults to an +empty hashref. See \*(L"assemble_meta\*(R" for more info. +.PP +\fI\f(CI\*(C`has_meta\*(C'\fI\fR +.IX Subsection "has_meta" +.PP +True if the source has meta data. +.PP +\fI\f(CI\*(C`config\*(C'\fI\fR +.IX Subsection "config" +.PP +.Vb 2 +\& my $config = $source\->config; +\& $source\->config({ %some_value }); +.Ve +.PP +Chaining getter/setter for the source's configuration, if any has been provided +by the user. How it's used is up to you. This defaults to an empty hashref. +See \*(L"config_for\*(R" for more info. +.PP +\fI\f(CI\*(C`merge\*(C'\fI\fR +.IX Subsection "merge" +.PP +.Vb 2 +\& my $merge = $source\->merge; +\& $source\->config( $bool ); +.Ve +.PP +Chaining getter/setter for the flag that dictates whether \s-1STDOUT\s0 and \s-1STDERR\s0 +should be merged (where appropriate). Defaults to undef. +.PP +\fI\f(CI\*(C`switches\*(C'\fI\fR +.IX Subsection "switches" +.PP +.Vb 2 +\& my $switches = $source\->switches; +\& $source\->config([ @switches ]); +.Ve +.PP +Chaining getter/setter for the list of command-line switches that should be +passed to the source (where appropriate). Defaults to undef. +.PP +\fI\f(CI\*(C`test_args\*(C'\fI\fR +.IX Subsection "test_args" +.PP +.Vb 2 +\& my $test_args = $source\->test_args; +\& $source\->config([ @test_args ]); +.Ve +.PP +Chaining getter/setter for the list of command-line arguments that should be +passed to the source (where appropriate). Defaults to undef. +.PP +\fI\f(CI\*(C`assemble_meta\*(C'\fI\fR +.IX Subsection "assemble_meta" +.PP +.Vb 1 +\& my $meta = $source\->assemble_meta; +.Ve +.PP +Gathers meta data about the \*(L"raw\*(R" source, stashes it in \*(L"meta\*(R" and returns +it as a hashref. This is done so that the TAP::Parser::SourceHandlers don't +have to repeat common checks. Currently this includes: +.PP +.Vb 3 +\& is_scalar => $bool, +\& is_hash => $bool, +\& is_array => $bool, +\& +\& # for scalars: +\& length => $n +\& has_newlines => $bool +\& +\& # only done if the scalar looks like a filename +\& is_file => $bool, +\& is_dir => $bool, +\& is_symlink => $bool, +\& file => { +\& # only done if the scalar looks like a filename +\& basename => $string, # including ext +\& dir => $string, +\& ext => $string, +\& lc_ext => $string, +\& # system checks +\& exists => $bool, +\& stat => [ ... ], # perldoc \-f stat +\& empty => $bool, +\& size => $n, +\& text => $bool, +\& binary => $bool, +\& read => $bool, +\& write => $bool, +\& execute => $bool, +\& setuid => $bool, +\& setgid => $bool, +\& sticky => $bool, +\& is_file => $bool, +\& is_dir => $bool, +\& is_symlink => $bool, +\& # only done if the file\*(Aqs a symlink +\& lstat => [ ... ], # perldoc \-f lstat +\& # only done if the file\*(Aqs a readable text file +\& shebang => $first_line, +\& } +\& +\& # for arrays: +\& size => $n, +.Ve +.PP +\fI\f(CI\*(C`shebang\*(C'\fI\fR +.IX Subsection "shebang" +.PP +Get the shebang line for a script file. +.PP +.Vb 1 +\& my $shebang = TAP::Parser::Source\->shebang( $some_script ); +.Ve +.PP +May be called as a class method +.PP +\fI\f(CI\*(C`config_for\*(C'\fI\fR +.IX Subsection "config_for" +.PP +.Vb 1 +\& my $config = $source\->config_for( $class ); +.Ve +.PP +Returns \*(L"config\*(R" for the \f(CW$class\fR given. Class names may be fully qualified +or abbreviated, eg: +.PP +.Vb 3 +\& # these are equivalent +\& $source\->config_for( \*(AqPerl\*(Aq ); +\& $source\->config_for( \*(AqTAP::Parser::SourceHandler::Perl\*(Aq ); +.Ve +.PP +If a fully qualified \f(CW$class\fR is given, its abbreviated version is checked first. +.SH "AUTHORS" +.IX Header "AUTHORS" +Steve Purkis. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AExecutable.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AExecutable.3 new file mode 100644 index 0000000000000000000000000000000000000000..0add6b913fa65398a56e52b74fb99b762dff39e3 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AExecutable.3 @@ -0,0 +1,248 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::SourceHandler::Executable 3" +.TH TAP::Parser::SourceHandler::Executable 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::SourceHandler::Executable \- Stream output from an executable TAP source +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Parser::Source; +\& use TAP::Parser::SourceHandler::Executable; +\& +\& my $source = TAP::Parser::Source\->new\->raw([\*(Aq/usr/bin/ruby\*(Aq, \*(Aqmytest.rb\*(Aq]); +\& $source\->assemble_meta; +\& +\& my $class = \*(AqTAP::Parser::SourceHandler::Executable\*(Aq; +\& my $vote = $class\->can_handle( $source ); +\& my $iter = $class\->make_iterator( $source ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an \fIexecutable\fR TAP::Parser::SourceHandler \- it has 2 jobs: +.PP +1. Figure out if the TAP::Parser::Source it's given is an executable + command (\*(L"can_handle\*(R"). +.PP +2. Creates an iterator for executable commands (\*(L"make_iterator\*(R"). +.PP +Unless you're writing a plugin or subclassing TAP::Parser, you +probably won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +Only votes if \f(CW$source\fR looks like an executable file. Casts the +following votes: +.PP +.Vb 3 +\& 0.9 if it\*(Aqs a hash with an \*(Aqexec\*(Aq key +\& 0.8 if it\*(Aqs a .bat file +\& 0.75 if it\*(Aqs got an execute bit set +.Ve +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +Returns a new TAP::Parser::Iterator::Process for the source. +\&\f(CW\*(C`$source\->raw\*(C'\fR must be in one of the following forms: +.PP +.Vb 1 +\& { exec => [ @exec ] } +\& +\& [ @exec ] +\& +\& $file +.Ve +.PP +\&\f(CW\*(C`croak\*(C'\fRs on error. +.PP +\fI\f(CI\*(C`iterator_class\*(C'\fI\fR +.IX Subsection "iterator_class" +.PP +The class of iterator to use, override if you're sub-classing. Defaults +to TAP::Parser::Iterator::Process. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SS "Example" +.IX Subsection "Example" +.Vb 1 +\& package MyRubySourceHandler; +\& +\& use strict; +\& +\& use Carp qw( croak ); +\& use TAP::Parser::SourceHandler::Executable; +\& +\& use base \*(AqTAP::Parser::SourceHandler::Executable\*(Aq; +\& +\& # expect $handler\->([\*(Aqmytest.rb\*(Aq, \*(Aqcmdline\*(Aq, \*(Aqargs\*(Aq]); +\& sub make_iterator { +\& my ($self, $source) = @_; +\& my @test_args = @{ $source\->test_args }; +\& my $rb_file = $test_args[0]; +\& croak("error: Ruby file \*(Aq$rb_file\*(Aq not found!") unless (\-f $rb_file); +\& return $self\->SUPER::raw_source([\*(Aq/usr/bin/ruby\*(Aq, @test_args]); +\& } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::Handle, +TAP::Parser::SourceHandler::RawTAP diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AFile.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..975a18bdacd19e62f56e615cd0c6a1b3ab62ba08 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AFile.3 @@ -0,0 +1,221 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::SourceHandler::File 3" +.TH TAP::Parser::SourceHandler::File 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::SourceHandler::File \- Stream TAP from a text file. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Parser::Source; +\& use TAP::Parser::SourceHandler::File; +\& +\& my $source = TAP::Parser::Source\->new\->raw( \e\*(Aqfile.tap\*(Aq ); +\& $source\->assemble_meta; +\& +\& my $class = \*(AqTAP::Parser::SourceHandler::File\*(Aq; +\& my $vote = $class\->can_handle( $source ); +\& my $iter = $class\->make_iterator( $source ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \fIraw \s-1TAP\s0 stored in a file\fR TAP::Parser::SourceHandler \- it has 2 jobs: +.PP +1. Figure out if the \fIraw\fR source it's given is a file containing raw \s-1TAP\s0 +output. See TAP::Parser::IteratorFactory for more details. +.PP +2. Takes raw \s-1TAP\s0 from the text file given, and converts into an iterator. +.PP +Unless you're writing a plugin or subclassing TAP::Parser, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +Only votes if \f(CW$source\fR looks like a regular file. Casts the following votes: +.PP +.Vb 2 +\& 0.9 if it\*(Aqs a .tap file +\& 0.9 if it has an extension matching any given in user config. +.Ve +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +Returns a new TAP::Parser::Iterator::Stream for the source. \f(CW\*(C`croak\*(C'\fRs +on error. +.PP +\fI\f(CI\*(C`iterator_class\*(C'\fI\fR +.IX Subsection "iterator_class" +.PP +The class of iterator to use, override if you're sub-classing. Defaults +to TAP::Parser::Iterator::Stream. +.SH "CONFIGURATION" +.IX Header "CONFIGURATION" +.Vb 3 +\& { +\& extensions => [ @case_insensitive_exts_to_match ] +\& } +.Ve +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::Executable, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::Handle, +TAP::Parser::SourceHandler::RawTAP diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AHandle.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..d50c1292cb3b97ba4646dd65707255d43e8f9d43 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3AHandle.3 @@ -0,0 +1,217 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::SourceHandler::Handle 3" +.TH TAP::Parser::SourceHandler::Handle 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::SourceHandler::Handle \- Stream TAP from an IO::Handle or a GLOB. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Parser::Source; +\& use TAP::Parser::SourceHandler::Executable; +\& +\& my $source = TAP::Parser::Source\->new\->raw( \e*TAP_FILE ); +\& $source\->assemble_meta; +\& +\& my $class = \*(AqTAP::Parser::SourceHandler::Handle\*(Aq; +\& my $vote = $class\->can_handle( $source ); +\& my $iter = $class\->make_iterator( $source ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \fIraw \s-1TAP\s0 stored in an \s-1IO\s0 Handle\fR TAP::Parser::SourceHandler class. It +has 2 jobs: +.PP +1. Figure out if the TAP::Parser::Source it's given is an IO::Handle or +\&\s-1GLOB\s0 containing raw \s-1TAP\s0 output (\*(L"can_handle\*(R"). +.PP +2. Creates an iterator for IO::Handle's & globs (\*(L"make_iterator\*(R"). +.PP +Unless you're writing a plugin or subclassing TAP::Parser, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +Casts the following votes: +.PP +.Vb 2 +\& 0.9 if $source is an IO::Handle +\& 0.8 if $source is a glob +.Ve +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +Returns a new TAP::Parser::Iterator::Stream for the source. +.PP +\fI\f(CI\*(C`iterator_class\*(C'\fI\fR +.IX Subsection "iterator_class" +.PP +The class of iterator to use, override if you're sub-classing. Defaults +to TAP::Parser::Iterator::Stream. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator, +TAP::Parser::Iterator::Stream, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::Executable, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::RawTAP diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3APerl.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3APerl.3 new file mode 100644 index 0000000000000000000000000000000000000000..9dcfa4213e052b320e6e2913edb6639e509eb63c --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3APerl.3 @@ -0,0 +1,280 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::SourceHandler::Perl 3" +.TH TAP::Parser::SourceHandler::Perl 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::SourceHandler::Perl \- Stream TAP from a Perl executable +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Parser::Source; +\& use TAP::Parser::SourceHandler::Perl; +\& +\& my $source = TAP::Parser::Source\->new\->raw( \e\*(Aqscript.pl\*(Aq ); +\& $source\->assemble_meta; +\& +\& my $class = \*(AqTAP::Parser::SourceHandler::Perl\*(Aq; +\& my $vote = $class\->can_handle( $source ); +\& my $iter = $class\->make_iterator( $source ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \fIPerl\fR TAP::Parser::SourceHandler \- it has 2 jobs: +.PP +1. Figure out if the TAP::Parser::Source it's given is actually a Perl +script (\*(L"can_handle\*(R"). +.PP +2. Creates an iterator for Perl sources (\*(L"make_iterator\*(R"). +.PP +Unless you're writing a plugin or subclassing TAP::Parser, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +Only votes if \f(CW$source\fR looks like a file. Casts the following votes: +.PP +.Vb 6 +\& 0.9 if it has a shebang ala "#!...perl" +\& 0.75 if it has any shebang +\& 0.8 if it\*(Aqs a .t file +\& 0.9 if it\*(Aqs a .pl file +\& 0.75 if it\*(Aqs in a \*(Aqt\*(Aq directory +\& 0.25 by default (backwards compat) +.Ve +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +Constructs & returns a new TAP::Parser::Iterator::Process for the source. +Assumes \f(CW\*(C`$source\->raw\*(C'\fR contains a reference to the perl script. \f(CW\*(C`croak\*(C'\fRs +if the file could not be found. +.PP +The command to run is built as follows: +.PP +.Vb 1 +\& $perl @switches $perl_script @test_args +.Ve +.PP +The perl command to use is determined by \*(L"get_perl\*(R". The command generated +is guaranteed to preserve: +.PP +.Vb 3 +\& PERL5LIB +\& PERL5OPT +\& Taint Mode, if set in the script\*(Aqs shebang +.Ve +.PP +\&\fINote:\fR the command generated will \fInot\fR respect any shebang line defined in +your Perl script. This is only a problem if you have compiled a custom version +of Perl or if you want to use a specific version of Perl for one test and a +different version for another, for example: +.PP +.Vb 2 +\& #!/path/to/a/custom_perl \-\-some \-\-args +\& #!/usr/local/perl\-5.6/bin/perl \-w +.Ve +.PP +Currently you need to write a plugin to get around this. +.PP +\fI\f(CI\*(C`get_taint\*(C'\fI\fR +.IX Subsection "get_taint" +.PP +Decode any taint switches from a Perl shebang line. +.PP +.Vb 2 +\& # $taint will be \*(Aqt\*(Aq +\& my $taint = TAP::Parser::SourceHandler::Perl\->get_taint( \*(Aq#!/usr/bin/perl \-t\*(Aq ); +\& +\& # $untaint will be undefined +\& my $untaint = TAP::Parser::SourceHandler::Perl\->get_taint( \*(Aq#!/usr/bin/perl\*(Aq ); +.Ve +.PP +\fI\f(CI\*(C`get_perl\*(C'\fI\fR +.IX Subsection "get_perl" +.PP +Gets the version of Perl currently running the test suite. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SS "Example" +.IX Subsection "Example" +.Vb 1 +\& package MyPerlSourceHandler; +\& +\& use strict; +\& +\& use TAP::Parser::SourceHandler::Perl; +\& +\& use base \*(AqTAP::Parser::SourceHandler::Perl\*(Aq; +\& +\& # use the version of perl from the shebang line in the test file +\& sub get_perl { +\& my $self = shift; +\& if (my $shebang = $self\->shebang( $self\->{file} )) { +\& $shebang =~ /^#!(.*\ebperl.*?)(?:(?:\es)|(?:$))/; +\& return $1 if $1; +\& } +\& return $self\->SUPER::get_perl(@_); +\& } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::Executable, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::Handle, +TAP::Parser::SourceHandler::RawTAP diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3ARawTAP.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3ARawTAP.3 new file mode 100644 index 0000000000000000000000000000000000000000..0a10331369809b5bd3688d1da504f625bd61eafd --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler%3A%3ARawTAP.3 @@ -0,0 +1,214 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::SourceHandler::RawTAP 3" +.TH TAP::Parser::SourceHandler::RawTAP 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::SourceHandler::RawTAP \- Stream output from raw TAP in a scalar/array ref. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use TAP::Parser::Source; +\& use TAP::Parser::SourceHandler::RawTAP; +\& +\& my $source = TAP::Parser::Source\->new\->raw( \e"1..1\enok 1\en" ); +\& $source\->assemble_meta; +\& +\& my $class = \*(AqTAP::Parser::SourceHandler::RawTAP\*(Aq; +\& my $vote = $class\->can_handle( $source ); +\& my $iter = $class\->make_iterator( $source ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \fIraw \s-1TAP\s0 output\fR TAP::Parser::SourceHandler \- it has 2 jobs: +.PP +1. Figure out if the TAP::Parser::Source it's given is raw \s-1TAP\s0 output +(\*(L"can_handle\*(R"). +.PP +2. Creates an iterator for raw \s-1TAP\s0 output (\*(L"make_iterator\*(R"). +.PP +Unless you're writing a plugin or subclassing TAP::Parser, you probably +won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +Only votes if \f(CW$source\fR is an array, or a scalar with newlines. Casts the +following votes: +.PP +.Vb 4 +\& 0.9 if it\*(Aqs a scalar with \*(Aq..\*(Aq in it +\& 0.7 if it\*(Aqs a scalar with \*(Aqok\*(Aq in it +\& 0.3 if it\*(Aqs just a scalar with newlines +\& 0.5 if it\*(Aqs an array +.Ve +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +Returns a new TAP::Parser::Iterator::Array for the source. +\&\f(CW\*(C`$source\->raw\*(C'\fR must be an array ref, or a scalar ref. +.PP +\&\f(CW\*(C`croak\*(C'\fRs on error. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler, +TAP::Parser::SourceHandler::Executable, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::Handle diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AReader.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AReader.3 new file mode 100644 index 0000000000000000000000000000000000000000..ad9e369ff8a7de3c9b6a5f436068e978665c5e74 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AReader.3 @@ -0,0 +1,205 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::YAMLish::Reader 3" +.TH TAP::Parser::YAMLish::Reader 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::YAMLish::Reader \- Read YAMLish data from iterator +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Note that parts of this code were derived from YAML::Tiny with the +permission of Adam Kennedy. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +The constructor \f(CW\*(C`new\*(C'\fR creates and returns an empty +\&\f(CW\*(C`TAP::Parser::YAMLish::Reader\*(C'\fR object. +.PP +.Vb 1 +\& my $reader = TAP::Parser::YAMLish::Reader\->new; +.Ve +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`read\*(C'\fI\fR +.IX Subsection "read" +.PP +.Vb 1 +\& my $got = $reader\->read($iterator); +.Ve +.PP +Read YAMLish from a TAP::Parser::Iterator and return the data structure it +represents. +.PP +\fI\f(CI\*(C`get_raw\*(C'\fI\fR +.IX Subsection "get_raw" +.PP +.Vb 1 +\& my $source = $reader\->get_source; +.Ve +.PP +Return the raw YAMLish source from the most recent \f(CW\*(C`read\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andy Armstrong, +.PP +Adam Kennedy wrote YAML::Tiny which provided the template and many of +the \s-1YAML\s0 matching regular expressions for this module. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +YAML::Tiny, \s-1YAML\s0, YAML::Syck, Config::Tiny, CSS::Tiny, + +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2007\-2011 Andy Armstrong. +.PP +Portions copyright 2006\-2008 Adam Kennedy. +.PP +This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. +.PP +The full text of the license can be found in the +\&\s-1LICENSE\s0 file included with this module. diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AWriter.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AWriter.3 new file mode 100644 index 0000000000000000000000000000000000000000..7ca0783da5488e82f2e61acd1a7785dca247aa67 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AYAMLish%3A%3AWriter.3 @@ -0,0 +1,245 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser::YAMLish::Writer 3" +.TH TAP::Parser::YAMLish::Writer 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser::YAMLish::Writer \- Write YAMLish data +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser::YAMLish::Writer; +\& +\& my $data = { +\& one => 1, +\& two => 2, +\& three => [ 1, 2, 3 ], +\& }; +\& +\& my $yw = TAP::Parser::YAMLish::Writer\->new; +\& +\& # Write to an array... +\& $yw\->write( $data, \e@some_array ); +\& +\& # ...an open file handle... +\& $yw\->write( $data, $some_file_handle ); +\& +\& # ...a string ... +\& $yw\->write( $data, \e$some_string ); +\& +\& # ...or a closure +\& $yw\->write( $data, sub { +\& my $line = shift; +\& print "$line\en"; +\& } ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Encodes a scalar, hash reference or array reference as YAMLish. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $writer = TAP::Parser::YAMLish::Writer\->new; +.Ve +.PP +The constructor \f(CW\*(C`new\*(C'\fR creates and returns an empty +\&\f(CW\*(C`TAP::Parser::YAMLish::Writer\*(C'\fR object. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`write\*(C'\fI\fR +.IX Subsection "write" +.PP +.Vb 1 +\& $writer\->write($obj, $output ); +.Ve +.PP +Encode a scalar, hash reference or array reference as \s-1YAML.\s0 +.PP +.Vb 4 +\& my $writer = sub { +\& my $line = shift; +\& print SOMEFILE "$line\en"; +\& }; +\& +\& my $data = { +\& one => 1, +\& two => 2, +\& three => [ 1, 2, 3 ], +\& }; +\& +\& my $yw = TAP::Parser::YAMLish::Writer\->new; +\& $yw\->write( $data, $writer ); +.Ve +.PP +The \f(CW $output \fR argument may be: +.IP "\(bu" 4 +a reference to a scalar to append \s-1YAML\s0 to +.IP "\(bu" 4 +the handle of an open file +.IP "\(bu" 4 +a reference to an array into which \s-1YAML\s0 will be pushed +.IP "\(bu" 4 +a code reference +.PP +If you supply a code reference the subroutine will be called once for +each line of output with the line as its only argument. Passed lines +will have no trailing newline. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andy Armstrong, +.SH "SEE ALSO" +.IX Header "SEE ALSO" +YAML::Tiny, \s-1YAML\s0, YAML::Syck, Config::Tiny, CSS::Tiny, + +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2007\-2011 Andy Armstrong. +.PP +This program is free software; you can redistribute +it and/or modify it under the same terms as Perl itself. +.PP +The full text of the license can be found in the +\&\s-1LICENSE\s0 file included with this module. diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser.3 b/data/miniconda3/man/man3/TAP%3A%3AParser.3 new file mode 100644 index 0000000000000000000000000000000000000000..1ae66ab5334437df88503e74983e37deb8a80302 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser.3 @@ -0,0 +1,1490 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "TAP::Parser 3" +.TH TAP::Parser 3 "2020-12-18" "perl v5.32.1" "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" +TAP::Parser \- Parse TAP output +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use TAP::Parser; +\& +\& my $parser = TAP::Parser\->new( { source => $source } ); +\& +\& while ( my $result = $parser\->next ) { +\& print $result\->as_string; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Parser\*(C'\fR is designed to produce a proper parse of \s-1TAP\s0 output. For +an example of how to run tests through this module, see the simple +harnesses \f(CW\*(C`examples/\*(C'\fR. +.PP +There's a wiki dedicated to the Test Anything Protocol: +.PP + +.PP +It includes the TAP::Parser Cookbook: +.PP + +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $parser = TAP::Parser\->new(\e%args); +.Ve +.PP +Returns a new \f(CW\*(C`TAP::Parser\*(C'\fR object. +.PP +The arguments should be a hashref with \fIone\fR of the following keys: +.IP "\(bu" 4 +\&\f(CW\*(C`source\*(C'\fR +.Sp +\&\fI\s-1CHANGED\s0 in 3.18\fR +.Sp +This is the preferred method of passing input to the constructor. +.Sp +The \f(CW\*(C`source\*(C'\fR is used to create a TAP::Parser::Source that is passed to the +\&\*(L"iterator_factory_class\*(R" which in turn figures out how to handle the source and +creates a for it. The iterator is used by the parser to +read in the \s-1TAP\s0 stream. +.Sp +To configure the \fIIteratorFactory\fR use the \f(CW\*(C`sources\*(C'\fR parameter below. +.Sp +Note that \f(CW\*(C`source\*(C'\fR, \f(CW\*(C`tap\*(C'\fR and \f(CW\*(C`exec\*(C'\fR are \fImutually exclusive\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`tap\*(C'\fR +.Sp +\&\fI\s-1CHANGED\s0 in 3.18\fR +.Sp +The value should be the complete \s-1TAP\s0 output. +.Sp +The \fItap\fR is used to create a TAP::Parser::Source that is passed to the +\&\*(L"iterator_factory_class\*(R" which in turn figures out how to handle the source and +creates a for it. The iterator is used by the parser to +read in the \s-1TAP\s0 stream. +.Sp +To configure the \fIIteratorFactory\fR use the \f(CW\*(C`sources\*(C'\fR parameter below. +.Sp +Note that \f(CW\*(C`source\*(C'\fR, \f(CW\*(C`tap\*(C'\fR and \f(CW\*(C`exec\*(C'\fR are \fImutually exclusive\fR. +.IP "\(bu" 4 +\&\f(CW\*(C`exec\*(C'\fR +.Sp +Must be passed an array reference. +.Sp +The \fIexec\fR array ref is used to create a TAP::Parser::Source that is passed +to the \*(L"iterator_factory_class\*(R" which in turn figures out how to handle the +source and creates a for it. The iterator is used by +the parser to read in the \s-1TAP\s0 stream. +.Sp +By default the TAP::Parser::SourceHandler::Executable class will create a +TAP::Parser::Iterator::Process object to handle the source. This passes the +array reference strings as command arguments to IPC::Open3::open3: +.Sp +.Vb 1 +\& exec => [ \*(Aq/usr/bin/ruby\*(Aq, \*(Aqt/my_test.rb\*(Aq ] +.Ve +.Sp +If any \f(CW\*(C`test_args\*(C'\fR are given they will be appended to the end of the command +argument list. +.Sp +To configure the \fIIteratorFactory\fR use the \f(CW\*(C`sources\*(C'\fR parameter below. +.Sp +Note that \f(CW\*(C`source\*(C'\fR, \f(CW\*(C`tap\*(C'\fR and \f(CW\*(C`exec\*(C'\fR are \fImutually exclusive\fR. +.PP +The following keys are optional. +.IP "\(bu" 4 +\&\f(CW\*(C`sources\*(C'\fR +.Sp +\&\fI\s-1NEW\s0 to 3.18\fR. +.Sp +If set, \f(CW\*(C`sources\*(C'\fR must be a hashref containing the names of the +TAP::Parser::SourceHandlers to load and/or configure. The values are a +hash of configuration that will be accessible to the source handlers via +\&\*(L"config_for\*(R" in TAP::Parser::Source. +.Sp +For example: +.Sp +.Vb 5 +\& sources => { +\& Perl => { exec => \*(Aq/path/to/custom/perl\*(Aq }, +\& File => { extensions => [ \*(Aq.tap\*(Aq, \*(Aq.txt\*(Aq ] }, +\& MyCustom => { some => \*(Aqconfig\*(Aq }, +\& } +.Ve +.Sp +This will cause \f(CW\*(C`TAP::Parser\*(C'\fR to pass custom configuration to two of the built\- +in source handlers \- TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::File \- and attempt to load the \f(CW\*(C`MyCustom\*(C'\fR +class. See \*(L"load_handlers\*(R" in TAP::Parser::IteratorFactory for more detail. +.Sp +The \f(CW\*(C`sources\*(C'\fR parameter affects how \f(CW\*(C`source\*(C'\fR, \f(CW\*(C`tap\*(C'\fR and \f(CW\*(C`exec\*(C'\fR parameters +are handled. +.Sp +See TAP::Parser::IteratorFactory, TAP::Parser::SourceHandler and subclasses for +more details. +.IP "\(bu" 4 +\&\f(CW\*(C`callback\*(C'\fR +.Sp +If present, each callback corresponding to a given result type will be called +with the result as the argument if the \f(CW\*(C`run\*(C'\fR method is used: +.Sp +.Vb 7 +\& my %callbacks = ( +\& test => \e&test_callback, +\& plan => \e&plan_callback, +\& comment => \e&comment_callback, +\& bailout => \e&bailout_callback, +\& unknown => \e&unknown_callback, +\& ); +\& +\& my $aggregator = TAP::Parser::Aggregator\->new; +\& for my $file ( @test_files ) { +\& my $parser = TAP::Parser\->new( +\& { +\& source => $file, +\& callbacks => \e%callbacks, +\& } +\& ); +\& $parser\->run; +\& $aggregator\->add( $file, $parser ); +\& } +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`switches\*(C'\fR +.Sp +If using a Perl file as a source, optional switches may be passed which will +be used when invoking the perl executable. +.Sp +.Vb 4 +\& my $parser = TAP::Parser\->new( { +\& source => $test_file, +\& switches => [ \*(Aq\-Ilib\*(Aq ], +\& } ); +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`test_args\*(C'\fR +.Sp +Used in conjunction with the \f(CW\*(C`source\*(C'\fR and \f(CW\*(C`exec\*(C'\fR option to supply a reference +to an \f(CW@ARGV\fR style array of arguments to pass to the test program. +.IP "\(bu" 4 +\&\f(CW\*(C`spool\*(C'\fR +.Sp +If passed a filehandle will write a copy of all parsed \s-1TAP\s0 to that handle. +.IP "\(bu" 4 +\&\f(CW\*(C`merge\*(C'\fR +.Sp +If false, \s-1STDERR\s0 is not captured (though it is 'relayed' to keep it +somewhat synchronized with \s-1STDOUT.\s0) +.Sp +If true, \s-1STDERR\s0 and \s-1STDOUT\s0 are the same filehandle. This may cause +breakage if \s-1STDERR\s0 contains anything resembling \s-1TAP\s0 format, but does +allow exact synchronization. +.Sp +Subtleties of this behavior may be platform-dependent and may change in +the future. +.IP "\(bu" 4 +\&\f(CW\*(C`grammar_class\*(C'\fR +.Sp +This option was introduced to let you easily customize which \fIgrammar\fR class +the parser should use. It defaults to TAP::Parser::Grammar. +.Sp +See also \*(L"make_grammar\*(R". +.IP "\(bu" 4 +\&\f(CW\*(C`result_factory_class\*(C'\fR +.Sp +This option was introduced to let you easily customize which \fIresult\fR +factory class the parser should use. It defaults to +TAP::Parser::ResultFactory. +.Sp +See also \*(L"make_result\*(R". +.IP "\(bu" 4 +\&\f(CW\*(C`iterator_factory_class\*(C'\fR +.Sp +\&\fI\s-1CHANGED\s0 in 3.18\fR +.Sp +This option was introduced to let you easily customize which \fIiterator\fR +factory class the parser should use. It defaults to +TAP::Parser::IteratorFactory. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`next\*(C'\fI\fR +.IX Subsection "next" +.PP +.Vb 4 +\& my $parser = TAP::Parser\->new( { source => $file } ); +\& while ( my $result = $parser\->next ) { +\& print $result\->as_string, "\en"; +\& } +.Ve +.PP +This method returns the results of the parsing, one result at a time. Note +that it is destructive. You can't rewind and examine previous results. +.PP +If callbacks are used, they will be issued before this call returns. +.PP +Each result returned is a subclass of TAP::Parser::Result. See that +module and related classes for more information on how to use them. +.PP +\fI\f(CI\*(C`run\*(C'\fI\fR +.IX Subsection "run" +.PP +.Vb 1 +\& $parser\->run; +.Ve +.PP +This method merely runs the parser and parses all of the \s-1TAP.\s0 +.PP +\fI\f(CI\*(C`make_grammar\*(C'\fI\fR +.IX Subsection "make_grammar" +.PP +Make a new TAP::Parser::Grammar object and return it. Passes through any +arguments given. +.PP +The \f(CW\*(C`grammar_class\*(C'\fR can be customized, as described in \*(L"new\*(R". +.PP +\fI\f(CI\*(C`make_result\*(C'\fI\fR +.IX Subsection "make_result" +.PP +Make a new TAP::Parser::Result object using the parser's +TAP::Parser::ResultFactory, and return it. Passes through any arguments +given. +.PP +The \f(CW\*(C`result_factory_class\*(C'\fR can be customized, as described in \*(L"new\*(R". +.PP +\fI\f(CI\*(C`make_iterator_factory\*(C'\fI\fR +.IX Subsection "make_iterator_factory" +.PP +\&\fI\s-1NEW\s0 to 3.18\fR. +.PP +Make a new TAP::Parser::IteratorFactory object and return it. Passes through +any arguments given. +.PP +\&\f(CW\*(C`iterator_factory_class\*(C'\fR can be customized, as described in \*(L"new\*(R". +.SH "INDIVIDUAL RESULTS" +.IX Header "INDIVIDUAL RESULTS" +If you've read this far in the docs, you've seen this: +.PP +.Vb 3 +\& while ( my $result = $parser\->next ) { +\& print $result\->as_string; +\& } +.Ve +.PP +Each result returned is a TAP::Parser::Result subclass, referred to as +\&\fIresult types\fR. +.SS "Result types" +.IX Subsection "Result types" +Basically, you fetch individual results from the \s-1TAP.\s0 The six types, with +examples of each, are as follows: +.IP "\(bu" 4 +Version +.Sp +.Vb 1 +\& TAP version 12 +.Ve +.IP "\(bu" 4 +Plan +.Sp +.Vb 1 +\& 1..42 +.Ve +.IP "\(bu" 4 +Pragma +.Sp +.Vb 1 +\& pragma +strict +.Ve +.IP "\(bu" 4 +Test +.Sp +.Vb 1 +\& ok 3 \- We should start with some foobar! +.Ve +.IP "\(bu" 4 +Comment +.Sp +.Vb 1 +\& # Hope we don\*(Aqt use up the foobar. +.Ve +.IP "\(bu" 4 +Bailout +.Sp +.Vb 1 +\& Bail out! We ran out of foobar! +.Ve +.IP "\(bu" 4 +Unknown +.Sp +.Vb 1 +\& ... yo, this ain\*(Aqt TAP! ... +.Ve +.PP +Each result fetched is a result object of a different type. There are common +methods to each result object and different types may have methods unique to +their type. Sometimes a type method may be overridden in a subclass, but its +use is guaranteed to be identical. +.SS "Common type methods" +.IX Subsection "Common type methods" +\fI\f(CI\*(C`type\*(C'\fI\fR +.IX Subsection "type" +.PP +Returns the type of result, such as \f(CW\*(C`comment\*(C'\fR or \f(CW\*(C`test\*(C'\fR. +.PP +\fI\f(CI\*(C`as_string\*(C'\fI\fR +.IX Subsection "as_string" +.PP +Prints a string representation of the token. This might not be the exact +output, however. Tests will have test numbers added if not present, \s-1TODO\s0 and +\&\s-1SKIP\s0 directives will be capitalized and, in general, things will be cleaned +up. If you need the original text for the token, see the \f(CW\*(C`raw\*(C'\fR method. +.PP +\fI\f(CI\*(C`raw\*(C'\fI\fR +.IX Subsection "raw" +.PP +Returns the original line of text which was parsed. +.PP +\fI\f(CI\*(C`is_plan\*(C'\fI\fR +.IX Subsection "is_plan" +.PP +Indicates whether or not this is the test plan line. +.PP +\fI\f(CI\*(C`is_test\*(C'\fI\fR +.IX Subsection "is_test" +.PP +Indicates whether or not this is a test line. +.PP +\fI\f(CI\*(C`is_comment\*(C'\fI\fR +.IX Subsection "is_comment" +.PP +Indicates whether or not this is a comment. Comments will generally only +appear in the \s-1TAP\s0 stream if \s-1STDERR\s0 is merged to \s-1STDOUT.\s0 See the +\&\f(CW\*(C`merge\*(C'\fR option. +.PP +\fI\f(CI\*(C`is_bailout\*(C'\fI\fR +.IX Subsection "is_bailout" +.PP +Indicates whether or not this is bailout line. +.PP +\fI\f(CI\*(C`is_yaml\*(C'\fI\fR +.IX Subsection "is_yaml" +.PP +Indicates whether or not the current item is a \s-1YAML\s0 block. +.PP +\fI\f(CI\*(C`is_unknown\*(C'\fI\fR +.IX Subsection "is_unknown" +.PP +Indicates whether or not the current line could be parsed. +.PP +\fI\f(CI\*(C`is_ok\*(C'\fI\fR +.IX Subsection "is_ok" +.PP +.Vb 1 +\& if ( $result\->is_ok ) { ... } +.Ve +.PP +Reports whether or not a given result has passed. Anything which is \fBnot\fR a +test result returns true. This is merely provided as a convenient shortcut +which allows you to do this: +.PP +.Vb 5 +\& my $parser = TAP::Parser\->new( { source => $source } ); +\& while ( my $result = $parser\->next ) { +\& # only print failing results +\& print $result\->as_string unless $result\->is_ok; +\& } +.Ve +.ie n .SS """plan"" methods" +.el .SS "\f(CWplan\fP methods" +.IX Subsection "plan methods" +.Vb 1 +\& if ( $result\->is_plan ) { ... } +.Ve +.PP +If the above evaluates as true, the following methods will be available on the +\&\f(CW$result\fR object. +.PP +\fI\f(CI\*(C`plan\*(C'\fI\fR +.IX Subsection "plan" +.PP +.Vb 3 +\& if ( $result\->is_plan ) { +\& print $result\->plan; +\& } +.Ve +.PP +This is merely a synonym for \f(CW\*(C`as_string\*(C'\fR. +.PP +\fI\f(CI\*(C`directive\*(C'\fI\fR +.IX Subsection "directive" +.PP +.Vb 1 +\& my $directive = $result\->directive; +.Ve +.PP +If a \s-1SKIP\s0 directive is included with the plan, this method will return it. +.PP +.Vb 1 +\& 1..0 # SKIP: why bother? +.Ve +.PP +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 1 +\& my $explanation = $result\->explanation; +.Ve +.PP +If a \s-1SKIP\s0 directive was included with the plan, this method will return the +explanation, if any. +.ie n .SS """pragma"" methods" +.el .SS "\f(CWpragma\fP methods" +.IX Subsection "pragma methods" +.Vb 1 +\& if ( $result\->is_pragma ) { ... } +.Ve +.PP +If the above evaluates as true, the following methods will be available on the +\&\f(CW$result\fR object. +.PP +\fI\f(CI\*(C`pragmas\*(C'\fI\fR +.IX Subsection "pragmas" +.PP +Returns a list of pragmas each of which is a + or \- followed by the +pragma name. +.ie n .SS """comment"" methods" +.el .SS "\f(CWcomment\fP methods" +.IX Subsection "comment methods" +.Vb 1 +\& if ( $result\->is_comment ) { ... } +.Ve +.PP +If the above evaluates as true, the following methods will be available on the +\&\f(CW$result\fR object. +.PP +\fI\f(CI\*(C`comment\*(C'\fI\fR +.IX Subsection "comment" +.PP +.Vb 4 +\& if ( $result\->is_comment ) { +\& my $comment = $result\->comment; +\& print "I have something to say: $comment"; +\& } +.Ve +.ie n .SS """bailout"" methods" +.el .SS "\f(CWbailout\fP methods" +.IX Subsection "bailout methods" +.Vb 1 +\& if ( $result\->is_bailout ) { ... } +.Ve +.PP +If the above evaluates as true, the following methods will be available on the +\&\f(CW$result\fR object. +.PP +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 4 +\& if ( $result\->is_bailout ) { +\& my $explanation = $result\->explanation; +\& print "We bailed out because ($explanation)"; +\& } +.Ve +.PP +If, and only if, a token is a bailout token, you can get an \*(L"explanation\*(R" via +this method. The explanation is the text after the mystical \*(L"Bail out!\*(R" words +which appear in the tap output. +.ie n .SS """unknown"" methods" +.el .SS "\f(CWunknown\fP methods" +.IX Subsection "unknown methods" +.Vb 1 +\& if ( $result\->is_unknown ) { ... } +.Ve +.PP +There are no unique methods for unknown results. +.ie n .SS """test"" methods" +.el .SS "\f(CWtest\fP methods" +.IX Subsection "test methods" +.Vb 1 +\& if ( $result\->is_test ) { ... } +.Ve +.PP +If the above evaluates as true, the following methods will be available on the +\&\f(CW$result\fR object. +.PP +\fI\f(CI\*(C`ok\*(C'\fI\fR +.IX Subsection "ok" +.PP +.Vb 1 +\& my $ok = $result\->ok; +.Ve +.PP +Returns the literal text of the \f(CW\*(C`ok\*(C'\fR or \f(CW\*(C`not ok\*(C'\fR status. +.PP +\fI\f(CI\*(C`number\*(C'\fI\fR +.IX Subsection "number" +.PP +.Vb 1 +\& my $test_number = $result\->number; +.Ve +.PP +Returns the number of the test, even if the original \s-1TAP\s0 output did not supply +that number. +.PP +\fI\f(CI\*(C`description\*(C'\fI\fR +.IX Subsection "description" +.PP +.Vb 1 +\& my $description = $result\->description; +.Ve +.PP +Returns the description of the test, if any. This is the portion after the +test number but before the directive. +.PP +\fI\f(CI\*(C`directive\*(C'\fI\fR +.IX Subsection "directive" +.PP +.Vb 1 +\& my $directive = $result\->directive; +.Ve +.PP +Returns either \f(CW\*(C`TODO\*(C'\fR or \f(CW\*(C`SKIP\*(C'\fR if either directive was present for a test +line. +.PP +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 1 +\& my $explanation = $result\->explanation; +.Ve +.PP +If a test had either a \f(CW\*(C`TODO\*(C'\fR or \f(CW\*(C`SKIP\*(C'\fR directive, this method will return +the accompanying explanation, if present. +.PP +.Vb 1 +\& not ok 17 \- \*(AqPigs can fly\*(Aq # TODO not enough acid +.Ve +.PP +For the above line, the explanation is \fInot enough acid\fR. +.PP +\fI\f(CI\*(C`is_ok\*(C'\fI\fR +.IX Subsection "is_ok" +.PP +.Vb 1 +\& if ( $result\->is_ok ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not the test passed. Remember +that for \s-1TODO\s0 tests, the test always passes. +.PP +\&\fBNote:\fR this was formerly \f(CW\*(C`passed\*(C'\fR. The latter method is deprecated and +will issue a warning. +.PP +\fI\f(CI\*(C`is_actual_ok\*(C'\fI\fR +.IX Subsection "is_actual_ok" +.PP +.Vb 1 +\& if ( $result\->is_actual_ok ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not the test passed, regardless +of its \s-1TODO\s0 status. +.PP +\&\fBNote:\fR this was formerly \f(CW\*(C`actual_passed\*(C'\fR. The latter method is deprecated +and will issue a warning. +.PP +\fI\f(CI\*(C`is_unplanned\*(C'\fI\fR +.IX Subsection "is_unplanned" +.PP +.Vb 1 +\& if ( $test\->is_unplanned ) { ... } +.Ve +.PP +If a test number is greater than the number of planned tests, this method will +return true. Unplanned tests will \fIalways\fR return false for \f(CW\*(C`is_ok\*(C'\fR, +regardless of whether or not the test \f(CW\*(C`has_todo\*(C'\fR (see +TAP::Parser::Result::Test for more information about this). +.PP +\fI\f(CI\*(C`has_skip\*(C'\fI\fR +.IX Subsection "has_skip" +.PP +.Vb 1 +\& if ( $result\->has_skip ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not this test had a \s-1SKIP\s0 +directive. +.PP +\fI\f(CI\*(C`has_todo\*(C'\fI\fR +.IX Subsection "has_todo" +.PP +.Vb 1 +\& if ( $result\->has_todo ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not this test had a \s-1TODO\s0 +directive. +.PP +Note that \s-1TODO\s0 tests \fIalways\fR pass. If you need to know whether or not +they really passed, check the \f(CW\*(C`is_actual_ok\*(C'\fR method. +.PP +\fI\f(CI\*(C`in_todo\*(C'\fI\fR +.IX Subsection "in_todo" +.PP +.Vb 1 +\& if ( $parser\->in_todo ) { ... } +.Ve +.PP +True while the most recent result was a \s-1TODO.\s0 Becomes true before the +\&\s-1TODO\s0 result is returned and stays true until just before the next non\- +\&\s-1TODO\s0 test is returned. +.SH "TOTAL RESULTS" +.IX Header "TOTAL RESULTS" +After parsing the \s-1TAP,\s0 there are many methods available to let you dig through +the results and determine what is meaningful to you. +.SS "Individual Results" +.IX Subsection "Individual Results" +These results refer to individual tests which are run. +.PP +\fI\f(CI\*(C`passed\*(C'\fI\fR +.IX Subsection "passed" +.PP +.Vb 2 +\& my @passed = $parser\->passed; # the test numbers which passed +\& my $passed = $parser\->passed; # the number of tests which passed +.Ve +.PP +This method lets you know which (or how many) tests passed. If a test failed +but had a \s-1TODO\s0 directive, it will be counted as a passed test. +.PP +\fI\f(CI\*(C`failed\*(C'\fI\fR +.IX Subsection "failed" +.PP +.Vb 2 +\& my @failed = $parser\->failed; # the test numbers which failed +\& my $failed = $parser\->failed; # the number of tests which failed +.Ve +.PP +This method lets you know which (or how many) tests failed. If a test passed +but had a \s-1TODO\s0 directive, it will \fB\s-1NOT\s0\fR be counted as a failed test. +.PP +\fI\f(CI\*(C`actual_passed\*(C'\fI\fR +.IX Subsection "actual_passed" +.PP +.Vb 2 +\& # the test numbers which actually passed +\& my @actual_passed = $parser\->actual_passed; +\& +\& # the number of tests which actually passed +\& my $actual_passed = $parser\->actual_passed; +.Ve +.PP +This method lets you know which (or how many) tests actually passed, +regardless of whether or not a \s-1TODO\s0 directive was found. +.PP +\fI\f(CI\*(C`actual_ok\*(C'\fI\fR +.IX Subsection "actual_ok" +.PP +This method is a synonym for \f(CW\*(C`actual_passed\*(C'\fR. +.PP +\fI\f(CI\*(C`actual_failed\*(C'\fI\fR +.IX Subsection "actual_failed" +.PP +.Vb 2 +\& # the test numbers which actually failed +\& my @actual_failed = $parser\->actual_failed; +\& +\& # the number of tests which actually failed +\& my $actual_failed = $parser\->actual_failed; +.Ve +.PP +This method lets you know which (or how many) tests actually failed, +regardless of whether or not a \s-1TODO\s0 directive was found. +.PP +\fI\f(CI\*(C`todo\*(C'\fI\fR +.IX Subsection "todo" +.PP +.Vb 2 +\& my @todo = $parser\->todo; # the test numbers with todo directives +\& my $todo = $parser\->todo; # the number of tests with todo directives +.Ve +.PP +This method lets you know which (or how many) tests had \s-1TODO\s0 directives. +.PP +\fI\f(CI\*(C`todo_passed\*(C'\fI\fR +.IX Subsection "todo_passed" +.PP +.Vb 2 +\& # the test numbers which unexpectedly succeeded +\& my @todo_passed = $parser\->todo_passed; +\& +\& # the number of tests which unexpectedly succeeded +\& my $todo_passed = $parser\->todo_passed; +.Ve +.PP +This method lets you know which (or how many) tests actually passed but were +declared as \*(L"\s-1TODO\*(R"\s0 tests. +.PP +\fI\f(CI\*(C`todo_failed\*(C'\fI\fR +.IX Subsection "todo_failed" +.PP +.Vb 1 +\& # deprecated in favor of \*(Aqtodo_passed\*(Aq. This method was horribly misnamed. +.Ve +.PP +This was a badly misnamed method. It indicates which \s-1TODO\s0 tests unexpectedly +succeeded. Will now issue a warning and call \f(CW\*(C`todo_passed\*(C'\fR. +.PP +\fI\f(CI\*(C`skipped\*(C'\fI\fR +.IX Subsection "skipped" +.PP +.Vb 2 +\& my @skipped = $parser\->skipped; # the test numbers with SKIP directives +\& my $skipped = $parser\->skipped; # the number of tests with SKIP directives +.Ve +.PP +This method lets you know which (or how many) tests had \s-1SKIP\s0 directives. +.SS "Pragmas" +.IX Subsection "Pragmas" +\fI\f(CI\*(C`pragma\*(C'\fI\fR +.IX Subsection "pragma" +.PP +Get or set a pragma. To get the state of a pragma: +.PP +.Vb 3 +\& if ( $p\->pragma(\*(Aqstrict\*(Aq) ) { +\& # be strict +\& } +.Ve +.PP +To set the state of a pragma: +.PP +.Vb 1 +\& $p\->pragma(\*(Aqstrict\*(Aq, 1); # enable strict mode +.Ve +.PP +\fI\f(CI\*(C`pragmas\*(C'\fI\fR +.IX Subsection "pragmas" +.PP +Get a list of all the currently enabled pragmas: +.PP +.Vb 1 +\& my @pragmas_enabled = $p\->pragmas; +.Ve +.SS "Summary Results" +.IX Subsection "Summary Results" +These results are \*(L"meta\*(R" information about the total results of an individual +test program. +.PP +\fI\f(CI\*(C`plan\*(C'\fI\fR +.IX Subsection "plan" +.PP +.Vb 1 +\& my $plan = $parser\->plan; +.Ve +.PP +Returns the test plan, if found. +.PP +\fI\f(CI\*(C`good_plan\*(C'\fI\fR +.IX Subsection "good_plan" +.PP +Deprecated. Use \f(CW\*(C`is_good_plan\*(C'\fR instead. +.PP +\fI\f(CI\*(C`is_good_plan\*(C'\fI\fR +.IX Subsection "is_good_plan" +.PP +.Vb 1 +\& if ( $parser\->is_good_plan ) { ... } +.Ve +.PP +Returns a boolean value indicating whether or not the number of tests planned +matches the number of tests run. +.PP +\&\fBNote:\fR this was formerly \f(CW\*(C`good_plan\*(C'\fR. The latter method is deprecated and +will issue a warning. +.PP +And since we're on that subject ... +.PP +\fI\f(CI\*(C`tests_planned\*(C'\fI\fR +.IX Subsection "tests_planned" +.PP +.Vb 1 +\& print $parser\->tests_planned; +.Ve +.PP +Returns the number of tests planned, according to the plan. For example, a +plan of '1..17' will mean that 17 tests were planned. +.PP +\fI\f(CI\*(C`tests_run\*(C'\fI\fR +.IX Subsection "tests_run" +.PP +.Vb 1 +\& print $parser\->tests_run; +.Ve +.PP +Returns the number of tests which actually were run. Hopefully this will +match the number of \f(CW\*(C`$parser\->tests_planned\*(C'\fR. +.PP +\fI\f(CI\*(C`skip_all\*(C'\fI\fR +.IX Subsection "skip_all" +.PP +Returns a true value (actually the reason for skipping) if all tests +were skipped. +.PP +\fI\f(CI\*(C`start_time\*(C'\fI\fR +.IX Subsection "start_time" +.PP +Returns the wall-clock time when the Parser was created. +.PP +\fI\f(CI\*(C`end_time\*(C'\fI\fR +.IX Subsection "end_time" +.PP +Returns the wall-clock time when the end of \s-1TAP\s0 input was seen. +.PP +\fI\f(CI\*(C`start_times\*(C'\fI\fR +.IX Subsection "start_times" +.PP +Returns the \s-1CPU\s0 times (like \*(L"times\*(R" in perlfunc when the Parser was created. +.PP +\fI\f(CI\*(C`end_times\*(C'\fI\fR +.IX Subsection "end_times" +.PP +Returns the \s-1CPU\s0 times (like \*(L"times\*(R" in perlfunc when the end of \s-1TAP\s0 +input was seen. +.PP +\fI\f(CI\*(C`has_problems\*(C'\fI\fR +.IX Subsection "has_problems" +.PP +.Vb 3 +\& if ( $parser\->has_problems ) { +\& ... +\& } +.Ve +.PP +This is a 'catch\-all' method which returns true if any tests have currently +failed, any \s-1TODO\s0 tests unexpectedly succeeded, or any parse errors occurred. +.PP +\fI\f(CI\*(C`version\*(C'\fI\fR +.IX Subsection "version" +.PP +.Vb 1 +\& $parser\->version; +.Ve +.PP +Once the parser is done, this will return the version number for the +parsed \s-1TAP.\s0 Version numbers were introduced with \s-1TAP\s0 version 13 so if no +version number is found version 12 is assumed. +.PP +\fI\f(CI\*(C`exit\*(C'\fI\fR +.IX Subsection "exit" +.PP +.Vb 1 +\& $parser\->exit; +.Ve +.PP +Once the parser is done, this will return the exit status. If the parser ran +an executable, it returns the exit status of the executable. +.PP +\fI\f(CI\*(C`wait\*(C'\fI\fR +.IX Subsection "wait" +.PP +.Vb 1 +\& $parser\->wait; +.Ve +.PP +Once the parser is done, this will return the wait status. If the parser ran +an executable, it returns the wait status of the executable. Otherwise, this +merely returns the \f(CW\*(C`exit\*(C'\fR status. +.ie n .SS """ignore_exit""" +.el .SS "\f(CWignore_exit\fP" +.IX Subsection "ignore_exit" +.Vb 1 +\& $parser\->ignore_exit(1); +.Ve +.PP +Tell the parser to ignore the exit status from the test when determining +whether the test passed. Normally tests with non-zero exit status are +considered to have failed even if all individual tests passed. In cases +where it is not possible to control the exit value of the test script +use this option to ignore it. +.PP +\fI\f(CI\*(C`parse_errors\*(C'\fI\fR +.IX Subsection "parse_errors" +.PP +.Vb 2 +\& my @errors = $parser\->parse_errors; # the parser errors +\& my $errors = $parser\->parse_errors; # the number of parser_errors +.Ve +.PP +Fortunately, all \s-1TAP\s0 output is perfect. In the event that it is not, this +method will return parser errors. Note that a junk line which the parser does +not recognize is \f(CW\*(C`not\*(C'\fR an error. This allows this parser to handle future +versions of \s-1TAP.\s0 The following are all \s-1TAP\s0 errors reported by the parser: +.IP "\(bu" 4 +Misplaced plan +.Sp +The plan (for example, '1..5'), must only come at the beginning or end of the +\&\s-1TAP\s0 output. +.IP "\(bu" 4 +No plan +.Sp +Gotta have a plan! +.IP "\(bu" 4 +More than one plan +.Sp +.Vb 5 +\& 1..3 +\& ok 1 \- input file opened +\& not ok 2 \- first line of the input valid # todo some data +\& ok 3 read the rest of the file +\& 1..3 +.Ve +.Sp +Right. Very funny. Don't do that. +.IP "\(bu" 4 +Test numbers out of sequence +.Sp +.Vb 4 +\& 1..3 +\& ok 1 \- input file opened +\& not ok 2 \- first line of the input valid # todo some data +\& ok 2 read the rest of the file +.Ve +.Sp +That last test line above should have the number '3' instead of '2'. +.Sp +Note that it's perfectly acceptable for some lines to have test numbers and +others to not have them. However, when a test number is found, it must be in +sequence. The following is also an error: +.Sp +.Vb 4 +\& 1..3 +\& ok 1 \- input file opened +\& not ok \- first line of the input valid # todo some data +\& ok 2 read the rest of the file +.Ve +.Sp +But this is not: +.Sp +.Vb 4 +\& 1..3 +\& ok \- input file opened +\& not ok \- first line of the input valid # todo some data +\& ok 3 read the rest of the file +.Ve +.PP +\fI\f(CI\*(C`get_select_handles\*(C'\fI\fR +.IX Subsection "get_select_handles" +.PP +Get an a list of file handles which can be passed to \f(CW\*(C`select\*(C'\fR to +determine the readiness of this parser. +.PP +\fI\f(CI\*(C`delete_spool\*(C'\fI\fR +.IX Subsection "delete_spool" +.PP +Delete and return the spool. +.PP +.Vb 1 +\& my $fh = $parser\->delete_spool; +.Ve +.SH "CALLBACKS" +.IX Header "CALLBACKS" +As mentioned earlier, a \*(L"callback\*(R" key may be added to the +\&\f(CW\*(C`TAP::Parser\*(C'\fR constructor. If present, each callback corresponding to a +given result type will be called with the result as the argument if the +\&\f(CW\*(C`run\*(C'\fR method is used. The callback is expected to be a subroutine +reference (or anonymous subroutine) which is invoked with the parser +result as its argument. +.PP +.Vb 7 +\& my %callbacks = ( +\& test => \e&test_callback, +\& plan => \e&plan_callback, +\& comment => \e&comment_callback, +\& bailout => \e&bailout_callback, +\& unknown => \e&unknown_callback, +\& ); +\& +\& my $aggregator = TAP::Parser::Aggregator\->new; +\& for my $file ( @test_files ) { +\& my $parser = TAP::Parser\->new( +\& { +\& source => $file, +\& callbacks => \e%callbacks, +\& } +\& ); +\& $parser\->run; +\& $aggregator\->add( $file, $parser ); +\& } +.Ve +.PP +Callbacks may also be added like this: +.PP +.Vb 2 +\& $parser\->callback( test => \e&test_callback ); +\& $parser\->callback( plan => \e&plan_callback ); +.Ve +.PP +The following keys allowed for callbacks. These keys are case-sensitive. +.IP "\(bu" 4 +\&\f(CW\*(C`test\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_test\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`version\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_version\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`plan\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_plan\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`comment\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_comment\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`bailout\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_unknown\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`yaml\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_yaml\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`unknown\*(C'\fR +.Sp +Invoked if \f(CW\*(C`$result\->is_unknown\*(C'\fR returns true. +.IP "\(bu" 4 +\&\f(CW\*(C`ELSE\*(C'\fR +.Sp +If a result does not have a callback defined for it, this callback will +be invoked. Thus, if all of the previous result types are specified as +callbacks, this callback will \fInever\fR be invoked. +.IP "\(bu" 4 +\&\f(CW\*(C`ALL\*(C'\fR +.Sp +This callback will always be invoked and this will happen for each +result after one of the above callbacks is invoked. For example, if +Term::ANSIColor is loaded, you could use the following to color your +test output: +.Sp +.Vb 12 +\& my %callbacks = ( +\& test => sub { +\& my $test = shift; +\& if ( $test\->is_ok && not $test\->directive ) { +\& # normal passing test +\& print color \*(Aqgreen\*(Aq; +\& } +\& elsif ( !$test\->is_ok ) { # even if it\*(Aqs TODO +\& print color \*(Aqwhite on_red\*(Aq; +\& } +\& elsif ( $test\->has_skip ) { +\& print color \*(Aqwhite on_blue\*(Aq; +\& +\& } +\& elsif ( $test\->has_todo ) { +\& print color \*(Aqwhite\*(Aq; +\& } +\& }, +\& ELSE => sub { +\& # plan, comment, and so on (anything which isn\*(Aqt a test line) +\& print color \*(Aqblack on_white\*(Aq; +\& }, +\& ALL => sub { +\& # now print them +\& print shift\->as_string; +\& print color \*(Aqreset\*(Aq; +\& print "\en"; +\& }, +\& ); +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`EOF\*(C'\fR +.Sp +Invoked when there are no more lines to be parsed. Since there is no +accompanying TAP::Parser::Result object the \f(CW\*(C`TAP::Parser\*(C'\fR object is +passed instead. +.SH "TAP GRAMMAR" +.IX Header "TAP GRAMMAR" +If you're looking for an \s-1EBNF\s0 grammar, see TAP::Parser::Grammar. +.SH "BACKWARDS COMPATIBILITY" +.IX Header "BACKWARDS COMPATIBILITY" +The Perl-QA list attempted to ensure backwards compatibility with +Test::Harness. However, there are some minor differences. +.SS "Differences" +.IX Subsection "Differences" +.IP "\(bu" 4 +\&\s-1TODO\s0 plans +.Sp +A little-known feature of Test::Harness is that it supported \s-1TODO\s0 +lists in the plan: +.Sp +.Vb 3 +\& 1..2 todo 2 +\& ok 1 \- We have liftoff +\& not ok 2 \- Anti\-gravity device activated +.Ve +.Sp +Under Test::Harness, test number 2 would \fIpass\fR because it was +listed as a \s-1TODO\s0 test on the plan line. However, we are not aware of +anyone actually using this feature and hard-coding test numbers is +discouraged because it's very easy to add a test and break the test +number sequence. This makes test suites very fragile. Instead, the +following should be used: +.Sp +.Vb 3 +\& 1..2 +\& ok 1 \- We have liftoff +\& not ok 2 \- Anti\-gravity device activated # TODO +.Ve +.IP "\(bu" 4 +\&'Missing' tests +.Sp +It rarely happens, but sometimes a harness might encounter +\&'missing tests: +.Sp +.Vb 5 +\& ok 1 +\& ok 2 +\& ok 15 +\& ok 16 +\& ok 17 +.Ve +.Sp +Test::Harness would report tests 3\-14 as having failed. For the +\&\f(CW\*(C`TAP::Parser\*(C'\fR, these tests are not considered failed because they've +never run. They're reported as parse failures (tests out of sequence). +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +If you find you need to provide custom functionality (as you would have using +Test::Harness::Straps), you're in luck: \f(CW\*(C`TAP::Parser\*(C'\fR and friends are +designed to be easily plugged-into and/or subclassed. +.PP +Before you start, it's important to know a few things: +.IP "1." 2 +All \f(CW\*(C`TAP::*\*(C'\fR objects inherit from TAP::Object. +.IP "2." 2 +Many \f(CW\*(C`TAP::*\*(C'\fR classes have a \fI\s-1SUBCLASSING\s0\fR section to guide you. +.IP "3." 2 +Note that \f(CW\*(C`TAP::Parser\*(C'\fR is designed to be the central \*(L"maker\*(R" \- ie: it is +responsible for creating most new objects in the \f(CW\*(C`TAP::Parser::*\*(C'\fR namespace. +.Sp +This makes it possible for you to have a single point of configuring what +subclasses should be used, which means that in many cases you'll find +you only need to sub-class one of the parser's components. +.Sp +The exception to this rule are \fISourceHandlers\fR & \fIIterators\fR, but those are +both created with customizable \fIIteratorFactory\fR. +.IP "4." 2 +By subclassing, you may end up overriding undocumented methods. That's not +a bad thing per se, but be forewarned that undocumented methods may change +without warning from one release to the next \- we cannot guarantee backwards +compatibility. If any \fIdocumented\fR method needs changing, it will be +deprecated first, and changed in a later release. +.SS "Parser Components" +.IX Subsection "Parser Components" +\fISources\fR +.IX Subsection "Sources" +.PP +A \s-1TAP\s0 parser consumes input from a single \fIraw source\fR of \s-1TAP,\s0 which could come +from anywhere (a file, an executable, a database, an \s-1IO\s0 handle, a \s-1URI,\s0 etc..). +The source gets bundled up in a TAP::Parser::Source object which gathers some +meta data about it. The parser then uses a TAP::Parser::IteratorFactory to +determine which TAP::Parser::SourceHandler to use to turn the raw source +into a stream of \s-1TAP\s0 by way of \*(L"Iterators\*(R". +.PP +If you simply want \f(CW\*(C`TAP::Parser\*(C'\fR to handle a new source of \s-1TAP\s0 you probably +don't need to subclass \f(CW\*(C`TAP::Parser\*(C'\fR itself. Rather, you'll need to create a +new TAP::Parser::SourceHandler class, and just plug it into the parser using +the \fIsources\fR param to \*(L"new\*(R". Before you start writing one, read through +TAP::Parser::IteratorFactory to get a feel for how the system works first. +.PP +If you find you really need to use your own iterator factory you can still do +so without sub-classing \f(CW\*(C`TAP::Parser\*(C'\fR by setting \*(L"iterator_factory_class\*(R". +.PP +If you just need to customize the objects on creation, subclass TAP::Parser +and override \*(L"make_iterator_factory\*(R". +.PP +Note that \f(CW\*(C`make_source\*(C'\fR & \f(CW\*(C`make_perl_source\*(C'\fR have been \fI\s-1DEPRECATED\s0\fR and +are now removed. +.PP +\fIIterators\fR +.IX Subsection "Iterators" +.PP +A \s-1TAP\s0 parser uses \fIiterators\fR to loop through the \fIstream\fR of \s-1TAP\s0 read in +from the \fIsource\fR it was given. There are a few types of Iterators available +by default, all sub-classes of TAP::Parser::Iterator. Choosing which +iterator to use is the responsibility of the \fIiterator factory\fR, though it +simply delegates to the \fISource Handler\fR it uses. +.PP +If you're writing your own TAP::Parser::SourceHandler, you may need to +create your own iterators too. If so you'll need to subclass +TAP::Parser::Iterator. +.PP +Note that \*(L"make_iterator\*(R" has been \fI\s-1DEPRECATED\s0\fR and is now removed. +.PP +\fIResults\fR +.IX Subsection "Results" +.PP +A \s-1TAP\s0 parser creates TAP::Parser::Results as it iterates through the +input \fIstream\fR. There are quite a few result types available; choosing +which class to use is the responsibility of the \fIresult factory\fR. +.PP +To create your own result types you have two options: +.IP "option 1" 2 +.IX Item "option 1" +Subclass TAP::Parser::Result and register your new result type/class with +the default TAP::Parser::ResultFactory. +.IP "option 2" 2 +.IX Item "option 2" +Subclass TAP::Parser::ResultFactory itself and implement your own +TAP::Parser::Result creation logic. Then you'll need to customize the +class used by your parser by setting the \f(CW\*(C`result_factory_class\*(C'\fR parameter. +See \*(L"new\*(R" for more details. +.PP +If you need to customize the objects on creation, subclass TAP::Parser and +override \*(L"make_result\*(R". +.PP +\fIGrammar\fR +.IX Subsection "Grammar" +.PP +TAP::Parser::Grammar is the heart of the parser. It tokenizes the \s-1TAP\s0 +input \fIstream\fR and produces results. If you need to customize its behaviour +you should probably familiarize yourself with the source first. Enough +lecturing. +.PP +Subclass TAP::Parser::Grammar and customize your parser by setting the +\&\f(CW\*(C`grammar_class\*(C'\fR parameter. See \*(L"new\*(R" for more details. +.PP +If you need to customize the objects on creation, subclass TAP::Parser and +override \*(L"make_grammar\*(R" +.SH "ACKNOWLEDGMENTS" +.IX Header "ACKNOWLEDGMENTS" +All of the following have helped. Bug reports, patches, (im)moral +support, or just words of encouragement have all been forthcoming. +.IP "\(bu" 4 +Michael Schwern +.IP "\(bu" 4 +Andy Lester +.IP "\(bu" 4 +chromatic +.IP "\(bu" 4 +\&\s-1GEOFFR\s0 +.IP "\(bu" 4 +Shlomi Fish +.IP "\(bu" 4 +Torsten Schoenfeld +.IP "\(bu" 4 +Jerry Gay +.IP "\(bu" 4 +Aristotle +.IP "\(bu" 4 +Adam Kennedy +.IP "\(bu" 4 +Yves Orton +.IP "\(bu" 4 +Adrian Howard +.IP "\(bu" 4 +Sean & Lil +.IP "\(bu" 4 +Andreas J. Koenig +.IP "\(bu" 4 +Florian Ragwitz +.IP "\(bu" 4 +Corion +.IP "\(bu" 4 +Mark Stosberg +.IP "\(bu" 4 +Matt Kraai +.IP "\(bu" 4 +David Wheeler +.IP "\(bu" 4 +Alex Vandiver +.IP "\(bu" 4 +Cosimo Streppone +.IP "\(bu" 4 +Ville Skytta\*: +.SH "AUTHORS" +.IX Header "AUTHORS" +Curtis \*(L"Ovid\*(R" Poe +.PP +Andy Armstong +.PP +Eric Wilhelm @ +.PP +Michael Peters +.PP +Leif Eriksen +.PP +Steve Purkis +.PP +Nicholas Clark +.PP +Lee Johnson +.PP +Philippe Bruhat +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-test\-harness@rt.cpan.org\*(C'\fR, or through the web interface at +. +We will be notified, and then you'll automatically be notified of +progress on your bug as we make changes. +.PP +Obviously, bugs which include patches are best. If you prefer, you can +patch against bleed by via anonymous checkout of the latest version: +.PP +.Vb 1 +\& git clone git://github.com/Perl\-Toolchain\-Gang/Test\-Harness.git +.Ve +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright 2006\-2008 Curtis \*(L"Ovid\*(R" Poe, all rights reserved. +.PP +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Term%3A%3AANSIColor.3 b/data/miniconda3/man/man3/Term%3A%3AANSIColor.3 new file mode 100644 index 0000000000000000000000000000000000000000..38168ea92f0aed97be3c10d943245b53a3627c62 --- /dev/null +++ b/data/miniconda3/man/man3/Term%3A%3AANSIColor.3 @@ -0,0 +1,925 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Term::ANSIColor 3" +.TH Term::ANSIColor 3 "2020-12-18" "perl v5.32.1" "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" +Term::ANSIColor \- Color screen output using ANSI escape sequences +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 11 +\& use Term::ANSIColor; +\& print color(\*(Aqbold blue\*(Aq); +\& print "This text is bold blue.\en"; +\& print color(\*(Aqreset\*(Aq); +\& print "This text is normal.\en"; +\& print colored("Yellow on magenta.", \*(Aqyellow on_magenta\*(Aq), "\en"; +\& print "This text is normal.\en"; +\& print colored([\*(Aqyellow on_magenta\*(Aq], \*(AqYellow on magenta.\*(Aq, "\en"); +\& print colored([\*(Aqred on_bright_yellow\*(Aq], \*(AqRed on bright yellow.\*(Aq, "\en"); +\& print colored([\*(Aqbright_red on_black\*(Aq], \*(AqBright red on black.\*(Aq, "\en"); +\& print "\en"; +\& +\& # Map escape sequences back to color names. +\& use Term::ANSIColor 1.04 qw(uncolor); +\& my @names = uncolor(\*(Aq01;31\*(Aq); +\& print join(q{ }, @names), "\en"; +\& +\& # Strip all color escape sequences. +\& use Term::ANSIColor 2.01 qw(colorstrip); +\& print colorstrip("\ee[1mThis is bold\ee[0m"), "\en"; +\& +\& # Determine whether a color is valid. +\& use Term::ANSIColor 2.02 qw(colorvalid); +\& my $valid = colorvalid(\*(Aqblue bold\*(Aq, \*(Aqon_magenta\*(Aq); +\& print "Color string is ", $valid ? "valid\en" : "invalid\en"; +\& +\& # Create new aliases for colors. +\& use Term::ANSIColor 4.00 qw(coloralias); +\& coloralias(\*(Aqalert\*(Aq, \*(Aqred\*(Aq); +\& print "Alert is ", coloralias(\*(Aqalert\*(Aq), "\en"; +\& print colored("This is in red.", \*(Aqalert\*(Aq), "\en"; +\& +\& use Term::ANSIColor qw(:constants); +\& print BOLD, BLUE, "This text is in bold blue.\en", RESET; +\& +\& use Term::ANSIColor qw(:constants); +\& { +\& local $Term::ANSIColor::AUTORESET = 1; +\& print BOLD BLUE "This text is in bold blue.\en"; +\& print "This text is normal.\en"; +\& } +\& +\& use Term::ANSIColor 2.00 qw(:pushpop); +\& print PUSHCOLOR RED ON_GREEN "This text is red on green.\en"; +\& print PUSHCOLOR BRIGHT_BLUE "This text is bright blue on green.\en"; +\& print RESET BRIGHT_BLUE "This text is just bright blue.\en"; +\& print POPCOLOR "Back to red on green.\en"; +\& print LOCALCOLOR GREEN ON_BLUE "This text is green on blue.\en"; +\& print "This text is red on green.\en"; +\& { +\& local $Term::ANSIColor::AUTOLOCAL = 1; +\& print ON_BLUE "This text is red on blue.\en"; +\& print "This text is red on green.\en"; +\& } +\& print POPCOLOR "Back to whatever we started as.\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module has two interfaces, one through \fBcolor()\fR and \fBcolored()\fR and the +other through constants. It also offers the utility functions \fBuncolor()\fR, +\&\fBcolorstrip()\fR, \fBcolorvalid()\fR, and \fBcoloralias()\fR, which have to be explicitly +imported to be used (see \*(L"\s-1SYNOPSIS\*(R"\s0). +.PP +If you are using Term::ANSIColor in a console command, consider supporting the +\&\s-1CLICOLOR\s0 standard. See \*(L"Supporting \s-1CLICOLOR\*(R"\s0 for more information. +.PP +See \*(L"\s-1COMPATIBILITY\*(R"\s0 for the versions of Term::ANSIColor that introduced +particular features and the versions of Perl that included them. +.SS "Supported Colors" +.IX Subsection "Supported Colors" +Terminal emulators that support color divide into four types: ones that +support only eight colors, ones that support sixteen, ones that support 256, +and ones that support 24\-bit color. This module provides the \s-1ANSI\s0 escape +codes for all of them. These colors are referred to as \s-1ANSI\s0 colors 0 through +7 (normal), 8 through 15 (16\-color), 16 through 255 (256\-color), and true +color (called direct-color by \fBxterm\fR). +.PP +Unfortunately, interpretation of colors 0 through 7 often depends on +whether the emulator supports eight colors or sixteen colors. Emulators +that only support eight colors (such as the Linux console) will display +colors 0 through 7 with normal brightness and ignore colors 8 through 15, +treating them the same as white. Emulators that support 16 colors, such +as gnome-terminal, normally display colors 0 through 7 as dim or darker +versions and colors 8 through 15 as normal brightness. On such emulators, +the \*(L"normal\*(R" white (color 7) usually is shown as pale grey, requiring +bright white (15) to be used to get a real white color. Bright black +usually is a dark grey color, although some terminals display it as pure +black. Some sixteen-color terminal emulators also treat normal yellow +(color 3) as orange or brown, and bright yellow (color 11) as yellow. +.PP +Following the normal convention of sixteen-color emulators, this module +provides a pair of attributes for each color. For every normal color (0 +through 7), the corresponding bright color (8 through 15) is obtained by +prepending the string \f(CW\*(C`bright_\*(C'\fR to the normal color name. For example, +\&\f(CW\*(C`red\*(C'\fR is color 1 and \f(CW\*(C`bright_red\*(C'\fR is color 9. The same applies for +background colors: \f(CW\*(C`on_red\*(C'\fR is the normal color and \f(CW\*(C`on_bright_red\*(C'\fR is +the bright color. Capitalize these strings for the constant interface. +.PP +There is unfortunately no way to know whether the current emulator +supports more than eight colors, which makes the choice of colors +difficult. The most conservative choice is to use only the regular +colors, which are at least displayed on all emulators. However, they will +appear dark in sixteen-color terminal emulators, including most common +emulators in \s-1UNIX X\s0 environments. If you know the display is one of those +emulators, you may wish to use the bright variants instead. Even better, +offer the user a way to configure the colors for a given application to +fit their terminal emulator. +.PP +For 256\-color emulators, this module additionally provides \f(CW\*(C`ansi0\*(C'\fR +through \f(CW\*(C`ansi15\*(C'\fR, which are the same as colors 0 through 15 in +sixteen-color emulators but use the 256\-color escape syntax, \f(CW\*(C`grey0\*(C'\fR +through \f(CW\*(C`grey23\*(C'\fR ranging from nearly black to nearly white, and a set of +\&\s-1RGB\s0 colors. The \s-1RGB\s0 colors are of the form \f(CW\*(C`rgb\f(CIRGB\f(CW\*(C'\fR where \fIR\fR, \fIG\fR, +and \fIB\fR are numbers from 0 to 5 giving the intensity of red, green, and +blue. The grey and \s-1RGB\s0 colors are also available as \f(CW\*(C`ansi16\*(C'\fR through +\&\f(CW\*(C`ansi255\*(C'\fR if you want simple names for all 256 colors. \f(CW\*(C`on_\*(C'\fR variants +of all of these colors are also provided. These colors may be ignored +completely on non\-256\-color terminals or may be misinterpreted and produce +random behavior. Additional attributes such as blink, italic, or bold may +not work with the 256\-color palette. +.PP +For true color emulators, this module supports attributes of the form \f(CW\*(C`r\f(CINNN\f(CWg\f(CINNN\f(CWb\f(CINNN\f(CW\*(C'\fR and \f(CW\*(C`on_r\f(CINNN\f(CWg\f(CINNN\f(CWb\f(CINNN\f(CW\*(C'\fR for all values of +\&\fI\s-1NNN\s0\fR between 0 and 255. These represent foreground and background colors, +respectively, with the \s-1RGB\s0 values given by the \fI\s-1NNN\s0\fR numbers. These colors +may be ignored completely on non-true-color terminals or may be misinterpreted +and produce random behavior. +.SS "Function Interface" +.IX Subsection "Function Interface" +The function interface uses attribute strings to describe the colors and +text attributes to assign to text. The recognized non-color attributes +are clear, reset, bold, dark, faint, italic, underline, underscore, blink, +reverse, and concealed. Clear and reset (reset to default attributes), +dark and faint (dim and saturated), and underline and underscore are +equivalent, so use whichever is the most intuitive to you. +.PP +Note that not all attributes are supported by all terminal types, and some +terminals may not support any of these sequences. Dark and faint, italic, +blink, and concealed in particular are frequently not implemented. +.PP +The recognized normal foreground color attributes (colors 0 to 7) are: +.PP +.Vb 1 +\& black red green yellow blue magenta cyan white +.Ve +.PP +The corresponding bright foreground color attributes (colors 8 to 15) are: +.PP +.Vb 2 +\& bright_black bright_red bright_green bright_yellow +\& bright_blue bright_magenta bright_cyan bright_white +.Ve +.PP +The recognized normal background color attributes (colors 0 to 7) are: +.PP +.Vb 2 +\& on_black on_red on_green on yellow +\& on_blue on_magenta on_cyan on_white +.Ve +.PP +The recognized bright background color attributes (colors 8 to 15) are: +.PP +.Vb 2 +\& on_bright_black on_bright_red on_bright_green on_bright_yellow +\& on_bright_blue on_bright_magenta on_bright_cyan on_bright_white +.Ve +.PP +For 256\-color terminals, the recognized foreground colors are: +.PP +.Vb 2 +\& ansi0 .. ansi255 +\& grey0 .. grey23 +.Ve +.PP +plus \f(CW\*(C`rgb\f(CIRGB\f(CW\*(C'\fR for \fIR\fR, \fIG\fR, and \fIB\fR values from 0 to 5, such as +\&\f(CW\*(C`rgb000\*(C'\fR or \f(CW\*(C`rgb515\*(C'\fR. Similarly, the recognized background colors are: +.PP +.Vb 2 +\& on_ansi0 .. on_ansi255 +\& on_grey0 .. on_grey23 +.Ve +.PP +plus \f(CW\*(C`on_rgb\f(CIRGB\f(CW\*(C'\fR for \fIR\fR, \fIG\fR, and \fIB\fR values from 0 to 5. +.PP +For true color terminals, the recognized foreground colors are \f(CW\*(C`r\f(CIRRR\f(CWg\f(CIGGG\f(CWb\f(CIBBB\f(CW\*(C'\fR for \fI\s-1RRR\s0\fR, \fI\s-1GGG\s0\fR, and \fI\s-1BBB\s0\fR values between 0 and +255. Similarly, the recognized background colors are \f(CW\*(C`on_r\f(CIRRR\f(CWg\f(CIGGG\f(CWb\f(CIBBB\f(CW\*(C'\fR for \fI\s-1RRR\s0\fR, \fI\s-1GGG\s0\fR, and \fI\s-1BBB\s0\fR values between 0 +and 255. +.PP +For any of the above listed attributes, case is not significant. +.PP +Attributes, once set, last until they are unset (by printing the attribute +\&\f(CW\*(C`clear\*(C'\fR or \f(CW\*(C`reset\*(C'\fR). Be careful to do this, or otherwise your attribute +will last after your script is done running, and people get very annoyed +at having their prompt and typing changed to weird colors. +.IP "color(ATTR[, \s-1ATTR ...\s0])" 4 +.IX Item "color(ATTR[, ATTR ...])" +\&\fBcolor()\fR takes any number of strings as arguments and considers them to be +space-separated lists of attributes. It then forms and returns the escape +sequence to set those attributes. It doesn't print it out, just returns +it, so you'll have to print it yourself if you want to. This is so that +you can save it as a string, pass it to something else, send it to a file +handle, or do anything else with it that you might care to. \fBcolor()\fR +throws an exception if given an invalid attribute. +.IP "colored(\s-1STRING,\s0 ATTR[, \s-1ATTR ...\s0])" 4 +.IX Item "colored(STRING, ATTR[, ATTR ...])" +.PD 0 +.IP "colored(\s-1ATTR\-REF,\s0 STRING[, \s-1STRING...\s0])" 4 +.IX Item "colored(ATTR-REF, STRING[, STRING...])" +.PD +As an aid in resetting colors, \fBcolored()\fR takes a scalar as the first +argument and any number of attribute strings as the second argument and +returns the scalar wrapped in escape codes so that the attributes will be +set as requested before the string and reset to normal after the string. +Alternately, you can pass a reference to an array as the first argument, +and then the contents of that array will be taken as attributes and color +codes and the remainder of the arguments as text to colorize. +.Sp +Normally, \fBcolored()\fR just puts attribute codes at the beginning and end of +the string, but if you set \f(CW$Term::ANSIColor::EACHLINE\fR to some string, that +string will be considered the line delimiter and the attribute will be set +at the beginning of each line of the passed string and reset at the end of +each line. This is often desirable if the output contains newlines and +you're using background colors, since a background color that persists +across a newline is often interpreted by the terminal as providing the +default background color for the next line. Programs like pagers can also +be confused by attributes that span lines. Normally you'll want to set +\&\f(CW$Term::ANSIColor::EACHLINE\fR to \f(CW"\en"\fR to use this feature. +.Sp +Particularly consider setting \f(CW$Term::ANSIColor::EACHLINE\fR if you are +interleaving output to standard output and standard error and you aren't +flushing standard output (via \fBautoflush()\fR or setting \f(CW$|\fR). If you don't, +the code to reset the color may unexpectedly sit in the standard output buffer +rather than going to the display, causing standard error output to appear in +the wrong color. +.IP "uncolor(\s-1ESCAPE\s0)" 4 +.IX Item "uncolor(ESCAPE)" +\&\fBuncolor()\fR performs the opposite translation as \fBcolor()\fR, turning escape +sequences into a list of strings corresponding to the attributes being set +by those sequences. \fBuncolor()\fR will never return \f(CW\*(C`ansi16\*(C'\fR through +\&\f(CW\*(C`ansi255\*(C'\fR, instead preferring the \f(CW\*(C`grey\*(C'\fR and \f(CW\*(C`rgb\*(C'\fR names (and likewise +for \f(CW\*(C`on_ansi16\*(C'\fR through \f(CW\*(C`on_ansi255\*(C'\fR). +.IP "colorstrip(STRING[, \s-1STRING ...\s0])" 4 +.IX Item "colorstrip(STRING[, STRING ...])" +\&\fBcolorstrip()\fR removes all color escape sequences from the provided strings, +returning the modified strings separately in array context or joined +together in scalar context. Its arguments are not modified. +.IP "colorvalid(ATTR[, \s-1ATTR ...\s0])" 4 +.IX Item "colorvalid(ATTR[, ATTR ...])" +\&\fBcolorvalid()\fR takes attribute strings the same as \fBcolor()\fR and returns true +if all attributes are known and false otherwise. +.IP "coloralias(ALIAS[, \s-1ATTR ...\s0])" 4 +.IX Item "coloralias(ALIAS[, ATTR ...])" +If \s-1ATTR\s0 is specified, it is interpreted as a list of space-separated strings +naming attributes or existing aliases. In this case, \fBcoloralias()\fR sets up an +alias of \s-1ALIAS\s0 for the set of attributes given by \s-1ATTR.\s0 From that point +forward, \s-1ALIAS\s0 can be passed into \fBcolor()\fR, \fBcolored()\fR, and \fBcolorvalid()\fR and +will have the same meaning as the sequence of attributes given in \s-1ATTR.\s0 One +possible use of this facility is to give more meaningful names to the +256\-color \s-1RGB\s0 colors. Only \s-1ASCII\s0 alphanumerics, \f(CW\*(C`.\*(C'\fR, \f(CW\*(C`_\*(C'\fR, and \f(CW\*(C`\-\*(C'\fR are +allowed in alias names. +.Sp +If \s-1ATTR\s0 includes aliases, those aliases will be expanded at definition time +and their values will be used to define the new alias. This means that if you +define an alias A in terms of another alias B, and then later redefine alias +B, the value of alias A will not change. +.Sp +If \s-1ATTR\s0 is not specified, \fBcoloralias()\fR returns the standard attribute or +attributes to which \s-1ALIAS\s0 is aliased, if any, or undef if \s-1ALIAS\s0 does not +exist. If it is aliased to multiple attributes, the return value will be a +single string and the attributes will be separated by spaces. +.Sp +This is the same facility used by the \s-1ANSI_COLORS_ALIASES\s0 environment +variable (see \*(L"\s-1ENVIRONMENT\*(R"\s0 below) but can be used at runtime, not just +when the module is loaded. +.Sp +Later invocations of \fBcoloralias()\fR with the same \s-1ALIAS\s0 will override +earlier aliases. There is no way to remove an alias. +.Sp +Aliases have no effect on the return value of \fBuncolor()\fR. +.Sp +\&\fB\s-1WARNING\s0\fR: Aliases are global and affect all callers in the same process. +There is no way to set an alias limited to a particular block of code or a +particular object. +.SS "Constant Interface" +.IX Subsection "Constant Interface" +Alternately, if you import \f(CW\*(C`:constants\*(C'\fR, you can use the following +constants directly: +.PP +.Vb 3 +\& CLEAR RESET BOLD DARK +\& FAINT ITALIC UNDERLINE UNDERSCORE +\& BLINK REVERSE CONCEALED +\& +\& BLACK RED GREEN YELLOW +\& BLUE MAGENTA CYAN WHITE +\& BRIGHT_BLACK BRIGHT_RED BRIGHT_GREEN BRIGHT_YELLOW +\& BRIGHT_BLUE BRIGHT_MAGENTA BRIGHT_CYAN BRIGHT_WHITE +\& +\& ON_BLACK ON_RED ON_GREEN ON_YELLOW +\& ON_BLUE ON_MAGENTA ON_CYAN ON_WHITE +\& ON_BRIGHT_BLACK ON_BRIGHT_RED ON_BRIGHT_GREEN ON_BRIGHT_YELLOW +\& ON_BRIGHT_BLUE ON_BRIGHT_MAGENTA ON_BRIGHT_CYAN ON_BRIGHT_WHITE +.Ve +.PP +These are the same as color('attribute') and can be used if you prefer +typing: +.PP +.Vb 1 +\& print BOLD BLUE ON_WHITE "Text", RESET, "\en"; +.Ve +.PP +to +.PP +.Vb 1 +\& print colored ("Text", \*(Aqbold blue on_white\*(Aq), "\en"; +.Ve +.PP +(Note that the newline is kept separate to avoid confusing the terminal as +described above since a background color is being used.) +.PP +If you import \f(CW\*(C`:constants256\*(C'\fR, you can use the following constants +directly: +.PP +.Vb 2 +\& ANSI0 .. ANSI255 +\& GREY0 .. GREY23 +\& +\& RGBXYZ (for X, Y, and Z values from 0 to 5, like RGB000 or RGB515) +\& +\& ON_ANSI0 .. ON_ANSI255 +\& ON_GREY0 .. ON_GREY23 +\& +\& ON_RGBXYZ (for X, Y, and Z values from 0 to 5) +.Ve +.PP +Note that \f(CW\*(C`:constants256\*(C'\fR does not include the other constants, so if you +want to mix both, you need to include \f(CW\*(C`:constants\*(C'\fR as well. You may want +to explicitly import at least \f(CW\*(C`RESET\*(C'\fR, as in: +.PP +.Vb 1 +\& use Term::ANSIColor 4.00 qw(RESET :constants256); +.Ve +.PP +True color and aliases are not supported by the constant interface. +.PP +When using the constants, if you don't want to have to remember to add the +\&\f(CW\*(C`, RESET\*(C'\fR at the end of each print line, you can set +\&\f(CW$Term::ANSIColor::AUTORESET\fR to a true value. Then, the display mode will +automatically be reset if there is no comma after the constant. In other +words, with that variable set: +.PP +.Vb 1 +\& print BOLD BLUE "Text\en"; +.Ve +.PP +will reset the display mode afterward, whereas: +.PP +.Vb 1 +\& print BOLD, BLUE, "Text\en"; +.Ve +.PP +will not. If you are using background colors, you will probably want to +either use \fBsay()\fR (in newer versions of Perl) or print the newline with a +separate print statement to avoid confusing the terminal. +.PP +If \f(CW$Term::ANSIColor::AUTOLOCAL\fR is set (see below), it takes precedence +over \f(CW$Term::ANSIColor::AUTORESET\fR, and the latter is ignored. +.PP +The subroutine interface has the advantage over the constants interface in +that only two subroutines are exported into your namespace, versus +thirty-eight in the constants interface, and aliases and true color attributes +are supported. On the flip side, the constants interface has the advantage of +better compile time error checking, since misspelled names of colors or +attributes in calls to \fBcolor()\fR and \fBcolored()\fR won't be caught until runtime +whereas misspelled names of constants will be caught at compile time. So, +pollute your namespace with almost two dozen subroutines that you may not even +use that often, or risk a silly bug by mistyping an attribute. Your choice, +\&\s-1TMTOWTDI\s0 after all. +.SS "The Color Stack" +.IX Subsection "The Color Stack" +You can import \f(CW\*(C`:pushpop\*(C'\fR and maintain a stack of colors using \s-1PUSHCOLOR, +POPCOLOR,\s0 and \s-1LOCALCOLOR.\s0 \s-1PUSHCOLOR\s0 takes the attribute string that +starts its argument and pushes it onto a stack of attributes. \s-1POPCOLOR\s0 +removes the top of the stack and restores the previous attributes set by +the argument of a prior \s-1PUSHCOLOR.\s0 \s-1LOCALCOLOR\s0 surrounds its argument in a +\&\s-1PUSHCOLOR\s0 and \s-1POPCOLOR\s0 so that the color resets afterward. +.PP +If \f(CW$Term::ANSIColor::AUTOLOCAL\fR is set, each sequence of color constants +will be implicitly preceded by \s-1LOCALCOLOR.\s0 In other words, the following: +.PP +.Vb 4 +\& { +\& local $Term::ANSIColor::AUTOLOCAL = 1; +\& print BLUE "Text\en"; +\& } +.Ve +.PP +is equivalent to: +.PP +.Vb 1 +\& print LOCALCOLOR BLUE "Text\en"; +.Ve +.PP +If \f(CW$Term::ANSIColor::AUTOLOCAL\fR is set, it takes precedence over +\&\f(CW$Term::ANSIColor::AUTORESET\fR, and the latter is ignored. +.PP +When using \s-1PUSHCOLOR, POPCOLOR,\s0 and \s-1LOCALCOLOR,\s0 it's particularly +important to not put commas between the constants. +.PP +.Vb 1 +\& print PUSHCOLOR BLUE "Text\en"; +.Ve +.PP +will correctly push \s-1BLUE\s0 onto the top of the stack. +.PP +.Vb 1 +\& print PUSHCOLOR, BLUE, "Text\en"; # wrong! +.Ve +.PP +will not, and a subsequent pop won't restore the correct attributes. +\&\s-1PUSHCOLOR\s0 pushes the attributes set by its argument, which is normally a +string of color constants. It can't ask the terminal what the current +attributes are. +.SS "Supporting \s-1CLICOLOR\s0" +.IX Subsection "Supporting CLICOLOR" + proposes a standard for enabling and +disabling color output from console commands using two environment variables, +\&\s-1CLICOLOR\s0 and \s-1CLICOLOR_FORCE.\s0 Term::ANSIColor cannot automatically support +this standard, since the correct action depends on where the output is going +and Term::ANSIColor may be used in a context where colors should always be +generated even if \s-1CLICOLOR\s0 is set in the environment. But you can use the +supported environment variable \s-1ANSI_COLORS_DISABLED\s0 to implement \s-1CLICOLOR\s0 in +your own programs with code like this: +.PP +.Vb 5 +\& if (exists($ENV{CLICOLOR}) && $ENV{CLICOLOR} == 0) { +\& if (!$ENV{CLICOLOR_FORCE}) { +\& $ENV{ANSI_COLORS_DISABLED} = 1; +\& } +\& } +.Ve +.PP +If you are using the constant interface, be sure to include this code before +you use any color constants (such as at the very top of your script), since +this environment variable is only honored the first time a color constant is +seen. +.PP +Be aware that this will export \s-1ANSI_COLORS_DISABLED\s0 to any child processes of +your program as well. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP "Bad color mapping %s" 4 +.el .IP "Bad color mapping \f(CW%s\fR" 4 +.IX Item "Bad color mapping %s" +(W) The specified color mapping from \s-1ANSI_COLORS_ALIASES\s0 is not valid and +could not be parsed. It was ignored. +.ie n .IP "Bad escape sequence %s" 4 +.el .IP "Bad escape sequence \f(CW%s\fR" 4 +.IX Item "Bad escape sequence %s" +(F) You passed an invalid \s-1ANSI\s0 escape sequence to \fBuncolor()\fR. +.ie n .IP "Bareword ""%s"" not allowed while ""strict subs"" in use" 4 +.el .IP "Bareword ``%s'' not allowed while ``strict subs'' in use" 4 +.IX Item "Bareword %s not allowed while strict subs in use" +(F) You probably mistyped a constant color name such as: +.Sp +.Vb 1 +\& $Foobar = FOOBAR . "This line should be blue\en"; +.Ve +.Sp +or: +.Sp +.Vb 1 +\& @Foobar = FOOBAR, "This line should be blue\en"; +.Ve +.Sp +This will only show up under use strict (another good reason to run under +use strict). +.ie n .IP "Cannot alias standard color %s" 4 +.el .IP "Cannot alias standard color \f(CW%s\fR" 4 +.IX Item "Cannot alias standard color %s" +(F) The alias name passed to \fBcoloralias()\fR matches a standard color name. +Standard color names cannot be aliased. +.ie n .IP "Cannot alias standard color %s in %s" 4 +.el .IP "Cannot alias standard color \f(CW%s\fR in \f(CW%s\fR" 4 +.IX Item "Cannot alias standard color %s in %s" +(W) The same, but in \s-1ANSI_COLORS_ALIASES.\s0 The color mapping was ignored. +.ie n .IP "Invalid alias name %s" 4 +.el .IP "Invalid alias name \f(CW%s\fR" 4 +.IX Item "Invalid alias name %s" +(F) You passed an invalid alias name to \fBcoloralias()\fR. Alias names must +consist only of alphanumerics, \f(CW\*(C`.\*(C'\fR, \f(CW\*(C`\-\*(C'\fR, and \f(CW\*(C`_\*(C'\fR. +.ie n .IP "Invalid alias name %s in %s" 4 +.el .IP "Invalid alias name \f(CW%s\fR in \f(CW%s\fR" 4 +.IX Item "Invalid alias name %s in %s" +(W) You specified an invalid alias name on the left hand of the equal sign +in a color mapping in \s-1ANSI_COLORS_ALIASES.\s0 The color mapping was ignored. +.ie n .IP "Invalid attribute name %s" 4 +.el .IP "Invalid attribute name \f(CW%s\fR" 4 +.IX Item "Invalid attribute name %s" +(F) You passed an invalid attribute name to \fBcolor()\fR, \fBcolored()\fR, or +\&\fBcoloralias()\fR. +.ie n .IP "Invalid attribute name %s in %s" 4 +.el .IP "Invalid attribute name \f(CW%s\fR in \f(CW%s\fR" 4 +.IX Item "Invalid attribute name %s in %s" +(W) You specified an invalid attribute name on the right hand of the equal +sign in a color mapping in \s-1ANSI_COLORS_ALIASES.\s0 The color mapping was +ignored. +.ie n .IP "Name ""%s"" used only once: possible typo" 4 +.el .IP "Name ``%s'' used only once: possible typo" 4 +.IX Item "Name %s used only once: possible typo" +(W) You probably mistyped a constant color name such as: +.Sp +.Vb 1 +\& print FOOBAR "This text is color FOOBAR\en"; +.Ve +.Sp +It's probably better to always use commas after constant names in order to +force the next error. +.IP "No comma allowed after filehandle" 4 +.IX Item "No comma allowed after filehandle" +(F) You probably mistyped a constant color name such as: +.Sp +.Vb 1 +\& print FOOBAR, "This text is color FOOBAR\en"; +.Ve +.Sp +Generating this fatal compile error is one of the main advantages of using +the constants interface, since you'll immediately know if you mistype a +color name. +.ie n .IP "No name for escape sequence %s" 4 +.el .IP "No name for escape sequence \f(CW%s\fR" 4 +.IX Item "No name for escape sequence %s" +(F) The \s-1ANSI\s0 escape sequence passed to \fBuncolor()\fR contains escapes which +aren't recognized and can't be translated to names. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.IP "\s-1ANSI_COLORS_ALIASES\s0" 4 +.IX Item "ANSI_COLORS_ALIASES" +This environment variable allows the user to specify custom color aliases +that will be understood by \fBcolor()\fR, \fBcolored()\fR, and \fBcolorvalid()\fR. None of +the other functions will be affected, and no new color constants will be +created. The custom colors are aliases for existing color names; no new +escape sequences can be introduced. Only alphanumerics, \f(CW\*(C`.\*(C'\fR, \f(CW\*(C`_\*(C'\fR, and +\&\f(CW\*(C`\-\*(C'\fR are allowed in alias names. +.Sp +The format is: +.Sp +.Vb 1 +\& ANSI_COLORS_ALIASES=\*(Aqnewcolor1=oldcolor1,newcolor2=oldcolor2\*(Aq +.Ve +.Sp +Whitespace is ignored. The alias value can be a single attribute or a +space-separated list of attributes. +.Sp +For example the Solarized colors +can be mapped with: +.Sp +.Vb 11 +\& ANSI_COLORS_ALIASES=\*(Aq\e +\& base00=bright_yellow, on_base00=on_bright_yellow,\e +\& base01=bright_green, on_base01=on_bright_green, \e +\& base02=black, on_base02=on_black, \e +\& base03=bright_black, on_base03=on_bright_black, \e +\& base0=bright_blue, on_base0=on_bright_blue, \e +\& base1=bright_cyan, on_base1=on_bright_cyan, \e +\& base2=white, on_base2=on_white, \e +\& base3=bright_white, on_base3=on_bright_white, \e +\& orange=bright_red, on_orange=on_bright_red, \e +\& violet=bright_magenta,on_violet=on_bright_magenta\*(Aq +.Ve +.Sp +This environment variable is read and applied when the Term::ANSIColor +module is loaded and is then subsequently ignored. Changes to +\&\s-1ANSI_COLORS_ALIASES\s0 after the module is loaded will have no effect. See +\&\fBcoloralias()\fR for an equivalent facility that can be used at runtime. +.IP "\s-1ANSI_COLORS_DISABLED\s0" 4 +.IX Item "ANSI_COLORS_DISABLED" +If this environment variable is set to a true value, all of the functions +defined by this module (\fBcolor()\fR, \fBcolored()\fR, and all of the constants) will not +output any escape sequences and instead will just return the empty string or +pass through the original text as appropriate. This is intended to support +easy use of scripts using this module on platforms that don't support \s-1ANSI\s0 +escape sequences. +.IP "\s-1NO_COLOR\s0" 4 +.IX Item "NO_COLOR" +If this environment variable is set to any value, it suppresses generation of +escape sequences the same as if \s-1ANSI_COLORS_DISABLED\s0 is set to a true value. +This implements the informal standard. Programs that +want to enable color despite \s-1NO_COLOR\s0 being set will need to unset that +environment variable before any constant or function provided by this module +is used. +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +Term::ANSIColor was first included with Perl in Perl 5.6.0. +.PP +The \fBuncolor()\fR function and support for \s-1ANSI_COLORS_DISABLED\s0 were added in +Term::ANSIColor 1.04, included in Perl 5.8.0. +.PP +Support for dark was added in Term::ANSIColor 1.08, included in Perl +5.8.4. +.PP +The color stack, including the \f(CW\*(C`:pushpop\*(C'\fR import tag, \s-1PUSHCOLOR, +POPCOLOR, LOCALCOLOR,\s0 and the \f(CW$Term::ANSIColor::AUTOLOCAL\fR variable, was +added in Term::ANSIColor 2.00, included in Perl 5.10.1. +.PP +\&\fBcolorstrip()\fR was added in Term::ANSIColor 2.01 and \fBcolorvalid()\fR was added +in Term::ANSIColor 2.02, both included in Perl 5.11.0. +.PP +Support for colors 8 through 15 (the \f(CW\*(C`bright_\*(C'\fR variants) was added in +Term::ANSIColor 3.00, included in Perl 5.13.3. +.PP +Support for italic was added in Term::ANSIColor 3.02, included in Perl +5.17.1. +.PP +Support for colors 16 through 256 (the \f(CW\*(C`ansi\*(C'\fR, \f(CW\*(C`rgb\*(C'\fR, and \f(CW\*(C`grey\*(C'\fR +colors), the \f(CW\*(C`:constants256\*(C'\fR import tag, the \fBcoloralias()\fR function, and +support for the \s-1ANSI_COLORS_ALIASES\s0 environment variable were added in +Term::ANSIColor 4.00, included in Perl 5.17.8. +.PP +\&\f(CW$Term::ANSIColor::AUTOLOCAL\fR was changed to take precedence over +\&\f(CW$Term::ANSIColor::AUTORESET\fR, rather than the other way around, in +Term::ANSIColor 4.00, included in Perl 5.17.8. +.PP +\&\f(CW\*(C`ansi16\*(C'\fR through \f(CW\*(C`ansi255\*(C'\fR, as aliases for the \f(CW\*(C`rgb\*(C'\fR and \f(CW\*(C`grey\*(C'\fR colors, +and the corresponding \f(CW\*(C`on_ansi\*(C'\fR names and \f(CW\*(C`ANSI\*(C'\fR and \f(CW\*(C`ON_ANSI\*(C'\fR constants +were added in Term::ANSIColor 4.06, included in Perl 5.25.7. +.PP +Support for true color (the \f(CW\*(C`rNNNgNNNbNNN\*(C'\fR and \f(CW\*(C`on_rNNNgNNNbNNN\*(C'\fR +attributes), defining aliases in terms of other aliases, and aliases mapping +to multiple attributes instead of only a single attribute was added in +Term::ANSIColor 5.00. +.PP +Support for \s-1NO_COLOR\s0 was added in Term::ANSIColor 5.01. +.SH "RESTRICTIONS" +.IX Header "RESTRICTIONS" +Both \fBcolored()\fR and many uses of the color constants will add the reset escape +sequence after a newline. If a program mixes colored output to standard +output with output to standard error, this can result in the standard error +text having the wrong color because the reset escape sequence hasn't yet been +flushed to the display (since standard output to a terminal is line-buffered +by default). To avoid this, either set \fBautoflush()\fR on \s-1STDOUT\s0 or set +\&\f(CW$Term::ANSIColor::EACHLINE\fR to \f(CW"\en"\fR. +.PP +It would be nice if one could leave off the commas around the constants +entirely and just say: +.PP +.Vb 1 +\& print BOLD BLUE ON_WHITE "Text\en" RESET; +.Ve +.PP +but the syntax of Perl doesn't allow this. You need a comma after the +string. (Of course, you may consider it a bug that commas between all the +constants aren't required, in which case you may feel free to insert +commas unless you're using \f(CW$Term::ANSIColor::AUTORESET\fR or +\&\s-1PUSHCOLOR/POPCOLOR.\s0) +.PP +For easier debugging, you may prefer to always use the commas when not +setting \f(CW$Term::ANSIColor::AUTORESET\fR or \s-1PUSHCOLOR/POPCOLOR\s0 so that you'll +get a fatal compile error rather than a warning. +.PP +It's not possible to use this module to embed formatting and color +attributes using Perl formats. They replace the escape character with a +space (as documented in \fBperlform\fR\|(1)), resulting in garbled output from +the unrecognized attribute. Even if there were a way around that problem, +the format doesn't know that the non-printing escape sequence is +zero-length and would incorrectly format the output. For formatted output +using color or other attributes, either use \fBsprintf()\fR instead or use +\&\fBformline()\fR and then add the color or other attributes after formatting and +before output. +.SH "NOTES" +.IX Header "NOTES" +The codes generated by this module are standard terminal control codes, +complying with \s-1ECMA\-048\s0 and \s-1ISO 6429\s0 (generally referred to as \*(L"\s-1ANSI\s0 +color\*(R" for the color codes). The non-color control codes (bold, dark, +italic, underline, and reverse) are part of the earlier \s-1ANSI X3.64\s0 +standard for control sequences for video terminals and peripherals. +.PP +Note that not all displays are \s-1ISO\s0 6429\-compliant, or even X3.64\-compliant +(or are even attempting to be so). This module will not work as expected +on displays that do not honor these escape sequences, such as cmd.exe, +4nt.exe, and command.com under either Windows \s-1NT\s0 or Windows 2000. They +may just be ignored, or they may display as an \s-1ESC\s0 character followed by +some apparent garbage. +.PP +Jean Delvare provided the following table of different common terminal +emulators and their support for the various attributes and others have +helped me flesh it out: +.PP +.Vb 12 +\& clear bold faint under blink reverse conceal +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& xterm yes yes no yes yes yes yes +\& linux yes yes yes bold yes yes no +\& rxvt yes yes no yes bold/black yes no +\& dtterm yes yes yes yes reverse yes yes +\& teraterm yes reverse no yes rev/red yes no +\& aixterm kinda normal no yes no yes yes +\& PuTTY yes color no yes no yes no +\& Windows yes no no no no yes no +\& Cygwin SSH yes yes no color color color yes +\& Terminal.app yes yes no yes yes yes yes +.Ve +.PP +Windows is Windows telnet, Cygwin \s-1SSH\s0 is the OpenSSH implementation under +Cygwin on Windows \s-1NT,\s0 and Mac Terminal is the Terminal application in Mac +\&\s-1OS X.\s0 Where the entry is other than yes or no, that emulator displays the +given attribute as something else instead. Note that on an aixterm, clear +doesn't reset colors; you have to explicitly set the colors back to what +you want. More entries in this table are welcome. +.PP +Support for code 3 (italic) is rare and therefore not mentioned in that +table. It is not believed to be fully supported by any of the terminals +listed, although it's displayed as green in the Linux console, but it is +reportedly supported by urxvt. +.PP +Note that codes 6 (rapid blink) and 9 (strike-through) are specified in \s-1ANSI +X3.64\s0 and \s-1ECMA\-048\s0 but are not commonly supported by most displays and +emulators and therefore aren't supported by this module. \s-1ECMA\-048\s0 also +specifies a large number of other attributes, including a sequence of +attributes for font changes, Fraktur characters, double-underlining, framing, +circling, and overlining. As none of these attributes are widely supported or +useful, they also aren't currently supported by this module. +.PP +Most modern X terminal emulators support 256 colors. Known to not support +those colors are aterm, rxvt, Terminal.app, and \s-1TTY/VC.\s0 +.PP +For information on true color support in various terminal emulators, see +True Colour support . +.SH "AUTHORS" +.IX Header "AUTHORS" +Original idea (using constants) by Zenin, reimplemented using subs by Russ +Allbery , and then combined with the original idea by +Russ with input from Zenin. 256\-color support is based on work by Kurt +Starsinic. Russ Allbery now maintains this module. +.PP +\&\s-1PUSHCOLOR, POPCOLOR,\s0 and \s-1LOCALCOLOR\s0 were contributed by openmethods.com +voice solutions. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1996\-1998, 2000\-2002, 2005\-2006, 2008\-2018, 2020 Russ Allbery + +.PP +Copyright 1996 Zenin +.PP +Copyright 2012 Kurt Starsinic +.PP +This program is free software; you may redistribute it and/or modify it +under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The \s-1CPAN\s0 module Term::ExtendedColor provides a different and more +comprehensive interface for 256\-color emulators that may be more +convenient. The \s-1CPAN\s0 module Win32::Console::ANSI provides \s-1ANSI\s0 color +(and other escape sequence) support in the Win32 Console environment. +The \s-1CPAN\s0 module Term::Chrome provides a different interface using +objects and operator overloading. +.PP +\&\s-1ECMA\-048\s0 is available on-line (at least at the time of this writing) at +. +.PP +\&\s-1ISO 6429\s0 is available from \s-1ISO\s0 for a charge; the author of this module +does not own a copy of it. Since the source material for \s-1ISO 6429\s0 was +\&\s-1ECMA\-048\s0 and the latter is available for free, there seems little reason +to obtain the \s-1ISO\s0 standard. +.PP +The 256\-color control sequences are documented at + (search for +256\-color). +.PP +Information about true color support in various terminal emulators and test +programs you can run to check the true color support in your terminal emulator +are available at . +.PP +\&\s-1CLICOLORS\s0 and +\&\s-1NO_COLOR\s0 are useful standards to be aware of, and +ideally follow, for any application using color. Term::ANSIColor complies +with the latter. +.PP +The current version of this module is always available from its web site +at . It is also part +of the Perl core distribution as of 5.6.0. diff --git a/data/miniconda3/man/man3/Term%3A%3ACap.3 b/data/miniconda3/man/man3/Term%3A%3ACap.3 new file mode 100644 index 0000000000000000000000000000000000000000..f1b3fa30aad376f861cd8100f32be97ed30da81f --- /dev/null +++ b/data/miniconda3/man/man3/Term%3A%3ACap.3 @@ -0,0 +1,363 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Term::Cap 3" +.TH Term::Cap 3 "2020-12-18" "perl v5.32.1" "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" +Term::Cap \- Perl termcap interface +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& require Term::Cap; +\& $terminal = Tgetent Term::Cap { TERM => undef, OSPEED => $ospeed }; +\& $terminal\->Trequire(qw/ce ku kd/); +\& $terminal\->Tgoto(\*(Aqcm\*(Aq, $col, $row, $FH); +\& $terminal\->Tputs(\*(Aqdl\*(Aq, $count, $FH); +\& $terminal\->Tpad($string, $count, $FH); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +These are low-level functions to extract and use capabilities from +a terminal capability (termcap) database. +.PP +More information on the terminal capabilities will be found in the +termcap manpage on most Unix-like systems. +.SS "\s-1METHODS\s0" +.IX Subsection "METHODS" +The output strings for \fBTputs\fR are cached for counts of 1 for performance. +\&\fBTgoto\fR and \fBTpad\fR do not cache. \f(CW\*(C`$self\->{_xx}\*(C'\fR is the raw termcap +data and \f(CW\*(C`$self\->{xx}\*(C'\fR is the cached version. +.PP +.Vb 1 +\& print $terminal\->Tpad($self\->{_xx}, 1); +.Ve +.PP +\&\fBTgoto\fR, \fBTputs\fR, and \fBTpad\fR return the string and will also +output the string to \f(CW$FH\fR if specified. +.IP "\fBTgetent\fR" 4 +.IX Item "Tgetent" +Returns a blessed object reference which the user can +then use to send the control strings to the terminal using \fBTputs\fR +and \fBTgoto\fR. +.Sp +The function extracts the entry of the specified terminal +type \fI\s-1TERM\s0\fR (defaults to the environment variable \fI\s-1TERM\s0\fR) from the +database. +.Sp +It will look in the environment for a \fI\s-1TERMCAP\s0\fR variable. If +found, and the value does not begin with a slash, and the terminal +type name is the same as the environment string \fI\s-1TERM\s0\fR, the +\&\fI\s-1TERMCAP\s0\fR string is used instead of reading a termcap file. If +it does begin with a slash, the string is used as a path name of +the termcap file to search. If \fI\s-1TERMCAP\s0\fR does not begin with a +slash and name is different from \fI\s-1TERM\s0\fR, \fBTgetent\fR searches the +files \fI\f(CI$HOME\fI/.termcap\fR, \fI/etc/termcap\fR, and \fI/usr/share/misc/termcap\fR, +in that order, unless the environment variable \fI\s-1TERMPATH\s0\fR exists, +in which case it specifies a list of file pathnames (separated by +spaces or colons) to be searched \fBinstead\fR. Whenever multiple +files are searched and a tc field occurs in the requested entry, +the entry it names must be found in the same file or one of the +succeeding files. If there is a \f(CW\*(C`:tc=...:\*(C'\fR in the \fI\s-1TERMCAP\s0\fR +environment variable string it will continue the search in the +files as above. +.Sp +The extracted termcap entry is available in the object +as \f(CW\*(C`$self\->{TERMCAP}\*(C'\fR. +.Sp +It takes a hash reference as an argument with two optional keys: +.RS 4 +.IP "\s-1OSPEED\s0" 2 +.IX Item "OSPEED" +The terminal output bit rate (often mistakenly called the baud rate) +for this terminal \- if not set a warning will be generated +and it will be defaulted to 9600. \fI\s-1OSPEED\s0\fR can be specified as +either a \s-1POSIX\s0 termios/SYSV termio speeds (where 9600 equals 9600) or +an old DSD-style speed ( where 13 equals 9600). +.IP "\s-1TERM\s0" 2 +.IX Item "TERM" +The terminal type whose termcap entry will be used \- if not supplied it will +default to \f(CW$ENV\fR{\s-1TERM\s0}: if that is not set then \fBTgetent\fR will croak. +.RE +.RS 4 +.Sp +It calls \f(CW\*(C`croak\*(C'\fR on failure. +.RE +.IP "\fBTpad\fR" 4 +.IX Item "Tpad" +Outputs a literal string with appropriate padding for the current terminal. +.Sp +It takes three arguments: +.RS 4 +.IP "\fB\f(CB$string\fB\fR" 2 +.IX Item "$string" +The literal string to be output. If it starts with a number and an optional +\&'*' then the padding will be increased by an amount relative to this number, +if the '*' is present then this amount will be multiplied by \f(CW$cnt\fR. This part +of \f(CW$string\fR is removed before output/ +.IP "\fB\f(CB$cnt\fB\fR" 2 +.IX Item "$cnt" +Will be used to modify the padding applied to string as described above. +.IP "\fB\f(CB$FH\fB\fR" 2 +.IX Item "$FH" +An optional filehandle (or IO::Handle ) that output will be printed to. +.RE +.RS 4 +.Sp +The padded \f(CW$string\fR is returned. +.RE +.IP "\fBTputs\fR" 4 +.IX Item "Tputs" +Output the string for the given capability padded as appropriate without +any parameter substitution. +.Sp +It takes three arguments: +.RS 4 +.IP "\fB\f(CB$cap\fB\fR" 2 +.IX Item "$cap" +The capability whose string is to be output. +.IP "\fB\f(CB$cnt\fB\fR" 2 +.IX Item "$cnt" +A count passed to Tpad to modify the padding applied to the output string. +If \f(CW$cnt\fR is zero or one then the resulting string will be cached. +.IP "\fB\f(CB$FH\fB\fR" 2 +.IX Item "$FH" +An optional filehandle (or IO::Handle ) that output will be printed to. +.RE +.RS 4 +.Sp +The appropriate string for the capability will be returned. +.RE +.IP "\fBTgoto\fR" 4 +.IX Item "Tgoto" +\&\fBTgoto\fR decodes a cursor addressing string with the given parameters. +.Sp +There are four arguments: +.RS 4 +.IP "\fB\f(CB$cap\fB\fR" 2 +.IX Item "$cap" +The name of the capability to be output. +.IP "\fB\f(CB$col\fB\fR" 2 +.IX Item "$col" +The first value to be substituted in the output string ( usually the column +in a cursor addressing capability ) +.IP "\fB\f(CB$row\fB\fR" 2 +.IX Item "$row" +The second value to be substituted in the output string (usually the row +in cursor addressing capabilities) +.IP "\fB\f(CB$FH\fB\fR" 2 +.IX Item "$FH" +An optional filehandle (or IO::Handle ) to which the output string will be +printed. +.RE +.RS 4 +.Sp +Substitutions are made with \f(CW$col\fR and \f(CW$row\fR in the output string with the +following \fBsprintf()\fR line formats: +.Sp +.Vb 6 +\& %% output \`%\*(Aq +\& %d output value as in printf %d +\& %2 output value as in printf %2d +\& %3 output value as in printf %3d +\& %. output value as in printf %c +\& %+x add x to value, then do %. +\& +\& %>xy if value > x then add y, no output +\& %r reverse order of two parameters, no output +\& %i increment by one, no output +\& %B BCD (16*(value/10)) + (value%10), no output +\& +\& %n exclusive\-or all parameters with 0140 (Datamedia 2500) +\& %D Reverse coding (value \- 2*(value%16)), no output (Delta Data) +.Ve +.Sp +The output string will be returned. +.RE +.IP "\fBTrequire\fR" 4 +.IX Item "Trequire" +Takes a list of capabilities as an argument and will croak if one is not +found. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 1 +\& use Term::Cap; +\& +\& # Get terminal output speed +\& require POSIX; +\& my $termios = new POSIX::Termios; +\& $termios\->getattr; +\& my $ospeed = $termios\->getospeed; +\& +\& # Old\-style ioctl code to get ospeed: +\& # require \*(Aqioctl.pl\*(Aq; +\& # ioctl(TTY,$TIOCGETP,$sgtty); +\& # ($ispeed,$ospeed) = unpack(\*(Aqcc\*(Aq,$sgtty); +\& +\& # allocate and initialize a terminal structure +\& $terminal = Tgetent Term::Cap { TERM => undef, OSPEED => $ospeed }; +\& +\& # require certain capabilities to be available +\& $terminal\->Trequire(qw/ce ku kd/); +\& +\& # Output Routines, if $FH is undefined these just return the string +\& +\& # Tgoto does the % expansion stuff with the given args +\& $terminal\->Tgoto(\*(Aqcm\*(Aq, $col, $row, $FH); +\& +\& # Tputs doesn\*(Aqt do any % expansion. +\& $terminal\->Tputs(\*(Aqdl\*(Aq, $count = 1, $FH); +.Ve +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1995\-2015 (c) perl5 porters. +.PP +This software is free software and can be modified and distributed under +the same terms as Perl itself. +.PP +Please see the file \s-1README\s0 in the Perl source distribution for details of +the Perl license. +.SH "AUTHOR" +.IX Header "AUTHOR" +This module is part of the core Perl distribution and is also maintained +for \s-1CPAN\s0 by Jonathan Stowe . +.PP +The code is hosted on Github: https://github.com/jonathanstowe/Term\-Cap +please feel free to fork, submit patches etc, etc there. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBtermcap\fR\|(5) diff --git a/data/miniconda3/man/man3/Term%3A%3AComplete.3 b/data/miniconda3/man/man3/Term%3A%3AComplete.3 new file mode 100644 index 0000000000000000000000000000000000000000..7dfe14c7612be660bdd0188ea6a96aaed583a33a --- /dev/null +++ b/data/miniconda3/man/man3/Term%3A%3AComplete.3 @@ -0,0 +1,182 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Term::Complete 3" +.TH Term::Complete 3 "2020-12-18" "perl v5.32.1" "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" +Term::Complete \- Perl word completion module +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& $input = Complete(\*(Aqprompt_string\*(Aq, \e@completion_list); +\& $input = Complete(\*(Aqprompt_string\*(Aq, @completion_list); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This routine provides word completion on the list of words in +the array (or array ref). +.PP +The tty driver is put into raw mode and restored using an operating +system specific command, in UNIX-like environments \f(CW\*(C`stty\*(C'\fR. +.PP +The following command characters are defined: +.IP "" 4 +.IX Item "" +Attempts word completion. +Cannot be changed. +.IP "^D" 4 +.IX Item "^D" +Prints completion list. +Defined by \fI\f(CI$Term::Complete::complete\fI\fR. +.IP "^U" 4 +.IX Item "^U" +Erases the current input. +Defined by \fI\f(CI$Term::Complete::kill\fI\fR. +.IP ", " 4 +.IX Item ", " +Erases one character. +Defined by \fI\f(CI$Term::Complete::erase1\fI\fR and \fI\f(CI$Term::Complete::erase2\fI\fR. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +Bell sounds when word completion fails. +.SH "BUGS" +.IX Header "BUGS" +The completion character cannot be changed. +.SH "AUTHOR" +.IX Header "AUTHOR" +Wayne Thompson diff --git a/data/miniconda3/man/man3/Term%3A%3AReadLine.3 b/data/miniconda3/man/man3/Term%3A%3AReadLine.3 new file mode 100644 index 0000000000000000000000000000000000000000..3e3c17e8c7bb2cac447d75e81231a83f1ff71b34 --- /dev/null +++ b/data/miniconda3/man/man3/Term%3A%3AReadLine.3 @@ -0,0 +1,335 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Term::ReadLine 3" +.TH Term::ReadLine 3 "2020-12-18" "perl v5.32.1" "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" +Term::ReadLine \- Perl interface to various "readline" packages. +If no real package is found, substitutes stubs instead of basic functions. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& use Term::ReadLine; +\& my $term = Term::ReadLine\->new(\*(AqSimple Perl calc\*(Aq); +\& my $prompt = "Enter your arithmetic expression: "; +\& my $OUT = $term\->OUT || \e*STDOUT; +\& while ( defined ($_ = $term\->readline($prompt)) ) { +\& my $res = eval($_); +\& warn $@ if $@; +\& print $OUT $res, "\en" unless $@; +\& $term\->addhistory($_) if /\eS/; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package is just a front end to some other packages. It's a stub to +set up a common interface to the various ReadLine implementations found on +\&\s-1CPAN\s0 (under the \f(CW\*(C`Term::ReadLine::*\*(C'\fR namespace). +.SH "Minimal set of supported functions" +.IX Header "Minimal set of supported functions" +All the supported functions should be called as methods, i.e., either as +.PP +.Vb 1 +\& $term = Term::ReadLine\->new(\*(Aqname\*(Aq); +.Ve +.PP +or as +.PP +.Vb 1 +\& $term\->addhistory(\*(Aqrow\*(Aq); +.Ve +.PP +where \f(CW$term\fR is a return value of Term::ReadLine\->\fBnew()\fR. +.ie n .IP """ReadLine""" 12 +.el .IP "\f(CWReadLine\fR" 12 +.IX Item "ReadLine" +returns the actual package that executes the commands. Among possible +values are \f(CW\*(C`Term::ReadLine::Gnu\*(C'\fR, \f(CW\*(C`Term::ReadLine::Perl\*(C'\fR, +\&\f(CW\*(C`Term::ReadLine::Stub\*(C'\fR. +.ie n .IP """new""" 12 +.el .IP "\f(CWnew\fR" 12 +.IX Item "new" +returns the handle for subsequent calls to following +functions. Argument is the name of the application. Optionally can be +followed by two arguments for \f(CW\*(C`IN\*(C'\fR and \f(CW\*(C`OUT\*(C'\fR filehandles. These +arguments should be globs. +.ie n .IP """readline""" 12 +.el .IP "\f(CWreadline\fR" 12 +.IX Item "readline" +gets an input line, \fIpossibly\fR with actual \f(CW\*(C`readline\*(C'\fR +support. Trailing newline is removed. Returns \f(CW\*(C`undef\*(C'\fR on \f(CW\*(C`EOF\*(C'\fR. +.ie n .IP """addhistory""" 12 +.el .IP "\f(CWaddhistory\fR" 12 +.IX Item "addhistory" +adds the line to the history of input, from where it can be used if +the actual \f(CW\*(C`readline\*(C'\fR is present. +.ie n .IP """IN"", ""OUT""" 12 +.el .IP "\f(CWIN\fR, \f(CWOUT\fR" 12 +.IX Item "IN, OUT" +return the filehandles for input and output or \f(CW\*(C`undef\*(C'\fR if \f(CW\*(C`readline\*(C'\fR +input and output cannot be used for Perl. +.ie n .IP """MinLine""" 12 +.el .IP "\f(CWMinLine\fR" 12 +.IX Item "MinLine" +If argument is specified, it is an advice on minimal size of line to +be included into history. \f(CW\*(C`undef\*(C'\fR means do not include anything into +history. Returns the old value. +.ie n .IP """findConsole""" 12 +.el .IP "\f(CWfindConsole\fR" 12 +.IX Item "findConsole" +returns an array with two strings that give most appropriate names for +files for input and output using conventions \f(CW"<$in"\fR, \f(CW">out"\fR. +.Sp +The strings returned may not be useful for 3\-argument \fBopen()\fR. +.IP "Attribs" 12 +.IX Item "Attribs" +returns a reference to a hash which describes internal configuration +of the package. Names of keys in this hash conform to standard +conventions with the leading \f(CW\*(C`rl_\*(C'\fR stripped. +.ie n .IP """Features""" 12 +.el .IP "\f(CWFeatures\fR" 12 +.IX Item "Features" +Returns a reference to a hash with keys being features present in +current implementation. Several optional features are used in the +minimal interface: \f(CW\*(C`appname\*(C'\fR should be present if the first argument +to \f(CW\*(C`new\*(C'\fR is recognized, and \f(CW\*(C`minline\*(C'\fR should be present if +\&\f(CW\*(C`MinLine\*(C'\fR method is not dummy. \f(CW\*(C`autohistory\*(C'\fR should be present if +lines are put into history automatically (maybe subject to +\&\f(CW\*(C`MinLine\*(C'\fR), and \f(CW\*(C`addhistory\*(C'\fR if \f(CW\*(C`addhistory\*(C'\fR method is not dummy. +.Sp +If \f(CW\*(C`Features\*(C'\fR method reports a feature \f(CW\*(C`attribs\*(C'\fR as present, the +method \f(CW\*(C`Attribs\*(C'\fR is not dummy. +.SH "Additional supported functions" +.IX Header "Additional supported functions" +Actually \f(CW\*(C`Term::ReadLine\*(C'\fR can use some other package, that will +support a richer set of commands. +.PP +All these commands are callable via method interface and have names +which conform to standard conventions with the leading \f(CW\*(C`rl_\*(C'\fR stripped. +.PP +The stub package included with the perl distribution allows some +additional methods: +.ie n .IP """tkRunning""" 12 +.el .IP "\f(CWtkRunning\fR" 12 +.IX Item "tkRunning" +makes Tk event loop run when waiting for user input (i.e., during +\&\f(CW\*(C`readline\*(C'\fR method). +.ie n .IP """event_loop""" 12 +.el .IP "\f(CWevent_loop\fR" 12 +.IX Item "event_loop" +Registers call-backs to wait for user input (i.e., during \f(CW\*(C`readline\*(C'\fR +method). This supersedes tkRunning. +.Sp +The first call-back registered is the call back for waiting. It is +expected that the callback will call the current event loop until +there is something waiting to get on the input filehandle. The parameter +passed in is the return value of the second call back. +.Sp +The second call-back registered is the call back for registration. The +input filehandle (often \s-1STDIN,\s0 but not necessarily) will be passed in. +.Sp +For example, with AnyEvent: +.Sp +.Vb 10 +\& $term\->event_loop(sub { +\& my $data = shift; +\& $data\->[1] = AE::cv(); +\& $data\->[1]\->recv(); +\& }, sub { +\& my $fh = shift; +\& my $data = []; +\& $data\->[0] = AE::io($fh, 0, sub { $data\->[1]\->send() }); +\& $data; +\& }); +.Ve +.Sp +The second call-back is optional if the call back is registered prior to +the call to \f(CW$term\fR\->readline. +.Sp +Deregistration is done in this case by calling event_loop with \f(CW\*(C`undef\*(C'\fR +as its parameter: +.Sp +.Vb 1 +\& $term\->event_loop(undef); +.Ve +.Sp +This will cause the data array ref to be removed, allowing normal garbage +collection to clean it up. With AnyEvent, that will cause \f(CW$data\fR\->[0] to +be cleaned up, and AnyEvent will automatically cancel the watcher at that +time. If another loop requires more than that to clean up a file watcher, +that will be up to the caller to handle. +.ie n .IP """ornaments""" 12 +.el .IP "\f(CWornaments\fR" 12 +.IX Item "ornaments" +makes the command line stand out by using termcap data. The argument +to \f(CW\*(C`ornaments\*(C'\fR should be 0, 1, or a string of a form +\&\f(CW"aa,bb,cc,dd"\fR. Four components of this string should be names of +\&\fIterminal capacities\fR, first two will be issued to make the prompt +standout, last two to make the input line standout. +.ie n .IP """newTTY""" 12 +.el .IP "\f(CWnewTTY\fR" 12 +.IX Item "newTTY" +takes two arguments which are input filehandle and output filehandle. +Switches to use these filehandles. +.PP +One can check whether the currently loaded ReadLine package supports +these methods by checking for corresponding \f(CW\*(C`Features\*(C'\fR. +.SH "EXPORTS" +.IX Header "EXPORTS" +None +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +The environment variable \f(CW\*(C`PERL_RL\*(C'\fR governs which ReadLine clone is +loaded. If the value is false, a dummy interface is used. If the value +is true, it should be tail of the name of the package to use, such as +\&\f(CW\*(C`Perl\*(C'\fR or \f(CW\*(C`Gnu\*(C'\fR. +.PP +As a special case, if the value of this variable is space-separated, +the tail might be used to disable the ornaments by setting the tail to +be \f(CW\*(C`o=0\*(C'\fR or \f(CW\*(C`ornaments=0\*(C'\fR. The head should be as described above, say +.PP +If the variable is not set, or if the head of space-separated list is +empty, the best available package is loaded. +.PP +.Vb 2 +\& export "PERL_RL=Perl o=0" # Use Perl ReadLine sans ornaments +\& export "PERL_RL= o=0" # Use best available ReadLine sans ornaments +.Ve +.PP +(Note that processing of \f(CW\*(C`PERL_RL\*(C'\fR for ornaments is in the discretion of the +particular used \f(CW\*(C`Term::ReadLine::*\*(C'\fR package). diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AFormatter.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AFormatter.3 new file mode 100644 index 0000000000000000000000000000000000000000..8ff0806bc73adcaf3c96a5d43adfa316ca629381 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AFormatter.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder::Formatter 3" +.TH Test::Builder::Formatter 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder::Formatter \- Test::Builder subclass of Test2::Formatter::TAP +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is what takes events and turns them into \s-1TAP.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test::Builder; # Loads Test::Builder::Formatter for you +.Ve +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AIO%3A%3AScalar.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AIO%3A%3AScalar.3 new file mode 100644 index 0000000000000000000000000000000000000000..18ad4bceced0e3ded50b810a006350985fff4667 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AIO%3A%3AScalar.3 @@ -0,0 +1,346 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder::IO::Scalar 3" +.TH Test::Builder::IO::Scalar 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder::IO::Scalar \- A copy of IO::Scalar for Test::Builder +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a copy of IO::Scalar which ships with Test::Builder to +support scalar references as filehandles on Perl 5.6. Newer +versions of Perl simply use \f(CW\*(C`open()\*(C'\fR's built in support. +.PP +Test::Builder can not have dependencies on other modules without +careful consideration, so its simply been copied into the distribution. +.SH "COPYRIGHT and LICENSE" +.IX Header "COPYRIGHT and LICENSE" +This file came from the \*(L"IO-stringy\*(R" Perl5 toolkit. +.PP +Copyright (c) 1996 by Eryq. All rights reserved. +Copyright (c) 1999,2001 by ZeeGee Software Inc. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SS "Construction" +.IX Subsection "Construction" +.IP "new [\s-1ARGS...\s0]" 4 +.IX Item "new [ARGS...]" +\&\fIClass method.\fR +Return a new, unattached scalar handle. +If any arguments are given, they're sent to \fBopen()\fR. +.IP "open [\s-1SCALARREF\s0]" 4 +.IX Item "open [SCALARREF]" +\&\fIInstance method.\fR +Open the scalar handle on a new scalar, pointed to by \s-1SCALARREF.\s0 +If no \s-1SCALARREF\s0 is given, a \*(L"private\*(R" scalar is created to hold +the file data. +.Sp +Returns the self object on success, undefined on error. +.IP "opened" 4 +.IX Item "opened" +\&\fIInstance method.\fR +Is the scalar handle opened on something? +.IP "close" 4 +.IX Item "close" +\&\fIInstance method.\fR +Disassociate the scalar handle from its underlying scalar. +Done automatically on destroy. +.SS "Input and output" +.IX Subsection "Input and output" +.IP "flush" 4 +.IX Item "flush" +\&\fIInstance method.\fR +No-op, provided for \s-1OO\s0 compatibility. +.IP "getc" 4 +.IX Item "getc" +\&\fIInstance method.\fR +Return the next character, or undef if none remain. +.IP "getline" 4 +.IX Item "getline" +\&\fIInstance method.\fR +Return the next line, or undef on end of string. +Can safely be called in an array context. +Currently, lines are delimited by \*(L"\en\*(R". +.IP "getlines" 4 +.IX Item "getlines" +\&\fIInstance method.\fR +Get all remaining lines. +It will \fBcroak()\fR if accidentally called in a scalar context. +.IP "print \s-1ARGS...\s0" 4 +.IX Item "print ARGS..." +\&\fIInstance method.\fR +Print \s-1ARGS\s0 to the underlying scalar. +.Sp +\&\fBWarning:\fR this continues to always cause a seek to the end +of the string, but if you perform \fBseek()\fRs and \fBtell()\fRs, it is +still safer to explicitly seek-to-end before subsequent \fBprint()\fRs. +.IP "read \s-1BUF, NBYTES,\s0 [\s-1OFFSET\s0]" 4 +.IX Item "read BUF, NBYTES, [OFFSET]" +\&\fIInstance method.\fR +Read some bytes from the scalar. +Returns the number of bytes actually read, 0 on end-of-file, undef on error. +.IP "write \s-1BUF, NBYTES,\s0 [\s-1OFFSET\s0]" 4 +.IX Item "write BUF, NBYTES, [OFFSET]" +\&\fIInstance method.\fR +Write some bytes to the scalar. +.IP "sysread \s-1BUF, LEN,\s0 [\s-1OFFSET\s0]" 4 +.IX Item "sysread BUF, LEN, [OFFSET]" +\&\fIInstance method.\fR +Read some bytes from the scalar. +Returns the number of bytes actually read, 0 on end-of-file, undef on error. +.IP "syswrite \s-1BUF, NBYTES,\s0 [\s-1OFFSET\s0]" 4 +.IX Item "syswrite BUF, NBYTES, [OFFSET]" +\&\fIInstance method.\fR +Write some bytes to the scalar. +.SS "Seeking/telling and other attributes" +.IX Subsection "Seeking/telling and other attributes" +.IP "autoflush" 4 +.IX Item "autoflush" +\&\fIInstance method.\fR +No-op, provided for \s-1OO\s0 compatibility. +.IP "binmode" 4 +.IX Item "binmode" +\&\fIInstance method.\fR +No-op, provided for \s-1OO\s0 compatibility. +.IP "clearerr" 4 +.IX Item "clearerr" +\&\fIInstance method.\fR Clear the error and \s-1EOF\s0 flags. A no-op. +.IP "eof" 4 +.IX Item "eof" +\&\fIInstance method.\fR Are we at end of file? +.IP "seek \s-1OFFSET, WHENCE\s0" 4 +.IX Item "seek OFFSET, WHENCE" +\&\fIInstance method.\fR Seek to a given position in the stream. +.IP "sysseek \s-1OFFSET, WHENCE\s0" 4 +.IX Item "sysseek OFFSET, WHENCE" +\&\fIInstance method.\fR Identical to \f(CW\*(C`seek OFFSET, WHENCE\*(C'\fR, \fIq.v.\fR +.IP "tell" 4 +.IX Item "tell" +\&\fIInstance method.\fR +Return the current position in the stream, as a numeric offset. +.IP "use_RS [\s-1YESNO\s0]" 4 +.IX Item "use_RS [YESNO]" +\&\fIInstance method.\fR +\&\fBDeprecated and ignored.\fR +Obey the current setting of $/, like IO::Handle does? +Default is false in 1.x, but cold-welded true in 2.x and later. +.IP "setpos \s-1POS\s0" 4 +.IX Item "setpos POS" +\&\fIInstance method.\fR +Set the current position, using the opaque value returned by \f(CW\*(C`getpos()\*(C'\fR. +.IP "getpos" 4 +.IX Item "getpos" +\&\fIInstance method.\fR +Return the current position in the string, as an opaque object. +.IP "sref" 4 +.IX Item "sref" +\&\fIInstance method.\fR +Return a reference to the underlying scalar. +.SH "WARNINGS" +.IX Header "WARNINGS" +Perl's \s-1TIEHANDLE\s0 spec was incomplete prior to 5.005_57; +it was missing support for \f(CW\*(C`seek()\*(C'\fR, \f(CW\*(C`tell()\*(C'\fR, and \f(CW\*(C`eof()\*(C'\fR. +Attempting to use these functions with an IO::Scalar will not work +prior to 5.005_57. IO::Scalar will not have the relevant methods +invoked; and even worse, this kind of bug can lie dormant for a while. +If you turn warnings on (via \f(CW$^W\fR or \f(CW\*(C`perl \-w\*(C'\fR), +and you see something like this... +.PP +.Vb 1 +\& attempt to seek on unopened filehandle +.Ve +.PP +\&...then you are probably trying to use one of these functions +on an IO::Scalar with an old Perl. The remedy is to simply +use the \s-1OO\s0 version; e.g.: +.PP +.Vb 2 +\& $SH\->seek(0,0); ### GOOD: will work on any 5.005 +\& seek($SH,0,0); ### WARNING: will only work on 5.005_57 and beyond +.Ve +.SH "VERSION" +.IX Header "VERSION" +\&\f(CW$Id:\fR Scalar.pm,v 1.6 2005/02/10 21:21:53 dfs Exp $ +.SH "AUTHORS" +.IX Header "AUTHORS" +.SS "Primary Maintainer" +.IX Subsection "Primary Maintainer" +David F. Skoll (\fIdfs@roaringpenguin.com\fR). +.SS "Principal author" +.IX Subsection "Principal author" +Eryq (\fIeryq@zeegee.com\fR). +President, ZeeGee Software Inc (\fIhttp://www.zeegee.com\fR). +.SS "Other contributors" +.IX Subsection "Other contributors" +The full set of contributors always includes the folks mentioned +in \*(L"\s-1CHANGE LOG\*(R"\s0 in IO::Stringy. But just the same, special +thanks to the following individuals for their invaluable contributions +(if I've forgotten or misspelled your name, please email me!): +.PP +\&\fIAndy Glew,\fR +for contributing \f(CW\*(C`getc()\*(C'\fR. +.PP +\&\fIBrandon Browning,\fR +for suggesting \f(CW\*(C`opened()\*(C'\fR. +.PP +\&\fIDavid Richter,\fR +for finding and fixing the bug in \f(CW\*(C`PRINTF()\*(C'\fR. +.PP +\&\fIEric L. Brine,\fR +for his offset-using \fBread()\fR and \fBwrite()\fR implementations. +.PP +\&\fIRichard Jones,\fR +for his patches to massively improve the performance of \f(CW\*(C`getline()\*(C'\fR +and add \f(CW\*(C`sysread\*(C'\fR and \f(CW\*(C`syswrite\*(C'\fR. +.PP +\&\fIB. K. Oxley (binkley),\fR +for stringification and inheritance improvements, +and sundry good ideas. +.PP +\&\fIDoug Wilson,\fR +for the IO::Handle inheritance and automatic tie-ing. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IO::String, which is quite similar but which was designed +more-recently and with an IO::Handle\-like interface in mind, +so you could mix \s-1OO\-\s0 and native-filehandle usage without using \fBtied()\fR. +.PP +\&\fINote:\fR as of version 2.x, these classes all work like +their IO::Handle counterparts, so we have comparable +functionality to IO::String. diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AModule.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AModule.3 new file mode 100644 index 0000000000000000000000000000000000000000..3909a959754b97153e909bedaaff34d5ee03221a --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3AModule.3 @@ -0,0 +1,249 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder::Module 3" +.TH Test::Builder::Module 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder::Module \- Base class for test modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # Emulates Test::Simple +\& package Your::Module; +\& +\& my $CLASS = _\|_PACKAGE_\|_; +\& +\& use parent \*(AqTest::Builder::Module\*(Aq; +\& @EXPORT = qw(ok); +\& +\& sub ok ($;$) { +\& my $tb = $CLASS\->builder; +\& return $tb\->ok(@_); +\& } +\& +\& 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a superclass for Test::Builder\-based modules. It provides a +handful of common functionality and a method of getting at the underlying +Test::Builder object. +.SS "Importing" +.IX Subsection "Importing" +Test::Builder::Module is a subclass of Exporter which means your +module is also a subclass of Exporter. \f(CW@EXPORT\fR, \f(CW@EXPORT_OK\fR, etc... +all act normally. +.PP +A few methods are provided to do the \f(CW\*(C`use Your::Module tests => 23\*(C'\fR part +for you. +.PP +\fIimport\fR +.IX Subsection "import" +.PP +Test::Builder::Module provides an \f(CW\*(C`import()\*(C'\fR method which acts in the +same basic way as Test::More's, setting the plan and controlling +exporting of functions and variables. This allows your module to set +the plan independent of Test::More. +.PP +All arguments passed to \f(CW\*(C`import()\*(C'\fR are passed onto +\&\f(CW\*(C`Your::Module\->builder\->plan()\*(C'\fR with the exception of +\&\f(CW\*(C`import =>[qw(things to import)]\*(C'\fR. +.PP +.Vb 1 +\& use Your::Module import => [qw(this that)], tests => 23; +.Ve +.PP +says to import the functions \f(CW\*(C`this()\*(C'\fR and \f(CW\*(C`that()\*(C'\fR as well as set the plan +to be 23 tests. +.PP +\&\f(CW\*(C`import()\*(C'\fR also sets the \f(CW\*(C`exported_to()\*(C'\fR attribute of your builder to be +the caller of the \f(CW\*(C`import()\*(C'\fR function. +.PP +Additional behaviors can be added to your \f(CW\*(C`import()\*(C'\fR method by overriding +\&\f(CW\*(C`import_extra()\*(C'\fR. +.PP +\fIimport_extra\fR +.IX Subsection "import_extra" +.PP +.Vb 1 +\& Your::Module\->import_extra(\e@import_args); +.Ve +.PP +\&\f(CW\*(C`import_extra()\*(C'\fR is called by \f(CW\*(C`import()\*(C'\fR. It provides an opportunity for you +to add behaviors to your module based on its import list. +.PP +Any extra arguments which shouldn't be passed on to \f(CW\*(C`plan()\*(C'\fR should be +stripped off by this method. +.PP +See Test::More for an example of its use. +.PP +\&\fB\s-1NOTE\s0\fR This mechanism is \fI\s-1VERY ALPHA AND LIKELY TO CHANGE\s0\fR as it +feels like a bit of an ugly hack in its current form. +.SS "Builder" +.IX Subsection "Builder" +Test::Builder::Module provides some methods of getting at the underlying +Test::Builder object. +.PP +\fIbuilder\fR +.IX Subsection "builder" +.PP +.Vb 1 +\& my $builder = Your::Class\->builder; +.Ve +.PP +This method returns the Test::Builder object associated with Your::Class. +It is not a constructor so you can call it as often as you like. +.PP +This is the preferred way to get the Test::Builder object. You should +\&\fInot\fR get it via \f(CW\*(C`Test::Builder\->new\*(C'\fR as was previously +recommended. +.PP +The object returned by \f(CW\*(C`builder()\*(C'\fR may change at runtime so you should +call \f(CW\*(C`builder()\*(C'\fR inside each function rather than store it in a global. +.PP +.Vb 2 +\& sub ok { +\& my $builder = Your::Class\->builder; +\& +\& return $builder\->ok(@_); +\& } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test2::Manual::Tooling::TestBuilder describes the improved +options for writing testing modules provided by Test2. diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester%3A%3AColor.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester%3A%3AColor.3 new file mode 100644 index 0000000000000000000000000000000000000000..482191a1fdbc8970b0d6979420e99c627e518d03 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester%3A%3AColor.3 @@ -0,0 +1,169 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder::Tester::Color 3" +.TH Test::Builder::Tester::Color 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder::Tester::Color \- turn on colour in Test::Builder::Tester +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& When running a test script +\& +\& perl \-MTest::Builder::Tester::Color test.t +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Importing this module causes the subroutine color in Test::Builder::Tester +to be called with a true value causing colour highlighting to be turned +on in debug output. +.PP +The sole purpose of this module is to enable colour highlighting +from the command line. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright Mark Fowler 2002. +.PP +This program is free software; you can redistribute it +and/or modify it under the same terms as Perl itself. +.SH "BUGS" +.IX Header "BUGS" +This module will have no effect unless Term::ANSIColor is installed. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::Builder::Tester, Term::ANSIColor diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester.3 new file mode 100644 index 0000000000000000000000000000000000000000..b57a210ae2f4ef74ae604c07d9ef6ab8cc8102ef --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATester.3 @@ -0,0 +1,394 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder::Tester 3" +.TH Test::Builder::Tester 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder::Tester \- test testsuites that have been built with +Test::Builder +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test::Builder::Tester tests => 1; +\& use Test::More; +\& +\& test_out("not ok 1 \- foo"); +\& test_fail(+1); +\& fail("foo"); +\& test_test("fail works"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A module that helps you test testing modules that are built with +Test::Builder. +.PP +The testing system is designed to be used by performing a three step +process for each test you wish to test. This process starts with using +\&\f(CW\*(C`test_out\*(C'\fR and \f(CW\*(C`test_err\*(C'\fR in advance to declare what the testsuite you +are testing will output with Test::Builder to stdout and stderr. +.PP +You then can run the test(s) from your test suite that call +Test::Builder. At this point the output of Test::Builder is +safely captured by Test::Builder::Tester rather than being +interpreted as real test output. +.PP +The final stage is to call \f(CW\*(C`test_test\*(C'\fR that will simply compare what you +predeclared to what Test::Builder actually outputted, and report the +results back with a \*(L"ok\*(R" or \*(L"not ok\*(R" (with debugging) to the normal +output. +.SS "Functions" +.IX Subsection "Functions" +These are the six methods that are exported as default. +.IP "test_out" 4 +.IX Item "test_out" +.PD 0 +.IP "test_err" 4 +.IX Item "test_err" +.PD +Procedures for predeclaring the output that your test suite is +expected to produce until \f(CW\*(C`test_test\*(C'\fR is called. These procedures +automatically assume that each line terminates with \*(L"\en\*(R". So +.Sp +.Vb 1 +\& test_out("ok 1","ok 2"); +.Ve +.Sp +is the same as +.Sp +.Vb 1 +\& test_out("ok 1\enok 2"); +.Ve +.Sp +which is even the same as +.Sp +.Vb 2 +\& test_out("ok 1"); +\& test_out("ok 2"); +.Ve +.Sp +Once \f(CW\*(C`test_out\*(C'\fR or \f(CW\*(C`test_err\*(C'\fR (or \f(CW\*(C`test_fail\*(C'\fR or \f(CW\*(C`test_diag\*(C'\fR) have +been called, all further output from Test::Builder will be +captured by Test::Builder::Tester. This means that you will not +be able perform further tests to the normal output in the normal way +until you call \f(CW\*(C`test_test\*(C'\fR (well, unless you manually meddle with the +output filehandles) +.IP "test_fail" 4 +.IX Item "test_fail" +Because the standard failure message that Test::Builder produces +whenever a test fails will be a common occurrence in your test error +output, and because it has changed between Test::Builder versions, rather +than forcing you to call \f(CW\*(C`test_err\*(C'\fR with the string all the time like +so +.Sp +.Vb 1 +\& test_err("# Failed test ($0 at line ".line_num(+1).")"); +.Ve +.Sp +\&\f(CW\*(C`test_fail\*(C'\fR exists as a convenience function that can be called +instead. It takes one argument, the offset from the current line that +the line that causes the fail is on. +.Sp +.Vb 1 +\& test_fail(+1); +.Ve +.Sp +This means that the example in the synopsis could be rewritten +more simply as: +.Sp +.Vb 4 +\& test_out("not ok 1 \- foo"); +\& test_fail(+1); +\& fail("foo"); +\& test_test("fail works"); +.Ve +.IP "test_diag" 4 +.IX Item "test_diag" +As most of the remaining expected output to the error stream will be +created by Test::Builder's \f(CW\*(C`diag\*(C'\fR function, Test::Builder::Tester +provides a convenience function \f(CW\*(C`test_diag\*(C'\fR that you can use instead of +\&\f(CW\*(C`test_err\*(C'\fR. +.Sp +The \f(CW\*(C`test_diag\*(C'\fR function prepends comment hashes and spacing to the +start and newlines to the end of the expected output passed to it and +adds it to the list of expected error output. So, instead of writing +.Sp +.Vb 1 +\& test_err("# Couldn\*(Aqt open file"); +.Ve +.Sp +you can write +.Sp +.Vb 1 +\& test_diag("Couldn\*(Aqt open file"); +.Ve +.Sp +Remember that Test::Builder's diag function will not add newlines to +the end of output and test_diag will. So to check +.Sp +.Vb 1 +\& Test::Builder\->new\->diag("foo\en","bar\en"); +.Ve +.Sp +You would do +.Sp +.Vb 1 +\& test_diag("foo","bar") +.Ve +.Sp +without the newlines. +.IP "test_test" 4 +.IX Item "test_test" +Actually performs the output check testing the tests, comparing the +data (with \f(CW\*(C`eq\*(C'\fR) that we have captured from Test::Builder against +what was declared with \f(CW\*(C`test_out\*(C'\fR and \f(CW\*(C`test_err\*(C'\fR. +.Sp +This takes name/value pairs that effect how the test is run. +.RS 4 +.IP "title (synonym 'name', 'label')" 4 +.IX Item "title (synonym 'name', 'label')" +The name of the test that will be displayed after the \f(CW\*(C`ok\*(C'\fR or \f(CW\*(C`not +ok\*(C'\fR. +.IP "skip_out" 4 +.IX Item "skip_out" +Setting this to a true value will cause the test to ignore if the +output sent by the test to the output stream does not match that +declared with \f(CW\*(C`test_out\*(C'\fR. +.IP "skip_err" 4 +.IX Item "skip_err" +Setting this to a true value will cause the test to ignore if the +output sent by the test to the error stream does not match that +declared with \f(CW\*(C`test_err\*(C'\fR. +.RE +.RS 4 +.Sp +As a convenience, if only one argument is passed then this argument +is assumed to be the name of the test (as in the above examples.) +.Sp +Once \f(CW\*(C`test_test\*(C'\fR has been run test output will be redirected back to +the original filehandles that Test::Builder was connected to +(probably \s-1STDOUT\s0 and \s-1STDERR,\s0) meaning any further tests you run +will function normally and cause success/errors for Test::Harness. +.RE +.IP "line_num" 4 +.IX Item "line_num" +A utility function that returns the line number that the function was +called on. You can pass it an offset which will be added to the +result. This is very useful for working out the correct text of +diagnostic functions that contain line numbers. +.Sp +Essentially this is the same as the \f(CW\*(C`_\|_LINE_\|_\*(C'\fR macro, but the +\&\f(CW\*(C`line_num(+3)\*(C'\fR idiom is arguably nicer. +.PP +In addition to the six exported functions there exists one +function that can only be accessed with a fully qualified function +call. +.IP "color" 4 +.IX Item "color" +When \f(CW\*(C`test_test\*(C'\fR is called and the output that your tests generate +does not match that which you declared, \f(CW\*(C`test_test\*(C'\fR will print out +debug information showing the two conflicting versions. As this +output itself is debug information it can be confusing which part of +the output is from \f(CW\*(C`test_test\*(C'\fR and which was the original output from +your original tests. Also, it may be hard to spot things like +extraneous whitespace at the end of lines that may cause your test to +fail even though the output looks similar. +.Sp +To assist you \f(CW\*(C`test_test\*(C'\fR can colour the background of the debug +information to disambiguate the different types of output. The debug +output will have its background coloured green and red. The green +part represents the text which is the same between the executed and +actual output, the red shows which part differs. +.Sp +The \f(CW\*(C`color\*(C'\fR function determines if colouring should occur or not. +Passing it a true or false value will enable or disable colouring +respectively, and the function called with no argument will return the +current setting. +.Sp +To enable colouring from the command line, you can use the +Text::Builder::Tester::Color module like so: +.Sp +.Vb 1 +\& perl \-Mlib=Text::Builder::Tester::Color test.t +.Ve +.Sp +Or by including the Test::Builder::Tester::Color module directly in +the \s-1PERL5LIB.\s0 +.SH "BUGS" +.IX Header "BUGS" +Test::Builder::Tester does not handle plans well. It has never done anything +special with plans. This means that plans from outside Test::Builder::Tester +will effect Test::Builder::Tester, worse plans when using Test::Builder::Tester +will effect overall testing. At this point there are no plans to fix this bug +as people have come to depend on it, and Test::Builder::Tester is now +discouraged in favor of \f(CW\*(C`Test2::API::intercept()\*(C'\fR. See + +.PP +Calls \f(CW\*(C`Test::Builder\->no_ending\*(C'\fR turning off the ending tests. +This is needed as otherwise it will trip out because we've run more +tests than we strictly should have and it'll register any failures we +had that we were testing for as real failures. +.PP +The color function doesn't work unless Term::ANSIColor is +compatible with your terminal. Additionally, Win32::Console::ANSI +must be installed on windows platforms for color output. +.PP +Bugs (and requests for new features) can be reported to the author +though GitHub: + +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright Mark Fowler 2002, 2004. +.PP +Some code taken from Test::More and Test::Catch, written by +Michael G Schwern . Hence, those parts +Copyright Micheal G Schwern 2001. Used and distributed with +permission. +.PP +This program is free software; you can redistribute it +and/or modify it under the same terms as Perl itself. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "NOTES" +.IX Header "NOTES" +Thanks to Richard Clamp for letting +me use his testing system to try this module out on. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::Builder, Test::Builder::Tester::Color, Test::More. diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder.3 new file mode 100644 index 0000000000000000000000000000000000000000..25226e0cdd1a8a5fd00ff0a8586735138a231728 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder.3 @@ -0,0 +1,980 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Builder 3" +.TH Test::Builder 3 "2020-12-18" "perl v5.32.1" "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" +Test::Builder \- Backend for building test libraries +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package My::Test::Module; +\& use base \*(AqTest::Builder::Module\*(Aq; +\& +\& my $CLASS = _\|_PACKAGE_\|_; +\& +\& sub ok { +\& my($test, $name) = @_; +\& my $tb = $CLASS\->builder; +\& +\& $tb\->ok($test, $name); +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Test::Simple and Test::More have proven to be popular testing modules, +but they're not always flexible enough. Test::Builder provides a +building block upon which to write your own test libraries \fIwhich can +work together\fR. +.SS "Construction" +.IX Subsection "Construction" +.IP "\fBnew\fR" 4 +.IX Item "new" +.Vb 1 +\& my $Test = Test::Builder\->new; +.Ve +.Sp +Returns a Test::Builder object representing the current state of the +test. +.Sp +Since you only run one test per program \f(CW\*(C`new\*(C'\fR always returns the same +Test::Builder object. No matter how many times you call \f(CW\*(C`new()\*(C'\fR, you're +getting the same object. This is called a singleton. This is done so that +multiple modules share such global information as the test counter and +where test output is going. +.Sp +If you want a completely new Test::Builder object different from the +singleton, use \f(CW\*(C`create\*(C'\fR. +.IP "\fBcreate\fR" 4 +.IX Item "create" +.Vb 1 +\& my $Test = Test::Builder\->create; +.Ve +.Sp +Ok, so there can be more than one Test::Builder object and this is how +you get it. You might use this instead of \f(CW\*(C`new()\*(C'\fR if you're testing +a Test::Builder based module, but otherwise you probably want \f(CW\*(C`new\*(C'\fR. +.Sp +\&\fB\s-1NOTE\s0\fR: the implementation is not complete. \f(CW\*(C`level\*(C'\fR, for example, is still +shared by \fBall\fR Test::Builder objects, even ones created using this method. +Also, the method name may change in the future. +.IP "\fBsubtest\fR" 4 +.IX Item "subtest" +.Vb 1 +\& $builder\->subtest($name, \e&subtests, @args); +.Ve +.Sp +See documentation of \f(CW\*(C`subtest\*(C'\fR in Test::More. +.Sp +\&\f(CW\*(C`subtest\*(C'\fR also, and optionally, accepts arguments which will be passed to the +subtests reference. +.IP "\fBname\fR" 4 +.IX Item "name" +.Vb 1 +\& diag $builder\->name; +.Ve +.Sp +Returns the name of the current builder. Top level builders default to \f(CW$0\fR +(the name of the executable). Child builders are named via the \f(CW\*(C`child\*(C'\fR +method. If no name is supplied, will be named \*(L"Child of \f(CW$parent\fR\->name\*(R". +.IP "\fBreset\fR" 4 +.IX Item "reset" +.Vb 1 +\& $Test\->reset; +.Ve +.Sp +Reinitializes the Test::Builder singleton to its original state. +Mostly useful for tests run in persistent environments where the same +test might be run multiple times in the same process. +.SS "Setting up tests" +.IX Subsection "Setting up tests" +These methods are for setting up tests and declaring how many there +are. You usually only want to call one of these methods. +.IP "\fBplan\fR" 4 +.IX Item "plan" +.Vb 3 +\& $Test\->plan(\*(Aqno_plan\*(Aq); +\& $Test\->plan( skip_all => $reason ); +\& $Test\->plan( tests => $num_tests ); +.Ve +.Sp +A convenient way to set up your tests. Call this and Test::Builder +will print the appropriate headers and take the appropriate actions. +.Sp +If you call \f(CW\*(C`plan()\*(C'\fR, don't call any of the other methods below. +.IP "\fBexpected_tests\fR" 4 +.IX Item "expected_tests" +.Vb 2 +\& my $max = $Test\->expected_tests; +\& $Test\->expected_tests($max); +.Ve +.Sp +Gets/sets the number of tests we expect this test to run and prints out +the appropriate headers. +.IP "\fBno_plan\fR" 4 +.IX Item "no_plan" +.Vb 1 +\& $Test\->no_plan; +.Ve +.Sp +Declares that this test will run an indeterminate number of tests. +.IP "\fBdone_testing\fR" 4 +.IX Item "done_testing" +.Vb 2 +\& $Test\->done_testing(); +\& $Test\->done_testing($num_tests); +.Ve +.Sp +Declares that you are done testing, no more tests will be run after this point. +.Sp +If a plan has not yet been output, it will do so. +.Sp +\&\f(CW$num_tests\fR is the number of tests you planned to run. If a numbered +plan was already declared, and if this contradicts, a failing test +will be run to reflect the planning mistake. If \f(CW\*(C`no_plan\*(C'\fR was declared, +this will override. +.Sp +If \f(CW\*(C`done_testing()\*(C'\fR is called twice, the second call will issue a +failing test. +.Sp +If \f(CW$num_tests\fR is omitted, the number of tests run will be used, like +no_plan. +.Sp +\&\f(CW\*(C`done_testing()\*(C'\fR is, in effect, used when you'd want to use \f(CW\*(C`no_plan\*(C'\fR, but +safer. You'd use it like so: +.Sp +.Vb 2 +\& $Test\->ok($a == $b); +\& $Test\->done_testing(); +.Ve +.Sp +Or to plan a variable number of tests: +.Sp +.Vb 4 +\& for my $test (@tests) { +\& $Test\->ok($test); +\& } +\& $Test\->done_testing(scalar @tests); +.Ve +.IP "\fBhas_plan\fR" 4 +.IX Item "has_plan" +.Vb 1 +\& $plan = $Test\->has_plan +.Ve +.Sp +Find out whether a plan has been defined. \f(CW$plan\fR is either \f(CW\*(C`undef\*(C'\fR (no plan +has been set), \f(CW\*(C`no_plan\*(C'\fR (indeterminate # of tests) or an integer (the number +of expected tests). +.IP "\fBskip_all\fR" 4 +.IX Item "skip_all" +.Vb 2 +\& $Test\->skip_all; +\& $Test\->skip_all($reason); +.Ve +.Sp +Skips all the tests, using the given \f(CW$reason\fR. Exits immediately with 0. +.IP "\fBexported_to\fR" 4 +.IX Item "exported_to" +.Vb 2 +\& my $pack = $Test\->exported_to; +\& $Test\->exported_to($pack); +.Ve +.Sp +Tells Test::Builder what package you exported your functions to. +.Sp +This method isn't terribly useful since modules which share the same +Test::Builder object might get exported to different packages and only +the last one will be honored. +.SS "Running tests" +.IX Subsection "Running tests" +These actually run the tests, analogous to the functions in Test::More. +.PP +They all return true if the test passed, false if the test failed. +.PP +\&\f(CW$name\fR is always optional. +.IP "\fBok\fR" 4 +.IX Item "ok" +.Vb 1 +\& $Test\->ok($test, $name); +.Ve +.Sp +Your basic test. Pass if \f(CW$test\fR is true, fail if \f(CW$test\fR is false. Just +like Test::Simple's \f(CW\*(C`ok()\*(C'\fR. +.IP "\fBis_eq\fR" 4 +.IX Item "is_eq" +.Vb 1 +\& $Test\->is_eq($got, $expected, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`is()\*(C'\fR. Checks if \f(CW\*(C`$got eq $expected\*(C'\fR. This is the +string version. +.Sp +\&\f(CW\*(C`undef\*(C'\fR only ever matches another \f(CW\*(C`undef\*(C'\fR. +.IP "\fBis_num\fR" 4 +.IX Item "is_num" +.Vb 1 +\& $Test\->is_num($got, $expected, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`is()\*(C'\fR. Checks if \f(CW\*(C`$got == $expected\*(C'\fR. This is the +numeric version. +.Sp +\&\f(CW\*(C`undef\*(C'\fR only ever matches another \f(CW\*(C`undef\*(C'\fR. +.IP "\fBisnt_eq\fR" 4 +.IX Item "isnt_eq" +.Vb 1 +\& $Test\->isnt_eq($got, $dont_expect, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`isnt()\*(C'\fR. Checks if \f(CW\*(C`$got ne $dont_expect\*(C'\fR. This is +the string version. +.IP "\fBisnt_num\fR" 4 +.IX Item "isnt_num" +.Vb 1 +\& $Test\->isnt_num($got, $dont_expect, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`isnt()\*(C'\fR. Checks if \f(CW\*(C`$got ne $dont_expect\*(C'\fR. This is +the numeric version. +.IP "\fBlike\fR" 4 +.IX Item "like" +.Vb 2 +\& $Test\->like($thing, qr/$regex/, $name); +\& $Test\->like($thing, \*(Aq/$regex/\*(Aq, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`like()\*(C'\fR. Checks if \f(CW$thing\fR matches the given \f(CW$regex\fR. +.IP "\fBunlike\fR" 4 +.IX Item "unlike" +.Vb 2 +\& $Test\->unlike($thing, qr/$regex/, $name); +\& $Test\->unlike($thing, \*(Aq/$regex/\*(Aq, $name); +.Ve +.Sp +Like Test::More's \f(CW\*(C`unlike()\*(C'\fR. Checks if \f(CW$thing\fR \fBdoes not match\fR the +given \f(CW$regex\fR. +.IP "\fBcmp_ok\fR" 4 +.IX Item "cmp_ok" +.Vb 1 +\& $Test\->cmp_ok($thing, $type, $that, $name); +.Ve +.Sp +Works just like Test::More's \f(CW\*(C`cmp_ok()\*(C'\fR. +.Sp +.Vb 1 +\& $Test\->cmp_ok($big_num, \*(Aq!=\*(Aq, $other_big_num); +.Ve +.SS "Other Testing Methods" +.IX Subsection "Other Testing Methods" +These are methods which are used in the course of writing a test but are not themselves tests. +.IP "\fB\s-1BAIL_OUT\s0\fR" 4 +.IX Item "BAIL_OUT" +.Vb 1 +\& $Test\->BAIL_OUT($reason); +.Ve +.Sp +Indicates to the Test::Harness that things are going so badly all +testing should terminate. This includes running any additional test +scripts. +.Sp +It will exit with 255. +.IP "\fBskip\fR" 4 +.IX Item "skip" +.Vb 2 +\& $Test\->skip; +\& $Test\->skip($why); +.Ve +.Sp +Skips the current test, reporting \f(CW$why\fR. +.IP "\fBtodo_skip\fR" 4 +.IX Item "todo_skip" +.Vb 2 +\& $Test\->todo_skip; +\& $Test\->todo_skip($why); +.Ve +.Sp +Like \f(CW\*(C`skip()\*(C'\fR, only it will declare the test as failing and \s-1TODO.\s0 Similar +to +.Sp +.Vb 1 +\& print "not ok $tnum # TODO $why\en"; +.Ve +.SS "Test building utility methods" +.IX Subsection "Test building utility methods" +These methods are useful when writing your own test methods. +.IP "\fBmaybe_regex\fR" 4 +.IX Item "maybe_regex" +.Vb 2 +\& $Test\->maybe_regex(qr/$regex/); +\& $Test\->maybe_regex(\*(Aq/$regex/\*(Aq); +.Ve +.Sp +This method used to be useful back when Test::Builder worked on Perls +before 5.6 which didn't have qr//. Now its pretty useless. +.Sp +Convenience method for building testing functions that take regular +expressions as arguments. +.Sp +Takes a quoted regular expression produced by \f(CW\*(C`qr//\*(C'\fR, or a string +representing a regular expression. +.Sp +Returns a Perl value which may be used instead of the corresponding +regular expression, or \f(CW\*(C`undef\*(C'\fR if its argument is not recognized. +.Sp +For example, a version of \f(CW\*(C`like()\*(C'\fR, sans the useful diagnostic messages, +could be written as: +.Sp +.Vb 7 +\& sub laconic_like { +\& my ($self, $thing, $regex, $name) = @_; +\& my $usable_regex = $self\->maybe_regex($regex); +\& die "expecting regex, found \*(Aq$regex\*(Aq\en" +\& unless $usable_regex; +\& $self\->ok($thing =~ m/$usable_regex/, $name); +\& } +.Ve +.IP "\fBis_fh\fR" 4 +.IX Item "is_fh" +.Vb 1 +\& my $is_fh = $Test\->is_fh($thing); +.Ve +.Sp +Determines if the given \f(CW$thing\fR can be used as a filehandle. +.SS "Test style" +.IX Subsection "Test style" +.IP "\fBlevel\fR" 4 +.IX Item "level" +.Vb 1 +\& $Test\->level($how_high); +.Ve +.Sp +How far up the call stack should \f(CW$Test\fR look when reporting where the +test failed. +.Sp +Defaults to 1. +.Sp +Setting \f(CW$Test::Builder::Level\fR overrides. This is typically useful +localized: +.Sp +.Vb 2 +\& sub my_ok { +\& my $test = shift; +\& +\& local $Test::Builder::Level = $Test::Builder::Level + 1; +\& $TB\->ok($test); +\& } +.Ve +.Sp +To be polite to other functions wrapping your own you usually want to increment \f(CW$Level\fR rather than set it to a constant. +.IP "\fBuse_numbers\fR" 4 +.IX Item "use_numbers" +.Vb 1 +\& $Test\->use_numbers($on_or_off); +.Ve +.Sp +Whether or not the test should output numbers. That is, this if true: +.Sp +.Vb 3 +\& ok 1 +\& ok 2 +\& ok 3 +.Ve +.Sp +or this if false +.Sp +.Vb 3 +\& ok +\& ok +\& ok +.Ve +.Sp +Most useful when you can't depend on the test output order, such as +when threads or forking is involved. +.Sp +Defaults to on. +.IP "\fBno_diag\fR" 4 +.IX Item "no_diag" +.Vb 1 +\& $Test\->no_diag($no_diag); +.Ve +.Sp +If set true no diagnostics will be printed. This includes calls to +\&\f(CW\*(C`diag()\*(C'\fR. +.IP "\fBno_ending\fR" 4 +.IX Item "no_ending" +.Vb 1 +\& $Test\->no_ending($no_ending); +.Ve +.Sp +Normally, Test::Builder does some extra diagnostics when the test +ends. It also changes the exit code as described below. +.Sp +If this is true, none of that will be done. +.IP "\fBno_header\fR" 4 +.IX Item "no_header" +.Vb 1 +\& $Test\->no_header($no_header); +.Ve +.Sp +If set to true, no \*(L"1..N\*(R" header will be printed. +.SS "Output" +.IX Subsection "Output" +Controlling where the test output goes. +.PP +It's ok for your test to change where \s-1STDOUT\s0 and \s-1STDERR\s0 point to, +Test::Builder's default output settings will not be affected. +.IP "\fBdiag\fR" 4 +.IX Item "diag" +.Vb 1 +\& $Test\->diag(@msgs); +.Ve +.Sp +Prints out the given \f(CW@msgs\fR. Like \f(CW\*(C`print\*(C'\fR, arguments are simply +appended together. +.Sp +Normally, it uses the \f(CW\*(C`failure_output()\*(C'\fR handle, but if this is for a +\&\s-1TODO\s0 test, the \f(CW\*(C`todo_output()\*(C'\fR handle is used. +.Sp +Output will be indented and marked with a # so as not to interfere +with test output. A newline will be put on the end if there isn't one +already. +.Sp +We encourage using this rather than calling print directly. +.Sp +Returns false. Why? Because \f(CW\*(C`diag()\*(C'\fR is often used in conjunction with +a failing test (\f(CW\*(C`ok() || diag()\*(C'\fR) it \*(L"passes through\*(R" the failure. +.Sp +.Vb 1 +\& return ok(...) || diag(...); +.Ve +.IP "\fBnote\fR" 4 +.IX Item "note" +.Vb 1 +\& $Test\->note(@msgs); +.Ve +.Sp +Like \f(CW\*(C`diag()\*(C'\fR, but it prints to the \f(CW\*(C`output()\*(C'\fR handle so it will not +normally be seen by the user except in verbose mode. +.IP "\fBexplain\fR" 4 +.IX Item "explain" +.Vb 1 +\& my @dump = $Test\->explain(@msgs); +.Ve +.Sp +Will dump the contents of any references in a human readable format. +Handy for things like... +.Sp +.Vb 1 +\& is_deeply($have, $want) || diag explain $have; +.Ve +.Sp +or +.Sp +.Vb 1 +\& is_deeply($have, $want) || note explain $have; +.Ve +.IP "\fBoutput\fR" 4 +.IX Item "output" +.PD 0 +.IP "\fBfailure_output\fR" 4 +.IX Item "failure_output" +.IP "\fBtodo_output\fR" 4 +.IX Item "todo_output" +.PD +.Vb 4 +\& my $filehandle = $Test\->output; +\& $Test\->output($filehandle); +\& $Test\->output($filename); +\& $Test\->output(\e$scalar); +.Ve +.Sp +These methods control where Test::Builder will print its output. +They take either an open \f(CW$filehandle\fR, a \f(CW$filename\fR to open and write to +or a \f(CW$scalar\fR reference to append to. It will always return a \f(CW$filehandle\fR. +.Sp +\&\fBoutput\fR is where normal \*(L"ok/not ok\*(R" test output goes. +.Sp +Defaults to \s-1STDOUT.\s0 +.Sp +\&\fBfailure_output\fR is where diagnostic output on test failures and +\&\f(CW\*(C`diag()\*(C'\fR goes. It is normally not read by Test::Harness and instead is +displayed to the user. +.Sp +Defaults to \s-1STDERR.\s0 +.Sp +\&\f(CW\*(C`todo_output\*(C'\fR is used instead of \f(CW\*(C`failure_output()\*(C'\fR for the +diagnostics of a failing \s-1TODO\s0 test. These will not be seen by the +user. +.Sp +Defaults to \s-1STDOUT.\s0 +.IP "reset_outputs" 4 +.IX Item "reset_outputs" +.Vb 1 +\& $tb\->reset_outputs; +.Ve +.Sp +Resets all the output filehandles back to their defaults. +.IP "carp" 4 +.IX Item "carp" +.Vb 1 +\& $tb\->carp(@message); +.Ve +.Sp +Warns with \f(CW@message\fR but the message will appear to come from the +point where the original test function was called (\f(CW\*(C`$tb\->caller\*(C'\fR). +.IP "croak" 4 +.IX Item "croak" +.Vb 1 +\& $tb\->croak(@message); +.Ve +.Sp +Dies with \f(CW@message\fR but the message will appear to come from the +point where the original test function was called (\f(CW\*(C`$tb\->caller\*(C'\fR). +.SS "Test Status and Info" +.IX Subsection "Test Status and Info" +.IP "\fBno_log_results\fR" 4 +.IX Item "no_log_results" +This will turn off result long-term storage. Calling this method will make +\&\f(CW\*(C`details\*(C'\fR and \f(CW\*(C`summary\*(C'\fR useless. You may want to use this if you are running +enough tests to fill up all available memory. +.Sp +.Vb 1 +\& Test::Builder\->new\->no_log_results(); +.Ve +.Sp +There is no way to turn it back on. +.IP "\fBcurrent_test\fR" 4 +.IX Item "current_test" +.Vb 2 +\& my $curr_test = $Test\->current_test; +\& $Test\->current_test($num); +.Ve +.Sp +Gets/sets the current test number we're on. You usually shouldn't +have to set this. +.Sp +If set forward, the details of the missing tests are filled in as 'unknown'. +if set backward, the details of the intervening tests are deleted. You +can erase history if you really want to. +.IP "\fBis_passing\fR" 4 +.IX Item "is_passing" +.Vb 1 +\& my $ok = $builder\->is_passing; +.Ve +.Sp +Indicates if the test suite is currently passing. +.Sp +More formally, it will be false if anything has happened which makes +it impossible for the test suite to pass. True otherwise. +.Sp +For example, if no tests have run \f(CW\*(C`is_passing()\*(C'\fR will be true because +even though a suite with no tests is a failure you can add a passing +test to it and start passing. +.Sp +Don't think about it too much. +.IP "\fBsummary\fR" 4 +.IX Item "summary" +.Vb 1 +\& my @tests = $Test\->summary; +.Ve +.Sp +A simple summary of the tests so far. True for pass, false for fail. +This is a logical pass/fail, so todos are passes. +.Sp +Of course, test #1 is \f(CW$tests\fR[0], etc... +.IP "\fBdetails\fR" 4 +.IX Item "details" +.Vb 1 +\& my @tests = $Test\->details; +.Ve +.Sp +Like \f(CW\*(C`summary()\*(C'\fR, but with a lot more detail. +.Sp +.Vb 7 +\& $tests[$test_num \- 1] = +\& { \*(Aqok\*(Aq => is the test considered a pass? +\& actual_ok => did it literally say \*(Aqok\*(Aq? +\& name => name of the test (if any) +\& type => type of test (if any, see below). +\& reason => reason for the above (if any) +\& }; +.Ve +.Sp +\&'ok' is true if Test::Harness will consider the test to be a pass. +.Sp +\&'actual_ok' is a reflection of whether or not the test literally +printed 'ok' or 'not ok'. This is for examining the result of 'todo' +tests. +.Sp +\&'name' is the name of the test. +.Sp +\&'type' indicates if it was a special test. Normal tests have a type +of ''. Type can be one of the following: +.Sp +.Vb 4 +\& skip see skip() +\& todo see todo() +\& todo_skip see todo_skip() +\& unknown see below +.Ve +.Sp +Sometimes the Test::Builder test counter is incremented without it +printing any test output, for example, when \f(CW\*(C`current_test()\*(C'\fR is changed. +In these cases, Test::Builder doesn't know the result of the test, so +its type is 'unknown'. These details for these tests are filled in. +They are considered ok, but the name and actual_ok is left \f(CW\*(C`undef\*(C'\fR. +.Sp +For example \*(L"not ok 23 \- hole count # \s-1TODO\s0 insufficient donuts\*(R" would +result in this structure: +.Sp +.Vb 7 +\& $tests[22] = # 23 \- 1, since arrays start from 0. +\& { ok => 1, # logically, the test passed since its todo +\& actual_ok => 0, # in absolute terms, it failed +\& name => \*(Aqhole count\*(Aq, +\& type => \*(Aqtodo\*(Aq, +\& reason => \*(Aqinsufficient donuts\*(Aq +\& }; +.Ve +.IP "\fBtodo\fR" 4 +.IX Item "todo" +.Vb 2 +\& my $todo_reason = $Test\->todo; +\& my $todo_reason = $Test\->todo($pack); +.Ve +.Sp +If the current tests are considered \*(L"\s-1TODO\*(R"\s0 it will return the reason, +if any. This reason can come from a \f(CW$TODO\fR variable or the last call +to \f(CW\*(C`todo_start()\*(C'\fR. +.Sp +Since a \s-1TODO\s0 test does not need a reason, this function can return an +empty string even when inside a \s-1TODO\s0 block. Use \f(CW\*(C`$Test\->in_todo\*(C'\fR +to determine if you are currently inside a \s-1TODO\s0 block. +.Sp +\&\f(CW\*(C`todo()\*(C'\fR is about finding the right package to look for \f(CW$TODO\fR in. It's +pretty good at guessing the right package to look at. It first looks for +the caller based on \f(CW\*(C`$Level + 1\*(C'\fR, since \f(CW\*(C`todo()\*(C'\fR is usually called inside +a test function. As a last resort it will use \f(CW\*(C`exported_to()\*(C'\fR. +.Sp +Sometimes there is some confusion about where \f(CW\*(C`todo()\*(C'\fR should be looking +for the \f(CW$TODO\fR variable. If you want to be sure, tell it explicitly +what \f(CW$pack\fR to use. +.IP "\fBfind_TODO\fR" 4 +.IX Item "find_TODO" +.Vb 2 +\& my $todo_reason = $Test\->find_TODO(); +\& my $todo_reason = $Test\->find_TODO($pack); +.Ve +.Sp +Like \f(CW\*(C`todo()\*(C'\fR but only returns the value of \f(CW$TODO\fR ignoring +\&\f(CW\*(C`todo_start()\*(C'\fR. +.Sp +Can also be used to set \f(CW$TODO\fR to a new value while returning the +old value: +.Sp +.Vb 1 +\& my $old_reason = $Test\->find_TODO($pack, 1, $new_reason); +.Ve +.IP "\fBin_todo\fR" 4 +.IX Item "in_todo" +.Vb 1 +\& my $in_todo = $Test\->in_todo; +.Ve +.Sp +Returns true if the test is currently inside a \s-1TODO\s0 block. +.IP "\fBtodo_start\fR" 4 +.IX Item "todo_start" +.Vb 2 +\& $Test\->todo_start(); +\& $Test\->todo_start($message); +.Ve +.Sp +This method allows you declare all subsequent tests as \s-1TODO\s0 tests, up until +the \f(CW\*(C`todo_end\*(C'\fR method has been called. +.Sp +The \f(CW\*(C`TODO:\*(C'\fR and \f(CW$TODO\fR syntax is generally pretty good about figuring out +whether or not we're in a \s-1TODO\s0 test. However, often we find that this is not +possible to determine (such as when we want to use \f(CW$TODO\fR but +the tests are being executed in other packages which can't be inferred +beforehand). +.Sp +Note that you can use this to nest \*(L"todo\*(R" tests +.Sp +.Vb 6 +\& $Test\->todo_start(\*(Aqworking on this\*(Aq); +\& # lots of code +\& $Test\->todo_start(\*(Aqworking on that\*(Aq); +\& # more code +\& $Test\->todo_end; +\& $Test\->todo_end; +.Ve +.Sp +This is generally not recommended, but large testing systems often have weird +internal needs. +.Sp +We've tried to make this also work with the \s-1TODO:\s0 syntax, but it's not +guaranteed and its use is also discouraged: +.Sp +.Vb 9 +\& TODO: { +\& local $TODO = \*(AqWe have work to do!\*(Aq; +\& $Test\->todo_start(\*(Aqworking on this\*(Aq); +\& # lots of code +\& $Test\->todo_start(\*(Aqworking on that\*(Aq); +\& # more code +\& $Test\->todo_end; +\& $Test\->todo_end; +\& } +.Ve +.Sp +Pick one style or another of \*(L"\s-1TODO\*(R"\s0 to be on the safe side. +.ie n .IP """todo_end""" 4 +.el .IP "\f(CWtodo_end\fR" 4 +.IX Item "todo_end" +.Vb 1 +\& $Test\->todo_end; +.Ve +.Sp +Stops running tests as \*(L"\s-1TODO\*(R"\s0 tests. This method is fatal if called without a +preceding \f(CW\*(C`todo_start\*(C'\fR method call. +.IP "\fBcaller\fR" 4 +.IX Item "caller" +.Vb 3 +\& my $package = $Test\->caller; +\& my($pack, $file, $line) = $Test\->caller; +\& my($pack, $file, $line) = $Test\->caller($height); +.Ve +.Sp +Like the normal \f(CW\*(C`caller()\*(C'\fR, except it reports according to your \f(CW\*(C`level()\*(C'\fR. +.Sp +\&\f(CW$height\fR will be added to the \f(CW\*(C`level()\*(C'\fR. +.Sp +If \f(CW\*(C`caller()\*(C'\fR winds up off the top of the stack it report the highest context. +.SH "EXIT CODES" +.IX Header "EXIT CODES" +If all your tests passed, Test::Builder will exit with zero (which is +normal). If anything failed it will exit with how many failed. If +you run less (or more) tests than you planned, the missing (or extras) +will be considered failures. If no tests were ever run Test::Builder +will throw a warning and exit with 255. If the test died, even after +having successfully completed all its tests, it will still be +considered a failure and will exit with 255. +.PP +So the exit codes are... +.PP +.Vb 3 +\& 0 all tests successful +\& 255 test died or all passed but wrong # of tests run +\& any other number how many failed (including missing or extras) +.Ve +.PP +If you fail more than 254 tests, it will be reported as 254. +.SH "THREADS" +.IX Header "THREADS" +In perl 5.8.1 and later, Test::Builder is thread-safe. The test number is +shared by all threads. This means if one thread sets the test number using +\&\f(CW\*(C`current_test()\*(C'\fR they will all be effected. +.PP +While versions earlier than 5.8.1 had threads they contain too many +bugs to support. +.PP +Test::Builder is only thread-aware if threads.pm is loaded \fIbefore\fR +Test::Builder. +.PP +You can directly disable thread support with one of the following: +.PP +.Vb 1 +\& $ENV{T2_NO_IPC} = 1 +.Ve +.PP +or +.PP +.Vb 1 +\& no Test2::IPC; +.Ve +.PP +or +.PP +.Vb 1 +\& Test2::API::test2_ipc_disable() +.Ve +.SH "MEMORY" +.IX Header "MEMORY" +An informative hash, accessible via \f(CW\*(C`details()\*(C'\fR, is stored for each +test you perform. So memory usage will scale linearly with each test +run. Although this is not a problem for most test suites, it can +become an issue if you do large (hundred thousands to million) +combinatorics tests in the same run. +.PP +In such cases, you are advised to either split the test file into smaller +ones, or use a reverse approach, doing \*(L"normal\*(R" (code) compares and +triggering \f(CW\*(C`fail()\*(C'\fR should anything go unexpected. +.PP +Future versions of Test::Builder will have a way to turn history off. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +\&\s-1CPAN\s0 can provide the best examples. Test::Simple, Test::More, +Test::Exception and Test::Differences all use Test::Builder. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.SS "\s-1INTERNALS\s0" +.IX Subsection "INTERNALS" +Test2, Test2::API +.SS "\s-1LEGACY\s0" +.IX Subsection "LEGACY" +Test::Simple, Test::More +.SS "\s-1EXTERNAL\s0" +.IX Subsection "EXTERNAL" +Test::Harness +.SH "AUTHORS" +.IX Header "AUTHORS" +Original code by chromatic, maintained by Michael G Schwern + +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2002\-2008 by chromatic and + Michael G Schwern . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR diff --git a/data/miniconda3/man/man3/Test%3A%3AHarness.3 b/data/miniconda3/man/man3/Test%3A%3AHarness.3 new file mode 100644 index 0000000000000000000000000000000000000000..7a37ba0077e1ee45196b240e46b6c42cb4c55ef9 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3AHarness.3 @@ -0,0 +1,351 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Harness 3" +.TH Test::Harness 3 "2020-12-18" "perl v5.32.1" "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" +Test::Harness \- Run Perl standard test scripts with statistics +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test::Harness; +\& +\& runtests(@test_files); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Although, for historical reasons, the Test::Harness distribution +takes its name from this module it now exists only to provide +TAP::Harness with an interface that is somewhat backwards compatible +with Test::Harness 2.xx. If you're writing new code consider using +TAP::Harness directly instead. +.PP +Emulation is provided for \f(CW\*(C`runtests\*(C'\fR and \f(CW\*(C`execute_tests\*(C'\fR but the +pluggable 'Straps' interface that previous versions of Test::Harness +supported is not reproduced here. Straps is now available as a stand +alone module: Test::Harness::Straps. +.PP +See TAP::Parser, TAP::Harness for the main documentation for this +distribution. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +The following functions are available. +.ie n .SS "runtests( @test_files )" +.el .SS "runtests( \f(CW@test_files\fP )" +.IX Subsection "runtests( @test_files )" +This runs all the given \fI\f(CI@test_files\fI\fR and divines whether they passed +or failed based on their output to \s-1STDOUT\s0 (details above). It prints +out each individual test which failed along with a summary report and +a how long it all took. +.PP +It returns true if everything was ok. Otherwise it will \f(CW\*(C`die()\*(C'\fR with +one of the messages in the \s-1DIAGNOSTICS\s0 section. +.SS "execute_tests( tests => \e@test_files, out => \e*FH )" +.IX Subsection "execute_tests( tests => @test_files, out => *FH )" +Runs all the given \f(CW@test_files\fR (just like \f(CW\*(C`runtests()\*(C'\fR) but +doesn't generate the final report. During testing, progress +information will be written to the currently selected output +filehandle (usually \f(CW\*(C`STDOUT\*(C'\fR), or to the filehandle given by the +\&\f(CW\*(C`out\*(C'\fR parameter. The \fIout\fR is optional. +.PP +Returns a list of two values, \f(CW$total\fR and \f(CW$failed\fR, describing the +results. \f(CW$total\fR is a hash ref summary of all the tests run. Its +keys and values are this: +.PP +.Vb 5 +\& bonus Number of individual todo tests unexpectedly passed +\& max Number of individual tests ran +\& ok Number of individual tests passed +\& sub_skipped Number of individual tests skipped +\& todo Number of individual todo tests +\& +\& files Number of test files ran +\& good Number of test files passed +\& bad Number of test files failed +\& tests Number of test files originally given +\& skipped Number of test files skipped +.Ve +.PP +If \f(CW\*(C`$total\->{bad} == 0\*(C'\fR and \f(CW\*(C`$total\->{max} > 0\*(C'\fR, you've +got a successful test. +.PP +\&\f(CW$failed\fR is a hash ref of all the test scripts that failed. Each key +is the name of a test script, each value is another hash representing +how that script failed. Its keys are these: +.PP +.Vb 6 +\& name Name of the test which failed +\& estat Script\*(Aqs exit value +\& wstat Script\*(Aqs wait status +\& max Number of individual tests +\& failed Number which failed +\& canon List of tests which failed (as string). +.Ve +.PP +\&\f(CW$failed\fR should be empty if everything passed. +.SH "EXPORT" +.IX Header "EXPORT" +\&\f(CW&runtests\fR is exported by \f(CW\*(C`Test::Harness\*(C'\fR by default. +.PP +\&\f(CW&execute_tests\fR, \f(CW$verbose\fR, \f(CW$switches\fR and \f(CW$debug\fR are +exported upon request. +.SH "ENVIRONMENT VARIABLES THAT TAP::HARNESS::COMPATIBLE SETS" +.IX Header "ENVIRONMENT VARIABLES THAT TAP::HARNESS::COMPATIBLE SETS" +\&\f(CW\*(C`Test::Harness\*(C'\fR sets these before executing the individual tests. +.ie n .IP """HARNESS_ACTIVE""" 4 +.el .IP "\f(CWHARNESS_ACTIVE\fR" 4 +.IX Item "HARNESS_ACTIVE" +This is set to a true value. It allows the tests to determine if they +are being executed through the harness or by any other means. +.ie n .IP """HARNESS_VERSION""" 4 +.el .IP "\f(CWHARNESS_VERSION\fR" 4 +.IX Item "HARNESS_VERSION" +This is the version of \f(CW\*(C`Test::Harness\*(C'\fR. +.SH "ENVIRONMENT VARIABLES THAT AFFECT TEST::HARNESS" +.IX Header "ENVIRONMENT VARIABLES THAT AFFECT TEST::HARNESS" +.ie n .IP """HARNESS_PERL_SWITCHES""" 4 +.el .IP "\f(CWHARNESS_PERL_SWITCHES\fR" 4 +.IX Item "HARNESS_PERL_SWITCHES" +Setting this adds perl command line switches to each test file run. +.Sp +For example, \f(CW\*(C`HARNESS_PERL_SWITCHES=\-T\*(C'\fR will turn on taint mode. +\&\f(CW\*(C`HARNESS_PERL_SWITCHES=\-MDevel::Cover\*(C'\fR will run \f(CW\*(C`Devel::Cover\*(C'\fR for +each test. +.Sp +\&\f(CW\*(C`\-w\*(C'\fR is always set. You can turn this off in the test with \f(CW\*(C`BEGIN { +$^W = 0 }\*(C'\fR. +.ie n .IP """HARNESS_TIMER""" 4 +.el .IP "\f(CWHARNESS_TIMER\fR" 4 +.IX Item "HARNESS_TIMER" +Setting this to true will make the harness display the number of +milliseconds each test took. You can also use \fIprove\fR's \f(CW\*(C`\-\-timer\*(C'\fR +switch. +.ie n .IP """HARNESS_VERBOSE""" 4 +.el .IP "\f(CWHARNESS_VERBOSE\fR" 4 +.IX Item "HARNESS_VERBOSE" +If true, \f(CW\*(C`Test::Harness\*(C'\fR will output the verbose results of running +its tests. Setting \f(CW$Test::Harness::verbose\fR will override this, +or you can use the \f(CW\*(C`\-v\*(C'\fR switch in the \fIprove\fR utility. +.ie n .IP """HARNESS_OPTIONS""" 4 +.el .IP "\f(CWHARNESS_OPTIONS\fR" 4 +.IX Item "HARNESS_OPTIONS" +Provide additional options to the harness. Currently supported options are: +.RS 4 +.ie n .IP """j""" 4 +.el .IP "\f(CWj\fR" 4 +.IX Item "j" +Run (default 9) parallel jobs. +.ie n .IP """c""" 4 +.el .IP "\f(CWc\fR" 4 +.IX Item "c" +Try to color output. See \*(L"new\*(R" in TAP::Formatter::Base. +.ie n .IP """a""" 4 +.el .IP "\f(CWa\fR" 4 +.IX Item "a" +Will use TAP::Harness::Archive as the harness class, and save the \s-1TAP\s0 to +\&\f(CW\*(C`file.tgz\*(C'\fR +.ie n .IP """fPackage\-With\-Dashes""" 4 +.el .IP "\f(CWfPackage\-With\-Dashes\fR" 4 +.IX Item "fPackage-With-Dashes" +Set the formatter_class of the harness being run. Since the \f(CW\*(C`HARNESS_OPTIONS\*(C'\fR +is seperated by \f(CW\*(C`:\*(C'\fR, we use \f(CW\*(C`\-\*(C'\fR instead. +.RE +.RS 4 +.Sp +Multiple options may be separated by colons: +.Sp +.Vb 1 +\& HARNESS_OPTIONS=j9:c make test +.Ve +.RE +.ie n .IP """HARNESS_SUBCLASS""" 4 +.el .IP "\f(CWHARNESS_SUBCLASS\fR" 4 +.IX Item "HARNESS_SUBCLASS" +Specifies a TAP::Harness subclass to be used in place of TAP::Harness. +.ie n .IP """HARNESS_SUMMARY_COLOR_SUCCESS""" 4 +.el .IP "\f(CWHARNESS_SUMMARY_COLOR_SUCCESS\fR" 4 +.IX Item "HARNESS_SUMMARY_COLOR_SUCCESS" +Determines the Term::ANSIColor for the summary in case it is successful. +This color defaults to \f(CW\*(Aqgreen\*(Aq\fR. +.ie n .IP """HARNESS_SUMMARY_COLOR_FAIL""" 4 +.el .IP "\f(CWHARNESS_SUMMARY_COLOR_FAIL\fR" 4 +.IX Item "HARNESS_SUMMARY_COLOR_FAIL" +Determines the Term::ANSIColor for the failure in case it is successful. +This color defaults to \f(CW\*(Aqred\*(Aq\fR. +.SH "Taint Mode" +.IX Header "Taint Mode" +Normally when a Perl program is run in taint mode the contents of the +\&\f(CW\*(C`PERL5LIB\*(C'\fR environment variable do not appear in \f(CW@INC\fR. +.PP +Because \f(CW\*(C`PERL5LIB\*(C'\fR is often used during testing to add build +directories to \f(CW@INC\fR \f(CW\*(C`Test::Harness\*(C'\fR passes the names of any +directories found in \f(CW\*(C`PERL5LIB\*(C'\fR as \-I switches. The net effect of this +is that \f(CW\*(C`PERL5LIB\*(C'\fR is honoured even in taint mode. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Harness +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-test\-harness at rt.cpan.org\*(C'\fR, or through the web interface at +. I will be +notified, and then you'll automatically be notified of progress on your bug +as I make changes. +.SH "AUTHORS" +.IX Header "AUTHORS" +Andy Armstrong \f(CW\*(C`\*(C'\fR +.PP +Test::Harness 2.64 (maintained by Andy Lester and on which this +module is based) has this attribution: +.PP +.Vb 5 +\& Either Tim Bunce or Andreas Koenig, we don\*(Aqt know. What we know for +\& sure is, that it was inspired by Larry Wall\*(Aqs F script that came +\& with perl distributions for ages. Numerous anonymous contributors +\& exist. Andreas Koenig held the torch for many years, and then +\& Michael G Schwern. +.Ve +.SH "LICENCE AND COPYRIGHT" +.IX Header "LICENCE AND COPYRIGHT" +Copyright (c) 2007\-2011, Andy Armstrong \f(CW\*(C`\*(C'\fR. All rights reserved. +.PP +This module is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. See perlartistic. diff --git a/data/miniconda3/man/man3/Test%3A%3AMore.3 b/data/miniconda3/man/man3/Test%3A%3AMore.3 new file mode 100644 index 0000000000000000000000000000000000000000..7ca2010d795f49184bb81694e60e3b42353865d9 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3AMore.3 @@ -0,0 +1,1381 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::More 3" +.TH Test::More 3 "2020-12-18" "perl v5.32.1" "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" +Test::More \- yet another framework for writing test scripts +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use Test::More tests => 23; +\& # or +\& use Test::More skip_all => $reason; +\& # or +\& use Test::More; # see done_testing() +\& +\& require_ok( \*(AqSome::Module\*(Aq ); +\& +\& # Various ways to say "ok" +\& ok($got eq $expected, $test_name); +\& +\& is ($got, $expected, $test_name); +\& isnt($got, $expected, $test_name); +\& +\& # Rather than print STDERR "# here\*(Aqs what went wrong\en" +\& diag("here\*(Aqs what went wrong"); +\& +\& like ($got, qr/expected/, $test_name); +\& unlike($got, qr/expected/, $test_name); +\& +\& cmp_ok($got, \*(Aq==\*(Aq, $expected, $test_name); +\& +\& is_deeply($got_complex_structure, $expected_complex_structure, $test_name); +\& +\& SKIP: { +\& skip $why, $how_many unless $have_some_feature; +\& +\& ok( foo(), $test_name ); +\& is( foo(42), 23, $test_name ); +\& }; +\& +\& TODO: { +\& local $TODO = $why; +\& +\& ok( foo(), $test_name ); +\& is( foo(42), 23, $test_name ); +\& }; +\& +\& can_ok($module, @methods); +\& isa_ok($object, $class); +\& +\& pass($test_name); +\& fail($test_name); +\& +\& BAIL_OUT($why); +\& +\& # UNIMPLEMENTED!!! +\& my @status = Test::More::status; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1STOP\s0!\fR If you're just getting started writing tests, have a look at +Test2::Suite first. +.PP +This is a drop in replacement for Test::Simple which you can switch to once you +get the hang of basic testing. +.PP +The purpose of this module is to provide a wide range of testing +utilities. Various ways to say \*(L"ok\*(R" with better diagnostics, +facilities to skip tests, test future features and compare complicated +data structures. While you can do almost anything with a simple +\&\f(CW\*(C`ok()\*(C'\fR function, it doesn't provide good diagnostic output. +.SS "I love it when a plan comes together" +.IX Subsection "I love it when a plan comes together" +Before anything else, you need a testing plan. This basically declares +how many tests your script is going to run to protect against premature +failure. +.PP +The preferred way to do this is to declare a plan when you \f(CW\*(C`use Test::More\*(C'\fR. +.PP +.Vb 1 +\& use Test::More tests => 23; +.Ve +.PP +There are cases when you will not know beforehand how many tests your +script is going to run. In this case, you can declare your tests at +the end. +.PP +.Vb 1 +\& use Test::More; +\& +\& ... run your tests ... +\& +\& done_testing( $number_of_tests_run ); +.Ve +.PP +\&\fB\s-1NOTE\s0\fR \f(CW\*(C`done_testing()\*(C'\fR should never be called in an \f(CW\*(C`END { ... }\*(C'\fR block. +.PP +Sometimes you really don't know how many tests were run, or it's too +difficult to calculate. In which case you can leave off +\&\f(CW$number_of_tests_run\fR. +.PP +In some cases, you'll want to completely skip an entire testing script. +.PP +.Vb 1 +\& use Test::More skip_all => $skip_reason; +.Ve +.PP +Your script will declare a skip with the reason why you skipped and +exit immediately with a zero (success). See Test::Harness for +details. +.PP +If you want to control what functions Test::More will export, you +have to use the 'import' option. For example, to import everything +but 'fail', you'd do: +.PP +.Vb 1 +\& use Test::More tests => 23, import => [\*(Aq!fail\*(Aq]; +.Ve +.PP +Alternatively, you can use the \f(CW\*(C`plan()\*(C'\fR function. Useful for when you +have to calculate the number of tests. +.PP +.Vb 2 +\& use Test::More; +\& plan tests => keys %Stuff * 3; +.Ve +.PP +or for deciding between running the tests at all: +.PP +.Vb 7 +\& use Test::More; +\& if( $^O eq \*(AqMacOS\*(Aq ) { +\& plan skip_all => \*(AqTest irrelevant on MacOS\*(Aq; +\& } +\& else { +\& plan tests => 42; +\& } +.Ve +.IP "\fBdone_testing\fR" 4 +.IX Item "done_testing" +.Vb 2 +\& done_testing(); +\& done_testing($number_of_tests); +.Ve +.Sp +If you don't know how many tests you're going to run, you can issue +the plan when you're done running tests. +.Sp +\&\f(CW$number_of_tests\fR is the same as \f(CW\*(C`plan()\*(C'\fR, it's the number of tests you +expected to run. You can omit this, in which case the number of tests +you ran doesn't matter, just the fact that your tests ran to +conclusion. +.Sp +This is safer than and replaces the \*(L"no_plan\*(R" plan. +.Sp +\&\fBNote:\fR You must never put \f(CW\*(C`done_testing()\*(C'\fR inside an \f(CW\*(C`END { ... }\*(C'\fR block. +The plan is there to ensure your test does not exit before testing has +completed. If you use an \s-1END\s0 block you completely bypass this protection. +.SS "Test names" +.IX Subsection "Test names" +By convention, each test is assigned a number in order. This is +largely done automatically for you. However, it's often very useful to +assign a name to each test. Which would you rather see: +.PP +.Vb 3 +\& ok 4 +\& not ok 5 +\& ok 6 +.Ve +.PP +or +.PP +.Vb 3 +\& ok 4 \- basic multi\-variable +\& not ok 5 \- simple exponential +\& ok 6 \- force == mass * acceleration +.Ve +.PP +The later gives you some idea of what failed. It also makes it easier +to find the test in your script, simply search for \*(L"simple +exponential\*(R". +.PP +All test functions take a name argument. It's optional, but highly +suggested that you use it. +.SS "I'm ok, you're not ok." +.IX Subsection "I'm ok, you're not ok." +The basic purpose of this module is to print out either \*(L"ok #\*(R" or \*(L"not +ok #\*(R" depending on if a given test succeeded or failed. Everything +else is just gravy. +.PP +All of the following print \*(L"ok\*(R" or \*(L"not ok\*(R" depending on if the test +succeeded or failed. They all also return true or false, +respectively. +.IP "\fBok\fR" 4 +.IX Item "ok" +.Vb 1 +\& ok($got eq $expected, $test_name); +.Ve +.Sp +This simply evaluates any expression (\f(CW\*(C`$got eq $expected\*(C'\fR is just a +simple example) and uses that to determine if the test succeeded or +failed. A true expression passes, a false one fails. Very simple. +.Sp +For example: +.Sp +.Vb 4 +\& ok( $exp{9} == 81, \*(Aqsimple exponential\*(Aq ); +\& ok( Film\->can(\*(Aqdb_Main\*(Aq), \*(Aqset_db()\*(Aq ); +\& ok( $p\->tests == 4, \*(Aqsaw tests\*(Aq ); +\& ok( !grep(!defined $_, @items), \*(Aqall items defined\*(Aq ); +.Ve +.Sp +(Mnemonic: \*(L"This is ok.\*(R") +.Sp +\&\f(CW$test_name\fR is a very short description of the test that will be printed +out. It makes it very easy to find a test in your script when it fails +and gives others an idea of your intentions. \f(CW$test_name\fR is optional, +but we \fBvery\fR strongly encourage its use. +.Sp +Should an \f(CW\*(C`ok()\*(C'\fR fail, it will produce some diagnostics: +.Sp +.Vb 3 +\& not ok 18 \- sufficient mucus +\& # Failed test \*(Aqsufficient mucus\*(Aq +\& # in foo.t at line 42. +.Ve +.Sp +This is the same as Test::Simple's \f(CW\*(C`ok()\*(C'\fR routine. +.IP "\fBis\fR" 4 +.IX Item "is" +.PD 0 +.IP "\fBisnt\fR" 4 +.IX Item "isnt" +.PD +.Vb 2 +\& is ( $got, $expected, $test_name ); +\& isnt( $got, $expected, $test_name ); +.Ve +.Sp +Similar to \f(CW\*(C`ok()\*(C'\fR, \f(CW\*(C`is()\*(C'\fR and \f(CW\*(C`isnt()\*(C'\fR compare their two arguments +with \f(CW\*(C`eq\*(C'\fR and \f(CW\*(C`ne\*(C'\fR respectively and use the result of that to +determine if the test succeeded or failed. So these: +.Sp +.Vb 2 +\& # Is the ultimate answer 42? +\& is( ultimate_answer(), 42, "Meaning of Life" ); +\& +\& # $foo isn\*(Aqt empty +\& isnt( $foo, \*(Aq\*(Aq, "Got some foo" ); +.Ve +.Sp +are similar to these: +.Sp +.Vb 2 +\& ok( ultimate_answer() eq 42, "Meaning of Life" ); +\& ok( $foo ne \*(Aq\*(Aq, "Got some foo" ); +.Ve +.Sp +\&\f(CW\*(C`undef\*(C'\fR will only ever match \f(CW\*(C`undef\*(C'\fR. So you can test a value +against \f(CW\*(C`undef\*(C'\fR like this: +.Sp +.Vb 1 +\& is($not_defined, undef, "undefined as expected"); +.Ve +.Sp +(Mnemonic: \*(L"This is that.\*(R" \*(L"This isn't that.\*(R") +.Sp +So why use these? They produce better diagnostics on failure. \f(CW\*(C`ok()\*(C'\fR +cannot know what you are testing for (beyond the name), but \f(CW\*(C`is()\*(C'\fR and +\&\f(CW\*(C`isnt()\*(C'\fR know what the test was and why it failed. For example this +test: +.Sp +.Vb 2 +\& my $foo = \*(Aqwaffle\*(Aq; my $bar = \*(Aqyarblokos\*(Aq; +\& is( $foo, $bar, \*(AqIs foo the same as bar?\*(Aq ); +.Ve +.Sp +Will produce something like this: +.Sp +.Vb 5 +\& not ok 17 \- Is foo the same as bar? +\& # Failed test \*(AqIs foo the same as bar?\*(Aq +\& # in foo.t at line 139. +\& # got: \*(Aqwaffle\*(Aq +\& # expected: \*(Aqyarblokos\*(Aq +.Ve +.Sp +So you can figure out what went wrong without rerunning the test. +.Sp +You are encouraged to use \f(CW\*(C`is()\*(C'\fR and \f(CW\*(C`isnt()\*(C'\fR over \f(CW\*(C`ok()\*(C'\fR where possible, +however do not be tempted to use them to find out if something is +true or false! +.Sp +.Vb 2 +\& # XXX BAD! +\& is( exists $brooklyn{tree}, 1, \*(AqA tree grows in Brooklyn\*(Aq ); +.Ve +.Sp +This does not check if \f(CW\*(C`exists $brooklyn{tree}\*(C'\fR is true, it checks if +it returns 1. Very different. Similar caveats exist for false and 0. +In these cases, use \f(CW\*(C`ok()\*(C'\fR. +.Sp +.Vb 1 +\& ok( exists $brooklyn{tree}, \*(AqA tree grows in Brooklyn\*(Aq ); +.Ve +.Sp +A simple call to \f(CW\*(C`isnt()\*(C'\fR usually does not provide a strong test but there +are cases when you cannot say much more about a value than that it is +different from some other value: +.Sp +.Vb 1 +\& new_ok $obj, "Foo"; +\& +\& my $clone = $obj\->clone; +\& isa_ok $obj, "Foo", "Foo\->clone"; +\& +\& isnt $obj, $clone, "clone() produces a different object"; +.Ve +.Sp +For those grammatical pedants out there, there's an \f(CW\*(C`isn\*(Aqt()\*(C'\fR +function which is an alias of \f(CW\*(C`isnt()\*(C'\fR. +.IP "\fBlike\fR" 4 +.IX Item "like" +.Vb 1 +\& like( $got, qr/expected/, $test_name ); +.Ve +.Sp +Similar to \f(CW\*(C`ok()\*(C'\fR, \f(CW\*(C`like()\*(C'\fR matches \f(CW$got\fR against the regex \f(CW\*(C`qr/expected/\*(C'\fR. +.Sp +So this: +.Sp +.Vb 1 +\& like($got, qr/expected/, \*(Aqthis is like that\*(Aq); +.Ve +.Sp +is similar to: +.Sp +.Vb 1 +\& ok( $got =~ m/expected/, \*(Aqthis is like that\*(Aq); +.Ve +.Sp +(Mnemonic \*(L"This is like that\*(R".) +.Sp +The second argument is a regular expression. It may be given as a +regex reference (i.e. \f(CW\*(C`qr//\*(C'\fR) or (for better compatibility with older +perls) as a string that looks like a regex (alternative delimiters are +currently not supported): +.Sp +.Vb 1 +\& like( $got, \*(Aq/expected/\*(Aq, \*(Aqthis is like that\*(Aq ); +.Ve +.Sp +Regex options may be placed on the end (\f(CW\*(Aq/expected/i\*(Aq\fR). +.Sp +Its advantages over \f(CW\*(C`ok()\*(C'\fR are similar to that of \f(CW\*(C`is()\*(C'\fR and \f(CW\*(C`isnt()\*(C'\fR. Better +diagnostics on failure. +.IP "\fBunlike\fR" 4 +.IX Item "unlike" +.Vb 1 +\& unlike( $got, qr/expected/, $test_name ); +.Ve +.Sp +Works exactly as \f(CW\*(C`like()\*(C'\fR, only it checks if \f(CW$got\fR \fBdoes not\fR match the +given pattern. +.IP "\fBcmp_ok\fR" 4 +.IX Item "cmp_ok" +.Vb 1 +\& cmp_ok( $got, $op, $expected, $test_name ); +.Ve +.Sp +Halfway between \f(CW\*(C`ok()\*(C'\fR and \f(CW\*(C`is()\*(C'\fR lies \f(CW\*(C`cmp_ok()\*(C'\fR. This allows you +to compare two arguments using any binary perl operator. The test +passes if the comparison is true and fails otherwise. +.Sp +.Vb 2 +\& # ok( $got eq $expected ); +\& cmp_ok( $got, \*(Aqeq\*(Aq, $expected, \*(Aqthis eq that\*(Aq ); +\& +\& # ok( $got == $expected ); +\& cmp_ok( $got, \*(Aq==\*(Aq, $expected, \*(Aqthis == that\*(Aq ); +\& +\& # ok( $got && $expected ); +\& cmp_ok( $got, \*(Aq&&\*(Aq, $expected, \*(Aqthis && that\*(Aq ); +\& ...etc... +.Ve +.Sp +Its advantage over \f(CW\*(C`ok()\*(C'\fR is when the test fails you'll know what \f(CW$got\fR +and \f(CW$expected\fR were: +.Sp +.Vb 5 +\& not ok 1 +\& # Failed test in foo.t at line 12. +\& # \*(Aq23\*(Aq +\& # && +\& # undef +.Ve +.Sp +It's also useful in those cases where you are comparing numbers and +\&\f(CW\*(C`is()\*(C'\fR's use of \f(CW\*(C`eq\*(C'\fR will interfere: +.Sp +.Vb 1 +\& cmp_ok( $big_hairy_number, \*(Aq==\*(Aq, $another_big_hairy_number ); +.Ve +.Sp +It's especially useful when comparing greater-than or smaller-than +relation between values: +.Sp +.Vb 1 +\& cmp_ok( $some_value, \*(Aq<=\*(Aq, $upper_limit ); +.Ve +.IP "\fBcan_ok\fR" 4 +.IX Item "can_ok" +.Vb 2 +\& can_ok($module, @methods); +\& can_ok($object, @methods); +.Ve +.Sp +Checks to make sure the \f(CW$module\fR or \f(CW$object\fR can do these \f(CW@methods\fR +(works with functions, too). +.Sp +.Vb 1 +\& can_ok(\*(AqFoo\*(Aq, qw(this that whatever)); +.Ve +.Sp +is almost exactly like saying: +.Sp +.Vb 4 +\& ok( Foo\->can(\*(Aqthis\*(Aq) && +\& Foo\->can(\*(Aqthat\*(Aq) && +\& Foo\->can(\*(Aqwhatever\*(Aq) +\& ); +.Ve +.Sp +only without all the typing and with a better interface. Handy for +quickly testing an interface. +.Sp +No matter how many \f(CW@methods\fR you check, a single \f(CW\*(C`can_ok()\*(C'\fR call counts +as one test. If you desire otherwise, use: +.Sp +.Vb 3 +\& foreach my $meth (@methods) { +\& can_ok(\*(AqFoo\*(Aq, $meth); +\& } +.Ve +.IP "\fBisa_ok\fR" 4 +.IX Item "isa_ok" +.Vb 3 +\& isa_ok($object, $class, $object_name); +\& isa_ok($subclass, $class, $object_name); +\& isa_ok($ref, $type, $ref_name); +.Ve +.Sp +Checks to see if the given \f(CW\*(C`$object\->isa($class)\*(C'\fR. Also checks to make +sure the object was defined in the first place. Handy for this sort +of thing: +.Sp +.Vb 2 +\& my $obj = Some::Module\->new; +\& isa_ok( $obj, \*(AqSome::Module\*(Aq ); +.Ve +.Sp +where you'd otherwise have to write +.Sp +.Vb 2 +\& my $obj = Some::Module\->new; +\& ok( defined $obj && $obj\->isa(\*(AqSome::Module\*(Aq) ); +.Ve +.Sp +to safeguard against your test script blowing up. +.Sp +You can also test a class, to make sure that it has the right ancestor: +.Sp +.Vb 1 +\& isa_ok( \*(AqVole\*(Aq, \*(AqRodent\*(Aq ); +.Ve +.Sp +It works on references, too: +.Sp +.Vb 1 +\& isa_ok( $array_ref, \*(AqARRAY\*(Aq ); +.Ve +.Sp +The diagnostics of this test normally just refer to 'the object'. If +you'd like them to be more specific, you can supply an \f(CW$object_name\fR +(for example 'Test customer'). +.IP "\fBnew_ok\fR" 4 +.IX Item "new_ok" +.Vb 3 +\& my $obj = new_ok( $class ); +\& my $obj = new_ok( $class => \e@args ); +\& my $obj = new_ok( $class => \e@args, $object_name ); +.Ve +.Sp +A convenience function which combines creating an object and calling +\&\f(CW\*(C`isa_ok()\*(C'\fR on that object. +.Sp +It is basically equivalent to: +.Sp +.Vb 2 +\& my $obj = $class\->new(@args); +\& isa_ok $obj, $class, $object_name; +.Ve +.Sp +If \f(CW@args\fR is not given, an empty list will be used. +.Sp +This function only works on \f(CW\*(C`new()\*(C'\fR and it assumes \f(CW\*(C`new()\*(C'\fR will return +just a single object which isa \f(CW$class\fR. +.IP "\fBsubtest\fR" 4 +.IX Item "subtest" +.Vb 1 +\& subtest $name => \e&code, @args; +.Ve +.Sp +\&\f(CW\*(C`subtest()\*(C'\fR runs the &code as its own little test with its own plan and +its own result. The main test counts this as a single test using the +result of the whole subtest to determine if its ok or not ok. +.Sp +For example... +.Sp +.Vb 1 +\& use Test::More tests => 3; +\& +\& pass("First test"); +\& +\& subtest \*(AqAn example subtest\*(Aq => sub { +\& plan tests => 2; +\& +\& pass("This is a subtest"); +\& pass("So is this"); +\& }; +\& +\& pass("Third test"); +.Ve +.Sp +This would produce. +.Sp +.Vb 8 +\& 1..3 +\& ok 1 \- First test +\& # Subtest: An example subtest +\& 1..2 +\& ok 1 \- This is a subtest +\& ok 2 \- So is this +\& ok 2 \- An example subtest +\& ok 3 \- Third test +.Ve +.Sp +A subtest may call \f(CW\*(C`skip_all\*(C'\fR. No tests will be run, but the subtest is +considered a skip. +.Sp +.Vb 4 +\& subtest \*(Aqskippy\*(Aq => sub { +\& plan skip_all => \*(Aqcuz I said so\*(Aq; +\& pass(\*(Aqthis test will never be run\*(Aq); +\& }; +.Ve +.Sp +Returns true if the subtest passed, false otherwise. +.Sp +Due to how subtests work, you may omit a plan if you desire. This adds an +implicit \f(CW\*(C`done_testing()\*(C'\fR to the end of your subtest. The following two +subtests are equivalent: +.Sp +.Vb 5 +\& subtest \*(Aqsubtest with implicit done_testing()\*(Aq, sub { +\& ok 1, \*(Aqsubtests with an implicit done testing should work\*(Aq; +\& ok 1, \*(Aq... and support more than one test\*(Aq; +\& ok 1, \*(Aq... no matter how many tests are run\*(Aq; +\& }; +\& +\& subtest \*(Aqsubtest with explicit done_testing()\*(Aq, sub { +\& ok 1, \*(Aqsubtests with an explicit done testing should work\*(Aq; +\& ok 1, \*(Aq... and support more than one test\*(Aq; +\& ok 1, \*(Aq... no matter how many tests are run\*(Aq; +\& done_testing(); +\& }; +.Ve +.Sp +Extra arguments given to \f(CW\*(C`subtest\*(C'\fR are passed to the callback. For example: +.Sp +.Vb 4 +\& sub my_subtest { +\& my $range = shift; +\& ... +\& } +\& +\& for my $range (1, 10, 100, 1000) { +\& subtest "testing range $range", \e&my_subtest, $range; +\& } +.Ve +.IP "\fBpass\fR" 4 +.IX Item "pass" +.PD 0 +.IP "\fBfail\fR" 4 +.IX Item "fail" +.PD +.Vb 2 +\& pass($test_name); +\& fail($test_name); +.Ve +.Sp +Sometimes you just want to say that the tests have passed. Usually +the case is you've got some complicated condition that is difficult to +wedge into an \f(CW\*(C`ok()\*(C'\fR. In this case, you can simply use \f(CW\*(C`pass()\*(C'\fR (to +declare the test ok) or fail (for not ok). They are synonyms for +\&\f(CWok(1)\fR and \f(CWok(0)\fR. +.Sp +Use these very, very, very sparingly. +.SS "Module tests" +.IX Subsection "Module tests" +Sometimes you want to test if a module, or a list of modules, can +successfully load. For example, you'll often want a first test which +simply loads all the modules in the distribution to make sure they +work before going on to do more complicated testing. +.PP +For such purposes we have \f(CW\*(C`use_ok\*(C'\fR and \f(CW\*(C`require_ok\*(C'\fR. +.IP "\fBrequire_ok\fR" 4 +.IX Item "require_ok" +.Vb 2 +\& require_ok($module); +\& require_ok($file); +.Ve +.Sp +Tries to \f(CW\*(C`require\*(C'\fR the given \f(CW$module\fR or \f(CW$file\fR. If it loads +successfully, the test will pass. Otherwise it fails and displays the +load error. +.Sp +\&\f(CW\*(C`require_ok\*(C'\fR will guess whether the input is a module name or a +filename. +.Sp +No exception will be thrown if the load fails. +.Sp +.Vb 2 +\& # require Some::Module +\& require_ok "Some::Module"; +\& +\& # require "Some/File.pl"; +\& require_ok "Some/File.pl"; +\& +\& # stop testing if any of your modules will not load +\& for my $module (@module) { +\& require_ok $module or BAIL_OUT "Can\*(Aqt load $module"; +\& } +.Ve +.IP "\fBuse_ok\fR" 4 +.IX Item "use_ok" +.Vb 2 +\& BEGIN { use_ok($module); } +\& BEGIN { use_ok($module, @imports); } +.Ve +.Sp +Like \f(CW\*(C`require_ok\*(C'\fR, but it will \f(CW\*(C`use\*(C'\fR the \f(CW$module\fR in question and +only loads modules, not files. +.Sp +If you just want to test a module can be loaded, use \f(CW\*(C`require_ok\*(C'\fR. +.Sp +If you just want to load a module in a test, we recommend simply using +\&\f(CW\*(C`use\*(C'\fR directly. It will cause the test to stop. +.Sp +It's recommended that you run \f(CW\*(C`use_ok()\*(C'\fR inside a \s-1BEGIN\s0 block so its +functions are exported at compile-time and prototypes are properly +honored. +.Sp +If \f(CW@imports\fR are given, they are passed through to the use. So this: +.Sp +.Vb 1 +\& BEGIN { use_ok(\*(AqSome::Module\*(Aq, qw(foo bar)) } +.Ve +.Sp +is like doing this: +.Sp +.Vb 1 +\& use Some::Module qw(foo bar); +.Ve +.Sp +Version numbers can be checked like so: +.Sp +.Vb 2 +\& # Just like "use Some::Module 1.02" +\& BEGIN { use_ok(\*(AqSome::Module\*(Aq, 1.02) } +.Ve +.Sp +Don't try to do this: +.Sp +.Vb 2 +\& BEGIN { +\& use_ok(\*(AqSome::Module\*(Aq); +\& +\& ...some code that depends on the use... +\& ...happening at compile time... +\& } +.Ve +.Sp +because the notion of \*(L"compile-time\*(R" is relative. Instead, you want: +.Sp +.Vb 2 +\& BEGIN { use_ok(\*(AqSome::Module\*(Aq) } +\& BEGIN { ...some code that depends on the use... } +.Ve +.Sp +If you want the equivalent of \f(CW\*(C`use Foo ()\*(C'\fR, use a module but not +import anything, use \f(CW\*(C`require_ok\*(C'\fR. +.Sp +.Vb 1 +\& BEGIN { require_ok "Foo" } +.Ve +.SS "Complex data structures" +.IX Subsection "Complex data structures" +Not everything is a simple eq check or regex. There are times you +need to see if two data structures are equivalent. For these +instances Test::More provides a handful of useful functions. +.PP +\&\fB\s-1NOTE\s0\fR I'm not quite sure what will happen with filehandles. +.IP "\fBis_deeply\fR" 4 +.IX Item "is_deeply" +.Vb 1 +\& is_deeply( $got, $expected, $test_name ); +.Ve +.Sp +Similar to \f(CW\*(C`is()\*(C'\fR, except that if \f(CW$got\fR and \f(CW$expected\fR are references, it +does a deep comparison walking each data structure to see if they are +equivalent. If the two structures are different, it will display the +place where they start differing. +.Sp +\&\f(CW\*(C`is_deeply()\*(C'\fR compares the dereferenced values of references, the +references themselves (except for their type) are ignored. This means +aspects such as blessing and ties are not considered \*(L"different\*(R". +.Sp +\&\f(CW\*(C`is_deeply()\*(C'\fR currently has very limited handling of function reference +and globs. It merely checks if they have the same referent. This may +improve in the future. +.Sp +Test::Differences and Test::Deep provide more in-depth functionality +along these lines. +.Sp +\&\fB\s-1NOTE\s0\fR \fBis_deeply()\fR has limitations when it comes to comparing strings and +refs: +.Sp +.Vb 4 +\& my $path = path(\*(Aq.\*(Aq); +\& my $hash = {}; +\& is_deeply( $path, "$path" ); # ok +\& is_deeply( $hash, "$hash" ); # fail +.Ve +.Sp +This happens because is_deeply will unoverload all arguments unconditionally. +It is probably best not to use is_deeply with overloading. For legacy reasons +this is not likely to ever be fixed. If you would like a much better tool for +this you should see Test2::Suite Specifically Test2::Tools::Compare has +an \f(CW\*(C`is()\*(C'\fR function that works like \f(CW\*(C`is_deeply\*(C'\fR with many improvements. +.SS "Diagnostics" +.IX Subsection "Diagnostics" +If you pick the right test function, you'll usually get a good idea of +what went wrong when it failed. But sometimes it doesn't work out +that way. So here we have ways for you to write your own diagnostic +messages which are safer than just \f(CW\*(C`print STDERR\*(C'\fR. +.IP "\fBdiag\fR" 4 +.IX Item "diag" +.Vb 1 +\& diag(@diagnostic_message); +.Ve +.Sp +Prints a diagnostic message which is guaranteed not to interfere with +test output. Like \f(CW\*(C`print\*(C'\fR \f(CW@diagnostic_message\fR is simply concatenated +together. +.Sp +Returns false, so as to preserve failure. +.Sp +Handy for this sort of thing: +.Sp +.Vb 2 +\& ok( grep(/foo/, @users), "There\*(Aqs a foo user" ) or +\& diag("Since there\*(Aqs no foo, check that /etc/bar is set up right"); +.Ve +.Sp +which would produce: +.Sp +.Vb 4 +\& not ok 42 \- There\*(Aqs a foo user +\& # Failed test \*(AqThere\*(Aqs a foo user\*(Aq +\& # in foo.t at line 52. +\& # Since there\*(Aqs no foo, check that /etc/bar is set up right. +.Ve +.Sp +You might remember \f(CW\*(C`ok() or diag()\*(C'\fR with the mnemonic \f(CW\*(C`open() or +die()\*(C'\fR. +.Sp +\&\fB\s-1NOTE\s0\fR The exact formatting of the diagnostic output is still +changing, but it is guaranteed that whatever you throw at it won't +interfere with the test. +.IP "\fBnote\fR" 4 +.IX Item "note" +.Vb 1 +\& note(@diagnostic_message); +.Ve +.Sp +Like \f(CW\*(C`diag()\*(C'\fR, except the message will not be seen when the test is run +in a harness. It will only be visible in the verbose \s-1TAP\s0 stream. +.Sp +Handy for putting in notes which might be useful for debugging, but +don't indicate a problem. +.Sp +.Vb 1 +\& note("Tempfile is $tempfile"); +.Ve +.IP "\fBexplain\fR" 4 +.IX Item "explain" +.Vb 1 +\& my @dump = explain @diagnostic_message; +.Ve +.Sp +Will dump the contents of any references in a human readable format. +Usually you want to pass this into \f(CW\*(C`note\*(C'\fR or \f(CW\*(C`diag\*(C'\fR. +.Sp +Handy for things like... +.Sp +.Vb 1 +\& is_deeply($have, $want) || diag explain $have; +.Ve +.Sp +or +.Sp +.Vb 2 +\& note explain \e%args; +\& Some::Class\->method(%args); +.Ve +.SS "Conditional tests" +.IX Subsection "Conditional tests" +Sometimes running a test under certain conditions will cause the +test script to die. A certain function or method isn't implemented +(such as \f(CW\*(C`fork()\*(C'\fR on MacOS), some resource isn't available (like a +net connection) or a module isn't available. In these cases it's +necessary to skip tests, or declare that they are supposed to fail +but will work in the future (a todo test). +.PP +For more details on the mechanics of skip and todo tests see +Test::Harness. +.PP +The way Test::More handles this is with a named block. Basically, a +block of tests which can be skipped over or made todo. It's best if I +just show you... +.IP "\fB\s-1SKIP: BLOCK\s0\fR" 4 +.IX Item "SKIP: BLOCK" +.Vb 2 +\& SKIP: { +\& skip $why, $how_many if $condition; +\& +\& ...normal testing code goes here... +\& } +.Ve +.Sp +This declares a block of tests that might be skipped, \f(CW$how_many\fR tests +there are, \f(CW$why\fR and under what \f(CW$condition\fR to skip them. An example is +the easiest way to illustrate: +.Sp +.Vb 2 +\& SKIP: { +\& eval { require HTML::Lint }; +\& +\& skip "HTML::Lint not installed", 2 if $@; +\& +\& my $lint = new HTML::Lint; +\& isa_ok( $lint, "HTML::Lint" ); +\& +\& $lint\->parse( $html ); +\& is( $lint\->errors, 0, "No errors found in HTML" ); +\& } +.Ve +.Sp +If the user does not have HTML::Lint installed, the whole block of +code \fIwon't be run at all\fR. Test::More will output special ok's +which Test::Harness interprets as skipped, but passing, tests. +.Sp +It's important that \f(CW$how_many\fR accurately reflects the number of tests +in the \s-1SKIP\s0 block so the # of tests run will match up with your plan. +If your plan is \f(CW\*(C`no_plan\*(C'\fR \f(CW$how_many\fR is optional and will default to 1. +.Sp +It's perfectly safe to nest \s-1SKIP\s0 blocks. Each \s-1SKIP\s0 block must have +the label \f(CW\*(C`SKIP\*(C'\fR, or Test::More can't work its magic. +.Sp +You don't skip tests which are failing because there's a bug in your +program, or for which you don't yet have code written. For that you +use \s-1TODO.\s0 Read on. +.IP "\fB\s-1TODO: BLOCK\s0\fR" 4 +.IX Item "TODO: BLOCK" +.Vb 2 +\& TODO: { +\& local $TODO = $why if $condition; +\& +\& ...normal testing code goes here... +\& } +.Ve +.Sp +Declares a block of tests you expect to fail and \f(CW$why\fR. Perhaps it's +because you haven't fixed a bug or haven't finished a new feature: +.Sp +.Vb 2 +\& TODO: { +\& local $TODO = "URI::Geller not finished"; +\& +\& my $card = "Eight of clubs"; +\& is( URI::Geller\->your_card, $card, \*(AqIs THIS your card?\*(Aq ); +\& +\& my $spoon; +\& URI::Geller\->bend_spoon; +\& is( $spoon, \*(Aqbent\*(Aq, "Spoon bending, that\*(Aqs original" ); +\& } +.Ve +.Sp +With a todo block, the tests inside are expected to fail. Test::More +will run the tests normally, but print out special flags indicating +they are \*(L"todo\*(R". Test::Harness will interpret failures as being ok. +Should anything succeed, it will report it as an unexpected success. +You then know the thing you had todo is done and can remove the +\&\s-1TODO\s0 flag. +.Sp +The nice part about todo tests, as opposed to simply commenting out a +block of tests, is that it is like having a programmatic todo list. You know +how much work is left to be done, you're aware of what bugs there are, +and you'll know immediately when they're fixed. +.Sp +Once a todo test starts succeeding, simply move it outside the block. +When the block is empty, delete it. +.IP "\fBtodo_skip\fR" 4 +.IX Item "todo_skip" +.Vb 2 +\& TODO: { +\& todo_skip $why, $how_many if $condition; +\& +\& ...normal testing code... +\& } +.Ve +.Sp +With todo tests, it's best to have the tests actually run. That way +you'll know when they start passing. Sometimes this isn't possible. +Often a failing test will cause the whole program to die or hang, even +inside an \f(CW\*(C`eval BLOCK\*(C'\fR with and using \f(CW\*(C`alarm\*(C'\fR. In these extreme +cases you have no choice but to skip over the broken tests entirely. +.Sp +The syntax and behavior is similar to a \f(CW\*(C`SKIP: BLOCK\*(C'\fR except the +tests will be marked as failing but todo. Test::Harness will +interpret them as passing. +.IP "When do I use \s-1SKIP\s0 vs. \s-1TODO\s0?" 4 +.IX Item "When do I use SKIP vs. TODO?" +\&\fBIf it's something the user might not be able to do\fR, use \s-1SKIP.\s0 +This includes optional modules that aren't installed, running under +an \s-1OS\s0 that doesn't have some feature (like \f(CW\*(C`fork()\*(C'\fR or symlinks), or maybe +you need an Internet connection and one isn't available. +.Sp +\&\fBIf it's something the programmer hasn't done yet\fR, use \s-1TODO.\s0 This +is for any code you haven't written yet, or bugs you have yet to fix, +but want to put tests in your testing script (always a good idea). +.SS "Test control" +.IX Subsection "Test control" +.IP "\fB\s-1BAIL_OUT\s0\fR" 4 +.IX Item "BAIL_OUT" +.Vb 1 +\& BAIL_OUT($reason); +.Ve +.Sp +Indicates to the harness that things are going so badly all testing +should terminate. This includes the running of any additional test scripts. +.Sp +This is typically used when testing cannot continue such as a critical +module failing to compile or a necessary external utility not being +available such as a database connection failing. +.Sp +The test will exit with 255. +.Sp +For even better control look at Test::Most. +.SS "Discouraged comparison functions" +.IX Subsection "Discouraged comparison functions" +The use of the following functions is discouraged as they are not +actually testing functions and produce no diagnostics to help figure +out what went wrong. They were written before \f(CW\*(C`is_deeply()\*(C'\fR existed +because I couldn't figure out how to display a useful diff of two +arbitrary data structures. +.PP +These functions are usually used inside an \f(CW\*(C`ok()\*(C'\fR. +.PP +.Vb 1 +\& ok( eq_array(\e@got, \e@expected) ); +.Ve +.PP +\&\f(CW\*(C`is_deeply()\*(C'\fR can do that better and with diagnostics. +.PP +.Vb 1 +\& is_deeply( \e@got, \e@expected ); +.Ve +.PP +They may be deprecated in future versions. +.IP "\fBeq_array\fR" 4 +.IX Item "eq_array" +.Vb 1 +\& my $is_eq = eq_array(\e@got, \e@expected); +.Ve +.Sp +Checks if two arrays are equivalent. This is a deep check, so +multi-level structures are handled correctly. +.IP "\fBeq_hash\fR" 4 +.IX Item "eq_hash" +.Vb 1 +\& my $is_eq = eq_hash(\e%got, \e%expected); +.Ve +.Sp +Determines if the two hashes contain the same keys and values. This +is a deep check. +.IP "\fBeq_set\fR" 4 +.IX Item "eq_set" +.Vb 1 +\& my $is_eq = eq_set(\e@got, \e@expected); +.Ve +.Sp +Similar to \f(CW\*(C`eq_array()\*(C'\fR, except the order of the elements is \fBnot\fR +important. This is a deep check, but the irrelevancy of order only +applies to the top level. +.Sp +.Vb 1 +\& ok( eq_set(\e@got, \e@expected) ); +.Ve +.Sp +Is better written: +.Sp +.Vb 1 +\& is_deeply( [sort @got], [sort @expected] ); +.Ve +.Sp +\&\fB\s-1NOTE\s0\fR By historical accident, this is not a true set comparison. +While the order of elements does not matter, duplicate elements do. +.Sp +\&\fB\s-1NOTE\s0\fR \f(CW\*(C`eq_set()\*(C'\fR does not know how to deal with references at the top +level. The following is an example of a comparison which might not work: +.Sp +.Vb 1 +\& eq_set([\e1, \e2], [\e2, \e1]); +.Ve +.Sp +Test::Deep contains much better set comparison functions. +.SS "Extending and Embedding Test::More" +.IX Subsection "Extending and Embedding Test::More" +Sometimes the Test::More interface isn't quite enough. Fortunately, +Test::More is built on top of Test::Builder which provides a single, +unified backend for any test library to use. This means two test +libraries which both use \fBcan\fR be used together in the +same program>. +.PP +If you simply want to do a little tweaking of how the tests behave, +you can access the underlying Test::Builder object like so: +.IP "\fBbuilder\fR" 4 +.IX Item "builder" +.Vb 1 +\& my $test_builder = Test::More\->builder; +.Ve +.Sp +Returns the Test::Builder object underlying Test::More for you to play +with. +.SH "EXIT CODES" +.IX Header "EXIT CODES" +If all your tests passed, Test::Builder will exit with zero (which is +normal). If anything failed it will exit with how many failed. If +you run less (or more) tests than you planned, the missing (or extras) +will be considered failures. If no tests were ever run Test::Builder +will throw a warning and exit with 255. If the test died, even after +having successfully completed all its tests, it will still be +considered a failure and will exit with 255. +.PP +So the exit codes are... +.PP +.Vb 3 +\& 0 all tests successful +\& 255 test died or all passed but wrong # of tests run +\& any other number how many failed (including missing or extras) +.Ve +.PP +If you fail more than 254 tests, it will be reported as 254. +.PP +\&\fB\s-1NOTE\s0\fR This behavior may go away in future versions. +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +Test::More works with Perls as old as 5.8.1. +.PP +Thread support is not very reliable before 5.10.1, but that's +because threads are not very reliable before 5.10.1. +.PP +Although Test::More has been a core module in versions of Perl since 5.6.2, Test::More has evolved since then, and not all of the features you're used to will be present in the shipped version of Test::More. If you are writing a module, don't forget to indicate in your package metadata the minimum version of Test::More that you require. For instance, if you want to use \f(CW\*(C`done_testing()\*(C'\fR but want your test script to run on Perl 5.10.0, you will need to explicitly require Test::More > 0.88. +.PP +Key feature milestones include: +.IP "subtests" 4 +.IX Item "subtests" +Subtests were released in Test::More 0.94, which came with Perl 5.12.0. Subtests did not implicitly call \f(CW\*(C`done_testing()\*(C'\fR until 0.96; the first Perl with that fix was Perl 5.14.0 with 0.98. +.ie n .IP """done_testing()""" 4 +.el .IP "\f(CWdone_testing()\fR" 4 +.IX Item "done_testing()" +This was released in Test::More 0.88 and first shipped with Perl in 5.10.1 as part of Test::More 0.92. +.ie n .IP """cmp_ok()""" 4 +.el .IP "\f(CWcmp_ok()\fR" 4 +.IX Item "cmp_ok()" +Although \f(CW\*(C`cmp_ok()\*(C'\fR was introduced in 0.40, 0.86 fixed an important bug to make it safe for overloaded objects; the fixed first shipped with Perl in 5.10.1 as part of Test::More 0.92. +.ie n .IP """new_ok()"" ""note()"" and ""explain()""" 4 +.el .IP "\f(CWnew_ok()\fR \f(CWnote()\fR and \f(CWexplain()\fR" 4 +.IX Item "new_ok() note() and explain()" +These were was released in Test::More 0.82, and first shipped with Perl in 5.10.1 as part of Test::More 0.92. +.PP +There is a full version history in the Changes file, and the Test::More versions included as core can be found using Module::CoreList: +.PP +.Vb 1 +\& $ corelist \-a Test::More +.Ve +.SH "CAVEATS and NOTES" +.IX Header "CAVEATS and NOTES" +.ie n .IP "utf8 / ""Wide character in print""" 4 +.el .IP "utf8 / ``Wide character in print''" 4 +.IX Item "utf8 / Wide character in print" +If you use utf8 or other non-ASCII characters with Test::More you +might get a \*(L"Wide character in print\*(R" warning. Using +\&\f(CW\*(C`binmode STDOUT, ":utf8"\*(C'\fR will not fix it. +Test::Builder (which powers +Test::More) duplicates \s-1STDOUT\s0 and \s-1STDERR.\s0 So any changes to them, +including changing their output disciplines, will not be seen by +Test::More. +.Sp +One work around is to apply encodings to \s-1STDOUT\s0 and \s-1STDERR\s0 as early +as possible and before Test::More (or any other Test module) loads. +.Sp +.Vb 2 +\& use open \*(Aq:std\*(Aq, \*(Aq:encoding(utf8)\*(Aq; +\& use Test::More; +.Ve +.Sp +A more direct work around is to change the filehandles used by +Test::Builder. +.Sp +.Vb 4 +\& my $builder = Test::More\->builder; +\& binmode $builder\->output, ":encoding(utf8)"; +\& binmode $builder\->failure_output, ":encoding(utf8)"; +\& binmode $builder\->todo_output, ":encoding(utf8)"; +.Ve +.IP "Overloaded objects" 4 +.IX Item "Overloaded objects" +String overloaded objects are compared \fBas strings\fR (or in \f(CW\*(C`cmp_ok()\*(C'\fR's +case, strings or numbers as appropriate to the comparison op). This +prevents Test::More from piercing an object's interface allowing +better blackbox testing. So if a function starts returning overloaded +objects instead of bare strings your tests won't notice the +difference. This is good. +.Sp +However, it does mean that functions like \f(CW\*(C`is_deeply()\*(C'\fR cannot be used to +test the internals of string overloaded objects. In this case I would +suggest Test::Deep which contains more flexible testing functions for +complex data structures. +.IP "Threads" 4 +.IX Item "Threads" +Test::More will only be aware of threads if \f(CW\*(C`use threads\*(C'\fR has been done +\&\fIbefore\fR Test::More is loaded. This is ok: +.Sp +.Vb 2 +\& use threads; +\& use Test::More; +.Ve +.Sp +This may cause problems: +.Sp +.Vb 2 +\& use Test::More +\& use threads; +.Ve +.Sp +5.8.1 and above are supported. Anything below that has too many bugs. +.SH "HISTORY" +.IX Header "HISTORY" +This is a case of convergent evolution with Joshua Pritikin's Test +module. I was largely unaware of its existence when I'd first +written my own \f(CW\*(C`ok()\*(C'\fR routines. This module exists because I can't +figure out how to easily wedge test names into Test's interface (along +with a few other problems). +.PP +The goal here is to have a testing utility that's simple to learn, +quick to use and difficult to trip yourself up with while still +providing more flexibility than the existing Test.pm. As such, the +names of the most common routines are kept tiny, special cases and +magic side-effects are kept to a minimum. \s-1WYSIWYG.\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.SS "" +.IX Subsection "" +.SS "\s-1ALTERNATIVES\s0" +.IX Subsection "ALTERNATIVES" +Test2::Suite is the most recent and modern set of tools for testing. +.PP +Test::Simple if all this confuses you and you just want to write +some tests. You can upgrade to Test::More later (it's forward +compatible). +.PP +Test::Legacy tests written with Test.pm, the original testing +module, do not play well with other testing libraries. Test::Legacy +emulates the Test.pm interface and does play well with others. +.SS "\s-1ADDITIONAL LIBRARIES\s0" +.IX Subsection "ADDITIONAL LIBRARIES" +Test::Differences for more ways to test complex data structures. +And it plays well with Test::More. +.PP +Test::Class is like xUnit but more perlish. +.PP +Test::Deep gives you more powerful complex data structure testing. +.PP +Test::Inline shows the idea of embedded testing. +.PP +Mock::Quick The ultimate mocking library. Easily spawn objects defined on +the fly. Can also override, block, or reimplement packages as needed. +.PP +Test::FixtureBuilder Quickly define fixture data for unit tests. +.SS "\s-1OTHER COMPONENTS\s0" +.IX Subsection "OTHER COMPONENTS" +Test::Harness is the test runner and output interpreter for Perl. +It's the thing that powers \f(CW\*(C`make test\*(C'\fR and where the \f(CW\*(C`prove\*(C'\fR utility +comes from. +.SS "\s-1BUNDLES\s0" +.IX Subsection "BUNDLES" +Test::Most Most commonly needed test functions and features. +.SH "AUTHORS" +.IX Header "AUTHORS" +Michael G Schwern with much inspiration +from Joshua Pritikin's Test module and lots of help from Barrie +Slaymaker, Tony Bowden, blackstar.co.uk, chromatic, Fergal Daly and +the perl-qa gang. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "BUGS" +.IX Header "BUGS" +See \fIhttps://github.com/Test\-More/test\-more/issues\fR to report and view bugs. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test::More can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2001\-2008 by Michael G Schwern . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR diff --git a/data/miniconda3/man/man3/Test%3A%3ASimple.3 b/data/miniconda3/man/man3/Test%3A%3ASimple.3 new file mode 100644 index 0000000000000000000000000000000000000000..5d082565a11da5e4f440e9f4e4cdf2239d82541d --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ASimple.3 @@ -0,0 +1,324 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Simple 3" +.TH Test::Simple 3 "2020-12-18" "perl v5.32.1" "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" +Test::Simple \- Basic utilities for writing tests. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test::Simple tests => 1; +\& +\& ok( $foo eq $bar, \*(Aqfoo is bar\*(Aq ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +** If you are unfamiliar with testing \fBread Test::Tutorial first!\fR ** +.PP +This is an extremely simple, extremely basic module for writing tests +suitable for \s-1CPAN\s0 modules and other pursuits. If you wish to do more +complicated testing, use the Test::More module (a drop-in replacement +for this one). +.PP +The basic unit of Perl testing is the ok. For each thing you want to +test your program will print out an \*(L"ok\*(R" or \*(L"not ok\*(R" to indicate pass +or fail. You do this with the \f(CW\*(C`ok()\*(C'\fR function (see below). +.PP +The only other constraint is you must pre-declare how many tests you +plan to run. This is in case something goes horribly wrong during the +test and your test program aborts, or skips a test or whatever. You +do this like so: +.PP +.Vb 1 +\& use Test::Simple tests => 23; +.Ve +.PP +You must have a plan. +.IP "\fBok\fR" 4 +.IX Item "ok" +.Vb 2 +\& ok( $foo eq $bar, $name ); +\& ok( $foo eq $bar ); +.Ve +.Sp +\&\f(CW\*(C`ok()\*(C'\fR is given an expression (in this case \f(CW\*(C`$foo eq $bar\*(C'\fR). If it's +true, the test passed. If it's false, it didn't. That's about it. +.Sp +\&\f(CW\*(C`ok()\*(C'\fR prints out either \*(L"ok\*(R" or \*(L"not ok\*(R" along with a test number (it +keeps track of that for you). +.Sp +.Vb 2 +\& # This produces "ok 1 \- Hell not yet frozen over" (or not ok) +\& ok( get_temperature($hell) > 0, \*(AqHell not yet frozen over\*(Aq ); +.Ve +.Sp +If you provide a \f(CW$name\fR, that will be printed along with the \*(L"ok/not +ok\*(R" to make it easier to find your test when if fails (just search for +the name). It also makes it easier for the next guy to understand +what your test is for. It's highly recommended you use test names. +.Sp +All tests are run in scalar context. So this: +.Sp +.Vb 1 +\& ok( @stuff, \*(AqI have some stuff\*(Aq ); +.Ve +.Sp +will do what you mean (fail if stuff is empty) +.PP +Test::Simple will start by printing number of tests run in the form +\&\*(L"1..M\*(R" (so \*(L"1..5\*(R" means you're going to run 5 tests). This strange +format lets Test::Harness know how many tests you plan on running in +case something goes horribly wrong. +.PP +If all your tests passed, Test::Simple will exit with zero (which is +normal). If anything failed it will exit with how many failed. If +you run less (or more) tests than you planned, the missing (or extras) +will be considered failures. If no tests were ever run Test::Simple +will throw a warning and exit with 255. If the test died, even after +having successfully completed all its tests, it will still be +considered a failure and will exit with 255. +.PP +So the exit codes are... +.PP +.Vb 3 +\& 0 all tests successful +\& 255 test died or all passed but wrong # of tests run +\& any other number how many failed (including missing or extras) +.Ve +.PP +If you fail more than 254 tests, it will be reported as 254. +.PP +This module is by no means trying to be a complete testing system. +It's just to get you started. Once you're off the ground its +recommended you look at Test::More. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Here's an example of a simple .t file for the fictional Film module. +.PP +.Vb 1 +\& use Test::Simple tests => 5; +\& +\& use Film; # What you\*(Aqre testing. +\& +\& my $btaste = Film\->new({ Title => \*(AqBad Taste\*(Aq, +\& Director => \*(AqPeter Jackson\*(Aq, +\& Rating => \*(AqR\*(Aq, +\& NumExplodingSheep => 1 +\& }); +\& ok( defined($btaste) && ref $btaste eq \*(AqFilm\*(Aq, \*(Aqnew() works\*(Aq ); +\& +\& ok( $btaste\->Title eq \*(AqBad Taste\*(Aq, \*(AqTitle() get\*(Aq ); +\& ok( $btaste\->Director eq \*(AqPeter Jackson\*(Aq, \*(AqDirector() get\*(Aq ); +\& ok( $btaste\->Rating eq \*(AqR\*(Aq, \*(AqRating() get\*(Aq ); +\& ok( $btaste\->NumExplodingSheep == 1, \*(AqNumExplodingSheep() get\*(Aq ); +.Ve +.PP +It will produce output like this: +.PP +.Vb 9 +\& 1..5 +\& ok 1 \- new() works +\& ok 2 \- Title() get +\& ok 3 \- Director() get +\& not ok 4 \- Rating() get +\& # Failed test \*(AqRating() get\*(Aq +\& # in t/film.t at line 14. +\& ok 5 \- NumExplodingSheep() get +\& # Looks like you failed 1 tests of 5 +.Ve +.PP +Indicating the \fBFilm::Rating()\fR method is broken. +.SH "CAVEATS" +.IX Header "CAVEATS" +Test::Simple will only report a maximum of 254 failures in its exit +code. If this is a problem, you probably have a huge test script. +Split it into multiple files. (Otherwise blame the Unix folks for +using an unsigned short integer as the exit status). +.PP +Because \s-1VMS\s0's exit codes are much, much different than the rest of the +universe, and perl does horrible mangling to them that gets in my way, +it works like this on \s-1VMS.\s0 +.PP +.Vb 2 +\& 0 SS$_NORMAL all tests successful +\& 4 SS$_ABORT something went wrong +.Ve +.PP +Unfortunately, I can't differentiate any further. +.SH "NOTES" +.IX Header "NOTES" +Test::Simple is \fBexplicitly\fR tested all the way back to perl 5.6.0. +.PP +Test::Simple is thread-safe in perl 5.8.1 and up. +.SH "HISTORY" +.IX Header "HISTORY" +This module was conceived while talking with Tony Bowden in his +kitchen one night about the problems I was having writing some really +complicated feature into the new Testing module. He observed that the +main problem is not dealing with these edge cases but that people hate +to write tests \fBat all\fR. What was needed was a dead simple module +that took all the hard work out of testing and was really, really easy +to learn. Paul Johnson simultaneously had this idea (unfortunately, +he wasn't in Tony's kitchen). This is it. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "Test::More" 4 +.IX Item "Test::More" +More testing functions! Once you outgrow Test::Simple, look at +Test::More. Test::Simple is 100% forward compatible with Test::More +(i.e. you can just use Test::More instead of Test::Simple in your +programs and things will still work). +.PP +Look in Test::More's \s-1SEE ALSO\s0 for more testing modules. +.SH "AUTHORS" +.IX Header "AUTHORS" +Idea by Tony Bowden and Paul Johnson, code by Michael G Schwern +, wardrobe by Calvin Klein. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2001\-2008 by Michael G Schwern . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR diff --git a/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACapture.3 b/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACapture.3 new file mode 100644 index 0000000000000000000000000000000000000000..91dd4da35f95d591539787e81afa804154054776 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACapture.3 @@ -0,0 +1,157 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Tester::Capture 3" +.TH Test::Tester::Capture 3 "2020-12-18" "perl v5.32.1" "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" +Test::Tester::Capture \- Help testing test modules built with Test::Builder +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of Test::Builder that overrides many of the methods so +that they don't output anything. It also keeps track of its own set of test +results so that you can use Test::Builder based modules to perform tests on +other Test::Builder based modules. +.SH "AUTHOR" +.IX Header "AUTHOR" +Most of the code here was lifted straight from Test::Builder and then had +chunks removed by Fergal Daly . +.SH "LICENSE" +.IX Header "LICENSE" +Under the same license as Perl itself +.PP +See http://www.perl.com/perl/misc/Artistic.html diff --git a/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACaptureRunner.3 b/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACaptureRunner.3 new file mode 100644 index 0000000000000000000000000000000000000000..02ef8517869f7c5ccffe9e46ece213b76813daaf --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ATester%3A%3ACaptureRunner.3 @@ -0,0 +1,154 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Tester::CaptureRunner 3" +.TH Test::Tester::CaptureRunner 3 "2020-12-18" "perl v5.32.1" "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" +Test::Tester::CaptureRunner \- Help testing test modules built with Test::Builder +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This stuff if needed to allow me to play with other ways of monitoring the +test results. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2003 by Fergal Daly . +.SH "LICENSE" +.IX Header "LICENSE" +Under the same license as Perl itself +.PP +See http://www.perl.com/perl/misc/Artistic.html diff --git a/data/miniconda3/man/man3/Test%3A%3ATester.3 b/data/miniconda3/man/man3/Test%3A%3ATester.3 new file mode 100644 index 0000000000000000000000000000000000000000..68bebd3dfaccf2b433a4c5780f6016410e7d8300 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ATester.3 @@ -0,0 +1,528 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Tester 3" +.TH Test::Tester 3 "2020-12-18" "perl v5.32.1" "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" +Test::Tester \- Ease testing test modules built with Test::Builder +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test::Tester tests => 6; +\& +\& use Test::MyStyle; +\& +\& check_test( +\& sub { +\& is_mystyle_eq("this", "that", "not eq"); +\& }, +\& { +\& ok => 0, # expect this to fail +\& name => "not eq", +\& diag => "Expected: \*(Aqthis\*(Aq\enGot: \*(Aqthat\*(Aq", +\& } +\& ); +.Ve +.PP +or +.PP +.Vb 1 +\& use Test::Tester tests => 6; +\& +\& use Test::MyStyle; +\& +\& check_test( +\& sub { +\& is_mystyle_qr("this", "that", "not matching"); +\& }, +\& { +\& ok => 0, # expect this to fail +\& name => "not matching", +\& diag => qr/Expected: \*(Aqthis\*(Aq\es+Got: \*(Aqthat\*(Aq/, +\& } +\& ); +.Ve +.PP +or +.PP +.Vb 1 +\& use Test::Tester; +\& +\& use Test::More tests => 3; +\& use Test::MyStyle; +\& +\& my ($premature, @results) = run_tests( +\& sub { +\& is_database_alive("dbname"); +\& } +\& ); +\& +\& # now use Test::More::like to check the diagnostic output +\& +\& like($results[0]\->{diag}, "/^Database ping took \e\ed+ seconds$"/, "diag"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +If you have written a test module based on Test::Builder then Test::Tester +allows you to test it with the minimum of effort. +.SH "HOW TO USE (THE EASY WAY)" +.IX Header "HOW TO USE (THE EASY WAY)" +From version 0.08 Test::Tester no longer requires you to included anything +special in your test modules. All you need to do is +.PP +.Vb 1 +\& use Test::Tester; +.Ve +.PP +in your test script \fBbefore\fR any other Test::Builder based modules and away +you go. +.PP +Other modules based on Test::Builder can be used to help with the +testing. In fact you can even use functions from your module to test +other functions from the same module (while this is possible it is +probably not a good idea, if your module has bugs, then +using it to test itself may give the wrong answers). +.PP +The easiest way to test is to do something like +.PP +.Vb 8 +\& check_test( +\& sub { is_mystyle_eq("this", "that", "not eq") }, +\& { +\& ok => 0, # we expect the test to fail +\& name => "not eq", +\& diag => "Expected: \*(Aqthis\*(Aq\enGot: \*(Aqthat\*(Aq", +\& } +\& ); +.Ve +.PP +this will execute the is_mystyle_eq test, capturing its results and +checking that they are what was expected. +.PP +You may need to examine the test results in a more flexible way, for +example, the diagnostic output may be quite long or complex or it may involve +something that you cannot predict in advance like a timestamp. In this case +you can get direct access to the test results: +.PP +.Vb 5 +\& my ($premature, @results) = run_tests( +\& sub { +\& is_database_alive("dbname"); +\& } +\& ); +\& +\& like($result[0]\->{diag}, "/^Database ping took \e\ed+ seconds$"/, "diag"); +.Ve +.PP +or +.PP +.Vb 8 +\& check_test( +\& sub { is_mystyle_qr("this", "that", "not matching") }, +\& { +\& ok => 0, # we expect the test to fail +\& name => "not matching", +\& diag => qr/Expected: \*(Aqthis\*(Aq\es+Got: \*(Aqthat\*(Aq/, +\& } +\& ); +.Ve +.PP +We cannot predict how long the database ping will take so we use +Test::More's \fBlike()\fR test to check that the diagnostic string is of the right +form. +.SH "HOW TO USE (THE HARD WAY)" +.IX Header "HOW TO USE (THE HARD WAY)" +\&\fIThis is here for backwards compatibility only\fR +.PP +Make your module use the Test::Tester::Capture object instead of the +Test::Builder one. How to do this depends on your module but assuming that +your module holds the Test::Builder object in \f(CW$Test\fR and that all your test +routines access it through \f(CW$Test\fR then providing a function something like this +.PP +.Vb 4 +\& sub set_builder +\& { +\& $Test = shift; +\& } +.Ve +.PP +should allow your test scripts to do +.PP +.Vb 1 +\& Test::YourModule::set_builder(Test::Tester\->capture); +.Ve +.PP +and after that any tests inside your module will captured. +.SH "TEST RESULTS" +.IX Header "TEST RESULTS" +The result of each test is captured in a hash. These hashes are the same as +the hashes returned by Test::Builder\->details but with a couple of extra +fields. +.PP +These fields are documented in Test::Builder in the \fBdetails()\fR function +.IP "ok" 2 +.IX Item "ok" +Did the test pass? +.IP "actual_ok" 2 +.IX Item "actual_ok" +Did the test really pass? That is, did the pass come from +Test::Builder\->\fBok()\fR or did it pass because it was a \s-1TODO\s0 test? +.IP "name" 2 +.IX Item "name" +The name supplied for the test. +.IP "type" 2 +.IX Item "type" +What kind of test? Possibilities include, skip, todo etc. See +Test::Builder for more details. +.IP "reason" 2 +.IX Item "reason" +The reason for the skip, todo etc. See Test::Builder for more details. +.PP +These fields are exclusive to Test::Tester. +.IP "diag" 2 +.IX Item "diag" +Any diagnostics that were output for the test. This only includes +diagnostics output \fBafter\fR the test result is declared. +.Sp +Note that Test::Builder ensures that any diagnostics end in a \en and +it in earlier versions of Test::Tester it was essential that you have +the final \en in your expected diagnostics. From version 0.10 onward, +Test::Tester will add the \en if you forgot it. It will not add a \en if +you are expecting no diagnostics. See below for help tracking down +hard to find space and tab related problems. +.IP "depth" 2 +.IX Item "depth" +This allows you to check that your test module is setting the correct value +for \f(CW$Test::Builder::Level\fR and thus giving the correct file and line number +when a test fails. It is calculated by looking at \fBcaller()\fR and +\&\f(CW$Test::Builder::Level\fR. It should count how many subroutines there are before +jumping into the function you are testing. So for example in +.Sp +.Vb 1 +\& run_tests( sub { my_test_function("a", "b") } ); +.Ve +.Sp +the depth should be 1 and in +.Sp +.Vb 1 +\& sub deeper { my_test_function("a", "b") } +\& +\& run_tests(sub { deeper() }); +.Ve +.Sp +depth should be 2, that is 1 for the sub {} and one for \fBdeeper()\fR. This +might seem a little complex but if your tests look like the simple +examples in this doc then you don't need to worry as the depth will +always be 1 and that's what Test::Tester expects by default. +.Sp +\&\fBNote\fR: if you do not specify a value for depth in \fBcheck_test()\fR then it +automatically compares it against 1, if you really want to skip the depth +test then pass in undef. +.Sp +\&\fBNote\fR: depth will not be correctly calculated for tests that run from a +signal handler or an \s-1END\s0 block or anywhere else that hides the call stack. +.PP +Some of Test::Tester's functions return arrays of these hashes, just +like Test::Builder\->details. That is, the hash for the first test will +be array element 1 (not 0). Element 0 will not be a hash it will be a +string which contains any diagnostic output that came before the first +test. This should usually be empty, if it's not, it means something +output diagnostics before any test results showed up. +.SH "SPACES AND TABS" +.IX Header "SPACES AND TABS" +Appearances can be deceptive, especially when it comes to emptiness. If you +are scratching your head trying to work out why Test::Tester is saying that +your diagnostics are wrong when they look perfectly right then the answer is +probably whitespace. From version 0.10 on, Test::Tester surrounds the +expected and got diag values with single quotes to make it easier to spot +trailing whitespace. So in this example +.PP +.Vb 4 +\& # Got diag (5 bytes): +\& # \*(Aqabcd \*(Aq +\& # Expected diag (4 bytes): +\& # \*(Aqabcd\*(Aq +.Ve +.PP +it is quite clear that there is a space at the end of the first string. +Another way to solve this problem is to use colour and inverse video on an +\&\s-1ANSI\s0 terminal, see below \s-1COLOUR\s0 below if you want this. +.PP +Unfortunately this is sometimes not enough, neither colour nor quotes will +help you with problems involving tabs, other non-printing characters and +certain kinds of problems inherent in Unicode. To deal with this, you can +switch Test::Tester into a mode whereby all \*(L"tricky\*(R" characters are shown as +\&\e{xx}. Tricky characters are those with \s-1ASCII\s0 code less than 33 or higher +than 126. This makes the output more difficult to read but much easier to +find subtle differences between strings. To turn on this mode either call +\&\f(CW\*(C`show_space()\*(C'\fR in your test script or set the \f(CW\*(C`TESTTESTERSPACE\*(C'\fR environment +variable to be a true value. The example above would then look like +.PP +.Vb 4 +\& # Got diag (5 bytes): +\& # abcd\ex{20} +\& # Expected diag (4 bytes): +\& # abcd +.Ve +.SH "COLOUR" +.IX Header "COLOUR" +If you prefer to use colour as a means of finding tricky whitespace +characters then you can set the \f(CW\*(C`TESTTESTCOLOUR\*(C'\fR environment variable to a +comma separated pair of colours, the first for the foreground, the second +for the background. For example \*(L"white,red\*(R" will print white text on a red +background. This requires the Term::ANSIColor module. You can specify any +colour that would be acceptable to the Term::ANSIColor::color function. +.PP +If you spell colour differently, that's no problem. The \f(CW\*(C`TESTTESTERCOLOR\*(C'\fR +variable also works (if both are set then the British spelling wins out). +.SH "EXPORTED FUNCTIONS" +.IX Header "EXPORTED FUNCTIONS" +\fI($premature, \f(CI@results\fI) = run_tests(\e&test_sub)\fR +.IX Subsection "($premature, @results) = run_tests(&test_sub)" +.PP +\&\e&test_sub is a reference to a subroutine. +.PP +run_tests runs the subroutine in \f(CW$test_sub\fR and captures the results of any +tests inside it. You can run more than 1 test inside this subroutine if you +like. +.PP +\&\f(CW$premature\fR is a string containing any diagnostic output from before +the first test. +.PP +\&\f(CW@results\fR is an array of test result hashes. +.PP +\fIcmp_result(\e%result, \e%expect, \f(CI$name\fI)\fR +.IX Subsection "cmp_result(%result, %expect, $name)" +.PP +\&\e%result is a ref to a test result hash. +.PP +\&\e%expect is a ref to a hash of expected values for the test result. +.PP +cmp_result compares the result with the expected values. If any differences +are found it outputs diagnostics. You may leave out any field from the +expected result and cmp_result will not do the comparison of that field. +.PP +\fIcmp_results(\e@results, \e@expects, \f(CI$name\fI)\fR +.IX Subsection "cmp_results(@results, @expects, $name)" +.PP +\&\e@results is a ref to an array of test results. +.PP +\&\e@expects is a ref to an array of hash refs. +.PP +cmp_results checks that the results match the expected results and if any +differences are found it outputs diagnostics. It first checks that the +number of elements in \e@results and \e@expects is the same. Then it goes +through each result checking it against the expected result as in +\&\fBcmp_result()\fR above. +.PP +\fI($premature, \f(CI@results\fI) = check_tests(\e&test_sub, \e@expects, \f(CI$name\fI)\fR +.IX Subsection "($premature, @results) = check_tests(&test_sub, @expects, $name)" +.PP +\&\e&test_sub is a reference to a subroutine. +.PP +\&\e@expect is a ref to an array of hash refs which are expected test results. +.PP +check_tests combines run_tests and cmp_tests into a single call. It also +checks if the tests died at any stage. +.PP +It returns the same values as run_tests, so you can further examine the test +results if you need to. +.PP +\fI($premature, \f(CI@results\fI) = check_test(\e&test_sub, \e%expect, \f(CI$name\fI)\fR +.IX Subsection "($premature, @results) = check_test(&test_sub, %expect, $name)" +.PP +\&\e&test_sub is a reference to a subroutine. +.PP +\&\e%expect is a ref to an hash of expected values for the test result. +.PP +check_test is a wrapper around check_tests. It combines run_tests and +cmp_tests into a single call, checking if the test died. It assumes +that only a single test is run inside \e&test_sub and include a test to +make sure this is true. +.PP +It returns the same values as run_tests, so you can further examine the test +results if you need to. +.PP +\fI\f(BIshow_space()\fI\fR +.IX Subsection "show_space()" +.PP +Turn on the escaping of characters as described in the \s-1SPACES AND TABS\s0 +section. +.SH "HOW IT WORKS" +.IX Header "HOW IT WORKS" +Normally, a test module (let's call it Test:MyStyle) calls +Test::Builder\->new to get the Test::Builder object. Test::MyStyle calls +methods on this object to record information about test results. When +Test::Tester is loaded, it replaces Test::Builder's \fBnew()\fR method with one +which returns a Test::Tester::Delegate object. Most of the time this object +behaves as the real Test::Builder object. Any methods that are called are +delegated to the real Test::Builder object so everything works perfectly. +However once we go into test mode, the method calls are no longer passed to +the real Test::Builder object, instead they go to the Test::Tester::Capture +object. This object seems exactly like the real Test::Builder object, +except, instead of outputting test results and diagnostics, it just records +all the information for later analysis. +.SH "CAVEATS" +.IX Header "CAVEATS" +Support for calling Test::Builder\->note is minimal. It's implemented +as an empty stub, so modules that use it will not crash but the calls +are not recorded for testing purposes like the others. Patches +welcome. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::Builder the source of testing goodness. Test::Builder::Tester +for an alternative approach to the problem tackled by Test::Tester \- +captures the strings output by Test::Builder. This means you cannot get +separate access to the individual pieces of information and you must predict +\&\fBexactly\fR what your test will output. +.SH "AUTHOR" +.IX Header "AUTHOR" +This module is copyright 2005 Fergal Daly , some parts +are based on other people's work. +.PP +Plan handling lifted from Test::More. written by Michael G Schwern +. +.PP +Test::Tester::Capture is a cut down and hacked up version of Test::Builder. +Test::Builder was written by chromatic and Michael G +Schwern . +.SH "LICENSE" +.IX Header "LICENSE" +Under the same license as Perl itself +.PP +See http://www.perl.com/perl/misc/Artistic.html diff --git a/data/miniconda3/man/man3/Test%3A%3ATutorial.3 b/data/miniconda3/man/man3/Test%3A%3ATutorial.3 new file mode 100644 index 0000000000000000000000000000000000000000..e196b6d5d7f7f4aafe2a1006169c6274e40b689c --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ATutorial.3 @@ -0,0 +1,761 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::Tutorial 3" +.TH Test::Tutorial 3 "2020-12-18" "perl v5.32.1" "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" +Test::Tutorial \- A tutorial about writing really basic tests +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fI\s-1AHHHHHHH\s0!!!! \s-1NOT TESTING\s0! Anything but testing! +Beat me, whip me, send me to Detroit, but don't make +me write tests!\fR +.PP +\&\fI*sob*\fR +.PP +\&\fIBesides, I don't know how to write the damned things.\fR +.PP +Is this you? Is writing tests right up there with writing +documentation and having your fingernails pulled out? Did you open up +a test and read +.PP +.Vb 1 +\& ######## We start with some black magic +.Ve +.PP +and decide that's quite enough for you? +.PP +It's ok. That's all gone now. We've done all the black magic for +you. And here are the tricks... +.SS "Nuts and bolts of testing." +.IX Subsection "Nuts and bolts of testing." +Here's the most basic test program. +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& print "1..1\en"; +\& +\& print 1 + 1 == 2 ? "ok 1\en" : "not ok 1\en"; +.Ve +.PP +Because 1 + 1 is 2, it prints: +.PP +.Vb 2 +\& 1..1 +\& ok 1 +.Ve +.PP +What this says is: \f(CW1..1\fR \*(L"I'm going to run one test.\*(R" [1] \f(CW\*(C`ok 1\*(C'\fR +\&\*(L"The first test passed\*(R". And that's about all magic there is to +testing. Your basic unit of testing is the \fIok\fR. For each thing you +test, an \f(CW\*(C`ok\*(C'\fR is printed. Simple. Test::Harness interprets your test +results to determine if you succeeded or failed (more on that later). +.PP +Writing all these print statements rapidly gets tedious. Fortunately, +there's Test::Simple. It has one function, \f(CW\*(C`ok()\*(C'\fR. +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& use Test::Simple tests => 1; +\& +\& ok( 1 + 1 == 2 ); +.Ve +.PP +That does the same thing as the previous code. \f(CW\*(C`ok()\*(C'\fR is the backbone +of Perl testing, and we'll be using it instead of roll-your-own from +here on. If \f(CW\*(C`ok()\*(C'\fR gets a true value, the test passes. False, it +fails. +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& use Test::Simple tests => 2; +\& ok( 1 + 1 == 2 ); +\& ok( 2 + 2 == 5 ); +.Ve +.PP +From that comes: +.PP +.Vb 5 +\& 1..2 +\& ok 1 +\& not ok 2 +\& # Failed test (test.pl at line 5) +\& # Looks like you failed 1 tests of 2. +.Ve +.PP +\&\f(CW1..2\fR \*(L"I'm going to run two tests.\*(R" This number is a \fIplan\fR. It helps to +ensure your test program ran all the way through and didn't die or skip some +tests. \f(CW\*(C`ok 1\*(C'\fR \*(L"The first test passed.\*(R" \f(CW\*(C`not ok 2\*(C'\fR \*(L"The second test failed\*(R". +Test::Simple helpfully prints out some extra commentary about your tests. +.PP +It's not scary. Come, hold my hand. We're going to give an example +of testing a module. For our example, we'll be testing a date +library, Date::ICal. It's on \s-1CPAN,\s0 so download a copy and follow +along. [2] +.SS "Where to start?" +.IX Subsection "Where to start?" +This is the hardest part of testing, where do you start? People often get +overwhelmed at the apparent enormity of the task of testing a whole module. +The best place to start is at the beginning. Date::ICal is an +object-oriented module, and that means you start by making an object. Test +\&\f(CW\*(C`new()\*(C'\fR. +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& # assume these two lines are in all subsequent examples +\& use strict; +\& use warnings; +\& +\& use Test::Simple tests => 2; +\& +\& use Date::ICal; +\& +\& my $ical = Date::ICal\->new; # create an object +\& ok( defined $ical ); # check that we got something +\& ok( $ical\->isa(\*(AqDate::ICal\*(Aq) ); # and it\*(Aqs the right class +.Ve +.PP +Run that and you should get: +.PP +.Vb 3 +\& 1..2 +\& ok 1 +\& ok 2 +.Ve +.PP +Congratulations! You've written your first useful test. +.SS "Names" +.IX Subsection "Names" +That output isn't terribly descriptive, is it? When you have two tests you can +figure out which one is #2, but what if you have 102 tests? +.PP +Each test can be given a little descriptive name as the second +argument to \f(CW\*(C`ok()\*(C'\fR. +.PP +.Vb 1 +\& use Test::Simple tests => 2; +\& +\& ok( defined $ical, \*(Aqnew() returned something\*(Aq ); +\& ok( $ical\->isa(\*(AqDate::ICal\*(Aq), " and it\*(Aqs the right class" ); +.Ve +.PP +Now you'll see: +.PP +.Vb 3 +\& 1..2 +\& ok 1 \- new() returned something +\& ok 2 \- and it\*(Aqs the right class +.Ve +.SS "Test the manual" +.IX Subsection "Test the manual" +The simplest way to build up a decent testing suite is to just test what +the manual says it does. [3] Let's pull something out of the +\&\*(L"\s-1SYNOPSIS\*(R"\s0 in Date::ICal and test that all its bits work. +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& use Test::Simple tests => 8; +\& +\& use Date::ICal; +\& +\& $ical = Date::ICal\->new( year => 1964, month => 10, day => 16, +\& hour => 16, min => 12, sec => 47, +\& tz => \*(Aq0530\*(Aq ); +\& +\& ok( defined $ical, \*(Aqnew() returned something\*(Aq ); +\& ok( $ical\->isa(\*(AqDate::ICal\*(Aq), " and it\*(Aqs the right class" ); +\& ok( $ical\->sec == 47, \*(Aq sec()\*(Aq ); +\& ok( $ical\->min == 12, \*(Aq min()\*(Aq ); +\& ok( $ical\->hour == 16, \*(Aq hour()\*(Aq ); +\& ok( $ical\->day == 17, \*(Aq day()\*(Aq ); +\& ok( $ical\->month == 10, \*(Aq month()\*(Aq ); +\& ok( $ical\->year == 1964, \*(Aq year()\*(Aq ); +.Ve +.PP +Run that and you get: +.PP +.Vb 11 +\& 1..8 +\& ok 1 \- new() returned something +\& ok 2 \- and it\*(Aqs the right class +\& ok 3 \- sec() +\& ok 4 \- min() +\& ok 5 \- hour() +\& not ok 6 \- day() +\& # Failed test (\- at line 16) +\& ok 7 \- month() +\& ok 8 \- year() +\& # Looks like you failed 1 tests of 8. +.Ve +.PP +Whoops, a failure! [4] Test::Simple helpfully lets us know on what line the +failure occurred, but not much else. We were supposed to get 17, but we +didn't. What did we get?? Dunno. You could re-run the test in the debugger +or throw in some print statements to find out. +.PP +Instead, switch from Test::Simple to Test::More. Test::More +does everything Test::Simple does, and more! In fact, Test::More does +things \fIexactly\fR the way Test::Simple does. You can literally swap +Test::Simple out and put Test::More in its place. That's just what +we're going to do. +.PP +Test::More does more than Test::Simple. The most important difference at +this point is it provides more informative ways to say \*(L"ok\*(R". Although you can +write almost any test with a generic \f(CW\*(C`ok()\*(C'\fR, it can't tell you what went +wrong. The \f(CW\*(C`is()\*(C'\fR function lets us declare that something is supposed to be +the same as something else: +.PP +.Vb 1 +\& use Test::More tests => 8; +\& +\& use Date::ICal; +\& +\& $ical = Date::ICal\->new( year => 1964, month => 10, day => 16, +\& hour => 16, min => 12, sec => 47, +\& tz => \*(Aq0530\*(Aq ); +\& +\& ok( defined $ical, \*(Aqnew() returned something\*(Aq ); +\& ok( $ical\->isa(\*(AqDate::ICal\*(Aq), " and it\*(Aqs the right class" ); +\& is( $ical\->sec, 47, \*(Aq sec()\*(Aq ); +\& is( $ical\->min, 12, \*(Aq min()\*(Aq ); +\& is( $ical\->hour, 16, \*(Aq hour()\*(Aq ); +\& is( $ical\->day, 17, \*(Aq day()\*(Aq ); +\& is( $ical\->month, 10, \*(Aq month()\*(Aq ); +\& is( $ical\->year, 1964, \*(Aq year()\*(Aq ); +.Ve +.PP +"Is \f(CW\*(C`$ical\->sec\*(C'\fR 47?\*(L" \*(R"Is \f(CW\*(C`$ical\->min\*(C'\fR 12?" With \f(CW\*(C`is()\*(C'\fR in place, +you get more information: +.PP +.Vb 10 +\& 1..8 +\& ok 1 \- new() returned something +\& ok 2 \- and it\*(Aqs the right class +\& ok 3 \- sec() +\& ok 4 \- min() +\& ok 5 \- hour() +\& not ok 6 \- day() +\& # Failed test (\- at line 16) +\& # got: \*(Aq16\*(Aq +\& # expected: \*(Aq17\*(Aq +\& ok 7 \- month() +\& ok 8 \- year() +\& # Looks like you failed 1 tests of 8. +.Ve +.PP +Aha. \f(CW\*(C`$ical\->day\*(C'\fR returned 16, but we expected 17. A +quick check shows that the code is working fine, we made a mistake +when writing the tests. Change it to: +.PP +.Vb 1 +\& is( $ical\->day, 16, \*(Aq day()\*(Aq ); +.Ve +.PP +\&... and everything works. +.PP +Any time you're doing a \*(L"this equals that\*(R" sort of test, use \f(CW\*(C`is()\*(C'\fR. +It even works on arrays. The test is always in scalar context, so you +can test how many elements are in an array this way. [5] +.PP +.Vb 1 +\& is( @foo, 5, \*(Aqfoo has 5 elements\*(Aq ); +.Ve +.SS "Sometimes the tests are wrong" +.IX Subsection "Sometimes the tests are wrong" +This brings up a very important lesson. Code has bugs. Tests are +code. Ergo, tests have bugs. A failing test could mean a bug in the +code, but don't discount the possibility that the test is wrong. +.PP +On the flip side, don't be tempted to prematurely declare a test +incorrect just because you're having trouble finding the bug. +Invalidating a test isn't something to be taken lightly, and don't use +it as a cop out to avoid work. +.SS "Testing lots of values" +.IX Subsection "Testing lots of values" +We're going to be wanting to test a lot of dates here, trying to trick +the code with lots of different edge cases. Does it work before 1970? +After 2038? Before 1904? Do years after 10,000 give it trouble? +Does it get leap years right? We could keep repeating the code above, +or we could set up a little try/expect loop. +.PP +.Vb 2 +\& use Test::More tests => 32; +\& use Date::ICal; +\& +\& my %ICal_Dates = ( +\& # An ICal string And the year, month, day +\& # hour, minute and second we expect. +\& \*(Aq19971024T120000\*(Aq => # from the docs. +\& [ 1997, 10, 24, 12, 0, 0 ], +\& \*(Aq20390123T232832\*(Aq => # after the Unix epoch +\& [ 2039, 1, 23, 23, 28, 32 ], +\& \*(Aq19671225T000000\*(Aq => # before the Unix epoch +\& [ 1967, 12, 25, 0, 0, 0 ], +\& \*(Aq18990505T232323\*(Aq => # before the MacOS epoch +\& [ 1899, 5, 5, 23, 23, 23 ], +\& ); +\& +\& +\& while( my($ical_str, $expect) = each %ICal_Dates ) { +\& my $ical = Date::ICal\->new( ical => $ical_str ); +\& +\& ok( defined $ical, "new(ical => \*(Aq$ical_str\*(Aq)" ); +\& ok( $ical\->isa(\*(AqDate::ICal\*(Aq), " and it\*(Aqs the right class" ); +\& +\& is( $ical\->year, $expect\->[0], \*(Aq year()\*(Aq ); +\& is( $ical\->month, $expect\->[1], \*(Aq month()\*(Aq ); +\& is( $ical\->day, $expect\->[2], \*(Aq day()\*(Aq ); +\& is( $ical\->hour, $expect\->[3], \*(Aq hour()\*(Aq ); +\& is( $ical\->min, $expect\->[4], \*(Aq min()\*(Aq ); +\& is( $ical\->sec, $expect\->[5], \*(Aq sec()\*(Aq ); +\& } +.Ve +.PP +Now we can test bunches of dates by just adding them to +\&\f(CW%ICal_Dates\fR. Now that it's less work to test with more dates, you'll +be inclined to just throw more in as you think of them. +Only problem is, every time we add to that we have to keep adjusting +the \f(CW\*(C`use Test::More tests => ##\*(C'\fR line. That can rapidly get +annoying. There are ways to make this work better. +.PP +First, we can calculate the plan dynamically using the \f(CW\*(C`plan()\*(C'\fR +function. +.PP +.Vb 2 +\& use Test::More; +\& use Date::ICal; +\& +\& my %ICal_Dates = ( +\& ...same as before... +\& ); +\& +\& # For each key in the hash we\*(Aqre running 8 tests. +\& plan tests => keys(%ICal_Dates) * 8; +\& +\& ...and then your tests... +.Ve +.PP +To be even more flexible, use \f(CW\*(C`done_testing\*(C'\fR. This means we're just +running some tests, don't know how many. [6] +.PP +.Vb 1 +\& use Test::More; # instead of tests => 32 +\& +\& ... # tests here +\& +\& done_testing(); # reached the end safely +.Ve +.PP +If you don't specify a plan, Test::More expects to see \f(CW\*(C`done_testing()\*(C'\fR +before your program exits. It will warn you if you forget it. You can give +\&\f(CW\*(C`done_testing()\*(C'\fR an optional number of tests you expected to run, and if the +number ran differs, Test::More will give you another kind of warning. +.SS "Informative names" +.IX Subsection "Informative names" +Take a look at the line: +.PP +.Vb 1 +\& ok( defined $ical, "new(ical => \*(Aq$ical_str\*(Aq)" ); +.Ve +.PP +We've added more detail about what we're testing and the ICal string +itself we're trying out to the name. So you get results like: +.PP +.Vb 8 +\& ok 25 \- new(ical => \*(Aq19971024T120000\*(Aq) +\& ok 26 \- and it\*(Aqs the right class +\& ok 27 \- year() +\& ok 28 \- month() +\& ok 29 \- day() +\& ok 30 \- hour() +\& ok 31 \- min() +\& ok 32 \- sec() +.Ve +.PP +If something in there fails, you'll know which one it was and that +will make tracking down the problem easier. Try to put a bit of +debugging information into the test names. +.PP +Describe what the tests test, to make debugging a failed test easier +for you or for the next person who runs your test. +.SS "Skipping tests" +.IX Subsection "Skipping tests" +Poking around in the existing Date::ICal tests, I found this in +\&\fIt/01sanity.t\fR [7] +.PP +.Vb 1 +\& #!/usr/bin/perl \-w +\& +\& use Test::More tests => 7; +\& use Date::ICal; +\& +\& # Make sure epoch time is being handled sanely. +\& my $t1 = Date::ICal\->new( epoch => 0 ); +\& is( $t1\->epoch, 0, "Epoch time of 0" ); +\& +\& # XXX This will only work on unix systems. +\& is( $t1\->ical, \*(Aq19700101Z\*(Aq, " epoch to ical" ); +\& +\& is( $t1\->year, 1970, " year()" ); +\& is( $t1\->month, 1, " month()" ); +\& is( $t1\->day, 1, " day()" ); +\& +\& # like the tests above, but starting with ical instead of epoch +\& my $t2 = Date::ICal\->new( ical => \*(Aq19700101Z\*(Aq ); +\& is( $t2\->ical, \*(Aq19700101Z\*(Aq, "Start of epoch in ICal notation" ); +\& +\& is( $t2\->epoch, 0, " and back to ICal" ); +.Ve +.PP +The beginning of the epoch is different on most non-Unix operating systems [8]. +Even though Perl smooths out the differences for the most part, certain ports +do it differently. MacPerl is one off the top of my head. [9] Rather than +putting a comment in the test and hoping someone will read the test while +debugging the failure, we can explicitly say it's never going to work and skip +the test. +.PP +.Vb 2 +\& use Test::More tests => 7; +\& use Date::ICal; +\& +\& # Make sure epoch time is being handled sanely. +\& my $t1 = Date::ICal\->new( epoch => 0 ); +\& is( $t1\->epoch, 0, "Epoch time of 0" ); +\& +\& SKIP: { +\& skip(\*(Aqepoch to ICal not working on Mac OS\*(Aq, 6) +\& if $^O eq \*(AqMacOS\*(Aq; +\& +\& is( $t1\->ical, \*(Aq19700101Z\*(Aq, " epoch to ical" ); +\& +\& is( $t1\->year, 1970, " year()" ); +\& is( $t1\->month, 1, " month()" ); +\& is( $t1\->day, 1, " day()" ); +\& +\& # like the tests above, but starting with ical instead of epoch +\& my $t2 = Date::ICal\->new( ical => \*(Aq19700101Z\*(Aq ); +\& is( $t2\->ical, \*(Aq19700101Z\*(Aq, "Start of epoch in ICal notation" ); +\& +\& is( $t2\->epoch, 0, " and back to ICal" ); +\& } +.Ve +.PP +A little bit of magic happens here. When running on anything but MacOS, all +the tests run normally. But when on MacOS, \f(CW\*(C`skip()\*(C'\fR causes the entire +contents of the \s-1SKIP\s0 block to be jumped over. It never runs. Instead, +\&\f(CW\*(C`skip()\*(C'\fR prints special output that tells Test::Harness that the tests have +been skipped. +.PP +.Vb 8 +\& 1..7 +\& ok 1 \- Epoch time of 0 +\& ok 2 # skip epoch to ICal not working on MacOS +\& ok 3 # skip epoch to ICal not working on MacOS +\& ok 4 # skip epoch to ICal not working on MacOS +\& ok 5 # skip epoch to ICal not working on MacOS +\& ok 6 # skip epoch to ICal not working on MacOS +\& ok 7 # skip epoch to ICal not working on MacOS +.Ve +.PP +This means your tests won't fail on MacOS. This means fewer emails +from MacPerl users telling you about failing tests that you know will +never work. You've got to be careful with skip tests. These are for +tests which don't work and \fInever will\fR. It is not for skipping +genuine bugs (we'll get to that in a moment). +.PP +The tests are wholly and completely skipped. [10] This will work. +.PP +.Vb 2 +\& SKIP: { +\& skip("I don\*(Aqt wanna die!"); +\& +\& die, die, die, die, die; +\& } +.Ve +.SS "Todo tests" +.IX Subsection "Todo tests" +While thumbing through the Date::ICal man page, I came across this: +.PP +.Vb 1 +\& ical +\& +\& $ical_string = $ical\->ical; +\& +\& Retrieves, or sets, the date on the object, using any +\& valid ICal date/time string. +.Ve +.PP +\&\*(L"Retrieves or sets\*(R". Hmmm. I didn't see a test for using \f(CW\*(C`ical()\*(C'\fR to set +the date in the Date::ICal test suite. So I wrote one: +.PP +.Vb 2 +\& use Test::More tests => 1; +\& use Date::ICal; +\& +\& my $ical = Date::ICal\->new; +\& $ical\->ical(\*(Aq20201231Z\*(Aq); +\& is( $ical\->ical, \*(Aq20201231Z\*(Aq, \*(AqSetting via ical()\*(Aq ); +.Ve +.PP +Run that. I saw: +.PP +.Vb 6 +\& 1..1 +\& not ok 1 \- Setting via ical() +\& # Failed test (\- at line 6) +\& # got: \*(Aq20010814T233649Z\*(Aq +\& # expected: \*(Aq20201231Z\*(Aq +\& # Looks like you failed 1 tests of 1. +.Ve +.PP +Whoops! Looks like it's unimplemented. Assume you don't have the time to fix +this. [11] Normally, you'd just comment out the test and put a note in a todo +list somewhere. Instead, explicitly state \*(L"this test will fail\*(R" by wrapping it +in a \f(CW\*(C`TODO\*(C'\fR block: +.PP +.Vb 1 +\& use Test::More tests => 1; +\& +\& TODO: { +\& local $TODO = \*(Aqical($ical) not yet implemented\*(Aq; +\& +\& my $ical = Date::ICal\->new; +\& $ical\->ical(\*(Aq20201231Z\*(Aq); +\& +\& is( $ical\->ical, \*(Aq20201231Z\*(Aq, \*(AqSetting via ical()\*(Aq ); +\& } +.Ve +.PP +Now when you run, it's a little different: +.PP +.Vb 4 +\& 1..1 +\& not ok 1 \- Setting via ical() # TODO ical($ical) not yet implemented +\& # got: \*(Aq20010822T201551Z\*(Aq +\& # expected: \*(Aq20201231Z\*(Aq +.Ve +.PP +Test::More doesn't say \*(L"Looks like you failed 1 tests of 1\*(R". That '# +\&\s-1TODO\s0' tells Test::Harness \*(L"this is supposed to fail\*(R" and it treats a +failure as a successful test. You can write tests even before +you've fixed the underlying code. +.PP +If a \s-1TODO\s0 test passes, Test::Harness will report it \*(L"\s-1UNEXPECTEDLY +SUCCEEDED\*(R".\s0 When that happens, remove the \s-1TODO\s0 block with \f(CW\*(C`local $TODO\*(C'\fR and +turn it into a real test. +.SS "Testing with taint mode." +.IX Subsection "Testing with taint mode." +Taint mode is a funny thing. It's the globalest of all global +features. Once you turn it on, it affects \fIall\fR code in your program +and \fIall\fR modules used (and all the modules they use). If a single +piece of code isn't taint clean, the whole thing explodes. With that +in mind, it's very important to ensure your module works under taint +mode. +.PP +It's very simple to have your tests run under taint mode. Just throw +a \f(CW\*(C`\-T\*(C'\fR into the \f(CW\*(C`#!\*(C'\fR line. Test::Harness will read the switches +in \f(CW\*(C`#!\*(C'\fR and use them to run your tests. +.PP +.Vb 1 +\& #!/usr/bin/perl \-Tw +\& +\& ...test normally here... +.Ve +.PP +When you say \f(CW\*(C`make test\*(C'\fR it will run with taint mode on. +.SH "FOOTNOTES" +.IX Header "FOOTNOTES" +.IP "1." 4 +The first number doesn't really mean anything, but it has to be 1. +It's the second number that's important. +.IP "2." 4 +For those following along at home, I'm using version 1.31. It has +some bugs, which is good \*(-- we'll uncover them with our tests. +.IP "3." 4 +You can actually take this one step further and test the manual +itself. Have a look at Test::Inline (formerly Pod::Tests). +.IP "4." 4 +Yes, there's a mistake in the test suite. What! Me, contrived? +.IP "5." 4 +We'll get to testing the contents of lists later. +.IP "6." 4 +But what happens if your test program dies halfway through?! Since we +didn't say how many tests we're going to run, how can we know it +failed? No problem, Test::More employs some magic to catch that death +and turn the test into a failure, even if every test passed up to that +point. +.IP "7." 4 +I cleaned it up a little. +.IP "8." 4 +Most Operating Systems record time as the number of seconds since a +certain date. This date is the beginning of the epoch. Unix's starts +at midnight January 1st, 1970 \s-1GMT.\s0 +.IP "9." 4 +MacOS's epoch is midnight January 1st, 1904. \s-1VMS\s0's is midnight, +November 17th, 1858, but vmsperl emulates the Unix epoch so it's not a +problem. +.IP "10." 4 +As long as the code inside the \s-1SKIP\s0 block at least compiles. Please +don't ask how. No, it's not a filter. +.IP "11." 4 +Do \s-1NOT\s0 be tempted to use \s-1TODO\s0 tests as a way to avoid fixing simple +bugs! +.SH "AUTHORS" +.IX Header "AUTHORS" +Michael G Schwern and the perl-qa dancers! +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2001 by Michael G Schwern . +.PP +This documentation is free; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +Irrespective of its distribution, all code examples in these files +are hereby placed into the public domain. You are permitted and +encouraged to use this code in your own programs for fun +or for profit as you see fit. A simple comment in the code giving +credit would be courteous but is not required. diff --git a/data/miniconda3/man/man3/Test%3A%3Ause%3A%3Aok.3 b/data/miniconda3/man/man3/Test%3A%3Ause%3A%3Aok.3 new file mode 100644 index 0000000000000000000000000000000000000000..50794f2181801467a751d04c92ccbb55acc6dc90 --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3Ause%3A%3Aok.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test::use::ok 3" +.TH Test::use::ok 3 "2020-12-18" "perl v5.32.1" "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" +Test::use::ok \- Alternative to Test::More::use_ok +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ok \*(AqSome::Module\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +According to the \fBTest::More\fR documentation, it is recommended to run +\&\f(CW\*(C`use_ok()\*(C'\fR inside a \f(CW\*(C`BEGIN\*(C'\fR block, so functions are exported at +compile-time and prototypes are properly honored. +.PP +That is, instead of writing this: +.PP +.Vb 2 +\& use_ok( \*(AqSome::Module\*(Aq ); +\& use_ok( \*(AqOther::Module\*(Aq ); +.Ve +.PP +One should write this: +.PP +.Vb 2 +\& BEGIN { use_ok( \*(AqSome::Module\*(Aq ); } +\& BEGIN { use_ok( \*(AqOther::Module\*(Aq ); } +.Ve +.PP +However, people often either forget to add \f(CW\*(C`BEGIN\*(C'\fR, or mistakenly group +\&\f(CW\*(C`use_ok\*(C'\fR with other tests in a single \f(CW\*(C`BEGIN\*(C'\fR block, which can create subtle +differences in execution order. +.PP +With this module, simply change all \f(CW\*(C`use_ok\*(C'\fR in test scripts to \f(CW\*(C`use ok\*(C'\fR, +and they will be executed at \f(CW\*(C`BEGIN\*(C'\fR time. The explicit space after \f(CW\*(C`use\*(C'\fR +makes it clear that this is a single compile-time action. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::More +.SH "MAINTAINER" +.IX Header "MAINTAINER" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "CC0 1.0 Universal" +.IX Header "CC0 1.0 Universal" +To the extent possible under law, \s-1XX\s0 has waived all copyright and related +or neighboring rights to Test-use-ok. +.PP +This work is published from Taiwan. +.PP + diff --git a/data/miniconda3/man/man3/Test.3 b/data/miniconda3/man/man3/Test.3 new file mode 100644 index 0000000000000000000000000000000000000000..b3532dada482207fe1066560411c7eb25a95d196 --- /dev/null +++ b/data/miniconda3/man/man3/Test.3 @@ -0,0 +1,665 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test 3" +.TH Test 3 "2020-12-18" "perl v5.32.1" "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" +Test \- provides a simple framework for writing test scripts +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use strict; +\& use Test; +\& +\& # use a BEGIN block so we print our plan before MyModule is loaded +\& BEGIN { plan tests => 14, todo => [3,4] } +\& +\& # load your module... +\& use MyModule; +\& +\& # Helpful notes. All note\-lines must start with a "#". +\& print "# I\*(Aqm testing MyModule version $MyModule::VERSION\en"; +\& +\& ok(0); # failure +\& ok(1); # success +\& +\& ok(0); # ok, expected failure (see todo list, above) +\& ok(1); # surprise success! +\& +\& ok(0,1); # failure: \*(Aq0\*(Aq ne \*(Aq1\*(Aq +\& ok(\*(Aqbroke\*(Aq,\*(Aqfixed\*(Aq); # failure: \*(Aqbroke\*(Aq ne \*(Aqfixed\*(Aq +\& ok(\*(Aqfixed\*(Aq,\*(Aqfixed\*(Aq); # success: \*(Aqfixed\*(Aq eq \*(Aqfixed\*(Aq +\& ok(\*(Aqfixed\*(Aq,qr/x/); # success: \*(Aqfixed\*(Aq =~ qr/x/ +\& +\& ok(sub { 1+1 }, 2); # success: \*(Aq2\*(Aq eq \*(Aq2\*(Aq +\& ok(sub { 1+1 }, 3); # failure: \*(Aq2\*(Aq ne \*(Aq3\*(Aq +\& +\& my @list = (0,0); +\& ok @list, 3, "\e@list=".join(\*(Aq,\*(Aq,@list); #extra notes +\& ok \*(Aqsegmentation fault\*(Aq, \*(Aq/(?i)success/\*(Aq; #regex match +\& +\& skip( +\& $^O =~ m/MSWin/ ? "Skip if MSWin" : 0, # whether to skip +\& $foo, $bar # arguments just like for ok(...) +\& ); +\& skip( +\& $^O =~ m/MSWin/ ? 0 : "Skip unless MSWin", # whether to skip +\& $foo, $bar # arguments just like for ok(...) +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module simplifies the task of writing test files for Perl modules, +such that their output is in the format that +Test::Harness expects to see. +.SH "QUICK START GUIDE" +.IX Header "QUICK START GUIDE" +To write a test for your new (and probably not even done) module, create +a new file called \fIt/test.t\fR (in a new \fIt\fR directory). If you have +multiple test files, to test the \*(L"foo\*(R", \*(L"bar\*(R", and \*(L"baz\*(R" feature sets, +then feel free to call your files \fIt/foo.t\fR, \fIt/bar.t\fR, and +\&\fIt/baz.t\fR +.SS "Functions" +.IX Subsection "Functions" +This module defines three public functions, \f(CW\*(C`plan(...)\*(C'\fR, \f(CW\*(C`ok(...)\*(C'\fR, +and \f(CW\*(C`skip(...)\*(C'\fR. By default, all three are exported by +the \f(CW\*(C`use Test;\*(C'\fR statement. +.ie n .IP """plan(...)""" 4 +.el .IP "\f(CWplan(...)\fR" 4 +.IX Item "plan(...)" +.Vb 1 +\& BEGIN { plan %theplan; } +.Ve +.Sp +This should be the first thing you call in your test script. It +declares your testing plan, how many there will be, if any of them +should be allowed to fail, and so on. +.Sp +Typical usage is just: +.Sp +.Vb 2 +\& use Test; +\& BEGIN { plan tests => 23 } +.Ve +.Sp +These are the things that you can put in the parameters to plan: +.RS 4 +.ie n .IP """tests => \fInumber\fP""" 4 +.el .IP "\f(CWtests => \f(CInumber\f(CW\fR" 4 +.IX Item "tests => number" +The number of tests in your script. +This means all \fBok()\fR and \fBskip()\fR calls. +.ie n .IP """todo => [\fI1,5,14\fP]""" 4 +.el .IP "\f(CWtodo => [\f(CI1,5,14\f(CW]\fR" 4 +.IX Item "todo => [1,5,14]" +A reference to a list of tests which are allowed to fail. +See \*(L"\s-1TODO TESTS\*(R"\s0. +.ie n .IP """onfail => sub { ... }""" 4 +.el .IP "\f(CWonfail => sub { ... }\fR" 4 +.IX Item "onfail => sub { ... }" +.PD 0 +.ie n .IP """onfail => \e&some_sub""" 4 +.el .IP "\f(CWonfail => \e&some_sub\fR" 4 +.IX Item "onfail => &some_sub" +.PD +A subroutine reference to be run at the end of the test script, if +any of the tests fail. See \*(L"\s-1ONFAIL\*(R"\s0. +.RE +.RS 4 +.Sp +You must call \f(CW\*(C`plan(...)\*(C'\fR once and only once. You should call it +in a \f(CW\*(C`BEGIN {...}\*(C'\fR block, like so: +.Sp +.Vb 1 +\& BEGIN { plan tests => 23 } +.Ve +.RE +.ie n .IP """ok(...)""" 4 +.el .IP "\f(CWok(...)\fR" 4 +.IX Item "ok(...)" +.Vb 3 +\& ok(1 + 1 == 2); +\& ok($have, $expect); +\& ok($have, $expect, $diagnostics); +.Ve +.Sp +This function is the reason for \f(CW\*(C`Test\*(C'\fR's existence. It's +the basic function that +handles printing "\f(CW\*(C`ok\*(C'\fR\*(L" or \*(R"\f(CW\*(C`not ok\*(C'\fR", along with the +current test number. (That's what \f(CW\*(C`Test::Harness\*(C'\fR wants to see.) +.Sp +In its most basic usage, \f(CW\*(C`ok(...)\*(C'\fR simply takes a single scalar +expression. If its value is true, the test passes; if false, +the test fails. Examples: +.Sp +.Vb 1 +\& # Examples of ok(scalar) +\& +\& ok( 1 + 1 == 2 ); # ok if 1 + 1 == 2 +\& ok( $foo =~ /bar/ ); # ok if $foo contains \*(Aqbar\*(Aq +\& ok( baz($x + $y) eq \*(AqArmondo\*(Aq ); # ok if baz($x + $y) returns +\& # \*(AqArmondo\*(Aq +\& ok( @a == @b ); # ok if @a and @b are the same +\& # length +.Ve +.Sp +The expression is evaluated in scalar context. So the following will +work: +.Sp +.Vb 4 +\& ok( @stuff ); # ok if @stuff has any +\& # elements +\& ok( !grep !defined $_, @stuff ); # ok if everything in @stuff +\& # is defined. +.Ve +.Sp +A special case is if the expression is a subroutine reference (in either +\&\f(CW\*(C`sub {...}\*(C'\fR syntax or \f(CW\*(C`\e&foo\*(C'\fR syntax). In +that case, it is executed and its value (true or false) determines if +the test passes or fails. For example, +.Sp +.Vb 5 +\& ok( sub { # See whether sleep works at least passably +\& my $start_time = time; +\& sleep 5; +\& time() \- $start_time >= 4 +\& }); +.Ve +.Sp +In its two-argument form, \f(CW\*(C`ok(\f(CIarg1\f(CW, \f(CIarg2\f(CW)\*(C'\fR compares the two +scalar values to see if they match. They match if both are undefined, +or if \fIarg2\fR is a regex that matches \fIarg1\fR, or if they compare equal +with \f(CW\*(C`eq\*(C'\fR. +.Sp +.Vb 1 +\& # Example of ok(scalar, scalar) +\& +\& ok( "this", "that" ); # not ok, \*(Aqthis\*(Aq ne \*(Aqthat\*(Aq +\& ok( "", undef ); # not ok, "" is defined +.Ve +.Sp +The second argument is considered a regex if it is either a regex +object or a string that looks like a regex. Regex objects are +constructed with the qr// operator in recent versions of perl. A +string is considered to look like a regex if its first and last +characters are \*(L"/\*(R", or if the first character is \*(L"m\*(R" +and its second and last characters are both the +same non-alphanumeric non-whitespace character. These regexp +.Sp +Regex examples: +.Sp +.Vb 4 +\& ok( \*(AqJaffO\*(Aq, \*(Aq/Jaff/\*(Aq ); # ok, \*(AqJaffO\*(Aq =~ /Jaff/ +\& ok( \*(AqJaffO\*(Aq, \*(Aqm|Jaff|\*(Aq ); # ok, \*(AqJaffO\*(Aq =~ m|Jaff| +\& ok( \*(AqJaffO\*(Aq, qr/Jaff/ ); # ok, \*(AqJaffO\*(Aq =~ qr/Jaff/; +\& ok( \*(AqJaffO\*(Aq, \*(Aq/(?i)jaff/ ); # ok, \*(AqJaffO\*(Aq =~ /jaff/i; +.Ve +.Sp +If either (or both!) is a subroutine reference, it is run and used +as the value for comparing. For example: +.Sp +.Vb 10 +\& ok sub { +\& open(OUT, \*(Aq>\*(Aq, \*(Aqx.dat\*(Aq) || die $!; +\& print OUT "\ex{e000}"; +\& close OUT; +\& my $bytecount = \-s \*(Aqx.dat\*(Aq; +\& unlink \*(Aqx.dat\*(Aq or warn "Can\*(Aqt unlink : $!"; +\& return $bytecount; +\& }, +\& 4 +\& ; +.Ve +.Sp +The above test passes two values to \f(CW\*(C`ok(arg1, arg2)\*(C'\fR \*(-- the first +a coderef, and the second is the number 4. Before \f(CW\*(C`ok\*(C'\fR compares them, +it calls the coderef, and uses its return value as the real value of +this parameter. Assuming that \f(CW$bytecount\fR returns 4, \f(CW\*(C`ok\*(C'\fR ends up +testing \f(CW\*(C`4 eq 4\*(C'\fR. Since that's true, this test passes. +.Sp +Finally, you can append an optional third argument, in +\&\f(CW\*(C`ok(\f(CIarg1\f(CW,\f(CIarg2\f(CW, \f(CInote\f(CW)\*(C'\fR, where \fInote\fR is a string value that +will be printed if the test fails. This should be some useful +information about the test, pertaining to why it failed, and/or +a description of the test. For example: +.Sp +.Vb 4 +\& ok( grep($_ eq \*(Aqsomething unique\*(Aq, @stuff), 1, +\& "Something that should be unique isn\*(Aqt!\en". +\& \*(Aq@stuff = \*(Aq.join \*(Aq, \*(Aq, @stuff +\& ); +.Ve +.Sp +Unfortunately, a note cannot be used with the single argument +style of \f(CW\*(C`ok()\*(C'\fR. That is, if you try \f(CW\*(C`ok(\f(CIarg1\f(CW, \f(CInote\f(CW)\*(C'\fR, then +\&\f(CW\*(C`Test\*(C'\fR will interpret this as \f(CW\*(C`ok(\f(CIarg1\f(CW, \f(CIarg2\f(CW)\*(C'\fR, and probably +end up testing \f(CW\*(C`\f(CIarg1\f(CW eq \f(CIarg2\f(CW\*(C'\fR \*(-- and that's not what you want! +.Sp +All of the above special cases can occasionally cause some +problems. See \*(L"\s-1BUGS\s0 and \s-1CAVEATS\*(R"\s0. +.ie n .IP """skip(\fIskip_if_true\fP, \fIargs...\fP)""" 4 +.el .IP "\f(CWskip(\f(CIskip_if_true\f(CW, \f(CIargs...\f(CW)\fR" 4 +.IX Item "skip(skip_if_true, args...)" +This is used for tests that under some conditions can be skipped. It's +basically equivalent to: +.Sp +.Vb 5 +\& if( $skip_if_true ) { +\& ok(1); +\& } else { +\& ok( args... ); +\& } +.Ve +.Sp +\&...except that the \f(CWok(1)\fR emits not just "\f(CW\*(C`ok \f(CItestnum\f(CW\*(C'\fR\*(L" but +actually \*(R"\f(CW\*(C`ok \f(CItestnum\f(CW # \f(CIskip_if_true_value\f(CW\*(C'\fR". +.Sp +The arguments after the \fIskip_if_true\fR are what is fed to \f(CW\*(C`ok(...)\*(C'\fR if +this test isn't skipped. +.Sp +Example usage: +.Sp +.Vb 2 +\& my $if_MSWin = +\& $^O =~ m/MSWin/ ? \*(AqSkip if under MSWin\*(Aq : \*(Aq\*(Aq; +\& +\& # A test to be skipped if under MSWin (i.e., run except under +\& # MSWin) +\& skip($if_MSWin, thing($foo), thing($bar) ); +.Ve +.Sp +Or, going the other way: +.Sp +.Vb 2 +\& my $unless_MSWin = +\& $^O =~ m/MSWin/ ? \*(Aq\*(Aq : \*(AqSkip unless under MSWin\*(Aq; +\& +\& # A test to be skipped unless under MSWin (i.e., run only under +\& # MSWin) +\& skip($unless_MSWin, thing($foo), thing($bar) ); +.Ve +.Sp +The tricky thing to remember is that the first parameter is true if +you want to \fIskip\fR the test, not \fIrun\fR it; and it also doubles as a +note about why it's being skipped. So in the first codeblock above, read +the code as "skip if MSWin \*(-- (otherwise) test whether \f(CW\*(C`thing($foo)\*(C'\fR is +\&\f(CW\*(C`thing($bar)\*(C'\fR\*(L" or for the second case, \*(R"skip unless MSWin...". +.Sp +Also, when your \fIskip_if_reason\fR string is true, it really should (for +backwards compatibility with older Test.pm versions) start with the +string \*(L"Skip\*(R", as shown in the above examples. +.Sp +Note that in the above cases, \f(CW\*(C`thing($foo)\*(C'\fR and \f(CW\*(C`thing($bar)\*(C'\fR +\&\fIare\fR evaluated \*(-- but as long as the \f(CW\*(C`skip_if_true\*(C'\fR is true, +then we \f(CW\*(C`skip(...)\*(C'\fR just tosses out their value (i.e., not +bothering to treat them like values to \f(CW\*(C`ok(...)\*(C'\fR. But if +you need to \fInot\fR eval the arguments when skipping the +test, use +this format: +.Sp +.Vb 7 +\& skip( $unless_MSWin, +\& sub { +\& # This code returns true if the test passes. +\& # (But it doesn\*(Aqt even get called if the test is skipped.) +\& thing($foo) eq thing($bar) +\& } +\& ); +.Ve +.Sp +or even this, which is basically equivalent: +.Sp +.Vb 3 +\& skip( $unless_MSWin, +\& sub { thing($foo) }, sub { thing($bar) } +\& ); +.Ve +.Sp +That is, both are like this: +.Sp +.Vb 7 +\& if( $unless_MSWin ) { +\& ok(1); # but it actually appends "# $unless_MSWin" +\& # so that Test::Harness can tell it\*(Aqs a skip +\& } else { +\& # Not skipping, so actually call and evaluate... +\& ok( sub { thing($foo) }, sub { thing($bar) } ); +\& } +.Ve +.SH "TEST TYPES" +.IX Header "TEST TYPES" +.IP "\(bu" 4 +\&\s-1NORMAL TESTS\s0 +.Sp +These tests are expected to succeed. Usually, most or all of your tests +are in this category. If a normal test doesn't succeed, then that +means that something is \fIwrong\fR. +.IP "\(bu" 4 +\&\s-1SKIPPED TESTS\s0 +.Sp +The \f(CW\*(C`skip(...)\*(C'\fR function is for tests that might or might not be +possible to run, depending +on the availability of platform-specific features. The first argument +should evaluate to true (think \*(L"yes, please skip\*(R") if the required +feature is \fInot\fR available. After the first argument, \f(CW\*(C`skip(...)\*(C'\fR works +exactly the same way as \f(CW\*(C`ok(...)\*(C'\fR does. +.IP "\(bu" 4 +\&\s-1TODO TESTS\s0 +.Sp +\&\s-1TODO\s0 tests are designed for maintaining an \fBexecutable \s-1TODO\s0 list\fR. +These tests are \fIexpected to fail.\fR If a \s-1TODO\s0 test does succeed, +then the feature in question shouldn't be on the \s-1TODO\s0 list, now +should it? +.Sp +Packages should \s-1NOT\s0 be released with succeeding \s-1TODO\s0 tests. As soon +as a \s-1TODO\s0 test starts working, it should be promoted to a normal test, +and the newly working feature should be documented in the release +notes or in the change log. +.SH "ONFAIL" +.IX Header "ONFAIL" +.Vb 1 +\& BEGIN { plan test => 4, onfail => sub { warn "CALL 911!" } } +.Ve +.PP +Although test failures should be enough, extra diagnostics can be +triggered at the end of a test run. \f(CW\*(C`onfail\*(C'\fR is passed an array ref +of hash refs that describe each test failure. Each hash will contain +at least the following fields: \f(CW\*(C`package\*(C'\fR, \f(CW\*(C`repetition\*(C'\fR, and +\&\f(CW\*(C`result\*(C'\fR. (You shouldn't rely on any other fields being present.) If the test +had an expected value or a diagnostic (or \*(L"note\*(R") string, these will also be +included. +.PP +The \fIoptional\fR \f(CW\*(C`onfail\*(C'\fR hook might be used simply to print out the +version of your package and/or how to report problems. It might also +be used to generate extremely sophisticated diagnostics for a +particularly bizarre test failure. However it's not a panacea. Core +dumps or other unrecoverable errors prevent the \f(CW\*(C`onfail\*(C'\fR hook from +running. (It is run inside an \f(CW\*(C`END\*(C'\fR block.) Besides, \f(CW\*(C`onfail\*(C'\fR is +probably over-kill in most cases. (Your test code should be simpler +than the code it is testing, yes?) +.SH "BUGS and CAVEATS" +.IX Header "BUGS and CAVEATS" +.IP "\(bu" 4 +\&\f(CW\*(C`ok(...)\*(C'\fR's special handing of strings which look like they might be +regexes can also cause unexpected behavior. An innocent: +.Sp +.Vb 1 +\& ok( $fileglob, \*(Aq/path/to/some/*stuff/\*(Aq ); +.Ve +.Sp +will fail, since Test.pm considers the second argument to be a regex! +The best bet is to use the one-argument form: +.Sp +.Vb 1 +\& ok( $fileglob eq \*(Aq/path/to/some/*stuff/\*(Aq ); +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`ok(...)\*(C'\fR's use of string \f(CW\*(C`eq\*(C'\fR can sometimes cause odd problems +when comparing +numbers, especially if you're casting a string to a number: +.Sp +.Vb 2 +\& $foo = "1.0"; +\& ok( $foo, 1 ); # not ok, "1.0" ne 1 +.Ve +.Sp +Your best bet is to use the single argument form: +.Sp +.Vb 1 +\& ok( $foo == 1 ); # ok "1.0" == 1 +.Ve +.IP "\(bu" 4 +As you may have inferred from the above documentation and examples, +\&\f(CW\*(C`ok\*(C'\fR's prototype is \f(CW\*(C`($;$$)\*(C'\fR (and, incidentally, \f(CW\*(C`skip\*(C'\fR's is +\&\f(CW\*(C`($;$$$)\*(C'\fR). This means, for example, that you can do \f(CW\*(C`ok @foo, @bar\*(C'\fR +to compare the \fIsize\fR of the two arrays. But don't be fooled into +thinking that \f(CW\*(C`ok @foo, @bar\*(C'\fR means a comparison of the contents of two +arrays \*(-- you're comparing \fIjust\fR the number of elements of each. It's +so easy to make that mistake in reading \f(CW\*(C`ok @foo, @bar\*(C'\fR that you might +want to be very explicit about it, and instead write \f(CW\*(C`ok scalar(@foo), +scalar(@bar)\*(C'\fR. +.IP "\(bu" 4 +This almost definitely doesn't do what you expect: +.Sp +.Vb 1 +\& ok $thingy\->can(\*(Aqsome_method\*(Aq); +.Ve +.Sp +Why? Because \f(CW\*(C`can\*(C'\fR returns a coderef to mean \*(L"yes it can (and the +method is this...)\*(R", and then \f(CW\*(C`ok\*(C'\fR sees a coderef and thinks you're +passing a function that you want it to call and consider the truth of +the result of! I.e., just like: +.Sp +.Vb 1 +\& ok $thingy\->can(\*(Aqsome_method\*(Aq)\->(); +.Ve +.Sp +What you probably want instead is this: +.Sp +.Vb 1 +\& ok $thingy\->can(\*(Aqsome_method\*(Aq) && 1; +.Ve +.Sp +If the \f(CW\*(C`can\*(C'\fR returns false, then that is passed to \f(CW\*(C`ok\*(C'\fR. If it +returns true, then the larger expression \f(CW\*(C`$thingy\->can(\*(Aqsome_method\*(Aq)\ &&\ 1\*(C'\fR returns 1, which \f(CW\*(C`ok\*(C'\fR sees as +a simple signal of success, as you would expect. +.IP "\(bu" 4 +The syntax for \f(CW\*(C`skip\*(C'\fR is about the only way it can be, but it's still +quite confusing. Just start with the above examples and you'll +be okay. +.Sp +Moreover, users may expect this: +.Sp +.Vb 1 +\& skip $unless_mswin, foo($bar), baz($quux); +.Ve +.Sp +to not evaluate \f(CW\*(C`foo($bar)\*(C'\fR and \f(CW\*(C`baz($quux)\*(C'\fR when the test is being +skipped. But in reality, they \fIare\fR evaluated, but \f(CW\*(C`skip\*(C'\fR just won't +bother comparing them if \f(CW$unless_mswin\fR is true. +.Sp +You could do this: +.Sp +.Vb 1 +\& skip $unless_mswin, sub{foo($bar)}, sub{baz($quux)}; +.Ve +.Sp +But that's not terribly pretty. You may find it simpler or clearer in +the long run to just do things like this: +.Sp +.Vb 10 +\& if( $^O =~ m/MSWin/ ) { +\& print "# Yay, we\*(Aqre under $^O\en"; +\& ok foo($bar), baz($quux); +\& ok thing($whatever), baz($stuff); +\& ok blorp($quux, $whatever); +\& ok foo($barzbarz), thang($quux); +\& } else { +\& print "# Feh, we\*(Aqre under $^O. Watch me skip some tests...\en"; +\& for(1 .. 4) { skip "Skip unless under MSWin" } +\& } +.Ve +.Sp +But be quite sure that \f(CW\*(C`ok\*(C'\fR is called exactly as many times in the +first block as \f(CW\*(C`skip\*(C'\fR is called in the second block. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +If \f(CW\*(C`PERL_TEST_DIFF\*(C'\fR environment variable is set, it will be used as a +command for comparing unexpected multiline results. If you have \s-1GNU\s0 +diff installed, you might want to set \f(CW\*(C`PERL_TEST_DIFF\*(C'\fR to \f(CW\*(C`diff \-u\*(C'\fR. +If you don't have a suitable program, you might install the +\&\f(CW\*(C`Text::Diff\*(C'\fR module and then set \f(CW\*(C`PERL_TEST_DIFF\*(C'\fR to be \f(CW\*(C`perl +\&\-MText::Diff \-e \*(Aqprint diff(@ARGV)\*(Aq\*(C'\fR. If \f(CW\*(C`PERL_TEST_DIFF\*(C'\fR isn't set +but the \f(CW\*(C`Algorithm::Diff\*(C'\fR module is available, then it will be used +to show the differences in multiline results. +.SH "NOTE" +.IX Header "NOTE" +A past developer of this module once said that it was no longer being +actively developed. However, rumors of its demise were greatly +exaggerated. Feedback and suggestions are quite welcome. +.PP +Be aware that the main value of this module is its simplicity. Note +that there are already more ambitious modules out there, such as +Test::More and Test::Unit. +.PP +Some earlier versions of this module had docs with some confusing +typos in the description of \f(CW\*(C`skip(...)\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test::Harness +.PP +Test::Simple, Test::More, Devel::Cover +.PP +Test::Builder for building your own testing library. +.PP +Test::Unit is an interesting XUnit-style testing library. +.PP +Test::Inline lets you embed tests in code. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright (c) 1998\-2000 Joshua Nathaniel Pritikin. +.PP +Copyright (c) 2001\-2002 Michael G. Schwern. +.PP +Copyright (c) 2002\-2004 Sean M. Burke. +.PP +Current maintainer: Jesse Vincent. +.PP +This package is free software and is provided \*(L"as is\*(R" without express +or implied warranty. It may be used, redistributed and/or modified +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3ABreakage.3 b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3ABreakage.3 new file mode 100644 index 0000000000000000000000000000000000000000..757cea964f654370cfbdbd1e224f3e24e5fb1d03 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3ABreakage.3 @@ -0,0 +1,205 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::API::Breakage 3" +.TH Test2::API::Breakage 3 "2020-12-18" "perl v5.32.1" "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" +Test2::API::Breakage \- What breaks at what version +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides lists of modules that are broken, or have been broken in +the past, when upgrading Test::Builder to use Test2. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +These can be imported, or called as methods on the class. +.ie n .IP "%mod_ver = \fBupgrade_suggested()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = \fBupgrade_suggested()\fR" 4 +.IX Item "%mod_ver = upgrade_suggested()" +.PD 0 +.ie n .IP "%mod_ver = Test2::API::Breakage\->\fBupgrade_suggested()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = Test2::API::Breakage\->\fBupgrade_suggested()\fR" 4 +.IX Item "%mod_ver = Test2::API::Breakage->upgrade_suggested()" +.PD +This returns key/value pairs. The key is the module name, the value is the +version number. If the installed version of the module is at or below the +specified one then an upgrade would be a good idea, but not strictly necessary. +.ie n .IP "%mod_ver = \fBupgrade_required()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = \fBupgrade_required()\fR" 4 +.IX Item "%mod_ver = upgrade_required()" +.PD 0 +.ie n .IP "%mod_ver = Test2::API::Breakage\->\fBupgrade_required()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = Test2::API::Breakage\->\fBupgrade_required()\fR" 4 +.IX Item "%mod_ver = Test2::API::Breakage->upgrade_required()" +.PD +This returns key/value pairs. The key is the module name, the value is the +version number. If the installed version of the module is at or below the +specified one then an upgrade is required for the module to work properly. +.ie n .IP "%mod_ver = \fBknown_broken()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = \fBknown_broken()\fR" 4 +.IX Item "%mod_ver = known_broken()" +.PD 0 +.ie n .IP "%mod_ver = Test2::API::Breakage\->\fBknown_broken()\fR" 4 +.el .IP "\f(CW%mod_ver\fR = Test2::API::Breakage\->\fBknown_broken()\fR" 4 +.IX Item "%mod_ver = Test2::API::Breakage->known_broken()" +.PD +This returns key/value pairs. The key is the module name, the value is the +version number. If the installed version of the module is at or below the +specified one then the module will not work. A newer version may work, but is +not tested or verified. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AContext.3 b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AContext.3 new file mode 100644 index 0000000000000000000000000000000000000000..ef6b376655fa8fbb4f9323708820ec8a978aa625 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AContext.3 @@ -0,0 +1,689 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::API::Context 3" +.TH Test2::API::Context 3 "2020-12-18" "perl v5.32.1" "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" +Test2::API::Context \- Object to represent a testing context. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The context object is the primary interface for authors of testing tools +written with Test2. The context object represents the context in +which a test takes place (File and Line Number), and provides a quick way to +generate events from that context. The context object also takes care of +sending events to the correct Test2::Hub instance. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +In general you will not be creating contexts directly. To obtain a context you +should always use \f(CW\*(C`context()\*(C'\fR which is exported by the Test2::API module. +.PP +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub my_ok { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& +\& if ($bool) { +\& $ctx\->pass($name); +\& } +\& else { +\& $ctx\->fail($name); +\& } +\& +\& $ctx\->release; # You MUST do this! +\& return $bool; +\& } +.Ve +.PP +Context objects make it easy to wrap other tools that also use context. Once +you grab a context, any tool you call before releasing your context will +inherit it: +.PP +.Vb 4 +\& sub wrapper { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& $ctx\->diag("wrapping my_ok"); +\& +\& my $out = my_ok($bool, $name); +\& $ctx\->release; # You MUST do this! +\& return $out; +\& } +.Ve +.SH "CRITICAL DETAILS" +.IX Header "CRITICAL DETAILS" +.IP "you \s-1MUST\s0 always use the \fBcontext()\fR sub from Test2::API" 4 +.IX Item "you MUST always use the context() sub from Test2::API" +Creating your own context via \f(CW\*(C`Test2::API::Context\->new()\*(C'\fR will almost never +produce a desirable result. Use \f(CW\*(C`context()\*(C'\fR which is exported by Test2::API. +.Sp +There are a handful of cases where a tool author may want to create a new +context by hand, which is why the \f(CW\*(C`new\*(C'\fR method exists. Unless you really know +what you are doing you should avoid this. +.IP "You \s-1MUST\s0 always release the context when done with it" 4 +.IX Item "You MUST always release the context when done with it" +Releasing the context tells the system you are done with it. This gives it a +chance to run any necessary callbacks or cleanup tasks. If you forget to +release the context it will try to detect the problem and warn you about it. +.IP "You \s-1MUST NOT\s0 pass context objects around" 4 +.IX Item "You MUST NOT pass context objects around" +When you obtain a context object it is made specifically for your tool and any +tools nested within. If you pass a context around you run the risk of polluting +other tools with incorrect context information. +.Sp +If you are certain that you want a different tool to use the same context you +may pass it a snapshot. \f(CW\*(C`$ctx\->snapshot\*(C'\fR will give you a shallow clone of +the context that is safe to pass around or store. +.IP "You \s-1MUST NOT\s0 store or cache a context for later" 4 +.IX Item "You MUST NOT store or cache a context for later" +As long as a context exists for a given hub, all tools that try to get a +context will get the existing instance. If you try to store the context you +will pollute other tools with incorrect context information. +.Sp +If you are certain that you want to save the context for later, you can use a +snapshot. \f(CW\*(C`$ctx\->snapshot\*(C'\fR will give you a shallow clone of the context +that is safe to pass around or store. +.Sp +\&\f(CW\*(C`context()\*(C'\fR has some mechanisms to protect you if you do cause a context to +persist beyond the scope in which it was obtained. In practice you should not +rely on these protections, and they are fairly noisy with warnings. +.IP "You \s-1SHOULD\s0 obtain your context as soon as possible in a given tool" 4 +.IX Item "You SHOULD obtain your context as soon as possible in a given tool" +You never know what tools you call from within your own tool will need a +context. Obtaining the context early ensures that nested tools can find the +context you want them to find. +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$ctx\->done_testing;" 4 +.el .IP "\f(CW$ctx\fR\->done_testing;" 4 +.IX Item "$ctx->done_testing;" +Note that testing is finished. If no plan has been set this will generate a +Plan event. +.ie n .IP "$clone = $ctx\->\fBsnapshot()\fR" 4 +.el .IP "\f(CW$clone\fR = \f(CW$ctx\fR\->\fBsnapshot()\fR" 4 +.IX Item "$clone = $ctx->snapshot()" +This will return a shallow clone of the context. The shallow clone is safe to +store for later. +.ie n .IP "$ctx\->\fBrelease()\fR" 4 +.el .IP "\f(CW$ctx\fR\->\fBrelease()\fR" 4 +.IX Item "$ctx->release()" +This will release the context. This runs cleanup tasks, and several important +hooks. It will also restore \f(CW$!\fR, \f(CW$?\fR, and \f(CW$@\fR to what they were when the +context was created. +.Sp +\&\fBNote:\fR If a context is acquired more than once an internal refcount is kept. +\&\f(CW\*(C`release()\*(C'\fR decrements the ref count, none of the other actions of +\&\f(CW\*(C`release()\*(C'\fR will occur unless the refcount hits 0. This means only the last +call to \f(CW\*(C`release()\*(C'\fR will reset \f(CW$?\fR, \f(CW$!\fR, \f(CW$@\fR,and run the cleanup tasks. +.ie n .IP "$ctx\->throw($message)" 4 +.el .IP "\f(CW$ctx\fR\->throw($message)" 4 +.IX Item "$ctx->throw($message)" +This will throw an exception reporting to the file and line number of the +context. This will also release the context for you. +.ie n .IP "$ctx\->alert($message)" 4 +.el .IP "\f(CW$ctx\fR\->alert($message)" 4 +.IX Item "$ctx->alert($message)" +This will issue a warning from the file and line number of the context. +.ie n .IP "$stack = $ctx\->\fBstack()\fR" 4 +.el .IP "\f(CW$stack\fR = \f(CW$ctx\fR\->\fBstack()\fR" 4 +.IX Item "$stack = $ctx->stack()" +This will return the Test2::API::Stack instance the context used to find +the current hub. +.ie n .IP "$hub = $ctx\->\fBhub()\fR" 4 +.el .IP "\f(CW$hub\fR = \f(CW$ctx\fR\->\fBhub()\fR" 4 +.IX Item "$hub = $ctx->hub()" +This will return the Test2::Hub instance the context recognizes as the +current one to which all events should be sent. +.ie n .IP "$dbg = $ctx\->\fBtrace()\fR" 4 +.el .IP "\f(CW$dbg\fR = \f(CW$ctx\fR\->\fBtrace()\fR" 4 +.IX Item "$dbg = $ctx->trace()" +This will return the Test2::EventFacet::Trace instance used by the context. +.ie n .IP "$ctx\->do_in_context(\e&code, @args);" 4 +.el .IP "\f(CW$ctx\fR\->do_in_context(\e&code, \f(CW@args\fR);" 4 +.IX Item "$ctx->do_in_context(&code, @args);" +Sometimes you have a context that is not current, and you want things to use it +as the current one. In these cases you can call +\&\f(CW\*(C`$ctx\->do_in_context(sub { ... })\*(C'\fR. The codeblock will be run, and +anything inside of it that looks for a context will find the one on which the +method was called. +.Sp +This \fB\s-1DOES NOT\s0\fR affect context on other hubs, only the hub used by the context +will be affected. +.Sp +.Vb 4 +\& my $ctx = ...; +\& $ctx\->do_in_context(sub { +\& my $ctx = context(); # returns the $ctx the sub is called on +\& }); +.Ve +.Sp +\&\fBNote:\fR The context will actually be cloned, the clone will be used instead of +the original. This allows the thread id, process id, and error variables to be correct without +modifying the original context. +.ie n .IP "$ctx\->\fBrestore_error_vars()\fR" 4 +.el .IP "\f(CW$ctx\fR\->\fBrestore_error_vars()\fR" 4 +.IX Item "$ctx->restore_error_vars()" +This will set \f(CW$!\fR, \f(CW$?\fR, and \f(CW$@\fR to what they were when the context was +created. There is no localization or anything done here, calling this method +will actually set these vars. +.ie n .IP "$! = $ctx\->\fBerrno()\fR" 4 +.el .IP "$! = \f(CW$ctx\fR\->\fBerrno()\fR" 4 +.IX Item "$! = $ctx->errno()" +The (numeric) value of \f(CW$!\fR when the context was created. +.ie n .IP "$? = $ctx\->\fBchild_error()\fR" 4 +.el .IP "$? = \f(CW$ctx\fR\->\fBchild_error()\fR" 4 +.IX Item "$? = $ctx->child_error()" +The value of \f(CW$?\fR when the context was created. +.ie n .IP "$@ = $ctx\->\fBeval_error()\fR" 4 +.el .IP "$@ = \f(CW$ctx\fR\->\fBeval_error()\fR" 4 +.IX Item "$@ = $ctx->eval_error()" +The value of \f(CW$@\fR when the context was created. +.SS "\s-1EVENT PRODUCTION METHODS\s0" +.IX Subsection "EVENT PRODUCTION METHODS" +\&\fBWhich one do I use?\fR +.PP +The \f(CW\*(C`pass*\*(C'\fR and \f(CW\*(C`fail*\*(C'\fR are optimal if they meet your situation, using one of +them will always be the most optimal. That said they are optimal by eliminating +many features. +.PP +Method such as \f(CW\*(C`ok\*(C'\fR, and \f(CW\*(C`note\*(C'\fR are shortcuts for generating common 1\-task +events based on the old \s-1API,\s0 however they are forward compatible, and easy to +use. If these meet your needs then go ahead and use them, but please check back +often for alternatives that may be added. +.PP +If you want to generate new style events, events that do many things at once, +then you want the \f(CW\*(C`*ev2*\*(C'\fR methods. These let you directly specify which facets +you wish to use. +.ie n .IP "$event = $ctx\->\fBpass()\fR" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->\fBpass()\fR" 4 +.IX Item "$event = $ctx->pass()" +.PD 0 +.ie n .IP "$event = $ctx\->pass($name)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->pass($name)" 4 +.IX Item "$event = $ctx->pass($name)" +.PD +This will send and return an Test2::Event::Pass event. You may optionally +provide a \f(CW$name\fR for the assertion. +.Sp +The Test2::Event::Pass is a specially crafted and optimized event, using +this will help the performance of passing tests. +.ie n .IP "$true = $ctx\->\fBpass_and_release()\fR" 4 +.el .IP "\f(CW$true\fR = \f(CW$ctx\fR\->\fBpass_and_release()\fR" 4 +.IX Item "$true = $ctx->pass_and_release()" +.PD 0 +.ie n .IP "$true = $ctx\->pass_and_release($name)" 4 +.el .IP "\f(CW$true\fR = \f(CW$ctx\fR\->pass_and_release($name)" 4 +.IX Item "$true = $ctx->pass_and_release($name)" +.PD +This is a combination of \f(CW\*(C`pass()\*(C'\fR and \f(CW\*(C`release()\*(C'\fR. You can use this if you do +not plan to do anything with the context after sending the event. This helps +write more clear and compact code. +.Sp +.Vb 4 +\& sub shorthand { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& return $ctx\->pass_and_release($name) if $bool; +\& +\& ... Handle a failure ... +\& } +\& +\& sub longform { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& +\& if ($bool) { +\& $ctx\->pass($name); +\& $ctx\->release; +\& return 1; +\& } +\& +\& ... Handle a failure ... +\& } +.Ve +.ie n .IP "my $event = $ctx\->\fBfail()\fR" 4 +.el .IP "my \f(CW$event\fR = \f(CW$ctx\fR\->\fBfail()\fR" 4 +.IX Item "my $event = $ctx->fail()" +.PD 0 +.ie n .IP "my $event = $ctx\->fail($name)" 4 +.el .IP "my \f(CW$event\fR = \f(CW$ctx\fR\->fail($name)" 4 +.IX Item "my $event = $ctx->fail($name)" +.ie n .IP "my $event = $ctx\->fail($name, @diagnostics)" 4 +.el .IP "my \f(CW$event\fR = \f(CW$ctx\fR\->fail($name, \f(CW@diagnostics\fR)" 4 +.IX Item "my $event = $ctx->fail($name, @diagnostics)" +.PD +This lets you send an Test2::Event::Fail event. You may optionally provide a +\&\f(CW$name\fR and \f(CW@diagnostics\fR messages. +.Sp +Diagnostics messages can be simple strings, data structures, or instances of +Test2::EventFacet::Info::Table (which are converted inline into the +Test2::EventFacet::Info structure). +.ie n .IP "my $false = $ctx\->\fBfail_and_release()\fR" 4 +.el .IP "my \f(CW$false\fR = \f(CW$ctx\fR\->\fBfail_and_release()\fR" 4 +.IX Item "my $false = $ctx->fail_and_release()" +.PD 0 +.ie n .IP "my $false = $ctx\->fail_and_release($name)" 4 +.el .IP "my \f(CW$false\fR = \f(CW$ctx\fR\->fail_and_release($name)" 4 +.IX Item "my $false = $ctx->fail_and_release($name)" +.ie n .IP "my $false = $ctx\->fail_and_release($name, @diagnostics)" 4 +.el .IP "my \f(CW$false\fR = \f(CW$ctx\fR\->fail_and_release($name, \f(CW@diagnostics\fR)" 4 +.IX Item "my $false = $ctx->fail_and_release($name, @diagnostics)" +.PD +This is a combination of \f(CW\*(C`fail()\*(C'\fR and \f(CW\*(C`release()\*(C'\fR. This can be used to write +clearer and shorter code. +.Sp +.Vb 4 +\& sub shorthand { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& return $ctx\->fail_and_release($name) unless $bool; +\& +\& ... Handle a success ... +\& } +\& +\& sub longform { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& +\& unless ($bool) { +\& $ctx\->pass($name); +\& $ctx\->release; +\& return 1; +\& } +\& +\& ... Handle a success ... +\& } +.Ve +.ie n .IP "$event = $ctx\->ok($bool, $name)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->ok($bool, \f(CW$name\fR)" 4 +.IX Item "$event = $ctx->ok($bool, $name)" +.PD 0 +.ie n .IP "$event = $ctx\->ok($bool, $name, \e@on_fail)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->ok($bool, \f(CW$name\fR, \e@on_fail)" 4 +.IX Item "$event = $ctx->ok($bool, $name, @on_fail)" +.PD +\&\fB\s-1NOTE:\s0\fR Use of this method is discouraged in favor of \f(CW\*(C`pass()\*(C'\fR and \f(CW\*(C`fail()\*(C'\fR +which produce Test2::Event::Pass and Test2::Event::Fail events. These +newer event types are faster and less crufty. +.Sp +This will create an Test2::Event::Ok object for you. If \f(CW$bool\fR is false +then an Test2::Event::Diag event will be sent as well with details about the +failure. If you do not want automatic diagnostics you should use the +\&\f(CW\*(C`send_event()\*(C'\fR method directly. +.Sp +The third argument \f(CW\*(C`\e@on_fail\*(C'\fR) is an optional set of diagnostics to be sent in +the event of a test failure. Unlike with \f(CW\*(C`fail()\*(C'\fR these diagnostics must be +plain strings, data structures are not supported. +.ie n .IP "$event = $ctx\->note($message)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->note($message)" 4 +.IX Item "$event = $ctx->note($message)" +Send an Test2::Event::Note. This event prints a message to \s-1STDOUT.\s0 +.ie n .IP "$event = $ctx\->diag($message)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->diag($message)" 4 +.IX Item "$event = $ctx->diag($message)" +Send an Test2::Event::Diag. This event prints a message to \s-1STDERR.\s0 +.ie n .IP "$event = $ctx\->plan($max)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->plan($max)" 4 +.IX Item "$event = $ctx->plan($max)" +.PD 0 +.ie n .IP "$event = $ctx\->plan(0, '\s-1SKIP\s0', $reason)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->plan(0, '\s-1SKIP\s0', \f(CW$reason\fR)" 4 +.IX Item "$event = $ctx->plan(0, 'SKIP', $reason)" +.PD +This can be used to send an Test2::Event::Plan event. This event +usually takes either a number of tests you expect to run. Optionally you can +set the expected count to 0 and give the '\s-1SKIP\s0' directive with a reason to +cause all tests to be skipped. +.ie n .IP "$event = $ctx\->skip($name, $reason);" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->skip($name, \f(CW$reason\fR);" 4 +.IX Item "$event = $ctx->skip($name, $reason);" +Send an Test2::Event::Skip event. +.ie n .IP "$event = $ctx\->bail($reason)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->bail($reason)" 4 +.IX Item "$event = $ctx->bail($reason)" +This sends an Test2::Event::Bail event. This event will completely +terminate all testing. +.ie n .IP "$event = $ctx\->send_ev2(%facets)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->send_ev2(%facets)" 4 +.IX Item "$event = $ctx->send_ev2(%facets)" +This lets you build and send a V2 event directly from facets. The event is +returned after it is sent. +.Sp +This example sends a single assertion, a note (comment for stdout in +Test::Builder talk) and sets the plan to 1. +.Sp +.Vb 5 +\& my $event = $ctx\->send_event( +\& plan => {count => 1}, +\& assert => {pass => 1, details => "A passing assert"}, +\& info => [{tag => \*(AqNOTE\*(Aq, details => "This is a note"}], +\& ); +.Ve +.ie n .IP "$event = $ctx\->build_e2(%facets)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->build_e2(%facets)" 4 +.IX Item "$event = $ctx->build_e2(%facets)" +This is the same as \f(CW\*(C`send_ev2()\*(C'\fR, except it builds and returns the event +without sending it. +.ie n .IP "$event = $ctx\->send_ev2_and_release($Type, %parameters)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->send_ev2_and_release($Type, \f(CW%parameters\fR)" 4 +.IX Item "$event = $ctx->send_ev2_and_release($Type, %parameters)" +This is a combination of \f(CW\*(C`send_ev2()\*(C'\fR and \f(CW\*(C`release()\*(C'\fR. +.Sp +.Vb 4 +\& sub shorthand { +\& my $ctx = context(); +\& return $ctx\->send_ev2_and_release(assert => {pass => 1, details => \*(Aqfoo\*(Aq}); +\& } +\& +\& sub longform { +\& my $ctx = context(); +\& my $event = $ctx\->send_ev2(assert => {pass => 1, details => \*(Aqfoo\*(Aq}); +\& $ctx\->release; +\& return $event; +\& } +.Ve +.ie n .IP "$event = $ctx\->send_event($Type, %parameters)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->send_event($Type, \f(CW%parameters\fR)" 4 +.IX Item "$event = $ctx->send_event($Type, %parameters)" +\&\fBIt is better to use \fBsend_ev2()\fB in new code.\fR +.Sp +This lets you build and send an event of any type. The \f(CW$Type\fR argument should +be the event package name with \f(CW\*(C`Test2::Event::\*(C'\fR left off, or a fully +qualified package name prefixed with a '+'. The event is returned after it is +sent. +.Sp +.Vb 1 +\& my $event = $ctx\->send_event(\*(AqOk\*(Aq, ...); +.Ve +.Sp +or +.Sp +.Vb 1 +\& my $event = $ctx\->send_event(\*(Aq+Test2::Event::Ok\*(Aq, ...); +.Ve +.ie n .IP "$event = $ctx\->build_event($Type, %parameters)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->build_event($Type, \f(CW%parameters\fR)" 4 +.IX Item "$event = $ctx->build_event($Type, %parameters)" +\&\fBIt is better to use \fBbuild_ev2()\fB in new code.\fR +.Sp +This is the same as \f(CW\*(C`send_event()\*(C'\fR, except it builds and returns the event +without sending it. +.ie n .IP "$event = $ctx\->send_event_and_release($Type, %parameters)" 4 +.el .IP "\f(CW$event\fR = \f(CW$ctx\fR\->send_event_and_release($Type, \f(CW%parameters\fR)" 4 +.IX Item "$event = $ctx->send_event_and_release($Type, %parameters)" +\&\fBIt is better to use \fBsend_ev2_and_release()\fB in new code.\fR +.Sp +This is a combination of \f(CW\*(C`send_event()\*(C'\fR and \f(CW\*(C`release()\*(C'\fR. +.Sp +.Vb 4 +\& sub shorthand { +\& my $ctx = context(); +\& return $ctx\->send_event_and_release(Pass => { name => \*(Aqfoo\*(Aq }); +\& } +\& +\& sub longform { +\& my $ctx = context(); +\& my $event = $ctx\->send_event(Pass => { name => \*(Aqfoo\*(Aq }); +\& $ctx\->release; +\& return $event; +\& } +.Ve +.SH "HOOKS" +.IX Header "HOOKS" +There are 2 types of hooks, init hooks, and release hooks. As the names +suggest, these hooks are triggered when contexts are created or released. +.SS "\s-1INIT HOOKS\s0" +.IX Subsection "INIT HOOKS" +These are called whenever a context is initialized. That means when a new +instance is created. These hooks are \fB\s-1NOT\s0\fR called every time something +requests a context, just when a new one is created. +.PP +\fI\s-1GLOBAL\s0\fR +.IX Subsection "GLOBAL" +.PP +This is how you add a global init callback. Global callbacks happen for every +context for any hub or stack. +.PP +.Vb 4 +\& Test2::API::test2_add_callback_context_init(sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.PP +\fI\s-1PER HUB\s0\fR +.IX Subsection "PER HUB" +.PP +This is how you add an init callback for all contexts created for a given hub. +These callbacks will not run for other hubs. +.PP +.Vb 4 +\& $hub\->add_context_init(sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.PP +\fI\s-1PER CONTEXT\s0\fR +.IX Subsection "PER CONTEXT" +.PP +This is how you specify an init hook that will only run if your call to +\&\f(CW\*(C`context()\*(C'\fR generates a new context. The callback will be ignored if +\&\f(CW\*(C`context()\*(C'\fR is returning an existing context. +.PP +.Vb 4 +\& my $ctx = context(on_init => sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.SS "\s-1RELEASE HOOKS\s0" +.IX Subsection "RELEASE HOOKS" +These are called whenever a context is released. That means when the last +reference to the instance is about to be destroyed. These hooks are \fB\s-1NOT\s0\fR +called every time \f(CW\*(C`$ctx\->release\*(C'\fR is called. +.PP +\fI\s-1GLOBAL\s0\fR +.IX Subsection "GLOBAL" +.PP +This is how you add a global release callback. Global callbacks happen for every +context for any hub or stack. +.PP +.Vb 4 +\& Test2::API::test2_add_callback_context_release(sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.PP +\fI\s-1PER HUB\s0\fR +.IX Subsection "PER HUB" +.PP +This is how you add a release callback for all contexts created for a given +hub. These callbacks will not run for other hubs. +.PP +.Vb 4 +\& $hub\->add_context_release(sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.PP +\fI\s-1PER CONTEXT\s0\fR +.IX Subsection "PER CONTEXT" +.PP +This is how you add release callbacks directly to a context. The callback will +\&\fB\s-1ALWAYS\s0\fR be added to the context that gets returned, it does not matter if a +new one is generated, or if an existing one is returned. +.PP +.Vb 4 +\& my $ctx = context(on_release => sub { +\& my $ctx = shift; +\& ... +\& }); +.Ve +.SH "THIRD PARTY META-DATA" +.IX Header "THIRD PARTY META-DATA" +This object consumes Test2::Util::ExternalMeta which provides a consistent +way for you to attach meta-data to instances of this class. This is useful for +tools, plugins, and other extensions. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.IP "Kent Fredric " 4 +.IX Item "Kent Fredric " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AAPI.3 b/data/miniconda3/man/man3/Test2%3A%3AAPI.3 new file mode 100644 index 0000000000000000000000000000000000000000..43268416b4bcf05dfd797f43894bb92d3fe66bb2 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AAPI.3 @@ -0,0 +1,1033 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::API 3" +.TH Test2::API 3 "2020-12-18" "perl v5.32.1" "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" +Test2::API \- Primary interface for writing Test2 based testing tools. +.SH "***INTERNALS NOTE***" +.IX Header "***INTERNALS NOTE***" +\&\fBThe internals of this package are subject to change at any time!\fR The public +methods provided will not change in backwards-incompatible ways (once there is +a stable release), but the underlying implementation details might. +\&\fBDo not break encapsulation here!\fR +.PP +Currently the implementation is to create a single instance of the +Test2::API::Instance Object. All class methods defer to the single +instance. There is no public access to the singleton, and that is intentional. +The class methods provided by this package provide the only functionality +publicly exposed. +.PP +This is done primarily to avoid the problems Test::Builder had by exposing its +singleton. We do not want anyone to replace this singleton, rebless it, or +directly muck with its internals. If you need to do something and cannot +because of the restrictions placed here, then please report it as an issue. If +possible, we will create a way for you to implement your functionality without +exposing things that should not be exposed. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package exports all the functions necessary to write and/or verify testing +tools. Using these building blocks you can begin writing test tools very +quickly. You are also provided with tools that help you to test the tools you +write. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.SS "\s-1WRITING A TOOL\s0" +.IX Subsection "WRITING A TOOL" +The \f(CW\*(C`context()\*(C'\fR method is your primary interface into the Test2 framework. +.PP +.Vb 2 +\& package My::Ok; +\& use Test2::API qw/context/; +\& +\& our @EXPORT = qw/my_ok/; +\& use base \*(AqExporter\*(Aq; +\& +\& # Just like ok() from Test::More +\& sub my_ok($;$) { +\& my ($bool, $name) = @_; +\& my $ctx = context(); # Get a context +\& $ctx\->ok($bool, $name); +\& $ctx\->release; # Release the context +\& return $bool; +\& } +.Ve +.PP +See Test2::API::Context for a list of methods available on the context object. +.SS "\s-1TESTING YOUR TOOLS\s0" +.IX Subsection "TESTING YOUR TOOLS" +The \f(CW\*(C`intercept { ... }\*(C'\fR tool lets you temporarily intercept all events +generated by the test system: +.PP +.Vb 1 +\& use Test2::API qw/intercept/; +\& +\& use My::Ok qw/my_ok/; +\& +\& my $events = intercept { +\& # These events are not displayed +\& my_ok(1, "pass"); +\& my_ok(0, "fail"); +\& }; +\& +\& my_ok(@$events == 2, "got 2 events, the pass and the fail"); +\& my_ok($events\->[0]\->pass, "first event passed"); +\& my_ok(!$events\->[1]\->pass, "second event failed"); +.Ve +.PP +\fI\s-1DEEP EVENT INTERCEPTION\s0\fR +.IX Subsection "DEEP EVENT INTERCEPTION" +.PP +Normally \f(CW\*(C`intercept { ... }\*(C'\fR only intercepts events sent to the main hub (as +added by intercept itself). Nested hubs, such as those created by subtests, +will not be intercepted. This is normally what you will still see the nested +events by inspecting the subtest event. However there are times where you want +to verify each event as it is sent, in that case use \f(CW\*(C`intercept_deep { ... }\*(C'\fR. +.PP +.Vb 5 +\& my $events = intercept_Deep { +\& buffered_subtest foo => sub { +\& ok(1, "pass"); +\& }; +\& }; +.Ve +.PP +\&\f(CW$events\fR in this case will contain 3 items: +.ie n .IP "The event from ""ok(1, ""pass"")""" 4 +.el .IP "The event from \f(CWok(1, ``pass'')\fR" 4 +.IX Item "The event from ok(1, ""pass"")" +.PD 0 +.IP "The plan event for the subtest" 4 +.IX Item "The plan event for the subtest" +.IP "The subtest event itself, with the first 2 events nested inside it as children." 4 +.IX Item "The subtest event itself, with the first 2 events nested inside it as children." +.PD +.PP +This lets you see the order in which the events were sent, unlike +\&\f(CW\*(C`intercept { ... }\*(C'\fR which only lets you see events as the main hub sees them. +.SS "\s-1OTHER API FUNCTIONS\s0" +.IX Subsection "OTHER API FUNCTIONS" +.Vb 10 +\& use Test2::API qw{ +\& test2_init_done +\& test2_stack +\& test2_set_is_end +\& test2_get_is_end +\& test2_ipc +\& test2_formatter_set +\& test2_formatter +\& test2_is_testing_done +\& }; +\& +\& my $init = test2_init_done(); +\& my $stack = test2_stack(); +\& my $ipc = test2_ipc(); +\& +\& test2_formatter_set($FORMATTER) +\& my $formatter = test2_formatter(); +\& +\& ... And others ... +.Ve +.SH "MAIN API EXPORTS" +.IX Header "MAIN API EXPORTS" +All exports are optional. You must specify subs to import. +.PP +.Vb 1 +\& use Test2::API qw/context intercept run_subtest/; +.Ve +.PP +This is the list of exports that are most commonly needed. If you are simply +writing a tool, then this is probably all you need. If you need something and +you cannot find it here, then you can also look at \*(L"\s-1OTHER API EXPORTS\*(R"\s0. +.PP +These exports lack the 'test2_' prefix because of how important/common they +are. Exports in the \*(L"\s-1OTHER API EXPORTS\*(R"\s0 section have the 'test2_' prefix to +ensure they stand out. +.SS "context(...)" +.IX Subsection "context(...)" +Usage: +.ie n .IP "$ctx = \fBcontext()\fR" 4 +.el .IP "\f(CW$ctx\fR = \fBcontext()\fR" 4 +.IX Item "$ctx = context()" +.PD 0 +.ie n .IP "$ctx = context(%params)" 4 +.el .IP "\f(CW$ctx\fR = context(%params)" 4 +.IX Item "$ctx = context(%params)" +.PD +.PP +The \f(CW\*(C`context()\*(C'\fR function will always return the current context. If +there is already a context active, it will be returned. If there is not an +active context, one will be generated. When a context is generated it will +default to using the file and line number where the currently running sub was +called from. +.PP +Please see \*(L"\s-1CRITICAL DETAILS\*(R"\s0 in Test2::API::Context for important rules about +what you can and cannot do with a context once it is obtained. +.PP +\&\fBNote\fR This function will throw an exception if you ignore the context object +it returns. +.PP +\&\fBNote\fR On perls 5.14+ a depth check is used to insure there are no context +leaks. This cannot be safely done on older perls due to + +You can forcefully enable it either by setting \f(CW\*(C`$ENV{T2_CHECK_DEPTH} = 1\*(C'\fR or +\&\f(CW\*(C`$Test2::API::DO_DEPTH_CHECK = 1\*(C'\fR \fB\s-1BEFORE\s0\fR loading Test2::API. +.PP +\fI\s-1OPTIONAL PARAMETERS\s0\fR +.IX Subsection "OPTIONAL PARAMETERS" +.PP +All parameters to \f(CW\*(C`context\*(C'\fR are optional. +.ie n .IP "level => $int" 4 +.el .IP "level => \f(CW$int\fR" 4 +.IX Item "level => $int" +If you must obtain a context in a sub deeper than your entry point you can use +this to tell it how many \s-1EXTRA\s0 stack frames to look back. If this option is not +provided the default of \f(CW0\fR is used. +.Sp +.Vb 6 +\& sub third_party_tool { +\& my $sub = shift; +\& ... # Does not obtain a context +\& $sub\->(); +\& ... +\& } +\& +\& third_party_tool(sub { +\& my $ctx = context(level => 1); +\& ... +\& $ctx\->release; +\& }); +.Ve +.ie n .IP "wrapped => $int" 4 +.el .IP "wrapped => \f(CW$int\fR" 4 +.IX Item "wrapped => $int" +Use this if you need to write your own tool that wraps a call to \f(CW\*(C`context()\*(C'\fR +with the intent that it should return a context object. +.Sp +.Vb 7 +\& sub my_context { +\& my %params = ( wrapped => 0, @_ ); +\& $params{wrapped}++; +\& my $ctx = context(%params); +\& ... +\& return $ctx; +\& } +\& +\& sub my_tool { +\& my $ctx = my_context(); +\& ... +\& $ctx\->release; +\& } +.Ve +.Sp +If you do not do this, then tools you call that also check for a context will +notice that the context they grabbed was created at the same stack depth, which +will trigger protective measures that warn you and destroy the existing +context. +.ie n .IP "stack => $stack" 4 +.el .IP "stack => \f(CW$stack\fR" 4 +.IX Item "stack => $stack" +Normally \f(CW\*(C`context()\*(C'\fR looks at the global hub stack. If you are maintaining +your own Test2::API::Stack instance you may pass it in to be used +instead of the global one. +.ie n .IP "hub => $hub" 4 +.el .IP "hub => \f(CW$hub\fR" 4 +.IX Item "hub => $hub" +Use this parameter if you want to obtain the context for a specific hub instead +of whatever one happens to be at the top of the stack. +.IP "on_init => sub { ... }" 4 +.IX Item "on_init => sub { ... }" +This lets you provide a callback sub that will be called \fB\s-1ONLY\s0\fR if your call +to \f(CW\*(C`context()\*(C'\fR generated a new context. The callback \fB\s-1WILL NOT\s0\fR be called if +\&\f(CW\*(C`context()\*(C'\fR is returning an existing context. The only argument passed into +the callback will be the context object itself. +.Sp +.Vb 2 +\& sub foo { +\& my $ctx = context(on_init => sub { \*(Aqwill run\*(Aq }); +\& +\& my $inner = sub { +\& # This callback is not run since we are getting the existing +\& # context from our parent sub. +\& my $ctx = context(on_init => sub { \*(Aqwill NOT run\*(Aq }); +\& $ctx\->release; +\& } +\& $inner\->(); +\& +\& $ctx\->release; +\& } +.Ve +.IP "on_release => sub { ... }" 4 +.IX Item "on_release => sub { ... }" +This lets you provide a callback sub that will be called when the context +instance is released. This callback will be added to the returned context even +if an existing context is returned. If multiple calls to context add callbacks, +then all will be called in reverse order when the context is finally released. +.Sp +.Vb 2 +\& sub foo { +\& my $ctx = context(on_release => sub { \*(Aqwill run second\*(Aq }); +\& +\& my $inner = sub { +\& my $ctx = context(on_release => sub { \*(Aqwill run first\*(Aq }); +\& +\& # Neither callback runs on this release +\& $ctx\->release; +\& } +\& $inner\->(); +\& +\& # Both callbacks run here. +\& $ctx\->release; +\& } +.Ve +.SS "release($;$)" +.IX Subsection "release($;$)" +Usage: +.ie n .IP "release $ctx;" 4 +.el .IP "release \f(CW$ctx\fR;" 4 +.IX Item "release $ctx;" +.PD 0 +.ie n .IP "release $ctx, ...;" 4 +.el .IP "release \f(CW$ctx\fR, ...;" 4 +.IX Item "release $ctx, ...;" +.PD +.PP +This is intended as a shortcut that lets you release your context and return a +value in one statement. This function will get your context, and an optional +return value. It will release your context, then return your value. Scalar +context is always assumed. +.PP +.Vb 3 +\& sub tool { +\& my $ctx = context(); +\& ... +\& +\& return release $ctx, 1; +\& } +.Ve +.PP +This tool is most useful when you want to return the value you get from calling +a function that needs to see the current context: +.PP +.Vb 4 +\& my $ctx = context(); +\& my $out = some_tool(...); +\& $ctx\->release; +\& return $out; +.Ve +.PP +We can combine the last 3 lines of the above like so: +.PP +.Vb 2 +\& my $ctx = context(); +\& release $ctx, some_tool(...); +.Ve +.SS "context_do(&;@)" +.IX Subsection "context_do(&;@)" +Usage: +.PP +.Vb 3 +\& sub my_tool { +\& context_do { +\& my $ctx = shift; +\& +\& my (@args) = @_; +\& +\& $ctx\->ok(1, "pass"); +\& +\& ... +\& +\& # No need to call $ctx\->release, done for you on scope exit. +\& } @_; +\& } +.Ve +.PP +Using this inside your test tool takes care of a lot of boilerplate for you. It +will ensure a context is acquired. It will capture and rethrow any exception. It +will insure the context is released when you are done. It preserves the +subroutine call context (array, scalar, void). +.PP +This is the safest way to write a test tool. The only two downsides to this are a +slight performance decrease, and some extra indentation in your source. If the +indentation is a problem for you then you can take a peek at the next section. +.SS "no_context(&;$)" +.IX Subsection "no_context(&;$)" +Usage: +.IP "no_context { ... };" 4 +.IX Item "no_context { ... };" +.PD 0 +.ie n .IP "no_context { ... } $hid;" 4 +.el .IP "no_context { ... } \f(CW$hid\fR;" 4 +.IX Item "no_context { ... } $hid;" +.PD +.Vb 4 +\& sub my_tool(&) { +\& my $code = shift; +\& my $ctx = context(); +\& ... +\& +\& no_context { +\& # Things in here will not see our current context, they get a new +\& # one. +\& +\& $code\->(); +\& }; +\& +\& ... +\& $ctx\->release; +\& }; +.Ve +.PP +This tool will hide a context for the provided block of code. This means any +tools run inside the block will get a completely new context if they acquire +one. The new context will be inherited by tools nested below the one that +acquired it. +.PP +This will normally hide the current context for the top hub. If you need to +hide the context for a different hub you can pass in the optional \f(CW$hid\fR +parameter. +.SS "intercept(&)" +.IX Subsection "intercept(&)" +Usage: +.PP +.Vb 5 +\& my $events = intercept { +\& ok(1, "pass"); +\& ok(0, "fail"); +\& ... +\& }; +.Ve +.PP +This function takes a codeblock as its only argument, and it has a prototype. +It will execute the codeblock, intercepting any generated events in the +process. It will return an array reference with all the generated event +objects. All events should be subclasses of Test2::Event. +.PP +This is a very low-level subtest tool. This is useful for writing tools which +produce subtests. This is not intended for people simply writing tests. +.SS "run_subtest(...)" +.IX Subsection "run_subtest(...)" +Usage: +.PP +.Vb 1 +\& run_subtest($NAME, \e&CODE, $BUFFERED, @ARGS) +\& +\& # or +\& +\& run_subtest($NAME, \e&CODE, \e%PARAMS, @ARGS) +.Ve +.PP +This will run the provided codeblock with the args in \f(CW@args\fR. This codeblock +will be run as a subtest. A subtest is an isolated test state that is condensed +into a single Test2::Event::Subtest event, which contains all events +generated inside the subtest. +.PP +\fI\s-1ARGUMENTS:\s0\fR +.IX Subsection "ARGUMENTS:" +.ie n .IP "$NAME" 4 +.el .IP "\f(CW$NAME\fR" 4 +.IX Item "$NAME" +The name of the subtest. +.IP "\e&CODE" 4 +.IX Item "&CODE" +The code to run inside the subtest. +.ie n .IP "$BUFFERED or \e%PARAMS" 4 +.el .IP "\f(CW$BUFFERED\fR or \e%PARAMS" 4 +.IX Item "$BUFFERED or %PARAMS" +If this is a simple scalar then it will be treated as a boolean for the +\&'buffered' setting. If this is a hash reference then it will be used as a +parameters hash. The param hash will be used for hub construction (with the +specified keys removed). +.Sp +Keys that are removed and used by run_subtest: +.RS 4 +.ie n .IP "'buffered' => $bool" 4 +.el .IP "'buffered' => \f(CW$bool\fR" 4 +.IX Item "'buffered' => $bool" +Toggle buffered status. +.ie n .IP "'inherit_trace' => $bool" 4 +.el .IP "'inherit_trace' => \f(CW$bool\fR" 4 +.IX Item "'inherit_trace' => $bool" +Normally the subtest hub is pushed and the sub is allowed to generate its own +root context for the hub. When this setting is turned on a root context will be +created for the hub that shares the same trace as the current context. +.Sp +Set this to true if your tool is producing subtests without user-specified +subs. +.ie n .IP "'no_fork' => $bool" 4 +.el .IP "'no_fork' => \f(CW$bool\fR" 4 +.IX Item "'no_fork' => $bool" +Defaults to off. Normally forking inside a subtest will actually fork the +subtest, resulting in 2 final subtest events. This parameter will turn off that +behavior, only the original process/thread will return a final subtest event. +.RE +.RS 4 +.RE +.ie n .IP "@ARGS" 4 +.el .IP "\f(CW@ARGS\fR" 4 +.IX Item "@ARGS" +Any extra arguments you want passed into the subtest code. +.PP +\fI\s-1BUFFERED VS UNBUFFERED\s0 (\s-1OR STREAMED\s0)\fR +.IX Subsection "BUFFERED VS UNBUFFERED (OR STREAMED)" +.PP +Normally all events inside and outside a subtest are sent to the formatter +immediately by the hub. Sometimes it is desirable to hold off sending events +within a subtest until the subtest is complete. This usually depends on the +formatter being used. +.IP "Things not effected by this flag" 4 +.IX Item "Things not effected by this flag" +In both cases events are generated and stored in an array. This array is +eventually used to populate the \f(CW\*(C`subevents\*(C'\fR attribute on the +Test2::Event::Subtest event that is generated at the end of the subtest. +This flag has no effect on this part, it always happens. +.Sp +At the end of the subtest, the final Test2::Event::Subtest event is sent to +the formatter. +.IP "Things that are effected by this flag" 4 +.IX Item "Things that are effected by this flag" +The \f(CW\*(C`buffered\*(C'\fR attribute of the Test2::Event::Subtest event will be set to +the value of this flag. This means any formatter, listener, etc which looks at +the event will know if it was buffered. +.IP "Things that are formatter dependant" 4 +.IX Item "Things that are formatter dependant" +Events within a buffered subtest may or may not be sent to the formatter as +they happen. If a formatter fails to specify then the default is to \fB\s-1NOT SEND\s0\fR +the events as they are generated, instead the formatter can pull them from the +\&\f(CW\*(C`subevents\*(C'\fR attribute. +.Sp +A formatter can specify by implementing the \f(CW\*(C`hide_buffered()\*(C'\fR method. If this +method returns true then events generated inside a buffered subtest will not be +sent independently of the final subtest event. +.PP +An example of how this is used is the Test2::Formatter::TAP formatter. For +unbuffered subtests the events are rendered as they are generated. At the end +of the subtest, the final subtest event is rendered, but the \f(CW\*(C`subevents\*(C'\fR +attribute is ignored. For buffered subtests the opposite occurs, the events are +\&\s-1NOT\s0 rendered as they are generated, instead the \f(CW\*(C`subevents\*(C'\fR attribute is used +to render them all at once. This is useful when running subtests tests in +parallel, since without it the output from subtests would be interleaved +together. +.SH "OTHER API EXPORTS" +.IX Header "OTHER API EXPORTS" +Exports in this section are not commonly needed. These all have the 'test2_' +prefix to help ensure they stand out. You should look at the \*(L"\s-1MAIN API +EXPORTS\*(R"\s0 section before looking here. This section is one where \*(L"Great power +comes with great responsibility\*(R". It is possible to break things badly if you +are not careful with these. +.PP +All exports are optional. You need to list which ones you want at import time: +.PP +.Vb 1 +\& use Test2::API qw/test2_init_done .../; +.Ve +.SS "\s-1STATUS AND INITIALIZATION STATE\s0" +.IX Subsection "STATUS AND INITIALIZATION STATE" +These provide access to internal state and object instances. +.ie n .IP "$bool = \fBtest2_init_done()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_init_done()\fR" 4 +.IX Item "$bool = test2_init_done()" +This will return true if the stack and \s-1IPC\s0 instances have already been +initialized. It will return false if they have not. Init happens as late as +possible. It happens as soon as a tool requests the \s-1IPC\s0 instance, the +formatter, or the stack. +.ie n .IP "$bool = \fBtest2_load_done()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_load_done()\fR" 4 +.IX Item "$bool = test2_load_done()" +This will simply return the boolean value of the loaded flag. If Test2 has +finished loading this will be true, otherwise false. Loading is considered +complete the first time a tool requests a context. +.IP "\fBtest2_set_is_end()\fR" 4 +.IX Item "test2_set_is_end()" +.PD 0 +.IP "test2_set_is_end($bool)" 4 +.IX Item "test2_set_is_end($bool)" +.PD +This is used to toggle Test2's belief that the \s-1END\s0 phase has already started. +With no arguments this will set it to true. With arguments it will set it to +the first argument's value. +.Sp +This is used to prevent the use of \f(CW\*(C`caller()\*(C'\fR in \s-1END\s0 blocks which can cause +segfaults. This is only necessary in some persistent environments that may have +multiple \s-1END\s0 phases. +.ie n .IP "$bool = \fBtest2_get_is_end()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_get_is_end()\fR" 4 +.IX Item "$bool = test2_get_is_end()" +Check if Test2 believes it is the \s-1END\s0 phase. +.ie n .IP "$stack = \fBtest2_stack()\fR" 4 +.el .IP "\f(CW$stack\fR = \fBtest2_stack()\fR" 4 +.IX Item "$stack = test2_stack()" +This will return the global Test2::API::Stack instance. If this has not +yet been initialized it will be initialized now. +.ie n .IP "$bool = \fBtest2_is_testing_done()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_is_testing_done()\fR" 4 +.IX Item "$bool = test2_is_testing_done()" +This will return true if testing is complete and no other events should be +sent. This is useful in things like warning handlers where you might want to +turn warnings into events, but need them to start acting like normal warnings +when testing is done. +.Sp +.Vb 2 +\& $SIG{_\|_WARN_\|_} = sub { +\& my ($warning) = @_; +\& +\& if (test2_is_testing_done()) { +\& warn @_; +\& } +\& else { +\& my $ctx = context(); +\& ... +\& $ctx\->release +\& } +\& } +.Ve +.IP "test2_ipc_disable" 4 +.IX Item "test2_ipc_disable" +Disable \s-1IPC.\s0 +.ie n .IP "$bool = test2_ipc_diabled" 4 +.el .IP "\f(CW$bool\fR = test2_ipc_diabled" 4 +.IX Item "$bool = test2_ipc_diabled" +Check if \s-1IPC\s0 is disabled. +.IP "\fBtest2_ipc_wait_enable()\fR" 4 +.IX Item "test2_ipc_wait_enable()" +.PD 0 +.IP "\fBtest2_ipc_wait_disable()\fR" 4 +.IX Item "test2_ipc_wait_disable()" +.ie n .IP "$bool = \fBtest2_ipc_wait_enabled()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_ipc_wait_enabled()\fR" 4 +.IX Item "$bool = test2_ipc_wait_enabled()" +.PD +These can be used to turn \s-1IPC\s0 waiting on and off, or check the current value of +the flag. +.Sp +Waiting is turned on by default. Waiting will cause the parent process/thread +to wait until all child processes and threads are finished before exiting. You +will almost never want to turn this off. +.ie n .IP "$bool = \fBtest2_no_wait()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_no_wait()\fR" 4 +.IX Item "$bool = test2_no_wait()" +.PD 0 +.IP "test2_no_wait($bool)" 4 +.IX Item "test2_no_wait($bool)" +.PD +\&\fB\s-1DISCOURAGED\s0\fR: This is a confusing interface, it is better to use +\&\f(CW\*(C`test2_ipc_wait_enable()\*(C'\fR, \f(CW\*(C`test2_ipc_wait_disable()\*(C'\fR and +\&\f(CW\*(C`test2_ipc_wait_enabled()\*(C'\fR. +.Sp +This can be used to get/set the no_wait status. Waiting is turned on by +default. Waiting will cause the parent process/thread to wait until all child +processes and threads are finished before exiting. You will almost never want +to turn this off. +.ie n .IP "$fh = \fBtest2_stdout()\fR" 4 +.el .IP "\f(CW$fh\fR = \fBtest2_stdout()\fR" 4 +.IX Item "$fh = test2_stdout()" +.PD 0 +.ie n .IP "$fh = \fBtest2_stderr()\fR" 4 +.el .IP "\f(CW$fh\fR = \fBtest2_stderr()\fR" 4 +.IX Item "$fh = test2_stderr()" +.PD +These functions return the filehandles that test output should be written to. +They are primarily useful when writing a custom formatter and code that turns +events into actual output (\s-1TAP,\s0 etc.). They will return a dupe of the original +filehandles that formatted output can be sent to regardless of whatever state +the currently running test may have left \s-1STDOUT\s0 and \s-1STDERR\s0 in. +.IP "\fBtest2_reset_io()\fR" 4 +.IX Item "test2_reset_io()" +Re-dupe the internal filehandles returned by \f(CW\*(C`test2_stdout()\*(C'\fR and +\&\f(CW\*(C`test2_stderr()\*(C'\fR from the current \s-1STDOUT\s0 and \s-1STDERR.\s0 You shouldn't need to do +this except in very peculiar situations (for example, you're testing a new +formatter and you need control over where the formatter is sending its output.) +.SS "\s-1BEHAVIOR HOOKS\s0" +.IX Subsection "BEHAVIOR HOOKS" +These are hooks that allow you to add custom behavior to actions taken by Test2 +and tools built on top of it. +.IP "test2_add_callback_exit(sub { ... })" 4 +.IX Item "test2_add_callback_exit(sub { ... })" +This can be used to add a callback that is called after all testing is done. This +is too late to add additional results, the main use of this callback is to set the +exit code. +.Sp +.Vb 6 +\& test2_add_callback_exit( +\& sub { +\& my ($context, $exit, \e$new_exit) = @_; +\& ... +\& } +\& ); +.Ve +.Sp +The \f(CW$context\fR passed in will be an instance of Test2::API::Context. The +\&\f(CW$exit\fR argument will be the original exit code before anything modified it. +\&\f(CW$$new_exit\fR is a reference to the new exit code. You may modify this to +change the exit code. Please note that \f(CW$$new_exit\fR may already be different +from \f(CW$exit\fR +.IP "test2_add_callback_post_load(sub { ... })" 4 +.IX Item "test2_add_callback_post_load(sub { ... })" +Add a callback that will be called when Test2 is finished loading. This +means the callback will be run once, the first time a context is obtained. +If Test2 has already finished loading then the callback will be run immediately. +.IP "test2_add_callback_testing_done(sub { ... })" 4 +.IX Item "test2_add_callback_testing_done(sub { ... })" +This adds your coderef as a follow-up to the root hub after Test2 is finished loading. +.Sp +This is essentially a helper to do the following: +.Sp +.Vb 4 +\& test2_add_callback_post_load(sub { +\& my $stack = test2_stack(); +\& $stack\->top; # Insure we have a hub +\& my ($hub) = Test2::API::test2_stack\->all; +\& +\& $hub\->set_active(1); +\& +\& $hub\->follow_up(sub { ... }); # <\-\- Your coderef here +\& }); +.Ve +.IP "test2_add_callback_context_acquire(sub { ... })" 4 +.IX Item "test2_add_callback_context_acquire(sub { ... })" +Add a callback that will be called every time someone tries to acquire a +context. This will be called on \s-1EVERY\s0 call to \f(CW\*(C`context()\*(C'\fR. It gets a single +argument, a reference to the hash of parameters being used the construct the +context. This is your chance to change the parameters by directly altering the +hash. +.Sp +.Vb 4 +\& test2_add_callback_context_acquire(sub { +\& my $params = shift; +\& $params\->{level}++; +\& }); +.Ve +.Sp +This is a very scary \s-1API\s0 function. Please do not use this unless you need to. +This is here for Test::Builder and backwards compatibility. This has you +directly manipulate the hash instead of returning a new one for performance +reasons. +.IP "test2_add_callback_context_init(sub { ... })" 4 +.IX Item "test2_add_callback_context_init(sub { ... })" +Add a callback that will be called every time a new context is created. The +callback will receive the newly created context as its only argument. +.IP "test2_add_callback_context_release(sub { ... })" 4 +.IX Item "test2_add_callback_context_release(sub { ... })" +Add a callback that will be called every time a context is released. The +callback will receive the released context as its only argument. +.IP "test2_add_callback_pre_subtest(sub { ... })" 4 +.IX Item "test2_add_callback_pre_subtest(sub { ... })" +Add a callback that will be called every time a subtest is going to be +run. The callback will receive the subtest name, coderef, and any +arguments. +.ie n .IP "@list = \fBtest2_list_context_acquire_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_context_acquire_callbacks()\fR" 4 +.IX Item "@list = test2_list_context_acquire_callbacks()" +Return all the context acquire callback references. +.ie n .IP "@list = \fBtest2_list_context_init_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_context_init_callbacks()\fR" 4 +.IX Item "@list = test2_list_context_init_callbacks()" +Returns all the context init callback references. +.ie n .IP "@list = \fBtest2_list_context_release_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_context_release_callbacks()\fR" 4 +.IX Item "@list = test2_list_context_release_callbacks()" +Returns all the context release callback references. +.ie n .IP "@list = \fBtest2_list_exit_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_exit_callbacks()\fR" 4 +.IX Item "@list = test2_list_exit_callbacks()" +Returns all the exit callback references. +.ie n .IP "@list = \fBtest2_list_post_load_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_post_load_callbacks()\fR" 4 +.IX Item "@list = test2_list_post_load_callbacks()" +Returns all the post load callback references. +.ie n .IP "@list = \fBtest2_list_pre_subtest_callbacks()\fR" 4 +.el .IP "\f(CW@list\fR = \fBtest2_list_pre_subtest_callbacks()\fR" 4 +.IX Item "@list = test2_list_pre_subtest_callbacks()" +Returns all the pre-subtest callback references. +.IP "test2_add_uuid_via(sub { ... })" 4 +.IX Item "test2_add_uuid_via(sub { ... })" +.PD 0 +.ie n .IP "$sub = \fBtest2_add_uuid_via()\fR" 4 +.el .IP "\f(CW$sub\fR = \fBtest2_add_uuid_via()\fR" 4 +.IX Item "$sub = test2_add_uuid_via()" +.PD +This allows you to provide a \s-1UUID\s0 generator. If provided UUIDs will be attached +to all events, hubs, and contexts. This is useful for storing, tracking, and +linking these objects. +.Sp +The sub you provide should always return a unique identifier. Most things will +expect a proper \s-1UUID\s0 string, however nothing in Test2::API enforces this. +.Sp +The sub will receive exactly 1 argument, the type of thing being tagged +\&'context', 'hub', or 'event'. In the future additional things may be tagged, in +which case new strings will be passed in. These are purely informative, you can +(and usually should) ignore them. +.SS "\s-1IPC AND CONCURRENCY\s0" +.IX Subsection "IPC AND CONCURRENCY" +These let you access, or specify, the \s-1IPC\s0 system internals. +.ie n .IP "$bool = \fBtest2_has_ipc()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_has_ipc()\fR" 4 +.IX Item "$bool = test2_has_ipc()" +Check if \s-1IPC\s0 is enabled. +.ie n .IP "$ipc = \fBtest2_ipc()\fR" 4 +.el .IP "\f(CW$ipc\fR = \fBtest2_ipc()\fR" 4 +.IX Item "$ipc = test2_ipc()" +This will return the global Test2::IPC::Driver instance. If this has not yet +been initialized it will be initialized now. +.IP "test2_ipc_add_driver($DRIVER)" 4 +.IX Item "test2_ipc_add_driver($DRIVER)" +Add an \s-1IPC\s0 driver to the list. This will add the driver to the start of the +list. +.ie n .IP "@drivers = \fBtest2_ipc_drivers()\fR" 4 +.el .IP "\f(CW@drivers\fR = \fBtest2_ipc_drivers()\fR" 4 +.IX Item "@drivers = test2_ipc_drivers()" +Get the list of \s-1IPC\s0 drivers. +.ie n .IP "$bool = \fBtest2_ipc_polling()\fR" 4 +.el .IP "\f(CW$bool\fR = \fBtest2_ipc_polling()\fR" 4 +.IX Item "$bool = test2_ipc_polling()" +Check if polling is enabled. +.IP "\fBtest2_ipc_enable_polling()\fR" 4 +.IX Item "test2_ipc_enable_polling()" +Turn on polling. This will cull events from other processes and threads every +time a context is created. +.IP "\fBtest2_ipc_disable_polling()\fR" 4 +.IX Item "test2_ipc_disable_polling()" +Turn off \s-1IPC\s0 polling. +.IP "\fBtest2_ipc_enable_shm()\fR" 4 +.IX Item "test2_ipc_enable_shm()" +Legacy, this is currently a no-op that returns 0; +.IP "test2_ipc_set_pending($uniq_val)" 4 +.IX Item "test2_ipc_set_pending($uniq_val)" +Tell other processes and events that an event is pending. \f(CW$uniq_val\fR should +be a unique value no other thread/process will generate. +.Sp +\&\fBNote:\fR After calling this \f(CW\*(C`test2_ipc_get_pending()\*(C'\fR will return 1. This is +intentional, and not avoidable. +.ie n .IP "$pending = \fBtest2_ipc_get_pending()\fR" 4 +.el .IP "\f(CW$pending\fR = \fBtest2_ipc_get_pending()\fR" 4 +.IX Item "$pending = test2_ipc_get_pending()" +This returns \-1 if there is no way to check (assume yes) +.Sp +This returns 0 if there are (most likely) no pending events. +.Sp +This returns 1 if there are (likely) pending events. Upon return it will reset, +nothing else will be able to see that there were pending events. +.ie n .IP "$timeout = \fBtest2_ipc_get_timeout()\fR" 4 +.el .IP "\f(CW$timeout\fR = \fBtest2_ipc_get_timeout()\fR" 4 +.IX Item "$timeout = test2_ipc_get_timeout()" +.PD 0 +.IP "test2_ipc_set_timeout($timeout)" 4 +.IX Item "test2_ipc_set_timeout($timeout)" +.PD +Get/Set the timeout value for the \s-1IPC\s0 system. This timeout is how long the \s-1IPC\s0 +system will wait for child processes and threads to finish before aborting. +.Sp +The default value is \f(CW30\fR seconds. +.SS "\s-1MANAGING FORMATTERS\s0" +.IX Subsection "MANAGING FORMATTERS" +These let you access, or specify, the formatters that can/should be used. +.ie n .IP "$formatter = test2_formatter" 4 +.el .IP "\f(CW$formatter\fR = test2_formatter" 4 +.IX Item "$formatter = test2_formatter" +This will return the global formatter class. This is not an instance. By +default the formatter is set to Test2::Formatter::TAP. +.Sp +You can override this default using the \f(CW\*(C`T2_FORMATTER\*(C'\fR environment variable. +.Sp +Normally 'Test2::Formatter::' is prefixed to the value in the +environment variable: +.Sp +.Vb 2 +\& $ T2_FORMATTER=\*(AqTAP\*(Aq perl test.t # Use the Test2::Formatter::TAP formatter +\& $ T2_FORMATTER=\*(AqFoo\*(Aq perl test.t # Use the Test2::Formatter::Foo formatter +.Ve +.Sp +If you want to specify a full module name you use the '+' prefix: +.Sp +.Vb 1 +\& $ T2_FORMATTER=\*(Aq+Foo::Bar\*(Aq perl test.t # Use the Foo::Bar formatter +.Ve +.IP "test2_formatter_set($class_or_instance)" 4 +.IX Item "test2_formatter_set($class_or_instance)" +Set the global formatter class. This can only be set once. \fBNote:\fR This will +override anything specified in the 'T2_FORMATTER' environment variable. +.ie n .IP "@formatters = \fBtest2_formatters()\fR" 4 +.el .IP "\f(CW@formatters\fR = \fBtest2_formatters()\fR" 4 +.IX Item "@formatters = test2_formatters()" +Get a list of all loaded formatters. +.IP "test2_formatter_add($class_or_instance)" 4 +.IX Item "test2_formatter_add($class_or_instance)" +Add a formatter to the list. Last formatter added is used at initialization. If +this is called after initialization a warning will be issued. +.SH "OTHER EXAMPLES" +.IX Header "OTHER EXAMPLES" +See the \f(CW\*(C`/Examples/\*(C'\fR directory included in this distribution. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test2::API::Context \- Detailed documentation of the context object. +.PP +Test2::IPC \- The \s-1IPC\s0 system used for threading/fork support. +.PP +Test2::Formatter \- Formatters such as \s-1TAP\s0 live here. +.PP +Test2::Event \- Events live in this namespace. +.PP +Test2::Hub \- All events eventually funnel through a hub. Custom hubs are how +\&\f(CW\*(C`intercept()\*(C'\fR and \f(CW\*(C`run_subtest()\*(C'\fR are implemented. +.SH "MAGIC" +.IX Header "MAGIC" +This package has an \s-1END\s0 block. This \s-1END\s0 block is responsible for setting the +exit code based on the test results. This end block also calls the callbacks that +can be added to this package. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ABail.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ABail.3 new file mode 100644 index 0000000000000000000000000000000000000000..435fd4e84e6a5811d7436edae70b9eaa36154607 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ABail.3 @@ -0,0 +1,184 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Bail 3" +.TH Test2::Event::Bail 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Bail \- Bailout! +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The bailout event is generated when things go horribly wrong and you need to +halt all testing in the current file. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Bail; +\& +\& my $ctx = context(); +\& my $event = $ctx\->bail(\*(AqStuff is broken\*(Aq); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Inherits from Test2::Event. Also defines: +.ie n .IP "$reason = $e\->reason" 4 +.el .IP "\f(CW$reason\fR = \f(CW$e\fR\->reason" 4 +.IX Item "$reason = $e->reason" +The reason for the bailout. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ADiag.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ADiag.3 new file mode 100644 index 0000000000000000000000000000000000000000..0d3ad3694c33704e942aa596425e0381444fdc66 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ADiag.3 @@ -0,0 +1,182 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Diag 3" +.TH Test2::Event::Diag 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Diag \- Diag event type +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Diagnostics messages, typically rendered to \s-1STDERR.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Diag; +\& +\& my $ctx = context(); +\& my $event = $ctx\->diag($message); +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.ie n .IP "$diag\->message" 4 +.el .IP "\f(CW$diag\fR\->message" 4 +.IX Item "$diag->message" +The message for the diag. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AEncoding.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AEncoding.3 new file mode 100644 index 0000000000000000000000000000000000000000..a45c791c3c52ca5a212327cb1d1f2a6d7edf0784 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AEncoding.3 @@ -0,0 +1,186 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Encoding 3" +.TH Test2::Event::Encoding 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Encoding \- Set the encoding for the output stream +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The encoding event is generated when a test file wants to specify the encoding +to be used when formatting its output. This event is intended to be produced +by formatter classes and used for interpreting test names, message contents, +etc. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Encoding; +\& +\& my $ctx = context(); +\& my $event = $ctx\->send_event(\*(AqEncoding\*(Aq, encoding => \*(AqUTF\-8\*(Aq); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Inherits from Test2::Event. Also defines: +.ie n .IP "$encoding = $e\->encoding" 4 +.el .IP "\f(CW$encoding\fR = \f(CW$e\fR\->encoding" 4 +.IX Item "$encoding = $e->encoding" +The encoding being specified. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AException.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AException.3 new file mode 100644 index 0000000000000000000000000000000000000000..22217efc5105254112090ff3277b2d53a828d875 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AException.3 @@ -0,0 +1,187 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Exception 3" +.TH Test2::Event::Exception 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Exception \- Exception event +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +An exception event will display to \s-1STDERR,\s0 and will prevent the overall test +file from passing. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Exception; +\& +\& my $ctx = context(); +\& my $event = $ctx\->send_event(\*(AqException\*(Aq, error => \*(AqStuff is broken\*(Aq); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Inherits from Test2::Event. Also defines: +.ie n .IP "$reason = $e\->error" 4 +.el .IP "\f(CW$reason\fR = \f(CW$e\fR\->error" 4 +.IX Item "$reason = $e->error" +The reason for the exception. +.SH "CAVEATS" +.IX Header "CAVEATS" +Be aware that all exceptions are stringified during construction. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ANote.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ANote.3 new file mode 100644 index 0000000000000000000000000000000000000000..97409ee95e636c9300ccd927a6adc9f9173ce667 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ANote.3 @@ -0,0 +1,182 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Note 3" +.TH Test2::Event::Note 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Note \- Note event type +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Notes, typically rendered to \s-1STDOUT.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Note; +\& +\& my $ctx = context(); +\& my $event = $ctx\->Note($message); +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.ie n .IP "$note\->message" 4 +.el .IP "\f(CW$note\fR\->message" 4 +.IX Item "$note->message" +The message for the note. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AOk.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AOk.3 new file mode 100644 index 0000000000000000000000000000000000000000..3bc0ba8d6c63755dbdd1b70e7775ca4afa051b50 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AOk.3 @@ -0,0 +1,204 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Ok 3" +.TH Test2::Event::Ok 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Ok \- Ok event type +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Ok events are generated whenever you run a test that produces a result. +Examples are \f(CW\*(C`ok()\*(C'\fR, and \f(CW\*(C`is()\*(C'\fR. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Ok; +\& +\& my $ctx = context(); +\& my $event = $ctx\->ok($bool, $name, \e@diag); +.Ve +.PP +or: +.PP +.Vb 6 +\& my $ctx = context(); +\& my $event = $ctx\->send_event( +\& \*(AqOk\*(Aq, +\& pass => $bool, +\& name => $name, +\& ); +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.ie n .IP "$rb = $e\->pass" 4 +.el .IP "\f(CW$rb\fR = \f(CW$e\fR\->pass" 4 +.IX Item "$rb = $e->pass" +The original true/false value of whatever was passed into the event (but +reduced down to 1 or 0). +.ie n .IP "$name = $e\->name" 4 +.el .IP "\f(CW$name\fR = \f(CW$e\fR\->name" 4 +.IX Item "$name = $e->name" +Name of the test. +.ie n .IP "$b = $e\->effective_pass" 4 +.el .IP "\f(CW$b\fR = \f(CW$e\fR\->effective_pass" 4 +.IX Item "$b = $e->effective_pass" +This is the true/false value of the test after \s-1TODO\s0 and similar modifiers are +taken into account. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APlan.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APlan.3 new file mode 100644 index 0000000000000000000000000000000000000000..cf7ce53a99520966ce373323b0c358b06a54e31a --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APlan.3 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Plan 3" +.TH Test2::Event::Plan 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Plan \- The event of a plan +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Plan events are fired off whenever a plan is declared, done testing is called, +or a subtext completes. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Plan; +\& +\& my $ctx = context(); +\& +\& # Plan for 10 tests to run +\& my $event = $ctx\->plan(10); +\& +\& # Plan to skip all tests (will exit 0) +\& $ctx\->plan(0, skip_all => "These tests need to be skipped"); +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.ie n .IP "$num = $plan\->max" 4 +.el .IP "\f(CW$num\fR = \f(CW$plan\fR\->max" 4 +.IX Item "$num = $plan->max" +Get the number of expected tests +.ie n .IP "$dir = $plan\->directive" 4 +.el .IP "\f(CW$dir\fR = \f(CW$plan\fR\->directive" 4 +.IX Item "$dir = $plan->directive" +Get the directive (such as \s-1TODO,\s0 skip_all, or no_plan). +.ie n .IP "$reason = $plan\->reason" 4 +.el .IP "\f(CW$reason\fR = \f(CW$plan\fR\->reason" 4 +.IX Item "$reason = $plan->reason" +Get the reason for the directive. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASkip.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASkip.3 new file mode 100644 index 0000000000000000000000000000000000000000..1f38f0c5a9360afa405b56ec021e1aa1d7b8e2b4 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASkip.3 @@ -0,0 +1,195 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Skip 3" +.TH Test2::Event::Skip 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Skip \- Skip event type +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Skip events bump test counts just like Test2::Event::Ok events, but +they can never fail. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Skip; +\& +\& my $ctx = context(); +\& my $event = $ctx\->skip($name, $reason); +.Ve +.PP +or: +.PP +.Vb 6 +\& my $ctx = context(); +\& my $event = $ctx\->send_event( +\& \*(AqSkip\*(Aq, +\& name => $name, +\& reason => $reason, +\& ); +.Ve +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.ie n .IP "$reason = $e\->reason" 4 +.el .IP "\f(CW$reason\fR = \f(CW$e\fR\->reason" 4 +.IX Item "$reason = $e->reason" +The original true/false value of whatever was passed into the event (but +reduced down to 1 or 0). +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASubtest.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASubtest.3 new file mode 100644 index 0000000000000000000000000000000000000000..ee8c81bc6762ed16fb0f0d703c99cd55648a65c5 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ASubtest.3 @@ -0,0 +1,180 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Subtest 3" +.TH Test2::Event::Subtest 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Subtest \- Event for subtest types +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class represents a subtest. This class is a subclass of +Test2::Event::Ok. +.SH "ACCESSORS" +.IX Header "ACCESSORS" +This class inherits from Test2::Event::Ok. +.ie n .IP "$arrayref = $e\->subevents" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$e\fR\->subevents" 4 +.IX Item "$arrayref = $e->subevents" +Returns the arrayref containing all the events from the subtest +.ie n .IP "$bool = $e\->buffered" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->buffered" 4 +.IX Item "$bool = $e->buffered" +True if the subtest is buffered, that is all subevents render at once. If this +is false it means all subevents render as they are produced. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ATAP%3A%3AVersion.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ATAP%3A%3AVersion.3 new file mode 100644 index 0000000000000000000000000000000000000000..679bde0d13dca1809a872c6feaed31d6eb63ea59 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3ATAP%3A%3AVersion.3 @@ -0,0 +1,183 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::TAP::Version 3" +.TH Test2::Event::TAP::Version 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::TAP::Version \- Event for TAP version. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This event is used if a \s-1TAP\s0 formatter wishes to set a version. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::API qw/context/; +\& use Test2::Event::Encoding; +\& +\& my $ctx = context(); +\& my $event = $ctx\->send_event(\*(AqTAP::Version\*(Aq, version => 42); +.Ve +.SH "METHODS" +.IX Header "METHODS" +Inherits from Test2::Event. Also defines: +.ie n .IP "$version = $e\->version" 4 +.el .IP "\f(CW$version\fR = \f(CW$e\fR\->version" 4 +.IX Item "$version = $e->version" +The \s-1TAP\s0 version being parsed. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AV2.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AV2.3 new file mode 100644 index 0000000000000000000000000000000000000000..f7fd15cf0fc296ffcbfdd9385d9c915120a98bbf --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AV2.3 @@ -0,0 +1,273 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::V2 3" +.TH Test2::Event::V2 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::V2 \- Second generation event. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is the event type that should be used instead of Test2::Event or its +legacy subclasses. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.SS "\s-1USING A CONTEXT\s0" +.IX Subsection "USING A CONTEXT" +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub my_tool { +\& my $ctx = context(); +\& +\& my $event = $ctx\->send_ev2(info => [{tag => \*(AqNOTE\*(Aq, details => "This is a note"}]); +\& +\& $ctx\->release; +\& +\& return $event; +\& } +.Ve +.SS "\s-1USING THE CONSTRUCTOR\s0" +.IX Subsection "USING THE CONSTRUCTOR" +.Vb 1 +\& use Test2::Event::V2; +\& +\& my $e = Test2::Event::V2\->new( +\& trace => {frame => [$PKG, $FILE, $LINE, $SUBNAME]}, +\& info => [{tag => \*(AqNOTE\*(Aq, details => "This is a note"}], +\& ); +.Ve +.SH "METHODS" +.IX Header "METHODS" +This class inherits from Test2::Event. +.ie n .IP "$fd = $e\->\fBfacet_data()\fR" 4 +.el .IP "\f(CW$fd\fR = \f(CW$e\fR\->\fBfacet_data()\fR" 4 +.IX Item "$fd = $e->facet_data()" +This will return a hashref of facet data. Each facet hash will be a shallow +copy of the original. +.ie n .IP "$about = $e\->\fBabout()\fR" 4 +.el .IP "\f(CW$about\fR = \f(CW$e\fR\->\fBabout()\fR" 4 +.IX Item "$about = $e->about()" +This will return the 'about' facet hashref. +.Sp +\&\fB\s-1NOTE:\s0\fR This will return the internal hashref, not a copy. +.ie n .IP "$trace = $e\->\fBtrace()\fR" 4 +.el .IP "\f(CW$trace\fR = \f(CW$e\fR\->\fBtrace()\fR" 4 +.IX Item "$trace = $e->trace()" +This will return the 'trace' facet, normally blessed (but this is not enforced +when the trace is set using \f(CW\*(C`set_trace()\*(C'\fR. +.Sp +\&\fB\s-1NOTE:\s0\fR This will return the internal trace, not a copy. +.SS "\s-1MUTATION\s0" +.IX Subsection "MUTATION" +.ie n .IP "$e\->add_amnesty({...})" 4 +.el .IP "\f(CW$e\fR\->add_amnesty({...})" 4 +.IX Item "$e->add_amnesty({...})" +Inherited from Test2::Event. This can be used to add 'amnesty' facets to an +existing event. Each new item is added to the \fB\s-1END\s0\fR of the list. +.Sp +\&\fB\s-1NOTE:\s0\fR Items \fB\s-1ARE\s0\fR blessed when added. +.ie n .IP "$e\->add_hub({...})" 4 +.el .IP "\f(CW$e\fR\->add_hub({...})" 4 +.IX Item "$e->add_hub({...})" +Inherited from Test2::Event. This is used by hubs to stamp events as they +pass through. New items are added to the \fB\s-1START\s0\fR of the list. +.Sp +\&\fB\s-1NOTE:\s0\fR Items \fB\s-1ARE NOT\s0\fR blessed when added. +.ie n .IP "$e\->set_uuid($UUID)" 4 +.el .IP "\f(CW$e\fR\->set_uuid($UUID)" 4 +.IX Item "$e->set_uuid($UUID)" +Inherited from Test2::Event, overridden to also vivify/mutate the 'about' +facet. +.ie n .IP "$e\->set_trace($trace)" 4 +.el .IP "\f(CW$e\fR\->set_trace($trace)" 4 +.IX Item "$e->set_trace($trace)" +Inherited from Test2::Event which allows you to change the trace. +.Sp +\&\fBNote:\fR This method does not bless/clone the trace for you. Many things will +expect the trace to be blessed, so you should probably do that. +.SS "\s-1LEGACY SUPPORT METHODS\s0" +.IX Subsection "LEGACY SUPPORT METHODS" +These are all imported from Test2::Util::Facets2Legacy, see that module or +Test2::Event for documentation on what they do. +.IP "causes_fail" 4 +.IX Item "causes_fail" +.PD 0 +.IP "diagnostics" 4 +.IX Item "diagnostics" +.IP "global" 4 +.IX Item "global" +.IP "increments_count" 4 +.IX Item "increments_count" +.IP "no_display" 4 +.IX Item "no_display" +.IP "sets_plan" 4 +.IX Item "sets_plan" +.IP "subtest_id" 4 +.IX Item "subtest_id" +.IP "summary" 4 +.IX Item "summary" +.IP "terminate" 4 +.IX Item "terminate" +.PD +.SH "THIRD PARTY META-DATA" +.IX Header "THIRD PARTY META-DATA" +This object consumes Test2::Util::ExternalMeta which provides a consistent +way for you to attach meta-data to instances of this class. This is useful for +tools, plugins, and other extensions. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AWaiting.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AWaiting.3 new file mode 100644 index 0000000000000000000000000000000000000000..c48cc8b457b56aebae236944089c97b5de6e89de --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AWaiting.3 @@ -0,0 +1,168 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event::Waiting 3" +.TH Test2::Event::Waiting 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event::Waiting \- Tell all procs/threads it is time to be done +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This event has no data of its own. This event is sent out by the \s-1IPC\s0 system +when the main process/thread is ready to end. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent.3 new file mode 100644 index 0000000000000000000000000000000000000000..35d3f84266311ae08c8bde76f25d6f2978bc057b --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent.3 @@ -0,0 +1,559 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Event 3" +.TH Test2::Event 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Event \- Base class for events +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Base class for all event objects that get passed through +Test2. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& package Test2::Event::MyEvent; +\& use strict; +\& use warnings; +\& +\& # This will make our class an event subclass (required) +\& use base \*(AqTest2::Event\*(Aq; +\& +\& # Add some accessors (optional) +\& # You are not obligated to use HashBase, you can use any object tool you +\& # want, or roll your own accessors. +\& use Test2::Util::HashBase qw/foo bar baz/; +\& +\& # Use this if you want the legacy API to be written for you, for this to +\& # work you will need to implement a facet_data() method. +\& use Test2::Util::Facets2Legacy; +\& +\& # Chance to initialize some defaults +\& sub init { +\& my $self = shift; +\& # no other args in @_ +\& +\& $self\->set_foo(\*(Aqxxx\*(Aq) unless defined $self\->foo; +\& +\& ... +\& } +\& +\& # This is the new way for events to convey data to the Test2 system +\& sub facet_data { +\& my $self = shift; +\& +\& # Get common facets such as \*(Aqabout\*(Aq, \*(Aqtrace\*(Aq \*(Aqamnesty\*(Aq, and \*(Aqmeta\*(Aq +\& my $facet_data = $self\->common_facet_data(); +\& +\& # Are you making an assertion? +\& $facet_data\->{assert} = {pass => 1, details => \*(Aqmy assertion\*(Aq}; +\& ... +\& +\& return $facet_data; +\& } +\& +\& 1; +.Ve +.SH "METHODS" +.IX Header "METHODS" +.SS "\s-1GENERAL\s0" +.IX Subsection "GENERAL" +.ie n .IP "$trace = $e\->trace" 4 +.el .IP "\f(CW$trace\fR = \f(CW$e\fR\->trace" 4 +.IX Item "$trace = $e->trace" +Get a snapshot of the Test2::EventFacet::Trace as it was when this event was +generated +.ie n .IP "$bool_or_undef = $e\->related($e2)" 4 +.el .IP "\f(CW$bool_or_undef\fR = \f(CW$e\fR\->related($e2)" 4 +.IX Item "$bool_or_undef = $e->related($e2)" +Check if 2 events are related. In this case related means their traces share a +signature meaning they were created with the same context (or at the very least +by contexts which share an id, which is the same thing unless someone is doing +something very bad). +.Sp +This can be used to reliably link multiple events created by the same tool. For +instance a failing test like \f(CW\*(C`ok(0, "fail"\*(C'\fR will generate 2 events, one being +a Test2::Event::Ok, the other being a Test2::Event::Diag, both of these +events are related having been created under the same context and by the same +initial tool (though multiple tools may have been nested under the initial +one). +.Sp +This will return \f(CW\*(C`undef\*(C'\fR if the relationship cannot be checked, which happens +if either event has an incomplete or missing trace. This will return \f(CW0\fR if +the traces are complete, but do not match. \f(CW1\fR will be returned if there is a +match. +.ie n .IP "$e\->add_amnesty({tag => $TAG, details => $DETAILS});" 4 +.el .IP "\f(CW$e\fR\->add_amnesty({tag => \f(CW$TAG\fR, details => \f(CW$DETAILS\fR});" 4 +.IX Item "$e->add_amnesty({tag => $TAG, details => $DETAILS});" +This can be used to add amnesty to this event. Amnesty only effects failing +assertions in most cases, but some formatters may display them for passing +assertions, or even non-assertions as well. +.Sp +Amnesty will prevent a failed assertion from causing the overall test to fail. +In other words it marks a failure as expected and allowed. +.Sp +\&\fBNote:\fR This is how '\s-1TODO\s0' is implemented under the hood. \s-1TODO\s0 is essentially +amnesty with the '\s-1TODO\s0' tag. The details are the reason for the \s-1TODO.\s0 +.ie n .IP "$uuid = $e\->uuid" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$e\fR\->uuid" 4 +.IX Item "$uuid = $e->uuid" +If \s-1UUID\s0 tagging is enabled (See Test::API) then any event that has made its +way through a hub will be tagged with a \s-1UUID. A\s0 newly created event will not +yet be tagged in most cases. +.ie n .IP "$class = $e\->load_facet($name)" 4 +.el .IP "\f(CW$class\fR = \f(CW$e\fR\->load_facet($name)" 4 +.IX Item "$class = $e->load_facet($name)" +This method is used to load a facet by name (or key). It will attempt to load +the facet class, if it succeeds it will return the class it loaded. If it fails +it will return \f(CW\*(C`undef\*(C'\fR. This caches the result at the class level so that +future calls will be faster. +.Sp +The \f(CW$name\fR variable should be the key used to access the facet in a facets +hashref. For instance the assertion facet has the key 'assert', the information +facet has the 'info' key, and the error facet has the key 'errors'. You may +include or omit the 's' at the end of the name, the method is smart enough to +try both the 's' and no\-'s' forms, it will check what you provided first, and +if that is not found it will add or strip the 's and try again. +.ie n .IP "@classes = $e\->\s-1\fBFACET_TYPES\s0()\fR" 4 +.el .IP "\f(CW@classes\fR = \f(CW$e\fR\->\s-1\fBFACET_TYPES\s0()\fR" 4 +.IX Item "@classes = $e->FACET_TYPES()" +.PD 0 +.ie n .IP "@classes = Test2::Event\->\s-1\fBFACET_TYPES\s0()\fR" 4 +.el .IP "\f(CW@classes\fR = Test2::Event\->\s-1\fBFACET_TYPES\s0()\fR" 4 +.IX Item "@classes = Test2::Event->FACET_TYPES()" +.PD +This returns a list of all facets that have been loaded using the +\&\f(CW\*(C`load_facet()\*(C'\fR method. This will not return any classes that have not been +loaded, or have been loaded directly without a call to \f(CW\*(C`load_facet()\*(C'\fR. +.Sp +\&\fBNote:\fR The core facet types are automatically loaded and populated in this +list. +.SS "\s-1NEW API\s0" +.IX Subsection "NEW API" +.ie n .IP "$hashref = $e\->\fBcommon_facet_data()\fR;" 4 +.el .IP "\f(CW$hashref\fR = \f(CW$e\fR\->\fBcommon_facet_data()\fR;" 4 +.IX Item "$hashref = $e->common_facet_data();" +This can be used by subclasses to generate a starting facet data hashref. This +will populate the hashref with the trace, meta, amnesty, and about facets. +These facets are nearly always produced the same way for all events. +.ie n .IP "$hashref = $e\->\fBfacet_data()\fR" 4 +.el .IP "\f(CW$hashref\fR = \f(CW$e\fR\->\fBfacet_data()\fR" 4 +.IX Item "$hashref = $e->facet_data()" +If you do not override this then the default implementation will attempt to +generate facets from the legacy \s-1API.\s0 This generation is limited only to what +the legacy \s-1API\s0 can provide. It is recommended that you override this method and +write out explicit facet data. +.ie n .IP "$hashref = $e\->\fBfacets()\fR" 4 +.el .IP "\f(CW$hashref\fR = \f(CW$e\fR\->\fBfacets()\fR" 4 +.IX Item "$hashref = $e->facets()" +This takes the hashref from \f(CW\*(C`facet_data()\*(C'\fR and blesses each facet into the +proper \f(CW\*(C`Test2::EventFacet::*\*(C'\fR subclass. If no class can be found for any given +facet it will be passed along unchanged. +.ie n .IP "@errors = $e\->\fBvalidate_facet_data()\fR;" 4 +.el .IP "\f(CW@errors\fR = \f(CW$e\fR\->\fBvalidate_facet_data()\fR;" 4 +.IX Item "@errors = $e->validate_facet_data();" +.PD 0 +.ie n .IP "@errors = $e\->validate_facet_data(%params);" 4 +.el .IP "\f(CW@errors\fR = \f(CW$e\fR\->validate_facet_data(%params);" 4 +.IX Item "@errors = $e->validate_facet_data(%params);" +.ie n .IP "@errors = $e\->validate_facet_data(\e%facets, %params);" 4 +.el .IP "\f(CW@errors\fR = \f(CW$e\fR\->validate_facet_data(\e%facets, \f(CW%params\fR);" 4 +.IX Item "@errors = $e->validate_facet_data(%facets, %params);" +.ie n .IP "@errors = Test2::Event\->validate_facet_data(%params);" 4 +.el .IP "\f(CW@errors\fR = Test2::Event\->validate_facet_data(%params);" 4 +.IX Item "@errors = Test2::Event->validate_facet_data(%params);" +.ie n .IP "@errors = Test2::Event\->validate_facet_data(\e%facets, %params);" 4 +.el .IP "\f(CW@errors\fR = Test2::Event\->validate_facet_data(\e%facets, \f(CW%params\fR);" 4 +.IX Item "@errors = Test2::Event->validate_facet_data(%facets, %params);" +.PD +This method will validate facet data and return a list of errors. If no errors +are found this will return an empty list. +.Sp +This can be called as an object method with no arguments, in which case the +\&\f(CW\*(C`facet_data()\*(C'\fR method will be called to get the facet data to be validated. +.Sp +When used as an object method the \f(CW\*(C`\e%facet_data\*(C'\fR argument may be omitted. +.Sp +When used as a class method the \f(CW\*(C`\e%facet_data\*(C'\fR argument is required. +.Sp +Remaining arguments will be slurped into a \f(CW%params\fR hash. +.Sp +Currently only 1 parameter is defined: +.RS 4 +.ie n .IP "require_facet_class => $BOOL" 4 +.el .IP "require_facet_class => \f(CW$BOOL\fR" 4 +.IX Item "require_facet_class => $BOOL" +When set to true (default is false) this will reject any facets where a facet +class cannot be found. Normally facets without classes are assumed to be custom +and are ignored. +.RE +.RS 4 +.RE +.PP +\fI\s-1WHAT ARE FACETS\s0?\fR +.IX Subsection "WHAT ARE FACETS?" +.PP +Facets are how events convey their purpose to the Test2 internals and +formatters. An event without facets will have no intentional effect on the +overall test state, and will not be displayed at all by most formatters, except +perhaps to say that an event of an unknown type was seen. +.PP +Facets are produced by the \f(CW\*(C`facet_data()\*(C'\fR subroutine, which you should +nearly-always override. \f(CW\*(C`facet_data()\*(C'\fR is expected to return a hashref where +each key is the facet type, and the value is either a hashref with the data for +that facet, or an array of hashrefs. Some facets must be defined as single +hashrefs, some must be defined as an array of hashrefs, No facets allow both. +.PP +\&\f(CW\*(C`facet_data()\*(C'\fR \fB\s-1MUST NOT\s0\fR bless the data it returns, the main hashref, and +nested facet hashrefs \fB\s-1MUST\s0\fR be bare, though items contained within each +facet may be blessed. The data returned by this method \fBshould\fR also be copies +of the internal data in order to prevent accidental state modification. +.PP +\&\f(CW\*(C`facets()\*(C'\fR takes the data from \f(CW\*(C`facet_data()\*(C'\fR and blesses it into the +\&\f(CW\*(C`Test2::EventFacet::*\*(C'\fR packages. This is rarely used however, the EventFacet +packages are primarily for convenience and documentation. The EventFacet +classes are not used at all internally, instead the raw data is used. +.PP +Here is a list of facet types by package. The packages are not used internally, +but are where the documentation for each type is kept. +.PP +\&\fBNote:\fR Every single facet type has the \f(CW\*(Aqdetails\*(Aq\fR field. This field is +always intended for human consumption, and when provided, should explain the +\&'why' for the facet. All other fields are facet specific. +.IP "about => {...}" 4 +.IX Item "about => {...}" +Test2::EventFacet::About +.Sp +This contains information about the event itself such as the event package +name. The \f(CW\*(C`details\*(C'\fR field for this facet is an overall summary of the event. +.IP "assert => {...}" 4 +.IX Item "assert => {...}" +Test2::EventFacet::Assert +.Sp +This facet is used if an assertion was made. The \f(CW\*(C`details\*(C'\fR field of this facet +is the description of the assertion. +.IP "control => {...}" 4 +.IX Item "control => {...}" +Test2::EventFacet::Control +.Sp +This facet is used to tell the Test2::Event::Hub about special actions the +event causes. Things like halting all testing, terminating the current test, +etc. In this facet the \f(CW\*(C`details\*(C'\fR field explains why any special action was +taken. +.Sp +\&\fBNote:\fR This is how bail-out is implemented. +.IP "meta => {...}" 4 +.IX Item "meta => {...}" +Test2::EventFacet::Meta +.Sp +The meta facet contains all the meta-data attached to the event. In this case +the \f(CW\*(C`details\*(C'\fR field has no special meaning, but may be present if something +sets the 'details' meta-key on the event. +.IP "parent => {...}" 4 +.IX Item "parent => {...}" +Test2::EventFacet::Parent +.Sp +This facet contains nested events and similar details for subtests. In this +facet the \f(CW\*(C`details\*(C'\fR field will typically be the name of the subtest. +.IP "plan => {...}" 4 +.IX Item "plan => {...}" +Test2::EventFacet::Plan +.Sp +This facet tells the system that a plan has been set. The \f(CW\*(C`details\*(C'\fR field of +this is usually left empty, but when present explains why the plan is what it +is, this is most useful if the plan is to skip-all. +.IP "trace => {...}" 4 +.IX Item "trace => {...}" +Test2::EventFacet::Trace +.Sp +This facet contains information related to when and where the event was +generated. This is how the test file and line number of a failure is known. +This facet can also help you to tell if tests are related. +.Sp +In this facet the \f(CW\*(C`details\*(C'\fR field overrides the \*(L"failed at test_file.t line +42.\*(R" message provided on assertion failure. +.IP "amnesty => [{...}, ...]" 4 +.IX Item "amnesty => [{...}, ...]" +Test2::EventFacet::Amnesty +.Sp +The amnesty facet is a list instead of a single item, this is important as +amnesty can come from multiple places at once. +.Sp +For each instance of amnesty the \f(CW\*(C`details\*(C'\fR field explains why amnesty was +granted. +.Sp +\&\fBNote:\fR Outside of formatters amnesty only acts to forgive a failing +assertion. +.IP "errors => [{...}, ...]" 4 +.IX Item "errors => [{...}, ...]" +Test2::EventFacet::Error +.Sp +The errors facet is a list instead of a single item, any number of errors can +be listed. In this facet \f(CW\*(C`details\*(C'\fR describes the error, or may contain the raw +error message itself (such as an exception). In perl exception may be blessed +objects, as such the raw data for this facet may contain nested items which are +blessed. +.Sp +Not all errors are considered fatal, there is a \f(CW\*(C`fail\*(C'\fR field that must be set +for an error to cause the test to fail. +.Sp +\&\fBNote:\fR This facet is unique in that the field name is 'errors' while the +package is 'Error'. This is because this is the only facet type that is both a +list, and has a name where the plural is not the same as the singular. This may +cause some confusion, but I feel it will be less confusing than the +alternative. +.IP "info => [{...}, ...]" 4 +.IX Item "info => [{...}, ...]" +Test2::EventFacet::Info +.Sp +The 'info' facet is a list instead of a single item, any quantity of extra +information can be attached to an event. Some information may be critical +diagnostics, others may be simply commentary in nature, this is determined by +the \f(CW\*(C`debug\*(C'\fR flag. +.Sp +For this facet the \f(CW\*(C`details\*(C'\fR flag is the info itself. This info may be a +string, or it may be a data structure to display. This is one of the few facet +types that may contain blessed items. +.SS "\s-1LEGACY API\s0" +.IX Subsection "LEGACY API" +.ie n .IP "$bool = $e\->causes_fail" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->causes_fail" 4 +.IX Item "$bool = $e->causes_fail" +Returns true if this event should result in a test failure. In general this +should be false. +.ie n .IP "$bool = $e\->increments_count" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->increments_count" 4 +.IX Item "$bool = $e->increments_count" +Should be true if this event should result in a test count increment. +.ie n .IP "$e\->callback($hub)" 4 +.el .IP "\f(CW$e\fR\->callback($hub)" 4 +.IX Item "$e->callback($hub)" +If your event needs to have extra effects on the Test2::Hub you can override +this method. +.Sp +This is called \fB\s-1BEFORE\s0\fR your event is passed to the formatter. +.ie n .IP "$num = $e\->nested" 4 +.el .IP "\f(CW$num\fR = \f(CW$e\fR\->nested" 4 +.IX Item "$num = $e->nested" +If this event is nested inside of other events, this should be the depth of +nesting. (This is mainly for subtests) +.ie n .IP "$bool = $e\->global" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->global" 4 +.IX Item "$bool = $e->global" +Set this to true if your event is global, that is \s-1ALL\s0 threads and processes +should see it no matter when or where it is generated. This is not a common +thing to want, it is used by bail-out and skip_all to end testing. +.ie n .IP "$code = $e\->terminate" 4 +.el .IP "\f(CW$code\fR = \f(CW$e\fR\->terminate" 4 +.IX Item "$code = $e->terminate" +This is called \fB\s-1AFTER\s0\fR your event has been passed to the formatter. This +should normally return undef, only change this if your event should cause the +test to exit immediately. +.Sp +If you want this event to cause the test to exit you should return the exit +code here. Exit code of 0 means exit success, any other integer means exit with +failure. +.Sp +This is used by Test2::Event::Plan to exit 0 when the plan is +\&'skip_all'. This is also used by Test2::Event:Bail to force the test +to exit with a failure. +.Sp +This is called after the event has been sent to the formatter in order to +ensure the event is seen and understood. +.ie n .IP "$msg = $e\->summary" 4 +.el .IP "\f(CW$msg\fR = \f(CW$e\fR\->summary" 4 +.IX Item "$msg = $e->summary" +This is intended to be a human readable summary of the event. This should +ideally only be one line long, but you can use multiple lines if necessary. This +is intended for human consumption. You do not need to make it easy for machines +to understand. +.Sp +The default is to simply return the event package name. +.ie n .IP "($count, $directive, $reason) = $e\->\fBsets_plan()\fR" 4 +.el .IP "($count, \f(CW$directive\fR, \f(CW$reason\fR) = \f(CW$e\fR\->\fBsets_plan()\fR" 4 +.IX Item "($count, $directive, $reason) = $e->sets_plan()" +Check if this event sets the testing plan. It will return an empty list if it +does not. If it does set the plan it will return a list of 1 to 3 items in +order: Expected Test Count, Test Directive, Reason for directive. +.ie n .IP "$bool = $e\->diagnostics" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->diagnostics" 4 +.IX Item "$bool = $e->diagnostics" +True if the event contains diagnostics info. This is useful because a +non-verbose harness may choose to hide events that are not in this category. +Some formatters may choose to send these to \s-1STDERR\s0 instead of \s-1STDOUT\s0 to ensure +they are seen. +.ie n .IP "$bool = $e\->no_display" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->no_display" 4 +.IX Item "$bool = $e->no_display" +False by default. This will return true on events that should not be displayed +by formatters. +.ie n .IP "$id = $e\->in_subtest" 4 +.el .IP "\f(CW$id\fR = \f(CW$e\fR\->in_subtest" 4 +.IX Item "$id = $e->in_subtest" +If the event is inside a subtest this should have the subtest \s-1ID.\s0 +.ie n .IP "$id = $e\->subtest_id" 4 +.el .IP "\f(CW$id\fR = \f(CW$e\fR\->subtest_id" 4 +.IX Item "$id = $e->subtest_id" +If the event is a final subtest event, this should contain the subtest \s-1ID.\s0 +.SH "THIRD PARTY META-DATA" +.IX Header "THIRD PARTY META-DATA" +This object consumes Test2::Util::ExternalMeta which provides a consistent +way for you to attach meta-data to instances of this class. This is useful for +tools, plugins, and other extensions. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAbout.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAbout.3 new file mode 100644 index 0000000000000000000000000000000000000000..08d14a703519f287921c0ea27eefbd72df8979cb --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAbout.3 @@ -0,0 +1,214 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::About 3" +.TH Test2::EventFacet::About 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::About \- Facet with event details. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet has information about the event, such as event package. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $about\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$about\fR\->{details}" 4 +.IX Item "$string = $about->{details}" +.PD 0 +.ie n .IP "$string = $about\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$about\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $about->details()" +.PD +Summary about the event. +.ie n .IP "$package = $about\->{package}" 4 +.el .IP "\f(CW$package\fR = \f(CW$about\fR\->{package}" 4 +.IX Item "$package = $about->{package}" +.PD 0 +.ie n .IP "$package = $about\->\fBpackage()\fR" 4 +.el .IP "\f(CW$package\fR = \f(CW$about\fR\->\fBpackage()\fR" 4 +.IX Item "$package = $about->package()" +.PD +Event package name. +.ie n .IP "$bool = $about\->{no_display}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$about\fR\->{no_display}" 4 +.IX Item "$bool = $about->{no_display}" +.PD 0 +.ie n .IP "$bool = $about\->\fBno_display()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$about\fR\->\fBno_display()\fR" 4 +.IX Item "$bool = $about->no_display()" +.PD +True if the event should be skipped by formatters. +.ie n .IP "$uuid = $about\->{uuid}" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$about\fR\->{uuid}" 4 +.IX Item "$uuid = $about->{uuid}" +.PD 0 +.ie n .IP "$uuid = $about\->\fBuuid()\fR" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$about\fR\->\fBuuid()\fR" 4 +.IX Item "$uuid = $about->uuid()" +.PD +Will be set to a uuid if uuid tagging was enabled. +.ie n .IP "$uuid = $about\->{eid}" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$about\fR\->{eid}" 4 +.IX Item "$uuid = $about->{eid}" +.PD 0 +.ie n .IP "$uuid = $about\->\fBeid()\fR" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$about\fR\->\fBeid()\fR" 4 +.IX Item "$uuid = $about->eid()" +.PD +A unique (for the test job) identifier for the event. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAmnesty.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAmnesty.3 new file mode 100644 index 0000000000000000000000000000000000000000..7569ae8d530d1af12faeae4225ac393cec389446 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAmnesty.3 @@ -0,0 +1,204 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Amnesty 3" +.TH Test2::EventFacet::Amnesty 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Amnesty \- Facet for assertion amnesty. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package represents what is expected in units of amnesty. +.SH "NOTES" +.IX Header "NOTES" +This facet appears in a list instead of being a single item. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $amnesty\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$amnesty\fR\->{details}" 4 +.IX Item "$string = $amnesty->{details}" +.PD 0 +.ie n .IP "$string = $amnesty\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$amnesty\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $amnesty->details()" +.PD +Human readable explanation of why amnesty was granted. +.Sp +Example: \fINot implemented yet, will fix\fR +.ie n .IP "$short_string = $amnesty\->{tag}" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$amnesty\fR\->{tag}" 4 +.IX Item "$short_string = $amnesty->{tag}" +.PD 0 +.ie n .IP "$short_string = $amnesty\->\fBtag()\fR" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$amnesty\fR\->\fBtag()\fR" 4 +.IX Item "$short_string = $amnesty->tag()" +.PD +Short string (usually 10 characters or less, not enforced, but may be truncated +by renderers) categorizing the amnesty. +.ie n .IP "$bool = $amnesty\->{inherited}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$amnesty\fR\->{inherited}" 4 +.IX Item "$bool = $amnesty->{inherited}" +.PD 0 +.ie n .IP "$bool = $amnesty\->\fBinherited()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$amnesty\fR\->\fBinherited()\fR" 4 +.IX Item "$bool = $amnesty->inherited()" +.PD +This will be true if the amnesty was granted to a parent event and inherited by +this event, which is a child, such as an assertion within a subtest that is +marked todo. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AControl.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AControl.3 new file mode 100644 index 0000000000000000000000000000000000000000..971d18cb6ee6e52bc588314efda2010cbfe2ac60 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AControl.3 @@ -0,0 +1,235 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Control 3" +.TH Test2::EventFacet::Control 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Control \- Facet for hub actions and behaviors. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet is used when the event needs to give instructions to the Test2 +internals. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $control\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$control\fR\->{details}" 4 +.IX Item "$string = $control->{details}" +.PD 0 +.ie n .IP "$string = $control\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$control\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $control->details()" +.PD +Human readable explanation for the special behavior. +.ie n .IP "$bool = $control\->{global}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->{global}" 4 +.IX Item "$bool = $control->{global}" +.PD 0 +.ie n .IP "$bool = $control\->\fBglobal()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->\fBglobal()\fR" 4 +.IX Item "$bool = $control->global()" +.PD +True if the event is global in nature and should be seen by all hubs. +.ie n .IP "$exit = $control\->{terminate}" 4 +.el .IP "\f(CW$exit\fR = \f(CW$control\fR\->{terminate}" 4 +.IX Item "$exit = $control->{terminate}" +.PD 0 +.ie n .IP "$exit = $control\->\fBterminate()\fR" 4 +.el .IP "\f(CW$exit\fR = \f(CW$control\fR\->\fBterminate()\fR" 4 +.IX Item "$exit = $control->terminate()" +.PD +Defined if the test should immediately exit, the value is the exit code and may +be \f(CW0\fR. +.ie n .IP "$bool = $control\->{halt}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->{halt}" 4 +.IX Item "$bool = $control->{halt}" +.PD 0 +.ie n .IP "$bool = $control\->\fBhalt()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->\fBhalt()\fR" 4 +.IX Item "$bool = $control->halt()" +.PD +True if all testing should be halted immediately. +.ie n .IP "$bool = $control\->{has_callback}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->{has_callback}" 4 +.IX Item "$bool = $control->{has_callback}" +.PD 0 +.ie n .IP "$bool = $control\->\fBhas_callback()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$control\fR\->\fBhas_callback()\fR" 4 +.IX Item "$bool = $control->has_callback()" +.PD +True if the \f(CW\*(C`callback($hub)\*(C'\fR method on the event should be called. +.ie n .IP "$encoding = $control\->{encoding}" 4 +.el .IP "\f(CW$encoding\fR = \f(CW$control\fR\->{encoding}" 4 +.IX Item "$encoding = $control->{encoding}" +.PD 0 +.ie n .IP "$encoding = $control\->\fBencoding()\fR" 4 +.el .IP "\f(CW$encoding\fR = \f(CW$control\fR\->\fBencoding()\fR" 4 +.IX Item "$encoding = $control->encoding()" +.PD +This can be used to change the encoding from this event onward. +.ie n .IP "$phase = $control\->{phase}" 4 +.el .IP "\f(CW$phase\fR = \f(CW$control\fR\->{phase}" 4 +.IX Item "$phase = $control->{phase}" +.PD 0 +.ie n .IP "$phase = $control\->\fBphase()\fR" 4 +.el .IP "\f(CW$phase\fR = \f(CW$control\fR\->\fBphase()\fR" 4 +.IX Item "$phase = $control->phase()" +.PD +Used to signal that a phase change has occurred. Currently only the perl \s-1END\s0 +phase is signaled. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AHub.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AHub.3 new file mode 100644 index 0000000000000000000000000000000000000000..1ed33bd082d4f6aa53732626e1cdcd3e75937320 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AHub.3 @@ -0,0 +1,234 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Hub 3" +.TH Test2::EventFacet::Hub 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Hub \- Facet for the hubs an event passes through. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +These are a record of the hubs an event passes through. Most recent hub is the +first one in the list. +.SH "FACET FIELDS" +.IX Header "FACET FIELDS" +.ie n .IP "$string = $trace\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$trace\fR\->{details}" 4 +.IX Item "$string = $trace->{details}" +.PD 0 +.ie n .IP "$string = $trace\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$trace\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $trace->details()" +.PD +The hub class or subclass +.ie n .IP "$int = $trace\->{pid}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{pid}" 4 +.IX Item "$int = $trace->{pid}" +.PD 0 +.ie n .IP "$int = $trace\->\fBpid()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBpid()\fR" 4 +.IX Item "$int = $trace->pid()" +.PD +\&\s-1PID\s0 of the hub this event was sent to. +.ie n .IP "$int = $trace\->{tid}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{tid}" 4 +.IX Item "$int = $trace->{tid}" +.PD 0 +.ie n .IP "$int = $trace\->\fBtid()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBtid()\fR" 4 +.IX Item "$int = $trace->tid()" +.PD +The thread \s-1ID\s0 of the hub the event was sent to. +.ie n .IP "$hid = $trace\->{hid}" 4 +.el .IP "\f(CW$hid\fR = \f(CW$trace\fR\->{hid}" 4 +.IX Item "$hid = $trace->{hid}" +.PD 0 +.ie n .IP "$hid = $trace\->\fBhid()\fR" 4 +.el .IP "\f(CW$hid\fR = \f(CW$trace\fR\->\fBhid()\fR" 4 +.IX Item "$hid = $trace->hid()" +.PD +The \s-1ID\s0 of the hub that the event was send to. +.ie n .IP "$huuid = $trace\->{huuid}" 4 +.el .IP "\f(CW$huuid\fR = \f(CW$trace\fR\->{huuid}" 4 +.IX Item "$huuid = $trace->{huuid}" +.PD 0 +.ie n .IP "$huuid = $trace\->\fBhuuid()\fR" 4 +.el .IP "\f(CW$huuid\fR = \f(CW$trace\fR\->\fBhuuid()\fR" 4 +.IX Item "$huuid = $trace->huuid()" +.PD +The \s-1UUID\s0 of the hub that the event was sent to. +.ie n .IP "$int = $trace\->{nested}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{nested}" 4 +.IX Item "$int = $trace->{nested}" +.PD 0 +.ie n .IP "$int = $trace\->\fBnested()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBnested()\fR" 4 +.IX Item "$int = $trace->nested()" +.PD +How deeply nested the hub was. +.ie n .IP "$bool = $trace\->{buffered}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$trace\fR\->{buffered}" 4 +.IX Item "$bool = $trace->{buffered}" +.PD 0 +.ie n .IP "$bool = $trace\->\fBbuffered()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$trace\fR\->\fBbuffered()\fR" 4 +.IX Item "$bool = $trace->buffered()" +.PD +True if the event was buffered and not sent to the formatter independent of a +parent (This should never be set when nested is \f(CW0\fR or \f(CW\*(C`undef\*(C'\fR). +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo%3A%3ATable.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo%3A%3ATable.3 new file mode 100644 index 0000000000000000000000000000000000000000..933b1fab423a9d557f60fd6d6853ce27b3a8ecb5 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo%3A%3ATable.3 @@ -0,0 +1,239 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Info::Table 3" +.TH Test2::EventFacet::Info::Table 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Info::Table \- Intermediary representation of a table. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Intermediary representation of a table for use in specialized +Test::API::Context methods which generate Test2::EventFacet::Info facets. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::EventFacet::Info::Table; +\& use Test2::API qw/context/; +\& +\& sub my_tool { +\& my $ctx = context(); +\& +\& ... +\& +\& $ctx\->fail( +\& $name, +\& "failure diag message", +\& Test2::EventFacet::Info::Table\->new( +\& # Required +\& rows => [[\*(Aqa\*(Aq, \*(Aqb\*(Aq], [\*(Aqc\*(Aq, \*(Aqd\*(Aq], ...], +\& +\& # Strongly Recommended +\& as_string => "... string to print when table cannot be rendered ...", +\& +\& # Optional +\& header => [\*(Aqcol1\*(Aq, \*(Aqcol2\*(Aq], +\& collapse => $bool, +\& no_collapse => [\*(Aqcol1\*(Aq, ...], +\& ), +\& ); +\& +\& ... +\& +\& $ctx\->release; +\& } +\& +\& my_tool(); +.Ve +.SH "ATTRIBUTES" +.IX Header "ATTRIBUTES" +.ie n .IP "$header_aref = $t\->\fBheader()\fR" 4 +.el .IP "\f(CW$header_aref\fR = \f(CW$t\fR\->\fBheader()\fR" 4 +.IX Item "$header_aref = $t->header()" +.PD 0 +.ie n .IP "$rows_aref = $t\->\fBrows()\fR" 4 +.el .IP "\f(CW$rows_aref\fR = \f(CW$t\fR\->\fBrows()\fR" 4 +.IX Item "$rows_aref = $t->rows()" +.ie n .IP "$bool = $t\->\fBcollapse()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$t\fR\->\fBcollapse()\fR" 4 +.IX Item "$bool = $t->collapse()" +.ie n .IP "$aref = $t\->\fBno_collapse()\fR" 4 +.el .IP "\f(CW$aref\fR = \f(CW$t\fR\->\fBno_collapse()\fR" 4 +.IX Item "$aref = $t->no_collapse()" +.PD +The above are all directly tied to the table hashref structure described in +Test2::EventFacet::Info. +.ie n .IP "$str = $t\->\fBas_string()\fR" 4 +.el .IP "\f(CW$str\fR = \f(CW$t\fR\->\fBas_string()\fR" 4 +.IX Item "$str = $t->as_string()" +This returns the string form of the table if it was set, otherwise it returns +the string \f(CW""\fR. +.ie n .IP "$href = $t\->\fBas_hash()\fR" 4 +.el .IP "\f(CW$href\fR = \f(CW$t\fR\->\fBas_hash()\fR" 4 +.IX Item "$href = $t->as_hash()" +This returns the data structure used for tables by Test2::EventFacet::Info. +.ie n .IP "%args = $t\->\fBinfo_args()\fR" 4 +.el .IP "\f(CW%args\fR = \f(CW$t\fR\->\fBinfo_args()\fR" 4 +.IX Item "%args = $t->info_args()" +This returns the arguments that should be used to construct the proper +Test2::EventFacet::Info structure. +.Sp +.Vb 1 +\& return (table => $t\->as_hash(), details => $t\->as_string()); +.Ve +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo.3 new file mode 100644 index 0000000000000000000000000000000000000000..117f3a91adbed1ae5e9daaf0bb02ddef63498577 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AInfo.3 @@ -0,0 +1,253 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Info 3" +.TH Test2::EventFacet::Info 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Info \- Facet for information a developer might care about. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet represents messages intended for humans that will help them either +understand a result, or diagnose a failure. +.SH "NOTES" +.IX Header "NOTES" +This facet appears in a list instead of being a single item. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string_or_structure = $info\->{details}" 4 +.el .IP "\f(CW$string_or_structure\fR = \f(CW$info\fR\->{details}" 4 +.IX Item "$string_or_structure = $info->{details}" +.PD 0 +.ie n .IP "$string_or_structure = $info\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string_or_structure\fR = \f(CW$info\fR\->\fBdetails()\fR" 4 +.IX Item "$string_or_structure = $info->details()" +.PD +Human readable string or data structure, this is the information to display. +Formatters are free to render the structures however they please. This may +contain a blessed object. +.Sp +If the \f(CW\*(C`table\*(C'\fR attribute (see below) is set then a renderer may choose to +display the table instead of the details. +.ie n .IP "$structure = $info\->{table}" 4 +.el .IP "\f(CW$structure\fR = \f(CW$info\fR\->{table}" 4 +.IX Item "$structure = $info->{table}" +.PD 0 +.ie n .IP "$structure = $info\->\fBtable()\fR" 4 +.el .IP "\f(CW$structure\fR = \f(CW$info\fR\->\fBtable()\fR" 4 +.IX Item "$structure = $info->table()" +.PD +If the data the \f(CW\*(C`info\*(C'\fR facet needs to convey can be represented as a table +then the data may be placed in this attribute in a more raw form for better +display. The data must also be represented in the \f(CW\*(C`details\*(C'\fR attribute for +renderers which do not support rendering tables directly. +.Sp +The table structure: +.Sp +.Vb 2 +\& my %table = { +\& header => [ \*(Aqcolumn 1 header\*(Aq, \*(Aqcolumn 2 header\*(Aq, ... ], # Optional +\& +\& rows => [ +\& [\*(Aqrow 1 column 1\*(Aq, \*(Aqrow 1, column 2\*(Aq, ... ], +\& [\*(Aqrow 2 column 1\*(Aq, \*(Aqrow 2, column 2\*(Aq, ... ], +\& ... +\& ], +\& +\& # Allow the renderer to hide empty columns when true, Optional +\& collapse => $BOOL, +\& +\& # List by name or number columns that should never be collapsed +\& no_collapse => \e@LIST, +\& } +.Ve +.ie n .IP "$short_string = $info\->{tag}" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$info\fR\->{tag}" 4 +.IX Item "$short_string = $info->{tag}" +.PD 0 +.ie n .IP "$short_string = $info\->\fBtag()\fR" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$info\fR\->\fBtag()\fR" 4 +.IX Item "$short_string = $info->tag()" +.PD +Short tag to categorize the info. This is usually 10 characters or less, +formatters may truncate longer tags. +.ie n .IP "$bool = $info\->{debug}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$info\fR\->{debug}" 4 +.IX Item "$bool = $info->{debug}" +.PD 0 +.ie n .IP "$bool = $info\->\fBdebug()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$info\fR\->\fBdebug()\fR" 4 +.IX Item "$bool = $info->debug()" +.PD +Set this to true if the message is critical, or explains a failure. This is +info that should be displayed by formatters even in less-verbose modes. +.Sp +When false the information is not considered critical and may not be rendered +in less-verbose modes. +.ie n .IP "$bool = $info\->{important}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$info\fR\->{important}" 4 +.IX Item "$bool = $info->{important}" +.PD 0 +.ie n .IP "$bool = $info\->important" 4 +.el .IP "\f(CW$bool\fR = \f(CW$info\fR\->important" 4 +.IX Item "$bool = $info->important" +.PD +This should be set for non debug messages that are still important enough to +show when a formatter is in quiet mode. A formatter should send these to \s-1STDOUT\s0 +not \s-1STDERR,\s0 but should show them even in non-verbose mode. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AMeta.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AMeta.3 new file mode 100644 index 0000000000000000000000000000000000000000..be22d08a4f30ef40649f25ed2ce721d5d2cbf130 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AMeta.3 @@ -0,0 +1,180 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Meta 3" +.TH Test2::EventFacet::Meta 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Meta \- Facet for meta\-data +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet can contain any random meta-data that has been attached to the +event. +.SH "METHODS AND FIELDS" +.IX Header "METHODS AND FIELDS" +Any/all fields and accessors are autovivified into existence. There is no way +to know what metadata may be added, so any is allowed. +.ie n .IP "$anything = $meta\->{anything}" 4 +.el .IP "\f(CW$anything\fR = \f(CW$meta\fR\->{anything}" 4 +.IX Item "$anything = $meta->{anything}" +.PD 0 +.ie n .IP "$anything = $meta\->\fBanything()\fR" 4 +.el .IP "\f(CW$anything\fR = \f(CW$meta\fR\->\fBanything()\fR" 4 +.IX Item "$anything = $meta->anything()" +.PD +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3APlan.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3APlan.3 new file mode 100644 index 0000000000000000000000000000000000000000..0e58b5626855243b9247921a8cc5060004abdf56 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3APlan.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Plan 3" +.TH Test2::EventFacet::Plan 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Plan \- Facet for setting the plan +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Events use this facet when they need to set the plan. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $plan\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$plan\fR\->{details}" 4 +.IX Item "$string = $plan->{details}" +.PD 0 +.ie n .IP "$string = $plan\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$plan\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $plan->details()" +.PD +Human readable explanation for the plan being set. This is normally not +rendered by most formatters except when the \f(CW\*(C`skip\*(C'\fR field is also set. +.ie n .IP "$positive_int = $plan\->{count}" 4 +.el .IP "\f(CW$positive_int\fR = \f(CW$plan\fR\->{count}" 4 +.IX Item "$positive_int = $plan->{count}" +.PD 0 +.ie n .IP "$positive_int = $plan\->\fBcount()\fR" 4 +.el .IP "\f(CW$positive_int\fR = \f(CW$plan\fR\->\fBcount()\fR" 4 +.IX Item "$positive_int = $plan->count()" +.PD +Set the number of expected assertions. This should usually be set to \f(CW0\fR when +\&\f(CW\*(C`skip\*(C'\fR or \f(CW\*(C`none\*(C'\fR are also set. +.ie n .IP "$bool = $plan\->{skip}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$plan\fR\->{skip}" 4 +.IX Item "$bool = $plan->{skip}" +.PD 0 +.ie n .IP "$bool = $plan\->\fBskip()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$plan\fR\->\fBskip()\fR" 4 +.IX Item "$bool = $plan->skip()" +.PD +When true the entire test should be skipped. This is usually paired with an +explanation in the \f(CW\*(C`details\*(C'\fR field, and a \f(CW\*(C`control\*(C'\fR facet that has +\&\f(CW\*(C`terminate\*(C'\fR set to \f(CW0\fR. +.ie n .IP "$bool = $plan\->{none}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$plan\fR\->{none}" 4 +.IX Item "$bool = $plan->{none}" +.PD 0 +.ie n .IP "$bool = $plan\->\fBnone()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$plan\fR\->\fBnone()\fR" 4 +.IX Item "$bool = $plan->none()" +.PD +This is mainly used by legacy Test::Builder tests which set the plan to \f(CW\*(C`no +plan\*(C'\fR, a construct that predates the much better \f(CW\*(C`done_testing()\*(C'\fR. +.Sp +If you are using this in non-legacy code you may need to reconsider the course +of your life, maybe a hermitage would suite you? +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ARender.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ARender.3 new file mode 100644 index 0000000000000000000000000000000000000000..e660a43885f87ca62a4bf65a714875961a246347 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ARender.3 @@ -0,0 +1,222 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet::Render 3" +.TH Test2::EventFacet::Render 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet::Render \- Facet that dictates how to render an event. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet is used to dictate how the event should be rendered by the standard +test2 rendering tools. If this facet is present then \s-1ONLY\s0 what is specified by +it will be rendered. It is assumed that anything important or note-worthy will +be present here, no other facets will be considered for rendering/display. +.PP +This facet is a list type, you can add as many items as needed. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $render\->[#]\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->{details}" 4 +.IX Item "$string = $render->[#]->{details}" +.PD 0 +.ie n .IP "$string = $render\->[#]\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->\fBdetails()\fR" 4 +.IX Item "$string = $render->[#]->details()" +.PD +Human readable text for display. +.ie n .IP "$string = $render\->[#]\->{tag}" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->{tag}" 4 +.IX Item "$string = $render->[#]->{tag}" +.PD 0 +.ie n .IP "$string = $render\->[#]\->\fBtag()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->\fBtag()\fR" 4 +.IX Item "$string = $render->[#]->tag()" +.PD +Tag that should prefix/identify the main text. +.ie n .IP "$string = $render\->[#]\->{facet}" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->{facet}" 4 +.IX Item "$string = $render->[#]->{facet}" +.PD 0 +.ie n .IP "$string = $render\->[#]\->\fBfacet()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$render\fR\->[#]\->\fBfacet()\fR" 4 +.IX Item "$string = $render->[#]->facet()" +.PD +Optional, if the display text was generated from another facet this should +state what facet it was. +.ie n .IP "$mode = $render\->[#]\->{mode}" 4 +.el .IP "\f(CW$mode\fR = \f(CW$render\fR\->[#]\->{mode}" 4 +.IX Item "$mode = $render->[#]->{mode}" +.PD 0 +.ie n .IP "$mode = $render\->[#]\->\fBmode()\fR" 4 +.el .IP "\f(CW$mode\fR = \f(CW$render\fR\->[#]\->\fBmode()\fR" 4 +.IX Item "$mode = $render->[#]->mode()" +.RS 4 +.IP "calculated" 4 +.IX Item "calculated" +.PD +Calculated means the facet was generated from another facet. Calculated facets +may be cleared and regenerated whenever the event state changes. +.IP "replace" 4 +.IX Item "replace" +Replace means the facet is intended to replace the normal rendering of the +event. +.RE +.RS 4 +.RE +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet.3 new file mode 100644 index 0000000000000000000000000000000000000000..da2ee4bb1fd9fa113879274aa3d4647258d78663 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet.3 @@ -0,0 +1,188 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::EventFacet 3" +.TH Test2::EventFacet 3 "2020-12-18" "perl v5.32.1" "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" +Test2::EventFacet \- Base class for all event facets. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Base class for all event facets. +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$key = $facet_class\->\fBfacet_key()\fR" 4 +.el .IP "\f(CW$key\fR = \f(CW$facet_class\fR\->\fBfacet_key()\fR" 4 +.IX Item "$key = $facet_class->facet_key()" +This will return the key for the facet in the facet data hash. +.ie n .IP "$bool = $facet_class\->\fBis_list()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$facet_class\fR\->\fBis_list()\fR" 4 +.IX Item "$bool = $facet_class->is_list()" +This will return true if the facet should be in a list instead of a single +item. +.ie n .IP "$clone = $facet\->\fBclone()\fR" 4 +.el .IP "\f(CW$clone\fR = \f(CW$facet\fR\->\fBclone()\fR" 4 +.IX Item "$clone = $facet->clone()" +.PD 0 +.ie n .IP "$clone = $facet\->clone(%replace)" 4 +.el .IP "\f(CW$clone\fR = \f(CW$facet\fR\->clone(%replace)" 4 +.IX Item "$clone = $facet->clone(%replace)" +.PD +This will make a shallow clone of the facet. You may specify fields to override +as arguments. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AFormatter%3A%3ATAP.3 b/data/miniconda3/man/man3/Test2%3A%3AFormatter%3A%3ATAP.3 new file mode 100644 index 0000000000000000000000000000000000000000..bf178fc881ea7f04a377c3f30af1678bdf5f1c9d --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AFormatter%3A%3ATAP.3 @@ -0,0 +1,217 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Formatter::TAP 3" +.TH Test2::Formatter::TAP 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Formatter::TAP \- Standard TAP formatter +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is what takes events and turns them into \s-1TAP.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Test2::Formatter::TAP; +\& my $tap = Test2::Formatter::TAP\->new(); +\& +\& # Switch to utf8 +\& $tap\->encoding(\*(Aqutf8\*(Aq); +\& +\& $tap\->write($event, $number); # Output an event +.Ve +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$bool = $tap\->no_numbers" 4 +.el .IP "\f(CW$bool\fR = \f(CW$tap\fR\->no_numbers" 4 +.IX Item "$bool = $tap->no_numbers" +.PD 0 +.ie n .IP "$tap\->set_no_numbers($bool)" 4 +.el .IP "\f(CW$tap\fR\->set_no_numbers($bool)" 4 +.IX Item "$tap->set_no_numbers($bool)" +.PD +Use to turn numbers on and off. +.ie n .IP "$arrayref = $tap\->handles" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$tap\fR\->handles" 4 +.IX Item "$arrayref = $tap->handles" +.PD 0 +.ie n .IP "$tap\->set_handles(\e@handles);" 4 +.el .IP "\f(CW$tap\fR\->set_handles(\e@handles);" 4 +.IX Item "$tap->set_handles(@handles);" +.PD +Can be used to get/set the filehandles. Indexes are identified by the +\&\f(CW\*(C`OUT_STD\*(C'\fR and \f(CW\*(C`OUT_ERR\*(C'\fR constants. +.ie n .IP "$encoding = $tap\->encoding" 4 +.el .IP "\f(CW$encoding\fR = \f(CW$tap\fR\->encoding" 4 +.IX Item "$encoding = $tap->encoding" +.PD 0 +.ie n .IP "$tap\->encoding($encoding)" 4 +.el .IP "\f(CW$tap\fR\->encoding($encoding)" 4 +.IX Item "$tap->encoding($encoding)" +.PD +Get or set the encoding. By default no encoding is set, the original settings +of \s-1STDOUT\s0 and \s-1STDERR\s0 are used. +.Sp +This directly modifies the stored filehandles, it does not create new ones. +.ie n .IP "$tap\->write($e, $num)" 4 +.el .IP "\f(CW$tap\fR\->write($e, \f(CW$num\fR)" 4 +.IX Item "$tap->write($e, $num)" +Write an event to the console. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.IP "Kent Fredric " 4 +.IX Item "Kent Fredric " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AFormatter.3 b/data/miniconda3/man/man3/Test2%3A%3AFormatter.3 new file mode 100644 index 0000000000000000000000000000000000000000..df466b855fd932a2e2680de18d3046d3a67efe69 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AFormatter.3 @@ -0,0 +1,244 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Formatter 3" +.TH Test2::Formatter 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Formatter \- Namespace for formatters. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is the namespace for formatters. This is an empty package. +.SH "CREATING FORMATTERS" +.IX Header "CREATING FORMATTERS" +A formatter is any package or object with a \f(CW\*(C`write($event, $num)\*(C'\fR method. +.PP +.Vb 3 +\& package Test2::Formatter::Foo; +\& use strict; +\& use warnings; +\& +\& sub write { +\& my $self_or_class = shift; +\& my ($event, $assert_num) = @_; +\& ... +\& } +\& +\& sub hide_buffered { 1 } +\& +\& sub terminate { } +\& +\& sub finalize { } +\& +\& sub supports_tables { return $BOOL } +\& +\& sub new_root { +\& my $class = shift; +\& ... +\& $class\->new(@_); +\& } +\& +\& 1; +.Ve +.PP +The \f(CW\*(C`write\*(C'\fR method is a method, so it either gets a class or instance. The two +arguments are the \f(CW$event\fR object it should record, and the \f(CW$assert_num\fR +which is the number of the current assertion (ok), or the last assertion if +this event is not itself an assertion. The assertion number may be any integer 0 +or greater, and may be undefined in some cases. +.PP +The \f(CW\*(C`hide_buffered()\*(C'\fR method must return a boolean. This is used to tell +buffered subtests whether or not to send it events as they are being buffered. +See \*(L"run_subtest(...)\*(R" in Test2::API for more information. +.PP +The \f(CW\*(C`terminate\*(C'\fR and \f(CW\*(C`finalize\*(C'\fR methods are optional methods called that you +can implement if the format you're generating needs to handle these cases, for +example if you are generating \s-1XML\s0 and need close open tags. +.PP +The \f(CW\*(C`terminate\*(C'\fR method is called when an event's \f(CW\*(C`terminate\*(C'\fR method returns +true, for example when a Test2::Event::Plan has a \f(CW\*(Aqskip_all\*(Aq\fR plan, or +when a Test2::Event::Bail event is sent. The \f(CW\*(C`terminate\*(C'\fR method is passed +a single argument, the Test2::Event object which triggered the terminate. +.PP +The \f(CW\*(C`finalize\*(C'\fR method is always the last thing called on the formatter, \fIexcept when \f(CI\*(C`terminate\*(C'\fI is called for a Bail event\fR. It is passed the +following arguments: +.PP +The \f(CW\*(C`supports_tables\*(C'\fR method should be true if the formatter supports directly +rendering table data from the \f(CW\*(C`info\*(C'\fR facets. This is a newer feature and many +older formatters may not support it. When not supported the formatter falls +back to rendering \f(CW\*(C`detail\*(C'\fR instead of the \f(CW\*(C`table\*(C'\fR data. +.PP +The \f(CW\*(C`new_root\*(C'\fR method is used when constructing a root formatter. The default +is to just delegate to the regular \f(CW\*(C`new()\*(C'\fR method, most formatters can ignore +this. +.IP "\(bu" 4 +The number of tests that were planned +.IP "\(bu" 4 +The number of tests actually seen +.IP "\(bu" 4 +The number of tests which failed +.IP "\(bu" 4 +A boolean indicating whether or not the test suite passed +.IP "\(bu" 4 +A boolean indicating whether or not this call is for a subtest +.PP +The \f(CW\*(C`new_root\*(C'\fR method is called when \f(CW\*(C`Test2::API::Stack\*(C'\fR Initializes the root +hub for the first time. Most formatters will simply have this call \f(CW\*(C`$class\->new\*(C'\fR, which is the default behavior. Some formatters however may want +to take extra action during construction of the root formatter, this is where +they can do that. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor%3A%3ATerminator.3 b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor%3A%3ATerminator.3 new file mode 100644 index 0000000000000000000000000000000000000000..46396fb9428f745c6a3a0c1056d6fc0ff4f6f57b --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor%3A%3ATerminator.3 @@ -0,0 +1,165 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Hub::Interceptor::Terminator 3" +.TH Test2::Hub::Interceptor::Terminator 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Hub::Interceptor::Terminator \- Exception class used by +Test2::Hub::Interceptor +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor.3 b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor.3 new file mode 100644 index 0000000000000000000000000000000000000000..65271db9fb0c54d7b6399622b757cbcf1dfb7d40 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3AInterceptor.3 @@ -0,0 +1,164 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Hub::Interceptor 3" +.TH Test2::Hub::Interceptor 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Hub::Interceptor \- Hub used by interceptor to grab results. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3ASubtest.3 b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3ASubtest.3 new file mode 100644 index 0000000000000000000000000000000000000000..77c1b23f33603380857e765c1670482551463baa --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AHub%3A%3ASubtest.3 @@ -0,0 +1,186 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Hub::Subtest 3" +.TH Test2::Hub::Subtest 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Hub::Subtest \- Hub used by subtests +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Subtests make use of this hub to route events. +.SH "TOGGLES" +.IX Header "TOGGLES" +.ie n .IP "$bool = $hub\->manual_skip_all" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->manual_skip_all" 4 +.IX Item "$bool = $hub->manual_skip_all" +.PD 0 +.ie n .IP "$hub\->set_manual_skip_all($bool)" 4 +.el .IP "\f(CW$hub\fR\->set_manual_skip_all($bool)" 4 +.IX Item "$hub->set_manual_skip_all($bool)" +.PD +The default is false. +.Sp +Normally a skip-all plan event will cause a subtest to stop executing. This is +accomplished via \f(CW\*(C`last LABEL\*(C'\fR to a label inside the subtest code. Most of the +time this is perfectly fine. There are times however where this flow control +causes bad things to happen. +.Sp +This toggle lets you turn off the abort logic for the hub. When this is toggled +to true \fByou\fR are responsible for ensuring no additional events are generated. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AHub.3 b/data/miniconda3/man/man3/Test2%3A%3AHub.3 new file mode 100644 index 0000000000000000000000000000000000000000..c5dd67f00949d9b04c92b4fe447e3adb9eb62a89 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AHub.3 @@ -0,0 +1,521 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Hub 3" +.TH Test2::Hub 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Hub \- The conduit through which all events flow. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::Hub; +\& +\& my $hub = Test2::Hub\->new(); +\& $hub\->send(...); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The hub is the place where all events get processed and handed off to the +formatter. The hub also tracks test state, and provides several hooks into the +event pipeline. +.SH "COMMON TASKS" +.IX Header "COMMON TASKS" +.SS "\s-1SENDING EVENTS\s0" +.IX Subsection "SENDING EVENTS" +.Vb 1 +\& $hub\->send($event) +.Ve +.PP +The \f(CW\*(C`send()\*(C'\fR method is used to issue an event to the hub. This method will +handle thread/fork sync, filters, listeners, \s-1TAP\s0 output, etc. +.SS "\s-1ALTERING OR REMOVING EVENTS\s0" +.IX Subsection "ALTERING OR REMOVING EVENTS" +You can use either \f(CW\*(C`filter()\*(C'\fR or \f(CW\*(C`pre_filter()\*(C'\fR, depending on your +needs. Both have identical syntax, so only \f(CW\*(C`filter()\*(C'\fR is shown here. +.PP +.Vb 2 +\& $hub\->filter(sub { +\& my ($hub, $event) = @_; +\& +\& my $action = get_action($event); +\& +\& # No action should be taken +\& return $event if $action eq \*(Aqnone\*(Aq; +\& +\& # You want your filter to remove the event +\& return undef if $action eq \*(Aqdelete\*(Aq; +\& +\& if ($action eq \*(Aqdo_it\*(Aq) { +\& my $new_event = copy_event($event); +\& ... Change your copy of the event ... +\& return $new_event; +\& } +\& +\& die "Should not happen"; +\& }); +.Ve +.PP +By default, filters are not inherited by child hubs. That means if you start a +subtest, the subtest will not inherit the filter. You can change this behavior +with the \f(CW\*(C`inherit\*(C'\fR parameter: +.PP +.Vb 1 +\& $hub\->filter(sub { ... }, inherit => 1); +.Ve +.SS "\s-1LISTENING FOR EVENTS\s0" +.IX Subsection "LISTENING FOR EVENTS" +.Vb 2 +\& $hub\->listen(sub { +\& my ($hub, $event, $number) = @_; +\& +\& ... do whatever you want with the event ... +\& +\& # return is ignored +\& }); +.Ve +.PP +By default listeners are not inherited by child hubs. That means if you start a +subtest, the subtest will not inherit the listener. You can change this behavior +with the \f(CW\*(C`inherit\*(C'\fR parameter: +.PP +.Vb 1 +\& $hub\->listen(sub { ... }, inherit => 1); +.Ve +.SS "POST-TEST \s-1BEHAVIORS\s0" +.IX Subsection "POST-TEST BEHAVIORS" +.Vb 2 +\& $hub\->follow_up(sub { +\& my ($trace, $hub) = @_; +\& +\& ... do whatever you need to ... +\& +\& # Return is ignored +\& }); +.Ve +.PP +follow_up subs are called only once, either when done_testing is called, or in +an \s-1END\s0 block. +.SS "\s-1SETTING THE FORMATTER\s0" +.IX Subsection "SETTING THE FORMATTER" +By default an instance of Test2::Formatter::TAP is created and used. +.PP +.Vb 1 +\& my $old = $hub\->format(My::Formatter\->new); +.Ve +.PP +Setting the formatter will \s-1REPLACE\s0 any existing formatter. You may set the +formatter to undef to prevent output. The old formatter will be returned if one +was already set. Only one formatter is allowed at a time. +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$hub\->send($event)" 4 +.el .IP "\f(CW$hub\fR\->send($event)" 4 +.IX Item "$hub->send($event)" +This is where all events enter the hub for processing. +.ie n .IP "$hub\->process($event)" 4 +.el .IP "\f(CW$hub\fR\->process($event)" 4 +.IX Item "$hub->process($event)" +This is called by send after it does any \s-1IPC\s0 handling. You can use this to +bypass the \s-1IPC\s0 process, but in general you should avoid using this. +.ie n .IP "$old = $hub\->format($formatter)" 4 +.el .IP "\f(CW$old\fR = \f(CW$hub\fR\->format($formatter)" 4 +.IX Item "$old = $hub->format($formatter)" +Replace the existing formatter instance with a new one. Formatters must be +objects that implement a \f(CW\*(C`$formatter\->write($event)\*(C'\fR method. +.ie n .IP "$sub = $hub\->listen(sub { ... }, %optional_params)" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->listen(sub { ... }, \f(CW%optional_params\fR)" 4 +.IX Item "$sub = $hub->listen(sub { ... }, %optional_params)" +You can use this to record all events \s-1AFTER\s0 they have been sent to the +formatter. No changes made here will be meaningful, except possibly to other +listeners. +.Sp +.Vb 2 +\& $hub\->listen(sub { +\& my ($hub, $event, $number) = @_; +\& +\& ... do whatever you want with the event ... +\& +\& # return is ignored +\& }); +.Ve +.Sp +Normally listeners are not inherited by child hubs such as subtests. You can +add the \f(CW\*(C`inherit => 1\*(C'\fR parameter to allow a listener to be inherited. +.ie n .IP "$hub\->unlisten($sub)" 4 +.el .IP "\f(CW$hub\fR\->unlisten($sub)" 4 +.IX Item "$hub->unlisten($sub)" +You can use this to remove a listen callback. You must pass in the coderef +returned by the \f(CW\*(C`listen()\*(C'\fR method. +.ie n .IP "$sub = $hub\->filter(sub { ... }, %optional_params)" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->filter(sub { ... }, \f(CW%optional_params\fR)" 4 +.IX Item "$sub = $hub->filter(sub { ... }, %optional_params)" +.PD 0 +.ie n .IP "$sub = $hub\->pre_filter(sub { ... }, %optional_params)" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->pre_filter(sub { ... }, \f(CW%optional_params\fR)" 4 +.IX Item "$sub = $hub->pre_filter(sub { ... }, %optional_params)" +.PD +These can be used to add filters. Filters can modify, replace, or remove events +before anything else can see them. +.Sp +.Vb 3 +\& $hub\->filter( +\& sub { +\& my ($hub, $event) = @_; +\& +\& return $event; # No Changes +\& return; # Remove the event +\& +\& # Or you can modify an event before returning it. +\& $event\->modify; +\& return $event; +\& } +\& ); +.Ve +.Sp +If you are not using threads, forking, or \s-1IPC\s0 then the only difference between +a \f(CW\*(C`filter\*(C'\fR and a \f(CW\*(C`pre_filter\*(C'\fR is that \f(CW\*(C`pre_filter\*(C'\fR subs run first. When you +are using threads, forking, or \s-1IPC,\s0 pre_filters happen to events before they +are sent to their destination proc/thread, ordinary filters happen only in the +destination hub/thread. +.Sp +You cannot add a regular filter to a hub if the hub was created in another +process or thread. You can always add a pre_filter. +.ie n .IP "$hub\->unfilter($sub)" 4 +.el .IP "\f(CW$hub\fR\->unfilter($sub)" 4 +.IX Item "$hub->unfilter($sub)" +.PD 0 +.ie n .IP "$hub\->pre_unfilter($sub)" 4 +.el .IP "\f(CW$hub\fR\->pre_unfilter($sub)" 4 +.IX Item "$hub->pre_unfilter($sub)" +.PD +These can be used to remove filters and pre_filters. The \f(CW$sub\fR argument is +the reference returned by \f(CW\*(C`filter()\*(C'\fR or \f(CW\*(C`pre_filter()\*(C'\fR. +.ie n .IP "$hub\->follow_op(sub { ... })" 4 +.el .IP "\f(CW$hub\fR\->follow_op(sub { ... })" 4 +.IX Item "$hub->follow_op(sub { ... })" +Use this to add behaviors that are called just before the hub is finalized. The +only argument to your codeblock will be a Test2::EventFacet::Trace instance. +.Sp +.Vb 2 +\& $hub\->follow_up(sub { +\& my ($trace, $hub) = @_; +\& +\& ... do whatever you need to ... +\& +\& # Return is ignored +\& }); +.Ve +.Sp +follow_up subs are called only once, ether when done_testing is called, or in +an \s-1END\s0 block. +.ie n .IP "$sub = $hub\->add_context_acquire(sub { ... });" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->add_context_acquire(sub { ... });" 4 +.IX Item "$sub = $hub->add_context_acquire(sub { ... });" +Add a callback that will be called every time someone tries to acquire a +context. It gets a single argument, a reference of the hash of parameters +being used the construct the context. This is your chance to change the +parameters by directly altering the hash. +.Sp +.Vb 4 +\& test2_add_callback_context_acquire(sub { +\& my $params = shift; +\& $params\->{level}++; +\& }); +.Ve +.Sp +This is a very scary \s-1API\s0 function. Please do not use this unless you need to. +This is here for Test::Builder and backwards compatibility. This has you +directly manipulate the hash instead of returning a new one for performance +reasons. +.Sp +\&\fBNote\fR Using this hook could have a huge performance impact. +.Sp +The coderef you provide is returned and can be used to remove the hook later. +.ie n .IP "$hub\->remove_context_acquire($sub);" 4 +.el .IP "\f(CW$hub\fR\->remove_context_acquire($sub);" 4 +.IX Item "$hub->remove_context_acquire($sub);" +This can be used to remove a context acquire hook. +.ie n .IP "$sub = $hub\->add_context_init(sub { ... });" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->add_context_init(sub { ... });" 4 +.IX Item "$sub = $hub->add_context_init(sub { ... });" +This allows you to add callbacks that will trigger every time a new context is +created for the hub. The only argument to the sub will be the +Test2::API::Context instance that was created. +.Sp +\&\fBNote\fR Using this hook could have a huge performance impact. +.Sp +The coderef you provide is returned and can be used to remove the hook later. +.ie n .IP "$hub\->remove_context_init($sub);" 4 +.el .IP "\f(CW$hub\fR\->remove_context_init($sub);" 4 +.IX Item "$hub->remove_context_init($sub);" +This can be used to remove a context init hook. +.ie n .IP "$sub = $hub\->add_context_release(sub { ... });" 4 +.el .IP "\f(CW$sub\fR = \f(CW$hub\fR\->add_context_release(sub { ... });" 4 +.IX Item "$sub = $hub->add_context_release(sub { ... });" +This allows you to add callbacks that will trigger every time a context for +this hub is released. The only argument to the sub will be the +Test2::API::Context instance that was released. These will run in reverse +order. +.Sp +\&\fBNote\fR Using this hook could have a huge performance impact. +.Sp +The coderef you provide is returned and can be used to remove the hook later. +.ie n .IP "$hub\->remove_context_release($sub);" 4 +.el .IP "\f(CW$hub\fR\->remove_context_release($sub);" 4 +.IX Item "$hub->remove_context_release($sub);" +This can be used to remove a context release hook. +.ie n .IP "$hub\->\fBcull()\fR" 4 +.el .IP "\f(CW$hub\fR\->\fBcull()\fR" 4 +.IX Item "$hub->cull()" +Cull any \s-1IPC\s0 events (and process them). +.ie n .IP "$pid = $hub\->\fBpid()\fR" 4 +.el .IP "\f(CW$pid\fR = \f(CW$hub\fR\->\fBpid()\fR" 4 +.IX Item "$pid = $hub->pid()" +Get the process id under which the hub was created. +.ie n .IP "$tid = $hub\->\fBtid()\fR" 4 +.el .IP "\f(CW$tid\fR = \f(CW$hub\fR\->\fBtid()\fR" 4 +.IX Item "$tid = $hub->tid()" +Get the thread id under which the hub was created. +.ie n .IP "$hud = $hub\->\fBhid()\fR" 4 +.el .IP "\f(CW$hud\fR = \f(CW$hub\fR\->\fBhid()\fR" 4 +.IX Item "$hud = $hub->hid()" +Get the identifier string of the hub. +.ie n .IP "$uuid = $hub\->\fBuuid()\fR" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$hub\fR\->\fBuuid()\fR" 4 +.IX Item "$uuid = $hub->uuid()" +If \s-1UUID\s0 tagging is enabled (see Test2::API) then the hub will have a \s-1UUID.\s0 +.ie n .IP "$ipc = $hub\->\fBipc()\fR" 4 +.el .IP "\f(CW$ipc\fR = \f(CW$hub\fR\->\fBipc()\fR" 4 +.IX Item "$ipc = $hub->ipc()" +Get the \s-1IPC\s0 object used by the hub. +.ie n .IP "$hub\->set_no_ending($bool)" 4 +.el .IP "\f(CW$hub\fR\->set_no_ending($bool)" 4 +.IX Item "$hub->set_no_ending($bool)" +.PD 0 +.ie n .IP "$bool = $hub\->no_ending" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->no_ending" 4 +.IX Item "$bool = $hub->no_ending" +.PD +This can be used to disable auto-ending behavior for a hub. The auto-ending +behavior is triggered by an end block and is used to cull \s-1IPC\s0 events, and +output the final plan if the plan was '\s-1NO PLAN\s0'. +.ie n .IP "$bool = $hub\->active" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->active" 4 +.IX Item "$bool = $hub->active" +.PD 0 +.ie n .IP "$hub\->set_active($bool)" 4 +.el .IP "\f(CW$hub\fR\->set_active($bool)" 4 +.IX Item "$hub->set_active($bool)" +.PD +These are used to get/set the 'active' attribute. When true this attribute will +force \f(CW\*(C`hub\->finalize()\*(C'\fR to take action even if there is no plan, and no +tests have been run. This flag is useful for plugins that add follow-up +behaviors that need to run even if no events are seen. +.SS "\s-1STATE METHODS\s0" +.IX Subsection "STATE METHODS" +.ie n .IP "$hub\->\fBreset_state()\fR" 4 +.el .IP "\f(CW$hub\fR\->\fBreset_state()\fR" 4 +.IX Item "$hub->reset_state()" +Reset all state to the start. This sets the test count to 0, clears the plan, +removes the failures, etc. +.ie n .IP "$num = $hub\->count" 4 +.el .IP "\f(CW$num\fR = \f(CW$hub\fR\->count" 4 +.IX Item "$num = $hub->count" +Get the number of tests that have been run. +.ie n .IP "$num = $hub\->failed" 4 +.el .IP "\f(CW$num\fR = \f(CW$hub\fR\->failed" 4 +.IX Item "$num = $hub->failed" +Get the number of failures (Not all failures come from a test fail, so this +number can be larger than the count). +.ie n .IP "$bool = $hub\->ended" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->ended" 4 +.IX Item "$bool = $hub->ended" +True if the testing has ended. This \s-1MAY\s0 return the stack frame of the tool that +ended the test, but that is not guaranteed. +.ie n .IP "$bool = $hub\->is_passing" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->is_passing" 4 +.IX Item "$bool = $hub->is_passing" +.PD 0 +.ie n .IP "$hub\->is_passing($bool)" 4 +.el .IP "\f(CW$hub\fR\->is_passing($bool)" 4 +.IX Item "$hub->is_passing($bool)" +.PD +Check if the overall test run is a failure. Can also be used to set the +pass/fail status. +.ie n .IP "$hub\->plan($plan)" 4 +.el .IP "\f(CW$hub\fR\->plan($plan)" 4 +.IX Item "$hub->plan($plan)" +.PD 0 +.ie n .IP "$plan = $hub\->plan" 4 +.el .IP "\f(CW$plan\fR = \f(CW$hub\fR\->plan" 4 +.IX Item "$plan = $hub->plan" +.PD +Get or set the plan. The plan must be an integer larger than 0, the string +\&'\s-1NO PLAN\s0', or the string '\s-1SKIP\s0'. +.ie n .IP "$bool = $hub\->check_plan" 4 +.el .IP "\f(CW$bool\fR = \f(CW$hub\fR\->check_plan" 4 +.IX Item "$bool = $hub->check_plan" +Check if the plan and counts match, but only if the tests have ended. If tests +have not ended this will return undef, otherwise it will be a true/false. +.SH "THIRD PARTY META-DATA" +.IX Header "THIRD PARTY META-DATA" +This object consumes Test2::Util::ExternalMeta which provides a consistent +way for you to attach meta-data to instances of this class. This is useful for +tools, plugins, and other extensions. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver%3A%3AFiles.3 b/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver%3A%3AFiles.3 new file mode 100644 index 0000000000000000000000000000000000000000..9456bde3ccd813cf09655ad160d5d7c96d88d171 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver%3A%3AFiles.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::IPC::Driver::Files 3" +.TH Test2::IPC::Driver::Files 3 "2020-12-18" "perl v5.32.1" "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" +Test2::IPC::Driver::Files \- Temp dir + Files concurrency model. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is the default, and fallback concurrency model for Test2. This +sends events between processes and threads using serialized files in a +temporary directory. This is not particularly fast, but it works everywhere. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::IPC::Driver::Files; +\& +\& # IPC is now enabled +.Ve +.SH "ENVIRONMENT VARIABLES" +.IX Header "ENVIRONMENT VARIABLES" +.IP "T2_KEEP_TEMPDIR=0" 4 +.IX Item "T2_KEEP_TEMPDIR=0" +When true, the tempdir used by the \s-1IPC\s0 driver will not be deleted when the test +is done. +.IP "T2_TEMPDIR_TEMPLATE='test2\-XXXXXX'" 4 +.IX Item "T2_TEMPDIR_TEMPLATE='test2-XXXXXX'" +This can be used to set the template for the \s-1IPC\s0 temp dir. The template should +follow template specifications from File::Temp. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See Test2::IPC::Driver for methods. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver.3 b/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver.3 new file mode 100644 index 0000000000000000000000000000000000000000..1b4949999779cd0a65888fff4a02d81130fba972 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AIPC%3A%3ADriver.3 @@ -0,0 +1,357 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::IPC::Driver 3" +.TH Test2::IPC::Driver 3 "2020-12-18" "perl v5.32.1" "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" +Test2::IPC::Driver \- Base class for Test2 IPC drivers. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package Test2::IPC::Driver::MyDriver; +\& +\& use base \*(AqTest2::IPC::Driver\*(Aq; +\& +\& ... +.Ve +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$self\->abort($msg)" 4 +.el .IP "\f(CW$self\fR\->abort($msg)" 4 +.IX Item "$self->abort($msg)" +If an \s-1IPC\s0 encounters a fatal error it should use this. This will print the +message to \s-1STDERR\s0 with \f(CW\*(AqIPC Fatal Error: \*(Aq\fR prefixed to it, then it will +forcefully exit 255. \s-1IPC\s0 errors may occur in threads or processes other than +the main one, this method provides the best chance of the harness noticing the +error. +.ie n .IP "$self\->abort_trace($msg)" 4 +.el .IP "\f(CW$self\fR\->abort_trace($msg)" 4 +.IX Item "$self->abort_trace($msg)" +This is the same as \f(CW\*(C`$ipc\->abort($msg)\*(C'\fR except that it uses +\&\f(CW\*(C`Carp::longmess\*(C'\fR to add a stack trace to the message. +.SH "LOADING DRIVERS" +.IX Header "LOADING DRIVERS" +Test2::IPC::Driver has an \f(CW\*(C`import()\*(C'\fR method. All drivers inherit this import +method. This import method registers the driver. +.PP +In most cases you just need to load the desired \s-1IPC\s0 driver to make it work. You +should load this driver as early as possible. A warning will be issued if you +load it too late for it to be effective. +.PP +.Vb 2 +\& use Test2::IPC::Driver::MyDriver; +\& ... +.Ve +.SH "WRITING DRIVERS" +.IX Header "WRITING DRIVERS" +.Vb 3 +\& package Test2::IPC::Driver::MyDriver; +\& use strict; +\& use warnings; +\& +\& use base \*(AqTest2::IPC::Driver\*(Aq; +\& +\& sub is_viable { +\& return 0 if $^O eq \*(Aqwin32\*(Aq; # Will not work on windows. +\& return 1; +\& } +\& +\& sub add_hub { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& ... # Make it possible to contact the hub +\& } +\& +\& sub drop_hub { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& ... # Nothing should try to reach the hub anymore. +\& } +\& +\& sub send { +\& my $self = shift; +\& my ($hid, $e, $global) = @_; +\& +\& ... # Send the event to the proper hub. +\& +\& # This may notify other procs/threads that there is a pending event. +\& Test2::API::test2_ipc_set_pending($uniq_val); +\& } +\& +\& sub cull { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& my @events = ...; # Here is where you get the events for the hub +\& +\& return @events; +\& } +\& +\& sub waiting { +\& my $self = shift; +\& +\& ... # Notify all listening procs and threads that the main +\& ... # process/thread is waiting for them to finish. +\& } +\& +\& 1; +.Ve +.SS "\s-1METHODS SUBCLASSES MUST IMPLEMENT\s0" +.IX Subsection "METHODS SUBCLASSES MUST IMPLEMENT" +.ie n .IP "$ipc\->is_viable" 4 +.el .IP "\f(CW$ipc\fR\->is_viable" 4 +.IX Item "$ipc->is_viable" +This should return true if the driver works in the current environment. This +should return false if it does not. This is a \s-1CLASS\s0 method. +.ie n .IP "$ipc\->add_hub($hid)" 4 +.el .IP "\f(CW$ipc\fR\->add_hub($hid)" 4 +.IX Item "$ipc->add_hub($hid)" +This is used to alert the driver that a new hub is expecting events. The driver +should keep track of the process and thread ids, the hub should only be dropped +by the proc+thread that started it. +.Sp +.Vb 3 +\& sub add_hub { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& ... # Make it possible to contact the hub +\& } +.Ve +.ie n .IP "$ipc\->drop_hub($hid)" 4 +.el .IP "\f(CW$ipc\fR\->drop_hub($hid)" 4 +.IX Item "$ipc->drop_hub($hid)" +This is used to alert the driver that a hub is no longer accepting events. The +driver should keep track of the process and thread ids, the hub should only be +dropped by the proc+thread that started it (This is the drivers responsibility +to enforce). +.Sp +.Vb 3 +\& sub drop_hub { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& ... # Nothing should try to reach the hub anymore. +\& } +.Ve +.ie n .IP "$ipc\->send($hid, $event);" 4 +.el .IP "\f(CW$ipc\fR\->send($hid, \f(CW$event\fR);" 4 +.IX Item "$ipc->send($hid, $event);" +.PD 0 +.ie n .IP "$ipc\->send($hid, $event, $global);" 4 +.el .IP "\f(CW$ipc\fR\->send($hid, \f(CW$event\fR, \f(CW$global\fR);" 4 +.IX Item "$ipc->send($hid, $event, $global);" +.PD +Used to send events from the current process/thread to the specified hub in its +process+thread. +.Sp +.Vb 3 +\& sub send { +\& my $self = shift; +\& my ($hid, $e) = @_; +\& +\& ... # Send the event to the proper hub. +\& +\& # This may notify other procs/threads that there is a pending event. +\& Test2::API::test2_ipc_set_pending($uniq_val); +\& } +.Ve +.Sp +If \f(CW$global\fR is true then the driver should send the event to all hubs in all +processes and threads. +.ie n .IP "@events = $ipc\->cull($hid)" 4 +.el .IP "\f(CW@events\fR = \f(CW$ipc\fR\->cull($hid)" 4 +.IX Item "@events = $ipc->cull($hid)" +Used to collect events that have been sent to the specified hub. +.Sp +.Vb 3 +\& sub cull { +\& my $self = shift; +\& my ($hid) = @_; +\& +\& my @events = ...; # Here is where you get the events for the hub +\& +\& return @events; +\& } +.Ve +.ie n .IP "$ipc\->\fBwaiting()\fR" 4 +.el .IP "\f(CW$ipc\fR\->\fBwaiting()\fR" 4 +.IX Item "$ipc->waiting()" +This is called in the parent process when it is complete and waiting for all +child processes and threads to complete. +.Sp +.Vb 2 +\& sub waiting { +\& my $self = shift; +\& +\& ... # Notify all listening procs and threads that the main +\& ... # process/thread is waiting for them to finish. +\& } +.Ve +.SS "\s-1METHODS SUBCLASSES MAY IMPLEMENT OR OVERRIDE\s0" +.IX Subsection "METHODS SUBCLASSES MAY IMPLEMENT OR OVERRIDE" +.ie n .IP "$ipc\->driver_abort($msg)" 4 +.el .IP "\f(CW$ipc\fR\->driver_abort($msg)" 4 +.IX Item "$ipc->driver_abort($msg)" +This is a hook called by \f(CW\*(C`Test2::IPC::Driver\->abort()\*(C'\fR. This is your +chance to cleanup when an abort happens. You cannot prevent the abort, but you +can gracefully except it. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AIPC.3 b/data/miniconda3/man/man3/Test2%3A%3AIPC.3 new file mode 100644 index 0000000000000000000000000000000000000000..c8b121d3bc04f24ed66e99844e5ffa37489b723c --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AIPC.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::IPC 3" +.TH Test2::IPC 3 "2020-12-18" "perl v5.32.1" "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" +Test2::IPC \- Turn on IPC for threading or forking support. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +You should \f(CW\*(C`use Test2::IPC;\*(C'\fR as early as possible in your test file. If you +import this module after \s-1API\s0 initialization it will attempt to retrofit \s-1IPC\s0 +onto the existing hubs. +.SS "\s-1DISABLING IT\s0" +.IX Subsection "DISABLING IT" +You can use \f(CW\*(C`no Test2::IPC;\*(C'\fR to disable \s-1IPC\s0 for good. You can also use the +T2_NO_IPC env var. +.SH "EXPORTS" +.IX Header "EXPORTS" +All exports are optional. +.IP "\fBcull()\fR" 4 +.IX Item "cull()" +Cull allows you to collect results from other processes or threads on demand. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3ATools%3A%3ATiny.3 b/data/miniconda3/man/man3/Test2%3A%3ATools%3A%3ATiny.3 new file mode 100644 index 0000000000000000000000000000000000000000..dde69b8670a1c95955a52295c27603d093e8ba8d --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3ATools%3A%3ATiny.3 @@ -0,0 +1,275 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Tools::Tiny 3" +.TH Test2::Tools::Tiny 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Tools::Tiny \- Tiny set of tools for unfortunate souls who cannot use +Test2::Suite. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +You should really look at Test2::Suite. This package is some very basic +essential tools implemented using Test2. This exists only so that Test2 +and other tools required by Test2::Suite can be tested. This is the package +Test2 uses to test itself. +.SH "USE Test2::Suite INSTEAD" +.IX Header "USE Test2::Suite INSTEAD" +Use Test2::Suite if at all possible. +.SH "EXPORTS" +.IX Header "EXPORTS" +.ie n .IP "ok($bool, $name)" 4 +.el .IP "ok($bool, \f(CW$name\fR)" 4 +.IX Item "ok($bool, $name)" +.PD 0 +.ie n .IP "ok($bool, $name, @diag)" 4 +.el .IP "ok($bool, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "ok($bool, $name, @diag)" +.PD +Run a simple assertion. +.ie n .IP "is($got, $want, $name)" 4 +.el .IP "is($got, \f(CW$want\fR, \f(CW$name\fR)" 4 +.IX Item "is($got, $want, $name)" +.PD 0 +.ie n .IP "is($got, $want, $name, @diag)" 4 +.el .IP "is($got, \f(CW$want\fR, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "is($got, $want, $name, @diag)" +.PD +Assert that 2 strings are the same. +.ie n .IP "isnt($got, $do_not_want, $name)" 4 +.el .IP "isnt($got, \f(CW$do_not_want\fR, \f(CW$name\fR)" 4 +.IX Item "isnt($got, $do_not_want, $name)" +.PD 0 +.ie n .IP "isnt($got, $do_not_want, $name, @diag)" 4 +.el .IP "isnt($got, \f(CW$do_not_want\fR, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "isnt($got, $do_not_want, $name, @diag)" +.PD +Assert that 2 strings are not the same. +.ie n .IP "like($got, $regex, $name)" 4 +.el .IP "like($got, \f(CW$regex\fR, \f(CW$name\fR)" 4 +.IX Item "like($got, $regex, $name)" +.PD 0 +.ie n .IP "like($got, $regex, $name, @diag)" 4 +.el .IP "like($got, \f(CW$regex\fR, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "like($got, $regex, $name, @diag)" +.PD +Check that the input string matches the regex. +.ie n .IP "unlike($got, $regex, $name)" 4 +.el .IP "unlike($got, \f(CW$regex\fR, \f(CW$name\fR)" 4 +.IX Item "unlike($got, $regex, $name)" +.PD 0 +.ie n .IP "unlike($got, $regex, $name, @diag)" 4 +.el .IP "unlike($got, \f(CW$regex\fR, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "unlike($got, $regex, $name, @diag)" +.PD +Check that the input string does not match the regex. +.ie n .IP "is_deeply($got, $want, $name)" 4 +.el .IP "is_deeply($got, \f(CW$want\fR, \f(CW$name\fR)" 4 +.IX Item "is_deeply($got, $want, $name)" +.PD 0 +.ie n .IP "is_deeply($got, $want, $name, @diag)" 4 +.el .IP "is_deeply($got, \f(CW$want\fR, \f(CW$name\fR, \f(CW@diag\fR)" 4 +.IX Item "is_deeply($got, $want, $name, @diag)" +.PD +Check 2 data structures. Please note that this is a \fI\s-1DUMB\s0\fR implementation that +compares the output of Data::Dumper against both structures. +.IP "diag($msg)" 4 +.IX Item "diag($msg)" +Issue a diagnostics message to \s-1STDERR.\s0 +.IP "note($msg)" 4 +.IX Item "note($msg)" +Issue a diagnostics message to \s-1STDOUT.\s0 +.IP "skip_all($reason)" 4 +.IX Item "skip_all($reason)" +Skip all tests. +.ie n .IP "todo $reason => sub { ... }" 4 +.el .IP "todo \f(CW$reason\fR => sub { ... }" 4 +.IX Item "todo $reason => sub { ... }" +Run a block in \s-1TODO\s0 mode. +.IP "plan($count)" 4 +.IX Item "plan($count)" +Set the plan. +.IP "\fBdone_testing()\fR" 4 +.IX Item "done_testing()" +Set the plan to the current test count. +.ie n .IP "$warnings = warnings { ... }" 4 +.el .IP "\f(CW$warnings\fR = warnings { ... }" 4 +.IX Item "$warnings = warnings { ... }" +Capture an arrayref of warnings from the block. +.ie n .IP "$exception = exception { ... }" 4 +.el .IP "\f(CW$exception\fR = exception { ... }" 4 +.IX Item "$exception = exception { ... }" +Capture an exception. +.ie n .IP "tests $name => sub { ... }" 4 +.el .IP "tests \f(CW$name\fR => sub { ... }" 4 +.IX Item "tests $name => sub { ... }" +Run a subtest. +.ie n .IP "$output = capture { ... }" 4 +.el .IP "\f(CW$output\fR = capture { ... }" 4 +.IX Item "$output = capture { ... }" +Capture \s-1STDOUT\s0 and \s-1STDERR\s0 output. +.Sp +Result looks like this: +.Sp +.Vb 4 +\& { +\& STDOUT => "...", +\& STDERR => "...", +\& } +.Ve +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3ATransition.3 b/data/miniconda3/man/man3/Test2%3A%3ATransition.3 new file mode 100644 index 0000000000000000000000000000000000000000..01b352c62399ea2d05287233fc5aba00afb56f6d --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3ATransition.3 @@ -0,0 +1,608 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Transition 3" +.TH Test2::Transition 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Transition \- Transition notes when upgrading to Test2 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is where gotchas and breakages related to the Test2 upgrade are +documented. The upgrade causes Test::Builder to defer to Test2 under the hood. +This transition is mostly transparent, but there are a few cases that can trip +you up. +.SH "THINGS THAT BREAK" +.IX Header "THINGS THAT BREAK" +This is the list of scenarios that break with the new internals. +.SS "Test::Builder1.5/2 conditionals" +.IX Subsection "Test::Builder1.5/2 conditionals" +\fIThe Problem\fR +.IX Subsection "The Problem" +.PP +a few years back there were two attempts to upgrade/replace Test::Builder. +Confusingly these were called Test::Builder2 and Test::Builder1.5, in that +order. Many people put conditionals in their code to check the Test::Builder +version number and adapt their code accordingly. +.PP +The Test::Builder2/1.5 projects both died out. Now the conditional code people +added has become a mine field. A vast majority of modules broken by Test2 fall +into this category. +.PP +\fIThe Fix\fR +.IX Subsection "The Fix" +.PP +The fix is to remove all Test::Builder1.5/2 related code. Either use the +legacy Test::Builder \s-1API,\s0 or use Test2 directly. +.SS "Replacing the Test::Builder singleton" +.IX Subsection "Replacing the Test::Builder singleton" +\fIThe Problem\fR +.IX Subsection "The Problem" +.PP +Some test modules would replace the Test::Builder singleton instance with their +own instance or subclass. This was usually done to intercept or modify results +as they happened. +.PP +The Test::Builder singleton is now a simple compatibility wrapper around +Test2. The Test::Builder singleton is no longer the central place for +results. Many results bypass the Test::Builder singleton completely, which +breaks and behavior intended when replacing the singleton. +.PP +\fIThe Fix\fR +.IX Subsection "The Fix" +.PP +If you simply want to intercept all results instead of letting them go to \s-1TAP,\s0 +you should look at the Test2::API docs and read about pushing a new hub onto +the hub stack. Replacing the hub temporarily is now the correct way to +intercept results. +.PP +If your goal is purely monitoring of events use the \f(CW\*(C`Test2::Hub\->listen()\*(C'\fR +method exported by Test::More to watch events as they are fired. If you wish to +modify results before they go to \s-1TAP\s0 look at the \f(CW\*(C`Test2::Hub\->filter()\*(C'\fR +method. +.SS "Directly Accessing Hash Elements" +.IX Subsection "Directly Accessing Hash Elements" +\fIThe Problem\fR +.IX Subsection "The Problem" +.PP +Some modules look directly at hash keys on the Test::Builder singleton. The +problem here is that the Test::Builder singleton no longer holds anything +important. +.PP +\fIThe Fix\fR +.IX Subsection "The Fix" +.PP +The fix is to use the \s-1API\s0 specified in Test2::API to look at or modify state +as needed. +.SS "Subtest indentation" +.IX Subsection "Subtest indentation" +\fIThe Problem\fR +.IX Subsection "The Problem" +.PP +An early change, in fact the change that made Test2 an idea, was a change to +the indentation of the subtest note. It was decided it would be more readable +to outdent the subtest note instead of having it inline with the subtest: +.PP +.Vb 4 +\& # subtest foo +\& ok 1 \- blah +\& 1..1 +\& ok 1 \- subtest foo +.Ve +.PP +The old style indented the note: +.PP +.Vb 4 +\& # subtest foo +\& ok 1 \- blah +\& 1..1 +\& ok 1 \- subtest foo +.Ve +.PP +This breaks tests that do string comparison of \s-1TAP\s0 output. +.PP +\fIThe Fix\fR +.IX Subsection "The Fix" +.PP +.Vb 1 +\& my $indent = $INC{\*(AqTest2/API.pm\*(Aq} ? \*(Aq\*(Aq : \*(Aq \*(Aq; +\& +\& is( +\& $subtest_output, +\& "${indent}# subtest foo", +\& "Got subtest note" +\& ); +.Ve +.PP +Check if \f(CW$INC{\*(AqTest2/API.pm\*(Aq}\fR is set, if it is then no indentation should be +expected. If it is not set, then the old Test::Builder is in use, indentation +should be expected. +.SH "DISTRIBUTIONS THAT BREAK OR NEED TO BE UPGRADED" +.IX Header "DISTRIBUTIONS THAT BREAK OR NEED TO BE UPGRADED" +This is a list of cpan modules that have been known to have been broken by the +upgrade at one point. +.SS "\s-1WORKS BUT TESTS WILL FAIL\s0" +.IX Subsection "WORKS BUT TESTS WILL FAIL" +These modules still function correctly, but their test suites will not pass. If +you already have these modules installed then you can continue to use them. If +you are trying to install them after upgrading Test::Builder you will need to +force installation, or bypass the broken tests. +.IP "Test::DBIx::Class::Schema" 4 +.IX Item "Test::DBIx::Class::Schema" +This module has a test that appears to work around a Test::Builder bug. The bug +appears to have been fixed by Test2, which means the workaround causes a +failure. This can be easily updated, but nobody has done so yet. +.Sp +Known broken in versions: 1.0.9 and older +.IP "Device::Chip" 4 +.IX Item "Device::Chip" +Tests break due to subtest indentation. +.Sp +Known broken in version 0.07. Apparently works fine in 0.06 though. Patch has +been submitted to fix the issue. +.SS "\s-1UPGRADE SUGGESTED\s0" +.IX Subsection "UPGRADE SUGGESTED" +These are modules that did not break, but had broken test suites that have +since been fixed. +.IP "Test::Exception" 4 +.IX Item "Test::Exception" +Old versions work fine, but have a minor test name behavior that breaks with +Test2. Old versions will no longer install because of this. The latest version +on \s-1CPAN\s0 will install just fine. Upgrading is not required, but is recommended. +.Sp +Fixed in version: 0.43 +.IP "Data::Peek" 4 +.IX Item "Data::Peek" +Some tests depended on \f(CW$!\fR and \f(CW$?\fR being modified in subtle ways. A patch +was applied to correct things that changed. +.Sp +The module itself works fine, there is no need to upgrade. +.Sp +Fixed in version: 0.45 +.IP "circular::require" 4 +.IX Item "circular::require" +Some tests were fragile and required base.pm to be loaded at a late stage. +Test2 was loading base.pm too early. The tests were updated to fix this. +.Sp +The module itself never broke, you do not need to upgrade. +.Sp +Fixed in version: 0.12 +.IP "Test::Module::Used" 4 +.IX Item "Test::Module::Used" +A test worked around a now-fixed planning bug. There is no need to upgrade if +you have an old version installed. New versions install fine if you want them. +.Sp +Fixed in version: 0.2.5 +.IP "Test::Moose::More" 4 +.IX Item "Test::Moose::More" +Some tests were fragile, but have been fixed. The actual breakage was from the +subtest comment indentation change. +.Sp +No need to upgrade, old versions work fine. Only new versions will install. +.Sp +Fixed in version: 0.025 +.IP "Test::FITesque" 4 +.IX Item "Test::FITesque" +This was broken by a bugfix to how planning is done. The test was updated after +the bugfix. +.Sp +Fixed in version: 0.04 +.IP "Test::Kit" 4 +.IX Item "Test::Kit" +Old versions work fine, but would not install because Test::Aggregate was in +the dependency chain. An upgrade should not be needed. +.Sp +Fixed in version: 2.15 +.IP "autouse" 4 +.IX Item "autouse" +A test broke because it depended on Scalar::Util not being loaded. Test2 loads +Scalar::Util. The test was updated to load Test2 after checking Scalar::Util's +load status. +.Sp +There is no need to upgrade if you already have it installed. +.Sp +Fixed in version: 1.11 +.SS "\s-1NEED TO UPGRADE\s0" +.IX Subsection "NEED TO UPGRADE" +.IP "Test::SharedFork" 4 +.IX Item "Test::SharedFork" +Old versions need to directly access Test::Builder singleton hash elements. The +latest version on \s-1CPAN\s0 will still do this on old Test::Builder, but will defer +to Test2::IPC on Test2. +.Sp +Fixed in version: 0.35 +.IP "Test::Builder::Clutch" 4 +.IX Item "Test::Builder::Clutch" +This works by doing overriding methods on the singleton, and directly accessing +hash values on the singleton. A new version has been released that uses the +Test2 \s-1API\s0 to accomplish the same result in a saner way. +.Sp +Fixed in version: 0.07 +.IP "Test::Dist::VersionSync" 4 +.IX Item "Test::Dist::VersionSync" +This had Test::Builder2 conditionals. This was fixed by removing the +conditionals. +.Sp +Fixed in version: 1.1.4 +.IP "Test::Modern" 4 +.IX Item "Test::Modern" +This relied on \f(CW\*(C`Test::Builder\->_try()\*(C'\fR which was a private method, +documented as something nobody should use. This was fixed by using a different +tool. +.Sp +Fixed in version: 0.012 +.IP "Test::UseAllModules" 4 +.IX Item "Test::UseAllModules" +Version 0.14 relied on \f(CW\*(C`Test::Builder\->history\*(C'\fR which was available in +Test::Builder 1.5. Versions 0.12 and 0.13 relied on other Test::Builder +internals. +.Sp +Fixed in version: 0.15 +.IP "Test::More::Prefix" 4 +.IX Item "Test::More::Prefix" +Worked by applying a role that wrapped \f(CW\*(C`Test::Builder\->_print_comment\*(C'\fR. +Fixed by adding an event filter that modifies the message instead when running +under Test2. +.Sp +Fixed in version: 0.007 +.SS "\s-1STILL BROKEN\s0" +.IX Subsection "STILL BROKEN" +.IP "Test::Aggregate" 4 +.IX Item "Test::Aggregate" +This distribution directly accesses the hash keys in the Test::Builder +singleton. It also approaches the problem from the wrong angle, please consider +using Test2::Aggregate for similar functionality and Test2::Harness +which allows module preloading at the harness level. +.Sp +Still broken as of version: 0.373 +.IP "Test::Wrapper" 4 +.IX Item "Test::Wrapper" +This module directly uses hash keys in the Test::Builder singleton. This +module is also obsolete thanks to the benefits of Test2. Use \f(CW\*(C`intercept()\*(C'\fR +from Test2::API to achieve a similar result. +.Sp +Still broken as of version: 0.3.0 +.IP "Test::ParallelSubtest" 4 +.IX Item "Test::ParallelSubtest" +This module overrides \f(CW\*(C`Test::Builder::subtest()\*(C'\fR and +\&\f(CW\*(C`Test::Builder::done_testing()\*(C'\fR. It also directly accesses hash elements of +the singleton. It has not yet been fixed. +.Sp +Alternatives: Test2::AsyncSubtest and Test2::Workflow (not stable). +.Sp +Still broken as of version: 0.05 +.IP "Test::Pretty" 4 +.IX Item "Test::Pretty" +See https://github.com/tokuhirom/Test\-Pretty/issues/25 +.Sp +The author admits the module is crazy, and he is awaiting a stable release of +something new (Test2) to completely rewrite it in a sane way. +.Sp +Still broken as of version: 0.32 +.IP "Net::BitTorrent" 4 +.IX Item "Net::BitTorrent" +The tests for this module directly access Test::Builder hash keys. Most, if +not all of these hash keys have public \s-1API\s0 methods that could be used instead +to avoid the problem. +.Sp +Still broken in version: 0.052 +.IP "Test::Group" 4 +.IX Item "Test::Group" +It monkeypatches Test::Builder, and calls it \*(L"black magic\*(R" in the code. +.Sp +Still broken as of version: 0.20 +.IP "Test::Flatten" 4 +.IX Item "Test::Flatten" +This modifies the Test::Builder internals in many ways. A better was to +accomplish the goal of this module is to write your own subtest function. +.Sp +Still broken as of version: 0.11 +.IP "Log::Dispatch::Config::TestLog" 4 +.IX Item "Log::Dispatch::Config::TestLog" +Modifies Test::Builder internals. +.Sp +Still broken as of version: 0.02 +.IP "Test::Able" 4 +.IX Item "Test::Able" +Modifies Test::Builder internals. +.Sp +Still broken as of version: 0.11 +.SH "MAKE ASSERTIONS \-> SEND EVENTS" +.IX Header "MAKE ASSERTIONS -> SEND EVENTS" +.SS "\s-1LEGACY\s0" +.IX Subsection "LEGACY" +.Vb 1 +\& use Test::Builder; +\& +\& # A majority of tools out there do this: +\& # my $TB = Test::Builder\->new; +\& # This works, but has always been wrong, forcing Test::Builder to implement +\& # subtests as a horrific hack. It also causes problems for tools that try +\& # to replace the singleton (also discouraged). +\& +\& sub my_ok($;$) { +\& my ($bool, $name) = @_; +\& my $TB = Test::Builder\->new; +\& $TB\->ok($bool, $name); +\& } +\& +\& sub my_diag($) { +\& my ($msg) = @_; +\& my $TB = Test::Builder\->new; +\& $TB\->diag($msg); +\& } +.Ve +.SS "\s-1TEST2\s0" +.IX Subsection "TEST2" +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub my_ok($;$) { +\& my ($bool, $name) = @_; +\& my $ctx = context(); +\& $ctx\->ok($bool, $name); +\& $ctx\->release; +\& } +\& +\& sub my_diag($) { +\& my ($msg) = @_; +\& my $ctx = context(); +\& $ctx\->diag($msg); +\& $ctx\->release; +\& } +.Ve +.PP +The context object has \s-1API\s0 compatible implementations of the following methods: +.ie n .IP "ok($bool, $name)" 4 +.el .IP "ok($bool, \f(CW$name\fR)" 4 +.IX Item "ok($bool, $name)" +.PD 0 +.IP "diag(@messages)" 4 +.IX Item "diag(@messages)" +.IP "note(@messages)" 4 +.IX Item "note(@messages)" +.ie n .IP "subtest($name, $code)" 4 +.el .IP "subtest($name, \f(CW$code\fR)" 4 +.IX Item "subtest($name, $code)" +.PD +.PP +If you are looking for helpers with \f(CW\*(C`is\*(C'\fR, \f(CW\*(C`like\*(C'\fR, and others, see +Test2::Suite. +.SH "WRAP EXISTING TOOLS" +.IX Header "WRAP EXISTING TOOLS" +.SS "\s-1LEGACY\s0" +.IX Subsection "LEGACY" +.Vb 1 +\& use Test::More; +\& +\& sub exclusive_ok { +\& my ($bool1, $bool2, $name) = @_; +\& +\& # Ensure errors are reported 1 level higher +\& local $Test::Builder::Level = $Test::Builder::Level + 1; +\& +\& $ok = $bool1 || $bool2; +\& $ok &&= !($bool1 && $bool2); +\& ok($ok, $name); +\& +\& return $bool; +\& } +.Ve +.PP +Every single tool in the chain from this, to \f(CW\*(C`ok\*(C'\fR, to anything \f(CW\*(C`ok\*(C'\fR calls +needs to increment the \f(CW$Level\fR variable. When an error occurs Test::Builder +will do a trace to the stack frame determined by \f(CW$Level\fR, and report that +file+line as the one where the error occurred. If you or any other tool you use +forgets to set \f(CW$Level\fR then errors will be reported to the wrong place. +.SS "\s-1TEST2\s0" +.IX Subsection "TEST2" +.Vb 1 +\& use Test::More; +\& +\& sub exclusive_ok { +\& my ($bool1, $bool2, $name) = @_; +\& +\& # Grab and store the context, even if you do not need to use it +\& # directly. +\& my $ctx = context(); +\& +\& $ok = $bool1 || $bool2; +\& $ok &&= !($bool1 && $bool2); +\& ok($ok, $name); +\& +\& $ctx\->release; +\& return $bool; +\& } +.Ve +.PP +Instead of using \f(CW$Level\fR to perform a backtrace, Test2 uses a context +object. In this sample you create a context object and store it. This locks the +context (errors report 1 level up from here) for all wrapped tools to find. You +do not need to use the context object, but you do need to store it in a +variable. Once the sub ends the \f(CW$ctx\fR variable is destroyed which lets future +tools find their own. +.SH "USING UTF8" +.IX Header "USING UTF8" +.SS "\s-1LEGACY\s0" +.IX Subsection "LEGACY" +.Vb 3 +\& # Set the mode BEFORE anything loads Test::Builder +\& use open \*(Aq:std\*(Aq, \*(Aq:encoding(utf8)\*(Aq; +\& use Test::More; +.Ve +.PP +Or +.PP +.Vb 5 +\& # Modify the filehandles +\& my $builder = Test::More\->builder; +\& binmode $builder\->output, ":encoding(utf8)"; +\& binmode $builder\->failure_output, ":encoding(utf8)"; +\& binmode $builder\->todo_output, ":encoding(utf8)"; +.Ve +.SS "\s-1TEST2\s0" +.IX Subsection "TEST2" +.Vb 1 +\& use Test2::API qw/test2_stack/; +\& +\& test2_stack\->top\->format\->encoding(\*(Aqutf8\*(Aq); +.Ve +.PP +Though a much better way is to use the Test2::Plugin::UTF8 plugin, which is +part of Test2::Suite. +.SH "AUTHORS, CONTRIBUTORS AND REVIEWERS" +.IX Header "AUTHORS, CONTRIBUTORS AND REVIEWERS" +The following people have all contributed to this document in some way, even if +only for review. +.IP "Chad Granum (\s-1EXODIST\s0) " 4 +.IX Item "Chad Granum (EXODIST) " +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINER" +.IX Header "MAINTAINER" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://www.perl.com/perl/misc/Artistic.html\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AFacets2Legacy.3 b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AFacets2Legacy.3 new file mode 100644 index 0000000000000000000000000000000000000000..c26003d25d372956baf19cf916e310a17c9a51aa --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AFacets2Legacy.3 @@ -0,0 +1,315 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Util::Facets2Legacy 3" +.TH Test2::Util::Facets2Legacy 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Util::Facets2Legacy \- Convert facet data to the legacy event API. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module exports several subroutines from the older event \s-1API\s0 (see +Test2::Event). These subroutines can be used as methods on any object that +provides a custom \f(CW\*(C`facet_data()\*(C'\fR method. These subroutines can also be used as +functions that take a facet data hashref as arguments. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.SS "\s-1AS METHODS\s0" +.IX Subsection "AS METHODS" +.Vb 1 +\& package My::Event; +\& +\& use Test2::Util::Facets2Legacy \*(Aq:ALL\*(Aq; +\& +\& sub facet_data { return { ... } } +.Ve +.PP +Then to use it: +.PP +.Vb 1 +\& my $e = My::Event\->new(...); +\& +\& my $causes_fail = $e\->causes_fail; +\& my $summary = $e\->summary; +\& .... +.Ve +.SS "\s-1AS FUNCTIONS\s0" +.IX Subsection "AS FUNCTIONS" +.Vb 1 +\& use Test2::Util::Facets2Legacy \*(Aq:ALL\*(Aq; +\& +\& my $f = { +\& assert => { ... }, +\& info => [{...}, ...], +\& control => {...}, +\& ... +\& }; +\& +\& my $causes_fail = causes_fail($f); +\& my $summary = summary($f); +.Ve +.SH "NOTE ON CYCLES" +.IX Header "NOTE ON CYCLES" +When used as methods, all these subroutines call \f(CW\*(C`$e\->facet_data()\*(C'\fR. The +default \f(CW\*(C`facet_data()\*(C'\fR method in Test2::Event relies on the legacy methods +this module emulates in order to work. As a result of this it is very easy to +create infinite recursion bugs. +.PP +These methods have cycle detection and will throw an exception early if a cycle +is detected. \f(CW\*(C`uuid()\*(C'\fR is currently the only subroutine in this library that +has a fallback behavior when cycles are detected. +.SH "EXPORTS" +.IX Header "EXPORTS" +Nothing is exported by default. You must specify which methods to import, or +use the ':ALL' tag. +.ie n .IP "$bool = $e\->\fBcauses_fail()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->\fBcauses_fail()\fR" 4 +.IX Item "$bool = $e->causes_fail()" +.PD 0 +.ie n .IP "$bool = causes_fail($f)" 4 +.el .IP "\f(CW$bool\fR = causes_fail($f)" 4 +.IX Item "$bool = causes_fail($f)" +.PD +Check if the event or facets result in a failing state. +.ie n .IP "$bool = $e\->\fBdiagnostics()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->\fBdiagnostics()\fR" 4 +.IX Item "$bool = $e->diagnostics()" +.PD 0 +.ie n .IP "$bool = diagnostics($f)" 4 +.el .IP "\f(CW$bool\fR = diagnostics($f)" 4 +.IX Item "$bool = diagnostics($f)" +.PD +Check if the event or facets contain any diagnostics information. +.ie n .IP "$bool = $e\->\fBglobal()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->\fBglobal()\fR" 4 +.IX Item "$bool = $e->global()" +.PD 0 +.ie n .IP "$bool = global($f)" 4 +.el .IP "\f(CW$bool\fR = global($f)" 4 +.IX Item "$bool = global($f)" +.PD +Check if the event or facets need to be globally processed. +.ie n .IP "$bool = $e\->\fBincrements_count()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->\fBincrements_count()\fR" 4 +.IX Item "$bool = $e->increments_count()" +.PD 0 +.ie n .IP "$bool = increments_count($f)" 4 +.el .IP "\f(CW$bool\fR = increments_count($f)" 4 +.IX Item "$bool = increments_count($f)" +.PD +Check if the event or facets make an assertion. +.ie n .IP "$bool = $e\->\fBno_display()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->\fBno_display()\fR" 4 +.IX Item "$bool = $e->no_display()" +.PD 0 +.ie n .IP "$bool = no_display($f)" 4 +.el .IP "\f(CW$bool\fR = no_display($f)" 4 +.IX Item "$bool = no_display($f)" +.PD +Check if the event or facets should be rendered or hidden. +.ie n .IP "($max, $directive, $reason) = $e\->\fBsets_plan()\fR" 4 +.el .IP "($max, \f(CW$directive\fR, \f(CW$reason\fR) = \f(CW$e\fR\->\fBsets_plan()\fR" 4 +.IX Item "($max, $directive, $reason) = $e->sets_plan()" +.PD 0 +.ie n .IP "($max, $directive, $reason) = sets_plan($f)" 4 +.el .IP "($max, \f(CW$directive\fR, \f(CW$reason\fR) = sets_plan($f)" 4 +.IX Item "($max, $directive, $reason) = sets_plan($f)" +.PD +Check if the event or facets set a plan, and return the plan details. +.ie n .IP "$id = $e\->\fBsubtest_id()\fR" 4 +.el .IP "\f(CW$id\fR = \f(CW$e\fR\->\fBsubtest_id()\fR" 4 +.IX Item "$id = $e->subtest_id()" +.PD 0 +.ie n .IP "$id = subtest_id($f)" 4 +.el .IP "\f(CW$id\fR = subtest_id($f)" 4 +.IX Item "$id = subtest_id($f)" +.PD +Get the subtest id, if any. +.ie n .IP "$string = $e\->\fBsummary()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$e\fR\->\fBsummary()\fR" 4 +.IX Item "$string = $e->summary()" +.PD 0 +.ie n .IP "$string = summary($f)" 4 +.el .IP "\f(CW$string\fR = summary($f)" 4 +.IX Item "$string = summary($f)" +.PD +Get the summary of the event or facets hash, if any. +.ie n .IP "$undef_or_int = $e\->\fBterminate()\fR" 4 +.el .IP "\f(CW$undef_or_int\fR = \f(CW$e\fR\->\fBterminate()\fR" 4 +.IX Item "$undef_or_int = $e->terminate()" +.PD 0 +.ie n .IP "$undef_or_int = terminate($f)" 4 +.el .IP "\f(CW$undef_or_int\fR = terminate($f)" 4 +.IX Item "$undef_or_int = terminate($f)" +.PD +Check if the event or facets should result in process termination, if so the +exit code is returned (which could be 0). undef is returned if no termination +is requested. +.ie n .IP "$uuid = $e\->\fBuuid()\fR" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$e\fR\->\fBuuid()\fR" 4 +.IX Item "$uuid = $e->uuid()" +.PD 0 +.ie n .IP "$uuid = uuid($f)" 4 +.el .IP "\f(CW$uuid\fR = uuid($f)" 4 +.IX Item "$uuid = uuid($f)" +.PD +Get the \s-1UUID\s0 of the facets or event. +.Sp +\&\fBNote:\fR This will fall back to \f(CW\*(C`$e\->SUPER::uuid()\*(C'\fR if a cycle is +detected and an event is used as the argument. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AHashBase.3 b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AHashBase.3 new file mode 100644 index 0000000000000000000000000000000000000000..9a2d5cfc0e88a24faac34aa0f2ea5a47ab68ead3 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AHashBase.3 @@ -0,0 +1,424 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Util::HashBase 3" +.TH Test2::Util::HashBase 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Util::HashBase \- Build hash based classes. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +A class: +.PP +.Vb 3 +\& package My::Class; +\& use strict; +\& use warnings; +\& +\& # Generate 3 accessors +\& use Test2::Util::HashBase qw/foo \-bar ^baz ban +boo/; +\& +\& # Chance to initialize defaults +\& sub init { +\& my $self = shift; # No other args +\& $self\->{+FOO} ||= "foo"; +\& $self\->{+BAR} ||= "bar"; +\& $self\->{+BAZ} ||= "baz"; +\& $self\->{+BAT} ||= "bat"; +\& $self\->{+BAN} ||= "ban"; +\& $self\->{+BOO} ||= "boo"; +\& } +\& +\& sub print { +\& print join ", " => map { $self\->{$_} } FOO, BAR, BAZ, BAT, BAN, BOO; +\& } +.Ve +.PP +Subclass it +.PP +.Vb 3 +\& package My::Subclass; +\& use strict; +\& use warnings; +\& +\& # Note, you should subclass before loading HashBase. +\& use base \*(AqMy::Class\*(Aq; +\& use Test2::Util::HashBase qw/bub/; +\& +\& sub init { +\& my $self = shift; +\& +\& # We get the constants from the base class for free. +\& $self\->{+FOO} ||= \*(AqSubFoo\*(Aq; +\& $self\->{+BUB} ||= \*(Aqbub\*(Aq; +\& +\& $self\->SUPER::init(); +\& } +.Ve +.PP +use it: +.PP +.Vb 4 +\& package main; +\& use strict; +\& use warnings; +\& use My::Class; +\& +\& # These are all functionally identical +\& my $one = My::Class\->new(foo => \*(AqMyFoo\*(Aq, bar => \*(AqMyBar\*(Aq); +\& my $two = My::Class\->new({foo => \*(AqMyFoo\*(Aq, bar => \*(AqMyBar\*(Aq}); +\& my $three = My::Class\->new([\*(AqMyFoo\*(Aq, \*(AqMyBar\*(Aq]); +\& +\& # Readers! +\& my $foo = $one\->foo; # \*(AqMyFoo\*(Aq +\& my $bar = $one\->bar; # \*(AqMyBar\*(Aq +\& my $baz = $one\->baz; # Defaulted to: \*(Aqbaz\*(Aq +\& my $bat = $one\->bat; # Defaulted to: \*(Aqbat\*(Aq +\& # \*(Aq>ban\*(Aq means setter only, no reader +\& # \*(Aq+boo\*(Aq means no setter or reader, just the BOO constant +\& +\& # Setters! +\& $one\->set_foo(\*(AqA Foo\*(Aq); +\& +\& #\*(Aq\-bar\*(Aq means read\-only, so the setter will throw an exception (but is defined). +\& $one\->set_bar(\*(AqA bar\*(Aq); +\& +\& # \*(Aq^baz\*(Aq means deprecated setter, this will warn about the setter being +\& # deprecated. +\& $one\->set_baz(\*(AqA Baz\*(Aq); +\& +\& # \*(Aq{+FOO} = \*(Aqxxx\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package is used to generate classes based on hashrefs. Using this class +will give you a \f(CW\*(C`new()\*(C'\fR method, as well as generating accessors you request. +Generated accessors will be getters, \f(CW\*(C`set_ACCESSOR\*(C'\fR setters will also be +generated for you. You also get constants for each accessor (all caps) which +return the key into the hash for that accessor. Single inheritance is also +supported. +.SH "THIS IS A BUNDLED COPY OF HASHBASE" +.IX Header "THIS IS A BUNDLED COPY OF HASHBASE" +This is a bundled copy of Object::HashBase. This file was generated using +the +\&\f(CW\*(C`/home/exodist/perl5/perlbrew/perls/main/bin/hashbase_inc.pl\*(C'\fR +script. +.SH "METHODS" +.IX Header "METHODS" +.SS "\s-1PROVIDED BY HASH BASE\s0" +.IX Subsection "PROVIDED BY HASH BASE" +.ie n .IP "$it = $class\->new(%PAIRS)" 4 +.el .IP "\f(CW$it\fR = \f(CW$class\fR\->new(%PAIRS)" 4 +.IX Item "$it = $class->new(%PAIRS)" +.PD 0 +.ie n .IP "$it = $class\->new(\e%PAIRS)" 4 +.el .IP "\f(CW$it\fR = \f(CW$class\fR\->new(\e%PAIRS)" 4 +.IX Item "$it = $class->new(%PAIRS)" +.ie n .IP "$it = $class\->new(\e@ORDERED_VALUES)" 4 +.el .IP "\f(CW$it\fR = \f(CW$class\fR\->new(\e@ORDERED_VALUES)" 4 +.IX Item "$it = $class->new(@ORDERED_VALUES)" +.PD +Create a new instance. +.Sp +HashBase will not export \f(CW\*(C`new()\*(C'\fR if there is already a \f(CW\*(C`new()\*(C'\fR method in your +packages inheritance chain. +.Sp +\&\fBIf you do not want this method you can define your own\fR you just have to +declare it before loading Test2::Util::HashBase. +.Sp +.Vb 1 +\& package My::Package; +\& +\& # predeclare new() so that HashBase does not give us one. +\& sub new; +\& +\& use Test2::Util::HashBase qw/foo bar baz/; +\& +\& # Now we define our own new method. +\& sub new { ... } +.Ve +.Sp +This makes it so that HashBase sees that you have your own \f(CW\*(C`new()\*(C'\fR method. +Alternatively you can define the method before loading HashBase instead of just +declaring it, but that scatters your use statements. +.Sp +The most common way to create an object is to pass in key/value pairs where +each key is an attribute and each value is what you want assigned to that +attribute. No checking is done to verify the attributes or values are valid, +you may do that in \f(CW\*(C`init()\*(C'\fR if desired. +.Sp +If you would like, you can pass in a hashref instead of pairs. When you do so +the hashref will be copied, and the copy will be returned blessed as an object. +There is no way to ask HashBase to bless a specific hashref. +.Sp +In some cases an object may only have 1 or 2 attributes, in which case a +hashref may be too verbose for your liking. In these cases you can pass in an +arrayref with only values. The values will be assigned to attributes in the +order the attributes were listed. When there is inheritance involved the +attributes from parent classes will come before subclasses. +.SS "\s-1HOOKS\s0" +.IX Subsection "HOOKS" +.ie n .IP "$self\->\fBinit()\fR" 4 +.el .IP "\f(CW$self\fR\->\fBinit()\fR" 4 +.IX Item "$self->init()" +This gives you the chance to set some default values to your fields. The only +argument is \f(CW$self\fR with its indexes already set from the constructor. +.Sp +\&\fBNote:\fR Test2::Util::HashBase checks for an init using \f(CW\*(C`$class\->can(\*(Aqinit\*(Aq)\*(C'\fR +during construction. It \s-1DOES NOT\s0 call \f(CW\*(C`can()\*(C'\fR on the created object. Also note +that the result of the check is cached, it is only ever checked once, the first +time an instance of your class is created. This means that adding an \f(CW\*(C`init()\*(C'\fR +method \s-1AFTER\s0 the first construction will result in it being ignored. +.SH "ACCESSORS" +.IX Header "ACCESSORS" +.SS "\s-1READ/WRITE\s0" +.IX Subsection "READ/WRITE" +To generate accessors you list them when using the module: +.PP +.Vb 1 +\& use Test2::Util::HashBase qw/foo/; +.Ve +.PP +This will generate the following subs in your namespace: +.IP "\fBfoo()\fR" 4 +.IX Item "foo()" +Getter, used to get the value of the \f(CW\*(C`foo\*(C'\fR field. +.IP "\fBset_foo()\fR" 4 +.IX Item "set_foo()" +Setter, used to set the value of the \f(CW\*(C`foo\*(C'\fR field. +.IP "\s-1\fBFOO\s0()\fR" 4 +.IX Item "FOO()" +Constant, returns the field \f(CW\*(C`foo\*(C'\fR's key into the class hashref. Subclasses will +also get this function as a constant, not simply a method, that means it is +copied into the subclass namespace. +.Sp +The main reason for using these constants is to help avoid spelling mistakes +and similar typos. It will not help you if you forget to prefix the '+' though. +.SS "\s-1READ ONLY\s0" +.IX Subsection "READ ONLY" +.Vb 1 +\& use Test2::Util::HashBase qw/\-foo/; +.Ve +.IP "\fBset_foo()\fR" 4 +.IX Item "set_foo()" +Throws an exception telling you the attribute is read-only. This is exported to +override any active setters for the attribute in a parent class. +.SS "\s-1DEPRECATED SETTER\s0" +.IX Subsection "DEPRECATED SETTER" +.Vb 1 +\& use Test2::Util::HashBase qw/^foo/; +.Ve +.IP "\fBset_foo()\fR" 4 +.IX Item "set_foo()" +This will set the value, but it will also warn you that the method is +deprecated. +.SS "\s-1NO SETTER\s0" +.IX Subsection "NO SETTER" +.Vb 1 +\& use Test2::Util::HashBase qw/foo/; +.Ve +.PP +Only gives you a write (\f(CW\*(C`set_foo\*(C'\fR), no \f(CW\*(C`foo\*(C'\fR method is defined at all. +.SS "\s-1CONSTANT ONLY\s0" +.IX Subsection "CONSTANT ONLY" +.Vb 1 +\& use Test2::Util::HashBase qw/+foo/; +.Ve +.PP +This does not create any methods for you, it just adds the \f(CW\*(C`FOO\*(C'\fR constant. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +You can subclass an existing HashBase class. +.PP +.Vb 2 +\& use base \*(AqAnother::HashBase::Class\*(Aq; +\& use Test2::Util::HashBase qw/foo bar baz/; +.Ve +.PP +The base class is added to \f(CW@ISA\fR for you, and all constants from base classes +are added to subclasses automatically. +.SH "GETTING A LIST OF ATTRIBUTES FOR A CLASS" +.IX Header "GETTING A LIST OF ATTRIBUTES FOR A CLASS" +Test2::Util::HashBase provides a function for retrieving a list of attributes for an +Test2::Util::HashBase class. +.ie n .IP "@list = Test2::Util::HashBase::attr_list($class)" 4 +.el .IP "\f(CW@list\fR = Test2::Util::HashBase::attr_list($class)" 4 +.IX Item "@list = Test2::Util::HashBase::attr_list($class)" +.PD 0 +.ie n .IP "@list = $class\->\fBTest2::Util::HashBase::attr_list()\fR" 4 +.el .IP "\f(CW@list\fR = \f(CW$class\fR\->\fBTest2::Util::HashBase::attr_list()\fR" 4 +.IX Item "@list = $class->Test2::Util::HashBase::attr_list()" +.PD +Either form above will work. This will return a list of attributes defined on +the object. This list is returned in the attribute definition order, parent +class attributes are listed before subclass attributes. Duplicate attributes +will be removed before the list is returned. +.Sp +\&\fBNote:\fR This list is used in the \f(CW\*(C`$class\->new(\e@ARRAY)\*(C'\fR constructor to +determine the attribute to which each value will be paired. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for HashBase can be found at +\&\fIhttp://github.com/Test\-More/HashBase/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2017 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3ATrace.3 b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3ATrace.3 new file mode 100644 index 0000000000000000000000000000000000000000..88892e64ff1f9b0204938cfce1a6d31b1e4607dc --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3ATrace.3 @@ -0,0 +1,168 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Util::Trace 3" +.TH Test2::Util::Trace 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Util::Trace \- Legacy wrapper fro Test2::EventFacet::Trace. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +All the functionality for this class has been moved to +Test2::EventFacet::Trace. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AUtil.3 b/data/miniconda3/man/man3/Test2%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..e6f48828d22e19ad25bb88fe7516a0fe7fa20f8a --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AUtil.3 @@ -0,0 +1,278 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Test2::Util 3" +.TH Test2::Util 3 "2020-12-18" "perl v5.32.1" "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" +Test2::Util \- Tools used by Test2 and friends. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Collection of tools used by Test2 and friends. +.SH "EXPORTS" +.IX Header "EXPORTS" +All exports are optional. You must specify subs to import. +.ie n .IP "($success, $error) = try { ... }" 4 +.el .IP "($success, \f(CW$error\fR) = try { ... }" 4 +.IX Item "($success, $error) = try { ... }" +Eval the codeblock, return success or failure, and the error message. This code +protects $@ and $!, they will be restored by the end of the run. This code also +temporarily blocks \f(CW$SIG\fR{\s-1DIE\s0} handlers. +.IP "protect { ... }" 4 +.IX Item "protect { ... }" +Similar to try, except that it does not catch exceptions. The idea here is to +protect $@ and $! from changes. $@ and $! will be restored to whatever they +were before the run so long as it is successful. If the run fails $! will still +be restored, but $@ will contain the exception being thrown. +.IP "\s-1CAN_FORK\s0" 4 +.IX Item "CAN_FORK" +True if this system is capable of true or pseudo-fork. +.IP "\s-1CAN_REALLY_FORK\s0" 4 +.IX Item "CAN_REALLY_FORK" +True if the system can really fork. This will be false for systems where fork +is emulated. +.IP "\s-1CAN_THREAD\s0" 4 +.IX Item "CAN_THREAD" +True if this system is capable of using threads. +.IP "\s-1USE_THREADS\s0" 4 +.IX Item "USE_THREADS" +Returns true if threads are enabled, false if they are not. +.IP "get_tid" 4 +.IX Item "get_tid" +This will return the id of the current thread when threads are enabled, +otherwise it returns 0. +.ie n .IP "my $file = pkg_to_file($package)" 4 +.el .IP "my \f(CW$file\fR = pkg_to_file($package)" 4 +.IX Item "my $file = pkg_to_file($package)" +Convert a package name to a filename. +.ie n .IP "$string = \fBipc_separator()\fR" 4 +.el .IP "\f(CW$string\fR = \fBipc_separator()\fR" 4 +.IX Item "$string = ipc_separator()" +Get the \s-1IPC\s0 separator. Currently this is always the string \f(CW\*(Aq~\*(Aq\fR. +.ie n .IP "$string = \fBgen_uid()\fR" 4 +.el .IP "\f(CW$string\fR = \fBgen_uid()\fR" 4 +.IX Item "$string = gen_uid()" +Generate a unique id (\s-1NOT A UUID\s0). This will typically be the process id, the +thread id, the time, and an incrementing integer all joined with the +\&\f(CW\*(C`ipc_separator()\*(C'\fR. +.Sp +These \s-1ID\s0's are unique enough for most purposes. For identical ids to be +generated you must have 2 processes with the same \s-1PID\s0 generate IDs at the same +time with the same current state of the incrementing integer. This is a +perfectly reasonable thing to expect to happen across multiple machines, but is +quite unlikely to happen on one machine. +.Sp +This can fail to be unique if a process generates an id, calls exec, and does +it again after the exec and it all happens in less than a second. It can also +happen if the systems process id's cycle in less than a second allowing 2 +different programs that use this generator to run with the same \s-1PID\s0 in less +than a second. Both these cases are sufficiently unlikely. If you need +universally unique ids, or ids that are unique in these conditions, look at +Data::UUID. +.ie n .IP "($ok, $err) = do_rename($old_name, $new_name)" 4 +.el .IP "($ok, \f(CW$err\fR) = do_rename($old_name, \f(CW$new_name\fR)" 4 +.IX Item "($ok, $err) = do_rename($old_name, $new_name)" +Rename a file, this wraps \f(CW\*(C`rename()\*(C'\fR in a way that makes it more reliable +cross-platform when trying to rename files you recently altered. +.ie n .IP "($ok, $err) = do_unlink($filename)" 4 +.el .IP "($ok, \f(CW$err\fR) = do_unlink($filename)" 4 +.IX Item "($ok, $err) = do_unlink($filename)" +Unlink a file, this wraps \f(CW\*(C`unlink()\*(C'\fR in a way that makes it more reliable +cross-platform when trying to unlink files you recently altered. +.ie n .IP "($ok, $err) = try_sig_mask { ... }" 4 +.el .IP "($ok, \f(CW$err\fR) = try_sig_mask { ... }" 4 +.IX Item "($ok, $err) = try_sig_mask { ... }" +Complete an action with several signals masked, they will be unmasked at the +end allowing any signals that were intercepted to get handled. +.Sp +This is primarily used when you need to make several actions atomic (against +some signals anyway). +.Sp +Signals that are intercepted: +.RS 4 +.IP "\s-1SIGINT\s0" 4 +.IX Item "SIGINT" +.PD 0 +.IP "\s-1SIGALRM\s0" 4 +.IX Item "SIGALRM" +.IP "\s-1SIGHUP\s0" 4 +.IX Item "SIGHUP" +.IP "\s-1SIGTERM\s0" 4 +.IX Item "SIGTERM" +.IP "\s-1SIGUSR1\s0" 4 +.IX Item "SIGUSR1" +.IP "\s-1SIGUSR2\s0" 4 +.IX Item "SIGUSR2" +.RE +.RS 4 +.RE +.PD +.SH "NOTES && CAVEATS" +.IX Header "NOTES && CAVEATS" +.IP "5.10.0" 4 +.IX Item "5.10.0" +Perl 5.10.0 has a bug when compiled with newer gcc versions. This bug causes a +segfault whenever a new thread is launched. Test2 will attempt to detect +this, and note that the system is not capable of forking when it is detected. +.IP "Devel::Cover" 4 +.IX Item "Devel::Cover" +Devel::Cover does not support threads. \s-1CAN_THREAD\s0 will return false if +Devel::Cover is loaded before the check is first run. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.IP "Kent Fredric " 4 +.IX Item "Kent Fredric " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Text%3A%3AAbbrev.3 b/data/miniconda3/man/man3/Text%3A%3AAbbrev.3 new file mode 100644 index 0000000000000000000000000000000000000000..a5c01ece6327a4bd5a524e8e68b7af3af6c5cee2 --- /dev/null +++ b/data/miniconda3/man/man3/Text%3A%3AAbbrev.3 @@ -0,0 +1,164 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Text::Abbrev 3" +.TH Text::Abbrev 3 "2020-12-18" "perl v5.32.1" "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" +Text::Abbrev \- abbrev \- create an abbreviation table from a list +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Text::Abbrev; +\& abbrev $hashref, LIST +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Stores all unambiguous truncations of each element of \s-1LIST\s0 +as keys in the associative array referenced by \f(CW$hashref\fR. +The values are the original list elements. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +.Vb 1 +\& $hashref = abbrev qw(list edit send abort gripe); +\& +\& %hash = abbrev qw(list edit send abort gripe); +\& +\& abbrev $hashref, qw(list edit send abort gripe); +\& +\& abbrev(*hash, qw(list edit send abort gripe)); +.Ve diff --git a/data/miniconda3/man/man3/Text%3A%3ABalanced.3 b/data/miniconda3/man/man3/Text%3A%3ABalanced.3 new file mode 100644 index 0000000000000000000000000000000000000000..5c052c3104bcda23fdf3fbdc696c5584dbe260ac --- /dev/null +++ b/data/miniconda3/man/man3/Text%3A%3ABalanced.3 @@ -0,0 +1,1364 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Text::Balanced 3" +.TH Text::Balanced 3 "2020-12-18" "perl v5.32.1" "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" +Text::Balanced \- Extract delimited text sequences from strings. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 11 +\& use Text::Balanced qw ( +\& extract_delimited +\& extract_bracketed +\& extract_quotelike +\& extract_codeblock +\& extract_variable +\& extract_tagged +\& extract_multiple +\& gen_delimited_pat +\& gen_extract_tagged +\& ); +\& +\& # Extract the initial substring of $text that is delimited by +\& # two (unescaped) instances of the first character in $delim. +\& +\& ($extracted, $remainder) = extract_delimited($text,$delim); +\& +\& +\& # Extract the initial substring of $text that is bracketed +\& # with a delimiter(s) specified by $delim (where the string +\& # in $delim contains one or more of \*(Aq(){}[]<>\*(Aq). +\& +\& ($extracted, $remainder) = extract_bracketed($text,$delim); +\& +\& +\& # Extract the initial substring of $text that is bounded by +\& # an XML tag. +\& +\& ($extracted, $remainder) = extract_tagged($text); +\& +\& +\& # Extract the initial substring of $text that is bounded by +\& # a C...C pair. Don\*(Aqt allow nested C tags +\& +\& ($extracted, $remainder) = +\& extract_tagged($text,"BEGIN","END",undef,{bad=>["BEGIN"]}); +\& +\& +\& # Extract the initial substring of $text that represents a +\& # Perl "quote or quote\-like operation" +\& +\& ($extracted, $remainder) = extract_quotelike($text); +\& +\& +\& # Extract the initial substring of $text that represents a block +\& # of Perl code, bracketed by any of character(s) specified by $delim +\& # (where the string $delim contains one or more of \*(Aq(){}[]<>\*(Aq). +\& +\& ($extracted, $remainder) = extract_codeblock($text,$delim); +\& +\& +\& # Extract the initial substrings of $text that would be extracted by +\& # one or more sequential applications of the specified functions +\& # or regular expressions +\& +\& @extracted = extract_multiple($text, +\& [ \e&extract_bracketed, +\& \e&extract_quotelike, +\& \e&some_other_extractor_sub, +\& qr/[xyz]*/, +\& \*(Aqliteral\*(Aq, +\& ]); +.Ve +.PP +# Create a string representing an optimized pattern (a la Friedl) +# that matches a substring delimited by any of the specified characters +# (in this case: any type of quote or a slash) +.PP +.Vb 1 +\& $patstring = gen_delimited_pat(q{\*(Aq"\`/}); +.Ve +.PP +# Generate a reference to an anonymous sub that is just like extract_tagged +# but pre-compiled and optimized for a specific pair of tags, and consequently +# much faster (i.e. 3 times faster). It uses qr// for better performance on +# repeated calls, so it only works under Perl 5.005 or later. +.PP +.Vb 1 +\& $extract_head = gen_extract_tagged(\*(Aq\*(Aq,\*(Aq\*(Aq); +\& +\& ($extracted, $remainder) = $extract_head\->($text); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The various \f(CW\*(C`extract_...\*(C'\fR subroutines may be used to +extract a delimited substring, possibly after skipping a +specified prefix string. By default, that prefix is +optional whitespace (\f(CW\*(C`/\es*/\*(C'\fR), but you can change it to whatever +you wish (see below). +.PP +The substring to be extracted must appear at the +current \f(CW\*(C`pos\*(C'\fR location of the string's variable +(or at index zero, if no \f(CW\*(C`pos\*(C'\fR position is defined). +In other words, the \f(CW\*(C`extract_...\*(C'\fR subroutines \fIdon't\fR +extract the first occurrence of a substring anywhere +in a string (like an unanchored regex would). Rather, +they extract an occurrence of the substring appearing +immediately at the current matching position in the +string (like a \f(CW\*(C`\eG\*(C'\fR\-anchored regex would). +.SS "General behaviour in list contexts" +.IX Subsection "General behaviour in list contexts" +In a list context, all the subroutines return a list, the first three +elements of which are always: +.IP "[0]" 4 +.IX Item "[0]" +The extracted string, including the specified delimiters. +If the extraction fails \f(CW\*(C`undef\*(C'\fR is returned. +.IP "[1]" 4 +.IX Item "[1]" +The remainder of the input string (i.e. the characters after the +extracted string). On failure, the entire string is returned. +.IP "[2]" 4 +.IX Item "[2]" +The skipped prefix (i.e. the characters before the extracted string). +On failure, \f(CW\*(C`undef\*(C'\fR is returned. +.PP +Note that in a list context, the contents of the original input text (the first +argument) are not modified in any way. +.PP +However, if the input text was passed in a variable, that variable's +\&\f(CW\*(C`pos\*(C'\fR value is updated to point at the first character after the +extracted text. That means that in a list context the various +subroutines can be used much like regular expressions. For example: +.PP +.Vb 4 +\& while ( $next = (extract_quotelike($text))[0] ) +\& { +\& # process next quote\-like (in $next) +\& } +.Ve +.SS "General behaviour in scalar and void contexts" +.IX Subsection "General behaviour in scalar and void contexts" +In a scalar context, the extracted string is returned, having first been +removed from the input text. Thus, the following code also processes +each quote-like operation, but actually removes them from \f(CW$text:\fR +.PP +.Vb 4 +\& while ( $next = extract_quotelike($text) ) +\& { +\& # process next quote\-like (in $next) +\& } +.Ve +.PP +Note that if the input text is a read-only string (i.e. a literal), +no attempt is made to remove the extracted text. +.PP +In a void context the behaviour of the extraction subroutines is +exactly the same as in a scalar context, except (of course) that the +extracted substring is not returned. +.SS "A note about prefixes" +.IX Subsection "A note about prefixes" +Prefix patterns are matched without any trailing modifiers (\f(CW\*(C`/gimsox\*(C'\fR etc.) +This can bite you if you're expecting a prefix specification like +\&'.*?(?=

)' to skip everything up to the first

tag. Such a prefix +pattern will only succeed if the

tag is on the current line, since +\&. normally doesn't match newlines. +.PP +To overcome this limitation, you need to turn on /s matching within +the prefix pattern, using the \f(CW\*(C`(?s)\*(C'\fR directive: '(?s).*?(?=

)' +.ie n .SS """extract_delimited""" +.el .SS "\f(CWextract_delimited\fP" +.IX Subsection "extract_delimited" +The \f(CW\*(C`extract_delimited\*(C'\fR function formalizes the common idiom +of extracting a single-character-delimited substring from the start of +a string. For example, to extract a single-quote delimited string, the +following code is typically used: +.PP +.Vb 2 +\& ($remainder = $text) =~ s/\eA(\*(Aq(\e\e.|[^\*(Aq])*\*(Aq)//s; +\& $extracted = $1; +.Ve +.PP +but with \f(CW\*(C`extract_delimited\*(C'\fR it can be simplified to: +.PP +.Vb 1 +\& ($extracted,$remainder) = extract_delimited($text, "\*(Aq"); +.Ve +.PP +\&\f(CW\*(C`extract_delimited\*(C'\fR takes up to four scalars (the input text, the +delimiters, a prefix pattern to be skipped, and any escape characters) +and extracts the initial substring of the text that +is appropriately delimited. If the delimiter string has multiple +characters, the first one encountered in the text is taken to delimit +the substring. +The third argument specifies a prefix pattern that is to be skipped +(but must be present!) before the substring is extracted. +The final argument specifies the escape character to be used for each +delimiter. +.PP +All arguments are optional. If the escape characters are not specified, +every delimiter is escaped with a backslash (\f(CW\*(C`\e\*(C'\fR). +If the prefix is not specified, the +pattern \f(CW\*(Aq\es*\*(Aq\fR \- optional whitespace \- is used. If the delimiter set +is also not specified, the set \f(CW\*(C`/["\*(Aq\`]/\*(C'\fR is used. If the text to be processed +is not specified either, \f(CW$_\fR is used. +.PP +In list context, \f(CW\*(C`extract_delimited\*(C'\fR returns a array of three +elements, the extracted substring (\fIincluding the surrounding +delimiters\fR), the remainder of the text, and the skipped prefix (if +any). If a suitable delimited substring is not found, the first +element of the array is the empty string, the second is the complete +original text, and the prefix returned in the third element is an +empty string. +.PP +In a scalar context, just the extracted substring is returned. In +a void context, the extracted substring (and any prefix) are simply +removed from the beginning of the first argument. +.PP +Examples: +.PP +.Vb 1 +\& # Remove a single\-quoted substring from the very beginning of $text: +\& +\& $substring = extract_delimited($text, "\*(Aq", \*(Aq\*(Aq); +\& +\& # Remove a single\-quoted Pascalish substring (i.e. one in which +\& # doubling the quote character escapes it) from the very +\& # beginning of $text: +\& +\& $substring = extract_delimited($text, "\*(Aq", \*(Aq\*(Aq, "\*(Aq"); +\& +\& # Extract a single\- or double\- quoted substring from the +\& # beginning of $text, optionally after some whitespace +\& # (note the list context to protect $text from modification): +\& +\& ($substring) = extract_delimited $text, q{"\*(Aq}; +\& +\& # Delete the substring delimited by the first \*(Aq/\*(Aq in $text: +\& +\& $text = join \*(Aq\*(Aq, (extract_delimited($text,\*(Aq/\*(Aq,\*(Aq[^/]*\*(Aq)[2,1]; +.Ve +.PP +Note that this last example is \fInot\fR the same as deleting the first +quote-like pattern. For instance, if \f(CW$text\fR contained the string: +.PP +.Vb 1 +\& "if (\*(Aq./cmd\*(Aq =~ m/$UNIXCMD/s) { $cmd = $1; }" +.Ve +.PP +then after the deletion it would contain: +.PP +.Vb 1 +\& "if (\*(Aq.$UNIXCMD/s) { $cmd = $1; }" +.Ve +.PP +not: +.PP +.Vb 1 +\& "if (\*(Aq./cmd\*(Aq =~ ms) { $cmd = $1; }" +.Ve +.PP +See \*(L"extract_quotelike\*(R" for a (partial) solution to this problem. +.ie n .SS """extract_bracketed""" +.el .SS "\f(CWextract_bracketed\fP" +.IX Subsection "extract_bracketed" +Like \f(CW"extract_delimited"\fR, the \f(CW\*(C`extract_bracketed\*(C'\fR function takes +up to three optional scalar arguments: a string to extract from, a delimiter +specifier, and a prefix pattern. As before, a missing prefix defaults to +optional whitespace and a missing text defaults to \f(CW$_\fR. However, a missing +delimiter specifier defaults to \f(CW\*(Aq{}()[]<>\*(Aq\fR (see below). +.PP +\&\f(CW\*(C`extract_bracketed\*(C'\fR extracts a balanced-bracket-delimited +substring (using any one (or more) of the user-specified delimiter +brackets: '(..)', '{..}', '[..]', or '<..>'). Optionally it will also +respect quoted unbalanced brackets (see below). +.PP +A \*(L"delimiter bracket\*(R" is a bracket in list of delimiters passed as +\&\f(CW\*(C`extract_bracketed\*(C'\fR's second argument. Delimiter brackets are +specified by giving either the left or right (or both!) versions +of the required bracket(s). Note that the order in which +two or more delimiter brackets are specified is not significant. +.PP +A \*(L"balanced-bracket-delimited substring\*(R" is a substring bounded by +matched brackets, such that any other (left or right) delimiter +bracket \fIwithin\fR the substring is also matched by an opposite +(right or left) delimiter bracket \fIat the same level of nesting\fR. Any +type of bracket not in the delimiter list is treated as an ordinary +character. +.PP +In other words, each type of bracket specified as a delimiter must be +balanced and correctly nested within the substring, and any other kind of +(\*(L"non-delimiter\*(R") bracket in the substring is ignored. +.PP +For example, given the string: +.PP +.Vb 1 +\& $text = "{ an \*(Aq[irregularly :\-(] {} parenthesized >:\-)\*(Aq string }"; +.Ve +.PP +then a call to \f(CW\*(C`extract_bracketed\*(C'\fR in a list context: +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq{}\*(Aq ); +.Ve +.PP +would return: +.PP +.Vb 1 +\& ( "{ an \*(Aq[irregularly :\-(] {} parenthesized >:\-)\*(Aq string }" , "" , "" ) +.Ve +.PP +since both sets of \f(CW\*(Aq{..}\*(Aq\fR brackets are properly nested and evenly balanced. +(In a scalar context just the first element of the array would be returned. In +a void context, \f(CW$text\fR would be replaced by an empty string.) +.PP +Likewise the call in: +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq{[\*(Aq ); +.Ve +.PP +would return the same result, since all sets of both types of specified +delimiter brackets are correctly nested and balanced. +.PP +However, the call in: +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq{([<\*(Aq ); +.Ve +.PP +would fail, returning: +.PP +.Vb 1 +\& ( undef , "{ an \*(Aq[irregularly :\-(] {} parenthesized >:\-)\*(Aq string }" ); +.Ve +.PP +because the embedded pairs of \f(CW\*(Aq(..)\*(Aq\fRs and \f(CW\*(Aq[..]\*(Aq\fRs are \*(L"cross-nested\*(R" and +the embedded \f(CW\*(Aq>\*(Aq\fR is unbalanced. (In a scalar context, this call would +return an empty string. In a void context, \f(CW$text\fR would be unchanged.) +.PP +Note that the embedded single-quotes in the string don't help in this +case, since they have not been specified as acceptable delimiters and are +therefore treated as non-delimiter characters (and ignored). +.PP +However, if a particular species of quote character is included in the +delimiter specification, then that type of quote will be correctly handled. +for example, if \f(CW$text\fR is: +.PP +.Vb 1 +\& $text = \*(Aqlink\*(Aq; +.Ve +.PP +then +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq<">\*(Aq ); +.Ve +.PP +returns: +.PP +.Vb 1 +\& ( \*(Aq\*(Aq, \*(Aqlink\*(Aq, "" ) +.Ve +.PP +as expected. Without the specification of \f(CW\*(C`"\*(C'\fR as an embedded quoter: +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq<>\*(Aq ); +.Ve +.PP +the result would be: +.PP +.Vb 1 +\& ( \*(Aqlink\*(Aq, "" ) +.Ve +.PP +In addition to the quote delimiters \f(CW\*(C`\*(Aq\*(C'\fR, \f(CW\*(C`"\*(C'\fR, and \f(CW\*(C`\`\*(C'\fR, full Perl quote-like +quoting (i.e. q{string}, qq{string}, etc) can be specified by including the +letter 'q' as a delimiter. Hence: +.PP +.Vb 1 +\& @result = extract_bracketed( $text, \*(Aq\*(Aq ); +.Ve +.PP +would correctly match something like this: +.PP +.Vb 1 +\& $text = \*(Aq\*(Aq; +.Ve +.PP +See also: \f(CW"extract_quotelike"\fR and \f(CW"extract_codeblock"\fR. +.ie n .SS """extract_variable""" +.el .SS "\f(CWextract_variable\fP" +.IX Subsection "extract_variable" +\&\f(CW\*(C`extract_variable\*(C'\fR extracts any valid Perl variable or +variable-involved expression, including scalars, arrays, hashes, array +accesses, hash look-ups, method calls through objects, subroutine calls +through subroutine references, etc. +.PP +The subroutine takes up to two optional arguments: +.IP "1." 4 +A string to be processed (\f(CW$_\fR if the string is omitted or \f(CW\*(C`undef\*(C'\fR) +.IP "2." 4 +A string specifying a pattern to be matched as a prefix (which is to be +skipped). If omitted, optional whitespace is skipped. +.PP +On success in a list context, an array of 3 elements is returned. The +elements are: +.IP "[0]" 4 +.IX Item "[0]" +the extracted variable, or variablish expression +.IP "[1]" 4 +.IX Item "[1]" +the remainder of the input text, +.IP "[2]" 4 +.IX Item "[2]" +the prefix substring (if any), +.PP +On failure, all of these values (except the remaining text) are \f(CW\*(C`undef\*(C'\fR. +.PP +In a scalar context, \f(CW\*(C`extract_variable\*(C'\fR returns just the complete +substring that matched a variablish expression. \f(CW\*(C`undef\*(C'\fR is returned on +failure. In addition, the original input text has the returned substring +(and any prefix) removed from it. +.PP +In a void context, the input text just has the matched substring (and +any specified prefix) removed. +.ie n .SS """extract_tagged""" +.el .SS "\f(CWextract_tagged\fP" +.IX Subsection "extract_tagged" +\&\f(CW\*(C`extract_tagged\*(C'\fR extracts and segments text between (balanced) +specified tags. +.PP +The subroutine takes up to five optional arguments: +.IP "1." 4 +A string to be processed (\f(CW$_\fR if the string is omitted or \f(CW\*(C`undef\*(C'\fR) +.IP "2." 4 +A string specifying a pattern to be matched as the opening tag. +If the pattern string is omitted (or \f(CW\*(C`undef\*(C'\fR) then a pattern +that matches any standard \s-1XML\s0 tag is used. +.IP "3." 4 +A string specifying a pattern to be matched at the closing tag. +If the pattern string is omitted (or \f(CW\*(C`undef\*(C'\fR) then the closing +tag is constructed by inserting a \f(CW\*(C`/\*(C'\fR after any leading bracket +characters in the actual opening tag that was matched (\fInot\fR the pattern +that matched the tag). For example, if the opening tag pattern +is specified as \f(CW\*(Aq{{\ew+}}\*(Aq\fR and actually matched the opening tag +\&\f(CW"{{DATA}}"\fR, then the constructed closing tag would be \f(CW"{{/DATA}}"\fR. +.IP "4." 4 +A string specifying a pattern to be matched as a prefix (which is to be +skipped). If omitted, optional whitespace is skipped. +.IP "5." 4 +A hash reference containing various parsing options (see below) +.PP +The various options that can be specified are: +.ie n .IP """reject => $listref""" 4 +.el .IP "\f(CWreject => $listref\fR" 4 +.IX Item "reject => $listref" +The list reference contains one or more strings specifying patterns +that must \fInot\fR appear within the tagged text. +.Sp +For example, to extract +an \s-1HTML\s0 link (which should not contain nested links) use: +.Sp +.Vb 1 +\& extract_tagged($text, \*(Aq\*(Aq, \*(Aq\*(Aq, undef, {reject => [\*(Aq\*(Aq]} ); +.Ve +.ie n .IP """ignore => $listref""" 4 +.el .IP "\f(CWignore => $listref\fR" 4 +.IX Item "ignore => $listref" +The list reference contains one or more strings specifying patterns +that are \fInot\fR be be treated as nested tags within the tagged text +(even if they would match the start tag pattern). +.Sp +For example, to extract an arbitrary \s-1XML\s0 tag, but ignore \*(L"empty\*(R" elements: +.Sp +.Vb 1 +\& extract_tagged($text, undef, undef, undef, {ignore => [\*(Aq<[^>]*/>\*(Aq]} ); +.Ve +.Sp +(also see \*(L"gen_delimited_pat\*(R" below). +.ie n .IP """fail => $str""" 4 +.el .IP "\f(CWfail => $str\fR" 4 +.IX Item "fail => $str" +The \f(CW\*(C`fail\*(C'\fR option indicates the action to be taken if a matching end +tag is not encountered (i.e. before the end of the string or some +\&\f(CW\*(C`reject\*(C'\fR pattern matches). By default, a failure to match a closing +tag causes \f(CW\*(C`extract_tagged\*(C'\fR to immediately fail. +.Sp +However, if the string value associated with is \*(L"\s-1MAX\*(R",\s0 then +\&\f(CW\*(C`extract_tagged\*(C'\fR returns the complete text up to the point of failure. +If the string is \*(L"\s-1PARA\*(R",\s0 \f(CW\*(C`extract_tagged\*(C'\fR returns only the first paragraph +after the tag (up to the first line that is either empty or contains +only whitespace characters). +If the string is "", the the default behaviour (i.e. failure) is reinstated. +.Sp +For example, suppose the start tag \*(L"/para\*(R" introduces a paragraph, which then +continues until the next \*(L"/endpara\*(R" tag or until another \*(L"/para\*(R" tag is +encountered: +.Sp +.Vb 1 +\& $text = "/para line 1\en\enline 3\en/para line 4"; +\& +\& extract_tagged($text, \*(Aq/para\*(Aq, \*(Aq/endpara\*(Aq, undef, +\& {reject => \*(Aq/para\*(Aq, fail => MAX ); +\& +\& # EXTRACTED: "/para line 1\en\enline 3\en" +.Ve +.Sp +Suppose instead, that if no matching \*(L"/endpara\*(R" tag is found, the \*(L"/para\*(R" +tag refers only to the immediately following paragraph: +.Sp +.Vb 1 +\& $text = "/para line 1\en\enline 3\en/para line 4"; +\& +\& extract_tagged($text, \*(Aq/para\*(Aq, \*(Aq/endpara\*(Aq, undef, +\& {reject => \*(Aq/para\*(Aq, fail => MAX ); +\& +\& # EXTRACTED: "/para line 1\en" +.Ve +.Sp +Note that the specified \f(CW\*(C`fail\*(C'\fR behaviour applies to nested tags as well. +.PP +On success in a list context, an array of 6 elements is returned. The elements are: +.IP "[0]" 4 +.IX Item "[0]" +the extracted tagged substring (including the outermost tags), +.IP "[1]" 4 +.IX Item "[1]" +the remainder of the input text, +.IP "[2]" 4 +.IX Item "[2]" +the prefix substring (if any), +.IP "[3]" 4 +.IX Item "[3]" +the opening tag +.IP "[4]" 4 +.IX Item "[4]" +the text between the opening and closing tags +.IP "[5]" 4 +.IX Item "[5]" +the closing tag (or "" if no closing tag was found) +.PP +On failure, all of these values (except the remaining text) are \f(CW\*(C`undef\*(C'\fR. +.PP +In a scalar context, \f(CW\*(C`extract_tagged\*(C'\fR returns just the complete +substring that matched a tagged text (including the start and end +tags). \f(CW\*(C`undef\*(C'\fR is returned on failure. In addition, the original input +text has the returned substring (and any prefix) removed from it. +.PP +In a void context, the input text just has the matched substring (and +any specified prefix) removed. +.ie n .SS """gen_extract_tagged""" +.el .SS "\f(CWgen_extract_tagged\fP" +.IX Subsection "gen_extract_tagged" +(Note: This subroutine is only available under Perl5.005) +.PP +\&\f(CW\*(C`gen_extract_tagged\*(C'\fR generates a new anonymous subroutine which +extracts text between (balanced) specified tags. In other words, +it generates a function identical in function to \f(CW\*(C`extract_tagged\*(C'\fR. +.PP +The difference between \f(CW\*(C`extract_tagged\*(C'\fR and the anonymous +subroutines generated by +\&\f(CW\*(C`gen_extract_tagged\*(C'\fR, is that those generated subroutines: +.IP "\(bu" 4 +do not have to reparse tag specification or parsing options every time +they are called (whereas \f(CW\*(C`extract_tagged\*(C'\fR has to effectively rebuild +its tag parser on every call); +.IP "\(bu" 4 +make use of the new qr// construct to pre-compile the regexes they use +(whereas \f(CW\*(C`extract_tagged\*(C'\fR uses standard string variable interpolation +to create tag-matching patterns). +.PP +The subroutine takes up to four optional arguments (the same set as +\&\f(CW\*(C`extract_tagged\*(C'\fR except for the string to be processed). It returns +a reference to a subroutine which in turn takes a single argument (the text to +be extracted from). +.PP +In other words, the implementation of \f(CW\*(C`extract_tagged\*(C'\fR is exactly +equivalent to: +.PP +.Vb 6 +\& sub extract_tagged +\& { +\& my $text = shift; +\& $extractor = gen_extract_tagged(@_); +\& return $extractor\->($text); +\& } +.Ve +.PP +(although \f(CW\*(C`extract_tagged\*(C'\fR is not currently implemented that way, in order +to preserve pre\-5.005 compatibility). +.PP +Using \f(CW\*(C`gen_extract_tagged\*(C'\fR to create extraction functions for specific tags +is a good idea if those functions are going to be called more than once, since +their performance is typically twice as good as the more general-purpose +\&\f(CW\*(C`extract_tagged\*(C'\fR. +.ie n .SS """extract_quotelike""" +.el .SS "\f(CWextract_quotelike\fP" +.IX Subsection "extract_quotelike" +\&\f(CW\*(C`extract_quotelike\*(C'\fR attempts to recognize, extract, and segment any +one of the various Perl quotes and quotelike operators (see +\&\fBperlop\fR\|(3)) Nested backslashed delimiters, embedded balanced bracket +delimiters (for the quotelike operators), and trailing modifiers are +all caught. For example, in: +.PP +.Vb 1 +\& extract_quotelike \*(Aqq # an octothorpe: \e# (not the end of the q!) #\*(Aq +\& +\& extract_quotelike \*(Aq "You said, \e"Use sed\e"." \*(Aq +\& +\& extract_quotelike \*(Aq s{([A\-Z]{1,8}\e.[A\-Z]{3})} /\eL$1\eE/; \*(Aq +\& +\& extract_quotelike \*(Aq tr/\e\e\e/\e\e\e\e/\e\e\e//ds; \*(Aq +.Ve +.PP +the full Perl quotelike operations are all extracted correctly. +.PP +Note too that, when using the /x modifier on a regex, any comment +containing the current pattern delimiter will cause the regex to be +immediately terminated. In other words: +.PP +.Vb 5 +\& \*(Aqm / +\& (?i) # CASE INSENSITIVE +\& [a\-z_] # LEADING ALPHABETIC/UNDERSCORE +\& [a\-z0\-9]* # FOLLOWED BY ANY NUMBER OF ALPHANUMERICS +\& /x\*(Aq +.Ve +.PP +will be extracted as if it were: +.PP +.Vb 3 +\& \*(Aqm / +\& (?i) # CASE INSENSITIVE +\& [a\-z_] # LEADING ALPHABETIC/\*(Aq +.Ve +.PP +This behaviour is identical to that of the actual compiler. +.PP +\&\f(CW\*(C`extract_quotelike\*(C'\fR takes two arguments: the text to be processed and +a prefix to be matched at the very beginning of the text. If no prefix +is specified, optional whitespace is the default. If no text is given, +\&\f(CW$_\fR is used. +.PP +In a list context, an array of 11 elements is returned. The elements are: +.IP "[0]" 4 +.IX Item "[0]" +the extracted quotelike substring (including trailing modifiers), +.IP "[1]" 4 +.IX Item "[1]" +the remainder of the input text, +.IP "[2]" 4 +.IX Item "[2]" +the prefix substring (if any), +.IP "[3]" 4 +.IX Item "[3]" +the name of the quotelike operator (if any), +.IP "[4]" 4 +.IX Item "[4]" +the left delimiter of the first block of the operation, +.IP "[5]" 4 +.IX Item "[5]" +the text of the first block of the operation +(that is, the contents of +a quote, the regex of a match or substitution or the target list of a +translation), +.IP "[6]" 4 +.IX Item "[6]" +the right delimiter of the first block of the operation, +.IP "[7]" 4 +.IX Item "[7]" +the left delimiter of the second block of the operation +(that is, if it is a \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`tr\*(C'\fR, or \f(CW\*(C`y\*(C'\fR), +.IP "[8]" 4 +.IX Item "[8]" +the text of the second block of the operation +(that is, the replacement of a substitution or the translation list +of a translation), +.IP "[9]" 4 +.IX Item "[9]" +the right delimiter of the second block of the operation (if any), +.IP "[10]" 4 +.IX Item "[10]" +the trailing modifiers on the operation (if any). +.PP +For each of the fields marked \*(L"(if any)\*(R" the default value on success is +an empty string. +On failure, all of these values (except the remaining text) are \f(CW\*(C`undef\*(C'\fR. +.PP +In a scalar context, \f(CW\*(C`extract_quotelike\*(C'\fR returns just the complete substring +that matched a quotelike operation (or \f(CW\*(C`undef\*(C'\fR on failure). In a scalar or +void context, the input text has the same substring (and any specified +prefix) removed. +.PP +Examples: +.PP +.Vb 1 +\& # Remove the first quotelike literal that appears in text +\& +\& $quotelike = extract_quotelike($text,\*(Aq.*?\*(Aq); +\& +\& # Replace one or more leading whitespace\-separated quotelike +\& # literals in $_ with "" +\& +\& do { $_ = join \*(Aq\*(Aq, (extract_quotelike)[2,1] } until $@; +\& +\& +\& # Isolate the search pattern in a quotelike operation from $text +\& +\& ($op,$pat) = (extract_quotelike $text)[3,5]; +\& if ($op =~ /[ms]/) +\& { +\& print "search pattern: $pat\en"; +\& } +\& else +\& { +\& print "$op is not a pattern matching operation\en"; +\& } +.Ve +.ie n .SS """extract_quotelike"" and ""here documents""" +.el .SS "\f(CWextract_quotelike\fP and ``here documents''" +.IX Subsection "extract_quotelike and here documents" +\&\f(CW\*(C`extract_quotelike\*(C'\fR can successfully extract \*(L"here documents\*(R" from an input +string, but with an important caveat in list contexts. +.PP +Unlike other types of quote-like literals, a here document is rarely +a contiguous substring. For example, a typical piece of code using +here document might look like this: +.PP +.Vb 4 +\& <<\*(AqEOMSG\*(Aq || die; +\& This is the message. +\& EOMSG +\& exit; +.Ve +.PP +Given this as an input string in a scalar context, \f(CW\*(C`extract_quotelike\*(C'\fR +would correctly return the string \*(L"<<'\s-1EOMSG\s0'\enThis is the message.\enEOMSG\*(R", +leaving the string \*(L" || die;\enexit;\*(R" in the original variable. In other words, +the two separate pieces of the here document are successfully extracted and +concatenated. +.PP +In a list context, \f(CW\*(C`extract_quotelike\*(C'\fR would return the list +.IP "[0]" 4 +.IX Item "[0]" +\&\*(L"<<'\s-1EOMSG\s0'\enThis is the message.\enEOMSG\en\*(R" (i.e. the full extracted here document, +including fore and aft delimiters), +.IP "[1]" 4 +.IX Item "[1]" +\&\*(L" || die;\enexit;\*(R" (i.e. the remainder of the input text, concatenated), +.IP "[2]" 4 +.IX Item "[2]" +"" (i.e. the prefix substring \*(-- trivial in this case), +.IP "[3]" 4 +.IX Item "[3]" +\&\*(L"<<\*(R" (i.e. the \*(L"name\*(R" of the quotelike operator) +.IP "[4]" 4 +.IX Item "[4]" +\&\*(L"'\s-1EOMSG\s0'\*(R" (i.e. the left delimiter of the here document, including any quotes), +.IP "[5]" 4 +.IX Item "[5]" +\&\*(L"This is the message.\en\*(R" (i.e. the text of the here document), +.IP "[6]" 4 +.IX Item "[6]" +\&\*(L"\s-1EOMSG\*(R"\s0 (i.e. the right delimiter of the here document), +.IP "[7..10]" 4 +.IX Item "[7..10]" +"" (a here document has no second left delimiter, second text, second right +delimiter, or trailing modifiers). +.PP +However, the matching position of the input variable would be set to +\&\*(L"exit;\*(R" (i.e. \fIafter\fR the closing delimiter of the here document), +which would cause the earlier \*(L" || die;\enexit;\*(R" to be skipped in any +sequence of code fragment extractions. +.PP +To avoid this problem, when it encounters a here document whilst +extracting from a modifiable string, \f(CW\*(C`extract_quotelike\*(C'\fR silently +rearranges the string to an equivalent piece of Perl: +.PP +.Vb 5 +\& <<\*(AqEOMSG\*(Aq +\& This is the message. +\& EOMSG +\& || die; +\& exit; +.Ve +.PP +in which the here document \fIis\fR contiguous. It still leaves the +matching position after the here document, but now the rest of the line +on which the here document starts is not skipped. +.PP +To prevent from mucking about with the input in this way +(this is the only case where a list-context \f(CW\*(C`extract_quotelike\*(C'\fR does so), +you can pass the input variable as an interpolated literal: +.PP +.Vb 1 +\& $quotelike = extract_quotelike("$var"); +.Ve +.ie n .SS """extract_codeblock""" +.el .SS "\f(CWextract_codeblock\fP" +.IX Subsection "extract_codeblock" +\&\f(CW\*(C`extract_codeblock\*(C'\fR attempts to recognize and extract a balanced +bracket delimited substring that may contain unbalanced brackets +inside Perl quotes or quotelike operations. That is, \f(CW\*(C`extract_codeblock\*(C'\fR +is like a combination of \f(CW"extract_bracketed"\fR and +\&\f(CW"extract_quotelike"\fR. +.PP +\&\f(CW\*(C`extract_codeblock\*(C'\fR takes the same initial three parameters as \f(CW\*(C`extract_bracketed\*(C'\fR: +a text to process, a set of delimiter brackets to look for, and a prefix to +match first. It also takes an optional fourth parameter, which allows the +outermost delimiter brackets to be specified separately (see below). +.PP +Omitting the first argument (input text) means process \f(CW$_\fR instead. +Omitting the second argument (delimiter brackets) indicates that only \f(CW\*(Aq{\*(Aq\fR is to be used. +Omitting the third argument (prefix argument) implies optional whitespace at the start. +Omitting the fourth argument (outermost delimiter brackets) indicates that the +value of the second argument is to be used for the outermost delimiters. +.PP +Once the prefix an dthe outermost opening delimiter bracket have been +recognized, code blocks are extracted by stepping through the input text and +trying the following alternatives in sequence: +.IP "1." 4 +Try and match a closing delimiter bracket. If the bracket was the same +species as the last opening bracket, return the substring to that +point. If the bracket was mismatched, return an error. +.IP "2." 4 +Try to match a quote or quotelike operator. If found, call +\&\f(CW\*(C`extract_quotelike\*(C'\fR to eat it. If \f(CW\*(C`extract_quotelike\*(C'\fR fails, return +the error it returned. Otherwise go back to step 1. +.IP "3." 4 +Try to match an opening delimiter bracket. If found, call +\&\f(CW\*(C`extract_codeblock\*(C'\fR recursively to eat the embedded block. If the +recursive call fails, return an error. Otherwise, go back to step 1. +.IP "4." 4 +Unconditionally match a bareword or any other single character, and +then go back to step 1. +.PP +Examples: +.PP +.Vb 1 +\& # Find a while loop in the text +\& +\& if ($text =~ s/.*?while\es*\e{/{/) +\& { +\& $loop = "while " . extract_codeblock($text); +\& } +\& +\& # Remove the first round\-bracketed list (which may include +\& # round\- or curly\-bracketed code blocks or quotelike operators) +\& +\& extract_codeblock $text, "(){}", \*(Aq[^(]*\*(Aq; +.Ve +.PP +The ability to specify a different outermost delimiter bracket is useful +in some circumstances. For example, in the Parse::RecDescent module, +parser actions which are to be performed only on a successful parse +are specified using a \f(CW\*(C`\*(C'\fR directive. For example: +.PP +.Vb 2 +\& sentence: subject verb object +\& +.Ve +.PP +Parse::RecDescent uses \f(CW\*(C`extract_codeblock($text, \*(Aq{}<>\*(Aq)\*(C'\fR to extract the code +within the \f(CW\*(C`\*(C'\fR directive, but there's a problem. +.PP +A deferred action like this: +.PP +.Vb 1 +\& 10) {$count\-\-}} > +.Ve +.PP +will be incorrectly parsed as: +.PP +.Vb 1 +\& +.Ve +.PP +because the \*(L"less than\*(R" operator is interpreted as a closing delimiter. +.PP +But, by extracting the directive using +\&\f(CW\*(C`extract_codeblock($text,\ \*(Aq{}\*(Aq,\ undef,\ \*(Aq<>\*(Aq)\*(C'\fR +the '>' character is only treated as a delimited at the outermost +level of the code block, so the directive is parsed correctly. +.ie n .SS """extract_multiple""" +.el .SS "\f(CWextract_multiple\fP" +.IX Subsection "extract_multiple" +The \f(CW\*(C`extract_multiple\*(C'\fR subroutine takes a string to be processed and a +list of extractors (subroutines or regular expressions) to apply to that string. +.PP +In an array context \f(CW\*(C`extract_multiple\*(C'\fR returns an array of substrings +of the original string, as extracted by the specified extractors. +In a scalar context, \f(CW\*(C`extract_multiple\*(C'\fR returns the first +substring successfully extracted from the original string. In both +scalar and void contexts the original string has the first successfully +extracted substring removed from it. In all contexts +\&\f(CW\*(C`extract_multiple\*(C'\fR starts at the current \f(CW\*(C`pos\*(C'\fR of the string, and +sets that \f(CW\*(C`pos\*(C'\fR appropriately after it matches. +.PP +Hence, the aim of of a call to \f(CW\*(C`extract_multiple\*(C'\fR in a list context +is to split the processed string into as many non-overlapping fields as +possible, by repeatedly applying each of the specified extractors +to the remainder of the string. Thus \f(CW\*(C`extract_multiple\*(C'\fR is +a generalized form of Perl's \f(CW\*(C`split\*(C'\fR subroutine. +.PP +The subroutine takes up to four optional arguments: +.IP "1." 4 +A string to be processed (\f(CW$_\fR if the string is omitted or \f(CW\*(C`undef\*(C'\fR) +.IP "2." 4 +A reference to a list of subroutine references and/or qr// objects and/or +literal strings and/or hash references, specifying the extractors +to be used to split the string. If this argument is omitted (or +\&\f(CW\*(C`undef\*(C'\fR) the list: +.Sp +.Vb 5 +\& [ +\& sub { extract_variable($_[0], \*(Aq\*(Aq) }, +\& sub { extract_quotelike($_[0],\*(Aq\*(Aq) }, +\& sub { extract_codeblock($_[0],\*(Aq{}\*(Aq,\*(Aq\*(Aq) }, +\& ] +.Ve +.Sp +is used. +.IP "3." 4 +An number specifying the maximum number of fields to return. If this +argument is omitted (or \f(CW\*(C`undef\*(C'\fR), split continues as long as possible. +.Sp +If the third argument is \fIN\fR, then extraction continues until \fIN\fR fields +have been successfully extracted, or until the string has been completely +processed. +.Sp +Note that in scalar and void contexts the value of this argument is +automatically reset to 1 (under \f(CW\*(C`\-w\*(C'\fR, a warning is issued if the argument +has to be reset). +.IP "4." 4 +A value indicating whether unmatched substrings (see below) within the +text should be skipped or returned as fields. If the value is true, +such substrings are skipped. Otherwise, they are returned. +.PP +The extraction process works by applying each extractor in +sequence to the text string. +.PP +If the extractor is a subroutine it is called in a list context and is +expected to return a list of a single element, namely the extracted +text. It may optionally also return two further arguments: a string +representing the text left after extraction (like $' for a pattern +match), and a string representing any prefix skipped before the +extraction (like $` in a pattern match). Note that this is designed +to facilitate the use of other Text::Balanced subroutines with +\&\f(CW\*(C`extract_multiple\*(C'\fR. Note too that the value returned by an extractor +subroutine need not bear any relationship to the corresponding substring +of the original text (see examples below). +.PP +If the extractor is a precompiled regular expression or a string, +it is matched against the text in a scalar context with a leading +\&'\eG' and the gc modifiers enabled. The extracted value is either +\&\f(CW$1\fR if that variable is defined after the match, or else the +complete match (i.e. $&). +.PP +If the extractor is a hash reference, it must contain exactly one element. +The value of that element is one of the +above extractor types (subroutine reference, regular expression, or string). +The key of that element is the name of a class into which the successful +return value of the extractor will be blessed. +.PP +If an extractor returns a defined value, that value is immediately +treated as the next extracted field and pushed onto the list of fields. +If the extractor was specified in a hash reference, the field is also +blessed into the appropriate class, +.PP +If the extractor fails to match (in the case of a regex extractor), or returns an empty list or an undefined value (in the case of a subroutine extractor), it is +assumed to have failed to extract. +If none of the extractor subroutines succeeds, then one +character is extracted from the start of the text and the extraction +subroutines reapplied. Characters which are thus removed are accumulated and +eventually become the next field (unless the fourth argument is true, in which +case they are discarded). +.PP +For example, the following extracts substrings that are valid Perl variables: +.PP +.Vb 3 +\& @fields = extract_multiple($text, +\& [ sub { extract_variable($_[0]) } ], +\& undef, 1); +.Ve +.PP +This example separates a text into fields which are quote delimited, +curly bracketed, and anything else. The delimited and bracketed +parts are also blessed to identify them (the \*(L"anything else\*(R" is unblessed): +.PP +.Vb 5 +\& @fields = extract_multiple($text, +\& [ +\& { Delim => sub { extract_delimited($_[0],q{\*(Aq"}) } }, +\& { Brack => sub { extract_bracketed($_[0],\*(Aq{}\*(Aq) } }, +\& ]); +.Ve +.PP +This call extracts the next single substring that is a valid Perl quotelike +operator (and removes it from \f(CW$text\fR): +.PP +.Vb 4 +\& $quotelike = extract_multiple($text, +\& [ +\& sub { extract_quotelike($_[0]) }, +\& ], undef, 1); +.Ve +.PP +Finally, here is yet another way to do comma-separated value parsing: +.PP +.Vb 6 +\& @fields = extract_multiple($csv_text, +\& [ +\& sub { extract_delimited($_[0],q{\*(Aq"}) }, +\& qr/([^,]+)(.*)/, +\& ], +\& undef,1); +.Ve +.PP +The list in the second argument means: +\&\fI\*(L"Try and extract a ' or \*(R" delimited string, otherwise extract anything up to a comma..."\fR. +The undef third argument means: +\&\fI\*(L"...as many times as possible...\*(R"\fR, +and the true value in the fourth argument means +\&\fI\*(L"...discarding anything else that appears (i.e. the commas)\*(R"\fR. +.PP +If you wanted the commas preserved as separate fields (i.e. like split +does if your split pattern has capturing parentheses), you would +just make the last parameter undefined (or remove it). +.ie n .SS """gen_delimited_pat""" +.el .SS "\f(CWgen_delimited_pat\fP" +.IX Subsection "gen_delimited_pat" +The \f(CW\*(C`gen_delimited_pat\*(C'\fR subroutine takes a single (string) argument and + > builds a Friedl-style optimized regex that matches a string delimited +by any one of the characters in the single argument. For example: +.PP +.Vb 1 +\& gen_delimited_pat(q{\*(Aq"}) +.Ve +.PP +returns the regex: +.PP +.Vb 1 +\& (?:\e"(?:\e\e\e"|(?!\e").)*\e"|\e\*(Aq(?:\e\e\e\*(Aq|(?!\e\*(Aq).)*\e\*(Aq) +.Ve +.PP +Note that the specified delimiters are automatically quotemeta'd. +.PP +A typical use of \f(CW\*(C`gen_delimited_pat\*(C'\fR would be to build special purpose tags +for \f(CW\*(C`extract_tagged\*(C'\fR. For example, to properly ignore \*(L"empty\*(R" \s-1XML\s0 elements +(which might contain quoted strings): +.PP +.Vb 1 +\& my $empty_tag = \*(Aq<(\*(Aq . gen_delimited_pat(q{\*(Aq"}) . \*(Aq|.)+/>\*(Aq; +\& +\& extract_tagged($text, undef, undef, undef, {ignore => [$empty_tag]} ); +.Ve +.PP +\&\f(CW\*(C`gen_delimited_pat\*(C'\fR may also be called with an optional second argument, +which specifies the \*(L"escape\*(R" character(s) to be used for each delimiter. +For example to match a Pascal-style string (where ' is the delimiter +and '' is a literal ' within the string): +.PP +.Vb 1 +\& gen_delimited_pat(q{\*(Aq},q{\*(Aq}); +.Ve +.PP +Different escape characters can be specified for different delimiters. +For example, to specify that '/' is the escape for single quotes +and '%' is the escape for double quotes: +.PP +.Vb 1 +\& gen_delimited_pat(q{\*(Aq"},q{/%}); +.Ve +.PP +If more delimiters than escape chars are specified, the last escape char +is used for the remaining delimiters. +If no escape char is specified for a given specified delimiter, '\e' is used. +.ie n .SS """delimited_pat""" +.el .SS "\f(CWdelimited_pat\fP" +.IX Subsection "delimited_pat" +Note that \f(CW\*(C`gen_delimited_pat\*(C'\fR was previously called \f(CW\*(C`delimited_pat\*(C'\fR. +That name may still be used, but is now deprecated. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +In a list context, all the functions return \f(CW\*(C`(undef,$original_text)\*(C'\fR +on failure. In a scalar context, failure is indicated by returning \f(CW\*(C`undef\*(C'\fR +(in this case the input text is not modified in any way). +.PP +In addition, on failure in \fIany\fR context, the \f(CW$@\fR variable is set. +Accessing \f(CW\*(C`$@\->{error}\*(C'\fR returns one of the error diagnostics listed +below. +Accessing \f(CW\*(C`$@\->{pos}\*(C'\fR returns the offset into the original string at +which the error was detected (although not necessarily where it occurred!) +Printing \f(CW$@\fR directly produces the error message, with the offset appended. +On success, the \f(CW$@\fR variable is guaranteed to be \f(CW\*(C`undef\*(C'\fR. +.PP +The available diagnostics are: +.ie n .IP """Did not find a suitable bracket: ""%s""""" 4 +.el .IP "\f(CWDid not find a suitable bracket: ``%s''\fR" 4 +.IX Item "Did not find a suitable bracket: ""%s""" +The delimiter provided to \f(CW\*(C`extract_bracketed\*(C'\fR was not one of +\&\f(CW\*(Aq()[]<>{}\*(Aq\fR. +.ie n .IP """Did not find prefix: /%s/""" 4 +.el .IP "\f(CWDid not find prefix: /%s/\fR" 4 +.IX Item "Did not find prefix: /%s/" +A non-optional prefix was specified but wasn't found at the start of the text. +.ie n .IP """Did not find opening bracket after prefix: ""%s""""" 4 +.el .IP "\f(CWDid not find opening bracket after prefix: ``%s''\fR" 4 +.IX Item "Did not find opening bracket after prefix: ""%s""" +\&\f(CW\*(C`extract_bracketed\*(C'\fR or \f(CW\*(C`extract_codeblock\*(C'\fR was expecting a +particular kind of bracket at the start of the text, and didn't find it. +.ie n .IP """No quotelike operator found after prefix: ""%s""""" 4 +.el .IP "\f(CWNo quotelike operator found after prefix: ``%s''\fR" 4 +.IX Item "No quotelike operator found after prefix: ""%s""" +\&\f(CW\*(C`extract_quotelike\*(C'\fR didn't find one of the quotelike operators \f(CW\*(C`q\*(C'\fR, +\&\f(CW\*(C`qq\*(C'\fR, \f(CW\*(C`qw\*(C'\fR, \f(CW\*(C`qx\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`tr\*(C'\fR or \f(CW\*(C`y\*(C'\fR at the start of the substring +it was extracting. +.ie n .IP """Unmatched closing bracket: ""%c""""" 4 +.el .IP "\f(CWUnmatched closing bracket: ``%c''\fR" 4 +.IX Item "Unmatched closing bracket: ""%c""" +\&\f(CW\*(C`extract_bracketed\*(C'\fR, \f(CW\*(C`extract_quotelike\*(C'\fR or \f(CW\*(C`extract_codeblock\*(C'\fR encountered +a closing bracket where none was expected. +.ie n .IP """Unmatched opening bracket(s): ""%s""""" 4 +.el .IP "\f(CWUnmatched opening bracket(s): ``%s''\fR" 4 +.IX Item "Unmatched opening bracket(s): ""%s""" +\&\f(CW\*(C`extract_bracketed\*(C'\fR, \f(CW\*(C`extract_quotelike\*(C'\fR or \f(CW\*(C`extract_codeblock\*(C'\fR ran +out of characters in the text before closing one or more levels of nested +brackets. +.ie n .IP """Unmatched embedded quote (%s)""" 4 +.el .IP "\f(CWUnmatched embedded quote (%s)\fR" 4 +.IX Item "Unmatched embedded quote (%s)" +\&\f(CW\*(C`extract_bracketed\*(C'\fR attempted to match an embedded quoted substring, but +failed to find a closing quote to match it. +.ie n .IP """Did not find closing delimiter to match \*(Aq%s\*(Aq""" 4 +.el .IP "\f(CWDid not find closing delimiter to match \*(Aq%s\*(Aq\fR" 4 +.IX Item "Did not find closing delimiter to match %s" +\&\f(CW\*(C`extract_quotelike\*(C'\fR was unable to find a closing delimiter to match the +one that opened the quote-like operation. +.ie n .IP """Mismatched closing bracket: expected ""%c"" but found ""%s""""" 4 +.el .IP "\f(CWMismatched closing bracket: expected ``%c'' but found ``%s''\fR" 4 +.IX Item "Mismatched closing bracket: expected ""%c"" but found ""%s""" +\&\f(CW\*(C`extract_bracketed\*(C'\fR, \f(CW\*(C`extract_quotelike\*(C'\fR or \f(CW\*(C`extract_codeblock\*(C'\fR found +a valid bracket delimiter, but it was the wrong species. This usually +indicates a nesting error, but may indicate incorrect quoting or escaping. +.ie n .IP """No block delimiter found after quotelike ""%s""""" 4 +.el .IP "\f(CWNo block delimiter found after quotelike ``%s''\fR" 4 +.IX Item "No block delimiter found after quotelike ""%s""" +\&\f(CW\*(C`extract_quotelike\*(C'\fR or \f(CW\*(C`extract_codeblock\*(C'\fR found one of the +quotelike operators \f(CW\*(C`q\*(C'\fR, \f(CW\*(C`qq\*(C'\fR, \f(CW\*(C`qw\*(C'\fR, \f(CW\*(C`qx\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`tr\*(C'\fR or \f(CW\*(C`y\*(C'\fR +without a suitable block after it. +.ie n .IP """Did not find leading dereferencer""" 4 +.el .IP "\f(CWDid not find leading dereferencer\fR" 4 +.IX Item "Did not find leading dereferencer" +\&\f(CW\*(C`extract_variable\*(C'\fR was expecting one of '$', '@', or '%' at the start of +a variable, but didn't find any of them. +.ie n .IP """Bad identifier after dereferencer""" 4 +.el .IP "\f(CWBad identifier after dereferencer\fR" 4 +.IX Item "Bad identifier after dereferencer" +\&\f(CW\*(C`extract_variable\*(C'\fR found a '$', '@', or '%' indicating a variable, but that +character was not followed by a legal Perl identifier. +.ie n .IP """Did not find expected opening bracket at %s""" 4 +.el .IP "\f(CWDid not find expected opening bracket at %s\fR" 4 +.IX Item "Did not find expected opening bracket at %s" +\&\f(CW\*(C`extract_codeblock\*(C'\fR failed to find any of the outermost opening brackets +that were specified. +.ie n .IP """Improperly nested codeblock at %s""" 4 +.el .IP "\f(CWImproperly nested codeblock at %s\fR" 4 +.IX Item "Improperly nested codeblock at %s" +A nested code block was found that started with a delimiter that was specified +as being only to be used as an outermost bracket. +.ie n .IP """Missing second block for quotelike ""%s""""" 4 +.el .IP "\f(CWMissing second block for quotelike ``%s''\fR" 4 +.IX Item "Missing second block for quotelike ""%s""" +\&\f(CW\*(C`extract_codeblock\*(C'\fR or \f(CW\*(C`extract_quotelike\*(C'\fR found one of the +quotelike operators \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`tr\*(C'\fR or \f(CW\*(C`y\*(C'\fR followed by only one block. +.ie n .IP """No match found for opening bracket""" 4 +.el .IP "\f(CWNo match found for opening bracket\fR" 4 +.IX Item "No match found for opening bracket" +\&\f(CW\*(C`extract_codeblock\*(C'\fR failed to find a closing bracket to match the outermost +opening bracket. +.ie n .IP """Did not find opening tag: /%s/""" 4 +.el .IP "\f(CWDid not find opening tag: /%s/\fR" 4 +.IX Item "Did not find opening tag: /%s/" +\&\f(CW\*(C`extract_tagged\*(C'\fR did not find a suitable opening tag (after any specified +prefix was removed). +.ie n .IP """Unable to construct closing tag to match: /%s/""" 4 +.el .IP "\f(CWUnable to construct closing tag to match: /%s/\fR" 4 +.IX Item "Unable to construct closing tag to match: /%s/" +\&\f(CW\*(C`extract_tagged\*(C'\fR matched the specified opening tag and tried to +modify the matched text to produce a matching closing tag (because +none was specified). It failed to generate the closing tag, almost +certainly because the opening tag did not start with a +bracket of some kind. +.ie n .IP """Found invalid nested tag: %s""" 4 +.el .IP "\f(CWFound invalid nested tag: %s\fR" 4 +.IX Item "Found invalid nested tag: %s" +\&\f(CW\*(C`extract_tagged\*(C'\fR found a nested tag that appeared in the \*(L"reject\*(R" list +(and the failure mode was not \*(L"\s-1MAX\*(R"\s0 or \*(L"\s-1PARA\*(R"\s0). +.ie n .IP """Found unbalanced nested tag: %s""" 4 +.el .IP "\f(CWFound unbalanced nested tag: %s\fR" 4 +.IX Item "Found unbalanced nested tag: %s" +\&\f(CW\*(C`extract_tagged\*(C'\fR found a nested opening tag that was not matched by a +corresponding nested closing tag (and the failure mode was not \*(L"\s-1MAX\*(R"\s0 or \*(L"\s-1PARA\*(R"\s0). +.ie n .IP """Did not find closing tag""" 4 +.el .IP "\f(CWDid not find closing tag\fR" 4 +.IX Item "Did not find closing tag" +\&\f(CW\*(C`extract_tagged\*(C'\fR reached the end of the text without finding a closing tag +to match the original opening tag (and the failure mode was not +\&\*(L"\s-1MAX\*(R"\s0 or \*(L"\s-1PARA\*(R"\s0). +.SH "AUTHOR" +.IX Header "AUTHOR" +Damian Conway (damian@conway.org) +.SH "BUGS AND IRRITATIONS" +.IX Header "BUGS AND IRRITATIONS" +There are undoubtedly serious bugs lurking somewhere in this code, if +only because parts of it give the impression of understanding a great deal +more about Perl than they really do. +.PP +Bug reports and other feedback are most welcome. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 1997 \- 2001 Damian Conway. All Rights Reserved. +.PP +Some (minor) parts copyright 2009 Adam Kennedy. +.PP +This module is free software. It may be used, redistributed +and/or modified under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Text%3A%3AParseWords.3 b/data/miniconda3/man/man3/Text%3A%3AParseWords.3 new file mode 100644 index 0000000000000000000000000000000000000000..8dfdecfc886f0adf8e6f5236b62e208cadc41874 --- /dev/null +++ b/data/miniconda3/man/man3/Text%3A%3AParseWords.3 @@ -0,0 +1,252 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Text::ParseWords 3" +.TH Text::ParseWords 3 "2020-12-18" "perl v5.32.1" "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" +Text::ParseWords \- parse text into an array of tokens or array of arrays +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use Text::ParseWords; +\& @lists = nested_quotewords($delim, $keep, @lines); +\& @words = quotewords($delim, $keep, @lines); +\& @words = shellwords(@lines); +\& @words = parse_line($delim, $keep, $line); +\& @words = old_shellwords(@lines); # DEPRECATED! +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The &\fBnested_quotewords()\fR and &\fBquotewords()\fR functions accept a delimiter +(which can be a regular expression) +and a list of lines and then breaks those lines up into a list of +words ignoring delimiters that appear inside quotes. &\fBquotewords()\fR +returns all of the tokens in a single long list, while &\fBnested_quotewords()\fR +returns a list of token lists corresponding to the elements of \f(CW@lines\fR. +&\fBparse_line()\fR does tokenizing on a single string. The &*\fBquotewords()\fR +functions simply call &\fBparse_line()\fR, so if you're only splitting +one line you can call &\fBparse_line()\fR directly and save a function +call. +.PP +The \f(CW$keep\fR argument is a boolean flag. If true, then the tokens are +split on the specified delimiter, but all other characters (including +quotes and backslashes) are kept in the tokens. If \f(CW$keep\fR is false then the +&*\fBquotewords()\fR functions remove all quotes and backslashes that are +not themselves backslash-escaped or inside of single quotes (i.e., +&\fBquotewords()\fR tries to interpret these characters just like the Bourne +shell). \s-1NB:\s0 these semantics are significantly different from the +original version of this module shipped with Perl 5.000 through 5.004. +As an additional feature, \f(CW$keep\fR may be the keyword \*(L"delimiters\*(R" which +causes the functions to preserve the delimiters in each string as +tokens in the token lists, in addition to preserving quote and +backslash characters. +.PP +&\fBshellwords()\fR is written as a special case of &\fBquotewords()\fR, and it +does token parsing with whitespace as a delimiter\*(-- similar to most +Unix shells. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The sample program: +.PP +.Vb 7 +\& use Text::ParseWords; +\& @words = quotewords(\*(Aq\es+\*(Aq, 0, q{this is "a test" of\e quotewords \e"for you}); +\& $i = 0; +\& foreach (@words) { +\& print "$i: <$_>\en"; +\& $i++; +\& } +.Ve +.PP +produces: +.PP +.Vb 6 +\& 0: +\& 1: +\& 2: +\& 3: +\& 4: <"for> +\& 5: +.Ve +.PP +demonstrating: +.IP "0" 4 +a simple word +.IP "1" 4 +.IX Item "1" +multiple spaces are skipped because of our \f(CW$delim\fR +.IP "2" 4 +.IX Item "2" +use of quotes to include a space in a word +.IP "3" 4 +.IX Item "3" +use of a backslash to include a space in a word +.IP "4" 4 +.IX Item "4" +use of a backslash to remove the special meaning of a double-quote +.IP "5" 4 +.IX Item "5" +another simple word (note the lack of effect of the +backslashed double-quote) +.PP +Replacing \f(CW\*(C`quotewords(\*(Aq\es+\*(Aq, 0, q{this is...})\*(C'\fR +with \f(CW\*(C`shellwords(q{this is...})\*(C'\fR +is a simpler way to accomplish the same thing. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Text::CSV \- for parsing \s-1CSV\s0 files +.SH "AUTHORS" +.IX Header "AUTHORS" +Maintainer: Alexandr Ciornii . +.PP +Previous maintainer: Hal Pomeranz , 1994\-1997 (Original +author unknown). Much of the code for &\fBparse_line()\fR (including the +primary regexp) from Joerk Behrends . +.PP +Examples section another documentation provided by John Heidemann + +.PP +Bug reports, patches, and nagging provided by lots of folks\*(-- thanks +everybody! Special thanks to Michael Schwern +for assuring me that a &\fBnested_quotewords()\fR would be useful, and to +Jeff Friedl for telling me not to worry about +error-checking (sort of\*(-- you had to be there). +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Text%3A%3ATabs.3 b/data/miniconda3/man/man3/Text%3A%3ATabs.3 new file mode 100644 index 0000000000000000000000000000000000000000..25fbefba36640df475e909f6f565cf2cef07bea9 --- /dev/null +++ b/data/miniconda3/man/man3/Text%3A%3ATabs.3 @@ -0,0 +1,229 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Text::Tabs 3" +.TH Text::Tabs 3 "2020-12-18" "perl v5.32.1" "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" +Text::Tabs \- expand and unexpand tabs like unix expand(1) and unexpand(1) +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Text::Tabs; +\& +\& $tabstop = 4; # default = 8 +\& @lines_without_tabs = expand(@lines_with_tabs); +\& @lines_with_tabs = unexpand(@lines_without_tabs); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Text::Tabs does most of what the unix utilities \fBexpand\fR\|(1) and \fBunexpand\fR\|(1) +do. Given a line with tabs in it, \f(CW\*(C`expand\*(C'\fR replaces those tabs with +the appropriate number of spaces. Given a line with or without tabs in +it, \f(CW\*(C`unexpand\*(C'\fR adds tabs when it can save bytes by doing so, +like the \f(CW\*(C`unexpand \-a\*(C'\fR command. +.PP +Unlike the old unix utilities, this module correctly accounts for +any Unicode combining characters (such as diacriticals) that may occur +in each line for both expansion and unexpansion. These are overstrike +characters that do not increment the logical position. Make sure +you have the appropriate Unicode settings enabled. +.SH "EXPORTS" +.IX Header "EXPORTS" +The following are exported: +.IP "expand" 4 +.IX Item "expand" +.PD 0 +.IP "unexpand" 4 +.IX Item "unexpand" +.ie n .IP "$tabstop" 4 +.el .IP "\f(CW$tabstop\fR" 4 +.IX Item "$tabstop" +.PD +The \f(CW$tabstop\fR variable controls how many column positions apart each +tabstop is. The default is 8. +.Sp +Please note that \f(CW\*(C`local($tabstop)\*(C'\fR doesn't do the right thing and if you want +to use \f(CW\*(C`local\*(C'\fR to override \f(CW$tabstop\fR, you need to use +\&\f(CW\*(C`local($Text::Tabs::tabstop)\*(C'\fR. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +.Vb 3 +\& #!perl +\& # unexpand \-a +\& use Text::Tabs; +\& +\& while (<>) { +\& print unexpand $_; +\& } +.Ve +.PP +Instead of the shell's \f(CW\*(C`expand\*(C'\fR command, use: +.PP +.Vb 1 +\& perl \-MText::Tabs \-n \-e \*(Aqprint expand $_\*(Aq +.Ve +.PP +Instead of the shell's \f(CW\*(C`unexpand \-a\*(C'\fR command, use: +.PP +.Vb 1 +\& perl \-MText::Tabs \-n \-e \*(Aqprint unexpand $_\*(Aq +.Ve +.SH "SUBVERSION" +.IX Header "SUBVERSION" +This module comes in two flavors: one for modern perls (5.10 and above) +and one for ancient obsolete perls. The version for modern perls has +support for Unicode. The version for old perls does not. You can tell +which version you have installed by looking at \f(CW$Text::Tabs::SUBVERSION\fR: +it is \f(CW\*(C`old\*(C'\fR for obsolete perls and \f(CW\*(C`modern\*(C'\fR for current perls. +.PP +This man page is for the version for modern perls and so that's probably +what you've got. +.SH "BUGS" +.IX Header "BUGS" +Text::Tabs handles only tabs (\f(CW"\et"\fR) and combining characters (\f(CW\*(C`/\epM/\*(C'\fR). It doesn't +count backwards for backspaces (\f(CW"\et"\fR), omit other non-printing control characters (\f(CW\*(C`/\epC/\*(C'\fR), +or otherwise deal with any other zero\-, half\-, and full-width characters. +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C) 1996\-2002,2005,2006 David Muir Sharnoff. +Copyright (C) 2005 Aristotle Pagaltzis +Copyright (C) 2012\-2013 Google, Inc. +This module may be modified, used, copied, and redistributed at your own risk. +Although allowed by the preceding license, please do not publicly +redistribute modified versions of this code with the name \*(L"Text::Tabs\*(R" +unless it passes the unmodified Text::Tabs test suite. diff --git a/data/miniconda3/man/man3/Text%3A%3AWrap.3 b/data/miniconda3/man/man3/Text%3A%3AWrap.3 new file mode 100644 index 0000000000000000000000000000000000000000..b4eebdda02fa73a735ec0996b0512860d96b8adf --- /dev/null +++ b/data/miniconda3/man/man3/Text%3A%3AWrap.3 @@ -0,0 +1,313 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Text::Wrap 3" +.TH Text::Wrap 3 "2020-12-18" "perl v5.32.1" "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" +Text::Wrap \- line wrapping to form simple paragraphs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBExample 1\fR +.PP +.Vb 1 +\& use Text::Wrap; +\& +\& $initial_tab = "\et"; # Tab before first line +\& $subsequent_tab = ""; # All other lines flush left +\& +\& print wrap($initial_tab, $subsequent_tab, @text); +\& print fill($initial_tab, $subsequent_tab, @text); +\& +\& $lines = wrap($initial_tab, $subsequent_tab, @text); +\& +\& @paragraphs = fill($initial_tab, $subsequent_tab, @text); +.Ve +.PP +\&\fBExample 2\fR +.PP +.Vb 1 +\& use Text::Wrap qw(wrap $columns $huge); +\& +\& $columns = 132; # Wrap at 132 characters +\& $huge = \*(Aqdie\*(Aq; +\& $huge = \*(Aqwrap\*(Aq; +\& $huge = \*(Aqoverflow\*(Aq; +.Ve +.PP +\&\fBExample 3\fR +.PP +.Vb 1 +\& use Text::Wrap; +\& +\& $Text::Wrap::columns = 72; +\& print wrap(\*(Aq\*(Aq, \*(Aq\*(Aq, @text); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Text::Wrap::wrap()\*(C'\fR is a very simple paragraph formatter. It formats a +single paragraph at a time by breaking lines at word boundaries. +Indentation is controlled for the first line (\f(CW$initial_tab\fR) and +all subsequent lines (\f(CW$subsequent_tab\fR) independently. Please note: +\&\f(CW$initial_tab\fR and \f(CW$subsequent_tab\fR are the literal strings that will +be used: it is unlikely you would want to pass in a number. +.PP +\&\f(CW\*(C`Text::Wrap::fill()\*(C'\fR is a simple multi-paragraph formatter. It formats +each paragraph separately and then joins them together when it's done. It +will destroy any whitespace in the original text. It breaks text into +paragraphs by looking for whitespace after a newline. In other respects, +it acts like \fBwrap()\fR. +.PP +\&\f(CW\*(C`wrap()\*(C'\fR compresses trailing whitespace into one newline, and \f(CW\*(C`fill()\*(C'\fR +deletes all trailing whitespace. +.PP +Both \f(CW\*(C`wrap()\*(C'\fR and \f(CW\*(C`fill()\*(C'\fR return a single string. +.PP +Unlike the old Unix \fBfmt\fR\|(1) utility, this module correctly accounts for +any Unicode combining characters (such as diacriticals) that may occur +in each line for both expansion and unexpansion. These are overstrike +characters that do not increment the logical position. Make sure +you have the appropriate Unicode settings enabled. +.SH "OVERRIDES" +.IX Header "OVERRIDES" +\&\f(CW\*(C`Text::Wrap::wrap()\*(C'\fR has a number of variables that control its behavior. +Because other modules might be using \f(CW\*(C`Text::Wrap::wrap()\*(C'\fR it is suggested +that you leave these variables alone! If you can't do that, then +use \f(CW\*(C`local($Text::Wrap::VARIABLE) = YOURVALUE\*(C'\fR when you change the +values so that the original value is restored. This \f(CW\*(C`local()\*(C'\fR trick +will not work if you import the variable into your own namespace. +.PP +Lines are wrapped at \f(CW$Text::Wrap::columns\fR columns (default value: 76). +\&\f(CW$Text::Wrap::columns\fR should be set to the full width of your output +device. In fact, every resulting line will have length of no more than +\&\f(CW\*(C`$columns \- 1\*(C'\fR. +.PP +It is possible to control which characters terminate words by +modifying \f(CW$Text::Wrap::break\fR. Set this to a string such as +\&\f(CW\*(Aq[\es:]\*(Aq\fR (to break before spaces or colons) or a pre-compiled regexp +such as \f(CW\*(C`qr/[\es\*(Aq]/\*(C'\fR (to break before spaces or apostrophes). The +default is simply \f(CW\*(Aq\es\*(Aq\fR; that is, words are terminated by spaces. +(This means, among other things, that trailing punctuation such as +full stops or commas stay with the word they are \*(L"attached\*(R" to.) +Setting \f(CW$Text::Wrap::break\fR to a regular expression that doesn't +eat any characters (perhaps just a forward look-ahead assertion) will +cause warnings. +.PP +Beginner note: In example 2, above \f(CW$columns\fR is imported into +the local namespace, and set locally. In example 3, +\&\f(CW$Text::Wrap::columns\fR is set in its own namespace without importing it. +.PP +\&\f(CW\*(C`Text::Wrap::wrap()\*(C'\fR starts its work by expanding all the tabs in its +input into spaces. The last thing it does it to turn spaces back +into tabs. If you do not want tabs in your results, set +\&\f(CW$Text::Wrap::unexpand\fR to a false value. Likewise if you do not +want to use 8\-character tabstops, set \f(CW$Text::Wrap::tabstop\fR to +the number of characters you do want for your tabstops. +.PP +If you want to separate your lines with something other than \f(CW\*(C`\en\*(C'\fR +then set \f(CW$Text::Wrap::separator\fR to your preference. This replaces +all newlines with \f(CW$Text::Wrap::separator\fR. If you just want to +preserve existing newlines but add new breaks with something else, set +\&\f(CW$Text::Wrap::separator2\fR instead. +.PP +When words that are longer than \f(CW$columns\fR are encountered, they +are broken up. \f(CW\*(C`wrap()\*(C'\fR adds a \f(CW"\en"\fR at column \f(CW$columns\fR. +This behavior can be overridden by setting \f(CW$huge\fR to +\&'die' or to 'overflow'. When set to 'die', large words will cause +\&\f(CW\*(C`die()\*(C'\fR to be called. When set to 'overflow', large words will be +left intact. +.PP +Historical notes: 'die' used to be the default value of +\&\f(CW$huge\fR. Now, 'wrap' is the default value. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Code: +.PP +.Vb 4 +\& print wrap("\et","",< with help from Tim Pierce and +many many others. +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C) 1996\-2009 David Muir Sharnoff. +Copyright (C) 2012\-2013 Google, Inc. +This module may be modified, used, copied, and redistributed at your own risk. +Although allowed by the preceding license, please do not publicly +redistribute modified versions of this code with the name \*(L"Text::Wrap\*(R" +unless it passes the unmodified Text::Wrap test suite. diff --git a/data/miniconda3/man/man3/Thread%3A%3AQueue.3 b/data/miniconda3/man/man3/Thread%3A%3AQueue.3 new file mode 100644 index 0000000000000000000000000000000000000000..8f89f31fb7c6d6f62ed7f9ff8cf840c14935a6b4 --- /dev/null +++ b/data/miniconda3/man/man3/Thread%3A%3AQueue.3 @@ -0,0 +1,473 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Thread::Queue 3" +.TH Thread::Queue 3 "2020-12-18" "perl v5.32.1" "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" +Thread::Queue \- Thread\-safe queues +.SH "VERSION" +.IX Header "VERSION" +This document describes Thread::Queue version 3.14 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use strict; +\& use warnings; +\& +\& use threads; +\& use Thread::Queue; +\& +\& my $q = Thread::Queue\->new(); # A new empty queue +\& +\& # Worker thread +\& my $thr = threads\->create( +\& sub { +\& # Thread will loop until no more work +\& while (defined(my $item = $q\->dequeue())) { +\& # Do work on $item +\& ... +\& } +\& } +\& ); +\& +\& # Send work to the thread +\& $q\->enqueue($item1, ...); +\& # Signal that there is no more work to be sent +\& $q\->end(); +\& # Join up with the thread when it finishes +\& $thr\->join(); +\& +\& ... +\& +\& # Count of items in the queue +\& my $left = $q\->pending(); +\& +\& # Non\-blocking dequeue +\& if (defined(my $item = $q\->dequeue_nb())) { +\& # Work on $item +\& } +\& +\& # Blocking dequeue with 5\-second timeout +\& if (defined(my $item = $q\->dequeue_timed(5))) { +\& # Work on $item +\& } +\& +\& # Set a size for a queue +\& $q\->limit = 5; +\& +\& # Get the second item in the queue without dequeuing anything +\& my $item = $q\->peek(1); +\& +\& # Insert two items into the queue just behind the head +\& $q\->insert(1, $item1, $item2); +\& +\& # Extract the last two items on the queue +\& my ($item1, $item2) = $q\->extract(\-2, 2); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides thread-safe \s-1FIFO\s0 queues that can be accessed safely by +any number of threads. +.PP +Any data types supported by threads::shared can be passed via queues: +.IP "Ordinary scalars" 4 +.IX Item "Ordinary scalars" +.PD 0 +.IP "Array refs" 4 +.IX Item "Array refs" +.IP "Hash refs" 4 +.IX Item "Hash refs" +.IP "Scalar refs" 4 +.IX Item "Scalar refs" +.IP "Objects based on the above" 4 +.IX Item "Objects based on the above" +.PD +.PP +Ordinary scalars are added to queues as they are. +.PP +If not already thread-shared, the other complex data types will be cloned +(recursively, if needed, and including any \f(CW\*(C`bless\*(C'\fRings and read-only +settings) into thread-shared structures before being placed onto a queue. +.PP +For example, the following would cause Thread::Queue to create a empty, +shared array reference via \f(CW\*(C`&shared([])\*(C'\fR, copy the elements 'foo', 'bar' +and 'baz' from \f(CW@ary\fR into it, and then place that shared reference onto +the queue: +.PP +.Vb 2 +\& my @ary = qw/foo bar baz/; +\& $q\->enqueue(\e@ary); +.Ve +.PP +However, for the following, the items are already shared, so their references +are added directly to the queue, and no cloning takes place: +.PP +.Vb 2 +\& my @ary :shared = qw/foo bar baz/; +\& $q\->enqueue(\e@ary); +\& +\& my $obj = &shared({}); +\& $$obj{\*(Aqfoo\*(Aq} = \*(Aqbar\*(Aq; +\& $$obj{\*(Aqqux\*(Aq} = 99; +\& bless($obj, \*(AqMy::Class\*(Aq); +\& $q\->enqueue($obj); +.Ve +.PP +See \*(L"\s-1LIMITATIONS\*(R"\s0 for caveats related to passing objects via queues. +.SH "QUEUE CREATION" +.IX Header "QUEUE CREATION" +.IP "\->\fBnew()\fR" 4 +.IX Item "->new()" +Creates a new empty queue. +.IP "\->new(\s-1LIST\s0)" 4 +.IX Item "->new(LIST)" +Creates a new queue pre-populated with the provided list of items. +.SH "BASIC METHODS" +.IX Header "BASIC METHODS" +The following methods deal with queues on a \s-1FIFO\s0 basis. +.IP "\->enqueue(\s-1LIST\s0)" 4 +.IX Item "->enqueue(LIST)" +Adds a list of items onto the end of the queue. +.IP "\->\fBdequeue()\fR" 4 +.IX Item "->dequeue()" +.PD 0 +.IP "\->dequeue(\s-1COUNT\s0)" 4 +.IX Item "->dequeue(COUNT)" +.PD +Removes the requested number of items (default is 1) from the head of the +queue, and returns them. If the queue contains fewer than the requested +number of items, then the thread will be blocked until the requisite number +of items are available (i.e., until other threads \f(CW\*(C`enqueue\*(C'\fR more items). +.IP "\->\fBdequeue_nb()\fR" 4 +.IX Item "->dequeue_nb()" +.PD 0 +.IP "\->dequeue_nb(\s-1COUNT\s0)" 4 +.IX Item "->dequeue_nb(COUNT)" +.PD +Removes the requested number of items (default is 1) from the head of the +queue, and returns them. If the queue contains fewer than the requested +number of items, then it immediately (i.e., non-blocking) returns whatever +items there are on the queue. If the queue is empty, then \f(CW\*(C`undef\*(C'\fR is +returned. +.IP "\->dequeue_timed(\s-1TIMEOUT\s0)" 4 +.IX Item "->dequeue_timed(TIMEOUT)" +.PD 0 +.IP "\->dequeue_timed(\s-1TIMEOUT, COUNT\s0)" 4 +.IX Item "->dequeue_timed(TIMEOUT, COUNT)" +.PD +Removes the requested number of items (default is 1) from the head of the +queue, and returns them. If the queue contains fewer than the requested +number of items, then the thread will be blocked until the requisite number of +items are available, or until the timeout is reached. If the timeout is +reached, it returns whatever items there are on the queue, or \f(CW\*(C`undef\*(C'\fR if the +queue is empty. +.Sp +The timeout may be a number of seconds relative to the current time (e.g., 5 +seconds from when the call is made), or may be an absolute timeout in \fIepoch\fR +seconds the same as would be used with +\&\fBcond_timedwait()\fR. +Fractional seconds (e.g., 2.5 seconds) are also supported (to the extent of +the underlying implementation). +.Sp +If \f(CW\*(C`TIMEOUT\*(C'\fR is missing, \f(CW\*(C`undef\*(C'\fR, or less than or equal to 0, then this call +behaves the same as \f(CW\*(C`dequeue_nb\*(C'\fR. +.IP "\->\fBpending()\fR" 4 +.IX Item "->pending()" +Returns the number of items still in the queue. Returns \f(CW\*(C`undef\*(C'\fR if the queue +has been ended (see below), and there are no more items in the queue. +.IP "\->limit" 4 +.IX Item "->limit" +Sets the size of the queue. If set, calls to \f(CW\*(C`enqueue()\*(C'\fR will block until +the number of pending items in the queue drops below the \f(CW\*(C`limit\*(C'\fR. The +\&\f(CW\*(C`limit\*(C'\fR does not prevent enqueuing items beyond that count: +.Sp +.Vb 8 +\& my $q = Thread::Queue\->new(1, 2); +\& $q\->limit = 4; +\& $q\->enqueue(3, 4, 5); # Does not block +\& $q\->enqueue(6); # Blocks until at least 2 items are +\& # dequeued +\& my $size = $q\->limit; # Returns the current limit (may return +\& # \*(Aqundef\*(Aq) +\& $q\->limit = 0; # Queue size is now unlimited +.Ve +.Sp +Calling any of the dequeue methods with \f(CW\*(C`COUNT\*(C'\fR greater than a queue's +\&\f(CW\*(C`limit\*(C'\fR will generate an error. +.IP "\->\fBend()\fR" 4 +.IX Item "->end()" +Declares that no more items will be added to the queue. +.Sp +All threads blocking on \f(CW\*(C`dequeue()\*(C'\fR calls will be unblocked with any +remaining items in the queue and/or \f(CW\*(C`undef\*(C'\fR being returned. Any subsequent +calls to \f(CW\*(C`dequeue()\*(C'\fR will behave like \f(CW\*(C`dequeue_nb()\*(C'\fR. +.Sp +Once ended, no more items may be placed in the queue. +.SH "ADVANCED METHODS" +.IX Header "ADVANCED METHODS" +The following methods can be used to manipulate items anywhere in a queue. +.PP +To prevent the contents of a queue from being modified by another thread +while it is being examined and/or changed, lock the queue inside a local block: +.PP +.Vb 8 +\& { +\& lock($q); # Keep other threads from changing the queue\*(Aqs contents +\& my $item = $q\->peek(); +\& if ($item ...) { +\& ... +\& } +\& } +\& # Queue is now unlocked +.Ve +.IP "\->\fBpeek()\fR" 4 +.IX Item "->peek()" +.PD 0 +.IP "\->peek(\s-1INDEX\s0)" 4 +.IX Item "->peek(INDEX)" +.PD +Returns an item from the queue without dequeuing anything. Defaults to the +head of queue (at index position 0) if no index is specified. Negative +index values are supported as with arrays (i.e., \-1 +is the end of the queue, \-2 is next to last, and so on). +.Sp +If no items exists at the specified index (i.e., the queue is empty, or the +index is beyond the number of items on the queue), then \f(CW\*(C`undef\*(C'\fR is returned. +.Sp +Remember, the returned item is not removed from the queue, so manipulating a +\&\f(CW\*(C`peek\*(C'\fRed at reference affects the item on the queue. +.IP "\->insert(\s-1INDEX, LIST\s0)" 4 +.IX Item "->insert(INDEX, LIST)" +Adds the list of items to the queue at the specified index position (0 +is the head of the list). Any existing items at and beyond that position are +pushed back past the newly added items: +.Sp +.Vb 3 +\& $q\->enqueue(1, 2, 3, 4); +\& $q\->insert(1, qw/foo bar/); +\& # Queue now contains: 1, foo, bar, 2, 3, 4 +.Ve +.Sp +Specifying an index position greater than the number of items in the queue +just adds the list to the end. +.Sp +Negative index positions are supported: +.Sp +.Vb 3 +\& $q\->enqueue(1, 2, 3, 4); +\& $q\->insert(\-2, qw/foo bar/); +\& # Queue now contains: 1, 2, foo, bar, 3, 4 +.Ve +.Sp +Specifying a negative index position greater than the number of items in the +queue adds the list to the head of the queue. +.IP "\->\fBextract()\fR" 4 +.IX Item "->extract()" +.PD 0 +.IP "\->extract(\s-1INDEX\s0)" 4 +.IX Item "->extract(INDEX)" +.IP "\->extract(\s-1INDEX, COUNT\s0)" 4 +.IX Item "->extract(INDEX, COUNT)" +.PD +Removes and returns the specified number of items (defaults to 1) from the +specified index position in the queue (0 is the head of the queue). When +called with no arguments, \f(CW\*(C`extract\*(C'\fR operates the same as \f(CW\*(C`dequeue_nb\*(C'\fR. +.Sp +This method is non-blocking, and will return only as many items as are +available to fulfill the request: +.Sp +.Vb 5 +\& $q\->enqueue(1, 2, 3, 4); +\& my $item = $q\->extract(2) # Returns 3 +\& # Queue now contains: 1, 2, 4 +\& my @items = $q\->extract(1, 3) # Returns (2, 4) +\& # Queue now contains: 1 +.Ve +.Sp +Specifying an index position greater than the number of items in the +queue results in \f(CW\*(C`undef\*(C'\fR or an empty list being returned. +.Sp +.Vb 3 +\& $q\->enqueue(\*(Aqfoo\*(Aq); +\& my $nada = $q\->extract(3) # Returns undef +\& my @nada = $q\->extract(1, 3) # Returns () +.Ve +.Sp +Negative index positions are supported. Specifying a negative index position +greater than the number of items in the queue may return items from the head +of the queue (similar to \f(CW\*(C`dequeue_nb\*(C'\fR) if the count overlaps the head of the +queue from the specified position (i.e. if queue size + index + count is +greater than zero): +.Sp +.Vb 6 +\& $q\->enqueue(qw/foo bar baz/); +\& my @nada = $q\->extract(\-6, 2); # Returns () \- (3+(\-6)+2) <= 0 +\& my @some = $q\->extract(\-6, 4); # Returns (foo) \- (3+(\-6)+4) > 0 +\& # Queue now contains: bar, baz +\& my @rest = $q\->extract(\-3, 4); # Returns (bar, baz) \- +\& # (2+(\-3)+4) > 0 +.Ve +.SH "NOTES" +.IX Header "NOTES" +Queues created by Thread::Queue can be used in both threaded and +non-threaded applications. +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +Passing objects on queues may not work if the objects' classes do not support +sharing. See \*(L"\s-1BUGS AND LIMITATIONS\*(R"\s0 in threads::shared for more. +.PP +Passing array/hash refs that contain objects may not work for Perl prior to +5.10.0. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Thread::Queue on MetaCPAN: + +.PP +Code repository for \s-1CPAN\s0 distribution: + +.PP +threads, threads::shared +.PP +Sample code in the \fIexamples\fR directory of this distribution on \s-1CPAN.\s0 +.SH "MAINTAINER" +.IX Header "MAINTAINER" +Jerry D. Hedden, +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Thread%3A%3ASemaphore.3 b/data/miniconda3/man/man3/Thread%3A%3ASemaphore.3 new file mode 100644 index 0000000000000000000000000000000000000000..965983cd68392b27f0aecc90454a205e4fc5a907 --- /dev/null +++ b/data/miniconda3/man/man3/Thread%3A%3ASemaphore.3 @@ -0,0 +1,293 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Thread::Semaphore 3" +.TH Thread::Semaphore 3 "2020-12-18" "perl v5.32.1" "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" +Thread::Semaphore \- Thread\-safe semaphores +.SH "VERSION" +.IX Header "VERSION" +This document describes Thread::Semaphore version 2.13 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use Thread::Semaphore; +\& my $s = Thread::Semaphore\->new(); +\& $s\->down(); # Also known as the semaphore P operation. +\& # The guarded section is here +\& $s\->up(); # Also known as the semaphore V operation. +\& +\& # Decrement the semaphore only if it would immediately succeed. +\& if ($s\->down_nb()) { +\& # The guarded section is here +\& $s\->up(); +\& } +\& +\& # Forcefully decrement the semaphore even if its count goes below 0. +\& $s\->down_force(); +\& +\& # The default value for semaphore operations is 1 +\& my $s = Thread::Semaphore\->new($initial_value); +\& $s\->down($down_value); +\& $s\->up($up_value); +\& if ($s\->down_nb($down_value)) { +\& ... +\& $s\->up($up_value); +\& } +\& $s\->down_force($down_value); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Semaphores provide a mechanism to regulate access to resources. Unlike +locks, semaphores aren't tied to particular scalars, and so may be used to +control access to anything you care to use them for. +.PP +Semaphores don't limit their values to zero and one, so they can be used to +control access to some resource that there may be more than one of (e.g., +filehandles). Increment and decrement amounts aren't fixed at one either, +so threads can reserve or return multiple resources at once. +.SH "METHODS" +.IX Header "METHODS" +.IP "\->\fBnew()\fR" 8 +.IX Item "->new()" +.PD 0 +.IP "\->new(\s-1NUMBER\s0)" 8 +.IX Item "->new(NUMBER)" +.PD +\&\f(CW\*(C`new\*(C'\fR creates a new semaphore, and initializes its count to the specified +number (which must be an integer). If no number is specified, the +semaphore's count defaults to 1. +.IP "\->\fBdown()\fR" 8 +.IX Item "->down()" +.PD 0 +.IP "\->down(\s-1NUMBER\s0)" 8 +.IX Item "->down(NUMBER)" +.PD +The \f(CW\*(C`down\*(C'\fR method decreases the semaphore's count by the specified number +(which must be an integer >= 1), or by one if no number is specified. +.Sp +If the semaphore's count would drop below zero, this method will block +until such time as the semaphore's count is greater than or equal to the +amount you're \f(CW\*(C`down\*(C'\fRing the semaphore's count by. +.Sp +This is the semaphore \*(L"P operation\*(R" (the name derives from the Dutch +word \*(L"pak\*(R", which means \*(L"capture\*(R" \*(-- the semaphore operations were +named by the late Dijkstra, who was Dutch). +.IP "\->\fBdown_nb()\fR" 8 +.IX Item "->down_nb()" +.PD 0 +.IP "\->down_nb(\s-1NUMBER\s0)" 8 +.IX Item "->down_nb(NUMBER)" +.PD +The \f(CW\*(C`down_nb\*(C'\fR method attempts to decrease the semaphore's count by the +specified number (which must be an integer >= 1), or by one if no number +is specified. +.Sp +If the semaphore's count would drop below zero, this method will return +\&\fIfalse\fR, and the semaphore's count remains unchanged. Otherwise, the +semaphore's count is decremented and this method returns \fItrue\fR. +.IP "\->\fBdown_force()\fR" 8 +.IX Item "->down_force()" +.PD 0 +.IP "\->down_force(\s-1NUMBER\s0)" 8 +.IX Item "->down_force(NUMBER)" +.PD +The \f(CW\*(C`down_force\*(C'\fR method decreases the semaphore's count by the specified +number (which must be an integer >= 1), or by one if no number is specified. +This method does not block, and may cause the semaphore's count to drop +below zero. +.IP "\->down_timed(\s-1TIMEOUT\s0)" 8 +.IX Item "->down_timed(TIMEOUT)" +.PD 0 +.IP "\->down_timed(\s-1TIMEOUT, NUMBER\s0)" 8 +.IX Item "->down_timed(TIMEOUT, NUMBER)" +.PD +The \f(CW\*(C`down_timed\*(C'\fR method attempts to decrease the semaphore's count by 1 +or by the specified number within the specified timeout period given in +seconds (which must be an integer >= 0). +.Sp +If the semaphore's count would drop below zero, this method will block +until either the semaphore's count is greater than or equal to the +amount you're \f(CW\*(C`down\*(C'\fRing the semaphore's count by, or until the timeout is +reached. +.Sp +If the timeout is reached, this method will return \fIfalse\fR, and the +semaphore's count remains unchanged. Otherwise, the semaphore's count is +decremented and this method returns \fItrue\fR. +.IP "\->\fBup()\fR" 8 +.IX Item "->up()" +.PD 0 +.IP "\->up(\s-1NUMBER\s0)" 8 +.IX Item "->up(NUMBER)" +.PD +The \f(CW\*(C`up\*(C'\fR method increases the semaphore's count by the number specified +(which must be an integer >= 1), or by one if no number is specified. +.Sp +This will unblock any thread that is blocked trying to \f(CW\*(C`down\*(C'\fR the +semaphore if the \f(CW\*(C`up\*(C'\fR raises the semaphore's count above the amount that +the \f(CW\*(C`down\*(C'\fR is trying to decrement it by. For example, if three threads +are blocked trying to \f(CW\*(C`down\*(C'\fR a semaphore by one, and another thread \f(CW\*(C`up\*(C'\fRs +the semaphore by two, then two of the blocked threads (which two is +indeterminate) will become unblocked. +.Sp +This is the semaphore \*(L"V operation\*(R" (the name derives from the Dutch +word \*(L"vrij\*(R", which means \*(L"release\*(R"). +.SH "NOTES" +.IX Header "NOTES" +Semaphores created by Thread::Semaphore can be used in both threaded and +non-threaded applications. This allows you to write modules and packages +that potentially make use of semaphores, and that will function in either +environment. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Thread::Semaphore on MetaCPAN: + +.PP +Code repository for \s-1CPAN\s0 distribution: + +.PP +threads, threads::shared +.PP +Sample code in the \fIexamples\fR directory of this distribution on \s-1CPAN.\s0 +.SH "MAINTAINER" +.IX Header "MAINTAINER" +Jerry D. Hedden, +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Thread.3 b/data/miniconda3/man/man3/Thread.3 new file mode 100644 index 0000000000000000000000000000000000000000..a6b52e82a08575c6c3b625c735760f6a505ac1ab --- /dev/null +++ b/data/miniconda3/man/man3/Thread.3 @@ -0,0 +1,346 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Thread 3" +.TH Thread 3 "2020-12-18" "perl v5.32.1" "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" +Thread \- Manipulate threads in Perl (for old code only) +.SH "DEPRECATED" +.IX Header "DEPRECATED" +The \f(CW\*(C`Thread\*(C'\fR module served as the frontend to the old-style thread model, +called \fI5005threads\fR, that was introduced in release 5.005. That model was +deprecated, and has been removed in version 5.10. +.PP +For old code and interim backwards compatibility, the \f(CW\*(C`Thread\*(C'\fR module has +been reworked to function as a frontend for the new interpreter threads +(\fIithreads\fR) model. However, some previous functionality is not available. +Further, the data sharing models between the two thread models are completely +different, and anything to do with data sharing has to be thought differently. +With \fIithreads\fR, you must explicitly \f(CW\*(C`share()\*(C'\fR variables between the +threads. +.PP +You are strongly encouraged to migrate any existing threaded code to the new +model (i.e., use the \f(CW\*(C`threads\*(C'\fR and \f(CW\*(C`threads::shared\*(C'\fR modules) as soon as +possible. +.SH "HISTORY" +.IX Header "HISTORY" +In Perl 5.005, the thread model was that all data is implicitly shared, and +shared access to data has to be explicitly synchronized. This model is called +\&\fI5005threads\fR. +.PP +In Perl 5.6, a new model was introduced in which all is was thread local and +shared access to data has to be explicitly declared. This model is called +\&\fIithreads\fR, for \*(L"interpreter threads\*(R". +.PP +In Perl 5.6, the \fIithreads\fR model was not available as a public \s-1API\s0; only as +an internal \s-1API\s0 that was available for extension writers, and to implement +\&\fBfork()\fR emulation on Win32 platforms. +.PP +In Perl 5.8, the \fIithreads\fR model became available through the \f(CW\*(C`threads\*(C'\fR +module, and the \fI5005threads\fR model was deprecated. +.PP +In Perl 5.10, the \fI5005threads\fR model was removed from the Perl interpreter. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Thread qw(:DEFAULT async yield); +\& +\& my $t = Thread\->new(\e&start_sub, @start_args); +\& +\& $result = $t\->join; +\& $t\->detach; +\& +\& if ($t\->done) { +\& $t\->join; +\& } +\& +\& if($t\->equal($another_thread)) { +\& # ... +\& } +\& +\& yield(); +\& +\& my $tid = Thread\->self\->tid; +\& +\& lock($scalar); +\& lock(@array); +\& lock(%hash); +\& +\& my @list = Thread\->list; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Thread\*(C'\fR module provides multithreading support for Perl. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .IP "$thread = Thread\->new(\e&start_sub)" 8 +.el .IP "\f(CW$thread\fR = Thread\->new(\e&start_sub)" 8 +.IX Item "$thread = Thread->new(&start_sub)" +.PD 0 +.ie n .IP "$thread = Thread\->new(\e&start_sub, \s-1LIST\s0)" 8 +.el .IP "\f(CW$thread\fR = Thread\->new(\e&start_sub, \s-1LIST\s0)" 8 +.IX Item "$thread = Thread->new(&start_sub, LIST)" +.PD +\&\f(CW\*(C`new\*(C'\fR starts a new thread of execution in the referenced subroutine. The +optional list is passed as parameters to the subroutine. Execution +continues in both the subroutine and the code after the \f(CW\*(C`new\*(C'\fR call. +.Sp +\&\f(CW\*(C`Thread\->new\*(C'\fR returns a thread object representing the newly created +thread. +.IP "lock \s-1VARIABLE\s0" 8 +.IX Item "lock VARIABLE" +\&\f(CW\*(C`lock\*(C'\fR places a lock on a variable until the lock goes out of scope. +.Sp +If the variable is locked by another thread, the \f(CW\*(C`lock\*(C'\fR call will +block until it's available. \f(CW\*(C`lock\*(C'\fR is recursive, so multiple calls +to \f(CW\*(C`lock\*(C'\fR are safe\*(--the variable will remain locked until the +outermost lock on the variable goes out of scope. +.Sp +Locks on variables only affect \f(CW\*(C`lock\*(C'\fR calls\*(--they do \fInot\fR affect normal +access to a variable. (Locks on subs are different, and covered in a bit.) +If you really, \fIreally\fR want locks to block access, then go ahead and tie +them to something and manage this yourself. This is done on purpose. +While managing access to variables is a good thing, Perl doesn't force +you out of its living room... +.Sp +If a container object, such as a hash or array, is locked, all the +elements of that container are not locked. For example, if a thread +does a \f(CW\*(C`lock @a\*(C'\fR, any other thread doing a \f(CW\*(C`lock($a[12])\*(C'\fR won't +block. +.Sp +Finally, \f(CW\*(C`lock\*(C'\fR will traverse up references exactly \fIone\fR level. +\&\f(CW\*(C`lock(\e$a)\*(C'\fR is equivalent to \f(CW\*(C`lock($a)\*(C'\fR, while \f(CW\*(C`lock(\e\e$a)\*(C'\fR is not. +.IP "async \s-1BLOCK\s0;" 8 +.IX Item "async BLOCK;" +\&\f(CW\*(C`async\*(C'\fR creates a thread to execute the block immediately following +it. This block is treated as an anonymous sub, and so must have a +semi-colon after the closing brace. Like \f(CW\*(C`Thread\->new\*(C'\fR, \f(CW\*(C`async\*(C'\fR +returns a thread object. +.IP "Thread\->self" 8 +.IX Item "Thread->self" +The \f(CW\*(C`Thread\->self\*(C'\fR function returns a thread object that represents +the thread making the \f(CW\*(C`Thread\->self\*(C'\fR call. +.IP "Thread\->list" 8 +.IX Item "Thread->list" +Returns a list of all non-joined, non-detached Thread objects. +.IP "cond_wait \s-1VARIABLE\s0" 8 +.IX Item "cond_wait VARIABLE" +The \f(CW\*(C`cond_wait\*(C'\fR function takes a \fBlocked\fR variable as +a parameter, unlocks the variable, and blocks until another thread +does a \f(CW\*(C`cond_signal\*(C'\fR or \f(CW\*(C`cond_broadcast\*(C'\fR for that same locked +variable. The variable that \f(CW\*(C`cond_wait\*(C'\fR blocked on is relocked +after the \f(CW\*(C`cond_wait\*(C'\fR is satisfied. If there are multiple threads +\&\f(CW\*(C`cond_wait\*(C'\fRing on the same variable, all but one will reblock waiting +to re-acquire the lock on the variable. (So if you're only using +\&\f(CW\*(C`cond_wait\*(C'\fR for synchronization, give up the lock as soon as +possible.) +.IP "cond_signal \s-1VARIABLE\s0" 8 +.IX Item "cond_signal VARIABLE" +The \f(CW\*(C`cond_signal\*(C'\fR function takes a locked variable as a parameter and +unblocks one thread that's \f(CW\*(C`cond_wait\*(C'\fRing on that variable. If more than +one thread is blocked in a \f(CW\*(C`cond_wait\*(C'\fR on that variable, only one (and +which one is indeterminate) will be unblocked. +.Sp +If there are no threads blocked in a \f(CW\*(C`cond_wait\*(C'\fR on the variable, +the signal is discarded. +.IP "cond_broadcast \s-1VARIABLE\s0" 8 +.IX Item "cond_broadcast VARIABLE" +The \f(CW\*(C`cond_broadcast\*(C'\fR function works similarly to \f(CW\*(C`cond_signal\*(C'\fR. +\&\f(CW\*(C`cond_broadcast\*(C'\fR, though, will unblock \fBall\fR the threads that are +blocked in a \f(CW\*(C`cond_wait\*(C'\fR on the locked variable, rather than only +one. +.IP "yield" 8 +.IX Item "yield" +The \f(CW\*(C`yield\*(C'\fR function allows another thread to take control of the +\&\s-1CPU.\s0 The exact results are implementation-dependent. +.SH "METHODS" +.IX Header "METHODS" +.IP "join" 8 +.IX Item "join" +\&\f(CW\*(C`join\*(C'\fR waits for a thread to end and returns any values the thread +exited with. \f(CW\*(C`join\*(C'\fR will block until the thread has ended, though +it won't block if the thread has already terminated. +.Sp +If the thread being \f(CW\*(C`join\*(C'\fRed \f(CW\*(C`die\*(C'\fRd, the error it died with will +be returned at this time. If you don't want the thread performing +the \f(CW\*(C`join\*(C'\fR to die as well, you should either wrap the \f(CW\*(C`join\*(C'\fR in +an \f(CW\*(C`eval\*(C'\fR or use the \f(CW\*(C`eval\*(C'\fR thread method instead of \f(CW\*(C`join\*(C'\fR. +.IP "detach" 8 +.IX Item "detach" +\&\f(CW\*(C`detach\*(C'\fR tells a thread that it is never going to be joined i.e. +that all traces of its existence can be removed once it stops running. +Errors in detached threads will not be visible anywhere \- if you want +to catch them, you should use \f(CW$SIG\fR{_\|_DIE_\|_} or something like that. +.IP "equal" 8 +.IX Item "equal" +\&\f(CW\*(C`equal\*(C'\fR tests whether two thread objects represent the same thread and +returns true if they do. +.IP "tid" 8 +.IX Item "tid" +The \f(CW\*(C`tid\*(C'\fR method returns the tid of a thread. The tid is +a monotonically increasing integer assigned when a thread is +created. The main thread of a program will have a tid of zero, +while subsequent threads will have tids assigned starting with one. +.IP "done" 8 +.IX Item "done" +The \f(CW\*(C`done\*(C'\fR method returns true if the thread you're checking has +finished, and false otherwise. +.SH "DEFUNCT" +.IX Header "DEFUNCT" +The following were implemented with \fI5005threads\fR, but are no longer +available with \fIithreads\fR. +.IP "lock(\e&sub)" 8 +.IX Item "lock(&sub)" +With 5005threads, you could also \f(CW\*(C`lock\*(C'\fR a sub such that any calls to that sub +from another thread would block until the lock was released. +.Sp +Also, subroutines could be declared with the \f(CW\*(C`:locked\*(C'\fR attribute which would +serialize access to the subroutine, but allowed different threads +non-simultaneous access. +.IP "eval" 8 +.IX Item "eval" +The \f(CW\*(C`eval\*(C'\fR method wrapped an \f(CW\*(C`eval\*(C'\fR around a \f(CW\*(C`join\*(C'\fR, and so waited for a +thread to exit, passing along any values the thread might have returned and +placing any errors into \f(CW$@\fR. +.IP "flags" 8 +.IX Item "flags" +The \f(CW\*(C`flags\*(C'\fR method returned the flags for the thread \- an integer value +corresponding to the internal flags for the thread. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +threads, threads::shared, Thread::Queue, Thread::Semaphore diff --git a/data/miniconda3/man/man3/Tie%3A%3AArray.3 b/data/miniconda3/man/man3/Tie%3A%3AArray.3 new file mode 100644 index 0000000000000000000000000000000000000000..9295140021c49cf74d6f88e1fbe51b03cc8021fb --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AArray.3 @@ -0,0 +1,283 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Array 3" +.TH Tie::Array 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Array \- base class for tied arrays +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& package Tie::NewArray; +\& use Tie::Array; +\& @ISA = (\*(AqTie::Array\*(Aq); +\& +\& # mandatory methods +\& sub TIEARRAY { ... } +\& sub FETCH { ... } +\& sub FETCHSIZE { ... } +\& +\& sub STORE { ... } # mandatory if elements writeable +\& sub STORESIZE { ... } # mandatory if elements can be added/deleted +\& sub EXISTS { ... } # mandatory if exists() expected to work +\& sub DELETE { ... } # mandatory if delete() expected to work +\& +\& # optional methods \- for efficiency +\& sub CLEAR { ... } +\& sub PUSH { ... } +\& sub POP { ... } +\& sub SHIFT { ... } +\& sub UNSHIFT { ... } +\& sub SPLICE { ... } +\& sub EXTEND { ... } +\& sub DESTROY { ... } +\& +\& package Tie::NewStdArray; +\& use Tie::Array; +\& +\& @ISA = (\*(AqTie::StdArray\*(Aq); +\& +\& # all methods provided by default +\& +\& package main; +\& +\& $object = tie @somearray,\*(AqTie::NewArray\*(Aq; +\& $object = tie @somearray,\*(AqTie::StdArray\*(Aq; +\& $object = tie @somearray,\*(AqTie::NewStdArray\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides methods for array-tying classes. See +perltie for a list of the functions required in order to tie an array +to a package. The basic \fBTie::Array\fR package provides stub \f(CW\*(C`DESTROY\*(C'\fR, +and \f(CW\*(C`EXTEND\*(C'\fR methods that do nothing, stub \f(CW\*(C`DELETE\*(C'\fR and \f(CW\*(C`EXISTS\*(C'\fR +methods that \fBcroak()\fR if the \fBdelete()\fR or \fBexists()\fR builtins are ever called +on the tied array, and implementations of \f(CW\*(C`PUSH\*(C'\fR, \f(CW\*(C`POP\*(C'\fR, \f(CW\*(C`SHIFT\*(C'\fR, +\&\f(CW\*(C`UNSHIFT\*(C'\fR, \f(CW\*(C`SPLICE\*(C'\fR and \f(CW\*(C`CLEAR\*(C'\fR in terms of basic \f(CW\*(C`FETCH\*(C'\fR, \f(CW\*(C`STORE\*(C'\fR, +\&\f(CW\*(C`FETCHSIZE\*(C'\fR, \f(CW\*(C`STORESIZE\*(C'\fR. +.PP +The \fBTie::StdArray\fR package provides efficient methods required for tied arrays +which are implemented as blessed references to an \*(L"inner\*(R" perl array. +It inherits from \fBTie::Array\fR, and should cause tied arrays to behave exactly +like standard arrays, allowing for selective overloading of methods. +.PP +For developers wishing to write their own tied arrays, the required methods +are briefly defined below. See the perltie section for more detailed +descriptive, as well as example code: +.IP "\s-1TIEARRAY\s0 classname, \s-1LIST\s0" 4 +.IX Item "TIEARRAY classname, LIST" +The class method is invoked by the command \f(CW\*(C`tie @array, classname\*(C'\fR. Associates +an array instance with the specified class. \f(CW\*(C`LIST\*(C'\fR would represent +additional arguments (along the lines of AnyDBM_File and compatriots) needed +to complete the association. The method should return an object of a class which +provides the methods below. +.IP "\s-1STORE\s0 this, index, value" 4 +.IX Item "STORE this, index, value" +Store datum \fIvalue\fR into \fIindex\fR for the tied array associated with +object \fIthis\fR. If this makes the array larger then +class's mapping of \f(CW\*(C`undef\*(C'\fR should be returned for new positions. +.IP "\s-1FETCH\s0 this, index" 4 +.IX Item "FETCH this, index" +Retrieve the datum in \fIindex\fR for the tied array associated with +object \fIthis\fR. +.IP "\s-1FETCHSIZE\s0 this" 4 +.IX Item "FETCHSIZE this" +Returns the total number of items in the tied array associated with +object \fIthis\fR. (Equivalent to \f(CW\*(C`scalar(@array)\*(C'\fR). +.IP "\s-1STORESIZE\s0 this, count" 4 +.IX Item "STORESIZE this, count" +Sets the total number of items in the tied array associated with +object \fIthis\fR to be \fIcount\fR. If this makes the array larger then +class's mapping of \f(CW\*(C`undef\*(C'\fR should be returned for new positions. +If the array becomes smaller then entries beyond count should be +deleted. +.IP "\s-1EXTEND\s0 this, count" 4 +.IX Item "EXTEND this, count" +Informative call that array is likely to grow to have \fIcount\fR entries. +Can be used to optimize allocation. This method need do nothing. +.IP "\s-1EXISTS\s0 this, key" 4 +.IX Item "EXISTS this, key" +Verify that the element at index \fIkey\fR exists in the tied array \fIthis\fR. +.Sp +The \fBTie::Array\fR implementation is a stub that simply croaks. +.IP "\s-1DELETE\s0 this, key" 4 +.IX Item "DELETE this, key" +Delete the element at index \fIkey\fR from the tied array \fIthis\fR. +.Sp +The \fBTie::Array\fR implementation is a stub that simply croaks. +.IP "\s-1CLEAR\s0 this" 4 +.IX Item "CLEAR this" +Clear (remove, delete, ...) all values from the tied array associated with +object \fIthis\fR. +.IP "\s-1DESTROY\s0 this" 4 +.IX Item "DESTROY this" +Normal object destructor method. +.IP "\s-1PUSH\s0 this, \s-1LIST\s0" 4 +.IX Item "PUSH this, LIST" +Append elements of \s-1LIST\s0 to the array. +.IP "\s-1POP\s0 this" 4 +.IX Item "POP this" +Remove last element of the array and return it. +.IP "\s-1SHIFT\s0 this" 4 +.IX Item "SHIFT this" +Remove the first element of the array (shifting other elements down) +and return it. +.IP "\s-1UNSHIFT\s0 this, \s-1LIST\s0" 4 +.IX Item "UNSHIFT this, LIST" +Insert \s-1LIST\s0 elements at the beginning of the array, moving existing elements +up to make room. +.IP "\s-1SPLICE\s0 this, offset, length, \s-1LIST\s0" 4 +.IX Item "SPLICE this, offset, length, LIST" +Perform the equivalent of \f(CW\*(C`splice\*(C'\fR on the array. +.Sp +\&\fIoffset\fR is optional and defaults to zero, negative values count back +from the end of the array. +.Sp +\&\fIlength\fR is optional and defaults to rest of the array. +.Sp +\&\fI\s-1LIST\s0\fR may be empty. +.Sp +Returns a list of the original \fIlength\fR elements at \fIoffset\fR. +.SH "CAVEATS" +.IX Header "CAVEATS" +There is no support at present for tied \f(CW@ISA\fR. There is a potential conflict +between magic entries needed to notice setting of \f(CW@ISA\fR, and those needed to +implement 'tie'. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nick Ing-Simmons diff --git a/data/miniconda3/man/man3/Tie%3A%3AFile.3 b/data/miniconda3/man/man3/Tie%3A%3AFile.3 new file mode 100644 index 0000000000000000000000000000000000000000..680e32096f522c9b54ad7c6ccdea30536305e345 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AFile.3 @@ -0,0 +1,790 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::File 3" +.TH Tie::File 3 "2020-12-18" "perl v5.32.1" "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" +Tie::File \- Access the lines of a disk file via a Perl array +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Tie::File; +\& +\& tie @array, \*(AqTie::File\*(Aq, filename or die ...; +\& +\& $array[0] = \*(Aqblah\*(Aq; # first line of the file is now \*(Aqblah\*(Aq +\& # (line numbering starts at 0) +\& print $array[42]; # display line 43 of the file +\& +\& $n_recs = @array; # how many records are in the file? +\& $#array \-= 2; # chop two records off the end +\& +\& +\& for (@array) { +\& s/PERL/Perl/g; # Replace PERL with Perl everywhere in the file +\& } +\& +\& # These are just like regular push, pop, unshift, shift, and splice +\& # Except that they modify the file in the way you would expect +\& +\& push @array, new recs...; +\& my $r1 = pop @array; +\& unshift @array, new recs...; +\& my $r2 = shift @array; +\& @old_recs = splice @array, 3, 7, new recs...; +\& +\& untie @array; # all finished +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Tie::File\*(C'\fR represents a regular text file as a Perl array. Each +element in the array corresponds to a record in the file. The first +line of the file is element 0 of the array; the second line is element +1, and so on. +.PP +The file is \fInot\fR loaded into memory, so this will work even for +gigantic files. +.PP +Changes to the array are reflected in the file immediately. +.PP +Lazy people and beginners may now stop reading the manual. +.ie n .SS """recsep""" +.el .SS "\f(CWrecsep\fP" +.IX Subsection "recsep" +What is a 'record'? By default, the meaning is the same as for the +\&\f(CW\*(C`<...>\*(C'\fR operator: It's a string terminated by \f(CW$/\fR, which is +probably \f(CW"\en"\fR. (Minor exception: on \s-1DOS\s0 and Win32 systems, a +\&'record' is a string terminated by \f(CW"\er\en"\fR.) You may change the +definition of \*(L"record\*(R" by supplying the \f(CW\*(C`recsep\*(C'\fR option in the \f(CW\*(C`tie\*(C'\fR +call: +.PP +.Vb 1 +\& tie @array, \*(AqTie::File\*(Aq, $file, recsep => \*(Aqes\*(Aq; +.Ve +.PP +This says that records are delimited by the string \f(CW\*(C`es\*(C'\fR. If the file +contained the following data: +.PP +.Vb 1 +\& Curse these pesky flies!\en +.Ve +.PP +then the \f(CW@array\fR would appear to have four elements: +.PP +.Vb 4 +\& "Curse th" +\& "e p" +\& "ky fli" +\& "!\en" +.Ve +.PP +An undefined value is not permitted as a record separator. Perl's +special \*(L"paragraph mode\*(R" semantics (a\*` la \f(CW\*(C`$/ = ""\*(C'\fR) are not +emulated. +.PP +Records read from the tied array do not have the record separator +string on the end; this is to allow +.PP +.Vb 1 +\& $array[17] .= "extra"; +.Ve +.PP +to work as expected. +.PP +(See \*(L"autochomp\*(R", below.) Records stored into the array will have +the record separator string appended before they are written to the +file, if they don't have one already. For example, if the record +separator string is \f(CW"\en"\fR, then the following two lines do exactly +the same thing: +.PP +.Vb 2 +\& $array[17] = "Cherry pie"; +\& $array[17] = "Cherry pie\en"; +.Ve +.PP +The result is that the contents of line 17 of the file will be +replaced with \*(L"Cherry pie\*(R"; a newline character will separate line 17 +from line 18. This means that this code will do nothing: +.PP +.Vb 1 +\& chomp $array[17]; +.Ve +.PP +Because the \f(CW\*(C`chomp\*(C'\fRed value will have the separator reattached when +it is written back to the file. There is no way to create a file +whose trailing record separator string is missing. +.PP +Inserting records that \fIcontain\fR the record separator string is not +supported by this module. It will probably produce a reasonable +result, but what this result will be may change in a future version. +Use 'splice' to insert records or to replace one record with several. +.ie n .SS """autochomp""" +.el .SS "\f(CWautochomp\fP" +.IX Subsection "autochomp" +Normally, array elements have the record separator removed, so that if +the file contains the text +.PP +.Vb 3 +\& Gold +\& Frankincense +\& Myrrh +.Ve +.PP +the tied array will appear to contain \f(CW\*(C`("Gold", "Frankincense", +"Myrrh")\*(C'\fR. If you set \f(CW\*(C`autochomp\*(C'\fR to a false value, the record +separator will not be removed. If the file above was tied with +.PP +.Vb 1 +\& tie @gifts, "Tie::File", $gifts, autochomp => 0; +.Ve +.PP +then the array \f(CW@gifts\fR would appear to contain \f(CW\*(C`("Gold\en", +"Frankincense\en", "Myrrh\en")\*(C'\fR, or (on Win32 systems) \f(CW\*(C`("Gold\er\en", +"Frankincense\er\en", "Myrrh\er\en")\*(C'\fR. +.ie n .SS """mode""" +.el .SS "\f(CWmode\fP" +.IX Subsection "mode" +Normally, the specified file will be opened for read and write access, +and will be created if it does not exist. (That is, the flags +\&\f(CW\*(C`O_RDWR | O_CREAT\*(C'\fR are supplied in the \f(CW\*(C`open\*(C'\fR call.) If you want to +change this, you may supply alternative flags in the \f(CW\*(C`mode\*(C'\fR option. +See Fcntl for a listing of available flags. +For example: +.PP +.Vb 3 +\& # open the file if it exists, but fail if it does not exist +\& use Fcntl \*(AqO_RDWR\*(Aq; +\& tie @array, \*(AqTie::File\*(Aq, $file, mode => O_RDWR; +\& +\& # create the file if it does not exist +\& use Fcntl \*(AqO_RDWR\*(Aq, \*(AqO_CREAT\*(Aq; +\& tie @array, \*(AqTie::File\*(Aq, $file, mode => O_RDWR | O_CREAT; +\& +\& # open an existing file in read\-only mode +\& use Fcntl \*(AqO_RDONLY\*(Aq; +\& tie @array, \*(AqTie::File\*(Aq, $file, mode => O_RDONLY; +.Ve +.PP +Opening the data file in write-only or append mode is not supported. +.ie n .SS """memory""" +.el .SS "\f(CWmemory\fP" +.IX Subsection "memory" +This is an upper limit on the amount of memory that \f(CW\*(C`Tie::File\*(C'\fR will +consume at any time while managing the file. This is used for two +things: managing the \fIread cache\fR and managing the \fIdeferred write +buffer\fR. +.PP +Records read in from the file are cached, to avoid having to re-read +them repeatedly. If you read the same record twice, the first time it +will be stored in memory, and the second time it will be fetched from +the \fIread cache\fR. The amount of data in the read cache will not +exceed the value you specified for \f(CW\*(C`memory\*(C'\fR. If \f(CW\*(C`Tie::File\*(C'\fR wants +to cache a new record, but the read cache is full, it will make room +by expiring the least-recently visited records from the read cache. +.PP +The default memory limit is 2Mib. You can adjust the maximum read +cache size by supplying the \f(CW\*(C`memory\*(C'\fR option. The argument is the +desired cache size, in bytes. +.PP +.Vb 2 +\& # I have a lot of memory, so use a large cache to speed up access +\& tie @array, \*(AqTie::File\*(Aq, $file, memory => 20_000_000; +.Ve +.PP +Setting the memory limit to 0 will inhibit caching; records will be +fetched from disk every time you examine them. +.PP +The \f(CW\*(C`memory\*(C'\fR value is not an absolute or exact limit on the memory +used. \f(CW\*(C`Tie::File\*(C'\fR objects contains some structures besides the read +cache and the deferred write buffer, whose sizes are not charged +against \f(CW\*(C`memory\*(C'\fR. +.PP +The cache itself consumes about 310 bytes per cached record, so if +your file has many short records, you may want to decrease the cache +memory limit, or else the cache overhead may exceed the size of the +cached data. +.ie n .SS """dw_size""" +.el .SS "\f(CWdw_size\fP" +.IX Subsection "dw_size" +(This is an advanced feature. Skip this section on first reading.) +.PP +If you use deferred writing (See \*(L"Deferred Writing\*(R", below) then +data you write into the array will not be written directly to the +file; instead, it will be saved in the \fIdeferred write buffer\fR to be +written out later. Data in the deferred write buffer is also charged +against the memory limit you set with the \f(CW\*(C`memory\*(C'\fR option. +.PP +You may set the \f(CW\*(C`dw_size\*(C'\fR option to limit the amount of data that can +be saved in the deferred write buffer. This limit may not exceed the +total memory limit. For example, if you set \f(CW\*(C`dw_size\*(C'\fR to 1000 and +\&\f(CW\*(C`memory\*(C'\fR to 2500, that means that no more than 1000 bytes of deferred +writes will be saved up. The space available for the read cache will +vary, but it will always be at least 1500 bytes (if the deferred write +buffer is full) and it could grow as large as 2500 bytes (if the +deferred write buffer is empty.) +.PP +If you don't specify a \f(CW\*(C`dw_size\*(C'\fR, it defaults to the entire memory +limit. +.SS "Option Format" +.IX Subsection "Option Format" +\&\f(CW\*(C`\-mode\*(C'\fR is a synonym for \f(CW\*(C`mode\*(C'\fR. \f(CW\*(C`\-recsep\*(C'\fR is a synonym for +\&\f(CW\*(C`recsep\*(C'\fR. \f(CW\*(C`\-memory\*(C'\fR is a synonym for \f(CW\*(C`memory\*(C'\fR. You get the +idea. +.SH "Public Methods" +.IX Header "Public Methods" +The \f(CW\*(C`tie\*(C'\fR call returns an object, say \f(CW$o\fR. You may call +.PP +.Vb 2 +\& $rec = $o\->FETCH($n); +\& $o\->STORE($n, $rec); +.Ve +.PP +to fetch or store the record at line \f(CW$n\fR, respectively; similarly +the other tied array methods. (See perltie for details.) You may +also call the following methods on this object: +.ie n .SS """flock""" +.el .SS "\f(CWflock\fP" +.IX Subsection "flock" +.Vb 1 +\& $o\->flock(MODE) +.Ve +.PP +will lock the tied file. \f(CW\*(C`MODE\*(C'\fR has the same meaning as the second +argument to the Perl built-in \f(CW\*(C`flock\*(C'\fR function; for example +\&\f(CW\*(C`LOCK_SH\*(C'\fR or \f(CW\*(C`LOCK_EX | LOCK_NB\*(C'\fR. (These constants are provided by +the \f(CW\*(C`use Fcntl \*(Aq:flock\*(Aq\*(C'\fR declaration.) +.PP +\&\f(CW\*(C`MODE\*(C'\fR is optional; the default is \f(CW\*(C`LOCK_EX\*(C'\fR. +.PP +\&\f(CW\*(C`Tie::File\*(C'\fR maintains an internal table of the byte offset of each +record it has seen in the file. +.PP +When you use \f(CW\*(C`flock\*(C'\fR to lock the file, \f(CW\*(C`Tie::File\*(C'\fR assumes that the +read cache is no longer trustworthy, because another process might +have modified the file since the last time it was read. Therefore, a +successful call to \f(CW\*(C`flock\*(C'\fR discards the contents of the read cache +and the internal record offset table. +.PP +\&\f(CW\*(C`Tie::File\*(C'\fR promises that the following sequence of operations will +be safe: +.PP +.Vb 2 +\& my $o = tie @array, "Tie::File", $filename; +\& $o\->flock; +.Ve +.PP +In particular, \f(CW\*(C`Tie::File\*(C'\fR will \fInot\fR read or write the file during +the \f(CW\*(C`tie\*(C'\fR call. (Exception: Using \f(CW\*(C`mode => O_TRUNC\*(C'\fR will, of +course, erase the file during the \f(CW\*(C`tie\*(C'\fR call. If you want to do this +safely, then open the file without \f(CW\*(C`O_TRUNC\*(C'\fR, lock the file, and use +\&\f(CW\*(C`@array = ()\*(C'\fR.) +.PP +The best way to unlock a file is to discard the object and untie the +array. It is probably unsafe to unlock the file without also untying +it, because if you do, changes may remain unwritten inside the object. +That is why there is no shortcut for unlocking. If you really want to +unlock the file prematurely, you know what to do; if you don't know +what to do, then don't do it. +.PP +All the usual warnings about file locking apply here. In particular, +note that file locking in Perl is \fBadvisory\fR, which means that +holding a lock will not prevent anyone else from reading, writing, or +erasing the file; it only prevents them from getting another lock at +the same time. Locks are analogous to green traffic lights: If you +have a green light, that does not prevent the idiot coming the other +way from plowing into you sideways; it merely guarantees to you that +the idiot does not also have a green light at the same time. +.ie n .SS """autochomp""" +.el .SS "\f(CWautochomp\fP" +.IX Subsection "autochomp" +.Vb 2 +\& my $old_value = $o\->autochomp(0); # disable autochomp option +\& my $old_value = $o\->autochomp(1); # enable autochomp option +\& +\& my $ac = $o\->autochomp(); # recover current value +.Ve +.PP +See \*(L"autochomp\*(R", above. +.ie n .SS """defer"", ""flush"", ""discard"", and ""autodefer""" +.el .SS "\f(CWdefer\fP, \f(CWflush\fP, \f(CWdiscard\fP, and \f(CWautodefer\fP" +.IX Subsection "defer, flush, discard, and autodefer" +See \*(L"Deferred Writing\*(R", below. +.ie n .SS """offset""" +.el .SS "\f(CWoffset\fP" +.IX Subsection "offset" +.Vb 1 +\& $off = $o\->offset($n); +.Ve +.PP +This method returns the byte offset of the start of the \f(CW$n\fRth record +in the file. If there is no such record, it returns an undefined +value. +.SH "Tying to an already-opened filehandle" +.IX Header "Tying to an already-opened filehandle" +If \f(CW$fh\fR is a filehandle, such as is returned by \f(CW\*(C`IO::File\*(C'\fR or one +of the other \f(CW\*(C`IO\*(C'\fR modules, you may use: +.PP +.Vb 1 +\& tie @array, \*(AqTie::File\*(Aq, $fh, ...; +.Ve +.PP +Similarly if you opened that handle \f(CW\*(C`FH\*(C'\fR with regular \f(CW\*(C`open\*(C'\fR or +\&\f(CW\*(C`sysopen\*(C'\fR, you may use: +.PP +.Vb 1 +\& tie @array, \*(AqTie::File\*(Aq, \e*FH, ...; +.Ve +.PP +Handles that were opened write-only won't work. Handles that were +opened read-only will work as long as you don't try to modify the +array. Handles must be attached to seekable sources of data\-\-\-that +means no pipes or sockets. If \f(CW\*(C`Tie::File\*(C'\fR can detect that you +supplied a non-seekable handle, the \f(CW\*(C`tie\*(C'\fR call will throw an +exception. (On Unix systems, it can detect this.) +.PP +Note that Tie::File will only close any filehandles that it opened +internally. If you passed it a filehandle as above, you \*(L"own\*(R" the +filehandle, and are responsible for closing it after you have untied +the \f(CW@array\fR. +.PP +Tie::File calls \f(CW\*(C`binmode\*(C'\fR on filehandles that it opens internally, +but not on filehandles passed in by the user. For consistency, +especially if using the tied files cross-platform, you may wish to +call \f(CW\*(C`binmode\*(C'\fR on the filehandle prior to tying the file. +.SH "Deferred Writing" +.IX Header "Deferred Writing" +(This is an advanced feature. Skip this section on first reading.) +.PP +Normally, modifying a \f(CW\*(C`Tie::File\*(C'\fR array writes to the underlying file +immediately. Every assignment like \f(CW\*(C`$a[3] = ...\*(C'\fR rewrites as much of +the file as is necessary; typically, everything from line 3 through +the end will need to be rewritten. This is the simplest and most +transparent behavior. Performance even for large files is reasonably +good. +.PP +However, under some circumstances, this behavior may be excessively +slow. For example, suppose you have a million-record file, and you +want to do: +.PP +.Vb 3 +\& for (@FILE) { +\& $_ = "> $_"; +\& } +.Ve +.PP +The first time through the loop, you will rewrite the entire file, +from line 0 through the end. The second time through the loop, you +will rewrite the entire file from line 1 through the end. The third +time through the loop, you will rewrite the entire file from line 2 to +the end. And so on. +.PP +If the performance in such cases is unacceptable, you may defer the +actual writing, and then have it done all at once. The following loop +will perform much better for large files: +.PP +.Vb 5 +\& (tied @a)\->defer; +\& for (@a) { +\& $_ = "> $_"; +\& } +\& (tied @a)\->flush; +.Ve +.PP +If \f(CW\*(C`Tie::File\*(C'\fR's memory limit is large enough, all the writing will +done in memory. Then, when you call \f(CW\*(C`\->flush\*(C'\fR, the entire file +will be rewritten in a single pass. +.PP +(Actually, the preceding discussion is something of a fib. You don't +need to enable deferred writing to get good performance for this +common case, because \f(CW\*(C`Tie::File\*(C'\fR will do it for you automatically +unless you specifically tell it not to. See \*(L"Autodeferring\*(R", +below.) +.PP +Calling \f(CW\*(C`\->flush\*(C'\fR returns the array to immediate-write mode. If +you wish to discard the deferred writes, you may call \f(CW\*(C`\->discard\*(C'\fR +instead of \f(CW\*(C`\->flush\*(C'\fR. Note that in some cases, some of the data +will have been written already, and it will be too late for +\&\f(CW\*(C`\->discard\*(C'\fR to discard all the changes. Support for +\&\f(CW\*(C`\->discard\*(C'\fR may be withdrawn in a future version of \f(CW\*(C`Tie::File\*(C'\fR. +.PP +Deferred writes are cached in memory up to the limit specified by the +\&\f(CW\*(C`dw_size\*(C'\fR option (see above). If the deferred-write buffer is full +and you try to write still more deferred data, the buffer will be +flushed. All buffered data will be written immediately, the buffer +will be emptied, and the now-empty space will be used for future +deferred writes. +.PP +If the deferred-write buffer isn't yet full, but the total size of the +buffer and the read cache would exceed the \f(CW\*(C`memory\*(C'\fR limit, the oldest +records will be expired from the read cache until the total size is +under the limit. +.PP +\&\f(CW\*(C`push\*(C'\fR, \f(CW\*(C`pop\*(C'\fR, \f(CW\*(C`shift\*(C'\fR, \f(CW\*(C`unshift\*(C'\fR, and \f(CW\*(C`splice\*(C'\fR cannot be +deferred. When you perform one of these operations, any deferred data +is written to the file and the operation is performed immediately. +This may change in a future version. +.PP +If you resize the array with deferred writing enabled, the file will +be resized immediately, but deferred records will not be written. +This has a surprising consequence: \f(CW\*(C`@a = (...)\*(C'\fR erases the file +immediately, but the writing of the actual data is deferred. This +might be a bug. If it is a bug, it will be fixed in a future version. +.SS "Autodeferring" +.IX Subsection "Autodeferring" +\&\f(CW\*(C`Tie::File\*(C'\fR tries to guess when deferred writing might be helpful, +and to turn it on and off automatically. +.PP +.Vb 3 +\& for (@a) { +\& $_ = "> $_"; +\& } +.Ve +.PP +In this example, only the first two assignments will be done +immediately; after this, all the changes to the file will be deferred +up to the user-specified memory limit. +.PP +You should usually be able to ignore this and just use the module +without thinking about deferring. However, special applications may +require fine control over which writes are deferred, or may require +that all writes be immediate. To disable the autodeferment feature, +use +.PP +.Vb 1 +\& (tied @o)\->autodefer(0); +.Ve +.PP +or +.PP +.Vb 1 +\& tie @array, \*(AqTie::File\*(Aq, $file, autodefer => 0; +.Ve +.PP +Similarly, \f(CW\*(C`\->autodefer(1)\*(C'\fR re-enables autodeferment, and +\&\f(CW\*(C`\->autodefer()\*(C'\fR recovers the current value of the autodefer setting. +.SH "CONCURRENT ACCESS TO FILES" +.IX Header "CONCURRENT ACCESS TO FILES" +Caching and deferred writing are inappropriate if you want the same +file to be accessed simultaneously from more than one process. Other +optimizations performed internally by this module are also +incompatible with concurrent access. A future version of this module will +support a \f(CW\*(C`concurrent => 1\*(C'\fR option that enables safe concurrent access. +.PP +Previous versions of this documentation suggested using \f(CW\*(C`memory +=> 0\*(C'\fR for safe concurrent access. This was mistaken. Tie::File +will not support safe concurrent access before version 0.96. +.SH "CAVEATS" +.IX Header "CAVEATS" +(That's Latin for 'warnings'.) +.IP "\(bu" 4 +Reasonable effort was made to make this module efficient. Nevertheless, +changing the size of a record in the middle of a large file will +always be fairly slow, because everything after the new record must be +moved. +.IP "\(bu" 4 +The behavior of tied arrays is not precisely the same as for regular +arrays. For example: +.Sp +.Vb 2 +\& # This DOES print "How unusual!" +\& undef $a[10]; print "How unusual!\en" if defined $a[10]; +.Ve +.Sp +\&\f(CW\*(C`undef\*(C'\fR\-ing a \f(CW\*(C`Tie::File\*(C'\fR array element just blanks out the +corresponding record in the file. When you read it back again, you'll +get the empty string, so the supposedly\-\f(CW\*(C`undef\*(C'\fR'ed value will be +defined. Similarly, if you have \f(CW\*(C`autochomp\*(C'\fR disabled, then +.Sp +.Vb 3 +\& # This DOES print "How unusual!" if \*(Aqautochomp\*(Aq is disabled +\& undef $a[10]; +\& print "How unusual!\en" if $a[10]; +.Ve +.Sp +Because when \f(CW\*(C`autochomp\*(C'\fR is disabled, \f(CW$a[10]\fR will read back as +\&\f(CW"\en"\fR (or whatever the record separator string is.) +.Sp +There are other minor differences, particularly regarding \f(CW\*(C`exists\*(C'\fR +and \f(CW\*(C`delete\*(C'\fR, but in general, the correspondence is extremely close. +.IP "\(bu" 4 +I have supposed that since this module is concerned with file I/O, +almost all normal use of it will be heavily I/O bound. This means +that the time to maintain complicated data structures inside the +module will be dominated by the time to actually perform the I/O. +When there was an opportunity to spend \s-1CPU\s0 time to avoid doing I/O, I +usually tried to take it. +.IP "\(bu" 4 +You might be tempted to think that deferred writing is like +transactions, with \f(CW\*(C`flush\*(C'\fR as \f(CW\*(C`commit\*(C'\fR and \f(CW\*(C`discard\*(C'\fR as +\&\f(CW\*(C`rollback\*(C'\fR, but it isn't, so don't. +.IP "\(bu" 4 +There is a large memory overhead for each record offset and for each +cache entry: about 310 bytes per cached data record, and about 21 bytes +per offset table entry. +.Sp +The per-record overhead will limit the maximum number of records you +can access per file. Note that \fIaccessing\fR the length of the array +via \f(CW\*(C`$x = scalar @tied_file\*(C'\fR accesses \fBall\fR records and stores their +offsets. The same for \f(CW\*(C`foreach (@tied_file)\*(C'\fR, even if you exit the +loop early. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +This version promises absolutely nothing about the internals, which +may change without notice. A future version of the module will have a +well-defined and stable subclassing \s-1API.\s0 +.ie n .SH "WHAT ABOUT ""DB_File""?" +.el .SH "WHAT ABOUT \f(CWDB_File\fP?" +.IX Header "WHAT ABOUT DB_File?" +People sometimes point out that DB_File will do something similar, +and ask why \f(CW\*(C`Tie::File\*(C'\fR module is necessary. +.PP +There are a number of reasons that you might prefer \f(CW\*(C`Tie::File\*(C'\fR. +A list is available at \f(CW\*(C`\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Mark Jason Dominus +.PP +To contact the author, send email to: \f(CW\*(C`mjd\-perl\-tiefile+@plover.com\*(C'\fR +.PP +To receive an announcement whenever a new version of this module is +released, send a blank email message to +\&\f(CW\*(C`mjd\-perl\-tiefile\-subscribe@plover.com\*(C'\fR. +.PP +The most recent version of this module, including documentation and +any news of importance, will be available at +.PP +.Vb 1 +\& http://perl.plover.com/TieFile/ +.Ve +.SH "LICENSE" +.IX Header "LICENSE" +\&\f(CW\*(C`Tie::File\*(C'\fR version 0.96 is copyright (C) 2003 Mark Jason Dominus. +.PP +This library is free software; you may redistribute it and/or modify +it under the same terms as Perl itself. +.PP +These terms are your choice of any of (1) the Perl Artistic Licence, +or (2) version 2 of the \s-1GNU\s0 General Public License as published by the +Free Software Foundation, or (3) any later version of the \s-1GNU\s0 General +Public License. +.PP +This library is distributed in the hope that it will be useful, +but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of +\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See the +\&\s-1GNU\s0 General Public License for more details. +.PP +You should have received a copy of the \s-1GNU\s0 General Public License +along with this library program; it should be in the file \f(CW\*(C`COPYING\*(C'\fR. +If not, write to the Free Software Foundation, Inc., 51 Franklin Street, +Fifth Floor, Boston, \s-1MA\s0 02110\-1301, \s-1USA\s0 +.PP +For licensing inquiries, contact the author at: +.PP +.Vb 3 +\& Mark Jason Dominus +\& 255 S. Warnock St. +\& Philadelphia, PA 19107 +.Ve +.SH "WARRANTY" +.IX Header "WARRANTY" +\&\f(CW\*(C`Tie::File\*(C'\fR version 0.98 comes with \s-1ABSOLUTELY NO WARRANTY.\s0 +For details, see the license. +.SH "THANKS" +.IX Header "THANKS" +Gigantic thanks to Jarkko Hietaniemi, for agreeing to put this in the +core when I hadn't written it yet, and for generally being helpful, +supportive, and competent. (Usually the rule is \*(L"choose any one.\*(R") +Also big thanks to Abhijit Menon-Sen for all of the same things. +.PP +Special thanks to Craig Berry and Peter Prymmer (for \s-1VMS\s0 portability +help), Randy Kobes (for Win32 portability help), Clinton Pierce and +Autrijus Tang (for heroic eleventh-hour Win32 testing above and beyond +the call of duty), Michael G Schwern (for testing advice), and the +rest of the \s-1CPAN\s0 testers (for testing generally). +.PP +Special thanks to Tels for suggesting several speed and memory +optimizations. +.PP +Additional thanks to: +Edward Avis / +Mattia Barbon / +Tom Christiansen / +Gerrit Haase / +Gurusamy Sarathy / +Jarkko Hietaniemi (again) / +Nikola Knezevic / +John Kominetz / +Nick Ing-Simmons / +Tassilo von Parseval / +H. Dieter Pearcey / +Slaven Rezic / +Eric Roode / +Peter Scott / +Peter Somu / +Autrijus Tang (again) / +Tels (again) / +Juerd Waalboer / +Todd Rinaldo +.SH "TODO" +.IX Header "TODO" +More tests. (Stuff I didn't think of yet.) +.PP +Paragraph mode? +.PP +Fixed-length mode. Leave-blanks mode. +.PP +Maybe an autolocking mode? +.PP +For many common uses of the module, the read cache is a liability. +For example, a program that inserts a single record, or that scans the +file once, will have a cache hit rate of zero. This suggests a major +optimization: The cache should be initially disabled. Here's a hybrid +approach: Initially, the cache is disabled, but the cache code +maintains statistics about how high the hit rate would be *if* it were +enabled. When it sees the hit rate get high enough, it enables +itself. The \s-1STAT\s0 comments in this code are the beginning of an +implementation of this. +.PP +Record locking with \fBfcntl()\fR? Then the module might support an undo +log and get real transactions. What a tour de force that would be. +.PP +Keeping track of the highest cached record. This would allow reads-in-a-row +to skip the cache lookup faster (if reading from 1..N with empty cache at +start, the last cached value will be always N\-1). +.PP +More tests. diff --git a/data/miniconda3/man/man3/Tie%3A%3AHandle.3 b/data/miniconda3/man/man3/Tie%3A%3AHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..969bda4c85ee7b46723508248ff597e2f692475b --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AHandle.3 @@ -0,0 +1,229 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Handle 3" +.TH Tie::Handle 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Handle \- base class definitions for tied handles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package NewHandle; +\& require Tie::Handle; +\& +\& @ISA = qw(Tie::Handle); +\& +\& sub READ { ... } # Provide a needed method +\& sub TIEHANDLE { ... } # Overrides inherited method +\& +\& +\& package main; +\& +\& tie *FH, \*(AqNewHandle\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides some skeletal methods for handle-tying classes. See +perltie for a list of the functions required in tying a handle to a package. +The basic \fBTie::Handle\fR package provides a \f(CW\*(C`new\*(C'\fR method, as well as methods +\&\f(CW\*(C`TIEHANDLE\*(C'\fR, \f(CW\*(C`PRINT\*(C'\fR, \f(CW\*(C`PRINTF\*(C'\fR and \f(CW\*(C`GETC\*(C'\fR. +.PP +For developers wishing to write their own tied-handle classes, the methods +are summarized below. The perltie section not only documents these, but +has sample code as well: +.IP "\s-1TIEHANDLE\s0 classname, \s-1LIST\s0" 4 +.IX Item "TIEHANDLE classname, LIST" +The method invoked by the command \f(CW\*(C`tie *glob, classname\*(C'\fR. Associates a new +glob instance with the specified class. \f(CW\*(C`LIST\*(C'\fR would represent additional +arguments (along the lines of AnyDBM_File and compatriots) needed to +complete the association. +.IP "\s-1WRITE\s0 this, scalar, length, offset" 4 +.IX Item "WRITE this, scalar, length, offset" +Write \fIlength\fR bytes of data from \fIscalar\fR starting at \fIoffset\fR. +.IP "\s-1PRINT\s0 this, \s-1LIST\s0" 4 +.IX Item "PRINT this, LIST" +Print the values in \fI\s-1LIST\s0\fR +.IP "\s-1PRINTF\s0 this, format, \s-1LIST\s0" 4 +.IX Item "PRINTF this, format, LIST" +Print the values in \fI\s-1LIST\s0\fR using \fIformat\fR +.IP "\s-1READ\s0 this, scalar, length, offset" 4 +.IX Item "READ this, scalar, length, offset" +Read \fIlength\fR bytes of data into \fIscalar\fR starting at \fIoffset\fR. +.IP "\s-1READLINE\s0 this" 4 +.IX Item "READLINE this" +Read a single line +.IP "\s-1GETC\s0 this" 4 +.IX Item "GETC this" +Get a single character +.IP "\s-1CLOSE\s0 this" 4 +.IX Item "CLOSE this" +Close the handle +.IP "\s-1OPEN\s0 this, filename" 4 +.IX Item "OPEN this, filename" +(Re\-)open the handle +.IP "\s-1BINMODE\s0 this" 4 +.IX Item "BINMODE this" +Specify content is binary +.IP "\s-1EOF\s0 this" 4 +.IX Item "EOF this" +Test for end of file. +.IP "\s-1TELL\s0 this" 4 +.IX Item "TELL this" +Return position in the file. +.IP "\s-1SEEK\s0 this, offset, whence" 4 +.IX Item "SEEK this, offset, whence" +Position the file. +.Sp +Test for end of file. +.IP "\s-1DESTROY\s0 this" 4 +.IX Item "DESTROY this" +Free the storage associated with the tied handle referenced by \fIthis\fR. +This is rarely needed, as Perl manages its memory quite well. But the +option exists, should a class wish to perform specific actions upon the +destruction of an instance. +.SH "MORE INFORMATION" +.IX Header "MORE INFORMATION" +The perltie section contains an example of tying handles. +.SH "COMPATIBILITY" +.IX Header "COMPATIBILITY" +This version of Tie::Handle is neither related to nor compatible with +the Tie::Handle (3.0) module available on \s-1CPAN.\s0 It was due to an +accident that two modules with the same name appeared. The namespace +clash has been cleared in favor of this module that comes with the +perl core in September 2000 and accordingly the version number has +been bumped up to 4.0. diff --git a/data/miniconda3/man/man3/Tie%3A%3AHash%3A%3ANamedCapture.3 b/data/miniconda3/man/man3/Tie%3A%3AHash%3A%3ANamedCapture.3 new file mode 100644 index 0000000000000000000000000000000000000000..7fc31685af92c856dd698ebc3dbd7a47485959a9 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AHash%3A%3ANamedCapture.3 @@ -0,0 +1,178 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Hash::NamedCapture 3" +.TH Tie::Hash::NamedCapture 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Hash::NamedCapture \- Named regexp capture buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& tie my %hash, "Tie::Hash::NamedCapture"; +\& # %hash now behaves like %+ +\& +\& tie my %hash, "Tie::Hash::NamedCapture", all => 1; +\& # %hash now access buffers from regexp in $qr like %\- +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is used to implement the special hashes \f(CW\*(C`%+\*(C'\fR and \f(CW\*(C`%\-\*(C'\fR, but it +can be used to tie other variables as you choose. +.PP +When the \f(CW\*(C`all\*(C'\fR parameter is provided, then the tied hash elements will be +array refs listing the contents of each capture buffer whose name is the +same as the associated hash key. If none of these buffers were involved in +the match, the contents of that array ref will be as many \f(CW\*(C`undef\*(C'\fR values +as there are capture buffers with that name. In other words, the tied hash +will behave as \f(CW\*(C`%\-\*(C'\fR. +.PP +When the \f(CW\*(C`all\*(C'\fR parameter is omitted or false, then the tied hash elements +will be the contents of the leftmost defined buffer with the name of the +associated hash key. In other words, the tied hash will behave as +\&\f(CW\*(C`%+\*(C'\fR. +.PP +The keys of \f(CW\*(C`%\-\*(C'\fR\-like hashes correspond to all buffer names found in the +regular expression; the keys of \f(CW\*(C`%+\*(C'\fR\-like hashes list only the names of +buffers that have captured (and that are thus associated to defined values). +.PP +This implementation has been moved into the core executable, but you +can still load this module for backward compatibility. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlreapi, re, \*(L"Pragmatic Modules\*(R" in perlmodlib, \*(L"%+\*(R" in perlvar, +\&\*(L"%\-\*(R" in perlvar. diff --git a/data/miniconda3/man/man3/Tie%3A%3AHash.3 b/data/miniconda3/man/man3/Tie%3A%3AHash.3 new file mode 100644 index 0000000000000000000000000000000000000000..bb838f76c1dc7553f58a1cf8045da3db7ce6da93 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AHash.3 @@ -0,0 +1,308 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Hash 3" +.TH Tie::Hash 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Hash, Tie::StdHash, Tie::ExtraHash \- base class definitions for tied hashes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package NewHash; +\& require Tie::Hash; +\& +\& @ISA = qw(Tie::Hash); +\& +\& sub DELETE { ... } # Provides needed method +\& sub CLEAR { ... } # Overrides inherited method +\& +\& +\& package NewStdHash; +\& require Tie::Hash; +\& +\& @ISA = qw(Tie::StdHash); +\& +\& # All methods provided by default, define +\& # only those needing overrides +\& # Accessors access the storage in %{$_[0]}; +\& # TIEHASH should return a reference to the actual storage +\& sub DELETE { ... } +\& +\& package NewExtraHash; +\& require Tie::Hash; +\& +\& @ISA = qw(Tie::ExtraHash); +\& +\& # All methods provided by default, define +\& # only those needing overrides +\& # Accessors access the storage in %{$_[0][0]}; +\& # TIEHASH should return an array reference with the first element +\& # being the reference to the actual storage +\& sub DELETE { +\& $_[0][1]\->(\*(Aqdel\*(Aq, $_[0][0], $_[1]); # Call the report writer +\& delete $_[0][0]\->{$_[1]}; # $_[0]\->SUPER::DELETE($_[1]) +\& } +\& +\& +\& package main; +\& +\& tie %new_hash, \*(AqNewHash\*(Aq; +\& tie %new_std_hash, \*(AqNewStdHash\*(Aq; +\& tie %new_extra_hash, \*(AqNewExtraHash\*(Aq, +\& sub {warn "Doing \eU$_[1]\eE of $_[2].\en"}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides some skeletal methods for hash-tying classes. See +perltie for a list of the functions required in order to tie a hash +to a package. The basic \fBTie::Hash\fR package provides a \f(CW\*(C`new\*(C'\fR method, as well +as methods \f(CW\*(C`TIEHASH\*(C'\fR, \f(CW\*(C`EXISTS\*(C'\fR and \f(CW\*(C`CLEAR\*(C'\fR. The \fBTie::StdHash\fR and +\&\fBTie::ExtraHash\fR packages +provide most methods for hashes described in perltie (the exceptions +are \f(CW\*(C`UNTIE\*(C'\fR and \f(CW\*(C`DESTROY\*(C'\fR). They cause tied hashes to behave exactly like standard hashes, +and allow for selective overwriting of methods. \fBTie::Hash\fR grandfathers the +\&\f(CW\*(C`new\*(C'\fR method: it is used if \f(CW\*(C`TIEHASH\*(C'\fR is not defined +in the case a class forgets to include a \f(CW\*(C`TIEHASH\*(C'\fR method. +.PP +For developers wishing to write their own tied hashes, the required methods +are briefly defined below. See the perltie section for more detailed +descriptive, as well as example code: +.IP "\s-1TIEHASH\s0 classname, \s-1LIST\s0" 4 +.IX Item "TIEHASH classname, LIST" +The method invoked by the command \f(CW\*(C`tie %hash, classname\*(C'\fR. Associates a new +hash instance with the specified class. \f(CW\*(C`LIST\*(C'\fR would represent additional +arguments (along the lines of AnyDBM_File and compatriots) needed to +complete the association. +.IP "\s-1STORE\s0 this, key, value" 4 +.IX Item "STORE this, key, value" +Store datum \fIvalue\fR into \fIkey\fR for the tied hash \fIthis\fR. +.IP "\s-1FETCH\s0 this, key" 4 +.IX Item "FETCH this, key" +Retrieve the datum in \fIkey\fR for the tied hash \fIthis\fR. +.IP "\s-1FIRSTKEY\s0 this" 4 +.IX Item "FIRSTKEY this" +Return the first key in the hash. +.IP "\s-1NEXTKEY\s0 this, lastkey" 4 +.IX Item "NEXTKEY this, lastkey" +Return the next key in the hash. +.IP "\s-1EXISTS\s0 this, key" 4 +.IX Item "EXISTS this, key" +Verify that \fIkey\fR exists with the tied hash \fIthis\fR. +.Sp +The \fBTie::Hash\fR implementation is a stub that simply croaks. +.IP "\s-1DELETE\s0 this, key" 4 +.IX Item "DELETE this, key" +Delete the key \fIkey\fR from the tied hash \fIthis\fR. +.IP "\s-1CLEAR\s0 this" 4 +.IX Item "CLEAR this" +Clear all values from the tied hash \fIthis\fR. +.IP "\s-1SCALAR\s0 this" 4 +.IX Item "SCALAR this" +Returns what evaluating the hash in scalar context yields. +.Sp +\&\fBTie::Hash\fR does not implement this method (but \fBTie::StdHash\fR +and \fBTie::ExtraHash\fR do). +.SH "Inheriting from \fBTie::StdHash\fP" +.IX Header "Inheriting from Tie::StdHash" +The accessor methods assume that the actual storage for the data in the tied +hash is in the hash referenced by \f(CW\*(C`tied(%tiedhash)\*(C'\fR. Thus overwritten +\&\f(CW\*(C`TIEHASH\*(C'\fR method should return a hash reference, and the remaining methods +should operate on the hash referenced by the first argument: +.PP +.Vb 2 +\& package ReportHash; +\& our @ISA = \*(AqTie::StdHash\*(Aq; +\& +\& sub TIEHASH { +\& my $storage = bless {}, shift; +\& warn "New ReportHash created, stored in $storage.\en"; +\& $storage +\& } +\& sub STORE { +\& warn "Storing data with key $_[1] at $_[0].\en"; +\& $_[0]{$_[1]} = $_[2] +\& } +.Ve +.SH "Inheriting from \fBTie::ExtraHash\fP" +.IX Header "Inheriting from Tie::ExtraHash" +The accessor methods assume that the actual storage for the data in the tied +hash is in the hash referenced by \f(CW\*(C`(tied(%tiedhash))\->[0]\*(C'\fR. Thus overwritten +\&\f(CW\*(C`TIEHASH\*(C'\fR method should return an array reference with the first +element being a hash reference, and the remaining methods should operate on the +hash \f(CW\*(C`%{ $_[0]\->[0] }\*(C'\fR: +.PP +.Vb 2 +\& package ReportHash; +\& our @ISA = \*(AqTie::ExtraHash\*(Aq; +\& +\& sub TIEHASH { +\& my $class = shift; +\& my $storage = bless [{}, @_], $class; +\& warn "New ReportHash created, stored in $storage.\en"; +\& $storage; +\& } +\& sub STORE { +\& warn "Storing data with key $_[1] at $_[0].\en"; +\& $_[0][0]{$_[1]} = $_[2] +\& } +.Ve +.PP +The default \f(CW\*(C`TIEHASH\*(C'\fR method stores \*(L"extra\*(R" arguments to \fBtie()\fR starting +from offset 1 in the array referenced by \f(CW\*(C`tied(%tiedhash)\*(C'\fR; this is the +same storage algorithm as in \s-1TIEHASH\s0 subroutine above. Hence, a typical +package inheriting from \fBTie::ExtraHash\fR does not need to overwrite this +method. +.ie n .SH """SCALAR"", ""UNTIE"" and ""DESTROY""" +.el .SH "\f(CWSCALAR\fP, \f(CWUNTIE\fP and \f(CWDESTROY\fP" +.IX Header "SCALAR, UNTIE and DESTROY" +The methods \f(CW\*(C`UNTIE\*(C'\fR and \f(CW\*(C`DESTROY\*(C'\fR are not defined in \fBTie::Hash\fR, +\&\fBTie::StdHash\fR, or \fBTie::ExtraHash\fR. Tied hashes do not require +presence of these methods, but if defined, the methods will be called in +proper time, see perltie. +.PP +\&\f(CW\*(C`SCALAR\*(C'\fR is only defined in \fBTie::StdHash\fR and \fBTie::ExtraHash\fR. +.PP +If needed, these methods should be defined by the package inheriting from +\&\fBTie::Hash\fR, \fBTie::StdHash\fR, or \fBTie::ExtraHash\fR. See \*(L"\s-1SCALAR\*(R"\s0 in perltie +to find out what happens when \f(CW\*(C`SCALAR\*(C'\fR does not exist. +.SH "MORE INFORMATION" +.IX Header "MORE INFORMATION" +The packages relating to various DBM-related implementations (\fIDB_File\fR, +\&\fINDBM_File\fR, etc.) show examples of general tied hashes, as does the +Config module. While these do not utilize \fBTie::Hash\fR, they serve as +good working examples. diff --git a/data/miniconda3/man/man3/Tie%3A%3AMemoize.3 b/data/miniconda3/man/man3/Tie%3A%3AMemoize.3 new file mode 100644 index 0000000000000000000000000000000000000000..6b083e6f597cb8d2cb756cd9330d828577dbdfe7 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AMemoize.3 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Memoize 3" +.TH Tie::Memoize 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Memoize \- add data to hash when needed +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& require Tie::Memoize; +\& tie %hash, \*(AqTie::Memoize\*(Aq, +\& \e&fetch, # The rest is optional +\& $DATA, \e&exists, +\& {%ini_value}, {%ini_existence}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package allows a tied hash to autoload its values on the first access, +and to use the cached value on the following accesses. +.PP +Only read-accesses (via fetching the value or \f(CW\*(C`exists\*(C'\fR) result in calls to +the functions; the modify-accesses are performed as on a normal hash. +.PP +The required arguments during \f(CW\*(C`tie\*(C'\fR are the hash, the package, and +the reference to the \f(CW\*(C`FETCH\*(C'\fRing function. The optional arguments are +an arbitrary scalar \f(CW$data\fR, the reference to the \f(CW\*(C`EXISTS\*(C'\fR function, +and initial values of the hash and of the existence cache. +.PP +Both the \f(CW\*(C`FETCH\*(C'\fRing function and the \f(CW\*(C`EXISTS\*(C'\fR functions have the +same signature: the arguments are \f(CW\*(C`$key, $data\*(C'\fR; \f(CW$data\fR is the same +value as given as argument during \fBtie()\fRing. Both functions should +return an empty list if the value does not exist. If \f(CW\*(C`EXISTS\*(C'\fR +function is different from the \f(CW\*(C`FETCH\*(C'\fRing function, it should return +a \s-1TRUE\s0 value on success. The \f(CW\*(C`FETCH\*(C'\fRing function should return the +intended value if the key is valid. +.SH "Inheriting from \fBTie::Memoize\fP" +.IX Header "Inheriting from Tie::Memoize" +The structure of the \fBtied()\fR data is an array reference with elements +.PP +.Vb 5 +\& 0: cache of known values +\& 1: cache of known existence of keys +\& 2: FETCH function +\& 3: EXISTS function +\& 4: $data +.Ve +.PP +The rest is for internal usage of this package. In particular, if +\&\s-1TIEHASH\s0 is overwritten, it should call \s-1SUPER::TIEHASH.\s0 +.SH "EXAMPLE" +.IX Header "EXAMPLE" +.Vb 6 +\& sub slurp { +\& my ($key, $dir) = shift; +\& open my $h, \*(Aq<\*(Aq, "$dir/$key" or return; +\& local $/; <$h> # slurp it all +\& } +\& sub exists { my ($key, $dir) = shift; return \-f "$dir/$key" } +\& +\& tie %hash, \*(AqTie::Memoize\*(Aq, \e&slurp, $directory, \e&exists, +\& { fake_file1 => $content1, fake_file2 => $content2 }, +\& { pretend_does_not_exists => 0, known_to_exist => 1 }; +.Ve +.PP +This example treats the slightly modified contents of \f(CW$directory\fR as a +hash. The modifications are that the keys \fIfake_file1\fR and +\&\fIfake_file2\fR fetch values \f(CW$content1\fR and \f(CW$content2\fR, and +\&\fIpretend_does_not_exists\fR will never be accessed. Additionally, the +existence of \fIknown_to_exist\fR is never checked (so if it does not +exists when its content is needed, the user of \f(CW%hash\fR may be confused). +.SH "BUGS" +.IX Header "BUGS" +\&\s-1FIRSTKEY\s0 and \s-1NEXTKEY\s0 methods go through the keys which were already read, +not all the possible keys of the hash. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ilya Zakharevich . diff --git a/data/miniconda3/man/man3/Tie%3A%3ARefHash.3 b/data/miniconda3/man/man3/Tie%3A%3ARefHash.3 new file mode 100644 index 0000000000000000000000000000000000000000..0371181fbe0e664517e08446e5dd786e4e164aaa --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3ARefHash.3 @@ -0,0 +1,216 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::RefHash 3" +.TH Tie::RefHash 3 "2020-12-18" "perl v5.32.1" "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" +Tie::RefHash \- use references as hash keys +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& require 5.004; +\& use Tie::RefHash; +\& tie HASHVARIABLE, \*(AqTie::RefHash\*(Aq, LIST; +\& tie HASHVARIABLE, \*(AqTie::RefHash::Nestable\*(Aq, LIST; +\& +\& untie HASHVARIABLE; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides the ability to use references as hash keys if you +first \f(CW\*(C`tie\*(C'\fR the hash variable to this module. Normally, only the +keys of the tied hash itself are preserved as references; to use +references as keys in hashes-of-hashes, use Tie::RefHash::Nestable, +included as part of Tie::RefHash. +.PP +It is implemented using the standard perl \s-1TIEHASH\s0 interface. Please +see the \f(CW\*(C`tie\*(C'\fR entry in \fBperlfunc\fR\|(1) and \fBperltie\fR\|(1) for more information. +.PP +The Nestable version works by looking for hash references being stored +and converting them to tied hashes so that they too can have +references as keys. This will happen without warning whenever you +store a reference to one of your own hashes in the tied hash. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +.Vb 10 +\& use Tie::RefHash; +\& tie %h, \*(AqTie::RefHash\*(Aq; +\& $a = []; +\& $b = {}; +\& $c = \e*main; +\& $d = \e"gunk"; +\& $e = sub { \*(Aqfoo\*(Aq }; +\& %h = ($a => 1, $b => 2, $c => 3, $d => 4, $e => 5); +\& $a\->[0] = \*(Aqfoo\*(Aq; +\& $b\->{foo} = \*(Aqbar\*(Aq; +\& for (keys %h) { +\& print ref($_), "\en"; +\& } +\& +\& tie %h, \*(AqTie::RefHash::Nestable\*(Aq; +\& $h{$a}\->{$b} = 1; +\& for (keys %h, keys %{$h{$a}}) { +\& print ref($_), "\en"; +\& } +.Ve +.SH "THREAD SUPPORT" +.IX Header "THREAD SUPPORT" +Tie::RefHash fully supports threading using the \f(CW\*(C`CLONE\*(C'\fR method. +.SH "STORABLE SUPPORT" +.IX Header "STORABLE SUPPORT" +Storable hooks are provided for semantically correct serialization and +cloning of tied refhashes. +.SH "RELIC SUPPORT" +.IX Header "RELIC SUPPORT" +This version of Tie::RefHash seems to no longer work with 5.004. This has not +been throughly investigated. Patches welcome ;\-) +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you can redistribute it and/or modify it under +the same terms as Perl itself +.SH "MAINTAINER" +.IX Header "MAINTAINER" +Yuval Kogman +.SH "AUTHOR" +.IX Header "AUTHOR" +Gurusamy Sarathy gsar@activestate.com +.PP +\&'Nestable' by Ed Avis ed@membled.com +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1), \fBperlfunc\fR\|(1), \fBperltie\fR\|(1) diff --git a/data/miniconda3/man/man3/Tie%3A%3AScalar.3 b/data/miniconda3/man/man3/Tie%3A%3AScalar.3 new file mode 100644 index 0000000000000000000000000000000000000000..be053aaaf977df8055955e485db0b7f80d763c17 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AScalar.3 @@ -0,0 +1,217 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::Scalar 3" +.TH Tie::Scalar 3 "2020-12-18" "perl v5.32.1" "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" +Tie::Scalar, Tie::StdScalar \- base class definitions for tied scalars +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package NewScalar; +\& require Tie::Scalar; +\& +\& @ISA = qw(Tie::Scalar); +\& +\& sub FETCH { ... } # Provide a needed method +\& sub TIESCALAR { ... } # Overrides inherited method +\& +\& +\& package NewStdScalar; +\& require Tie::Scalar; +\& +\& @ISA = qw(Tie::StdScalar); +\& +\& # All methods provided by default, so define +\& # only what needs be overridden +\& sub FETCH { ... } +\& +\& +\& package main; +\& +\& tie $new_scalar, \*(AqNewScalar\*(Aq; +\& tie $new_std_scalar, \*(AqNewStdScalar\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides some skeletal methods for scalar-tying classes. See +perltie for a list of the functions required in tying a scalar to a +package. The basic \fBTie::Scalar\fR package provides a \f(CW\*(C`new\*(C'\fR method, as well +as methods \f(CW\*(C`TIESCALAR\*(C'\fR, \f(CW\*(C`FETCH\*(C'\fR and \f(CW\*(C`STORE\*(C'\fR. The \fBTie::StdScalar\fR +package provides all the methods specified in perltie. It inherits from +\&\fBTie::Scalar\fR and causes scalars tied to it to behave exactly like the +built-in scalars, allowing for selective overloading of methods. The \f(CW\*(C`new\*(C'\fR +method is provided as a means of grandfathering, for classes that forget to +provide their own \f(CW\*(C`TIESCALAR\*(C'\fR method. +.PP +For developers wishing to write their own tied-scalar classes, the methods +are summarized below. The perltie section not only documents these, but +has sample code as well: +.IP "\s-1TIESCALAR\s0 classname, \s-1LIST\s0" 4 +.IX Item "TIESCALAR classname, LIST" +The method invoked by the command \f(CW\*(C`tie $scalar, classname\*(C'\fR. Associates a new +scalar instance with the specified class. \f(CW\*(C`LIST\*(C'\fR would represent additional +arguments (along the lines of AnyDBM_File and compatriots) needed to +complete the association. +.IP "\s-1FETCH\s0 this" 4 +.IX Item "FETCH this" +Retrieve the value of the tied scalar referenced by \fIthis\fR. +.IP "\s-1STORE\s0 this, value" 4 +.IX Item "STORE this, value" +Store data \fIvalue\fR in the tied scalar referenced by \fIthis\fR. +.IP "\s-1DESTROY\s0 this" 4 +.IX Item "DESTROY this" +Free the storage associated with the tied scalar referenced by \fIthis\fR. +This is rarely needed, as Perl manages its memory quite well. But the +option exists, should a class wish to perform specific actions upon the +destruction of an instance. +.SS "Tie::Scalar vs Tie::StdScalar" +.IX Subsection "Tie::Scalar vs Tie::StdScalar" +\&\f(CW\*(C`Tie::Scalar\*(C'\fR provides all the necessary methods, but one should realize +they do not do anything useful. Calling \f(CW\*(C`Tie::Scalar::FETCH\*(C'\fR or +\&\f(CW\*(C`Tie::Scalar::STORE\*(C'\fR results in a (trappable) croak. And if you inherit +from \f(CW\*(C`Tie::Scalar\*(C'\fR, you \fImust\fR provide either a \f(CW\*(C`new\*(C'\fR or a +\&\f(CW\*(C`TIESCALAR\*(C'\fR method. +.PP +If you are looking for a class that does everything for you that you don't +define yourself, use the \f(CW\*(C`Tie::StdScalar\*(C'\fR class, not the +\&\f(CW\*(C`Tie::Scalar\*(C'\fR one. +.SH "MORE INFORMATION" +.IX Header "MORE INFORMATION" +The perltie section uses a good example of tying scalars by associating +process IDs with priority. diff --git a/data/miniconda3/man/man3/Tie%3A%3AStdHandle.3 b/data/miniconda3/man/man3/Tie%3A%3AStdHandle.3 new file mode 100644 index 0000000000000000000000000000000000000000..d2b414b9c76afc1ec04be5a4ffe1a8b3eb8ef415 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3AStdHandle.3 @@ -0,0 +1,164 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::StdHandle 3" +.TH Tie::StdHandle 3 "2020-12-18" "perl v5.32.1" "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" +Tie::StdHandle \- base class definitions for tied handles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package NewHandle; +\& require Tie::Handle; +\& +\& @ISA = qw(Tie::Handle); +\& +\& sub READ { ... } # Provide a needed method +\& sub TIEHANDLE { ... } # Overrides inherited method +\& +\& +\& package main; +\& +\& tie *FH, \*(AqNewHandle\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBTie::StdHandle\fR package provide most methods for file handles described +in perltie (the exceptions are \f(CW\*(C`UNTIE\*(C'\fR and \f(CW\*(C`DESTROY\*(C'\fR). It causes tied +file handles to behave exactly like standard file handles and allow for +selective overwriting of methods. diff --git a/data/miniconda3/man/man3/Tie%3A%3ASubstrHash.3 b/data/miniconda3/man/man3/Tie%3A%3ASubstrHash.3 new file mode 100644 index 0000000000000000000000000000000000000000..5b20368bcb515675200946abeb0d5d727a0c1717 --- /dev/null +++ b/data/miniconda3/man/man3/Tie%3A%3ASubstrHash.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Tie::SubstrHash 3" +.TH Tie::SubstrHash 3 "2020-12-18" "perl v5.32.1" "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" +Tie::SubstrHash \- Fixed\-table\-size, fixed\-key\-length hashing +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require Tie::SubstrHash; +\& +\& tie %myhash, \*(AqTie::SubstrHash\*(Aq, $key_len, $value_len, $table_size; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBTie::SubstrHash\fR package provides a hash-table-like interface to +an array of determinate size, with constant key size and record size. +.PP +Upon tying a new hash to this package, the developer must specify the +size of the keys that will be used, the size of the value fields that the +keys will index, and the size of the overall table (in terms of key-value +pairs, not size in hard memory). \fIThese values will not change for the +duration of the tied hash\fR. The newly-allocated hash table may now have +data stored and retrieved. Efforts to store more than \f(CW$table_size\fR +elements will result in a fatal error, as will efforts to store a value +not exactly \f(CW$value_len\fR characters in length, or reference through a +key not exactly \f(CW$key_len\fR characters in length. While these constraints +may seem excessive, the result is a hash table using much less internal +memory than an equivalent freely-allocated hash table. +.SH "CAVEATS" +.IX Header "CAVEATS" +Because the current implementation uses the table and key sizes for the +hashing algorithm, there is no means by which to dynamically change the +value of any of the initialization parameters. +.PP +The hash does not support \fBexists()\fR. diff --git a/data/miniconda3/man/man3/Time%3A%3AHiRes.3 b/data/miniconda3/man/man3/Time%3A%3AHiRes.3 new file mode 100644 index 0000000000000000000000000000000000000000..0950de514ec59cc33d94ba39563485c03fc3a080 --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3AHiRes.3 @@ -0,0 +1,702 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::HiRes 3" +.TH Time::HiRes 3 "2020-12-18" "perl v5.32.1" "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" +Time::HiRes \- High resolution alarm, sleep, gettimeofday, interval timers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep +\& clock_gettime clock_getres clock_nanosleep clock +\& stat lstat utime); +\& +\& usleep ($microseconds); +\& nanosleep ($nanoseconds); +\& +\& ualarm ($microseconds); +\& ualarm ($microseconds, $interval_microseconds); +\& +\& $t0 = [gettimeofday]; +\& ($seconds, $microseconds) = gettimeofday; +\& +\& $elapsed = tv_interval ( $t0, [$seconds, $microseconds]); +\& $elapsed = tv_interval ( $t0, [gettimeofday]); +\& $elapsed = tv_interval ( $t0 ); +\& +\& use Time::HiRes qw ( time alarm sleep ); +\& +\& $now_fractions = time; +\& sleep ($floating_seconds); +\& alarm ($floating_seconds); +\& alarm ($floating_seconds, $floating_interval); +\& +\& use Time::HiRes qw( setitimer getitimer ); +\& +\& setitimer ($which, $floating_seconds, $floating_interval ); +\& getitimer ($which); +\& +\& use Time::HiRes qw( clock_gettime clock_getres clock_nanosleep +\& ITIMER_REAL ITIMER_VIRTUAL ITIMER_PROF +\& ITIMER_REALPROF ); +\& +\& $realtime = clock_gettime(CLOCK_REALTIME); +\& $resolution = clock_getres(CLOCK_REALTIME); +\& +\& clock_nanosleep(CLOCK_REALTIME, 1.5e9); +\& clock_nanosleep(CLOCK_REALTIME, time()*1e9 + 10e9, TIMER_ABSTIME); +\& +\& my $ticktock = clock(); +\& +\& use Time::HiRes qw( stat lstat ); +\& +\& my @stat = stat("file"); +\& my @stat = stat(FH); +\& my @stat = lstat("file"); +\& +\& use Time::HiRes qw( utime ); +\& utime $floating_seconds, $floating_seconds, file...; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Time::HiRes\*(C'\fR module implements a Perl interface to the +\&\f(CW\*(C`usleep\*(C'\fR, \f(CW\*(C`nanosleep\*(C'\fR, \f(CW\*(C`ualarm\*(C'\fR, \f(CW\*(C`gettimeofday\*(C'\fR, and +\&\f(CW\*(C`setitimer\*(C'\fR/\f(CW\*(C`getitimer\*(C'\fR system calls, in other words, high +resolution time and timers. See the \*(L"\s-1EXAMPLES\*(R"\s0 section below and the +test scripts for usage; see your system documentation for the +description of the underlying \f(CW\*(C`nanosleep\*(C'\fR or \f(CW\*(C`usleep\*(C'\fR, \f(CW\*(C`ualarm\*(C'\fR, +\&\f(CW\*(C`gettimeofday\*(C'\fR, and \f(CW\*(C`setitimer\*(C'\fR/\f(CW\*(C`getitimer\*(C'\fR calls. +.PP +If your system lacks \f(CW\*(C`gettimeofday()\*(C'\fR or an emulation of it you don't +get \f(CW\*(C`gettimeofday()\*(C'\fR or the one-argument form of \f(CW\*(C`tv_interval()\*(C'\fR. +If your system lacks all of \f(CW\*(C`nanosleep()\*(C'\fR, \f(CW\*(C`usleep()\*(C'\fR, +\&\f(CW\*(C`select()\*(C'\fR, and \f(CW\*(C`poll\*(C'\fR, you don't get \f(CW\*(C`Time::HiRes::usleep()\*(C'\fR, +\&\f(CW\*(C`Time::HiRes::nanosleep()\*(C'\fR, or \f(CW\*(C`Time::HiRes::sleep()\*(C'\fR. +If your system lacks both \f(CW\*(C`ualarm()\*(C'\fR and \f(CW\*(C`setitimer()\*(C'\fR you don't get +\&\f(CW\*(C`Time::HiRes::ualarm()\*(C'\fR or \f(CW\*(C`Time::HiRes::alarm()\*(C'\fR. +.PP +If you try to import an unimplemented function in the \f(CW\*(C`use\*(C'\fR statement +it will fail at compile time. +.PP +If your subsecond sleeping is implemented with \f(CW\*(C`nanosleep()\*(C'\fR instead +of \f(CW\*(C`usleep()\*(C'\fR, you can mix subsecond sleeping with signals since +\&\f(CW\*(C`nanosleep()\*(C'\fR does not use signals. This, however, is not portable, +and you should first check for the truth value of +\&\f(CW&Time::HiRes::d_nanosleep\fR to see whether you have nanosleep, and +then carefully read your \f(CW\*(C`nanosleep()\*(C'\fR C \s-1API\s0 documentation for any +peculiarities. +.PP +If you are using \f(CW\*(C`nanosleep\*(C'\fR for something else than mixing sleeping +with signals, give some thought to whether Perl is the tool you should +be using for work requiring nanosecond accuracies. +.PP +Remember that unless you are working on a \fIhard realtime\fR system, +any clocks and timers will be imprecise, especially so if you are working +in a pre-emptive multiuser system. Understand the difference between +\&\fIwallclock time\fR and process time (in UNIX-like systems the sum of +\&\fIuser\fR and \fIsystem\fR times). Any attempt to sleep for X seconds will +most probably end up sleeping \fBmore\fR than that, but don't be surprised +if you end up sleeping slightly \fBless\fR. +.PP +The following functions can be imported from this module. +No functions are exported by default. +.IP "gettimeofday ()" 4 +.IX Item "gettimeofday ()" +In array context returns a two-element array with the seconds and +microseconds since the epoch. In scalar context returns floating +seconds like \f(CW\*(C`Time::HiRes::time()\*(C'\fR (see below). +.ie n .IP "usleep ( $useconds )" 4 +.el .IP "usleep ( \f(CW$useconds\fR )" 4 +.IX Item "usleep ( $useconds )" +Sleeps for the number of microseconds (millionths of a second) +specified. Returns the number of microseconds actually slept. +Can sleep for more than one second, unlike the \f(CW\*(C`usleep\*(C'\fR system call. +Can also sleep for zero seconds, which often works like a \fIthread yield\fR. +See also \f(CW\*(C`Time::HiRes::sleep()\*(C'\fR, and +\&\f(CW\*(C`clock_nanosleep()\*(C'\fR. +.Sp +Do not expect \fBusleep()\fR to be exact down to one microsecond. +.ie n .IP "nanosleep ( $nanoseconds )" 4 +.el .IP "nanosleep ( \f(CW$nanoseconds\fR )" 4 +.IX Item "nanosleep ( $nanoseconds )" +Sleeps for the number of nanoseconds (1e9ths of a second) specified. +Returns the number of nanoseconds actually slept (accurate only to +microseconds, the nearest thousand of them). Can sleep for more than +one second. Can also sleep for zero seconds, which often works like +a \fIthread yield\fR. See also +\&\f(CW\*(C`Time::HiRes::sleep()\*(C'\fR, +\&\f(CW\*(C`Time::HiRes::usleep()\*(C'\fR, and +\&\f(CW\*(C`clock_nanosleep()\*(C'\fR. +.Sp +Do not expect \fBnanosleep()\fR to be exact down to one nanosecond. +Getting even accuracy of one thousand nanoseconds is good. +.ie n .IP "ualarm ( $useconds [, $interval_useconds ] )" 4 +.el .IP "ualarm ( \f(CW$useconds\fR [, \f(CW$interval_useconds\fR ] )" 4 +.IX Item "ualarm ( $useconds [, $interval_useconds ] )" +Issues a \f(CW\*(C`ualarm\*(C'\fR call; the \f(CW$interval_useconds\fR is optional and +will be zero if unspecified, resulting in \f(CW\*(C`alarm\*(C'\fR\-like behaviour. +.Sp +Returns the remaining time in the alarm in microseconds, or \f(CW\*(C`undef\*(C'\fR +if an error occurred. +.Sp +\&\fBualarm\fR\|(0) will cancel an outstanding \fBualarm()\fR. +.Sp +Note that the interaction between alarms and sleeps is unspecified. +.IP "tv_interval" 4 +.IX Item "tv_interval" +tv_interval ( \f(CW$ref_to_gettimeofday\fR [, \f(CW$ref_to_later_gettimeofday\fR] ) +.Sp +Returns the floating seconds between the two times, which should have +been returned by \f(CW\*(C`gettimeofday()\*(C'\fR. If the second argument is omitted, +then the current time is used. +.IP "time ()" 4 +.IX Item "time ()" +Returns a floating seconds since the epoch. This function can be +imported, resulting in a nice drop-in replacement for the \f(CW\*(C`time\*(C'\fR +provided with core Perl; see the \*(L"\s-1EXAMPLES\*(R"\s0 below. +.Sp +\&\fB\s-1NOTE 1\s0\fR: This higher resolution timer can return values either less +or more than the core \f(CW\*(C`time()\*(C'\fR, depending on whether your platform +rounds the higher resolution timer values up, down, or to the nearest second +to get the core \f(CW\*(C`time()\*(C'\fR, but naturally the difference should be never +more than half a second. See also \*(L"clock_getres\*(R", if available +in your system. +.Sp +\&\fB\s-1NOTE 2\s0\fR: Since Sunday, September 9th, 2001 at 01:46:40 \s-1AM GMT,\s0 when +the \f(CW\*(C`time()\*(C'\fR seconds since epoch rolled over to 1_000_000_000, the +default floating point format of Perl and the seconds since epoch have +conspired to produce an apparent bug: if you print the value of +\&\f(CW\*(C`Time::HiRes::time()\*(C'\fR you seem to be getting only five decimals, not +six as promised (microseconds). Not to worry, the microseconds are +there (assuming your platform supports such granularity in the first +place). What is going on is that the default floating point format of +Perl only outputs 15 digits. In this case that means ten digits +before the decimal separator and five after. To see the microseconds +you can use either \f(CW\*(C`printf\*(C'\fR/\f(CW\*(C`sprintf\*(C'\fR with \f(CW"%.6f"\fR, or the +\&\f(CW\*(C`gettimeofday()\*(C'\fR function in list context, which will give you the +seconds and microseconds as two separate values. +.ie n .IP "sleep ( $floating_seconds )" 4 +.el .IP "sleep ( \f(CW$floating_seconds\fR )" 4 +.IX Item "sleep ( $floating_seconds )" +Sleeps for the specified amount of seconds. Returns the number of +seconds actually slept (a floating point value). This function can +be imported, resulting in a nice drop-in replacement for the \f(CW\*(C`sleep\*(C'\fR +provided with perl, see the \*(L"\s-1EXAMPLES\*(R"\s0 below. +.Sp +Note that the interaction between alarms and sleeps is unspecified. +.ie n .IP "alarm ( $floating_seconds [, $interval_floating_seconds ] )" 4 +.el .IP "alarm ( \f(CW$floating_seconds\fR [, \f(CW$interval_floating_seconds\fR ] )" 4 +.IX Item "alarm ( $floating_seconds [, $interval_floating_seconds ] )" +The \f(CW\*(C`SIGALRM\*(C'\fR signal is sent after the specified number of seconds. +Implemented using \f(CW\*(C`setitimer()\*(C'\fR if available, \f(CW\*(C`ualarm()\*(C'\fR if not. +The \f(CW$interval_floating_seconds\fR argument is optional and will be +zero if unspecified, resulting in \f(CW\*(C`alarm()\*(C'\fR\-like behaviour. This +function can be imported, resulting in a nice drop-in replacement for +the \f(CW\*(C`alarm\*(C'\fR provided with perl, see the \*(L"\s-1EXAMPLES\*(R"\s0 below. +.Sp +Returns the remaining time in the alarm in seconds, or \f(CW\*(C`undef\*(C'\fR +if an error occurred. +.Sp +\&\fB\s-1NOTE 1\s0\fR: With some combinations of operating systems and Perl +releases \f(CW\*(C`SIGALRM\*(C'\fR restarts \f(CW\*(C`select()\*(C'\fR, instead of interrupting it. +This means that an \f(CW\*(C`alarm()\*(C'\fR followed by a \f(CW\*(C`select()\*(C'\fR may together +take the sum of the times specified for the \f(CW\*(C`alarm()\*(C'\fR and the +\&\f(CW\*(C`select()\*(C'\fR, not just the time of the \f(CW\*(C`alarm()\*(C'\fR. +.Sp +Note that the interaction between alarms and sleeps is unspecified. +.ie n .IP "setitimer ( $which, $floating_seconds [, $interval_floating_seconds ] )" 4 +.el .IP "setitimer ( \f(CW$which\fR, \f(CW$floating_seconds\fR [, \f(CW$interval_floating_seconds\fR ] )" 4 +.IX Item "setitimer ( $which, $floating_seconds [, $interval_floating_seconds ] )" +Start up an interval timer: after a certain time, a signal ($which) arrives, +and more signals may keep arriving at certain intervals. To disable +an \*(L"itimer\*(R", use \f(CW$floating_seconds\fR of zero. If the +\&\f(CW$interval_floating_seconds\fR is set to zero (or unspecified), the +timer is disabled \fBafter\fR the next delivered signal. +.Sp +Use of interval timers may interfere with \f(CW\*(C`alarm()\*(C'\fR, \f(CW\*(C`sleep()\*(C'\fR, +and \f(CW\*(C`usleep()\*(C'\fR. In standard-speak the \*(L"interaction is unspecified\*(R", +which means that \fIanything\fR may happen: it may work, it may not. +.Sp +In scalar context, the remaining time in the timer is returned. +.Sp +In list context, both the remaining time and the interval are returned. +.Sp +There are usually three or four interval timers (signals) available: the +\&\f(CW$which\fR can be \f(CW\*(C`ITIMER_REAL\*(C'\fR, \f(CW\*(C`ITIMER_VIRTUAL\*(C'\fR, \f(CW\*(C`ITIMER_PROF\*(C'\fR, or +\&\f(CW\*(C`ITIMER_REALPROF\*(C'\fR. Note that which ones are available depends: true +\&\s-1UNIX\s0 platforms usually have the first three, but only Solaris seems to +have \f(CW\*(C`ITIMER_REALPROF\*(C'\fR (which is used to profile multithreaded programs). +Win32 unfortunately does not have interval timers. +.Sp +\&\f(CW\*(C`ITIMER_REAL\*(C'\fR results in \f(CW\*(C`alarm()\*(C'\fR\-like behaviour. Time is counted in +\&\fIreal time\fR; that is, wallclock time. \f(CW\*(C`SIGALRM\*(C'\fR is delivered when +the timer expires. +.Sp +\&\f(CW\*(C`ITIMER_VIRTUAL\*(C'\fR counts time in (process) \fIvirtual time\fR; that is, +only when the process is running. In multiprocessor/user/CPU systems +this may be more or less than real or wallclock time. (This time is +also known as the \fIuser time\fR.) \f(CW\*(C`SIGVTALRM\*(C'\fR is delivered when the +timer expires. +.Sp +\&\f(CW\*(C`ITIMER_PROF\*(C'\fR counts time when either the process virtual time or when +the operating system is running on behalf of the process (such as I/O). +(This time is also known as the \fIsystem time\fR.) (The sum of user +time and system time is known as the \fI\s-1CPU\s0 time\fR.) \f(CW\*(C`SIGPROF\*(C'\fR is +delivered when the timer expires. \f(CW\*(C`SIGPROF\*(C'\fR can interrupt system calls. +.Sp +The semantics of interval timers for multithreaded programs are +system-specific, and some systems may support additional interval +timers. For example, it is unspecified which thread gets the signals. +See your \f(CWsetitimer(2)\fR documentation. +.ie n .IP "getitimer ( $which )" 4 +.el .IP "getitimer ( \f(CW$which\fR )" 4 +.IX Item "getitimer ( $which )" +Return the remaining time in the interval timer specified by \f(CW$which\fR. +.Sp +In scalar context, the remaining time is returned. +.Sp +In list context, both the remaining time and the interval are returned. +The interval is always what you put in using \f(CW\*(C`setitimer()\*(C'\fR. +.ie n .IP "clock_gettime ( $which )" 4 +.el .IP "clock_gettime ( \f(CW$which\fR )" 4 +.IX Item "clock_gettime ( $which )" +Return as seconds the current value of the \s-1POSIX\s0 high resolution timer +specified by \f(CW$which\fR. All implementations that support \s-1POSIX\s0 high +resolution timers are supposed to support at least the \f(CW$which\fR value +of \f(CW\*(C`CLOCK_REALTIME\*(C'\fR, which is supposed to return results close to the +results of \f(CW\*(C`gettimeofday\*(C'\fR, or the number of seconds since 00:00:00:00 +January 1, 1970 Greenwich Mean Time (\s-1GMT\s0). Do not assume that +\&\s-1CLOCK_REALTIME\s0 is zero, it might be one, or something else. +Another potentially useful (but not available everywhere) value is +\&\f(CW\*(C`CLOCK_MONOTONIC\*(C'\fR, which guarantees a monotonically increasing time +value (unlike \fBtime()\fR or \fBgettimeofday()\fR, which can be adjusted). +See your system documentation for other possibly supported values. +.ie n .IP "clock_getres ( $which )" 4 +.el .IP "clock_getres ( \f(CW$which\fR )" 4 +.IX Item "clock_getres ( $which )" +Return as seconds the resolution of the \s-1POSIX\s0 high resolution timer +specified by \f(CW$which\fR. All implementations that support \s-1POSIX\s0 high +resolution timers are supposed to support at least the \f(CW$which\fR value +of \f(CW\*(C`CLOCK_REALTIME\*(C'\fR, see \*(L"clock_gettime\*(R". +.Sp +\&\fB\s-1NOTE\s0\fR: the resolution returned may be highly optimistic. Even if +the resolution is high (a small number), all it means is that you'll +be able to specify the arguments to \fBclock_gettime()\fR and \fBclock_nanosleep()\fR +with that resolution. The system might not actually be able to measure +events at that resolution, and the various overheads and the overall system +load are certain to affect any timings. +.ie n .IP "clock_nanosleep ( $which, $nanoseconds, $flags = 0)" 4 +.el .IP "clock_nanosleep ( \f(CW$which\fR, \f(CW$nanoseconds\fR, \f(CW$flags\fR = 0)" 4 +.IX Item "clock_nanosleep ( $which, $nanoseconds, $flags = 0)" +Sleeps for the number of nanoseconds (1e9ths of a second) specified. +Returns the number of nanoseconds actually slept. The \f(CW$which\fR is the +\&\*(L"clock id\*(R", as with \fBclock_gettime()\fR and \fBclock_getres()\fR. The flags +default to zero but \f(CW\*(C`TIMER_ABSTIME\*(C'\fR can specified (must be exported +explicitly) which means that \f(CW$nanoseconds\fR is not a time interval +(as is the default) but instead an absolute time. Can sleep for more +than one second. Can also sleep for zero seconds, which often works +like a \fIthread yield\fR. See also +\&\f(CW\*(C`Time::HiRes::sleep()\*(C'\fR, +\&\f(CW\*(C`Time::HiRes::usleep()\*(C'\fR, and +\&\f(CW\*(C`Time::HiRes::nanosleep()\*(C'\fR. +.Sp +Do not expect \fBclock_nanosleep()\fR to be exact down to one nanosecond. +Getting even accuracy of one thousand nanoseconds is good. +.IP "\fBclock()\fR" 4 +.IX Item "clock()" +Return as seconds the \fIprocess time\fR (user + system time) spent by +the process since the first call to \fBclock()\fR (the definition is \fBnot\fR +\&\*(L"since the start of the process\*(R", though if you are lucky these times +may be quite close to each other, depending on the system). What this +means is that you probably need to store the result of your first call +to \fBclock()\fR, and subtract that value from the following results of \fBclock()\fR. +.Sp +The time returned also includes the process times of the terminated +child processes for which \fBwait()\fR has been executed. This value is +somewhat like the second value returned by the \fBtimes()\fR of core Perl, +but not necessarily identical. Note that due to backward +compatibility limitations the returned value may wrap around at about +2147 seconds or at about 36 minutes. +.IP "stat" 4 +.IX Item "stat" +.PD 0 +.IP "stat \s-1FH\s0" 4 +.IX Item "stat FH" +.IP "stat \s-1EXPR\s0" 4 +.IX Item "stat EXPR" +.IP "lstat" 4 +.IX Item "lstat" +.IP "lstat \s-1FH\s0" 4 +.IX Item "lstat FH" +.IP "lstat \s-1EXPR\s0" 4 +.IX Item "lstat EXPR" +.PD +As \*(L"stat\*(R" in perlfunc or \*(L"lstat\*(R" in perlfunc +but with the access/modify/change file timestamps +in subsecond resolution, if the operating system and the filesystem +both support such timestamps. To override the standard \fBstat()\fR: +.Sp +.Vb 1 +\& use Time::HiRes qw(stat); +.Ve +.Sp +Test for the value of &Time::HiRes::d_hires_stat to find out whether +the operating system supports subsecond file timestamps: a value +larger than zero means yes. There are unfortunately no easy +ways to find out whether the filesystem supports such timestamps. +\&\s-1UNIX\s0 filesystems often do; \s-1NTFS\s0 does; \s-1FAT\s0 doesn't (\s-1FAT\s0 timestamp +granularity is \fBtwo\fR seconds). +.Sp +A zero return value of &Time::HiRes::d_hires_stat means that +Time::HiRes::stat is a no-op passthrough for \fBCORE::stat()\fR +(and likewise for lstat), +and therefore the timestamps will stay integers. The same +thing will happen if the filesystem does not do subsecond timestamps, +even if the &Time::HiRes::d_hires_stat is non-zero. +.Sp +In any case do not expect nanosecond resolution, or even a microsecond +resolution. Also note that the modify/access timestamps might have +different resolutions, and that they need not be synchronized, e.g. +if the operations are +.Sp +.Vb 4 +\& write +\& stat # t1 +\& read +\& stat # t2 +.Ve +.Sp +the access time stamp from t2 need not be greater-than the modify +time stamp from t1: it may be equal or \fIless\fR. +.IP "utime \s-1LIST\s0" 4 +.IX Item "utime LIST" +As \*(L"utime\*(R" in perlfunc +but with the ability to set the access/modify file timestamps +in subsecond resolution, if the operating system and the filesystem, +and the mount options of the filesystem, all support such timestamps. +.Sp +To override the standard \fButime()\fR: +.Sp +.Vb 1 +\& use Time::HiRes qw(utime); +.Ve +.Sp +Test for the value of &Time::HiRes::d_hires_utime to find out whether +the operating system supports setting subsecond file timestamps. +.Sp +As with \fBCORE::utime()\fR, passing undef as both the atime and mtime will +call the syscall with a \s-1NULL\s0 argument. +.Sp +The actual achievable subsecond resolution depends on the combination +of the operating system and the filesystem. +.Sp +Modifying the timestamps may not be possible at all: for example, the +\&\f(CW\*(C`noatime\*(C'\fR filesystem mount option may prohibit you from changing the +access time timestamp. +.Sp +Returns the number of files successfully changed. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 1 +\& use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); +\& +\& $microseconds = 750_000; +\& usleep($microseconds); +\& +\& # signal alarm in 2.5s & every .1s thereafter +\& ualarm(2_500_000, 100_000); +\& # cancel that ualarm +\& ualarm(0); +\& +\& # get seconds and microseconds since the epoch +\& ($s, $usec) = gettimeofday(); +\& +\& # measure elapsed time +\& # (could also do by subtracting 2 gettimeofday return values) +\& $t0 = [gettimeofday]; +\& # do bunch of stuff here +\& $t1 = [gettimeofday]; +\& # do more stuff here +\& $t0_t1 = tv_interval $t0, $t1; +\& +\& $elapsed = tv_interval ($t0, [gettimeofday]); +\& $elapsed = tv_interval ($t0); # equivalent code +\& +\& # +\& # replacements for time, alarm and sleep that know about +\& # floating seconds +\& # +\& use Time::HiRes; +\& $now_fractions = Time::HiRes::time; +\& Time::HiRes::sleep (2.5); +\& Time::HiRes::alarm (10.6666666); +\& +\& use Time::HiRes qw ( time alarm sleep ); +\& $now_fractions = time; +\& sleep (2.5); +\& alarm (10.6666666); +\& +\& # Arm an interval timer to go off first at 10 seconds and +\& # after that every 2.5 seconds, in process virtual time +\& +\& use Time::HiRes qw ( setitimer ITIMER_VIRTUAL time ); +\& +\& $SIG{VTALRM} = sub { print time, "\en" }; +\& setitimer(ITIMER_VIRTUAL, 10, 2.5); +\& +\& use Time::HiRes qw( clock_gettime clock_getres CLOCK_REALTIME ); +\& # Read the POSIX high resolution timer. +\& my $high = clock_gettime(CLOCK_REALTIME); +\& # But how accurate we can be, really? +\& my $reso = clock_getres(CLOCK_REALTIME); +\& +\& use Time::HiRes qw( clock_nanosleep TIMER_ABSTIME ); +\& clock_nanosleep(CLOCK_REALTIME, 1e6); +\& clock_nanosleep(CLOCK_REALTIME, 2e9, TIMER_ABSTIME); +\& +\& use Time::HiRes qw( clock ); +\& my $clock0 = clock(); +\& ... # Do something. +\& my $clock1 = clock(); +\& my $clockd = $clock1 \- $clock0; +\& +\& use Time::HiRes qw( stat ); +\& my ($atime, $mtime, $ctime) = (stat("istics"))[8, 9, 10]; +.Ve +.SH "C API" +.IX Header "C API" +In addition to the perl \s-1API\s0 described above, a C \s-1API\s0 is available for +extension writers. The following C functions are available in the +modglobal hash: +.PP +.Vb 4 +\& name C prototype +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& Time::NVtime NV (*)() +\& Time::U2time void (*)(pTHX_ UV ret[2]) +.Ve +.PP +Both functions return equivalent information (like \f(CW\*(C`gettimeofday\*(C'\fR) +but with different representations. The names \f(CW\*(C`NVtime\*(C'\fR and \f(CW\*(C`U2time\*(C'\fR +were selected mainly because they are operating system independent. +(\f(CW\*(C`gettimeofday\*(C'\fR is Unix-centric, though some platforms like Win32 and +\&\s-1VMS\s0 have emulations for it.) +.PP +Here is an example of using \f(CW\*(C`NVtime\*(C'\fR from C: +.PP +.Vb 6 +\& NV (*myNVtime)(); /* Returns \-1 on failure. */ +\& SV **svp = hv_fetchs(PL_modglobal, "Time::NVtime", 0); +\& if (!svp) croak("Time::HiRes is required"); +\& if (!SvIOK(*svp)) croak("Time::NVtime isn\*(Aqt a function pointer"); +\& myNVtime = INT2PTR(NV(*)(), SvIV(*svp)); +\& printf("The current time is: %" NVff "\en", (*myNVtime)()); +.Ve +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.SS "useconds or interval more than ..." +.IX Subsection "useconds or interval more than ..." +In \fBualarm()\fR you tried to use number of microseconds or interval (also +in microseconds) more than 1_000_000 and \fBsetitimer()\fR is not available +in your system to emulate that case. +.SS "negative time not invented yet" +.IX Subsection "negative time not invented yet" +You tried to use a negative time argument. +.SS "internal error: useconds < 0 (unsigned ... signed ...)" +.IX Subsection "internal error: useconds < 0 (unsigned ... signed ...)" +Something went horribly wrong\*(-- the number of microseconds that cannot +become negative just became negative. Maybe your compiler is broken? +.SS "useconds or uinterval equal to or more than 1000000" +.IX Subsection "useconds or uinterval equal to or more than 1000000" +In some platforms it is not possible to get an alarm with subsecond +resolution and later than one second. +.SS "unimplemented in this platform" +.IX Subsection "unimplemented in this platform" +Some calls simply aren't available, real or emulated, on every platform. +.SH "CAVEATS" +.IX Header "CAVEATS" +Notice that the core \f(CW\*(C`time()\*(C'\fR maybe rounding rather than truncating. +What this means is that the core \f(CW\*(C`time()\*(C'\fR may be reporting the time +as one second later than \f(CW\*(C`gettimeofday()\*(C'\fR and \f(CW\*(C`Time::HiRes::time()\*(C'\fR. +.PP +Adjusting the system clock (either manually or by services like ntp) +may cause problems, especially for long running programs that assume +a monotonously increasing time (note that all platforms do not adjust +time as gracefully as \s-1UNIX\s0 ntp does). For example in Win32 (and derived +platforms like Cygwin and MinGW) the \fBTime::HiRes::time()\fR may temporarily +drift off from the system clock (and the original \fBtime()\fR) by up to 0.5 +seconds. Time::HiRes will notice this eventually and recalibrate. +Note that since Time::HiRes 1.77 the clock_gettime(\s-1CLOCK_MONOTONIC\s0) +might help in this (in case your system supports \s-1CLOCK_MONOTONIC\s0). +.PP +Some systems have APIs but not implementations: for example \s-1QNX\s0 and Haiku +have the interval timer APIs but not the functionality. +.PP +In pre-Sierra macOS (pre\-10.12, \s-1OS X\s0) \fBclock_getres()\fR, \fBclock_gettime()\fR +and \fBclock_nanosleep()\fR are emulated using the Mach timers; as a side +effect of being emulated the \s-1CLOCK_REALTIME\s0 and \s-1CLOCK_MONOTONIC\s0 are +the same timer. +.PP +gnukfreebsd seems to have non-functional \fBfutimens()\fR and \fButimensat()\fR +(at least as of 10.1): therefore the hires \fButime()\fR does not work. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Perl modules BSD::Resource, Time::TAI64. +.PP +Your system documentation for \f(CWclock(3)\fR, \f(CWclock_gettime(2)\fR, +\&\f(CWclock_getres(3)\fR, \f(CWclock_nanosleep(3)\fR, \f(CWclock_settime(2)\fR, +\&\f(CWgetitimer(2)\fR, \f(CWgettimeofday(2)\fR, \f(CWsetitimer(2)\fR, \f(CWsleep(3)\fR, +\&\f(CWstat(2)\fR, \f(CWualarm(3)\fR. +.SH "AUTHORS" +.IX Header "AUTHORS" +D. Wegscheid +R. Schertler +J. Hietaniemi +G. Aas +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 1996\-2002 Douglas E. Wegscheid. All rights reserved. +.PP +Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Jarkko Hietaniemi. +All rights reserved. +.PP +Copyright (C) 2011, 2012, 2013 Andrew Main (Zefram) +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Time%3A%3ALocal.3 b/data/miniconda3/man/man3/Time%3A%3ALocal.3 new file mode 100644 index 0000000000000000000000000000000000000000..5ad4d232948a14c4cd5253a5f79196a00ba0c267 --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3ALocal.3 @@ -0,0 +1,339 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::Local 3" +.TH Time::Local 3 "2020-12-18" "perl v5.32.1" "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" +Time::Local \- Efficiently compute time from local and GMT time +.SH "VERSION" +.IX Header "VERSION" +version 1.28 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Time::Local; +\& +\& my $time = timelocal( $sec, $min, $hour, $mday, $mon, $year ); +\& my $time = timegm( $sec, $min, $hour, $mday, $mon, $year ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides functions that are the inverse of built-in perl functions +\&\f(CW\*(C`localtime()\*(C'\fR and \f(CW\*(C`gmtime()\*(C'\fR. They accept a date as a six-element array, and +return the corresponding \f(CWtime(2)\fR value in seconds since the system epoch +(Midnight, January 1, 1970 \s-1GMT\s0 on Unix, for example). This value can be +positive or negative, though \s-1POSIX\s0 only requires support for positive values, +so dates before the system's epoch may not work on all operating systems. +.PP +It is worth drawing particular attention to the expected ranges for the values +provided. The value for the day of the month is the actual day (i.e. 1..31), +while the month is the number of months since January (0..11). This is +consistent with the values returned from \f(CW\*(C`localtime()\*(C'\fR and \f(CW\*(C`gmtime()\*(C'\fR. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .SS """timelocal_modern()"" and ""timegm_modern()""" +.el .SS "\f(CWtimelocal_modern()\fP and \f(CWtimegm_modern()\fP" +.IX Subsection "timelocal_modern() and timegm_modern()" +When \f(CW\*(C`Time::Local\*(C'\fR was first written, it was a common practice to represent +years as a two-digit value like \f(CW99\fR for \f(CW1999\fR or \f(CW1\fR for \f(CW2001\fR. This +caused all sorts of problems (google \*(L"Y2K problem\*(R" if you're very young) and +developers eventually realized that this was a terrible idea. +.PP +The default exports of \f(CW\*(C`timelocal()\*(C'\fR and \f(CW\*(C`timegm()\*(C'\fR do a complicated +calculation when given a year value less than 1000. This leads to surprising +results in many cases. See \*(L"Year Value Interpretation\*(R" for details. +.PP +The \f(CW\*(C`time*_modern()\*(C'\fR subs do not do this year munging and simply take the +year value as provided. +.PP +While it would be nice to make this the default behavior, that would almost +certainly break a lot of code, so you must explicitly import these subs and +use them instead of the default \f(CW\*(C`timelocal()\*(C'\fR and \f(CW\*(C`timegm()\*(C'\fR. +.PP +You are \fBstrongly\fR encouraged to use these subs in any new code which uses +this module. It will almost certainly make your code's behavior less +surprising. +.ie n .SS """timelocal()"" and ""timegm()""" +.el .SS "\f(CWtimelocal()\fP and \f(CWtimegm()\fP" +.IX Subsection "timelocal() and timegm()" +This module exports two functions by default, \f(CW\*(C`timelocal()\*(C'\fR and \f(CW\*(C`timegm()\*(C'\fR. +.PP +The \f(CW\*(C`timelocal()\*(C'\fR and \f(CW\*(C`timegm()\*(C'\fR functions perform range checking on the +input \f(CW$sec\fR, \f(CW$min\fR, \f(CW$hour\fR, \f(CW$mday\fR, and \f(CW$mon\fR values by default. +.ie n .SS """timelocal_nocheck()"" and ""timegm_nocheck()""" +.el .SS "\f(CWtimelocal_nocheck()\fP and \f(CWtimegm_nocheck()\fP" +.IX Subsection "timelocal_nocheck() and timegm_nocheck()" +If you are working with data you know to be valid, you can speed your code up +by using the \*(L"nocheck\*(R" variants, \f(CW\*(C`timelocal_nocheck()\*(C'\fR and +\&\f(CW\*(C`timegm_nocheck()\*(C'\fR. These variants must be explicitly imported. +.PP +.Vb 1 +\& use Time::Local \*(Aqtimelocal_nocheck\*(Aq; +\& +\& # The 365th day of 1999 +\& print scalar localtime timelocal_nocheck( 0, 0, 0, 365, 0, 99 ); +.Ve +.PP +If you supply data which is not valid (month 27, second 1,000) the results +will be unpredictable (so don't do that). +.SS "Year Value Interpretation" +.IX Subsection "Year Value Interpretation" +\&\fBThis does not apply to \f(CB\*(C`timelocal_modern\*(C'\fB or \f(CB\*(C`timegm_modern\*(C'\fB. Use those +exports if you want to ensure consistent behavior as your code ages.\fR +.PP +Strictly speaking, the year should be specified in a form consistent with +\&\f(CW\*(C`localtime()\*(C'\fR, i.e. the offset from 1900. In order to make the interpretation +of the year easier for humans, however, who are more accustomed to seeing +years as two-digit or four-digit values, the following conventions are +followed: +.IP "\(bu" 4 +Years greater than 999 are interpreted as being the actual year, rather than +the offset from 1900. Thus, 1964 would indicate the year Martin Luther King +won the Nobel prize, not the year 3864. +.IP "\(bu" 4 +Years in the range 100..999 are interpreted as offset from 1900, so that 112 +indicates 2012. This rule also applies to years less than zero (but see note +below regarding date range). +.IP "\(bu" 4 +Years in the range 0..99 are interpreted as shorthand for years in the rolling +\&\*(L"current century,\*(R" defined as 50 years on either side of the current +year. Thus, today, in 1999, 0 would refer to 2000, and 45 to 2045, but 55 +would refer to 1955. Twenty years from now, 55 would instead refer to +2055. This is messy, but matches the way people currently think about two +digit dates. Whenever possible, use an absolute four digit year instead. +.PP +The scheme above allows interpretation of a wide range of dates, particularly +if 4\-digit years are used. +.SS "Limits of time_t" +.IX Subsection "Limits of time_t" +On perl versions older than 5.12.0, the range of dates that can be actually be +handled depends on the size of \f(CW\*(C`time_t\*(C'\fR (usually a signed integer) on the +given platform. Currently, this is 32 bits for most systems, yielding an +approximate range from Dec 1901 to Jan 2038. +.PP +Both \f(CW\*(C`timelocal()\*(C'\fR and \f(CW\*(C`timegm()\*(C'\fR croak if given dates outside the supported +range. +.PP +As of version 5.12.0, perl has stopped using the time implementation of the +operating system it's running on. Instead, it has its own implementation of +those routines with a safe range of at least +/\- 2**52 (about 142 million +years) +.SS "Ambiguous Local Times (\s-1DST\s0)" +.IX Subsection "Ambiguous Local Times (DST)" +Because of \s-1DST\s0 changes, there are many time zones where the same local time +occurs for two different \s-1GMT\s0 times on the same day. For example, in the +\&\*(L"Europe/Paris\*(R" time zone, the local time of 2001\-10\-28 02:30:00 can represent +either 2001\-10\-28 00:30:00 \s-1GMT,\s0 \fBor\fR 2001\-10\-28 01:30:00 \s-1GMT.\s0 +.PP +When given an ambiguous local time, the \fBtimelocal()\fR function should always +return the epoch for the \fIearlier\fR of the two possible \s-1GMT\s0 times. +.SS "Non-Existent Local Times (\s-1DST\s0)" +.IX Subsection "Non-Existent Local Times (DST)" +When a \s-1DST\s0 change causes a locale clock to skip one hour forward, there will +be an hour's worth of local times that don't exist. Again, for the +\&\*(L"Europe/Paris\*(R" time zone, the local clock jumped from 2001\-03\-25 01:59:59 to +2001\-03\-25 03:00:00. +.PP +If the \f(CW\*(C`timelocal()\*(C'\fR function is given a non-existent local time, it will +simply return an epoch value for the time one hour later. +.SS "Negative Epoch Values" +.IX Subsection "Negative Epoch Values" +On perl version 5.12.0 and newer, negative epoch values are fully supported. +.PP +On older versions of perl, negative epoch (\f(CW\*(C`time_t\*(C'\fR) values, which are not +officially supported by the \s-1POSIX\s0 standards, are known not to work on some +systems. These include MacOS (pre-OSX) and Win32. +.PP +On systems which do support negative epoch values, this module should be able +to cope with dates before the start of the epoch, down the minimum value of +time_t for the system. +.SH "IMPLEMENTATION" +.IX Header "IMPLEMENTATION" +These routines are quite efficient and yet are always guaranteed to agree with +\&\f(CW\*(C`localtime()\*(C'\fR and \f(CW\*(C`gmtime()\*(C'\fR. We manage this by caching the start times of +any months we've seen before. If we know the start time of the month, we can +always calculate any time within the month. The start times are calculated +using a mathematical formula. Unlike other algorithms that do multiple calls +to \f(CW\*(C`gmtime()\*(C'\fR. +.PP +The \f(CW\*(C`timelocal()\*(C'\fR function is implemented using the same cache. We just +assume that we're translating a \s-1GMT\s0 time, and then fudge it when we're done +for the timezone and daylight savings arguments. Note that the timezone is +evaluated for each date because countries occasionally change their official +timezones. Assuming that \f(CW\*(C`localtime()\*(C'\fR corrects for these changes, this +routine will also be correct. +.SH "AUTHORS EMERITUS" +.IX Header "AUTHORS EMERITUS" +This module is based on a Perl 4 library, timelocal.pl, that was +included with Perl 4.036, and was most likely written by Tom +Christiansen. +.PP +The current version was written by Graham Barr. +.SH "BUGS" +.IX Header "BUGS" +The whole scheme for interpreting two-digit years can be considered a bug. +.PP +Bugs may be submitted at . +.PP +There is a mailing list available for users of this distribution, +. +.PP +I am also usually active on \s-1IRC\s0 as 'autarch' on \f(CW\*(C`irc://irc.perl.org\*(C'\fR. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Time-Local can be found at . +.SH "AUTHOR" +.IX Header "AUTHOR" +Dave Rolsky +.SH "CONTRIBUTORS" +.IX Header "CONTRIBUTORS" +.IP "\(bu" 4 +Florian Ragwitz +.IP "\(bu" 4 +J. Nick Koston +.IP "\(bu" 4 +Unknown +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 1997 \- 2018 by Graham Barr & Dave Rolsky. +.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. +.PP +The full text of the license can be found in the +\&\fI\s-1LICENSE\s0\fR file included with this distribution. diff --git a/data/miniconda3/man/man3/Time%3A%3APiece.3 b/data/miniconda3/man/man3/Time%3A%3APiece.3 new file mode 100644 index 0000000000000000000000000000000000000000..bbd54fffb557fca949d5c2d14256ab5318a509fe --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3APiece.3 @@ -0,0 +1,462 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::Piece 3" +.TH Time::Piece 3 "2020-12-18" "perl v5.32.1" "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" +Time::Piece \- Object Oriented time objects +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Time::Piece; +\& +\& my $t = localtime; +\& print "Time is $t\en"; +\& print "Year is ", $t\->year, "\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module replaces the standard \f(CW\*(C`localtime\*(C'\fR and \f(CW\*(C`gmtime\*(C'\fR functions with +implementations that return objects. It does so in a backwards +compatible manner, so that using localtime/gmtime in the way documented +in perlfunc will still return what you expect. +.PP +The module actually implements most of an interface described by +Larry Wall on the perl5\-porters mailing list here: + +.SH "USAGE" +.IX Header "USAGE" +After importing this module, when you use localtime or gmtime in a scalar +context, rather than getting an ordinary scalar string representing the +date and time, you get a Time::Piece object, whose stringification happens +to produce the same effect as the localtime and gmtime functions. There is +also a \fBnew()\fR constructor provided, which is the same as \fBlocaltime()\fR, except +when passed a Time::Piece object, in which case it's a copy constructor. The +following methods are available on the object: +.PP +.Vb 10 +\& $t\->sec # also available as $t\->second +\& $t\->min # also available as $t\->minute +\& $t\->hour # 24 hour +\& $t\->mday # also available as $t\->day_of_month +\& $t\->mon # 1 = January +\& $t\->_mon # 0 = January +\& $t\->monname # Feb +\& $t\->month # same as $t\->monname +\& $t\->fullmonth # February +\& $t\->year # based at 0 (year 0 AD is, of course 1 BC) +\& $t\->_year # year minus 1900 +\& $t\->yy # 2 digit year +\& $t\->wday # 1 = Sunday +\& $t\->_wday # 0 = Sunday +\& $t\->day_of_week # 0 = Sunday +\& $t\->wdayname # Tue +\& $t\->day # same as wdayname +\& $t\->fullday # Tuesday +\& $t\->yday # also available as $t\->day_of_year, 0 = Jan 01 +\& $t\->isdst # also available as $t\->daylight_savings +\& +\& $t\->hms # 12:34:56 +\& $t\->hms(".") # 12.34.56 +\& $t\->time # same as $t\->hms +\& +\& $t\->ymd # 2000\-02\-29 +\& $t\->date # same as $t\->ymd +\& $t\->mdy # 02\-29\-2000 +\& $t\->mdy("/") # 02/29/2000 +\& $t\->dmy # 29\-02\-2000 +\& $t\->dmy(".") # 29.02.2000 +\& $t\->datetime # 2000\-02\-29T12:34:56 (ISO 8601) +\& $t\->cdate # Tue Feb 29 12:34:56 2000 +\& "$t" # same as $t\->cdate +\& +\& $t\->epoch # seconds since the epoch +\& $t\->tzoffset # timezone offset in a Time::Seconds object +\& +\& $t\->julian_day # number of days since Julian period began +\& $t\->mjd # modified Julian date (JD\-2400000.5 days) +\& +\& $t\->week # week number (ISO 8601) +\& +\& $t\->is_leap_year # true if it\*(Aqs a leap year +\& $t\->month_last_day # 28\-31 +\& +\& $t\->time_separator($s) # set the default separator (default ":") +\& $t\->date_separator($s) # set the default separator (default "\-") +\& $t\->day_list(@days) # set the default weekdays +\& $t\->mon_list(@days) # set the default months +\& +\& $t\->strftime(FORMAT) # same as POSIX::strftime (without the overhead +\& # of the full POSIX extension) +\& $t\->strftime() # "Tue, 29 Feb 2000 12:34:56 GMT" +\& +\& Time::Piece\->strptime(STRING, FORMAT) +\& # see strptime man page. Creates a new +\& # Time::Piece object +.Ve +.PP +Note that \f(CW\*(C`localtime\*(C'\fR and \f(CW\*(C`gmtime\*(C'\fR are not listed above. If called as +methods on a Time::Piece object, they act as constructors, returning a new +Time::Piece object for the current time. In other words: they're not useful as +methods. +.SS "Local Locales" +.IX Subsection "Local Locales" +Both wdayname (day) and monname (month) allow passing in a list to use +to index the name of the days against. This can be useful if you need +to implement some form of localisation without actually installing or +using locales. Note that this is a global override and will affect +all Time::Piece instances. +.PP +.Vb 1 +\& my @days = qw( Dimanche Lundi Merdi Mercredi Jeudi Vendredi Samedi ); +\& +\& my $french_day = localtime\->day(@days); +.Ve +.PP +These settings can be overridden globally too: +.PP +.Vb 1 +\& Time::Piece::day_list(@days); +.Ve +.PP +Or for months: +.PP +.Vb 1 +\& Time::Piece::mon_list(@months); +.Ve +.PP +And locally for months: +.PP +.Vb 1 +\& print localtime\->month(@months); +.Ve +.PP +Or to populate with your current system locale call: + Time::Piece\->\fBuse_locale()\fR; +.SS "Date Calculations" +.IX Subsection "Date Calculations" +It's possible to use simple addition and subtraction of objects: +.PP +.Vb 1 +\& use Time::Seconds; +\& +\& my $seconds = $t1 \- $t2; +\& $t1 += ONE_DAY; # add 1 day (constant from Time::Seconds) +.Ve +.PP +The following are valid ($t1 and \f(CW$t2\fR are Time::Piece objects): +.PP +.Vb 3 +\& $t1 \- $t2; # returns Time::Seconds object +\& $t1 \- 42; # returns Time::Piece object +\& $t1 + 533; # returns Time::Piece object +.Ve +.PP +However adding a Time::Piece object to another Time::Piece object +will cause a runtime error. +.PP +Note that the first of the above returns a Time::Seconds object, so +while examining the object will print the number of seconds (because +of the overloading), you can also get the number of minutes, hours, +days, weeks and years in that delta, using the Time::Seconds \s-1API.\s0 +.PP +In addition to adding seconds, there are two APIs for adding months and +years: +.PP +.Vb 2 +\& $t = $t\->add_months(6); +\& $t = $t\->add_years(5); +.Ve +.PP +The months and years can be negative for subtractions. Note that there +is some \*(L"strange\*(R" behaviour when adding and subtracting months at the +ends of months. Generally when the resulting month is shorter than the +starting month then the number of overlap days is added. For example +subtracting a month from 2008\-03\-31 will not result in 2008\-02\-31 as this +is an impossible date. Instead you will get 2008\-03\-02. This appears to +be consistent with other date manipulation tools. +.SS "Truncation" +.IX Subsection "Truncation" +Calling the \f(CW\*(C`truncate\*(C'\fR method returns a copy of the object but with the +time truncated to the start of the supplied unit. +.PP +.Vb 1 +\& $t = $t\->truncate(to => \*(Aqday\*(Aq); +.Ve +.PP +This example will set the time to midnight on the same date which \f(CW$t\fR +had previously. Allowed values for the \*(L"to\*(R" parameter are: \*(L"year\*(R", +\&\*(L"quarter\*(R", \*(L"month\*(R", \*(L"day\*(R", \*(L"hour\*(R", \*(L"minute\*(R" and \*(L"second\*(R". +.SS "Date Comparisons" +.IX Subsection "Date Comparisons" +Date comparisons are also possible, using the full suite of \*(L"<\*(R", \*(L">\*(R", +\&\*(L"<=\*(R", \*(L">=\*(R", \*(L"<=>\*(R", \*(L"==\*(R" and \*(L"!=\*(R". +.SS "Date Parsing" +.IX Subsection "Date Parsing" +Time::Piece has a built-in \fBstrptime()\fR function (from FreeBSD), allowing +you incredibly flexible date parsing routines. For example: +.PP +.Vb 2 +\& my $t = Time::Piece\->strptime("Sunday 3rd Nov, 1943", +\& "%A %drd %b, %Y"); +\& +\& print $t\->strftime("%a, %d %b %Y"); +.Ve +.PP +Outputs: +.PP +.Vb 1 +\& Wed, 03 Nov 1943 +.Ve +.PP +(see, it's even smart enough to fix my obvious date bug) +.PP +For more information see \*(L"man strptime\*(R", which should be on all unix +systems. +.PP +Alternatively look here: +.PP +\fI\s-1CAVEAT\s0 \f(CI%A\fI, \f(CI%a\fI, \f(CI%B\fI, \f(CI%b\fI, and friends\fR +.IX Subsection "CAVEAT %A, %a, %B, %b, and friends" +.PP +Time::Piece::strptime by default can only parse American English date names. +Meanwhile, Time::Piece\->\fBstrftime()\fR will return date names that use the current +configured system locale. This means dates returned by strftime might not be +able to be parsed by strptime. This is the default behavior and can be +overridden by calling Time::Piece\->\fBuse_locale()\fR. This builds a list of the +current locale's day and month names which strptime will use to parse with. +Note this is a global override and will affect all Time::Piece instances. +.PP +For instance with a German locale: +.PP +.Vb 1 +\& localtime\->day_list(); +.Ve +.PP +Returns +.PP +.Vb 1 +\& ( \*(AqSun\*(Aq, \*(AqMon\*(Aq, \*(AqTue\*(Aq, \*(AqWed\*(Aq, \*(AqThu\*(Aq, \*(AqFri\*(Aq, \*(AqSat\*(Aq ) +.Ve +.PP +While: +.PP +.Vb 2 +\& Time::Piece\->use_locale(); +\& localtime\->day_list(); +.Ve +.PP +Returns +.PP +.Vb 1 +\& ( \*(AqSo\*(Aq, \*(AqMo\*(Aq, \*(AqDi\*(Aq, \*(AqMi\*(Aq, \*(AqDo\*(Aq, \*(AqFr\*(Aq, \*(AqSa\*(Aq ) +.Ve +.SS "YYYY\-MM\-DDThh:mm:ss" +.IX Subsection "YYYY-MM-DDThh:mm:ss" +The \s-1ISO 8601\s0 standard defines the date format to be YYYY-MM-DD, and +the time format to be hh:mm:ss (24 hour clock), and if combined, they +should be concatenated with date first and with a capital 'T' in front +of the time. +.SS "Week Number" +.IX Subsection "Week Number" +The \fIweek number\fR may be an unknown concept to some readers. The \s-1ISO +8601\s0 standard defines that weeks begin on a Monday and week 1 of the +year is the week that includes both January 4th and the first Thursday +of the year. In other words, if the first Monday of January is the +2nd, 3rd, or 4th, the preceding days of the January are part of the +last week of the preceding year. Week numbers range from 1 to 53. +.SS "Global Overriding" +.IX Subsection "Global Overriding" +Finally, it's possible to override localtime and gmtime everywhere, by +including the ':override' tag in the import list: +.PP +.Vb 1 +\& use Time::Piece \*(Aq:override\*(Aq; +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +.ie n .SS "Setting $ENV{\s-1TZ\s0} in Threads on Win32" +.el .SS "Setting \f(CW$ENV\fP{\s-1TZ\s0} in Threads on Win32" +.IX Subsection "Setting $ENV{TZ} in Threads on Win32" +Note that when using perl in the default build configuration on Win32 +(specifically, when perl is built with \s-1PERL_IMPLICIT_SYS\s0), each perl +interpreter maintains its own copy of the environment and only the main +interpreter will update the process environment seen by strftime. +.PP +Therefore, if you make changes to \f(CW$ENV\fR{\s-1TZ\s0} from inside a thread other than +the main thread then those changes will not be seen by strftime if you +subsequently call that with the \f(CW%Z\fR formatting code. You must change \f(CW$ENV\fR{\s-1TZ\s0} +in the main thread to have the desired effect in this case (and you must +also call \fB_tzset()\fR in the main thread to register the environment change). +.PP +Furthermore, remember that this caveat also applies to \fBfork()\fR, which is +emulated by threads on Win32. +.SS "Use of epoch seconds" +.IX Subsection "Use of epoch seconds" +This module internally uses the epoch seconds system that is provided via +the perl \f(CW\*(C`time()\*(C'\fR function and supported by \f(CW\*(C`gmtime()\*(C'\fR and \f(CW\*(C`localtime()\*(C'\fR. +.PP +If your perl does not support times larger than \f(CW\*(C`2^31\*(C'\fR seconds then this +module is likely to fail at processing dates beyond the year 2038. There are +moves afoot to fix that in perl. Alternatively use 64 bit perl. Or if none +of those are options, use the DateTime module which has support for years +well into the future and past. +.PP +Also, the internal representation of Time::Piece\->strftime deviates from the +standard \s-1POSIX\s0 implementation in that is uses the epoch (instead of separate +year, month, day parts). This change was added in version 1.30. If you must +have a more traditional strftime (which will normally never calculate day +light saving times correctly), you can pass the date parts from Time::Piece +into the strftime function provided by the \s-1POSIX\s0 module +(see strftime in \s-1POSIX\s0 ). +.SH "AUTHOR" +.IX Header "AUTHOR" +Matt Sergeant, matt@sergeant.org +Jarkko Hietaniemi, jhi@iki.fi (while creating Time::Piece for core perl) +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2001, Larry Wall. +.PP +This module is free software, you may distribute it under the same terms +as Perl. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The excellent Calendar \s-1FAQ\s0 at +.SH "BUGS" +.IX Header "BUGS" +The test harness leaves much to be desired. Patches welcome. diff --git a/data/miniconda3/man/man3/Time%3A%3ASeconds.3 b/data/miniconda3/man/man3/Time%3A%3ASeconds.3 new file mode 100644 index 0000000000000000000000000000000000000000..23082ee3539f36f5ebb6383c142a6a1dd3a9e1bb --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3ASeconds.3 @@ -0,0 +1,218 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::Seconds 3" +.TH Time::Seconds 3 "2020-12-18" "perl v5.32.1" "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" +Time::Seconds \- a simple API to convert seconds to other date values +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Time::Piece; +\& use Time::Seconds; +\& +\& my $t = localtime; +\& $t += ONE_DAY; +\& +\& my $t2 = localtime; +\& my $s = $t \- $t2; +\& +\& print "Difference is: ", $s\->days, "\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is part of the Time::Piece distribution. It allows the user +to find out the number of minutes, hours, days, weeks or years in a given +number of seconds. It is returned by Time::Piece when you delta two +Time::Piece objects. +.PP +Time::Seconds also exports the following constants: +.PP +.Vb 9 +\& ONE_DAY +\& ONE_WEEK +\& ONE_HOUR +\& ONE_MINUTE +\& ONE_MONTH +\& ONE_YEAR +\& ONE_FINANCIAL_MONTH +\& LEAP_YEAR +\& NON_LEAP_YEAR +.Ve +.PP +Since perl does not (yet?) support constant objects, these constants are in +seconds only, so you cannot, for example, do this: \f(CW\*(C`print ONE_WEEK\->minutes;\*(C'\fR +.SH "METHODS" +.IX Header "METHODS" +The following methods are available: +.PP +.Vb 10 +\& my $val = Time::Seconds\->new(SECONDS) +\& $val\->seconds; +\& $val\->minutes; +\& $val\->hours; +\& $val\->days; +\& $val\->weeks; +\& $val\->months; +\& $val\->financial_months; # 30 days +\& $val\->years; +\& $val\->pretty; # gives English representation of the delta +.Ve +.PP +The usual arithmetic (+,\-,+=,\-=) is also available on the objects. +.PP +The methods make the assumption that there are 24 hours in a day, 7 days in +a week, 365.24225 days in a year and 12 months in a year. +(from The Calendar \s-1FAQ\s0 at http://www.tondering.dk/claus/calendar.html) +.SH "AUTHOR" +.IX Header "AUTHOR" +Matt Sergeant, matt@sergeant.org +.PP +Tobias Brox, tobiasb@tobiasb.funcom.com +.PP +Bala\*'zs Szabo\*' (dLux), dlux@kapu.hu +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2001, Larry Wall. +.PP +This module is free software, you may distribute it under the same terms +as Perl. +.SH "Bugs" +.IX Header "Bugs" +Currently the methods aren't as efficient as they could be, for reasons of +clarity. This is probably a bad idea. diff --git a/data/miniconda3/man/man3/Time%3A%3Agmtime.3 b/data/miniconda3/man/man3/Time%3A%3Agmtime.3 new file mode 100644 index 0000000000000000000000000000000000000000..303fa8046973f3912790c591f83167dc32c0abeb --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3Agmtime.3 @@ -0,0 +1,190 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::gmtime 3" +.TH Time::gmtime 3 "2020-12-18" "perl v5.32.1" "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" +Time::gmtime \- by\-name interface to Perl's built\-in gmtime() function +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use Time::gmtime; +\& $gm = gmtime(); +\& printf "The day in Greenwich is %s\en", +\& (qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $gm\->wday() ]; +\& +\& use Time::gmtime qw(:FIELDS); +\& gmtime(); +\& printf "The day in Greenwich is %s\en", +\& (qw(Sun Mon Tue Wed Thu Fri Sat Sun))[ $tm_wday ]; +\& +\& $now = gmctime(); +\& +\& use Time::gmtime; +\& use File::stat; +\& $date_string = gmctime(stat($file)\->mtime); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgmtime()\fR function, +replacing it with a version that returns \*(L"Time::tm\*(R" objects. +This object has methods that return the similarly named structure field +name from the C's tm structure from \fItime.h\fR; namely sec, min, hour, +mday, mon, year, wday, yday, and isdst. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this +still overrides your core functions.) Access these fields as variables +named with a preceding \f(CW\*(C`tm_\*(C'\fR in front their method names. Thus, +\&\f(CW\*(C`$tm_obj\->mday()\*(C'\fR corresponds to \f(CW$tm_mday\fR if you import the fields. +.PP +The \fBgmctime()\fR function provides a way of getting at the +scalar sense of the original \fBCORE::gmtime()\fR function. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/Time%3A%3Alocaltime.3 b/data/miniconda3/man/man3/Time%3A%3Alocaltime.3 new file mode 100644 index 0000000000000000000000000000000000000000..361fb840d57382b01946e5e82065d4733c89f83f --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3Alocaltime.3 @@ -0,0 +1,184 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::localtime 3" +.TH Time::localtime 3 "2020-12-18" "perl v5.32.1" "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" +Time::localtime \- by\-name interface to Perl's built\-in localtime() function +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Time::localtime; +\& printf "Year is %d\en", localtime\->year() + 1900; +\& +\& $now = ctime(); +\& +\& use Time::localtime; +\& use File::stat; +\& $date_string = ctime(stat($file)\->mtime); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBlocaltime()\fR function, +replacing it with a version that returns \*(L"Time::tm\*(R" objects. +This object has methods that return the similarly named structure field +name from the C's tm structure from \fItime.h\fR; namely sec, min, hour, +mday, mon, year, wday, yday, and isdst. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as +variables named with a preceding \f(CW\*(C`tm_\*(C'\fR in front their method names. +Thus, \f(CW\*(C`$tm_obj\->mday()\*(C'\fR corresponds to \f(CW$tm_mday\fR if you import +the fields. +.PP +The \fBctime()\fR function provides a way of getting at the +scalar sense of the original \fBCORE::localtime()\fR function. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/Time%3A%3Atm.3 b/data/miniconda3/man/man3/Time%3A%3Atm.3 new file mode 100644 index 0000000000000000000000000000000000000000..5fb049a119b61055ea1c770e28f689eb9cdf6b58 --- /dev/null +++ b/data/miniconda3/man/man3/Time%3A%3Atm.3 @@ -0,0 +1,156 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Time::tm 3" +.TH Time::tm 3 "2020-12-18" "perl v5.32.1" "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" +Time::tm \- internal object used by Time::gmtime and Time::localtime +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Don't use this module directly. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is used internally as a base class by Time::localtime And +Time::gmtime functions. It creates a Time::tm struct object which is +addressable just like's C's tm structure from \fItime.h\fR; namely with sec, +min, hour, mday, mon, year, wday, yday, and isdst. +.PP +This class is an internal interface only. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/UNIVERSAL.3 b/data/miniconda3/man/man3/UNIVERSAL.3 new file mode 100644 index 0000000000000000000000000000000000000000..b553c00bb3534ab60e18ccfa6cdd99d8b5a037a5 --- /dev/null +++ b/data/miniconda3/man/man3/UNIVERSAL.3 @@ -0,0 +1,333 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "UNIVERSAL 3" +.TH UNIVERSAL 3 "2020-12-18" "perl v5.32.1" "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" +UNIVERSAL \- base class for ALL classes (blessed references) +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& $is_io = $fd\->isa("IO::Handle"); +\& $is_io = Class\->isa("IO::Handle"); +\& +\& $does_log = $obj\->DOES("Logger"); +\& $does_log = Class\->DOES("Logger"); +\& +\& $sub = $obj\->can("print"); +\& $sub = Class\->can("print"); +\& +\& $sub = eval { $ref\->can("fandango") }; +\& $ver = $obj\->VERSION; +\& +\& # but never do this! +\& $is_io = UNIVERSAL::isa($fd, "IO::Handle"); +\& $sub = UNIVERSAL::can($obj, "print"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`UNIVERSAL\*(C'\fR is the base class from which all blessed references inherit. +See perlobj. +.PP +\&\f(CW\*(C`UNIVERSAL\*(C'\fR provides the following methods: +.ie n .IP """$obj\->isa( TYPE )""" 4 +.el .IP "\f(CW$obj\->isa( TYPE )\fR" 4 +.IX Item "$obj->isa( TYPE )" +.PD 0 +.ie n .IP """CLASS\->isa( TYPE )""" 4 +.el .IP "\f(CWCLASS\->isa( TYPE )\fR" 4 +.IX Item "CLASS->isa( TYPE )" +.ie n .IP """eval { VAL\->isa( TYPE ) }""" 4 +.el .IP "\f(CWeval { VAL\->isa( TYPE ) }\fR" 4 +.IX Item "eval { VAL->isa( TYPE ) }" +.PD +Where +.RS 4 +.ie n .IP """TYPE""" 4 +.el .IP "\f(CWTYPE\fR" 4 +.IX Item "TYPE" +is a package name +.ie n .IP "$obj" 4 +.el .IP "\f(CW$obj\fR" 4 +.IX Item "$obj" +is a blessed reference or a package name +.ie n .IP """CLASS""" 4 +.el .IP "\f(CWCLASS\fR" 4 +.IX Item "CLASS" +is a package name +.ie n .IP """VAL""" 4 +.el .IP "\f(CWVAL\fR" 4 +.IX Item "VAL" +is any of the above or an unblessed reference +.RE +.RS 4 +.Sp +When used as an instance or class method (\f(CW\*(C`$obj\->isa( TYPE )\*(C'\fR), +\&\f(CW\*(C`isa\*(C'\fR returns \fItrue\fR if \f(CW$obj\fR is blessed into package \f(CW\*(C`TYPE\*(C'\fR or +inherits from package \f(CW\*(C`TYPE\*(C'\fR. +.Sp +When used as a class method (\f(CW\*(C`CLASS\->isa( TYPE )\*(C'\fR, sometimes +referred to as a static method), \f(CW\*(C`isa\*(C'\fR returns \fItrue\fR if \f(CW\*(C`CLASS\*(C'\fR +inherits from (or is itself) the name of the package \f(CW\*(C`TYPE\*(C'\fR or +inherits from package \f(CW\*(C`TYPE\*(C'\fR. +.Sp +If you're not sure what you have (the \f(CW\*(C`VAL\*(C'\fR case), wrap the method call in an +\&\f(CW\*(C`eval\*(C'\fR block to catch the exception if \f(CW\*(C`VAL\*(C'\fR is undefined. +.Sp +If you want to be sure that you're calling \f(CW\*(C`isa\*(C'\fR as a method, not a class, +check the invocand with \f(CW\*(C`blessed\*(C'\fR from Scalar::Util first: +.Sp +.Vb 1 +\& use Scalar::Util \*(Aqblessed\*(Aq; +\& +\& if ( blessed( $obj ) && $obj\->isa("Some::Class") ) { +\& ... +\& } +.Ve +.RE +.ie n .IP """$obj\->DOES( ROLE )""" 4 +.el .IP "\f(CW$obj\->DOES( ROLE )\fR" 4 +.IX Item "$obj->DOES( ROLE )" +.PD 0 +.ie n .IP """CLASS\->DOES( ROLE )""" 4 +.el .IP "\f(CWCLASS\->DOES( ROLE )\fR" 4 +.IX Item "CLASS->DOES( ROLE )" +.PD +\&\f(CW\*(C`DOES\*(C'\fR checks if the object or class performs the role \f(CW\*(C`ROLE\*(C'\fR. A role is a +named group of specific behavior (often methods of particular names and +signatures), similar to a class, but not necessarily a complete class by +itself. For example, logging or serialization may be roles. +.Sp +\&\f(CW\*(C`DOES\*(C'\fR and \f(CW\*(C`isa\*(C'\fR are similar, in that if either is true, you know that the +object or class on which you call the method can perform specific behavior. +However, \f(CW\*(C`DOES\*(C'\fR is different from \f(CW\*(C`isa\*(C'\fR in that it does not care \fIhow\fR the +invocand performs the operations, merely that it does. (\f(CW\*(C`isa\*(C'\fR of course +mandates an inheritance relationship. Other relationships include aggregation, +delegation, and mocking.) +.Sp +By default, classes in Perl only perform the \f(CW\*(C`UNIVERSAL\*(C'\fR role, as well as the +role of all classes in their inheritance. In other words, by default \f(CW\*(C`DOES\*(C'\fR +responds identically to \f(CW\*(C`isa\*(C'\fR. +.Sp +There is a relationship between roles and classes, as each class implies the +existence of a role of the same name. There is also a relationship between +inheritance and roles, in that a subclass that inherits from an ancestor class +implicitly performs any roles its parent performs. Thus you can use \f(CW\*(C`DOES\*(C'\fR in +place of \f(CW\*(C`isa\*(C'\fR safely, as it will return true in all places where \f(CW\*(C`isa\*(C'\fR will +return true (provided that any overridden \f(CW\*(C`DOES\*(C'\fR \fIand\fR \f(CW\*(C`isa\*(C'\fR methods behave +appropriately). +.ie n .IP """$obj\->can( METHOD )""" 4 +.el .IP "\f(CW$obj\->can( METHOD )\fR" 4 +.IX Item "$obj->can( METHOD )" +.PD 0 +.ie n .IP """CLASS\->can( METHOD )""" 4 +.el .IP "\f(CWCLASS\->can( METHOD )\fR" 4 +.IX Item "CLASS->can( METHOD )" +.ie n .IP """eval { VAL\->can( METHOD ) }""" 4 +.el .IP "\f(CWeval { VAL\->can( METHOD ) }\fR" 4 +.IX Item "eval { VAL->can( METHOD ) }" +.PD +\&\f(CW\*(C`can\*(C'\fR checks if the object or class has a method called \f(CW\*(C`METHOD\*(C'\fR. If it does, +then it returns a reference to the sub. If it does not, then it returns +\&\fIundef\fR. This includes methods inherited or imported by \f(CW$obj\fR, \f(CW\*(C`CLASS\*(C'\fR, or +\&\f(CW\*(C`VAL\*(C'\fR. +.Sp +\&\f(CW\*(C`can\*(C'\fR cannot know whether an object will be able to provide a method through +\&\s-1AUTOLOAD\s0 (unless the object's class has overridden \f(CW\*(C`can\*(C'\fR appropriately), so a +return value of \fIundef\fR does not necessarily mean the object will not be able +to handle the method call. To get around this some module authors use a forward +declaration (see perlsub) for methods they will handle via \s-1AUTOLOAD.\s0 For +such 'dummy' subs, \f(CW\*(C`can\*(C'\fR will still return a code reference, which, when +called, will fall through to the \s-1AUTOLOAD.\s0 If no suitable \s-1AUTOLOAD\s0 is provided, +calling the coderef will cause an error. +.Sp +You may call \f(CW\*(C`can\*(C'\fR as a class (static) method or an object method. +.Sp +Again, the same rule about having a valid invocand applies \*(-- use an \f(CW\*(C`eval\*(C'\fR +block or \f(CW\*(C`blessed\*(C'\fR if you need to be extra paranoid. +.ie n .IP """VERSION ( [ REQUIRE ] )""" 4 +.el .IP "\f(CWVERSION ( [ REQUIRE ] )\fR" 4 +.IX Item "VERSION ( [ REQUIRE ] )" +\&\f(CW\*(C`VERSION\*(C'\fR will return the value of the variable \f(CW$VERSION\fR in the +package the object is blessed into. If \f(CW\*(C`REQUIRE\*(C'\fR is given then +it will do a comparison and die if the package version is not +greater than or equal to \f(CW\*(C`REQUIRE\*(C'\fR, or if either \f(CW$VERSION\fR or \f(CW\*(C`REQUIRE\*(C'\fR +is not a \*(L"lax\*(R" version number (as defined by the version module). +.Sp +The return from \f(CW\*(C`VERSION\*(C'\fR will actually be the stringified version object +using the package \f(CW$VERSION\fR scalar, which is guaranteed to be equivalent +but may not be precisely the contents of the \f(CW$VERSION\fR scalar. If you want +the actual contents of \f(CW$VERSION\fR, use \f(CW$CLASS::VERSION\fR instead. +.Sp +\&\f(CW\*(C`VERSION\*(C'\fR can be called as either a class (static) method or an object +method. +.SH "WARNINGS" +.IX Header "WARNINGS" +\&\fB\s-1NOTE:\s0\fR \f(CW\*(C`can\*(C'\fR directly uses Perl's internal code for method lookup, and +\&\f(CW\*(C`isa\*(C'\fR uses a very similar method and cache-ing strategy. This may cause +strange effects if the Perl code dynamically changes \f(CW@ISA\fR in any package. +.PP +You may add other methods to the \s-1UNIVERSAL\s0 class via Perl or \s-1XS\s0 code. +You do not need to \f(CW\*(C`use UNIVERSAL\*(C'\fR to make these methods +available to your program (and you should not do so). +.SH "EXPORTS" +.IX Header "EXPORTS" +None. +.PP +Previous versions of this documentation suggested using \f(CW\*(C`isa\*(C'\fR as +a function to determine the type of a reference: +.PP +.Vb 2 +\& $yes = UNIVERSAL::isa($h, "HASH"); +\& $yes = UNIVERSAL::isa("Foo", "Bar"); +.Ve +.PP +The problem is that this code would \fInever\fR call an overridden \f(CW\*(C`isa\*(C'\fR method in +any class. Instead, use \f(CW\*(C`reftype\*(C'\fR from Scalar::Util for the first case: +.PP +.Vb 1 +\& use Scalar::Util \*(Aqreftype\*(Aq; +\& +\& $yes = reftype( $h ) eq "HASH"; +.Ve +.PP +and the method form of \f(CW\*(C`isa\*(C'\fR for the second: +.PP +.Vb 1 +\& $yes = Foo\->isa("Bar"); +.Ve diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3ABig5.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3ABig5.3 new file mode 100644 index 0000000000000000000000000000000000000000..038e0e6d0425715a88587cb6154f898c645a969c --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3ABig5.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::Big5 3" +.TH Unicode::Collate::CJK::Big5 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::Big5 \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::Big5; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::Big5::weightBig5 +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::Big5\*(C'\fR provides \f(CW\*(C`weightBig5()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's big5han ordering. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AGB2312.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AGB2312.3 new file mode 100644 index 0000000000000000000000000000000000000000..0a354014578222cd73c007ca9f9711cd8a3a1a6a --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AGB2312.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::GB2312 3" +.TH Unicode::Collate::CJK::GB2312 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::GB2312 \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::GB2312; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::GB2312::weightGB2312 +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::GB2312\*(C'\fR provides \f(CW\*(C`weightGB2312()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's gb2312han ordering. +.SH "CAVEAT" +.IX Header "CAVEAT" +The gb2312han ordering includes 5 code points in private use area +(E2D8..E2DC), that can't utilize \f(CW\*(C`weightGB2312()\*(C'\fR for collation. +For them, use \f(CW\*(C`entry\*(C'\fR instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AJISX0208.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AJISX0208.3 new file mode 100644 index 0000000000000000000000000000000000000000..4d547dd9a73bd767e35c1975a63d94adab0c8b5f --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AJISX0208.3 @@ -0,0 +1,165 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::JISX0208 3" +.TH Unicode::Collate::CJK::JISX0208 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::JISX0208 \- weighting JIS KANJI for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::JISX0208; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::JISX0208::weightJISX0208 +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::JISX0208\*(C'\fR provides \f(CW\*(C`weightJISX0208()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of 6355 kanji (\s-1CJK\s0 Unified Ideographs) +in the \s-1JIS X 0208\s0 order. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AKorean.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AKorean.3 new file mode 100644 index 0000000000000000000000000000000000000000..9fc4e6a12931dc9454b6447bb478b1c9782369e1 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AKorean.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::Korean 3" +.TH Unicode::Collate::CJK::Korean 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::Korean \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::Korean; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::Korean::weightKorean +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::Korean\*(C'\fR provides \f(CW\*(C`weightKorean()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's Korean ordering. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3APinyin.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3APinyin.3 new file mode 100644 index 0000000000000000000000000000000000000000..7b06e6ad1b67aa64f236862084e73843997f1e75 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3APinyin.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::Pinyin 3" +.TH Unicode::Collate::CJK::Pinyin 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::Pinyin \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::Pinyin; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::Pinyin::weightPinyin +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::Pinyin\*(C'\fR provides \f(CW\*(C`weightPinyin()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's pinyin ordering. +.SH "CAVEAT" +.IX Header "CAVEAT" +The pinyin ordering includes some characters that are not +\&\s-1CJK\s0 Unified Ideographs and can't utilize \f(CW\*(C`weightPinyin()\*(C'\fR +for collation. For them, use \f(CW\*(C`entry\*(C'\fR instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AStroke.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AStroke.3 new file mode 100644 index 0000000000000000000000000000000000000000..ed5c704f22d26a3acd94b32866174a80030ca264 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AStroke.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::Stroke 3" +.TH Unicode::Collate::CJK::Stroke 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::Stroke \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::Stroke; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::Stroke::weightStroke +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::Stroke\*(C'\fR provides \f(CW\*(C`weightStroke()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's stroke ordering. +.SH "CAVEAT" +.IX Header "CAVEAT" +The stroke ordering includes some characters that are not +\&\s-1CJK\s0 Unified Ideographs and can't utilize \f(CW\*(C`weightStroke()\*(C'\fR +for collation. For them, use \f(CW\*(C`entry\*(C'\fR instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AZhuyin.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AZhuyin.3 new file mode 100644 index 0000000000000000000000000000000000000000..a45ff0ca66b14b8f213d45b61187d21664104890 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ACJK%3A%3AZhuyin.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::CJK::Zhuyin 3" +.TH Unicode::Collate::CJK::Zhuyin 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::CJK::Zhuyin \- weighting CJK Unified Ideographs +for Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::Collate; +\& use Unicode::Collate::CJK::Zhuyin; +\& +\& my $collator = Unicode::Collate\->new( +\& overrideCJK => \e&Unicode::Collate::CJK::Zhuyin::weightZhuyin +\& ); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Unicode::Collate::CJK::Zhuyin\*(C'\fR provides \f(CW\*(C`weightZhuyin()\*(C'\fR, +that is adequate for \f(CW\*(C`overrideCJK\*(C'\fR of \f(CW\*(C`Unicode::Collate\*(C'\fR +and makes tailoring of \s-1CJK\s0 Unified Ideographs in the order +of \s-1CLDR\s0's zhuyin (bopomofo) ordering. +.SH "CAVEAT" +.IX Header "CAVEAT" +The zhuyin ordering includes some characters that are not +\&\s-1CJK\s0 Unified Ideographs and can't utilize \f(CW\*(C`weightZhuyin()\*(C'\fR +for collation. For them, use \f(CW\*(C`entry\*(C'\fR instead. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Collate::Locale" 4 +.IX Item "Unicode::Collate::Locale" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ALocale.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ALocale.3 new file mode 100644 index 0000000000000000000000000000000000000000..c043c247df979a005db104be8760e433a8a008d0 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate%3A%3ALocale.3 @@ -0,0 +1,551 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate::Locale 3" +.TH Unicode::Collate::Locale 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate::Locale \- Linguistic tailoring for DUCET via Unicode::Collate +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Unicode::Collate::Locale; +\& +\& #construct +\& $Collator = Unicode::Collate::Locale\-> +\& new(locale => $locale_name, %tailoring); +\& +\& #sort +\& @sorted = $Collator\->sort(@not_sorted); +\& +\& #compare +\& $result = $Collator\->cmp($a, $b); # returns 1, 0, or \-1. +.Ve +.PP +\&\fBNote:\fR Strings in \f(CW@not_sorted\fR, \f(CW$a\fR and \f(CW$b\fR are interpreted +according to Perl's Unicode support. See perlunicode, +perluniintro, perlunitut, perlunifaq, utf8. +Otherwise you can use \f(CW\*(C`preprocess\*(C'\fR (cf. \f(CW\*(C`Unicode::Collate\*(C'\fR) +or should decode them before. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides linguistic tailoring for it +taking advantage of \f(CW\*(C`Unicode::Collate\*(C'\fR. +.SS "Constructor" +.IX Subsection "Constructor" +The \f(CW\*(C`new\*(C'\fR method returns a collator object. +.PP +A parameter list for the constructor is a hash, which can include +a special key \f(CW\*(C`locale\*(C'\fR and its value (case-insensitive) standing +for a Unicode base language code (two or three-letter). +For example, \f(CW\*(C`Unicode::Collate::Locale\->new(locale => \*(AqES\*(Aq)\*(C'\fR +returns a collator tailored for Spanish. +.PP +\&\f(CW$locale_name\fR may be suffixed with a Unicode script code (four-letter), +a Unicode region (territory) code, a Unicode language variant code. +These codes are case-insensitive, and separated with \f(CW\*(Aq_\*(Aq\fR or \f(CW\*(Aq\-\*(Aq\fR. +E.g. \f(CW\*(C`en_US\*(C'\fR for English in \s-1USA,\s0 +\&\f(CW\*(C`az_Cyrl\*(C'\fR for Azerbaijani in the Cyrillic script, +\&\f(CW\*(C`es_ES_traditional\*(C'\fR for Spanish in Spain (Traditional). +.PP +If \f(CW$locale_name\fR is not available, +fallback is selected in the following order: +.PP +.Vb 5 +\& 1. language with a variant code +\& 2. language with a script code +\& 3. language with a region code +\& 4. language +\& 5. default +.Ve +.PP +Tailoring tags provided by \f(CW\*(C`Unicode::Collate\*(C'\fR are allowed as long as +they are not used for \f(CW\*(C`locale\*(C'\fR support. Esp. the \f(CW\*(C`table\*(C'\fR tag +is always untailorable, since it is reserved for \s-1DUCET.\s0 +.PP +However \f(CW\*(C`entry\*(C'\fR is allowed, even if it is used for \f(CW\*(C`locale\*(C'\fR support, +to add or override mappings. +.PP +E.g. a collator for Spanish, which ignores diacritics and case difference +(i.e. level 1), with reversed case ordering and no normalization. +.PP +.Vb 6 +\& Unicode::Collate::Locale\->new( +\& level => 1, +\& locale => \*(Aqes\*(Aq, +\& upper_before_lower => 1, +\& normalization => undef +\& ) +.Ve +.PP +Overriding a behavior already tailored by \f(CW\*(C`locale\*(C'\fR is disallowed +if such a tailoring is passed to \f(CW\*(C`new()\*(C'\fR. +.PP +.Vb 4 +\& Unicode::Collate::Locale\->new( +\& locale => \*(Aqda\*(Aq, +\& upper_before_lower => 0, # causes error as reserved by \*(Aqda\*(Aq +\& ) +.Ve +.PP +However \f(CW\*(C`change()\*(C'\fR inherited from \f(CW\*(C`Unicode::Collate\*(C'\fR allows +such a tailoring that is reserved by \f(CW\*(C`locale\*(C'\fR. Examples: +.PP +.Vb 3 +\& new(locale => \*(Aqfr_ca\*(Aq)\->change(backwards => undef) +\& new(locale => \*(Aqda\*(Aq)\->change(upper_before_lower => 0) +\& new(locale => \*(Aqja\*(Aq)\->change(overrideCJK => undef) +.Ve +.SS "Methods" +.IX Subsection "Methods" +\&\f(CW\*(C`Unicode::Collate::Locale\*(C'\fR is a subclass of \f(CW\*(C`Unicode::Collate\*(C'\fR +and methods other than \f(CW\*(C`new\*(C'\fR are inherited from \f(CW\*(C`Unicode::Collate\*(C'\fR. +.PP +Here is a list of additional methods: +.ie n .IP """$Collator\->getlocale""" 4 +.el .IP "\f(CW$Collator\->getlocale\fR" 4 +.IX Item "$Collator->getlocale" +Returns a language code accepted and used actually on collation. +If linguistic tailoring is not provided for a language code you passed +(intensionally for some languages, or due to the incomplete implementation), +this method returns a string \f(CW\*(Aqdefault\*(Aq\fR meaning no special tailoring. +.ie n .IP """$Collator\->locale_version""" 4 +.el .IP "\f(CW$Collator\->locale_version\fR" 4 +.IX Item "$Collator->locale_version" +(Since Unicode::Collate::Locale 0.87) +Returns the version number (perhaps \f(CW\*(C`/\ed\e.\ed\ed/\*(C'\fR) of the locale, as that +of \fILocale/*.pl\fR. +.Sp +\&\fBNote:\fR \fILocale/*.pl\fR that a collator uses should be identified by +a combination of return values from \f(CW\*(C`getlocale\*(C'\fR and \f(CW\*(C`locale_version\*(C'\fR. +.SS "A list of tailorable locales" +.IX Subsection "A list of tailorable locales" +.Vb 10 +\& locale name description +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& af Afrikaans +\& ar Arabic +\& as Assamese +\& az Azerbaijani (Azeri) +\& be Belarusian +\& bn Bengali +\& bs Bosnian (tailored as Croatian) +\& bs_Cyrl Bosnian in Cyrillic (tailored as Serbian) +\& ca Catalan +\& cs Czech +\& cu Church Slavic +\& cy Welsh +\& da Danish +\& de_\|_phonebook German (umlaut as \*(Aqae\*(Aq, \*(Aqoe\*(Aq, \*(Aque\*(Aq) +\& de_AT_phonebook Austrian German (umlaut primary greater) +\& dsb Lower Sorbian +\& ee Ewe +\& eo Esperanto +\& es Spanish +\& es_\|_traditional Spanish (\*(Aqch\*(Aq and \*(Aqll\*(Aq as a grapheme) +\& et Estonian +\& fa Persian +\& fi Finnish (v and w are primary equal) +\& fi_\|_phonebook Finnish (v and w as separate characters) +\& fil Filipino +\& fo Faroese +\& fr_CA Canadian French +\& gu Gujarati +\& ha Hausa +\& haw Hawaiian +\& he Hebrew +\& hi Hindi +\& hr Croatian +\& hu Hungarian +\& hy Armenian +\& ig Igbo +\& is Icelandic +\& ja Japanese [1] +\& kk Kazakh +\& kl Kalaallisut +\& kn Kannada +\& ko Korean [2] +\& kok Konkani +\& lkt Lakota +\& ln Lingala +\& lt Lithuanian +\& lv Latvian +\& mk Macedonian +\& ml Malayalam +\& mr Marathi +\& mt Maltese +\& nb Norwegian Bokmal +\& nn Norwegian Nynorsk +\& nso Northern Sotho +\& om Oromo +\& or Oriya +\& pa Punjabi +\& pl Polish +\& ro Romanian +\& sa Sanskrit +\& se Northern Sami +\& si Sinhala +\& si_\|_dictionary Sinhala (U+0DA5 = U+0DA2,0DCA,0DA4) +\& sk Slovak +\& sl Slovenian +\& sq Albanian +\& sr Serbian +\& sr_Latn Serbian in Latin (tailored as Croatian) +\& sv Swedish (v and w are primary equal) +\& sv_\|_reformed Swedish (v and w as separate characters) +\& ta Tamil +\& te Telugu +\& th Thai +\& tn Tswana +\& to Tonga +\& tr Turkish +\& ug_Cyrl Uyghur in Cyrillic +\& uk Ukrainian +\& ur Urdu +\& vi Vietnamese +\& vo Volapu"k +\& wae Walser +\& wo Wolof +\& yo Yoruba +\& zh Chinese +\& zh_\|_big5han Chinese (ideographs: big5 order) +\& zh_\|_gb2312han Chinese (ideographs: GB\-2312 order) +\& zh_\|_pinyin Chinese (ideographs: pinyin order) [3] +\& zh_\|_stroke Chinese (ideographs: stroke order) [3] +\& zh_\|_zhuyin Chinese (ideographs: zhuyin order) [3] +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +Locales according to the default \s-1UCA\s0 rules include +am (Amharic) without \f(CW\*(C`[reorder Ethi]\*(C'\fR, +bg (Bulgarian) without \f(CW\*(C`[reorder Cyrl]\*(C'\fR, +chr (Cherokee) without \f(CW\*(C`[reorder Cher]\*(C'\fR, +de (German), +en (English), +fr (French), +ga (Irish), +id (Indonesian), +it (Italian), +ka (Georgian) without \f(CW\*(C`[reorder Geor]\*(C'\fR, +mn (Mongolian) without \f(CW\*(C`[reorder Cyrl Mong]\*(C'\fR, +ms (Malay), +nl (Dutch), +pt (Portuguese), +ru (Russian) without \f(CW\*(C`[reorder Cyrl]\*(C'\fR, +sw (Swahili), +zu (Zulu). +.PP +\&\fBNote\fR +.PP +[1] ja: Ideographs are sorted in \s-1JIS X 0208\s0 order. +Fullwidth and halfwidth forms are identical to their regular form. +The difference between hiragana and katakana is at the 4th level, +the comparison also requires \f(CW\*(C`(variable => \*(AqNon\-ignorable\*(Aq)\*(C'\fR, +and then \f(CW\*(C`katakana_before_hiragana\*(C'\fR has no effect. +.PP +[2] ko: Plenty of ideographs are sorted by their reading. Such +an ideograph is primary (level 1) equal to, and secondary (level 2) +greater than, the corresponding hangul syllable. +.PP +[3] zh_\|_pinyin, zh_\|_stroke and zh_\|_zhuyin: implemented alt='short', +where a smaller number of ideographs are tailored. +.SS "A list of variant codes and their aliases" +.IX Subsection "A list of variant codes and their aliases" +.Vb 10 +\& variant code alias +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& dictionary dict +\& phonebook phone phonebk +\& reformed reform +\& traditional trad +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& big5han big5 +\& gb2312han gb2312 +\& pinyin +\& stroke +\& zhuyin +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +Note: 'pinyin' is Han in Latin, 'zhuyin' is Han in Bopomofo. +.SH "INSTALL" +.IX Header "INSTALL" +Installation of \f(CW\*(C`Unicode::Collate::Locale\*(C'\fR requires \fICollate/Locale.pm\fR, +\&\fICollate/Locale/*.pm\fR, \fICollate/CJK/*.pm\fR and \fICollate/allkeys.txt\fR. +On building, \f(CW\*(C`Unicode::Collate::Locale\*(C'\fR doesn't require +any of \fIdata/*.txt\fR, \fIgendata/*\fR, and \fImklocale\fR. +Tests for \f(CW\*(C`Unicode::Collate::Locale\*(C'\fR are named \fIt/loc_*.t\fR. +.SH "CAVEAT" +.IX Header "CAVEAT" +.IP "Tailoring is not maximum" 4 +.IX Item "Tailoring is not maximum" +Even if a certain letter is tailored, its equivalent would not always +tailored as well as it. For example, even though W is tailored, +fullwidth W (\f(CW\*(C`U+FF37\*(C'\fR), W with acute (\f(CW\*(C`U+1E82\*(C'\fR), etc. are not +tailored. The result may depend on whether source strings are +normalized or not, and whether decomposed or composed. +Thus \f(CW\*(C`(normalization => undef)\*(C'\fR is less preferred. +.IP "Collation reordering is not supported" 4 +.IX Item "Collation reordering is not supported" +The order of any groups including scripts is not changed. +.SS "Reference" +.IX Subsection "Reference" +.Vb 10 +\& locale based CLDR or other reference +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& af 30 = 1.8.1 +\& ar 30 = 28 ("compat" wo [reorder Arab]) = 1.9.0 +\& as 30 = 28 (without [reorder Beng..]) = 23 +\& az 30 = 24 ("standard" wo [reorder Latn Cyrl]) +\& be 30 = 28 (without [reorder Cyrl]) +\& bn 30 = 28 ("standard" wo [reorder Beng..]) = 2.0.1 +\& bs 30 = 28 (type="standard": [import hr]) +\& bs_Cyrl 30 = 28 (type="standard": [import sr]) +\& ca 30 = 23 (alt="proposed" type="standard") +\& cs 30 = 1.8.1 (type="standard") +\& cu 34 = 30 (without [reorder Cyrl]) +\& cy 30 = 1.8.1 +\& da 22.1 = 1.8.1 (type="standard") +\& de_\|_phonebook 30 = 2.0 (type="phonebook") +\& de_AT_phonebook 30 = 27 (type="phonebook") +\& dsb 30 = 26 +\& ee 30 = 21 +\& eo 30 = 1.8.1 +\& es 30 = 1.9.0 (type="standard") +\& es_\|_traditional 30 = 1.8.1 (type="traditional") +\& et 30 = 26 +\& fa 22.1 = 1.8.1 +\& fi 22.1 = 1.8.1 (type="standard" alt="proposed") +\& fi_\|_phonebook 22.1 = 1.8.1 (type="phonebook") +\& fil 30 = 1.9.0 (type="standard") = 1.8.1 +\& fo 22.1 = 1.8.1 (alt="proposed" type="standard") +\& fr_CA 30 = 1.9.0 +\& gu 30 = 28 ("standard" wo [reorder Gujr..]) = 1.9.0 +\& ha 30 = 1.9.0 +\& haw 30 = 24 +\& he 30 = 28 (without [reorder Hebr]) = 23 +\& hi 30 = 28 (without [reorder Deva..]) = 1.9.0 +\& hr 30 = 28 ("standard" wo [reorder Latn Cyrl]) = 1.9.0 +\& hu 22.1 = 1.8.1 (alt="proposed" type="standard") +\& hy 30 = 28 (without [reorder Armn]) = 1.8.1 +\& ig 30 = 1.8.1 +\& is 22.1 = 1.8.1 (type="standard") +\& ja 22.1 = 1.8.1 (type="standard") +\& kk 30 = 28 (without [reorder Cyrl]) +\& kl 22.1 = 1.8.1 (type="standard") +\& kn 30 = 28 ("standard" wo [reorder Knda..]) = 1.9.0 +\& ko 22.1 = 1.8.1 (type="standard") +\& kok 30 = 28 (without [reorder Deva..]) = 1.8.1 +\& lkt 30 = 25 +\& ln 30 = 2.0 (type="standard") = 1.8.1 +\& lt 22.1 = 1.9.0 +\& lv 22.1 = 1.9.0 (type="standard") = 1.8.1 +\& mk 30 = 28 (without [reorder Cyrl]) +\& ml 22.1 = 1.9.0 +\& mr 30 = 28 (without [reorder Deva..]) = 1.8.1 +\& mt 22.1 = 1.9.0 +\& nb 22.1 = 2.0 (type="standard") +\& nn 22.1 = 2.0 (type="standard") +\& nso [*] 26 = 1.8.1 +\& om 22.1 = 1.8.1 +\& or 30 = 28 (without [reorder Orya..]) = 1.9.0 +\& pa 22.1 = 1.8.1 +\& pl 30 = 1.8.1 +\& ro 30 = 1.9.0 (type="standard") +\& sa [*] 1.9.1 = 1.8.1 (type="standard" alt="proposed") +\& se 22.1 = 1.8.1 (type="standard") +\& si 30 = 28 ("standard" wo [reorder Sinh..]) = 1.9.0 +\& si_\|_dictionary 30 = 28 ("dictionary" wo [reorder Sinh..]) = 1.9.0 +\& sk 22.1 = 1.9.0 (type="standard") +\& sl 22.1 = 1.8.1 (type="standard" alt="proposed") +\& sq 22.1 = 1.8.1 (alt="proposed" type="standard") +\& sr 30 = 28 (without [reorder Cyrl]) +\& sr_Latn 30 = 28 (type="standard": [import hr]) +\& sv 22.1 = 1.9.0 (type="standard") +\& sv_\|_reformed 22.1 = 1.8.1 (type="reformed") +\& ta 22.1 = 1.9.0 +\& te 30 = 28 (without [reorder Telu..]) = 1.9.0 +\& th 22.1 = 22 +\& tn [*] 26 = 1.8.1 +\& to 22.1 = 22 +\& tr 22.1 = 1.8.1 (type="standard") +\& uk 30 = 28 (without [reorder Cyrl]) +\& ug_Cyrl https://en.wikipedia.org/wiki/Uyghur_Cyrillic_alphabet +\& ur 22.1 = 1.9.0 +\& vi 22.1 = 1.8.1 +\& vo 30 = 25 +\& wae 30 = 2.0 +\& wo [*] 1.9.1 = 1.8.1 +\& yo 30 = 1.8.1 +\& zh 22.1 = 1.8.1 (type="standard") +\& zh_\|_big5han 22.1 = 1.8.1 (type="big5han") +\& zh_\|_gb2312han 22.1 = 1.8.1 (type="gb2312han") +\& zh_\|_pinyin 22.1 = 2.0 (type=\*(Aqpinyin\*(Aq alt=\*(Aqshort\*(Aq) +\& zh_\|_stroke 22.1 = 1.9.1 (type=\*(Aqstroke\*(Aq alt=\*(Aqshort\*(Aq) +\& zh_\|_zhuyin 22.1 = 22 (type=\*(Aqzhuyin\*(Aq alt=\*(Aqshort\*(Aq) +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +.Ve +.PP +[*] http://www.unicode.org/repos/cldr/tags/latest/seed/collation/ +.SH "AUTHOR" +.IX Header "AUTHOR" +The Unicode::Collate::Locale module for perl was written +by \s-1SADAHIRO\s0 Tomoyuki, . +This module is Copyright(C) 2004\-2018, \s-1SADAHIRO\s0 Tomoyuki. Japan. +All rights reserved. +.PP +This module is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "Unicode Collation Algorithm \- \s-1UTS\s0 #10" 4 +.IX Item "Unicode Collation Algorithm - UTS #10" + +.IP "The Default Unicode Collation Element Table (\s-1DUCET\s0)" 4 +.IX Item "The Default Unicode Collation Element Table (DUCET)" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + +.IP "\s-1CLDR\s0 \- Unicode Common Locale Data Repository" 4 +.IX Item "CLDR - Unicode Common Locale Data Repository" + +.IP "Unicode::Collate" 4 +.IX Item "Unicode::Collate" +.PD 0 +.IP "Unicode::Normalize" 4 +.IX Item "Unicode::Normalize" diff --git a/data/miniconda3/man/man3/Unicode%3A%3ACollate.3 b/data/miniconda3/man/man3/Unicode%3A%3ACollate.3 new file mode 100644 index 0000000000000000000000000000000000000000..d149d7fa9a2cec2a941f0d940d0b87c949f1b2c7 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ACollate.3 @@ -0,0 +1,1258 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Collate 3" +.TH Unicode::Collate 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Collate \- Unicode Collation Algorithm +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Unicode::Collate; +\& +\& #construct +\& $Collator = Unicode::Collate\->new(%tailoring); +\& +\& #sort +\& @sorted = $Collator\->sort(@not_sorted); +\& +\& #compare +\& $result = $Collator\->cmp($a, $b); # returns 1, 0, or \-1. +.Ve +.PP +\&\fBNote:\fR Strings in \f(CW@not_sorted\fR, \f(CW$a\fR and \f(CW$b\fR are interpreted +according to Perl's Unicode support. See perlunicode, +perluniintro, perlunitut, perlunifaq, utf8. +Otherwise you can use \f(CW\*(C`preprocess\*(C'\fR or should decode them before. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is an implementation of Unicode Technical Standard #10 +(a.k.a. \s-1UTS\s0 #10) \- Unicode Collation Algorithm (a.k.a. \s-1UCA\s0). +.SS "Constructor and Tailoring" +.IX Subsection "Constructor and Tailoring" +The \f(CW\*(C`new\*(C'\fR method returns a collator object. If \fBnew()\fR is called +with no parameters, the collator should do the default collation. +.PP +.Vb 10 +\& $Collator = Unicode::Collate\->new( +\& UCA_Version => $UCA_Version, +\& alternate => $alternate, # alias for \*(Aqvariable\*(Aq +\& backwards => $levelNumber, # or \e@levelNumbers +\& entry => $element, +\& hangul_terminator => $term_primary_weight, +\& highestFFFF => $bool, +\& identical => $bool, +\& ignoreName => qr/$ignoreName/, +\& ignoreChar => qr/$ignoreChar/, +\& ignore_level2 => $bool, +\& katakana_before_hiragana => $bool, +\& level => $collationLevel, +\& long_contraction => $bool, +\& minimalFFFE => $bool, +\& normalization => $normalization_form, +\& overrideCJK => \e&overrideCJK, +\& overrideHangul => \e&overrideHangul, +\& preprocess => \e&preprocess, +\& rearrange => \e@charList, +\& rewrite => \e&rewrite, +\& suppress => \e@charList, +\& table => $filename, +\& undefName => qr/$undefName/, +\& undefChar => qr/$undefChar/, +\& upper_before_lower => $bool, +\& variable => $variable, +\& ); +.Ve +.IP "UCA_Version" 4 +.IX Item "UCA_Version" +If the revision (previously \*(L"tracking version\*(R") number of \s-1UCA\s0 is given, +behavior of that revision is emulated on collating. +If omitted, the return value of \f(CW\*(C`UCA_Version()\*(C'\fR is used. +.Sp +The following revisions are supported. The default is 36. +.Sp +.Vb 10 +\& UCA Unicode Standard DUCET (@version) +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 8 3.1 3.0.1 (3.0.1d9) +\& 9 3.1 with Corrigendum 3 3.1.1 (3.1.1) +\& 11 4.0 4.0.0 (4.0.0) +\& 14 4.1.0 4.1.0 (4.1.0) +\& 16 5.0 5.0.0 (5.0.0) +\& 18 5.1.0 5.1.0 (5.1.0) +\& 20 5.2.0 5.2.0 (5.2.0) +\& 22 6.0.0 6.0.0 (6.0.0) +\& 24 6.1.0 6.1.0 (6.1.0) +\& 26 6.2.0 6.2.0 (6.2.0) +\& 28 6.3.0 6.3.0 (6.3.0) +\& 30 7.0.0 7.0.0 (7.0.0) +\& 32 8.0.0 8.0.0 (8.0.0) +\& 34 9.0.0 9.0.0 (9.0.0) +\& 36 10.0.0 10.0.0(10.0.0) +.Ve +.Sp +* See below for \f(CW\*(C`long_contraction\*(C'\fR with \f(CW\*(C`UCA_Version\*(C'\fR 22 and 24. +.Sp +* Noncharacters (e.g. U+FFFF) are not ignored, and can be overridden +since \f(CW\*(C`UCA_Version\*(C'\fR 22. +.Sp +* Out-of-range codepoints (greater than U+10FFFF) are not ignored, +and can be overridden since \f(CW\*(C`UCA_Version\*(C'\fR 22. +.Sp +* Fully ignorable characters were ignored, and would not interrupt +contractions with \f(CW\*(C`UCA_Version\*(C'\fR 9 and 11. +.Sp +* Treatment of ignorables after variables and some behaviors +were changed at \f(CW\*(C`UCA_Version\*(C'\fR 9. +.Sp +* Characters regarded as \s-1CJK\s0 unified ideographs (cf. \f(CW\*(C`overrideCJK\*(C'\fR) +depend on \f(CW\*(C`UCA_Version\*(C'\fR. +.Sp +* Many hangul jamo are assigned at \f(CW\*(C`UCA_Version\*(C'\fR 20, that will affect +\&\f(CW\*(C`hangul_terminator\*(C'\fR. +.IP "alternate" 4 +.IX Item "alternate" +\&\-\- see 3.2.2 Alternate Weighting, version 8 of \s-1UTS\s0 #10 +.Sp +For backward compatibility, \f(CW\*(C`alternate\*(C'\fR (old name) can be used +as an alias for \f(CW\*(C`variable\*(C'\fR. +.IP "backwards" 4 +.IX Item "backwards" +\&\-\- see 3.4 Backward Accents, \s-1UTS\s0 #10. +.Sp +.Vb 1 +\& backwards => $levelNumber or \e@levelNumbers +.Ve +.Sp +Weights in reverse order; ex. level 2 (diacritic ordering) in French. +If omitted (or \f(CW$levelNumber\fR is \f(CW\*(C`undef\*(C'\fR or \f(CW\*(C`\e@levelNumbers\*(C'\fR is \f(CW\*(C`[]\*(C'\fR), +forwards at all the levels. +.IP "entry" 4 +.IX Item "entry" +\&\-\- see 5 Tailoring; 9.1 Allkeys File Format, \s-1UTS\s0 #10. +.Sp +If the same character (or a sequence of characters) exists +in the collation element table through \f(CW\*(C`table\*(C'\fR, +mapping to collation elements is overridden. +If it does not exist, the mapping is defined additionally. +.Sp +.Vb 12 +\& entry => <<\*(AqENTRY\*(Aq, # for DUCET v4.0.0 (allkeys\-4.0.0.txt) +\&0063 0068 ; [.0E6A.0020.0002.0063] # ch +\&0043 0068 ; [.0E6A.0020.0007.0043] # Ch +\&0043 0048 ; [.0E6A.0020.0008.0043] # CH +\&006C 006C ; [.0F4C.0020.0002.006C] # ll +\&004C 006C ; [.0F4C.0020.0007.004C] # Ll +\&004C 004C ; [.0F4C.0020.0008.004C] # LL +\&00F1 ; [.0F7B.0020.0002.00F1] # n\-tilde +\&006E 0303 ; [.0F7B.0020.0002.00F1] # n\-tilde +\&00D1 ; [.0F7B.0020.0008.00D1] # N\-tilde +\&004E 0303 ; [.0F7B.0020.0008.00D1] # N\-tilde +\&ENTRY +\& +\& entry => <<\*(AqENTRY\*(Aq, # for DUCET v4.0.0 (allkeys\-4.0.0.txt) +\&00E6 ; [.0E33.0020.0002.00E6][.0E8B.0020.0002.00E6] # ae ligature as +\&00C6 ; [.0E33.0020.0008.00C6][.0E8B.0020.0008.00C6] # AE ligature as +\&ENTRY +.Ve +.Sp +\&\fB\s-1NOTE:\s0\fR The code point in the \s-1UCA\s0 file format (before \f(CW\*(Aq;\*(Aq\fR) +\&\fBmust\fR be a Unicode code point (defined as hexadecimal), +but not a native code point. +So \f(CW0063\fR must always denote \f(CW\*(C`U+0063\*(C'\fR, +but not a character of \f(CW"\ex63"\fR. +.Sp +Weighting may vary depending on collation element table. +So ensure the weights defined in \f(CW\*(C`entry\*(C'\fR will be consistent with +those in the collation element table loaded via \f(CW\*(C`table\*(C'\fR. +.Sp +In \s-1DUCET\s0 v4.0.0, primary weight of \f(CW\*(C`C\*(C'\fR is \f(CW0E60\fR +and that of \f(CW\*(C`D\*(C'\fR is \f(CW\*(C`0E6D\*(C'\fR. So setting primary weight of \f(CW\*(C`CH\*(C'\fR to \f(CW\*(C`0E6A\*(C'\fR +(as a value between \f(CW0E60\fR and \f(CW\*(C`0E6D\*(C'\fR) +makes ordering as \f(CW\*(C`C < CH < D\*(C'\fR. +Exactly speaking \s-1DUCET\s0 already has some characters between \f(CW\*(C`C\*(C'\fR and \f(CW\*(C`D\*(C'\fR: +\&\f(CW\*(C`small capital C\*(C'\fR (\f(CW\*(C`U+1D04\*(C'\fR) with primary weight \f(CW0E64\fR, +\&\f(CW\*(C`c\-hook/C\-hook\*(C'\fR (\f(CW\*(C`U+0188/U+0187\*(C'\fR) with \f(CW0E65\fR, +and \f(CW\*(C`c\-curl\*(C'\fR (\f(CW\*(C`U+0255\*(C'\fR) with \f(CW0E69\fR. +Then primary weight \f(CW\*(C`0E6A\*(C'\fR for \f(CW\*(C`CH\*(C'\fR makes \f(CW\*(C`CH\*(C'\fR +ordered between \f(CW\*(C`c\-curl\*(C'\fR and \f(CW\*(C`D\*(C'\fR. +.IP "hangul_terminator" 4 +.IX Item "hangul_terminator" +\&\-\- see 7.1.4 Trailing Weights, \s-1UTS\s0 #10. +.Sp +If a true value is given (non-zero but should be positive), +it will be added as a terminator primary weight to the end of +every standard Hangul syllable. Secondary and any higher weights +for terminator are set to zero. +If the value is false or \f(CW\*(C`hangul_terminator\*(C'\fR key does not exist, +insertion of terminator weights will not be performed. +.Sp +Boundaries of Hangul syllables are determined +according to conjoining Jamo behavior in \fIthe Unicode Standard\fR +and \fIHangulSyllableType.txt\fR. +.Sp +\&\fBImplementation Note:\fR +(1) For expansion mapping (Unicode character mapped +to a sequence of collation elements), a terminator will not be added +between collation elements, even if Hangul syllable boundary exists there. +Addition of terminator is restricted to the next position +to the last collation element. +.Sp +(2) Non-conjoining Hangul letters +(Compatibility Jamo, halfwidth Jamo, and enclosed letters) are not +automatically terminated with a terminator primary weight. +These characters may need terminator included in a collation element +table beforehand. +.IP "highestFFFF" 4 +.IX Item "highestFFFF" +\&\-\- see 2.4 Tailored noncharacter weights, \s-1UTS\s0 #35 (\s-1LDML\s0) Part 5: Collation. +.Sp +If the parameter is made true, \f(CW\*(C`U+FFFF\*(C'\fR has a highest primary weight. +When a boolean of \f(CW\*(C`$coll\->ge($str, "abc")\*(C'\fR and +\&\f(CW\*(C`$coll\->le($str, "abc\ex{FFFF}")\*(C'\fR is true, it is expected that \f(CW$str\fR +begins with \f(CW"abc"\fR, or another primary equivalent. +\&\f(CW$str\fR may be \f(CW"abcd"\fR, \f(CW"abc012"\fR, but should not include \f(CW\*(C`U+FFFF\*(C'\fR +such as \f(CW"abc\ex{FFFF}xyz"\fR. +.Sp +\&\f(CW\*(C`$coll\->le($str, "abc\ex{FFFF}")\*(C'\fR works like \f(CW\*(C`$coll\->lt($str, "abd")\*(C'\fR +almost, but the latter has a problem that you should know which letter is +next to \f(CW\*(C`c\*(C'\fR. For a certain language where \f(CW\*(C`ch\*(C'\fR as the next letter, +\&\f(CW"abch"\fR is greater than \f(CW"abc\ex{FFFF}"\fR, but less than \f(CW"abd"\fR. +.Sp +Note: +This is equivalent to \f(CW\*(C`(entry => \*(AqFFFF ; [.FFFE.0020.0005.FFFF]\*(Aq)\*(C'\fR. +Any other character than \f(CW\*(C`U+FFFF\*(C'\fR can be tailored by \f(CW\*(C`entry\*(C'\fR. +.IP "identical" 4 +.IX Item "identical" +\&\-\- see A.3 Deterministic Comparison, \s-1UTS\s0 #10. +.Sp +By default, strings whose weights are equal should be equal, +even though their code points are not equal. +Completely ignorable characters are ignored. +.Sp +If the parameter is made true, a final, tie-breaking level is used. +If no difference of weights is found after the comparison through +all the level specified by \f(CW\*(C`level\*(C'\fR, the comparison with code points +will be performed. +For the tie-breaking comparison, the sort key has code points +of the original string appended. +Completely ignorable characters are not ignored. +.Sp +If \f(CW\*(C`preprocess\*(C'\fR and/or \f(CW\*(C`normalization\*(C'\fR is applied, the code points +of the string after them (in \s-1NFD\s0 by default) are used. +.IP "ignoreChar" 4 +.IX Item "ignoreChar" +.PD 0 +.IP "ignoreName" 4 +.IX Item "ignoreName" +.PD +\&\-\- see 3.6 Variable Weighting, \s-1UTS\s0 #10. +.Sp +Makes the entry in the table completely ignorable; +i.e. as if the weights were zero at all level. +.Sp +Through \f(CW\*(C`ignoreChar\*(C'\fR, any character matching \f(CW\*(C`qr/$ignoreChar/\*(C'\fR +will be ignored. Through \f(CW\*(C`ignoreName\*(C'\fR, any character whose name +(given in the \f(CW\*(C`table\*(C'\fR file as a comment) matches \f(CW\*(C`qr/$ignoreName/\*(C'\fR +will be ignored. +.Sp +E.g. when 'a' and 'e' are ignorable, +\&'element' is equal to 'lament' (or 'lmnt'). +.IP "ignore_level2" 4 +.IX Item "ignore_level2" +\&\-\- see 5.1 Parametric Tailoring, \s-1UTS\s0 #10. +.Sp +By default, case-sensitive comparison (that is level 3 difference) +won't ignore accents (that is level 2 difference). +.Sp +If the parameter is made true, accents (and other primary ignorable +characters) are ignored, even though cases are taken into account. +.Sp +\&\fB\s-1NOTE\s0\fR: \f(CW\*(C`level\*(C'\fR should be 3 or greater. +.IP "katakana_before_hiragana" 4 +.IX Item "katakana_before_hiragana" +\&\-\- see 7.2 Tertiary Weight Table, \s-1UTS\s0 #10. +.Sp +By default, hiragana is before katakana. +If the parameter is made true, this is reversed. +.Sp +\&\fB\s-1NOTE\s0\fR: This parameter simplemindedly assumes that any hiragana/katakana +distinctions must occur in level 3, and their weights at level 3 must be +same as those mentioned in 7.3.1, \s-1UTS\s0 #10. +If you define your collation elements which violate this requirement, +this parameter does not work validly. +.IP "level" 4 +.IX Item "level" +\&\-\- see 4.3 Form Sort Key, \s-1UTS\s0 #10. +.Sp +Set the maximum level. +Any higher levels than the specified one are ignored. +.Sp +.Vb 4 +\& Level 1: alphabetic ordering +\& Level 2: diacritic ordering +\& Level 3: case ordering +\& Level 4: tie\-breaking (e.g. in the case when variable is \*(Aqshifted\*(Aq) +\& +\& ex.level => 2, +.Ve +.Sp +If omitted, the maximum is the 4th. +.Sp +\&\fB\s-1NOTE:\s0\fR The \s-1DUCET\s0 includes weights over 0xFFFF at the 4th level. +But this module only uses weights within 0xFFFF. +When \f(CW\*(C`variable\*(C'\fR is 'blanked' or 'non\-ignorable' (other than 'shifted' +and 'shift\-trimmed'), the level 4 may be unreliable. +.Sp +See also \f(CW\*(C`identical\*(C'\fR. +.IP "long_contraction" 4 +.IX Item "long_contraction" +\&\-\- see 3.8.2 Well-Formedness of the \s-1DUCET, 4.2\s0 Produce Array, \s-1UTS\s0 #10. +.Sp +If the parameter is made true, for a contraction with three or more +characters (here nicknamed \*(L"long contraction\*(R"), initial substrings +will be handled. +For example, a contraction \s-1ABC,\s0 where A is a starter, and B and C +are non-starters (character with non-zero combining character class), +will be detected even if there is not \s-1AB\s0 as a contraction. +.Sp +\&\fBDefault:\fR Usually false. +If \f(CW\*(C`UCA_Version\*(C'\fR is 22 or 24, and the value of \f(CW\*(C`long_contraction\*(C'\fR +is not specified in \f(CW\*(C`new()\*(C'\fR, a true value is set implicitly. +This is a workaround to pass Conformance Tests for Unicode 6.0.0 and 6.1.0. +.Sp +\&\f(CW\*(C`change()\*(C'\fR handles \f(CW\*(C`long_contraction\*(C'\fR explicitly only. +If \f(CW\*(C`long_contraction\*(C'\fR is not specified in \f(CW\*(C`change()\*(C'\fR, even though +\&\f(CW\*(C`UCA_Version\*(C'\fR is changed, \f(CW\*(C`long_contraction\*(C'\fR will not be changed. +.Sp +\&\fBLimitation:\fR Scanning non-starters is one-way (no back tracking). +If \s-1AB\s0 is found but not \s-1ABC\s0 is not found, other long contraction where +the first character is A and the second is not B may not be found. +.Sp +Under \f(CW\*(C`(normalization => undef)\*(C'\fR, detection step of discontiguous +contractions will be skipped. +.Sp +\&\fBNote:\fR The following contractions in \s-1DUCET\s0 are not considered +in steps S2.1.1 to S2.1.3, where they are discontiguous. +.Sp +.Vb 2 +\& 0FB2 0F71 0F80 (TIBETAN VOWEL SIGN VOCALIC RR) +\& 0FB3 0F71 0F80 (TIBETAN VOWEL SIGN VOCALIC LL) +.Ve +.Sp +For example \f(CW\*(C`TIBETAN VOWEL SIGN VOCALIC RR\*(C'\fR with \f(CW\*(C`COMBINING TILDE OVERLAY\*(C'\fR +(\f(CW\*(C`U+0344\*(C'\fR) is \f(CW\*(C`0FB2 0344 0F71 0F80\*(C'\fR in \s-1NFD.\s0 +In this case \f(CW\*(C`0FB2 0F80\*(C'\fR (\f(CW\*(C`TIBETAN VOWEL SIGN VOCALIC R\*(C'\fR) is detected, +instead of \f(CW\*(C`0FB2 0F71 0F80\*(C'\fR. +Inserted \f(CW0344\fR makes \f(CW\*(C`0FB2 0F71 0F80\*(C'\fR discontiguous and lack of +contraction \f(CW\*(C`0FB2 0F71\*(C'\fR prohibits \f(CW\*(C`0FB2 0F71 0F80\*(C'\fR from being detected. +.IP "minimalFFFE" 4 +.IX Item "minimalFFFE" +\&\-\- see 1.1.1 U+FFFE, \s-1UTS\s0 #35 (\s-1LDML\s0) Part 5: Collation. +.Sp +If the parameter is made true, \f(CW\*(C`U+FFFE\*(C'\fR has a minimal primary weight. +The comparison between \f(CW"$a1\ex{FFFE}$a2"\fR and \f(CW"$b1\ex{FFFE}$b2"\fR +first compares \f(CW$a1\fR and \f(CW$b1\fR at level 1, and +then \f(CW$a2\fR and \f(CW$b2\fR at level 1, as followed. +.Sp +.Vb 12 +\& "ab\ex{FFFE}a" +\& "Ab\ex{FFFE}a" +\& "ab\ex{FFFE}c" +\& "Ab\ex{FFFE}c" +\& "ab\ex{FFFE}xyz" +\& "abc\ex{FFFE}def" +\& "abc\ex{FFFE}xYz" +\& "aBc\ex{FFFE}xyz" +\& "abcX\ex{FFFE}def" +\& "abcx\ex{FFFE}xyz" +\& "b\ex{FFFE}aaa" +\& "bbb\ex{FFFE}a" +.Ve +.Sp +Note: +This is equivalent to \f(CW\*(C`(entry => \*(AqFFFE ; [.0001.0020.0005.FFFE]\*(Aq)\*(C'\fR. +Any other character than \f(CW\*(C`U+FFFE\*(C'\fR can be tailored by \f(CW\*(C`entry\*(C'\fR. +.IP "normalization" 4 +.IX Item "normalization" +\&\-\- see 4.1 Normalize, \s-1UTS\s0 #10. +.Sp +If specified, strings are normalized before preparation of sort keys +(the normalization is executed after preprocess). +.Sp +A form name \f(CW\*(C`Unicode::Normalize::normalize()\*(C'\fR accepts will be applied +as \f(CW$normalization_form\fR. +Acceptable names include \f(CW\*(AqNFD\*(Aq\fR, \f(CW\*(AqNFC\*(Aq\fR, \f(CW\*(AqNFKD\*(Aq\fR, and \f(CW\*(AqNFKC\*(Aq\fR. +See \f(CW\*(C`Unicode::Normalize::normalize()\*(C'\fR for detail. +If omitted, \f(CW\*(AqNFD\*(Aq\fR is used. +.Sp +\&\f(CW\*(C`normalization\*(C'\fR is performed after \f(CW\*(C`preprocess\*(C'\fR (if defined). +.Sp +Furthermore, special values, \f(CW\*(C`undef\*(C'\fR and \f(CW"prenormalized"\fR, can be used, +though they are not concerned with \f(CW\*(C`Unicode::Normalize::normalize()\*(C'\fR. +.Sp +If \f(CW\*(C`undef\*(C'\fR (not a string \f(CW"undef"\fR) is passed explicitly +as the value for this key, +any normalization is not carried out (this may make tailoring easier +if any normalization is not desired). Under \f(CW\*(C`(normalization => undef)\*(C'\fR, +only contiguous contractions are resolved; +e.g. even if \f(CW\*(C`A\-ring\*(C'\fR (and \f(CW\*(C`A\-ring\-cedilla\*(C'\fR) is ordered after \f(CW\*(C`Z\*(C'\fR, +\&\f(CW\*(C`A\-cedilla\-ring\*(C'\fR would be primary equal to \f(CW\*(C`A\*(C'\fR. +In this point, +\&\f(CW\*(C`(normalization => undef, preprocess => sub { NFD(shift) })\*(C'\fR +\&\fBis not\fR equivalent to \f(CW\*(C`(normalization => \*(AqNFD\*(Aq)\*(C'\fR. +.Sp +In the case of \f(CW\*(C`(normalization => "prenormalized")\*(C'\fR, +any normalization is not performed, but +discontiguous contractions with combining characters are performed. +Therefore +\&\f(CW\*(C`(normalization => \*(Aqprenormalized\*(Aq, preprocess => sub { NFD(shift) })\*(C'\fR +\&\fBis\fR equivalent to \f(CW\*(C`(normalization => \*(AqNFD\*(Aq)\*(C'\fR. +If source strings are finely prenormalized, +\&\f(CW\*(C`(normalization => \*(Aqprenormalized\*(Aq)\*(C'\fR may save time for normalization. +.Sp +Except \f(CW\*(C`(normalization => undef)\*(C'\fR, +\&\fBUnicode::Normalize\fR is required (see also \fB\s-1CAVEAT\s0\fR). +.IP "overrideCJK" 4 +.IX Item "overrideCJK" +\&\-\- see 7.1 Derived Collation Elements, \s-1UTS\s0 #10. +.Sp +By default, \s-1CJK\s0 unified ideographs are ordered in Unicode codepoint +order, but those in the \s-1CJK\s0 Unified Ideographs block are less than +those in the \s-1CJK\s0 Unified Ideographs Extension A etc. +.Sp +.Vb 8 +\& In the CJK Unified Ideographs block: +\& U+4E00..U+9FA5 if UCA_Version is 8, 9 or 11. +\& U+4E00..U+9FBB if UCA_Version is 14 or 16. +\& U+4E00..U+9FC3 if UCA_Version is 18. +\& U+4E00..U+9FCB if UCA_Version is 20 or 22. +\& U+4E00..U+9FCC if UCA_Version is 24 to 30. +\& U+4E00..U+9FD5 if UCA_Version is 32 or 34. +\& U+4E00..U+9FEA if UCA_Version is 36. +\& +\& In the CJK Unified Ideographs Extension blocks: +\& Ext.A (U+3400..U+4DB5) and Ext.B (U+20000..U+2A6D6) in any UCA_Version. +\& Ext.C (U+2A700..U+2B734) if UCA_Version is 20 or later. +\& Ext.D (U+2B740..U+2B81D) if UCA_Version is 22 or later. +\& Ext.E (U+2B820..U+2CEA1) if UCA_Version is 32 or later. +\& Ext.F (U+2CEB0..U+2EBE0) if UCA_Version is 36. +.Ve +.Sp +Through \f(CW\*(C`overrideCJK\*(C'\fR, ordering of \s-1CJK\s0 unified ideographs (including +extensions) can be overridden. +.Sp +ex. \s-1CJK\s0 unified ideographs in the \s-1JIS\s0 code point order. +.Sp +.Vb 7 +\& overrideCJK => sub { +\& my $u = shift; # get a Unicode codepoint +\& my $b = pack(\*(Aqn\*(Aq, $u); # to UTF\-16BE +\& my $s = your_unicode_to_sjis_converter($b); # convert +\& my $n = unpack(\*(Aqn\*(Aq, $s); # convert sjis to short +\& [ $n, 0x20, 0x2, $u ]; # return the collation element +\& }, +.Ve +.Sp +The return value may be an arrayref of 1st to 4th weights as shown +above. The return value may be an integer as the primary weight +as shown below. If \f(CW\*(C`undef\*(C'\fR is returned, the default derived +collation element will be used. +.Sp +.Vb 7 +\& overrideCJK => sub { +\& my $u = shift; # get a Unicode codepoint +\& my $b = pack(\*(Aqn\*(Aq, $u); # to UTF\-16BE +\& my $s = your_unicode_to_sjis_converter($b); # convert +\& my $n = unpack(\*(Aqn\*(Aq, $s); # convert sjis to short +\& return $n; # return the primary weight +\& }, +.Ve +.Sp +The return value may be a list containing zero or more of +an arrayref, an integer, or \f(CW\*(C`undef\*(C'\fR. +.Sp +ex. ignores all \s-1CJK\s0 unified ideographs. +.Sp +.Vb 1 +\& overrideCJK => sub {()}, # CODEREF returning empty list +\& +\& # where \->eq("Pe\ex{4E00}rl", "Perl") is true +\& # as U+4E00 is a CJK unified ideograph and to be ignorable. +.Ve +.Sp +If a false value (including \f(CW\*(C`undef\*(C'\fR) is passed, \f(CW\*(C`overrideCJK\*(C'\fR +has no effect. +\&\f(CW\*(C`$Collator\->change(overrideCJK => 0)\*(C'\fR resets the old one. +.Sp +But assignment of weight for \s-1CJK\s0 unified ideographs +in \f(CW\*(C`table\*(C'\fR or \f(CW\*(C`entry\*(C'\fR is still valid. +If \f(CW\*(C`undef\*(C'\fR is passed explicitly as the value for this key, +weights for \s-1CJK\s0 unified ideographs are treated as undefined. +However when \f(CW\*(C`UCA_Version\*(C'\fR > 8, \f(CW\*(C`(overrideCJK => undef)\*(C'\fR +has no special meaning. +.Sp +\&\fBNote:\fR In addition to them, 12 \s-1CJK\s0 compatibility ideographs (\f(CW\*(C`U+FA0E\*(C'\fR, +\&\f(CW\*(C`U+FA0F\*(C'\fR, \f(CW\*(C`U+FA11\*(C'\fR, \f(CW\*(C`U+FA13\*(C'\fR, \f(CW\*(C`U+FA14\*(C'\fR, \f(CW\*(C`U+FA1F\*(C'\fR, \f(CW\*(C`U+FA21\*(C'\fR, \f(CW\*(C`U+FA23\*(C'\fR, +\&\f(CW\*(C`U+FA24\*(C'\fR, \f(CW\*(C`U+FA27\*(C'\fR, \f(CW\*(C`U+FA28\*(C'\fR, \f(CW\*(C`U+FA29\*(C'\fR) are also treated as \s-1CJK\s0 unified +ideographs. But they can't be overridden via \f(CW\*(C`overrideCJK\*(C'\fR when you use +\&\s-1DUCET,\s0 as the table includes weights for them. \f(CW\*(C`table\*(C'\fR or \f(CW\*(C`entry\*(C'\fR has +priority over \f(CW\*(C`overrideCJK\*(C'\fR. +.IP "overrideHangul" 4 +.IX Item "overrideHangul" +\&\-\- see 7.1 Derived Collation Elements, \s-1UTS\s0 #10. +.Sp +By default, Hangul syllables are decomposed into Hangul Jamo, +even if \f(CW\*(C`(normalization => undef)\*(C'\fR. +But the mapping of Hangul syllables may be overridden. +.Sp +This parameter works like \f(CW\*(C`overrideCJK\*(C'\fR, so see there for examples. +.Sp +If you want to override the mapping of Hangul syllables, +\&\s-1NFD\s0 and \s-1NFKD\s0 are not appropriate, since \s-1NFD\s0 and \s-1NFKD\s0 will decompose +Hangul syllables before overriding. \s-1FCD\s0 may decompose Hangul syllables +as the case may be. +.Sp +If a false value (but not \f(CW\*(C`undef\*(C'\fR) is passed, \f(CW\*(C`overrideHangul\*(C'\fR +has no effect. +\&\f(CW\*(C`$Collator\->change(overrideHangul => 0)\*(C'\fR resets the old one. +.Sp +If \f(CW\*(C`undef\*(C'\fR is passed explicitly as the value for this key, +weight for Hangul syllables is treated as undefined +without decomposition into Hangul Jamo. +But definition of weight for Hangul syllables +in \f(CW\*(C`table\*(C'\fR or \f(CW\*(C`entry\*(C'\fR is still valid. +.IP "overrideOut" 4 +.IX Item "overrideOut" +\&\-\- see 7.1.1 Handling Ill-Formed Code Unit Sequences, \s-1UTS\s0 #10. +.Sp +Perl seems to allow out-of-range values (greater than 0x10FFFF). +By default, out-of-range values are replaced with \f(CW\*(C`U+FFFD\*(C'\fR +(\s-1REPLACEMENT CHARACTER\s0) when \f(CW\*(C`UCA_Version\*(C'\fR >= 22, +or ignored when \f(CW\*(C`UCA_Version\*(C'\fR <= 20. +.Sp +When \f(CW\*(C`UCA_Version\*(C'\fR >= 22, the weights of out-of-range values +can be overridden. Though \f(CW\*(C`table\*(C'\fR or \f(CW\*(C`entry\*(C'\fR are available for them, +out-of-range values are too many. +.Sp +\&\f(CW\*(C`overrideOut\*(C'\fR can perform it algorithmically. +This parameter works like \f(CW\*(C`overrideCJK\*(C'\fR, so see there for examples. +.Sp +ex. ignores all out-of-range values. +.Sp +.Vb 1 +\& overrideOut => sub {()}, # CODEREF returning empty list +.Ve +.Sp +If a false value (including \f(CW\*(C`undef\*(C'\fR) is passed, \f(CW\*(C`overrideOut\*(C'\fR +has no effect. +\&\f(CW\*(C`$Collator\->change(overrideOut => 0)\*(C'\fR resets the old one. +.Sp +\&\fB\s-1NOTE ABOUT U+FFFD:\s0\fR +.Sp +\&\s-1UCA\s0 recommends that out-of-range values should not be ignored for security +reasons. Say, \f(CW"pe\ex{110000}rl"\fR should not be equal to \f(CW"perl"\fR. +However, \f(CW\*(C`U+FFFD\*(C'\fR is wrongly mapped to a variable collation element +in \s-1DUCET\s0 for Unicode 6.0.0 to 6.2.0, that means out-of-range values will be +ignored when \f(CW\*(C`variable\*(C'\fR isn't \f(CW\*(C`Non\-ignorable\*(C'\fR. +.Sp +The mapping of \f(CW\*(C`U+FFFD\*(C'\fR is corrected in Unicode 6.3.0. +see +(7.1.4 Trailing Weights). Such a correction is reproduced by this. +.Sp +.Vb 1 +\& overrideOut => sub { 0xFFFD }, # CODEREF returning a very large integer +.Ve +.Sp +This workaround is unnecessary since Unicode 6.3.0. +.IP "preprocess" 4 +.IX Item "preprocess" +\&\-\- see 5.4 Preprocessing, \s-1UTS\s0 #10. +.Sp +If specified, the coderef is used to preprocess each string +before the formation of sort keys. +.Sp +ex. dropping English articles, such as \*(L"a\*(R" or \*(L"the\*(R". +Then, \*(L"the pen\*(R" is before \*(L"a pencil\*(R". +.Sp +.Vb 5 +\& preprocess => sub { +\& my $str = shift; +\& $str =~ s/\eb(?:an?|the)\es+//gi; +\& return $str; +\& }, +.Ve +.Sp +\&\f(CW\*(C`preprocess\*(C'\fR is performed before \f(CW\*(C`normalization\*(C'\fR (if defined). +.Sp +ex. decoding strings in a legacy encoding such as shift-jis: +.Sp +.Vb 4 +\& $sjis_collator = Unicode::Collate\->new( +\& preprocess => \e&your_shiftjis_to_unicode_decoder, +\& ); +\& @result = $sjis_collator\->sort(@shiftjis_strings); +.Ve +.Sp +\&\fBNote:\fR Strings returned from the coderef will be interpreted +according to Perl's Unicode support. See perlunicode, +perluniintro, perlunitut, perlunifaq, utf8. +.IP "rearrange" 4 +.IX Item "rearrange" +\&\-\- see 3.5 Rearrangement, \s-1UTS\s0 #10. +.Sp +Characters that are not coded in logical order and to be rearranged. +If \f(CW\*(C`UCA_Version\*(C'\fR is equal to or less than 11, default is: +.Sp +.Vb 1 +\& rearrange => [ 0x0E40..0x0E44, 0x0EC0..0x0EC4 ], +.Ve +.Sp +If you want to disallow any rearrangement, pass \f(CW\*(C`undef\*(C'\fR or \f(CW\*(C`[]\*(C'\fR +(a reference to empty list) as the value for this key. +.Sp +If \f(CW\*(C`UCA_Version\*(C'\fR is equal to or greater than 14, default is \f(CW\*(C`[]\*(C'\fR +(i.e. no rearrangement). +.Sp +\&\fBAccording to the version 9 of \s-1UCA,\s0 this parameter shall not be used; +but it is not warned at present.\fR +.IP "rewrite" 4 +.IX Item "rewrite" +If specified, the coderef is used to rewrite lines in \f(CW\*(C`table\*(C'\fR or \f(CW\*(C`entry\*(C'\fR. +The coderef will get each line, and then should return a rewritten line +according to the \s-1UCA\s0 file format. +If the coderef returns an empty line, the line will be skipped. +.Sp +e.g. any primary ignorable characters into tertiary ignorable: +.Sp +.Vb 5 +\& rewrite => sub { +\& my $line = shift; +\& $line =~ s/\e[\e.0000\e..{4}\e..{4}\e./[.0000.0000.0000./g; +\& return $line; +\& }, +.Ve +.Sp +This example shows rewriting weights. \f(CW\*(C`rewrite\*(C'\fR is allowed to +affect code points, weights, and the name. +.Sp +\&\fB\s-1NOTE\s0\fR: \f(CW\*(C`table\*(C'\fR is available to use another table file; +preparing a modified table once would be more efficient than +rewriting lines on reading an unmodified table every time. +.IP "suppress" 4 +.IX Item "suppress" +\&\-\- see 3.12 Special-Purpose Commands, \s-1UTS\s0 #35 (\s-1LDML\s0) Part 5: Collation. +.Sp +Contractions beginning with the specified characters are suppressed, +even if those contractions are defined in \f(CW\*(C`table\*(C'\fR. +.Sp +An example for Russian and some languages using the Cyrillic script: +.Sp +.Vb 1 +\& suppress => [0x0400..0x0417, 0x041A..0x0437, 0x043A..0x045F], +.Ve +.Sp +where 0x0400 stands for \f(CW\*(C`U+0400\*(C'\fR, \s-1CYRILLIC CAPITAL LETTER IE WITH GRAVE.\s0 +.Sp +\&\fB\s-1NOTE\s0\fR: Contractions via \f(CW\*(C`entry\*(C'\fR will not be suppressed. +.IP "table" 4 +.IX Item "table" +\&\-\- see 3.8 Default Unicode Collation Element Table, \s-1UTS\s0 #10. +.Sp +You can use another collation element table if desired. +.Sp +The table file should locate in the \fIUnicode/Collate\fR directory +on \f(CW@INC\fR. Say, if the filename is \fIFoo.txt\fR, +the table file is searched as \fIUnicode/Collate/Foo.txt\fR in \f(CW@INC\fR. +.Sp +By default, \fIallkeys.txt\fR (as the filename of \s-1DUCET\s0) is used. +If you will prepare your own table file, any name other than \fIallkeys.txt\fR +may be better to avoid namespace conflict. +.Sp +\&\fB\s-1NOTE\s0\fR: When \s-1XSUB\s0 is used, the \s-1DUCET\s0 is compiled on building this +module, and it may save time at the run time. +Explicit saying \f(CW\*(C`(table => \*(Aqallkeys.txt\*(Aq)\*(C'\fR, or using another table, +or using \f(CW\*(C`ignoreChar\*(C'\fR, \f(CW\*(C`ignoreName\*(C'\fR, \f(CW\*(C`undefChar\*(C'\fR, \f(CW\*(C`undefName\*(C'\fR or +\&\f(CW\*(C`rewrite\*(C'\fR will prevent this module from using the compiled \s-1DUCET.\s0 +.Sp +If \f(CW\*(C`undef\*(C'\fR is passed explicitly as the value for this key, +no file is read (but you can define collation elements via \f(CW\*(C`entry\*(C'\fR). +.Sp +A typical way to define a collation element table +without any file of table: +.Sp +.Vb 11 +\& $onlyABC = Unicode::Collate\->new( +\& table => undef, +\& entry => << \*(AqENTRIES\*(Aq, +\&0061 ; [.0101.0020.0002.0061] # LATIN SMALL LETTER A +\&0041 ; [.0101.0020.0008.0041] # LATIN CAPITAL LETTER A +\&0062 ; [.0102.0020.0002.0062] # LATIN SMALL LETTER B +\&0042 ; [.0102.0020.0008.0042] # LATIN CAPITAL LETTER B +\&0063 ; [.0103.0020.0002.0063] # LATIN SMALL LETTER C +\&0043 ; [.0103.0020.0008.0043] # LATIN CAPITAL LETTER C +\&ENTRIES +\& ); +.Ve +.Sp +If \f(CW\*(C`ignoreName\*(C'\fR or \f(CW\*(C`undefName\*(C'\fR is used, character names should be +specified as a comment (following \f(CW\*(C`#\*(C'\fR) on each line. +.IP "undefChar" 4 +.IX Item "undefChar" +.PD 0 +.IP "undefName" 4 +.IX Item "undefName" +.PD +\&\-\- see 6.3.3 Reducing the Repertoire, \s-1UTS\s0 #10. +.Sp +Undefines the collation element as if it were unassigned in the \f(CW\*(C`table\*(C'\fR. +This reduces the size of the table. +If an unassigned character appears in the string to be collated, +the sort key is made from its codepoint +as a single-character collation element, +as it is greater than any other assigned collation elements +(in the codepoint order among the unassigned characters). +But, it'd be better to ignore characters +unfamiliar to you and maybe never used. +.Sp +Through \f(CW\*(C`undefChar\*(C'\fR, any character matching \f(CW\*(C`qr/$undefChar/\*(C'\fR +will be undefined. Through \f(CW\*(C`undefName\*(C'\fR, any character whose name +(given in the \f(CW\*(C`table\*(C'\fR file as a comment) matches \f(CW\*(C`qr/$undefName/\*(C'\fR +will be undefined. +.Sp +ex. Collation weights for beyond-BMP characters are not stored in object: +.Sp +.Vb 1 +\& undefChar => qr/[^\e0\-\ex{fffd}]/, +.Ve +.IP "upper_before_lower" 4 +.IX Item "upper_before_lower" +\&\-\- see 6.6 Case Comparisons, \s-1UTS\s0 #10. +.Sp +By default, lowercase is before uppercase. +If the parameter is made true, this is reversed. +.Sp +\&\fB\s-1NOTE\s0\fR: This parameter simplemindedly assumes that any lowercase/uppercase +distinctions must occur in level 3, and their weights at level 3 must be +same as those mentioned in 7.3.1, \s-1UTS\s0 #10. +If you define your collation elements which differs from this requirement, +this parameter doesn't work validly. +.IP "variable" 4 +.IX Item "variable" +\&\-\- see 3.6 Variable Weighting, \s-1UTS\s0 #10. +.Sp +This key allows for variable weighting of variable collation elements, +which are marked with an \s-1ASTERISK\s0 in the table +(\s-1NOTE:\s0 Many punctuation marks and symbols are variable in \fIallkeys.txt\fR). +.Sp +.Vb 1 +\& variable => \*(Aqblanked\*(Aq, \*(Aqnon\-ignorable\*(Aq, \*(Aqshifted\*(Aq, or \*(Aqshift\-trimmed\*(Aq. +.Ve +.Sp +These names are case-insensitive. +By default (if specification is omitted), 'shifted' is adopted. +.Sp +.Vb 2 +\& \*(AqBlanked\*(Aq Variable elements are made ignorable at levels 1 through 3; +\& considered at the 4th level. +\& +\& \*(AqNon\-Ignorable\*(Aq Variable elements are not reset to ignorable. +\& +\& \*(AqShifted\*(Aq Variable elements are made ignorable at levels 1 through 3 +\& their level 4 weight is replaced by the old level 1 weight. +\& Level 4 weight for Non\-Variable elements is 0xFFFF. +\& +\& \*(AqShift\-Trimmed\*(Aq Same as \*(Aqshifted\*(Aq, but all FFFF\*(Aqs at the 4th level +\& are trimmed. +.Ve +.SS "Methods for Collation" +.IX Subsection "Methods for Collation" +.ie n .IP """@sorted = $Collator\->sort(@not_sorted)""" 4 +.el .IP "\f(CW@sorted = $Collator\->sort(@not_sorted)\fR" 4 +.IX Item "@sorted = $Collator->sort(@not_sorted)" +Sorts a list of strings. +.ie n .IP """$result = $Collator\->cmp($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->cmp($a, $b)\fR" 4 +.IX Item "$result = $Collator->cmp($a, $b)" +Returns 1 (when \f(CW$a\fR is greater than \f(CW$b\fR) +or 0 (when \f(CW$a\fR is equal to \f(CW$b\fR) +or \-1 (when \f(CW$a\fR is less than \f(CW$b\fR). +.ie n .IP """$result = $Collator\->eq($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->eq($a, $b)\fR" 4 +.IX Item "$result = $Collator->eq($a, $b)" +.PD 0 +.ie n .IP """$result = $Collator\->ne($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->ne($a, $b)\fR" 4 +.IX Item "$result = $Collator->ne($a, $b)" +.ie n .IP """$result = $Collator\->lt($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->lt($a, $b)\fR" 4 +.IX Item "$result = $Collator->lt($a, $b)" +.ie n .IP """$result = $Collator\->le($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->le($a, $b)\fR" 4 +.IX Item "$result = $Collator->le($a, $b)" +.ie n .IP """$result = $Collator\->gt($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->gt($a, $b)\fR" 4 +.IX Item "$result = $Collator->gt($a, $b)" +.ie n .IP """$result = $Collator\->ge($a, $b)""" 4 +.el .IP "\f(CW$result = $Collator\->ge($a, $b)\fR" 4 +.IX Item "$result = $Collator->ge($a, $b)" +.PD +They works like the same name operators as theirs. +.Sp +.Vb 6 +\& eq : whether $a is equal to $b. +\& ne : whether $a is not equal to $b. +\& lt : whether $a is less than $b. +\& le : whether $a is less than $b or equal to $b. +\& gt : whether $a is greater than $b. +\& ge : whether $a is greater than $b or equal to $b. +.Ve +.ie n .IP """$sortKey = $Collator\->getSortKey($string)""" 4 +.el .IP "\f(CW$sortKey = $Collator\->getSortKey($string)\fR" 4 +.IX Item "$sortKey = $Collator->getSortKey($string)" +\&\-\- see 4.3 Form Sort Key, \s-1UTS\s0 #10. +.Sp +Returns a sort key. +.Sp +You compare the sort keys using a binary comparison +and get the result of the comparison of the strings using \s-1UCA.\s0 +.Sp +.Vb 1 +\& $Collator\->getSortKey($a) cmp $Collator\->getSortKey($b) +\& +\& is equivalent to +\& +\& $Collator\->cmp($a, $b) +.Ve +.ie n .IP """$sortKeyForm = $Collator\->viewSortKey($string)""" 4 +.el .IP "\f(CW$sortKeyForm = $Collator\->viewSortKey($string)\fR" 4 +.IX Item "$sortKeyForm = $Collator->viewSortKey($string)" +Converts a sorting key into its representation form. +If \f(CW\*(C`UCA_Version\*(C'\fR is 8, the output is slightly different. +.Sp +.Vb 3 +\& use Unicode::Collate; +\& my $c = Unicode::Collate\->new(); +\& print $c\->viewSortKey("Perl"),"\en"; +\& +\& # output: +\& # [0B67 0A65 0B7F 0B03 | 0020 0020 0020 0020 | 0008 0002 0002 0002 | FFFF FFFF FFFF FFFF] +\& # Level 1 Level 2 Level 3 Level 4 +.Ve +.SS "Methods for Searching" +.IX Subsection "Methods for Searching" +The \f(CW\*(C`match\*(C'\fR, \f(CW\*(C`gmatch\*(C'\fR, \f(CW\*(C`subst\*(C'\fR, \f(CW\*(C`gsubst\*(C'\fR methods work +like \f(CW\*(C`m//\*(C'\fR, \f(CW\*(C`m//g\*(C'\fR, \f(CW\*(C`s///\*(C'\fR, \f(CW\*(C`s///g\*(C'\fR, respectively, +but they are not aware of any pattern, but only a literal substring. +.PP +\&\fB\s-1DISCLAIMER:\s0\fR If \f(CW\*(C`preprocess\*(C'\fR or \f(CW\*(C`normalization\*(C'\fR parameter is true +for \f(CW$Collator\fR, calling these methods (\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`match\*(C'\fR, \f(CW\*(C`gmatch\*(C'\fR, +\&\f(CW\*(C`subst\*(C'\fR, \f(CW\*(C`gsubst\*(C'\fR) is croaked, as the position and the length might +differ from those on the specified string. +.PP +\&\f(CW\*(C`rearrange\*(C'\fR and \f(CW\*(C`hangul_terminator\*(C'\fR parameters are neglected. +\&\f(CW\*(C`katakana_before_hiragana\*(C'\fR and \f(CW\*(C`upper_before_lower\*(C'\fR don't affect +matching and searching, as it doesn't matter whether greater or less. +.ie n .IP """$position = $Collator\->index($string, $substring[, $position])""" 4 +.el .IP "\f(CW$position = $Collator\->index($string, $substring[, $position])\fR" 4 +.IX Item "$position = $Collator->index($string, $substring[, $position])" +.PD 0 +.ie n .IP """($position, $length) = $Collator\->index($string, $substring[, $position])""" 4 +.el .IP "\f(CW($position, $length) = $Collator\->index($string, $substring[, $position])\fR" 4 +.IX Item "($position, $length) = $Collator->index($string, $substring[, $position])" +.PD +If \f(CW$substring\fR matches a part of \f(CW$string\fR, returns +the position of the first occurrence of the matching part in scalar context; +in list context, returns a two-element list of +the position and the length of the matching part. +.Sp +If \f(CW$substring\fR does not match any part of \f(CW$string\fR, +returns \f(CW\*(C`\-1\*(C'\fR in scalar context and +an empty list in list context. +.Sp +e.g. when the content of \f(CW$str\fR is \f(CW\*(C`"Ich mu\*(C'\fR\*8\f(CW\*(C` studieren Perl."\*(C'\fR, +you say the following where \f(CW$sub\fR is \f(CW\*(C`"M\*(C'\fRu\*:\f(CW\*(C`SS"\*(C'\fR, +.Sp +.Vb 6 +\& my $Collator = Unicode::Collate\->new( normalization => undef, level => 1 ); +\& # (normalization => undef) is REQUIRED. +\& my $match; +\& if (my($pos,$len) = $Collator\->index($str, $sub)) { +\& $match = substr($str, $pos, $len); +\& } +.Ve +.Sp +and get \f(CW\*(C`"mu\*(C'\fR\*8\f(CW\*(C`"\*(C'\fR in \f(CW$match\fR, since \f(CW\*(C`"mu\*(C'\fR\*8\f(CW\*(C`"\*(C'\fR +is primary equal to \f(CW\*(C`"M\*(C'\fRu\*:\f(CW\*(C`SS"\*(C'\fR. +.ie n .IP """$match_ref = $Collator\->match($string, $substring)""" 4 +.el .IP "\f(CW$match_ref = $Collator\->match($string, $substring)\fR" 4 +.IX Item "$match_ref = $Collator->match($string, $substring)" +.PD 0 +.ie n .IP """($match) = $Collator\->match($string, $substring)""" 4 +.el .IP "\f(CW($match) = $Collator\->match($string, $substring)\fR" 4 +.IX Item "($match) = $Collator->match($string, $substring)" +.PD +If \f(CW$substring\fR matches a part of \f(CW$string\fR, in scalar context, returns +\&\fBa reference to\fR the first occurrence of the matching part +(\f(CW$match_ref\fR is always true if matches, +since every reference is \fBtrue\fR); +in list context, returns the first occurrence of the matching part. +.Sp +If \f(CW$substring\fR does not match any part of \f(CW$string\fR, +returns \f(CW\*(C`undef\*(C'\fR in scalar context and +an empty list in list context. +.Sp +e.g. +.Sp +.Vb 5 +\& if ($match_ref = $Collator\->match($str, $sub)) { # scalar context +\& print "matches [$$match_ref].\en"; +\& } else { +\& print "doesn\*(Aqt match.\en"; +\& } +\& +\& or +\& +\& if (($match) = $Collator\->match($str, $sub)) { # list context +\& print "matches [$match].\en"; +\& } else { +\& print "doesn\*(Aqt match.\en"; +\& } +.Ve +.ie n .IP """@match = $Collator\->gmatch($string, $substring)""" 4 +.el .IP "\f(CW@match = $Collator\->gmatch($string, $substring)\fR" 4 +.IX Item "@match = $Collator->gmatch($string, $substring)" +If \f(CW$substring\fR matches a part of \f(CW$string\fR, returns +all the matching parts (or matching count in scalar context). +.Sp +If \f(CW$substring\fR does not match any part of \f(CW$string\fR, +returns an empty list. +.ie n .IP """$count = $Collator\->subst($string, $substring, $replacement)""" 4 +.el .IP "\f(CW$count = $Collator\->subst($string, $substring, $replacement)\fR" 4 +.IX Item "$count = $Collator->subst($string, $substring, $replacement)" +If \f(CW$substring\fR matches a part of \f(CW$string\fR, +the first occurrence of the matching part is replaced by \f(CW$replacement\fR +(\f(CW$string\fR is modified) and \f(CW$count\fR (always equals to \f(CW1\fR) is returned. +.Sp +\&\f(CW$replacement\fR can be a \f(CW\*(C`CODEREF\*(C'\fR, +taking the matching part as an argument, +and returning a string to replace the matching part +(a bit similar to \f(CW\*(C`s/(..)/$coderef\->($1)/e\*(C'\fR). +.ie n .IP """$count = $Collator\->gsubst($string, $substring, $replacement)""" 4 +.el .IP "\f(CW$count = $Collator\->gsubst($string, $substring, $replacement)\fR" 4 +.IX Item "$count = $Collator->gsubst($string, $substring, $replacement)" +If \f(CW$substring\fR matches a part of \f(CW$string\fR, +all the occurrences of the matching part are replaced by \f(CW$replacement\fR +(\f(CW$string\fR is modified) and \f(CW$count\fR is returned. +.Sp +\&\f(CW$replacement\fR can be a \f(CW\*(C`CODEREF\*(C'\fR, +taking the matching part as an argument, +and returning a string to replace the matching part +(a bit similar to \f(CW\*(C`s/(..)/$coderef\->($1)/eg\*(C'\fR). +.Sp +e.g. +.Sp +.Vb 4 +\& my $Collator = Unicode::Collate\->new( normalization => undef, level => 1 ); +\& # (normalization => undef) is REQUIRED. +\& my $str = "Camel donkey zebra came\ex{301}l CAMEL horse cam\e0e\e0l..."; +\& $Collator\->gsubst($str, "camel", sub { "$_[0]" }); +\& +\& # now $str is "Camel donkey zebra came\ex{301}l CAMEL horse cam\e0e\e0l..."; +\& # i.e., all the camels are made bold\-faced. +\& +\& Examples: levels and ignore_level2 \- what does camel match? +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& level ignore_level2 | camel Camel came\ex{301}l c\-a\-m\-e\-l cam\e0e\e0l +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1 false | yes yes yes yes yes +\& 2 false | yes yes no yes yes +\& 3 false | yes no no yes yes +\& 4 false | yes no no no yes +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1 true | yes yes yes yes yes +\& 2 true | yes yes yes yes yes +\& 3 true | yes no yes yes yes +\& 4 true | yes no yes no yes +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& note: if variable => non\-ignorable, camel doesn\*(Aqt match c\-a\-m\-e\-l +\& at any level. +.Ve +.SS "Other Methods" +.IX Subsection "Other Methods" +.ie n .IP """%old_tailoring = $Collator\->change(%new_tailoring)""" 4 +.el .IP "\f(CW%old_tailoring = $Collator\->change(%new_tailoring)\fR" 4 +.IX Item "%old_tailoring = $Collator->change(%new_tailoring)" +.PD 0 +.ie n .IP """$modified_collator = $Collator\->change(%new_tailoring)""" 4 +.el .IP "\f(CW$modified_collator = $Collator\->change(%new_tailoring)\fR" 4 +.IX Item "$modified_collator = $Collator->change(%new_tailoring)" +.PD +Changes the value of specified keys and returns the changed part. +.Sp +.Vb 1 +\& $Collator = Unicode::Collate\->new(level => 4); +\& +\& $Collator\->eq("perl", "PERL"); # false +\& +\& %old = $Collator\->change(level => 2); # returns (level => 4). +\& +\& $Collator\->eq("perl", "PERL"); # true +\& +\& $Collator\->change(%old); # returns (level => 2). +\& +\& $Collator\->eq("perl", "PERL"); # false +.Ve +.Sp +Not all \f(CW\*(C`(key,value)\*(C'\fRs are allowed to be changed. +See also \f(CW@Unicode::Collate::ChangeOK\fR and \f(CW@Unicode::Collate::ChangeNG\fR. +.Sp +In the scalar context, returns the modified collator +(but it is \fBnot\fR a clone from the original). +.Sp +.Vb 1 +\& $Collator\->change(level => 2)\->eq("perl", "PERL"); # true +\& +\& $Collator\->eq("perl", "PERL"); # true; now max level is 2nd. +\& +\& $Collator\->change(level => 4)\->eq("perl", "PERL"); # false +.Ve +.ie n .IP """$version = $Collator\->version()""" 4 +.el .IP "\f(CW$version = $Collator\->version()\fR" 4 +.IX Item "$version = $Collator->version()" +Returns the version number (a string) of the Unicode Standard +which the \f(CW\*(C`table\*(C'\fR file used by the collator object is based on. +If the table does not include a version line (starting with \f(CW@version\fR), +returns \f(CW"unknown"\fR. +.ie n .IP """UCA_Version()""" 4 +.el .IP "\f(CWUCA_Version()\fR" 4 +.IX Item "UCA_Version()" +Returns the revision number of \s-1UTS\s0 #10 this module consults, +that should correspond with the \s-1DUCET\s0 incorporated. +.ie n .IP """Base_Unicode_Version()""" 4 +.el .IP "\f(CWBase_Unicode_Version()\fR" 4 +.IX Item "Base_Unicode_Version()" +Returns the version number of \s-1UTS\s0 #10 this module consults, +that should correspond with the \s-1DUCET\s0 incorporated. +.SH "EXPORT" +.IX Header "EXPORT" +No method will be exported. +.SH "INSTALL" +.IX Header "INSTALL" +Though this module can be used without any \f(CW\*(C`table\*(C'\fR file, +to use this module easily, it is recommended to install a table file +in the \s-1UCA\s0 format, by copying it under the directory +/Unicode/Collate. +.PP +The most preferable one is \*(L"The Default Unicode Collation Element Table\*(R" +(aka \s-1DUCET\s0), available from the Unicode Consortium's website: +.PP +.Vb 1 +\& http://www.unicode.org/Public/UCA/ +\& +\& http://www.unicode.org/Public/UCA/latest/allkeys.txt +\& (latest version) +.Ve +.PP +If \s-1DUCET\s0 is not installed, it is recommended to copy the file +from http://www.unicode.org/Public/UCA/latest/allkeys.txt +to /Unicode/Collate/allkeys.txt +manually. +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "Normalization" 4 +.IX Item "Normalization" +Use of the \f(CW\*(C`normalization\*(C'\fR parameter requires the \fBUnicode::Normalize\fR +module (see Unicode::Normalize). +.Sp +If you need not it (say, in the case when you need not +handle any combining characters), +assign \f(CW\*(C`(normalization => undef)\*(C'\fR explicitly. +.Sp +\&\-\- see 6.5 Avoiding Normalization, \s-1UTS\s0 #10. +.IP "Conformance Test" 4 +.IX Item "Conformance Test" +The Conformance Test for the \s-1UCA\s0 is available +under . +.Sp +For \fICollationTest_SHIFTED.txt\fR, +a collator via \f(CW\*(C`Unicode::Collate\->new( )\*(C'\fR should be used; +for \fICollationTest_NON_IGNORABLE.txt\fR, a collator via +\&\f(CW\*(C`Unicode::Collate\->new(variable => "non\-ignorable", level => 3)\*(C'\fR. +.Sp +If \f(CW\*(C`UCA_Version\*(C'\fR is 26 or later, the \f(CW\*(C`identical\*(C'\fR level is preferred; +\&\f(CW\*(C`Unicode::Collate\->new(identical => 1)\*(C'\fR and +\&\f(CW\*(C`Unicode::Collate\->new(identical => 1,\*(C'\fR +\&\f(CW\*(C`variable => "non\-ignorable", level => 3)\*(C'\fR should be used. +.Sp +\&\fBUnicode::Normalize is required to try The Conformance Test.\fR +.SH "AUTHOR, COPYRIGHT AND LICENSE" +.IX Header "AUTHOR, COPYRIGHT AND LICENSE" +The Unicode::Collate module for perl was written by \s-1SADAHIRO\s0 Tomoyuki, +. This module is Copyright(C) 2001\-2018, +\&\s-1SADAHIRO\s0 Tomoyuki. Japan. All rights reserved. +.PP +This module is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +The file Unicode/Collate/allkeys.txt was copied verbatim +from . +For this file, Copyright (c) 2016 Unicode, Inc.; distributed +under the Terms of Use in +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "Unicode Collation Algorithm \- \s-1UTS\s0 #10" 4 +.IX Item "Unicode Collation Algorithm - UTS #10" + +.IP "The Default Unicode Collation Element Table (\s-1DUCET\s0)" 4 +.IX Item "The Default Unicode Collation Element Table (DUCET)" + +.IP "The conformance test for the \s-1UCA\s0" 4 +.IX Item "The conformance test for the UCA" + +.Sp + +.IP "Hangul Syllable Type" 4 +.IX Item "Hangul Syllable Type" + +.IP "Unicode Normalization Forms \- \s-1UAX\s0 #15" 4 +.IX Item "Unicode Normalization Forms - UAX #15" + +.IP "Unicode Locale Data Markup Language (\s-1LDML\s0) \- \s-1UTS\s0 #35" 4 +.IX Item "Unicode Locale Data Markup Language (LDML) - UTS #35" + diff --git a/data/miniconda3/man/man3/Unicode%3A%3ANormalize.3 b/data/miniconda3/man/man3/Unicode%3A%3ANormalize.3 new file mode 100644 index 0000000000000000000000000000000000000000..ed8f70500b929697c97beaa9b6805f81746588a9 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3ANormalize.3 @@ -0,0 +1,625 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::Normalize 3" +.TH Unicode::Normalize 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::Normalize \- Unicode Normalization Forms +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +(1) using function names exported by default: +.PP +.Vb 1 +\& use Unicode::Normalize; +\& +\& $NFD_string = NFD($string); # Normalization Form D +\& $NFC_string = NFC($string); # Normalization Form C +\& $NFKD_string = NFKD($string); # Normalization Form KD +\& $NFKC_string = NFKC($string); # Normalization Form KC +.Ve +.PP +(2) using function names exported on request: +.PP +.Vb 1 +\& use Unicode::Normalize \*(Aqnormalize\*(Aq; +\& +\& $NFD_string = normalize(\*(AqD\*(Aq, $string); # Normalization Form D +\& $NFC_string = normalize(\*(AqC\*(Aq, $string); # Normalization Form C +\& $NFKD_string = normalize(\*(AqKD\*(Aq, $string); # Normalization Form KD +\& $NFKC_string = normalize(\*(AqKC\*(Aq, $string); # Normalization Form KC +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Parameters: +.PP +\&\f(CW$string\fR is used as a string under character semantics (see perlunicode). +.PP +\&\f(CW$code_point\fR should be an unsigned integer representing a Unicode code point. +.PP +Note: Between \s-1XSUB\s0 and pure Perl, there is an incompatibility +about the interpretation of \f(CW$code_point\fR as a decimal number. +\&\s-1XSUB\s0 converts \f(CW$code_point\fR to an unsigned integer, but pure Perl does not. +Do not use a floating point nor a negative sign in \f(CW$code_point\fR. +.SS "Normalization Forms" +.IX Subsection "Normalization Forms" +.ie n .IP """$NFD_string = NFD($string)""" 4 +.el .IP "\f(CW$NFD_string = NFD($string)\fR" 4 +.IX Item "$NFD_string = NFD($string)" +It returns the Normalization Form D (formed by canonical decomposition). +.ie n .IP """$NFC_string = NFC($string)""" 4 +.el .IP "\f(CW$NFC_string = NFC($string)\fR" 4 +.IX Item "$NFC_string = NFC($string)" +It returns the Normalization Form C (formed by canonical decomposition +followed by canonical composition). +.ie n .IP """$NFKD_string = NFKD($string)""" 4 +.el .IP "\f(CW$NFKD_string = NFKD($string)\fR" 4 +.IX Item "$NFKD_string = NFKD($string)" +It returns the Normalization Form \s-1KD\s0 (formed by compatibility decomposition). +.ie n .IP """$NFKC_string = NFKC($string)""" 4 +.el .IP "\f(CW$NFKC_string = NFKC($string)\fR" 4 +.IX Item "$NFKC_string = NFKC($string)" +It returns the Normalization Form \s-1KC\s0 (formed by compatibility decomposition +followed by \fBcanonical\fR composition). +.ie n .IP """$FCD_string = FCD($string)""" 4 +.el .IP "\f(CW$FCD_string = FCD($string)\fR" 4 +.IX Item "$FCD_string = FCD($string)" +If the given string is in \s-1FCD\s0 (\*(L"Fast C or D\*(R" form; cf. \s-1UTN\s0 #5), +it returns the string without modification; otherwise it returns an \s-1FCD\s0 string. +.Sp +Note: \s-1FCD\s0 is not always unique, then plural forms may be equivalent +each other. \f(CW\*(C`FCD()\*(C'\fR will return one of these equivalent forms. +.ie n .IP """$FCC_string = FCC($string)""" 4 +.el .IP "\f(CW$FCC_string = FCC($string)\fR" 4 +.IX Item "$FCC_string = FCC($string)" +It returns the \s-1FCC\s0 form (\*(L"Fast C Contiguous\*(R"; cf. \s-1UTN\s0 #5). +.Sp +Note: \s-1FCC\s0 is unique, as well as four normalization forms (NF*). +.ie n .IP """$normalized_string = normalize($form_name, $string)""" 4 +.el .IP "\f(CW$normalized_string = normalize($form_name, $string)\fR" 4 +.IX Item "$normalized_string = normalize($form_name, $string)" +It returns the normalization form of \f(CW$form_name\fR. +.Sp +As \f(CW$form_name\fR, one of the following names must be given. +.Sp +.Vb 4 +\& \*(AqC\*(Aq or \*(AqNFC\*(Aq for Normalization Form C (UAX #15) +\& \*(AqD\*(Aq or \*(AqNFD\*(Aq for Normalization Form D (UAX #15) +\& \*(AqKC\*(Aq or \*(AqNFKC\*(Aq for Normalization Form KC (UAX #15) +\& \*(AqKD\*(Aq or \*(AqNFKD\*(Aq for Normalization Form KD (UAX #15) +\& +\& \*(AqFCD\*(Aq for "Fast C or D" Form (UTN #5) +\& \*(AqFCC\*(Aq for "Fast C Contiguous" (UTN #5) +.Ve +.SS "Decomposition and Composition" +.IX Subsection "Decomposition and Composition" +.ie n .IP """$decomposed_string = decompose($string [, $useCompatMapping])""" 4 +.el .IP "\f(CW$decomposed_string = decompose($string [, $useCompatMapping])\fR" 4 +.IX Item "$decomposed_string = decompose($string [, $useCompatMapping])" +It returns the concatenation of the decomposition of each character +in the string. +.Sp +If the second parameter (a boolean) is omitted or false, +the decomposition is canonical decomposition; +if the second parameter (a boolean) is true, +the decomposition is compatibility decomposition. +.Sp +The string returned is not always in \s-1NFD/NFKD.\s0 Reordering may be required. +.Sp +.Vb 2 +\& $NFD_string = reorder(decompose($string)); # eq. to NFD() +\& $NFKD_string = reorder(decompose($string, TRUE)); # eq. to NFKD() +.Ve +.ie n .IP """$reordered_string = reorder($string)""" 4 +.el .IP "\f(CW$reordered_string = reorder($string)\fR" 4 +.IX Item "$reordered_string = reorder($string)" +It returns the result of reordering the combining characters +according to Canonical Ordering Behavior. +.Sp +For example, when you have a list of \s-1NFD/NFKD\s0 strings, +you can get the concatenated \s-1NFD/NFKD\s0 string from them, by saying +.Sp +.Vb 2 +\& $concat_NFD = reorder(join \*(Aq\*(Aq, @NFD_strings); +\& $concat_NFKD = reorder(join \*(Aq\*(Aq, @NFKD_strings); +.Ve +.ie n .IP """$composed_string = compose($string)""" 4 +.el .IP "\f(CW$composed_string = compose($string)\fR" 4 +.IX Item "$composed_string = compose($string)" +It returns the result of canonical composition +without applying any decomposition. +.Sp +For example, when you have a \s-1NFD/NFKD\s0 string, +you can get its \s-1NFC/NFKC\s0 string, by saying +.Sp +.Vb 2 +\& $NFC_string = compose($NFD_string); +\& $NFKC_string = compose($NFKD_string); +.Ve +.ie n .IP """($processed, $unprocessed) = splitOnLastStarter($normalized)""" 4 +.el .IP "\f(CW($processed, $unprocessed) = splitOnLastStarter($normalized)\fR" 4 +.IX Item "($processed, $unprocessed) = splitOnLastStarter($normalized)" +It returns two strings: the first one, \f(CW$processed\fR, is a part +before the last starter, and the second one, \f(CW$unprocessed\fR is +another part after the first part. A starter is a character having +a combining class of zero (see \s-1UAX\s0 #15). +.Sp +Note that \f(CW$processed\fR may be empty (when \f(CW$normalized\fR contains no +starter or starts with the last starter), and then \f(CW$unprocessed\fR +should be equal to the entire \f(CW$normalized\fR. +.Sp +When you have a \f(CW$normalized\fR string and an \f(CW$unnormalized\fR string +following it, a simple concatenation is wrong: +.Sp +.Vb 1 +\& $concat = $normalized . normalize($form, $unnormalized); # wrong! +.Ve +.Sp +Instead of it, do like this: +.Sp +.Vb 2 +\& ($processed, $unprocessed) = splitOnLastStarter($normalized); +\& $concat = $processed . normalize($form,$unprocessed.$unnormalized); +.Ve +.Sp +\&\f(CW\*(C`splitOnLastStarter()\*(C'\fR should be called with a pre-normalized parameter +\&\f(CW$normalized\fR, that is in the same form as \f(CW$form\fR you want. +.Sp +If you have an array of \f(CW@string\fR that should be concatenated and then +normalized, you can do like this: +.Sp +.Vb 11 +\& my $result = ""; +\& my $unproc = ""; +\& foreach my $str (@string) { +\& $unproc .= $str; +\& my $n = normalize($form, $unproc); +\& my($p, $u) = splitOnLastStarter($n); +\& $result .= $p; +\& $unproc = $u; +\& } +\& $result .= $unproc; +\& # instead of normalize($form, join(\*(Aq\*(Aq, @string)) +.Ve +.ie n .IP """$processed = normalize_partial($form, $unprocessed)""" 4 +.el .IP "\f(CW$processed = normalize_partial($form, $unprocessed)\fR" 4 +.IX Item "$processed = normalize_partial($form, $unprocessed)" +A wrapper for the combination of \f(CW\*(C`normalize()\*(C'\fR and \f(CW\*(C`splitOnLastStarter()\*(C'\fR. +Note that \f(CW$unprocessed\fR will be modified as a side-effect. +.Sp +If you have an array of \f(CW@string\fR that should be concatenated and then +normalized, you can do like this: +.Sp +.Vb 8 +\& my $result = ""; +\& my $unproc = ""; +\& foreach my $str (@string) { +\& $unproc .= $str; +\& $result .= normalize_partial($form, $unproc); +\& } +\& $result .= $unproc; +\& # instead of normalize($form, join(\*(Aq\*(Aq, @string)) +.Ve +.ie n .IP """$processed = NFD_partial($unprocessed)""" 4 +.el .IP "\f(CW$processed = NFD_partial($unprocessed)\fR" 4 +.IX Item "$processed = NFD_partial($unprocessed)" +It does like \f(CW\*(C`normalize_partial(\*(AqNFD\*(Aq, $unprocessed)\*(C'\fR. +Note that \f(CW$unprocessed\fR will be modified as a side-effect. +.ie n .IP """$processed = NFC_partial($unprocessed)""" 4 +.el .IP "\f(CW$processed = NFC_partial($unprocessed)\fR" 4 +.IX Item "$processed = NFC_partial($unprocessed)" +It does like \f(CW\*(C`normalize_partial(\*(AqNFC\*(Aq, $unprocessed)\*(C'\fR. +Note that \f(CW$unprocessed\fR will be modified as a side-effect. +.ie n .IP """$processed = NFKD_partial($unprocessed)""" 4 +.el .IP "\f(CW$processed = NFKD_partial($unprocessed)\fR" 4 +.IX Item "$processed = NFKD_partial($unprocessed)" +It does like \f(CW\*(C`normalize_partial(\*(AqNFKD\*(Aq, $unprocessed)\*(C'\fR. +Note that \f(CW$unprocessed\fR will be modified as a side-effect. +.ie n .IP """$processed = NFKC_partial($unprocessed)""" 4 +.el .IP "\f(CW$processed = NFKC_partial($unprocessed)\fR" 4 +.IX Item "$processed = NFKC_partial($unprocessed)" +It does like \f(CW\*(C`normalize_partial(\*(AqNFKC\*(Aq, $unprocessed)\*(C'\fR. +Note that \f(CW$unprocessed\fR will be modified as a side-effect. +.SS "Quick Check" +.IX Subsection "Quick Check" +(see Annex 8, \s-1UAX\s0 #15; and \fIDerivedNormalizationProps.txt\fR) +.PP +The following functions check whether the string is in that normalization form. +.PP +The result returned will be one of the following: +.PP +.Vb 3 +\& YES The string is in that normalization form. +\& NO The string is not in that normalization form. +\& MAYBE Dubious. Maybe yes, maybe no. +.Ve +.ie n .IP """$result = checkNFD($string)""" 4 +.el .IP "\f(CW$result = checkNFD($string)\fR" 4 +.IX Item "$result = checkNFD($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR. +.ie n .IP """$result = checkNFC($string)""" 4 +.el .IP "\f(CW$result = checkNFC($string)\fR" 4 +.IX Item "$result = checkNFC($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR; +\&\f(CW\*(C`undef\*(C'\fR if \f(CW\*(C`MAYBE\*(C'\fR. +.ie n .IP """$result = checkNFKD($string)""" 4 +.el .IP "\f(CW$result = checkNFKD($string)\fR" 4 +.IX Item "$result = checkNFKD($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR. +.ie n .IP """$result = checkNFKC($string)""" 4 +.el .IP "\f(CW$result = checkNFKC($string)\fR" 4 +.IX Item "$result = checkNFKC($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR; +\&\f(CW\*(C`undef\*(C'\fR if \f(CW\*(C`MAYBE\*(C'\fR. +.ie n .IP """$result = checkFCD($string)""" 4 +.el .IP "\f(CW$result = checkFCD($string)\fR" 4 +.IX Item "$result = checkFCD($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR. +.ie n .IP """$result = checkFCC($string)""" 4 +.el .IP "\f(CW$result = checkFCC($string)\fR" 4 +.IX Item "$result = checkFCC($string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR; +\&\f(CW\*(C`undef\*(C'\fR if \f(CW\*(C`MAYBE\*(C'\fR. +.Sp +Note: If a string is not in \s-1FCD,\s0 it must not be in \s-1FCC.\s0 +So \f(CW\*(C`checkFCC($not_FCD_string)\*(C'\fR should return \f(CW\*(C`NO\*(C'\fR. +.ie n .IP """$result = check($form_name, $string)""" 4 +.el .IP "\f(CW$result = check($form_name, $string)\fR" 4 +.IX Item "$result = check($form_name, $string)" +It returns true (\f(CW1\fR) if \f(CW\*(C`YES\*(C'\fR; false (\f(CW\*(C`empty string\*(C'\fR) if \f(CW\*(C`NO\*(C'\fR; +\&\f(CW\*(C`undef\*(C'\fR if \f(CW\*(C`MAYBE\*(C'\fR. +.Sp +As \f(CW$form_name\fR, one of the following names must be given. +.Sp +.Vb 4 +\& \*(AqC\*(Aq or \*(AqNFC\*(Aq for Normalization Form C (UAX #15) +\& \*(AqD\*(Aq or \*(AqNFD\*(Aq for Normalization Form D (UAX #15) +\& \*(AqKC\*(Aq or \*(AqNFKC\*(Aq for Normalization Form KC (UAX #15) +\& \*(AqKD\*(Aq or \*(AqNFKD\*(Aq for Normalization Form KD (UAX #15) +\& +\& \*(AqFCD\*(Aq for "Fast C or D" Form (UTN #5) +\& \*(AqFCC\*(Aq for "Fast C Contiguous" (UTN #5) +.Ve +.PP +\&\fBNote\fR +.PP +In the cases of \s-1NFD, NFKD,\s0 and \s-1FCD,\s0 the answer must be +either \f(CW\*(C`YES\*(C'\fR or \f(CW\*(C`NO\*(C'\fR. The answer \f(CW\*(C`MAYBE\*(C'\fR may be returned +in the cases of \s-1NFC, NFKC,\s0 and \s-1FCC.\s0 +.PP +A \f(CW\*(C`MAYBE\*(C'\fR string should contain at least one combining character +or the like. For example, \f(CW\*(C`COMBINING ACUTE ACCENT\*(C'\fR has +the \s-1MAYBE_NFC/MAYBE_NFKC\s0 property. +.PP +Both \f(CW\*(C`checkNFC("A\eN{COMBINING ACUTE ACCENT}")\*(C'\fR +and \f(CW\*(C`checkNFC("B\eN{COMBINING ACUTE ACCENT}")\*(C'\fR will return \f(CW\*(C`MAYBE\*(C'\fR. +\&\f(CW"A\eN{COMBINING ACUTE ACCENT}"\fR is not in \s-1NFC\s0 +(its \s-1NFC\s0 is \f(CW"\eN{LATIN CAPITAL LETTER A WITH ACUTE}"\fR), +while \f(CW"B\eN{COMBINING ACUTE ACCENT}"\fR is in \s-1NFC.\s0 +.PP +If you want to check exactly, compare the string with its \s-1NFC/NFKC/FCC.\s0 +.PP +.Vb 5 +\& if ($string eq NFC($string)) { +\& # $string is exactly normalized in NFC; +\& } else { +\& # $string is not normalized in NFC; +\& } +\& +\& if ($string eq NFKC($string)) { +\& # $string is exactly normalized in NFKC; +\& } else { +\& # $string is not normalized in NFKC; +\& } +.Ve +.SS "Character Data" +.IX Subsection "Character Data" +These functions are interface of character data used internally. +If you want only to get Unicode normalization forms, you don't need +call them yourself. +.ie n .IP """$canonical_decomposition = getCanon($code_point)""" 4 +.el .IP "\f(CW$canonical_decomposition = getCanon($code_point)\fR" 4 +.IX Item "$canonical_decomposition = getCanon($code_point)" +If the character is canonically decomposable (including Hangul Syllables), +it returns the (full) canonical decomposition as a string. +Otherwise it returns \f(CW\*(C`undef\*(C'\fR. +.Sp +\&\fBNote:\fR According to the Unicode standard, the canonical decomposition +of the character that is not canonically decomposable is same as +the character itself. +.ie n .IP """$compatibility_decomposition = getCompat($code_point)""" 4 +.el .IP "\f(CW$compatibility_decomposition = getCompat($code_point)\fR" 4 +.IX Item "$compatibility_decomposition = getCompat($code_point)" +If the character is compatibility decomposable (including Hangul Syllables), +it returns the (full) compatibility decomposition as a string. +Otherwise it returns \f(CW\*(C`undef\*(C'\fR. +.Sp +\&\fBNote:\fR According to the Unicode standard, the compatibility decomposition +of the character that is not compatibility decomposable is same as +the character itself. +.ie n .IP """$code_point_composite = getComposite($code_point_here, $code_point_next)""" 4 +.el .IP "\f(CW$code_point_composite = getComposite($code_point_here, $code_point_next)\fR" 4 +.IX Item "$code_point_composite = getComposite($code_point_here, $code_point_next)" +If two characters here and next (as code points) are composable +(including Hangul Jamo/Syllables and Composition Exclusions), +it returns the code point of the composite. +.Sp +If they are not composable, it returns \f(CW\*(C`undef\*(C'\fR. +.ie n .IP """$combining_class = getCombinClass($code_point)""" 4 +.el .IP "\f(CW$combining_class = getCombinClass($code_point)\fR" 4 +.IX Item "$combining_class = getCombinClass($code_point)" +It returns the combining class (as an integer) of the character. +.ie n .IP """$may_be_composed_with_prev_char = isComp2nd($code_point)""" 4 +.el .IP "\f(CW$may_be_composed_with_prev_char = isComp2nd($code_point)\fR" 4 +.IX Item "$may_be_composed_with_prev_char = isComp2nd($code_point)" +It returns a boolean whether the character of the specified codepoint +may be composed with the previous one in a certain composition +(including Hangul Compositions, but excluding +Composition Exclusions and Non-Starter Decompositions). +.ie n .IP """$is_exclusion = isExclusion($code_point)""" 4 +.el .IP "\f(CW$is_exclusion = isExclusion($code_point)\fR" 4 +.IX Item "$is_exclusion = isExclusion($code_point)" +It returns a boolean whether the code point is a composition exclusion. +.ie n .IP """$is_singleton = isSingleton($code_point)""" 4 +.el .IP "\f(CW$is_singleton = isSingleton($code_point)\fR" 4 +.IX Item "$is_singleton = isSingleton($code_point)" +It returns a boolean whether the code point is a singleton +.ie n .IP """$is_non_starter_decomposition = isNonStDecomp($code_point)""" 4 +.el .IP "\f(CW$is_non_starter_decomposition = isNonStDecomp($code_point)\fR" 4 +.IX Item "$is_non_starter_decomposition = isNonStDecomp($code_point)" +It returns a boolean whether the code point has Non-Starter Decomposition. +.ie n .IP """$is_Full_Composition_Exclusion = isComp_Ex($code_point)""" 4 +.el .IP "\f(CW$is_Full_Composition_Exclusion = isComp_Ex($code_point)\fR" 4 +.IX Item "$is_Full_Composition_Exclusion = isComp_Ex($code_point)" +It returns a boolean of the derived property Comp_Ex +(Full_Composition_Exclusion). This property is generated from +Composition Exclusions + Singletons + Non-Starter Decompositions. +.ie n .IP """$NFD_is_NO = isNFD_NO($code_point)""" 4 +.el .IP "\f(CW$NFD_is_NO = isNFD_NO($code_point)\fR" 4 +.IX Item "$NFD_is_NO = isNFD_NO($code_point)" +It returns a boolean of the derived property \s-1NFD_NO\s0 +(NFD_Quick_Check=No). +.ie n .IP """$NFC_is_NO = isNFC_NO($code_point)""" 4 +.el .IP "\f(CW$NFC_is_NO = isNFC_NO($code_point)\fR" 4 +.IX Item "$NFC_is_NO = isNFC_NO($code_point)" +It returns a boolean of the derived property \s-1NFC_NO\s0 +(NFC_Quick_Check=No). +.ie n .IP """$NFC_is_MAYBE = isNFC_MAYBE($code_point)""" 4 +.el .IP "\f(CW$NFC_is_MAYBE = isNFC_MAYBE($code_point)\fR" 4 +.IX Item "$NFC_is_MAYBE = isNFC_MAYBE($code_point)" +It returns a boolean of the derived property \s-1NFC_MAYBE\s0 +(NFC_Quick_Check=Maybe). +.ie n .IP """$NFKD_is_NO = isNFKD_NO($code_point)""" 4 +.el .IP "\f(CW$NFKD_is_NO = isNFKD_NO($code_point)\fR" 4 +.IX Item "$NFKD_is_NO = isNFKD_NO($code_point)" +It returns a boolean of the derived property \s-1NFKD_NO\s0 +(NFKD_Quick_Check=No). +.ie n .IP """$NFKC_is_NO = isNFKC_NO($code_point)""" 4 +.el .IP "\f(CW$NFKC_is_NO = isNFKC_NO($code_point)\fR" 4 +.IX Item "$NFKC_is_NO = isNFKC_NO($code_point)" +It returns a boolean of the derived property \s-1NFKC_NO\s0 +(NFKC_Quick_Check=No). +.ie n .IP """$NFKC_is_MAYBE = isNFKC_MAYBE($code_point)""" 4 +.el .IP "\f(CW$NFKC_is_MAYBE = isNFKC_MAYBE($code_point)\fR" 4 +.IX Item "$NFKC_is_MAYBE = isNFKC_MAYBE($code_point)" +It returns a boolean of the derived property \s-1NFKC_MAYBE\s0 +(NFKC_Quick_Check=Maybe). +.SH "EXPORT" +.IX Header "EXPORT" +\&\f(CW\*(C`NFC\*(C'\fR, \f(CW\*(C`NFD\*(C'\fR, \f(CW\*(C`NFKC\*(C'\fR, \f(CW\*(C`NFKD\*(C'\fR: by default. +.PP +\&\f(CW\*(C`normalize\*(C'\fR and other some functions: on request. +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "Perl's version vs. Unicode version" 4 +.IX Item "Perl's version vs. Unicode version" +Since this module refers to perl core's Unicode database in the directory +\&\fI/lib/unicore\fR (or formerly \fI/lib/unicode\fR), the Unicode version of +normalization implemented by this module depends on what has been +compiled into your perl. The following table lists the default Unicode +version that comes with various perl versions. (It is possible to change +the Unicode version in any perl version to be any earlier Unicode version, +so one could cause Unicode 3.2 to be used in any perl version starting with +5.8.0. Read \fI\f(CI$Config{privlib}\fI/unicore/README.perl\fR for details. +.Sp +.Vb 10 +\& perl\*(Aqs version implemented Unicode version +\& 5.6.1 3.0.1 +\& 5.7.2 3.1.0 +\& 5.7.3 3.1.1 (normalization is same as 3.1.0) +\& 5.8.0 3.2.0 +\& 5.8.1\-5.8.3 4.0.0 +\& 5.8.4\-5.8.6 4.0.1 (normalization is same as 4.0.0) +\& 5.8.7\-5.8.8 4.1.0 +\& 5.10.0 5.0.0 +\& 5.8.9, 5.10.1 5.1.0 +\& 5.12.x 5.2.0 +\& 5.14.x 6.0.0 +\& 5.16.x 6.1.0 +\& 5.18.x 6.2.0 +\& 5.20.x 6.3.0 +\& 5.22.x 7.0.0 +.Ve +.IP "Correction of decomposition mapping" 4 +.IX Item "Correction of decomposition mapping" +In older Unicode versions, a small number of characters (all of which are +\&\s-1CJK\s0 compatibility ideographs as far as they have been found) may have +an erroneous decomposition mapping (see \fINormalizationCorrections.txt\fR). +Anyhow, this module will neither refer to \fINormalizationCorrections.txt\fR +nor provide any specific version of normalization. Therefore this module +running on an older perl with an older Unicode database may use +the erroneous decomposition mapping blindly conforming to the Unicode database. +.IP "Revised definition of canonical composition" 4 +.IX Item "Revised definition of canonical composition" +In Unicode 4.1.0, the definition D2 of canonical composition (which +affects \s-1NFC\s0 and \s-1NFKC\s0) has been changed (see Public Review Issue #29 +and recent \s-1UAX\s0 #15). This module has used the newer definition +since the version 0.07 (Oct 31, 2001). +This module will not support the normalization according to the older +definition, even if the Unicode version implemented by perl is +lower than 4.1.0. +.SH "AUTHOR" +.IX Header "AUTHOR" +\&\s-1SADAHIRO\s0 Tomoyuki +.PP +Currently maintained by +.PP +Copyright(C) 2001\-2012, \s-1SADAHIRO\s0 Tomoyuki. Japan. All rights reserved. +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software; you can redistribute it +and/or modify it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "" 4 +.IX Item "" +Unicode Normalization Forms \- \s-1UAX\s0 #15 +.IP "" 4 +.IX Item "" +Composition Exclusion Table +.IP "" 4 +.IX Item "" +Derived Normalization Properties +.IP "" 4 +.IX Item "" +Normalization Corrections +.IP "" 4 +.IX Item "" +Public Review Issue #29: Normalization Issue +.IP "" 4 +.IX Item "" +Canonical Equivalence in Applications \- \s-1UTN\s0 #5 diff --git a/data/miniconda3/man/man3/Unicode%3A%3AUCD.3 b/data/miniconda3/man/man3/Unicode%3A%3AUCD.3 new file mode 100644 index 0000000000000000000000000000000000000000..7cb0fd318a16cf9528277f52b4f179d12635e761 --- /dev/null +++ b/data/miniconda3/man/man3/Unicode%3A%3AUCD.3 @@ -0,0 +1,1972 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "Unicode::UCD 3" +.TH Unicode::UCD 3 "2020-12-18" "perl v5.32.1" "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" +Unicode::UCD \- Unicode character database +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Unicode::UCD \*(Aqcharinfo\*(Aq; +\& my $charinfo = charinfo($codepoint); +\& +\& use Unicode::UCD \*(Aqcharprop\*(Aq; +\& my $value = charprop($codepoint, $property); +\& +\& use Unicode::UCD \*(Aqcharprops_all\*(Aq; +\& my $all_values_hash_ref = charprops_all($codepoint); +\& +\& use Unicode::UCD \*(Aqcasefold\*(Aq; +\& my $casefold = casefold($codepoint); +\& +\& use Unicode::UCD \*(Aqall_casefolds\*(Aq; +\& my $all_casefolds_ref = all_casefolds(); +\& +\& use Unicode::UCD \*(Aqcasespec\*(Aq; +\& my $casespec = casespec($codepoint); +\& +\& use Unicode::UCD \*(Aqcharblock\*(Aq; +\& my $charblock = charblock($codepoint); +\& +\& use Unicode::UCD \*(Aqcharscript\*(Aq; +\& my $charscript = charscript($codepoint); +\& +\& use Unicode::UCD \*(Aqcharblocks\*(Aq; +\& my $charblocks = charblocks(); +\& +\& use Unicode::UCD \*(Aqcharscripts\*(Aq; +\& my $charscripts = charscripts(); +\& +\& use Unicode::UCD qw(charscript charinrange); +\& my $range = charscript($script); +\& print "looks like $script\en" if charinrange($range, $codepoint); +\& +\& use Unicode::UCD qw(general_categories bidi_types); +\& my $categories = general_categories(); +\& my $types = bidi_types(); +\& +\& use Unicode::UCD \*(Aqprop_aliases\*(Aq; +\& my @space_names = prop_aliases("space"); +\& +\& use Unicode::UCD \*(Aqprop_value_aliases\*(Aq; +\& my @gc_punct_names = prop_value_aliases("Gc", "Punct"); +\& +\& use Unicode::UCD \*(Aqprop_values\*(Aq; +\& my @all_EA_short_names = prop_values("East_Asian_Width"); +\& +\& use Unicode::UCD \*(Aqprop_invlist\*(Aq; +\& my @puncts = prop_invlist("gc=punctuation"); +\& +\& use Unicode::UCD \*(Aqprop_invmap\*(Aq; +\& my ($list_ref, $map_ref, $format, $missing) +\& = prop_invmap("General Category"); +\& +\& use Unicode::UCD \*(Aqsearch_invlist\*(Aq; +\& my $index = search_invlist(\e@invlist, $code_point); +\& +\& # The following function should be used only internally in +\& # implementations of the Unicode Normalization Algorithm, and there +\& # are better choices than it. +\& use Unicode::UCD \*(Aqcompexcl\*(Aq; +\& my $compexcl = compexcl($codepoint); +\& +\& use Unicode::UCD \*(Aqnamedseq\*(Aq; +\& my $namedseq = namedseq($named_sequence_name); +\& +\& my $unicode_version = Unicode::UCD::UnicodeVersion(); +\& +\& my $convert_to_numeric = +\& Unicode::UCD::num("\eN{RUMI DIGIT ONE}\eN{RUMI DIGIT TWO}"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Unicode::UCD module offers a series of functions that +provide a simple interface to the Unicode +Character Database. +.SS "code point argument" +.IX Subsection "code point argument" +Some of the functions are called with a \fIcode point argument\fR, which is either +a decimal or a hexadecimal scalar designating a code point in the platform's +native character set (extended to Unicode), or a string containing \f(CW\*(C`U+\*(C'\fR +followed by hexadecimals +designating a Unicode code point. A leading 0 will force a hexadecimal +interpretation, as will a hexadecimal digit that isn't a decimal digit. +.PP +Examples: +.PP +.Vb 6 +\& 223 # Decimal 223 in native character set +\& 0223 # Hexadecimal 223, native (= 547 decimal) +\& 0xDF # Hexadecimal DF, native (= 223 decimal) +\& \*(Aq0xDF\*(Aq # String form of hexadecimal (= 223 decimal) +\& \*(AqU+DF\*(Aq # Hexadecimal DF, in Unicode\*(Aqs character set +\& (= LATIN SMALL LETTER SHARP S) +.Ve +.PP +Note that the largest code point in Unicode is U+10FFFF. +.SS "\fBcharinfo()\fP" +.IX Subsection "charinfo()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharinfo\*(Aq; +\& +\& my $charinfo = charinfo(0x41); +.Ve +.PP +This returns information about the input \*(L"code point argument\*(R" +as a reference to a hash of fields as defined by the Unicode +standard. If the \*(L"code point argument\*(R" is not assigned in the standard +(i.e., has the general category \f(CW\*(C`Cn\*(C'\fR meaning \f(CW\*(C`Unassigned\*(C'\fR) +or is a non-character (meaning it is guaranteed to never be assigned in +the standard), +\&\f(CW\*(C`undef\*(C'\fR is returned. +.PP +Fields that aren't applicable to the particular code point argument exist in the +returned hash, and are empty. +.PP +For results that are less \*(L"raw\*(R" than this function returns, or to get the values for +any property, not just the few covered by this function, use the +\&\*(L"\fBcharprop()\fR\*(R" function. +.PP +The keys in the hash with the meanings of their values are: +.IP "\fBcode\fR" 4 +.IX Item "code" +the input native \*(L"code point argument\*(R" expressed in hexadecimal, with +leading zeros +added if necessary to make it contain at least four hexdigits +.IP "\fBname\fR" 4 +.IX Item "name" +name of \fIcode\fR, all \s-1IN UPPER CASE.\s0 +Some control-type code points do not have names. +This field will be empty for \f(CW\*(C`Surrogate\*(C'\fR and \f(CW\*(C`Private Use\*(C'\fR code points, +and for the others without a name, +it will contain a description enclosed in angle brackets, like +\&\f(CW\*(C`\*(C'\fR. +.IP "\fBcategory\fR" 4 +.IX Item "category" +The short name of the general category of \fIcode\fR. +This will match one of the keys in the hash returned by \*(L"\fBgeneral_categories()\fR\*(R". +.Sp +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the category name. +.IP "\fBcombining\fR" 4 +.IX Item "combining" +the combining class number for \fIcode\fR used in the Canonical Ordering Algorithm. +For Unicode 5.1, this is described in Section 3.11 \f(CW\*(C`Canonical Ordering Behavior\*(C'\fR +available at + +.Sp +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the combining class number. +.IP "\fBbidi\fR" 4 +.IX Item "bidi" +bidirectional type of \fIcode\fR. +This will match one of the keys in the hash returned by \*(L"\fBbidi_types()\fR\*(R". +.Sp +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the bidi type name. +.IP "\fBdecomposition\fR" 4 +.IX Item "decomposition" +is empty if \fIcode\fR has no decomposition; or is one or more codes +(separated by spaces) that, taken in order, represent a decomposition for +\&\fIcode\fR. Each has at least four hexdigits. +The codes may be preceded by a word enclosed in angle brackets, then a space, +like \f(CW\*(C` \*(C'\fR, giving the type of decomposition +.Sp +This decomposition may be an intermediate one whose components are also +decomposable. Use Unicode::Normalize to get the final decomposition in one +step. +.IP "\fBdecimal\fR" 4 +.IX Item "decimal" +if \fIcode\fR represents a decimal digit this is its integer numeric value +.IP "\fBdigit\fR" 4 +.IX Item "digit" +if \fIcode\fR represents some other digit-like number, this is its integer +numeric value +.IP "\fBnumeric\fR" 4 +.IX Item "numeric" +if \fIcode\fR represents a whole or rational number, this is its numeric value. +Rational values are expressed as a string like \f(CW\*(C`1/4\*(C'\fR. +.IP "\fBmirrored\fR" 4 +.IX Item "mirrored" +\&\f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`N\*(C'\fR designating if \fIcode\fR is mirrored in bidirectional text +.IP "\fBunicode10\fR" 4 +.IX Item "unicode10" +name of \fIcode\fR in the Unicode 1.0 standard if one +existed for this code point and is different from the current name +.IP "\fBcomment\fR" 4 +.IX Item "comment" +As of Unicode 6.0, this is always empty. +.IP "\fBupper\fR" 4 +.IX Item "upper" +is, if non-empty, the uppercase mapping for \fIcode\fR expressed as at least four +hexdigits. This indicates that the full uppercase mapping is a single +character, and is identical to the simple (single-character only) mapping. +When this field is empty, it means that the simple uppercase mapping is +\&\fIcode\fR itself; you'll need some other means, (like \*(L"\fBcharprop()\fR\*(R" or +\&\*(L"\fBcasespec()\fR\*(R" to get the full mapping. +.IP "\fBlower\fR" 4 +.IX Item "lower" +is, if non-empty, the lowercase mapping for \fIcode\fR expressed as at least four +hexdigits. This indicates that the full lowercase mapping is a single +character, and is identical to the simple (single-character only) mapping. +When this field is empty, it means that the simple lowercase mapping is +\&\fIcode\fR itself; you'll need some other means, (like \*(L"\fBcharprop()\fR\*(R" or +\&\*(L"\fBcasespec()\fR\*(R" to get the full mapping. +.IP "\fBtitle\fR" 4 +.IX Item "title" +is, if non-empty, the titlecase mapping for \fIcode\fR expressed as at least four +hexdigits. This indicates that the full titlecase mapping is a single +character, and is identical to the simple (single-character only) mapping. +When this field is empty, it means that the simple titlecase mapping is +\&\fIcode\fR itself; you'll need some other means, (like \*(L"\fBcharprop()\fR\*(R" or +\&\*(L"\fBcasespec()\fR\*(R" to get the full mapping. +.IP "\fBblock\fR" 4 +.IX Item "block" +the block \fIcode\fR belongs to (used in \f(CW\*(C`\ep{Blk=...}\*(C'\fR). +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the block name. +.Sp +See \*(L"Blocks versus Scripts\*(R". +.IP "\fBscript\fR" 4 +.IX Item "script" +the script \fIcode\fR belongs to. +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the script name. Note that this is the older \*(L"Script\*(R" property value, and +not the improved \*(L"Script_Extensions\*(R" value. +.Sp +See \*(L"Blocks versus Scripts\*(R". +.PP +Note that you cannot do (de)composition and casing based solely on the +\&\fIdecomposition\fR, \fIcombining\fR, \fIlower\fR, \fIupper\fR, and \fItitle\fR fields; you +will need also the \*(L"\fBcasespec()\fR\*(R" function and the \f(CW\*(C`Composition_Exclusion\*(C'\fR +property. (Or you could just use the \fBlc()\fR, +\&\fBuc()\fR, and \fBucfirst()\fR functions, and the +Unicode::Normalize module.) +.SS "\fBcharprop()\fP" +.IX Subsection "charprop()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharprop\*(Aq; +\& +\& print charprop(0x41, "Gc"), "\en"; +\& print charprop(0x61, "General_Category"), "\en"; +\& +\& prints +\& Lu +\& Ll +.Ve +.PP +This returns the value of the Unicode property given by the second parameter +for the \*(L"code point argument\*(R" given by the first. +.PP +The passed-in property may be specified as any of the synonyms returned by +\&\*(L"\fBprop_aliases()\fR\*(R". +.PP +The return value is always a scalar, either a string or a number. For +properties where there are synonyms for the values, the synonym returned by +this function is the longest, most descriptive form, the one returned by +\&\*(L"\fBprop_value_aliases()\fR\*(R" when called in a scalar context. Of course, you can +call \*(L"\fBprop_value_aliases()\fR\*(R" on the result to get other synonyms. +.PP +The return values are more \*(L"cooked\*(R" than the \*(L"\fBcharinfo()\fR\*(R" ones. For +example, the \f(CW"uc"\fR property value is the actual string containing the full +uppercase mapping of the input code point. You have to go to extra trouble +with \f(CW\*(C`charinfo\*(C'\fR to get this value from its \f(CW\*(C`upper\*(C'\fR hash element when the +full mapping differs from the simple one. +.PP +Special note should be made of the return values for a few properties: +.IP "Block" 4 +.IX Item "Block" +The value returned is the new-style (see \*(L"Old-style versus new-style block +names\*(R"). +.IP "Decomposition_Mapping" 4 +.IX Item "Decomposition_Mapping" +Like \*(L"\fBcharinfo()\fR\*(R", the result may be an intermediate decomposition whose +components are also decomposable. Use Unicode::Normalize to get the final +decomposition in one step. +.Sp +Unlike \*(L"\fBcharinfo()\fR\*(R", this does not include the decomposition type. Use the +\&\f(CW\*(C`Decomposition_Type\*(C'\fR property to get that. +.IP "Name_Alias" 4 +.IX Item "Name_Alias" +If the input code point's name has more than one synonym, they are returned +joined into a single comma-separated string. +.IP "Numeric_Value" 4 +.IX Item "Numeric_Value" +If the result is a fraction, it is converted into a floating point number to +the accuracy of your platform. +.IP "Script_Extensions" 4 +.IX Item "Script_Extensions" +If the result is multiple script names, they are returned joined into a single +comma-separated string. +.PP +When called with a property that is a Perl extension that isn't expressible in +a compound form, this function currently returns \f(CW\*(C`undef\*(C'\fR, as the only two +possible values are \fItrue\fR or \fIfalse\fR (1 or 0 I suppose). This behavior may +change in the future, so don't write code that relies on it. \f(CW\*(C`Present_In\*(C'\fR is +a Perl extension that is expressible in a bipartite or compound form (for +example, \f(CW\*(C`\ep{Present_In=4.0}\*(C'\fR), so \f(CW\*(C`charprop\*(C'\fR accepts it. But \f(CW\*(C`Any\*(C'\fR is a +Perl extension that isn't expressible that way, so \f(CW\*(C`charprop\*(C'\fR returns +\&\f(CW\*(C`undef\*(C'\fR for it. Also \f(CW\*(C`charprop\*(C'\fR returns \f(CW\*(C`undef\*(C'\fR for all Perl extensions +that are internal-only. +.SS "\fBcharprops_all()\fP" +.IX Subsection "charprops_all()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharprops_all\*(Aq; +\& +\& my $%properties_of_A_hash_ref = charprops_all("U+41"); +.Ve +.PP +This returns a reference to a hash whose keys are all the distinct Unicode (no +Perl extension) properties, and whose values are the respective values for +those properties for the input \*(L"code point argument\*(R". +.PP +Each key is the property name in its longest, most descriptive form. The +values are what \*(L"\fBcharprop()\fR\*(R" would return. +.PP +This function is expensive in time and memory. +.SS "\fBcharblock()\fP" +.IX Subsection "charblock()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharblock\*(Aq; +\& +\& my $charblock = charblock(0x41); +\& my $charblock = charblock(1234); +\& my $charblock = charblock(0x263a); +\& my $charblock = charblock("U+263a"); +\& +\& my $range = charblock(\*(AqArmenian\*(Aq); +.Ve +.PP +With a \*(L"code point argument\*(R" \f(CW\*(C`charblock()\*(C'\fR returns the \fIblock\fR the code point +belongs to, e.g. \f(CW\*(C`Basic Latin\*(C'\fR. The old-style block name is returned (see +\&\*(L"Old-style versus new-style block names\*(R"). +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the block name. +.PP +If the code point is unassigned, this returns the block it would belong to if +it were assigned. (If the Unicode version being used is so early as to not +have blocks, all code points are considered to be in \f(CW\*(C`No_Block\*(C'\fR.) +.PP +See also \*(L"Blocks versus Scripts\*(R". +.PP +If supplied with an argument that can't be a code point, \f(CW\*(C`charblock()\*(C'\fR tries to +do the opposite and interpret the argument as an old-style block name. On an +\&\s-1ASCII\s0 platform, the return value is a \fIrange set\fR with one range: an +anonymous array with a single element that consists of another anonymous array +whose first element is the first code point in the block, and whose second +element is the final code point in the block. On an \s-1EBCDIC\s0 +platform, the first two Unicode blocks are not contiguous. Their range sets +are lists containing \fIstart-of-range\fR, \fIend-of-range\fR code point pairs. You +can test whether a code point is in a range set using the \*(L"\fBcharinrange()\fR\*(R" +function. (To be precise, each \fIrange set\fR contains a third array element, +after the range boundary ones: the old_style block name.) +.PP +If the argument to \f(CW\*(C`charblock()\*(C'\fR is not a known block, \f(CW\*(C`undef\*(C'\fR is +returned. +.SS "\fBcharscript()\fP" +.IX Subsection "charscript()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharscript\*(Aq; +\& +\& my $charscript = charscript(0x41); +\& my $charscript = charscript(1234); +\& my $charscript = charscript("U+263a"); +\& +\& my $range = charscript(\*(AqThai\*(Aq); +.Ve +.PP +With a \*(L"code point argument\*(R", \f(CW\*(C`charscript()\*(C'\fR returns the \fIscript\fR the +code point belongs to, e.g., \f(CW\*(C`Latin\*(C'\fR, \f(CW\*(C`Greek\*(C'\fR, \f(CW\*(C`Han\*(C'\fR. +If the code point is unassigned or the Unicode version being used is so early +that it doesn't have scripts, this function returns \f(CW"Unknown"\fR. +The \*(L"\fBprop_value_aliases()\fR\*(R" function can be used to get all the synonyms +of the script name. +.PP +Note that the Script_Extensions property is an improved version of the Script +property, and you should probably be using that instead, with the +\&\*(L"\fBcharprop()\fR\*(R" function. +.PP +If supplied with an argument that can't be a code point, \fBcharscript()\fR tries +to do the opposite and interpret the argument as a script name. The +return value is a \fIrange set\fR: an anonymous array of arrays that contain +\&\fIstart-of-range\fR, \fIend-of-range\fR code point pairs. You can test whether a +code point is in a range set using the \*(L"\fBcharinrange()\fR\*(R" function. +(To be precise, each \fIrange set\fR contains a third array element, +after the range boundary ones: the script name.) +.PP +If the \f(CW\*(C`charscript()\*(C'\fR argument is not a known script, \f(CW\*(C`undef\*(C'\fR is returned. +.PP +See also \*(L"Blocks versus Scripts\*(R". +.SS "\fBcharblocks()\fP" +.IX Subsection "charblocks()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharblocks\*(Aq; +\& +\& my $charblocks = charblocks(); +.Ve +.PP +\&\f(CW\*(C`charblocks()\*(C'\fR returns a reference to a hash with the known block names +as the keys, and the code point ranges (see \*(L"\fBcharblock()\fR\*(R") as the values. +.PP +The names are in the old-style (see \*(L"Old-style versus new-style block +names\*(R"). +.PP +prop_invmap(\*(L"block\*(R") can be used to get this same data in a +different type of data structure. +.PP +prop_values(\*(L"Block\*(R") can be used to get all +the known new-style block names as a list, without the code point ranges. +.PP +See also \*(L"Blocks versus Scripts\*(R". +.SS "\fBcharscripts()\fP" +.IX Subsection "charscripts()" +.Vb 1 +\& use Unicode::UCD \*(Aqcharscripts\*(Aq; +\& +\& my $charscripts = charscripts(); +.Ve +.PP +\&\f(CW\*(C`charscripts()\*(C'\fR returns a reference to a hash with the known script +names as the keys, and the code point ranges (see \*(L"\fBcharscript()\fR\*(R") as +the values. +.PP +prop_invmap(\*(L"script\*(R") can be used to get this same data in a +different type of data structure. Since the Script_Extensions property is an +improved version of the Script property, you should instead use +prop_invmap(\*(L"scx\*(R"). +.PP +\&\f(CW\*(C`prop_values("Script")\*(C'\fR can be used to get all +the known script names as a list, without the code point ranges. +.PP +See also \*(L"Blocks versus Scripts\*(R". +.SS "\fBcharinrange()\fP" +.IX Subsection "charinrange()" +In addition to using the \f(CW\*(C`\ep{Blk=...}\*(C'\fR and \f(CW\*(C`\eP{Blk=...}\*(C'\fR constructs, you +can also test whether a code point is in the \fIrange\fR as returned by +\&\*(L"\fBcharblock()\fR\*(R" and \*(L"\fBcharscript()\fR\*(R" or as the values of the hash returned +by \*(L"\fBcharblocks()\fR\*(R" and \*(L"\fBcharscripts()\fR\*(R" by using \f(CW\*(C`charinrange()\*(C'\fR: +.PP +.Vb 1 +\& use Unicode::UCD qw(charscript charinrange); +\& +\& $range = charscript(\*(AqHiragana\*(Aq); +\& print "looks like hiragana\en" if charinrange($range, $codepoint); +.Ve +.SS "\fBgeneral_categories()\fP" +.IX Subsection "general_categories()" +.Vb 1 +\& use Unicode::UCD \*(Aqgeneral_categories\*(Aq; +\& +\& my $categories = general_categories(); +.Ve +.PP +This returns a reference to a hash which has short +general category names (such as \f(CW\*(C`Lu\*(C'\fR, \f(CW\*(C`Nd\*(C'\fR, \f(CW\*(C`Zs\*(C'\fR, \f(CW\*(C`S\*(C'\fR) as keys and long +names (such as \f(CW\*(C`UppercaseLetter\*(C'\fR, \f(CW\*(C`DecimalNumber\*(C'\fR, \f(CW\*(C`SpaceSeparator\*(C'\fR, +\&\f(CW\*(C`Symbol\*(C'\fR) as values. The hash is reversible in case you need to go +from the long names to the short names. The general category is the +one returned from +\&\*(L"\fBcharinfo()\fR\*(R" under the \f(CW\*(C`category\*(C'\fR key. +.PP +The \*(L"\fBprop_values()\fR\*(R" and \*(L"\fBprop_value_aliases()\fR\*(R" functions can be used as an +alternative to this function; the first returning a simple list of the short +category names; and the second gets all the synonyms of a given category name. +.SS "\fBbidi_types()\fP" +.IX Subsection "bidi_types()" +.Vb 1 +\& use Unicode::UCD \*(Aqbidi_types\*(Aq; +\& +\& my $categories = bidi_types(); +.Ve +.PP +This returns a reference to a hash which has the short +bidi (bidirectional) type names (such as \f(CW\*(C`L\*(C'\fR, \f(CW\*(C`R\*(C'\fR) as keys and long +names (such as \f(CW\*(C`Left\-to\-Right\*(C'\fR, \f(CW\*(C`Right\-to\-Left\*(C'\fR) as values. The +hash is reversible in case you need to go from the long names to the +short names. The bidi type is the one returned from +\&\*(L"\fBcharinfo()\fR\*(R" +under the \f(CW\*(C`bidi\*(C'\fR key. For the exact meaning of the various bidi classes +the Unicode \s-1TR9\s0 is recommended reading: + +(as of Unicode 5.0.0) +.PP +The \*(L"\fBprop_values()\fR\*(R" and \*(L"\fBprop_value_aliases()\fR\*(R" functions can be used as an +alternative to this function; the first returning a simple list of the short +bidi type names; and the second gets all the synonyms of a given bidi type +name. +.SS "\fBcompexcl()\fP" +.IX Subsection "compexcl()" +\&\s-1WARNING:\s0 Unicode discourages the use of this function or any of the +alternative mechanisms listed in this section (the documentation of +\&\f(CW\*(C`compexcl()\*(C'\fR), except internally in implementations of the Unicode +Normalization Algorithm. You should be using Unicode::Normalize directly +instead of these. Using these will likely lead to half-baked results. +.PP +.Vb 1 +\& use Unicode::UCD \*(Aqcompexcl\*(Aq; +\& +\& my $compexcl = compexcl(0x09dc); +.Ve +.PP +This routine returns \f(CW\*(C`undef\*(C'\fR if the Unicode version being used is so early +that it doesn't have this property. +.PP +\&\f(CW\*(C`compexcl()\*(C'\fR is included for backwards +compatibility, but as of Perl 5.12 and more modern Unicode versions, for +most purposes it is probably more convenient to use one of the following +instead: +.PP +.Vb 2 +\& my $compexcl = chr(0x09dc) =~ /\ep{Comp_Ex}; +\& my $compexcl = chr(0x09dc) =~ /\ep{Full_Composition_Exclusion}; +.Ve +.PP +or even +.PP +.Vb 2 +\& my $compexcl = chr(0x09dc) =~ /\ep{CE}; +\& my $compexcl = chr(0x09dc) =~ /\ep{Composition_Exclusion}; +.Ve +.PP +The first two forms return \fBtrue\fR if the \*(L"code point argument\*(R" should not +be produced by composition normalization. For the final two forms to return +\&\fBtrue\fR, it is additionally required that this fact not otherwise be +determinable from the Unicode data base. +.PP +This routine behaves identically to the final two forms. That is, +it does not return \fBtrue\fR if the code point has a decomposition +consisting of another single code point, nor if its decomposition starts +with a code point whose combining class is non-zero. Code points that meet +either of these conditions should also not be produced by composition +normalization, which is probably why you should use the +\&\f(CW\*(C`Full_Composition_Exclusion\*(C'\fR property instead, as shown above. +.PP +The routine returns \fBfalse\fR otherwise. +.SS "\fBcasefold()\fP" +.IX Subsection "casefold()" +.Vb 1 +\& use Unicode::UCD \*(Aqcasefold\*(Aq; +\& +\& my $casefold = casefold(0xDF); +\& if (defined $casefold) { +\& my @full_fold_hex = split / /, $casefold\->{\*(Aqfull\*(Aq}; +\& my $full_fold_string = +\& join "", map {chr(hex($_))} @full_fold_hex; +\& my @turkic_fold_hex = +\& split / /, ($casefold\->{\*(Aqturkic\*(Aq} ne "") +\& ? $casefold\->{\*(Aqturkic\*(Aq} +\& : $casefold\->{\*(Aqfull\*(Aq}; +\& my $turkic_fold_string = +\& join "", map {chr(hex($_))} @turkic_fold_hex; +\& } +\& if (defined $casefold && $casefold\->{\*(Aqsimple\*(Aq} ne "") { +\& my $simple_fold_hex = $casefold\->{\*(Aqsimple\*(Aq}; +\& my $simple_fold_string = chr(hex($simple_fold_hex)); +\& } +.Ve +.PP +This returns the (almost) locale-independent case folding of the +character specified by the \*(L"code point argument\*(R". (Starting in Perl v5.16, +the core function \f(CW\*(C`fc()\*(C'\fR returns the \f(CW\*(C`full\*(C'\fR mapping (described below) +faster than this does, and for entire strings.) +.PP +If there is no case folding for the input code point, \f(CW\*(C`undef\*(C'\fR is returned. +.PP +If there is a case folding for that code point, a reference to a hash +with the following fields is returned: +.IP "\fBcode\fR" 4 +.IX Item "code" +the input native \*(L"code point argument\*(R" expressed in hexadecimal, with +leading zeros +added if necessary to make it contain at least four hexdigits +.IP "\fBfull\fR" 4 +.IX Item "full" +one or more codes (separated by spaces) that, taken in order, give the +code points for the case folding for \fIcode\fR. +Each has at least four hexdigits. +.IP "\fBsimple\fR" 4 +.IX Item "simple" +is empty, or is exactly one code with at least four hexdigits which can be used +as an alternative case folding when the calling program cannot cope with the +fold being a sequence of multiple code points. If \fIfull\fR is just one code +point, then \fIsimple\fR equals \fIfull\fR. If there is no single code point folding +defined for \fIcode\fR, then \fIsimple\fR is the empty string. Otherwise, it is an +inferior, but still better-than-nothing alternative folding to \fIfull\fR. +.IP "\fBmapping\fR" 4 +.IX Item "mapping" +is the same as \fIsimple\fR if \fIsimple\fR is not empty, and it is the same as \fIfull\fR +otherwise. It can be considered to be the simplest possible folding for +\&\fIcode\fR. It is defined primarily for backwards compatibility. +.IP "\fBstatus\fR" 4 +.IX Item "status" +is \f(CW\*(C`C\*(C'\fR (for \f(CW\*(C`common\*(C'\fR) if the best possible fold is a single code point +(\fIsimple\fR equals \fIfull\fR equals \fImapping\fR). It is \f(CW\*(C`S\*(C'\fR if there are distinct +folds, \fIsimple\fR and \fIfull\fR (\fImapping\fR equals \fIsimple\fR). And it is \f(CW\*(C`F\*(C'\fR if +there is only a \fIfull\fR fold (\fImapping\fR equals \fIfull\fR; \fIsimple\fR is empty). +Note that this +describes the contents of \fImapping\fR. It is defined primarily for backwards +compatibility. +.Sp +For Unicode versions between 3.1 and 3.1.1 inclusive, \fIstatus\fR can also be +\&\f(CW\*(C`I\*(C'\fR which is the same as \f(CW\*(C`C\*(C'\fR but is a special case for dotted uppercase I and +dotless lowercase i: +.RS 4 +.ie n .IP "\fB*\fR If you use this ""I"" mapping" 4 +.el .IP "\fB*\fR If you use this \f(CWI\fR mapping" 4 +.IX Item "* If you use this I mapping" +the result is case-insensitive, +but dotless and dotted I's are not distinguished +.ie n .IP "\fB*\fR If you exclude this ""I"" mapping" 4 +.el .IP "\fB*\fR If you exclude this \f(CWI\fR mapping" 4 +.IX Item "* If you exclude this I mapping" +the result is not fully case-insensitive, but +dotless and dotted I's are distinguished +.RE +.RS 4 +.RE +.IP "\fBturkic\fR" 4 +.IX Item "turkic" +contains any special folding for Turkic languages. For versions of Unicode +starting with 3.2, this field is empty unless \fIcode\fR has a different folding +in Turkic languages, in which case it is one or more codes (separated by +spaces) that, taken in order, give the code points for the case folding for +\&\fIcode\fR in those languages. +Each code has at least four hexdigits. +Note that this folding does not maintain canonical equivalence without +additional processing. +.Sp +For Unicode versions between 3.1 and 3.1.1 inclusive, this field is empty unless +there is a +special folding for Turkic languages, in which case \fIstatus\fR is \f(CW\*(C`I\*(C'\fR, and +\&\fImapping\fR, \fIfull\fR, \fIsimple\fR, and \fIturkic\fR are all equal. +.PP +Programs that want complete generality and the best folding results should use +the folding contained in the \fIfull\fR field. But note that the fold for some +code points will be a sequence of multiple code points. +.PP +Programs that can't cope with the fold mapping being multiple code points can +use the folding contained in the \fIsimple\fR field, with the loss of some +generality. In Unicode 5.1, about 7% of the defined foldings have no single +code point folding. +.PP +The \fImapping\fR and \fIstatus\fR fields are provided for backwards compatibility for +existing programs. They contain the same values as in previous versions of +this function. +.PP +Locale is not completely independent. The \fIturkic\fR field contains results to +use when the locale is a Turkic language. +.PP +For more information about case mappings see + +.SS "\fBall_casefolds()\fP" +.IX Subsection "all_casefolds()" +.Vb 1 +\& use Unicode::UCD \*(Aqall_casefolds\*(Aq; +\& +\& my $all_folds_ref = all_casefolds(); +\& foreach my $char_with_casefold (sort { $a <=> $b } +\& keys %$all_folds_ref) +\& { +\& printf "%04X:", $char_with_casefold; +\& my $casefold = $all_folds_ref\->{$char_with_casefold}; +\& +\& # Get folds for $char_with_casefold +\& +\& my @full_fold_hex = split / /, $casefold\->{\*(Aqfull\*(Aq}; +\& my $full_fold_string = +\& join "", map {chr(hex($_))} @full_fold_hex; +\& print " full=", join " ", @full_fold_hex; +\& my @turkic_fold_hex = +\& split / /, ($casefold\->{\*(Aqturkic\*(Aq} ne "") +\& ? $casefold\->{\*(Aqturkic\*(Aq} +\& : $casefold\->{\*(Aqfull\*(Aq}; +\& my $turkic_fold_string = +\& join "", map {chr(hex($_))} @turkic_fold_hex; +\& print "; turkic=", join " ", @turkic_fold_hex; +\& if (defined $casefold && $casefold\->{\*(Aqsimple\*(Aq} ne "") { +\& my $simple_fold_hex = $casefold\->{\*(Aqsimple\*(Aq}; +\& my $simple_fold_string = chr(hex($simple_fold_hex)); +\& print "; simple=$simple_fold_hex"; +\& } +\& print "\en"; +\& } +.Ve +.PP +This returns all the case foldings in the current version of Unicode in the +form of a reference to a hash. Each key to the hash is the decimal +representation of a Unicode character that has a casefold to other than +itself. The casefold of a semi-colon is itself, so it isn't in the hash; +likewise for a lowercase \*(L"a\*(R", but there is an entry for a capital \*(L"A\*(R". The +hash value for each key is another hash, identical to what is returned by +\&\*(L"\fBcasefold()\fR\*(R" if called with that code point as its argument. So the value +\&\f(CW\*(C`all_casefolds()\->{ord("A")}\*(Aq\*(C'\fR is equivalent to \f(CW\*(C`casefold(ord("A"))\*(C'\fR; +.SS "\fBcasespec()\fP" +.IX Subsection "casespec()" +.Vb 1 +\& use Unicode::UCD \*(Aqcasespec\*(Aq; +\& +\& my $casespec = casespec(0xFB00); +.Ve +.PP +This returns the potentially locale-dependent case mappings of the \*(L"code point +argument\*(R". The mappings may be longer than a single code point (which the basic +Unicode case mappings as returned by \*(L"\fBcharinfo()\fR\*(R" never are). +.PP +If there are no case mappings for the \*(L"code point argument\*(R", or if all three +possible mappings (\fIlower\fR, \fItitle\fR and \fIupper\fR) result in single code +points and are locale independent and unconditional, \f(CW\*(C`undef\*(C'\fR is returned +(which means that the case mappings, if any, for the code point are those +returned by \*(L"\fBcharinfo()\fR\*(R"). +.PP +Otherwise, a reference to a hash giving the mappings (or a reference to a hash +of such hashes, explained below) is returned with the following keys and their +meanings: +.PP +The keys in the bottom layer hash with the meanings of their values are: +.IP "\fBcode\fR" 4 +.IX Item "code" +the input native \*(L"code point argument\*(R" expressed in hexadecimal, with +leading zeros +added if necessary to make it contain at least four hexdigits +.IP "\fBlower\fR" 4 +.IX Item "lower" +one or more codes (separated by spaces) that, taken in order, give the +code points for the lower case of \fIcode\fR. +Each has at least four hexdigits. +.IP "\fBtitle\fR" 4 +.IX Item "title" +one or more codes (separated by spaces) that, taken in order, give the +code points for the title case of \fIcode\fR. +Each has at least four hexdigits. +.IP "\fBupper\fR" 4 +.IX Item "upper" +one or more codes (separated by spaces) that, taken in order, give the +code points for the upper case of \fIcode\fR. +Each has at least four hexdigits. +.IP "\fBcondition\fR" 4 +.IX Item "condition" +the conditions for the mappings to be valid. +If \f(CW\*(C`undef\*(C'\fR, the mappings are always valid. +When defined, this field is a list of conditions, +all of which must be true for the mappings to be valid. +The list consists of one or more +\&\fIlocales\fR (see below) +and/or \fIcontexts\fR (explained in the next paragraph), +separated by spaces. +(Other than as used to separate elements, spaces are to be ignored.) +Case distinctions in the condition list are not significant. +Conditions preceded by \*(L"\s-1NON_\*(R"\s0 represent the negation of the condition. +.Sp +A \fIcontext\fR is one of those defined in the Unicode standard. +For Unicode 5.1, they are defined in Section 3.13 \f(CW\*(C`Default Case Operations\*(C'\fR +available at +. +These are for context-sensitive casing. +.PP +The hash described above is returned for locale-independent casing, where +at least one of the mappings has length longer than one. If \f(CW\*(C`undef\*(C'\fR is +returned, the code point may have mappings, but if so, all are length one, +and are returned by \*(L"\fBcharinfo()\fR\*(R". +Note that when this function does return a value, it will be for the complete +set of mappings for a code point, even those whose length is one. +.PP +If there are additional casing rules that apply only in certain locales, +an additional key for each will be defined in the returned hash. Each such key +will be its locale name, defined as a 2\-letter \s-1ISO 3166\s0 country code, possibly +followed by a \*(L"_\*(R" and a 2\-letter \s-1ISO\s0 language code (possibly followed by a \*(L"_\*(R" +and a variant code). You can find the lists of all possible locales, see +Locale::Country and Locale::Language. +(In Unicode 6.0, the only locales returned by this function +are \f(CW\*(C`lt\*(C'\fR, \f(CW\*(C`tr\*(C'\fR, and \f(CW\*(C`az\*(C'\fR.) +.PP +Each locale key is a reference to a hash that has the form above, and gives +the casing rules for that particular locale, which take precedence over the +locale-independent ones when in that locale. +.PP +If the only casing for a code point is locale-dependent, then the returned +hash will not have any of the base keys, like \f(CW\*(C`code\*(C'\fR, \f(CW\*(C`upper\*(C'\fR, etc., but +will contain only locale keys. +.PP +For more information about case mappings see + +.SS "\fBnamedseq()\fP" +.IX Subsection "namedseq()" +.Vb 1 +\& use Unicode::UCD \*(Aqnamedseq\*(Aq; +\& +\& my $namedseq = namedseq("KATAKANA LETTER AINU P"); +\& my @namedseq = namedseq("KATAKANA LETTER AINU P"); +\& my %namedseq = namedseq(); +.Ve +.PP +If used with a single argument in a scalar context, returns the string +consisting of the code points of the named sequence, or \f(CW\*(C`undef\*(C'\fR if no +named sequence by that name exists. If used with a single argument in +a list context, it returns the list of the ordinals of the code points. +.PP +If used with no +arguments in a list context, it returns a hash with the names of all the +named sequences as the keys and their sequences as strings as +the values. Otherwise, it returns \f(CW\*(C`undef\*(C'\fR or an empty list depending +on the context. +.PP +This function only operates on officially approved (not provisional) named +sequences. +.PP +Note that as of Perl 5.14, \f(CW\*(C`\eN{KATAKANA LETTER AINU P}\*(C'\fR will insert the named +sequence into double-quoted strings, and \f(CW\*(C`charnames::string_vianame("KATAKANA +LETTER AINU P")\*(C'\fR will return the same string this function does, but will also +operate on character names that aren't named sequences, without you having to +know which are which. See charnames. +.SS "\fBnum()\fP" +.IX Subsection "num()" +.Vb 1 +\& use Unicode::UCD \*(Aqnum\*(Aq; +\& +\& my $val = num("123"); +\& my $one_quarter = num("\eN{VULGAR FRACTION 1/4}"); +\& my $val = num("12a", \e$valid_length); # $valid_length contains 2 +.Ve +.PP +\&\f(CW\*(C`num()\*(C'\fR returns the numeric value of the input Unicode string; or \f(CW\*(C`undef\*(C'\fR if it +doesn't think the entire string has a completely valid, safe numeric value. +If called with an optional second parameter, a reference to a scalar, \f(CW\*(C`num()\*(C'\fR +will set the scalar to the length of any valid initial substring; or to 0 if none. +.PP +If the string is just one character in length, the Unicode numeric value +is returned if it has one, or \f(CW\*(C`undef\*(C'\fR otherwise. If the optional scalar ref +is passed, it would be set to 1 if the return is valid; or 0 if the return is +\&\f(CW\*(C`undef\*(C'\fR. Note that the numeric value returned need not be a whole number. +\&\f(CW\*(C`num("\eN{TIBETAN DIGIT HALF ZERO}")\*(C'\fR, for example returns \-0.5. +.PP +If the string is more than one character, \f(CW\*(C`undef\*(C'\fR is returned unless +all its characters are decimal digits (that is, they would match \f(CW\*(C`\ed+\*(C'\fR), +from the same script. For example if you have an \s-1ASCII\s0 '0' and a Bengali +\&'3', mixed together, they aren't considered a valid number, and \f(CW\*(C`undef\*(C'\fR +is returned. A further restriction is that the digits all have to be of +the same form. A half-width digit mixed with a full-width one will +return \f(CW\*(C`undef\*(C'\fR. The Arabic script has two sets of digits; \f(CW\*(C`num\*(C'\fR will +return \f(CW\*(C`undef\*(C'\fR unless all the digits in the string come from the same +set. In all cases, the optional scalar ref parameter is set to how +long any valid initial substring of digits is; hence it will be set to the +entire string length if the main return value is not \f(CW\*(C`undef\*(C'\fR. +.PP +\&\f(CW\*(C`num\*(C'\fR errs on the side of safety, and there may be valid strings of +decimal digits that it doesn't recognize. Note that Unicode defines +a number of \*(L"digit\*(R" characters that aren't \*(L"decimal digit\*(R" characters. +\&\*(L"Decimal digits\*(R" have the property that they have a positional value, i.e., +there is a units position, a 10's position, a 100's, etc, \s-1AND\s0 they are +arranged in Unicode in blocks of 10 contiguous code points. The Chinese +digits, for example, are not in such a contiguous block, and so Unicode +doesn't view them as decimal digits, but merely digits, and so \f(CW\*(C`\ed\*(C'\fR will not +match them. A single-character string containing one of these digits will +have its decimal value returned by \f(CW\*(C`num\*(C'\fR, but any longer string containing +only these digits will return \f(CW\*(C`undef\*(C'\fR. +.PP +Strings of multiple sub\- and superscripts are not recognized as numbers. You +can use either of the compatibility decompositions in Unicode::Normalize to +change these into digits, and then call \f(CW\*(C`num\*(C'\fR on the result. +.SS "\fBprop_aliases()\fP" +.IX Subsection "prop_aliases()" +.Vb 1 +\& use Unicode::UCD \*(Aqprop_aliases\*(Aq; +\& +\& my ($short_name, $full_name, @other_names) = prop_aliases("space"); +\& my $same_full_name = prop_aliases("Space"); # Scalar context +\& my ($same_short_name) = prop_aliases("Space"); # gets 0th element +\& print "The full name is $full_name\en"; +\& print "The short name is $short_name\en"; +\& print "The other aliases are: ", join(", ", @other_names), "\en"; +\& +\& prints: +\& The full name is White_Space +\& The short name is WSpace +\& The other aliases are: Space +.Ve +.PP +Most Unicode properties have several synonymous names. Typically, there is at +least a short name, convenient to type, and a long name that more fully +describes the property, and hence is more easily understood. +.PP +If you know one name for a Unicode property, you can use \f(CW\*(C`prop_aliases\*(C'\fR to find +either the long name (when called in scalar context), or a list of all of the +names, somewhat ordered so that the short name is in the 0th element, the long +name in the next element, and any other synonyms are in the remaining +elements, in no particular order. +.PP +The long name is returned in a form nicely capitalized, suitable for printing. +.PP +The input parameter name is loosely matched, which means that white space, +hyphens, and underscores are ignored (except for the trailing underscore in +the old_form grandfathered-in \f(CW"L_"\fR, which is better written as \f(CW"LC"\fR, and +both of which mean \f(CW\*(C`General_Category=Cased Letter\*(C'\fR). +.PP +If the name is unknown, \f(CW\*(C`undef\*(C'\fR is returned (or an empty list in list +context). Note that Perl typically recognizes property names in regular +expressions with an optional \f(CW\*(C`"Is_\*(C'\fR" (with or without the underscore) +prefixed to them, such as \f(CW\*(C`\ep{isgc=punct}\*(C'\fR. This function does not recognize +those in the input, returning \f(CW\*(C`undef\*(C'\fR. Nor are they included in the output +as possible synonyms. +.PP +\&\f(CW\*(C`prop_aliases\*(C'\fR does know about the Perl extensions to Unicode properties, +such as \f(CW\*(C`Any\*(C'\fR and \f(CW\*(C`XPosixAlpha\*(C'\fR, and the single form equivalents to Unicode +properties such as \f(CW\*(C`XDigit\*(C'\fR, \f(CW\*(C`Greek\*(C'\fR, \f(CW\*(C`In_Greek\*(C'\fR, and \f(CW\*(C`Is_Greek\*(C'\fR. The +final example demonstrates that the \f(CW"Is_"\fR prefix is recognized for these +extensions; it is needed to resolve ambiguities. For example, +\&\f(CW\*(C`prop_aliases(\*(Aqlc\*(Aq)\*(C'\fR returns the list \f(CW\*(C`(lc, Lowercase_Mapping)\*(C'\fR, but +\&\f(CW\*(C`prop_aliases(\*(Aqislc\*(Aq)\*(C'\fR returns \f(CW\*(C`(Is_LC, Cased_Letter)\*(C'\fR. This is +because \f(CW\*(C`islc\*(C'\fR is a Perl extension which is short for +\&\f(CW\*(C`General_Category=Cased Letter\*(C'\fR. The lists returned for the Perl extensions +will not include the \f(CW"Is_"\fR prefix (whether or not the input had it) unless +needed to resolve ambiguities, as shown in the \f(CW"islc"\fR example, where the +returned list had one element containing \f(CW"Is_"\fR, and the other without. +.PP +It is also possible for the reverse to happen: \f(CW\*(C`prop_aliases(\*(Aqisc\*(Aq)\*(C'\fR returns +the list \f(CW\*(C`(isc, ISO_Comment)\*(C'\fR; whereas \f(CW\*(C`prop_aliases(\*(Aqc\*(Aq)\*(C'\fR returns +\&\f(CW\*(C`(C, Other)\*(C'\fR (the latter being a Perl extension meaning +\&\f(CW\*(C`General_Category=Other\*(C'\fR. +\&\*(L"Properties accessible through Unicode::UCD\*(R" in perluniprops lists the available +forms, including which ones are discouraged from use. +.PP +Those discouraged forms are accepted as input to \f(CW\*(C`prop_aliases\*(C'\fR, but are not +returned in the lists. \f(CW\*(C`prop_aliases(\*(AqisL&\*(Aq)\*(C'\fR and \f(CW\*(C`prop_aliases(\*(AqisL_\*(Aq)\*(C'\fR, +which are old synonyms for \f(CW"Is_LC"\fR and should not be used in new code, are +examples of this. These both return \f(CW\*(C`(Is_LC, Cased_Letter)\*(C'\fR. Thus this +function allows you to take a discouraged form, and find its acceptable +alternatives. The same goes with single-form Block property equivalences. +Only the forms that begin with \f(CW"In_"\fR are not discouraged; if you pass +\&\f(CW\*(C`prop_aliases\*(C'\fR a discouraged form, you will get back the equivalent ones that +begin with \f(CW"In_"\fR. It will otherwise look like a new-style block name (see. +\&\*(L"Old-style versus new-style block names\*(R"). +.PP +\&\f(CW\*(C`prop_aliases\*(C'\fR does not know about any user-defined properties, and will +return \f(CW\*(C`undef\*(C'\fR if called with one of those. Likewise for Perl internal +properties, with the exception of \*(L"Perl_Decimal_Digit\*(R" which it does know +about (and which is documented below in \*(L"\fBprop_invmap()\fR\*(R"). +.SS "\fBprop_values()\fP" +.IX Subsection "prop_values()" +.Vb 1 +\& use Unicode::UCD \*(Aqprop_values\*(Aq; +\& +\& print "AHex values are: ", join(", ", prop_values("AHex")), +\& "\en"; +\& prints: +\& AHex values are: N, Y +.Ve +.PP +Some Unicode properties have a restricted set of legal values. For example, +all binary properties are restricted to just \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR; and there +are only a few dozen possible General Categories. Use \f(CW\*(C`prop_values\*(C'\fR +to find out if a given property is one such, and if so, to get a list of the +values: +.PP +.Vb 3 +\& print join ", ", prop_values("NFC_Quick_Check"); +\& prints: +\& M, N, Y +.Ve +.PP +If the property doesn't have such a restricted set, \f(CW\*(C`undef\*(C'\fR is returned. +.PP +There are usually several synonyms for each possible value. Use +\&\*(L"\fBprop_value_aliases()\fR\*(R" to access those. +.PP +Case, white space, hyphens, and underscores are ignored in the input property +name (except for the trailing underscore in the old-form grandfathered-in +general category property value \f(CW"L_"\fR, which is better written as \f(CW"LC"\fR). +.PP +If the property name is unknown, \f(CW\*(C`undef\*(C'\fR is returned. Note that Perl typically +recognizes property names in regular expressions with an optional \f(CW\*(C`"Is_\*(C'\fR" +(with or without the underscore) prefixed to them, such as \f(CW\*(C`\ep{isgc=punct}\*(C'\fR. +This function does not recognize those in the property parameter, returning +\&\f(CW\*(C`undef\*(C'\fR. +.PP +For the block property, new-style block names are returned (see +\&\*(L"Old-style versus new-style block names\*(R"). +.PP +\&\f(CW\*(C`prop_values\*(C'\fR does not know about any user-defined properties, and +will return \f(CW\*(C`undef\*(C'\fR if called with one of those. +.SS "\fBprop_value_aliases()\fP" +.IX Subsection "prop_value_aliases()" +.Vb 1 +\& use Unicode::UCD \*(Aqprop_value_aliases\*(Aq; +\& +\& my ($short_name, $full_name, @other_names) +\& = prop_value_aliases("Gc", "Punct"); +\& my $same_full_name = prop_value_aliases("Gc", "P"); # Scalar cntxt +\& my ($same_short_name) = prop_value_aliases("Gc", "P"); # gets 0th +\& # element +\& print "The full name is $full_name\en"; +\& print "The short name is $short_name\en"; +\& print "The other aliases are: ", join(", ", @other_names), "\en"; +\& +\& prints: +\& The full name is Punctuation +\& The short name is P +\& The other aliases are: Punct +.Ve +.PP +Some Unicode properties have a restricted set of legal values. For example, +all binary properties are restricted to just \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR; and there +are only a few dozen possible General Categories. +.PP +You can use \*(L"\fBprop_values()\fR\*(R" to find out if a given property is one which has +a restricted set of values, and if so, what those values are. But usually +each value actually has several synonyms. For example, in Unicode binary +properties, \fItruth\fR can be represented by any of the strings \*(L"Y\*(R", \*(L"Yes\*(R", \*(L"T\*(R", +or \*(L"True\*(R"; and the General Category \*(L"Punctuation\*(R" by that string, or \*(L"Punct\*(R", +or simply \*(L"P\*(R". +.PP +Like property names, there is typically at least a short name for each such +property-value, and a long name. If you know any name of the property-value +(which you can get by \*(L"\fBprop_values()\fR\*(R", you can use \f(CW\*(C`prop_value_aliases\*(C'\fR() +to get the long name (when called in scalar context), or a list of all the +names, with the short name in the 0th element, the long name in the next +element, and any other synonyms in the remaining elements, in no particular +order, except that any all-numeric synonyms will be last. +.PP +The long name is returned in a form nicely capitalized, suitable for printing. +.PP +Case, white space, hyphens, and underscores are ignored in the input parameters +(except for the trailing underscore in the old-form grandfathered-in general +category property value \f(CW"L_"\fR, which is better written as \f(CW"LC"\fR). +.PP +If either name is unknown, \f(CW\*(C`undef\*(C'\fR is returned. Note that Perl typically +recognizes property names in regular expressions with an optional \f(CW\*(C`"Is_\*(C'\fR" +(with or without the underscore) prefixed to them, such as \f(CW\*(C`\ep{isgc=punct}\*(C'\fR. +This function does not recognize those in the property parameter, returning +\&\f(CW\*(C`undef\*(C'\fR. +.PP +If called with a property that doesn't have synonyms for its values, it +returns the input value, possibly normalized with capitalization and +underscores, but not necessarily checking that the input value is valid. +.PP +For the block property, new-style block names are returned (see +\&\*(L"Old-style versus new-style block names\*(R"). +.PP +To find the synonyms for single-forms, such as \f(CW\*(C`\ep{Any}\*(C'\fR, use +\&\*(L"\fBprop_aliases()\fR\*(R" instead. +.PP +\&\f(CW\*(C`prop_value_aliases\*(C'\fR does not know about any user-defined properties, and +will return \f(CW\*(C`undef\*(C'\fR if called with one of those. +.SS "\fBprop_invlist()\fP" +.IX Subsection "prop_invlist()" +\&\f(CW\*(C`prop_invlist\*(C'\fR returns an inversion list (described below) that defines all the +code points for the binary Unicode property (or \*(L"property=value\*(R" pair) given +by the input parameter string: +.PP +.Vb 3 +\& use feature \*(Aqsay\*(Aq; +\& use Unicode::UCD \*(Aqprop_invlist\*(Aq; +\& say join ", ", prop_invlist("Any"); +\& +\& prints: +\& 0, 1114112 +.Ve +.PP +If the input is unknown \f(CW\*(C`undef\*(C'\fR is returned in scalar context; an empty-list +in list context. If the input is known, the number of elements in +the list is returned if called in scalar context. +.PP +perluniprops gives +the list of properties that this function accepts, as well as all the possible +forms for them (including with the optional \*(L"Is_\*(R" prefixes). (Except this +function doesn't accept any Perl-internal properties, some of which are listed +there.) This function uses the same loose or tighter matching rules for +resolving the input property's name as is done for regular expressions. These +are also specified in perluniprops. Examples of using the \*(L"property=value\*(R" form are: +.PP +.Vb 1 +\& say join ", ", prop_invlist("Script_Extensions=Shavian"); +\& +\& prints: +\& 66640, 66688 +\& +\& say join ", ", prop_invlist("ASCII_Hex_Digit=No"); +\& +\& prints: +\& 0, 48, 58, 65, 71, 97, 103 +\& +\& say join ", ", prop_invlist("ASCII_Hex_Digit=Yes"); +\& +\& prints: +\& 48, 58, 65, 71, 97, 103 +.Ve +.PP +Inversion lists are a compact way of specifying Unicode property-value +definitions. The 0th item in the list is the lowest code point that has the +property-value. The next item (item [1]) is the lowest code point beyond that +one that does \s-1NOT\s0 have the property-value. And the next item beyond that +([2]) is the lowest code point beyond that one that does have the +property-value, and so on. Put another way, each element in the list gives +the beginning of a range that has the property-value (for even numbered +elements), or doesn't have the property-value (for odd numbered elements). +The name for this data structure stems from the fact that each element in the +list toggles (or inverts) whether the corresponding range is or isn't on the +list. +.PP +In the final example above, the first \s-1ASCII\s0 Hex digit is code point 48, the +character \*(L"0\*(R", and all code points from it through 57 (a \*(L"9\*(R") are \s-1ASCII\s0 hex +digits. Code points 58 through 64 aren't, but 65 (an \*(L"A\*(R") through 70 (an \*(L"F\*(R") +are, as are 97 (\*(L"a\*(R") through 102 (\*(L"f\*(R"). 103 starts a range of code points +that aren't \s-1ASCII\s0 hex digits. That range extends to infinity, which on your +computer can be found in the variable \f(CW$Unicode::UCD::MAX_CP\fR. (This +variable is as close to infinity as Perl can get on your platform, and may be +too high for some operations to work; you may wish to use a smaller number for +your purposes.) +.PP +Note that the inversion lists returned by this function can possibly include +non-Unicode code points, that is anything above 0x10FFFF. Unicode properties +are not defined on such code points. You might wish to change the output to +not include these. Simply add 0x110000 at the end of the non-empty returned +list if it isn't already that value; and pop that value if it is; like: +.PP +.Vb 9 +\& my @list = prop_invlist("foo"); +\& if (@list) { +\& if ($list[\-1] == 0x110000) { +\& pop @list; # Defeat the turning on for above Unicode +\& } +\& else { +\& push @list, 0x110000; # Turn off for above Unicode +\& } +\& } +.Ve +.PP +It is a simple matter to expand out an inversion list to a full list of all +code points that have the property-value: +.PP +.Vb 11 +\& my @invlist = prop_invlist($property_name); +\& die "empty" unless @invlist; +\& my @full_list; +\& for (my $i = 0; $i < @invlist; $i += 2) { +\& my $upper = ($i + 1) < @invlist +\& ? $invlist[$i+1] \- 1 # In range +\& : $Unicode::UCD::MAX_CP; # To infinity. +\& for my $j ($invlist[$i] .. $upper) { +\& push @full_list, $j; +\& } +\& } +.Ve +.PP +\&\f(CW\*(C`prop_invlist\*(C'\fR does not know about any user-defined nor Perl internal-only +properties, and will return \f(CW\*(C`undef\*(C'\fR if called with one of those. +.PP +The \*(L"\fBsearch_invlist()\fR\*(R" function is provided for finding a code point within +an inversion list. +.SS "\fBprop_invmap()\fP" +.IX Subsection "prop_invmap()" +.Vb 3 +\& use Unicode::UCD \*(Aqprop_invmap\*(Aq; +\& my ($list_ref, $map_ref, $format, $default) +\& = prop_invmap("General Category"); +.Ve +.PP +\&\f(CW\*(C`prop_invmap\*(C'\fR is used to get the complete mapping definition for a property, +in the form of an inversion map. An inversion map consists of two parallel +arrays. One is an ordered list of code points that mark range beginnings, and +the other gives the value (or mapping) that all code points in the +corresponding range have. +.PP +\&\f(CW\*(C`prop_invmap\*(C'\fR is called with the name of the desired property. The name is +loosely matched, meaning that differences in case, white-space, hyphens, and +underscores are not meaningful (except for the trailing underscore in the +old-form grandfathered-in property \f(CW"L_"\fR, which is better written as \f(CW"LC"\fR, +or even better, \f(CW"Gc=LC"\fR). +.PP +Many Unicode properties have more than one name (or alias). \f(CW\*(C`prop_invmap\*(C'\fR +understands all of these, including Perl extensions to them. Ambiguities are +resolved as described above for \*(L"\fBprop_aliases()\fR\*(R" (except if a property has +both a complete mapping, and a binary \f(CW\*(C`Y\*(C'\fR/\f(CW\*(C`N\*(C'\fR mapping, then specifying the +property name prefixed by \f(CW"is"\fR causes the binary one to be returned). The +Perl internal property "Perl_Decimal_Digit, described below, is also accepted. +An empty list is returned if the property name is unknown. +See \*(L"Properties accessible through Unicode::UCD\*(R" in perluniprops for the +properties acceptable as inputs to this function. +.PP +It is a fatal error to call this function except in list context. +.PP +In addition to the two arrays that form the inversion map, \f(CW\*(C`prop_invmap\*(C'\fR +returns two other values; one is a scalar that gives some details as to the +format of the entries of the map array; the other is a default value, useful +in maps whose format name begins with the letter \f(CW"a"\fR, as described +below in its subsection; and for specialized purposes, such as +converting to another data structure, described at the end of this main +section. +.PP +This means that \f(CW\*(C`prop_invmap\*(C'\fR returns a 4 element list. For example, +.PP +.Vb 2 +\& my ($blocks_ranges_ref, $blocks_maps_ref, $format, $default) +\& = prop_invmap("Block"); +.Ve +.PP +In this call, the two arrays will be populated as shown below (for Unicode +6.0): +.PP +.Vb 10 +\& Index @blocks_ranges @blocks_maps +\& 0 0x0000 Basic Latin +\& 1 0x0080 Latin\-1 Supplement +\& 2 0x0100 Latin Extended\-A +\& 3 0x0180 Latin Extended\-B +\& 4 0x0250 IPA Extensions +\& 5 0x02B0 Spacing Modifier Letters +\& 6 0x0300 Combining Diacritical Marks +\& 7 0x0370 Greek and Coptic +\& 8 0x0400 Cyrillic +\& ... +\& 233 0x2B820 No_Block +\& 234 0x2F800 CJK Compatibility Ideographs Supplement +\& 235 0x2FA20 No_Block +\& 236 0xE0000 Tags +\& 237 0xE0080 No_Block +\& 238 0xE0100 Variation Selectors Supplement +\& 239 0xE01F0 No_Block +\& 240 0xF0000 Supplementary Private Use Area\-A +\& 241 0x100000 Supplementary Private Use Area\-B +\& 242 0x110000 No_Block +.Ve +.PP +The first line (with Index [0]) means that the value for code point 0 is \*(L"Basic +Latin\*(R". The entry \*(L"0x0080\*(R" in the \f(CW@blocks_ranges\fR column in the second line +means that the value from the first line, \*(L"Basic Latin\*(R", extends to all code +points in the range from 0 up to but not including 0x0080, that is, through +127. In other words, the code points from 0 to 127 are all in the \*(L"Basic +Latin\*(R" block. Similarly, all code points in the range from 0x0080 up to (but +not including) 0x0100 are in the block named \*(L"Latin\-1 Supplement\*(R", etc. +(Notice that the return is the old-style block names; see \*(L"Old-style versus +new-style block names\*(R"). +.PP +The final line (with Index [242]) means that the value for all code points above +the legal Unicode maximum code point have the value \*(L"No_Block\*(R", which is the +term Unicode uses for a non-existing block. +.PP +The arrays completely specify the mappings for all possible code points. +The final element in an inversion map returned by this function will always be +for the range that consists of all the code points that aren't legal Unicode, +but that are expressible on the platform. (That is, it starts with code point +0x110000, the first code point above the legal Unicode maximum, and extends to +infinity.) The value for that range will be the same that any typical +unassigned code point has for the specified property. (Certain unassigned +code points are not \*(L"typical\*(R"; for example the non-character code points, or +those in blocks that are to be written right-to-left. The above-Unicode +range's value is not based on these atypical code points.) It could be argued +that, instead of treating these as unassigned Unicode code points, the value +for this range should be \f(CW\*(C`undef\*(C'\fR. If you wish, you can change the returned +arrays accordingly. +.PP +The maps for almost all properties are simple scalars that should be +interpreted as-is. +These values are those given in the Unicode-supplied data files, which may be +inconsistent as to capitalization and as to which synonym for a property-value +is given. The results may be normalized by using the \*(L"\fBprop_value_aliases()\fR\*(R" +function. +.PP +There are exceptions to the simple scalar maps. Some properties have some +elements in their map list that are themselves lists of scalars; and some +special strings are returned that are not to be interpreted as-is. Element +[2] (placed into \f(CW$format\fR in the example above) of the returned four element +list tells you if the map has any of these special elements or not, as follows: +.ie n .IP "\fB\f(CB""s""\fB\fR" 4 +.el .IP "\fB\f(CBs\fB\fR" 4 +.IX Item "s" +means all the elements of the map array are simple scalars, with no special +elements. Almost all properties are like this, like the \f(CW\*(C`block\*(C'\fR example +above. +.ie n .IP "\fB\f(CB""sl""\fB\fR" 4 +.el .IP "\fB\f(CBsl\fB\fR" 4 +.IX Item "sl" +means that some of the map array elements have the form given by \f(CW"s"\fR, and +the rest are lists of scalars. For example, here is a portion of the output +of calling \f(CW\*(C`prop_invmap\*(C'\fR() with the \*(L"Script Extensions\*(R" property: +.Sp +.Vb 6 +\& @scripts_ranges @scripts_maps +\& ... +\& 0x0953 Devanagari +\& 0x0964 [ Bengali, Devanagari, Gurumukhi, Oriya ] +\& 0x0966 Devanagari +\& 0x0970 Common +.Ve +.Sp +Here, the code points 0x964 and 0x965 are both used in Bengali, +Devanagari, Gurmukhi, and Oriya, but no other scripts. +.Sp +The Name_Alias property is also of this form. But each scalar consists of two +components: 1) the name, and 2) the type of alias this is. They are +separated by a colon and a space. In Unicode 6.1, there are several alias types: +.RS 4 +.ie n .IP """correction""" 4 +.el .IP "\f(CWcorrection\fR" 4 +.IX Item "correction" +indicates that the name is a corrected form for the +original name (which remains valid) for the same code point. +.ie n .IP """control""" 4 +.el .IP "\f(CWcontrol\fR" 4 +.IX Item "control" +adds a new name for a control character. +.ie n .IP """alternate""" 4 +.el .IP "\f(CWalternate\fR" 4 +.IX Item "alternate" +is an alternate name for a character +.ie n .IP """figment""" 4 +.el .IP "\f(CWfigment\fR" 4 +.IX Item "figment" +is a name for a character that has been documented but was never in any +actual standard. +.ie n .IP """abbreviation""" 4 +.el .IP "\f(CWabbreviation\fR" 4 +.IX Item "abbreviation" +is a common abbreviation for a character +.RE +.RS 4 +.Sp +The lists are ordered (roughly) so the most preferred names come before less +preferred ones. +.Sp +For example, +.Sp +.Vb 10 +\& @aliases_ranges @alias_maps +\& ... +\& 0x009E [ \*(AqPRIVACY MESSAGE: control\*(Aq, \*(AqPM: abbreviation\*(Aq ] +\& 0x009F [ \*(AqAPPLICATION PROGRAM COMMAND: control\*(Aq, +\& \*(AqAPC: abbreviation\*(Aq +\& ] +\& 0x00A0 \*(AqNBSP: abbreviation\*(Aq +\& 0x00A1 "" +\& 0x00AD \*(AqSHY: abbreviation\*(Aq +\& 0x00AE "" +\& 0x01A2 \*(AqLATIN CAPITAL LETTER GHA: correction\*(Aq +\& 0x01A3 \*(AqLATIN SMALL LETTER GHA: correction\*(Aq +\& 0x01A4 "" +\& ... +.Ve +.Sp +A map to the empty string means that there is no alias defined for the code +point. +.RE +.ie n .IP "\fB\f(CB""a""\fB\fR" 4 +.el .IP "\fB\f(CBa\fB\fR" 4 +.IX Item "a" +is like \f(CW"s"\fR in that all the map array elements are scalars, but here they are +restricted to all being integers, and some have to be adjusted (hence the name +\&\f(CW"a"\fR) to get the correct result. For example, in: +.Sp +.Vb 2 +\& my ($uppers_ranges_ref, $uppers_maps_ref, $format, $default) +\& = prop_invmap("Simple_Uppercase_Mapping"); +.Ve +.Sp +the returned arrays look like this: +.Sp +.Vb 7 +\& @$uppers_ranges_ref @$uppers_maps_ref Note +\& 0 0 +\& 97 65 \*(Aqa\*(Aq maps to \*(AqA\*(Aq, b => B ... +\& 123 0 +\& 181 924 MICRO SIGN => Greek Cap MU +\& 182 0 +\& ... +.Ve +.Sp +and \f(CW$default\fR is 0. +.Sp +Let's start with the second line. It says that the uppercase of code point 97 +is 65; or \f(CW\*(C`uc("a")\*(C'\fR == \*(L"A\*(R". But the line is for the entire range of code +points 97 through 122. To get the mapping for any code point in this range, +you take the offset it has from the beginning code point of the range, and add +that to the mapping for that first code point. So, the mapping for 122 (\*(L"z\*(R") +is derived by taking the offset of 122 from 97 (=25) and adding that to 65, +yielding 90 (\*(L"z\*(R"). Likewise for everything in between. +.Sp +Requiring this simple adjustment allows the returned arrays to be +significantly smaller than otherwise, up to a factor of 10, speeding up +searching through them. +.Sp +Ranges that map to \f(CW$default\fR, \f(CW"0"\fR, behave somewhat differently. For +these, each code point maps to itself. So, in the first line in the example, +\&\f(CW\*(C`ord(uc(chr(0)))\*(C'\fR is 0, \f(CW\*(C`ord(uc(chr(1)))\*(C'\fR is 1, .. +\&\f(CW\*(C`ord(uc(chr(96)))\*(C'\fR is 96. +.ie n .IP "\fB\f(CB""al""\fB\fR" 4 +.el .IP "\fB\f(CBal\fB\fR" 4 +.IX Item "al" +means that some of the map array elements have the form given by \f(CW"a"\fR, and +the rest are ordered lists of code points. +For example, in: +.Sp +.Vb 2 +\& my ($uppers_ranges_ref, $uppers_maps_ref, $format, $default) +\& = prop_invmap("Uppercase_Mapping"); +.Ve +.Sp +the returned arrays look like this: +.Sp +.Vb 11 +\& @$uppers_ranges_ref @$uppers_maps_ref +\& 0 0 +\& 97 65 +\& 123 0 +\& 181 924 +\& 182 0 +\& ... +\& 0x0149 [ 0x02BC 0x004E ] +\& 0x014A 0 +\& 0x014B 330 +\& ... +.Ve +.Sp +This is the full Uppercase_Mapping property (as opposed to the +Simple_Uppercase_Mapping given in the example for format \f(CW"a"\fR). The only +difference between the two in the ranges shown is that the code point at +0x0149 (\s-1LATIN SMALL LETTER N PRECEDED BY APOSTROPHE\s0) maps to a string of two +characters, 0x02BC (\s-1MODIFIER LETTER APOSTROPHE\s0) followed by 0x004E (\s-1LATIN +CAPITAL LETTER N\s0). +.Sp +No adjustments are needed to entries that are references to arrays; each such +entry will have exactly one element in its range, so the offset is always 0. +.Sp +The fourth (index [3]) element (\f(CW$default\fR) in the list returned for this +format is 0. +.ie n .IP "\fB\f(CB""ae""\fB\fR" 4 +.el .IP "\fB\f(CBae\fB\fR" 4 +.IX Item "ae" +This is like \f(CW"a"\fR, but some elements are the empty string, and should not be +adjusted. +The one internal Perl property accessible by \f(CW\*(C`prop_invmap\*(C'\fR is of this type: +\&\*(L"Perl_Decimal_Digit\*(R" returns an inversion map which gives the numeric values +that are represented by the Unicode decimal digit characters. Characters that +don't represent decimal digits map to the empty string, like so: +.Sp +.Vb 12 +\& @digits @values +\& 0x0000 "" +\& 0x0030 0 +\& 0x003A: "" +\& 0x0660: 0 +\& 0x066A: "" +\& 0x06F0: 0 +\& 0x06FA: "" +\& 0x07C0: 0 +\& 0x07CA: "" +\& 0x0966: 0 +\& ... +.Ve +.Sp +This means that the code points from 0 to 0x2F do not represent decimal digits; +the code point 0x30 (\s-1DIGIT ZERO\s0) represents 0; code point 0x31, (\s-1DIGIT ONE\s0), +represents 0+1\-0 = 1; ... code point 0x39, (\s-1DIGIT NINE\s0), represents 0+9\-0 = 9; +\&... code points 0x3A through 0x65F do not represent decimal digits; 0x660 +(ARABIC-INDIC \s-1DIGIT ZERO\s0), represents 0; ... 0x07C1 (\s-1NKO DIGIT ONE\s0), +represents 0+1\-0 = 1 ... +.Sp +The fourth (index [3]) element (\f(CW$default\fR) in the list returned for this +format is the empty string. +.ie n .IP "\fB\f(CB""ale""\fB\fR" 4 +.el .IP "\fB\f(CBale\fB\fR" 4 +.IX Item "ale" +is a combination of the \f(CW"al"\fR type and the \f(CW"ae"\fR type. Some of +the map array elements have the forms given by \f(CW"al"\fR, and +the rest are the empty string. The property \f(CW\*(C`NFKC_Casefold\*(C'\fR has this form. +An example slice is: +.Sp +.Vb 9 +\& @$ranges_ref @$maps_ref Note +\& ... +\& 0x00AA 97 FEMININE ORDINAL INDICATOR => \*(Aqa\*(Aq +\& 0x00AB 0 +\& 0x00AD SOFT HYPHEN => "" +\& 0x00AE 0 +\& 0x00AF [ 0x0020, 0x0304 ] MACRON => SPACE . COMBINING MACRON +\& 0x00B0 0 +\& ... +.Ve +.Sp +The fourth (index [3]) element (\f(CW$default\fR) in the list returned for this +format is 0. +.ie n .IP "\fB\f(CB""ar""\fB\fR" 4 +.el .IP "\fB\f(CBar\fB\fR" 4 +.IX Item "ar" +means that all the elements of the map array are either rational numbers or +the string \f(CW"NaN"\fR, meaning \*(L"Not a Number\*(R". A rational number is either an +integer, or two integers separated by a solidus (\f(CW"/"\fR). The second integer +represents the denominator of the division implied by the solidus, and is +actually always positive, so it is guaranteed not to be 0 and to not be +signed. When the element is a plain integer (without the +solidus), it may need to be adjusted to get the correct value by adding the +offset, just as other \f(CW"a"\fR properties. No adjustment is needed for +fractions, as the range is guaranteed to have just a single element, and so +the offset is always 0. +.Sp +If you want to convert the returned map to entirely scalar numbers, you +can use something like this: +.Sp +.Vb 4 +\& my ($invlist_ref, $invmap_ref, $format) = prop_invmap($property); +\& if ($format && $format eq "ar") { +\& map { $_ = eval $_ if $_ ne \*(AqNaN\*(Aq } @$map_ref; +\& } +.Ve +.Sp +Here's some entries from the output of the property \*(L"Nv\*(R", which has format +\&\f(CW"ar"\fR. +.Sp +.Vb 10 +\& @numerics_ranges @numerics_maps Note +\& 0x00 "NaN" +\& 0x30 0 DIGIT 0 .. DIGIT 9 +\& 0x3A "NaN" +\& 0xB2 2 SUPERSCRIPTs 2 and 3 +\& 0xB4 "NaN" +\& 0xB9 1 SUPERSCRIPT 1 +\& 0xBA "NaN" +\& 0xBC 1/4 VULGAR FRACTION 1/4 +\& 0xBD 1/2 VULGAR FRACTION 1/2 +\& 0xBE 3/4 VULGAR FRACTION 3/4 +\& 0xBF "NaN" +\& 0x660 0 ARABIC\-INDIC DIGIT ZERO .. NINE +\& 0x66A "NaN" +.Ve +.Sp +The fourth (index [3]) element (\f(CW$default\fR) in the list returned for this +format is \f(CW"NaN"\fR. +.ie n .IP "\fB\f(CB""n""\fB\fR" 4 +.el .IP "\fB\f(CBn\fB\fR" 4 +.IX Item "n" +means the Name property. All the elements of the map array are simple +scalars, but some of them contain special strings that require more work to +get the actual name. +.Sp +Entries such as: +.Sp +.Vb 1 +\& CJK UNIFIED IDEOGRAPH\- +.Ve +.Sp +mean that the name for the code point is \*(L"\s-1CJK UNIFIED IDEOGRAPH\-\*(R"\s0 +with the code point (expressed in hexadecimal) appended to it, like \*(L"\s-1CJK +UNIFIED IDEOGRAPH\-3403\*(R"\s0 (similarly for \f(CW\*(C`CJK\ COMPATIBILITY\ IDEOGRAPH\-\*(C'\fR). +.Sp +Also, entries like +.Sp +.Vb 1 +\& +.Ve +.Sp +means that the name is algorithmically calculated. This is easily done by +the function \*(L"charnames::viacode(code)\*(R" in charnames. +.Sp +Note that for control characters (\f(CW\*(C`Gc=cc\*(C'\fR), Unicode's data files have the +string "\f(CW\*(C`\*(C'\fR", but the real name of each of these characters is the empty +string. This function returns that real name, the empty string. (There are +names for these characters, but they are considered aliases, not the Name +property name, and are contained in the \f(CW\*(C`Name_Alias\*(C'\fR property.) +.ie n .IP "\fB\f(CB""ad""\fB\fR" 4 +.el .IP "\fB\f(CBad\fB\fR" 4 +.IX Item "ad" +means the Decomposition_Mapping property. This property is like \f(CW"al"\fR +properties, except that one of the scalar elements is of the form: +.Sp +.Vb 1 +\& +.Ve +.Sp +This signifies that this entry should be replaced by the decompositions for +all the code points whose decomposition is algorithmically calculated. (All +of them are currently in one range and no others outside the range are likely +to ever be added to Unicode; the \f(CW"n"\fR format +has this same entry.) These can be generated via the function +\&\fBUnicode::Normalize::NFD()\fR. +.Sp +Note that the mapping is the one that is specified in the Unicode data files, +and to get the final decomposition, it may need to be applied recursively. +Unicode in fact discourages use of this property except internally in +implementations of the Unicode Normalization Algorithm. +.Sp +The fourth (index [3]) element (\f(CW$default\fR) in the list returned for this +format is 0. +.PP +Note that a format begins with the letter \*(L"a\*(R" if and only the property it is +for requires adjustments by adding the offsets in multi-element ranges. For +all these properties, an entry should be adjusted only if the map is a scalar +which is an integer. That is, it must match the regular expression: +.PP +.Vb 1 +\& / ^ \-? \ed+ $ /xa +.Ve +.PP +Further, the first element in a range never needs adjustment, as the +adjustment would be just adding 0. +.PP +A binary search such as that provided by \*(L"\fBsearch_invlist()\fR\*(R", can be used to +quickly find a code point in the inversion list, and hence its corresponding +mapping. +.PP +The final, fourth element (index [3], assigned to \f(CW$default\fR in the \*(L"block\*(R" +example) in the four element list returned by this function is used with the +\&\f(CW"a"\fR format types; it may also be useful for applications +that wish to convert the returned inversion map data structure into some +other, such as a hash. It gives the mapping that most code points map to +under the property. If you establish the convention that any code point not +explicitly listed in your data structure maps to this value, you can +potentially make your data structure much smaller. As you construct your data +structure from the one returned by this function, simply ignore those ranges +that map to this value. For example, to +convert to the data structure searchable by \*(L"\fBcharinrange()\fR\*(R", you can follow +this recipe for properties that don't require adjustments: +.PP +.Vb 2 +\& my ($list_ref, $map_ref, $format, $default) = prop_invmap($property); +\& my @range_list; +\& +\& # Look at each element in the list, but the \-2 is needed because we +\& # look at $i+1 in the loop, and the final element is guaranteed to map +\& # to $default by prop_invmap(), so we would skip it anyway. +\& for my $i (0 .. @$list_ref \- 2) { +\& next if $map_ref\->[$i] eq $default; +\& push @range_list, [ $list_ref\->[$i], +\& $list_ref\->[$i+1], +\& $map_ref\->[$i] +\& ]; +\& } +\& +\& print charinrange(\e@range_list, $code_point), "\en"; +.Ve +.PP +With this, \f(CW\*(C`charinrange()\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR if its input code point maps +to \f(CW$default\fR. You can avoid this by omitting the \f(CW\*(C`next\*(C'\fR statement, and adding +a line after the loop to handle the final element of the inversion map. +.PP +Similarly, this recipe can be used for properties that do require adjustments: +.PP +.Vb 2 +\& for my $i (0 .. @$list_ref \- 2) { +\& next if $map_ref\->[$i] eq $default; +\& +\& # prop_invmap() guarantees that if the mapping is to an array, the +\& # range has just one element, so no need to worry about adjustments. +\& if (ref $map_ref\->[$i]) { +\& push @range_list, +\& [ $list_ref\->[$i], $list_ref\->[$i], $map_ref\->[$i] ]; +\& } +\& else { # Otherwise each element is actually mapped to a separate +\& # value, so the range has to be split into single code point +\& # ranges. +\& +\& my $adjustment = 0; +\& +\& # For each code point that gets mapped to something... +\& for my $j ($list_ref\->[$i] .. $list_ref\->[$i+1] \-1 ) { +\& +\& # ... add a range consisting of just it mapping to the +\& # original plus the adjustment, which is incremented for the +\& # next time through the loop, as the offset increases by 1 +\& # for each element in the range +\& push @range_list, +\& [ $j, $j, $map_ref\->[$i] + $adjustment++ ]; +\& } +\& } +\& } +.Ve +.PP +Note that the inversion maps returned for the \f(CW\*(C`Case_Folding\*(C'\fR and +\&\f(CW\*(C`Simple_Case_Folding\*(C'\fR properties do not include the Turkic-locale mappings. +Use \*(L"\fBcasefold()\fR\*(R" for these. +.PP +\&\f(CW\*(C`prop_invmap\*(C'\fR does not know about any user-defined properties, and will +return \f(CW\*(C`undef\*(C'\fR if called with one of those. +.PP +The returned values for the Perl extension properties, such as \f(CW\*(C`Any\*(C'\fR and +\&\f(CW\*(C`Greek\*(C'\fR are somewhat misleading. The values are either \f(CW"Y"\fR or \f(CW\*(C`"N\*(C'\fR". +All Unicode properties are bipartite, so you can actually use the \f(CW"Y"\fR or +\&\f(CW\*(C`"N\*(C'\fR" in a Perl regular expression for these, like \f(CW\*(C`qr/\ep{ID_Start=Y/}\*(C'\fR or +\&\f(CW\*(C`qr/\ep{Upper=N/}\*(C'\fR. But the Perl extensions aren't specified this way, only +like \f(CW\*(C`/qr/\ep{Any}\*(C'\fR, \fIetc\fR. You can't actually use the \f(CW"Y"\fR and \f(CW\*(C`"N\*(C'\fR" in +them. +.PP +\fIGetting every available name\fR +.IX Subsection "Getting every available name" +.PP +Instead of reading the Unicode Database directly from files, as you were able +to do for a long time, you are encouraged to use the supplied functions. So, +instead of reading \f(CW\*(C`Name.pl\*(C'\fR directly, which changed formats in 5.32, and may +do so again without notice in the future or even disappear, you ought to use +\&\*(L"\fBprop_invmap()\fR\*(R" like this: +.PP +.Vb 10 +\& my (%name, %cp, %cps, $n); +\& # All codepoints +\& foreach my $cat (qw( Name Name_Alias )) { +\& my ($codepoints, $names, $format, $default) = prop_invmap($cat); +\& # $format => "n", $default => "" +\& foreach my $i (0 .. @$codepoints \- 2) { +\& my ($cp, $n) = ($codepoints\->[$i], $names\->[$i]); +\& # If $n is a ref, the same codepoint has multiple names +\& foreach my $name (ref $n ? @$n : $n) { +\& $name{$cp} //= $name; +\& $cp{$name} //= $cp; +\& } +\& } +\& } +\& # Named sequences +\& { my %ns = namedseq(); +\& foreach my $name (sort { $ns{$a} cmp $ns{$b} } keys %ns) { +\& $cp{$name} //= [ map { ord } split "" => $ns{$name} ]; +\& } +\& } +.Ve +.SS "\fBsearch_invlist()\fP" +.IX Subsection "search_invlist()" +.Vb 2 +\& use Unicode::UCD qw(prop_invmap prop_invlist); +\& use Unicode::UCD \*(Aqsearch_invlist\*(Aq; +\& +\& my @invlist = prop_invlist($property_name); +\& print $code_point, ((search_invlist(\e@invlist, $code_point) // \-1) % 2) +\& ? " isn\*(Aqt" +\& : " is", +\& " in $property_name\en"; +\& +\& my ($blocks_ranges_ref, $blocks_map_ref) = prop_invmap("Block"); +\& my $index = search_invlist($blocks_ranges_ref, $code_point); +\& print "$code_point is in block ", $blocks_map_ref\->[$index], "\en"; +.Ve +.PP +\&\f(CW\*(C`search_invlist\*(C'\fR is used to search an inversion list returned by +\&\f(CW\*(C`prop_invlist\*(C'\fR or \f(CW\*(C`prop_invmap\*(C'\fR for a particular \*(L"code point argument\*(R". +\&\f(CW\*(C`undef\*(C'\fR is returned if the code point is not found in the inversion list +(this happens only when it is not a legal \*(L"code point argument\*(R", or is less +than the list's first element). A warning is raised in the first instance. +.PP +Otherwise, it returns the index into the list of the range that contains the +code point.; that is, find \f(CW\*(C`i\*(C'\fR such that +.PP +.Vb 1 +\& list[i]<= code_point < list[i+1]. +.Ve +.PP +As explained in \*(L"\fBprop_invlist()\fR\*(R", whether a code point is in the list or not +depends on if the index is even (in) or odd (not in). And as explained in +\&\*(L"\fBprop_invmap()\fR\*(R", the index is used with the returned parallel array to find +the mapping. +.SS "Unicode::UCD::UnicodeVersion" +.IX Subsection "Unicode::UCD::UnicodeVersion" +This returns the version of the Unicode Character Database, in other words, the +version of the Unicode standard the database implements. The version is a +string of numbers delimited by dots (\f(CW\*(Aq.\*(Aq\fR). +.SS "\fBBlocks versus Scripts\fP" +.IX Subsection "Blocks versus Scripts" +The difference between a block and a script is that scripts are closer +to the linguistic notion of a set of code points required to represent +languages, while block is more of an artifact of the Unicode code point +numbering and separation into blocks of consecutive code points (so far the +size of a block is some multiple of 16, like 128 or 256). +.PP +For example the Latin \fBscript\fR is spread over several \fBblocks\fR, such +as \f(CW\*(C`Basic Latin\*(C'\fR, \f(CW\*(C`Latin 1 Supplement\*(C'\fR, \f(CW\*(C`Latin Extended\-A\*(C'\fR, and +\&\f(CW\*(C`Latin Extended\-B\*(C'\fR. On the other hand, the Latin script does not +contain all the characters of the \f(CW\*(C`Basic Latin\*(C'\fR block (also known as +\&\s-1ASCII\s0): it includes only the letters, and not, for example, the digits +nor the punctuation. +.PP +For blocks see +.PP +For scripts see \s-1UTR\s0 #24: +.SS "\fBMatching Scripts and Blocks\fP" +.IX Subsection "Matching Scripts and Blocks" +Scripts are matched with the regular-expression construct +\&\f(CW\*(C`\ep{...}\*(C'\fR (e.g. \f(CW\*(C`\ep{Tibetan}\*(C'\fR matches characters of the Tibetan script), +while \f(CW\*(C`\ep{Blk=...}\*(C'\fR is used for blocks (e.g. \f(CW\*(C`\ep{Blk=Tibetan}\*(C'\fR matches +any of the 256 code points in the Tibetan block). +.SS "Old-style versus new-style block names" +.IX Subsection "Old-style versus new-style block names" +Unicode publishes the names of blocks in two different styles, though the two +are equivalent under Unicode's loose matching rules. +.PP +The original style uses blanks and hyphens in the block names (except for +\&\f(CW\*(C`No_Block\*(C'\fR), like so: +.PP +.Vb 1 +\& Miscellaneous Mathematical Symbols\-B +.Ve +.PP +The newer style replaces these with underscores, like this: +.PP +.Vb 1 +\& Miscellaneous_Mathematical_Symbols_B +.Ve +.PP +This newer style is consistent with the values of other Unicode properties. +To preserve backward compatibility, all the functions in Unicode::UCD that +return block names (except as noted) return the old-style ones. +\&\*(L"\fBprop_value_aliases()\fR\*(R" returns the new-style and can be used to convert from +old-style to new-style: +.PP +.Vb 1 +\& my $new_style = prop_values_aliases("block", $old_style); +.Ve +.PP +Perl also has single-form extensions that refer to blocks, \f(CW\*(C`In_Cyrillic\*(C'\fR, +meaning \f(CW\*(C`Block=Cyrillic\*(C'\fR. These have always been written in the new style. +.PP +To convert from new-style to old-style, follow this recipe: +.PP +.Vb 1 +\& $old_style = charblock((prop_invlist("block=$new_style"))[0]); +.Ve +.PP +(which finds the range of code points in the block using \f(CW\*(C`prop_invlist\*(C'\fR, +gets the lower end of the range (0th element) and then looks up the old name +for its block using \f(CW\*(C`charblock\*(C'\fR). +.PP +Note that starting in Unicode 6.1, many of the block names have shorter +synonyms. These are always given in the new style. +.SS "Use with older Unicode versions" +.IX Subsection "Use with older Unicode versions" +The functions in this module work as well as can be expected when +used on earlier Unicode versions. But, obviously, they use the available data +from that Unicode version. For example, if the Unicode version predates the +definition of the script property (Unicode 3.1), then any function that deals +with scripts is going to return \f(CW\*(C`undef\*(C'\fR for the script portion of the return +value. +.SH "AUTHOR" +.IX Header "AUTHOR" +Jarkko Hietaniemi. Now maintained by perl5 porters. diff --git a/data/miniconda3/man/man3/User%3A%3Agrent.3 b/data/miniconda3/man/man3/User%3A%3Agrent.3 new file mode 100644 index 0000000000000000000000000000000000000000..2e00e400a0e6ee441a44f93aebb2de8ec76ff137 --- /dev/null +++ b/data/miniconda3/man/man3/User%3A%3Agrent.3 @@ -0,0 +1,191 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "User::grent 3" +.TH User::grent 3 "2020-12-18" "perl v5.32.1" "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" +User::grent \- by\-name interface to Perl's built\-in getgr*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use User::grent; +\& $gr = getgrgid(0) or die "No group zero"; +\& if ( $gr\->name eq \*(Aqwheel\*(Aq && @{$gr\->members} > 1 ) { +\& print "gid zero name wheel, with other members"; +\& } +\& +\& use User::grent qw(:FIELDS); +\& getgrgid(0) or die "No group zero"; +\& if ( $gr_name eq \*(Aqwheel\*(Aq && @gr_members > 1 ) { +\& print "gid zero name wheel, with other members"; +\& } +\& +\& $gr = getgr($whoever); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgetgrent()\fR, \fBgetgrgid()\fR, +and \fBgetgrnam()\fR functions, replacing them with versions that return +\&\*(L"User::grent\*(R" objects. This object has methods that return the similarly +named structure field name from the C's passwd structure from \fIgrp.h\fR; +namely name, passwd, gid, and members (not mem). The first three +return scalars, the last an array reference. +.PP +You may also import all the structure fields directly into your namespace +as regular variables using the :FIELDS import tag. (Note that this still +overrides your core functions.) Access these fields as variables named +with a preceding \f(CW\*(C`gr_\*(C'\fR. Thus, \f(CW\*(C`$group_obj\->gid()\*(C'\fR corresponds +to \f(CW$gr_gid\fR if you import the fields. Array references are available as +regular array variables, so \f(CW\*(C`@{ $group_obj\->members() }\*(C'\fR would be +simply \f(CW@gr_members\fR. +.PP +The \fBgetgr()\fR function is a simple front-end that forwards a numeric +argument to \fBgetgrgid()\fR and the rest to \fBgetgrnam()\fR. +.PP +To access this functionality without the core overrides, +pass the \f(CW\*(C`use\*(C'\fR an empty import list, and then access +function functions with their full qualified names. +On the other hand, the built-ins are still available +via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen diff --git a/data/miniconda3/man/man3/User%3A%3Apwent.3 b/data/miniconda3/man/man3/User%3A%3Apwent.3 new file mode 100644 index 0000000000000000000000000000000000000000..b8e00943963fe5349907f17c839c09718bf1fe4a --- /dev/null +++ b/data/miniconda3/man/man3/User%3A%3Apwent.3 @@ -0,0 +1,248 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "User::pwent 3" +.TH User::pwent 3 "2020-12-18" "perl v5.32.1" "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" +User::pwent \- by\-name interface to Perl's built\-in getpw*() functions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use User::pwent; +\& $pw = getpwnam(\*(Aqdaemon\*(Aq) || die "No daemon user"; +\& if ( $pw\->uid == 1 && $pw\->dir =~ m#^/(bin|tmp)?\ez#s ) { +\& print "gid 1 on root dir"; +\& } +\& +\& $real_shell = $pw\->shell || \*(Aq/bin/sh\*(Aq; +\& +\& for (($fullname, $office, $workphone, $homephone) = +\& split /\es*,\es*/, $pw\->gecos) +\& { +\& s/&/ucfirst(lc($pw\->name))/ge; +\& } +\& +\& use User::pwent qw(:FIELDS); +\& getpwnam(\*(Aqdaemon\*(Aq) || die "No daemon user"; +\& if ( $pw_uid == 1 && $pw_dir =~ m#^/(bin|tmp)?\ez#s ) { +\& print "gid 1 on root dir"; +\& } +\& +\& $pw = getpw($whoever); +\& +\& use User::pwent qw/:DEFAULT pw_has/; +\& if (pw_has(qw[gecos expire quota])) { .... } +\& if (pw_has("name uid gid passwd")) { .... } +\& print "Your struct pwd has: ", scalar pw_has(), "\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module's default exports override the core \fBgetpwent()\fR, \fBgetpwuid()\fR, +and \fBgetpwnam()\fR functions, replacing them with versions that return +\&\f(CW\*(C`User::pwent\*(C'\fR objects. This object has methods that return the +similarly named structure field name from the C's passwd structure +from \fIpwd.h\fR, stripped of their leading \*(L"pw_\*(R" parts, namely \f(CW\*(C`name\*(C'\fR, +\&\f(CW\*(C`passwd\*(C'\fR, \f(CW\*(C`uid\*(C'\fR, \f(CW\*(C`gid\*(C'\fR, \f(CW\*(C`change\*(C'\fR, \f(CW\*(C`age\*(C'\fR, \f(CW\*(C`quota\*(C'\fR, \f(CW\*(C`comment\*(C'\fR, +\&\f(CW\*(C`class\*(C'\fR, \f(CW\*(C`gecos\*(C'\fR, \f(CW\*(C`dir\*(C'\fR, \f(CW\*(C`shell\*(C'\fR, and \f(CW\*(C`expire\*(C'\fR. The \f(CW\*(C`passwd\*(C'\fR, +\&\f(CW\*(C`gecos\*(C'\fR, and \f(CW\*(C`shell\*(C'\fR fields are tainted when running in taint mode. +.PP +You may also import all the structure fields directly into your +namespace as regular variables using the :FIELDS import tag. (Note +that this still overrides your core functions.) Access these fields +as variables named with a preceding \f(CW\*(C`pw_\*(C'\fR in front their method +names. Thus, \f(CW\*(C`$passwd_obj\->shell\*(C'\fR corresponds to \f(CW$pw_shell\fR +if you import the fields. +.PP +The \fBgetpw()\fR function is a simple front-end that forwards +a numeric argument to \fBgetpwuid()\fR and the rest to \fBgetpwnam()\fR. +.PP +To access this functionality without the core overrides, pass the +\&\f(CW\*(C`use\*(C'\fR an empty import list, and then access function functions +with their full qualified names. The built-ins are always still +available via the \f(CW\*(C`CORE::\*(C'\fR pseudo-package. +.SS "System Specifics" +.IX Subsection "System Specifics" +Perl believes that no machine ever has more than one of \f(CW\*(C`change\*(C'\fR, +\&\f(CW\*(C`age\*(C'\fR, or \f(CW\*(C`quota\*(C'\fR implemented, nor more than one of either +\&\f(CW\*(C`comment\*(C'\fR or \f(CW\*(C`class\*(C'\fR. Some machines do not support \f(CW\*(C`expire\*(C'\fR, +\&\f(CW\*(C`gecos\*(C'\fR, or allegedly, \f(CW\*(C`passwd\*(C'\fR. You may call these methods +no matter what machine you're on, but they return \f(CW\*(C`undef\*(C'\fR if +unimplemented. +.PP +You may ask whether one of these was implemented on the system Perl +was built on by asking the importable \f(CW\*(C`pw_has\*(C'\fR function about them. +This function returns true if all parameters are supported fields +on the build platform, false if one or more were not, and raises +an exception if you asked about a field that Perl never knows how +to provide. Parameters may be in a space-separated string, or as +separate arguments. If you pass no parameters, the function returns +the list of \f(CW\*(C`struct pwd\*(C'\fR fields supported by your build platform's +C library, as a list in list context, or a space-separated string +in scalar context. Note that just because your C library had +a field doesn't necessarily mean that it's fully implemented on +that system. +.PP +Interpretation of the \f(CW\*(C`gecos\*(C'\fR field varies between systems, but +traditionally holds 4 comma-separated fields containing the user's +full name, office location, work phone number, and home phone number. +An \f(CW\*(C`&\*(C'\fR in the gecos field should be replaced by the user's properly +capitalized login \f(CW\*(C`name\*(C'\fR. The \f(CW\*(C`shell\*(C'\fR field, if blank, must be +assumed to be \fI/bin/sh\fR. Perl does not do this for you. The +\&\f(CW\*(C`passwd\*(C'\fR is one-way hashed garble, not clear text, and may not be +unhashed save by brute-force guessing. Secure systems use more a +more secure hashing than \s-1DES.\s0 On systems supporting shadow password +systems, Perl automatically returns the shadow password entry when +called by a suitably empowered user, even if your underlying +vendor-provided C library was too short-sighted to realize it should +do this. +.PP +See \fBpasswd\fR\|(5) and \fBgetpwent\fR\|(3) for details. +.SH "NOTE" +.IX Header "NOTE" +While this class is currently implemented using the Class::Struct +module to build a struct-like class, you shouldn't rely upon this. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen +.SH "HISTORY" +.IX Header "HISTORY" +.IP "March 18th, 2000" 4 +.IX Item "March 18th, 2000" +Reworked internals to support better interface to dodgey fields +than normal Perl function provides. Added \fBpw_has()\fR field. Improved +documentation. diff --git a/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuard.3 b/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuard.3 new file mode 100644 index 0000000000000000000000000000000000000000..c73a6e14afa45784edebc72798ca0dacc1d13817 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuard.3 @@ -0,0 +1,177 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::Scope::Guard 3" +.TH autodie::Scope::Guard 3 "2020-12-18" "perl v5.32.1" "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" +autodie::Scope::Guard \- Wrapper class for calling subs at end of scope +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use autodie::Scope::Guard; +\& $^H{\*(Aqmy\-key\*(Aq} = autodie::Scope::Guard\->new(sub { +\& print "Hallo world\en"; +\& }); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is used to bless perl subs so that they are invoked when +they are destroyed. This is mostly useful for ensuring the code is +invoked at end of scope. This module is not a part of autodie's +public \s-1API.\s0 +.PP +This module is directly inspired by chocolateboy's excellent +Scope::Guard module. +.SS "Methods" +.IX Subsection "Methods" +\fInew\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $hook = autodie::Scope::Guard\->new(sub {}); +.Ve +.PP +Creates a new \f(CW\*(C`autodie::Scope::Guard\*(C'\fR, which will invoke the given +sub once it goes out of scope (i.e. its \s-1DESTROY\s0 handler is called). +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2008\-2009, Paul Fenwick +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the +same terms as Perl itself. diff --git a/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuardStack.3 b/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuardStack.3 new file mode 100644 index 0000000000000000000000000000000000000000..85354d363121ed1e47e7e904c0cac3348ba0ebc2 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3AScope%3A%3AGuardStack.3 @@ -0,0 +1,191 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::Scope::GuardStack 3" +.TH autodie::Scope::GuardStack 3 "2020-12-18" "perl v5.32.1" "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" +autodie::Scope::GuardStack \- Hook stack for managing scopes via %^H +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use autodie::Scope::GuardStack; +\& my $stack = autodie::Scope::GuardStack\->new +\& $^H{\*(Aqmy\-key\*(Aq} = $stack; +\& +\& $stack\->push_hook(sub {}); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is a stack of hooks to be called in the right order as +scopes go away. The stack is only useful when inserted into \f(CW\*(C`%^H\*(C'\fR +and will pop hooks as their \*(L"scope\*(R" is popped. This is useful for +uninstalling or reinstalling subs in a namespace as a pragma goes +out of scope. +.PP +Due to how \f(CW\*(C`%^H\*(C'\fR works, this class is only useful during the +compilation phase of a perl module and relies on the internals of how +perl handles references in \f(CW\*(C`%^H\*(C'\fR. This module is not a part of +autodie's public \s-1API.\s0 +.SS "Methods" +.IX Subsection "Methods" +\fInew\fR +.IX Subsection "new" +.PP +.Vb 1 +\& my $stack = autodie::Scope::GuardStack\->new; +.Ve +.PP +Creates a new \f(CW\*(C`autodie::Scope::GuardStack\*(C'\fR. The stack is initially +empty and must be inserted into \f(CW\*(C`%^H\*(C'\fR by the creator. +.PP +\fIpush_hook\fR +.IX Subsection "push_hook" +.PP +.Vb 1 +\& $stack\->push_hook(sub {}); +.Ve +.PP +Add a sub to the stack. The sub will be called once the current +compile-time \*(L"scope\*(R" is left. Multiple hooks can be added per scope +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2013, Niels Thykier +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the +same terms as Perl itself. diff --git a/data/miniconda3/man/man3/autodie%3A%3AUtil.3 b/data/miniconda3/man/man3/autodie%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..6a5aa273b833aeaadad8bad0e6eeb3c4635b15f0 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3AUtil.3 @@ -0,0 +1,230 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::Util 3" +.TH autodie::Util 3 "2020-12-18" "perl v5.32.1" "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" +autodie::Util \- Internal Utility subroutines for autodie and Fatal +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # INTERNAL API for autodie and Fatal only! +\& +\& use autodie::Util qw(on_end_of_compile_scope); +\& on_end_of_compile_scope(sub { print "Hallo world\en"; }); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Interal Utilities for autodie and Fatal! This module is not a part of +autodie's public \s-1API.\s0 +.PP +This module contains utility subroutines for abstracting away the +underlying magic of autodie and (ab)uses of \f(CW\*(C`%^H\*(C'\fR to call subs at the +end of a (compile-time) scopes. +.PP +Note that due to how \f(CW\*(C`%^H\*(C'\fR works, some of these utilities are only +useful during the compilation phase of a perl module and relies on the +internals of how perl handles references in \f(CW\*(C`%^H\*(C'\fR. +.SS "Methods" +.IX Subsection "Methods" +\fIon_end_of_compile_scope\fR +.IX Subsection "on_end_of_compile_scope" +.PP +.Vb 1 +\& on_end_of_compile_scope(sub { print "Hallo world\en"; }); +.Ve +.PP +Will invoke a sub at the end of a (compile-time) scope. The sub is +called once with no arguments. Can be called multiple times (even in +the same \*(L"compile-time\*(R" scope) to install multiple subs. Subs are +called in a \*(L"first\-in\-last\-out\*(R"\-order (\s-1FILO\s0 or \*(L"stack\*(R"\-order). +.PP +\fIfill_protos\fR +.IX Subsection "fill_protos" +.PP +.Vb 1 +\& fill_protos(\*(Aq*$$;$@\*(Aq) +.Ve +.PP +Given a Perl subroutine prototype, return a list of invocation +specifications. Each specification is a listref, where the first +member is the (minimum) number of arguments for this invocation +specification. The remaining arguments are a string representation of +how to pass the arguments correctly to a sub with the given prototype, +when called with the given number of arguments. +.PP +The specifications are returned in increasing order of arguments +starting at 0 (e.g. ';$') or 1 (e.g. '$@'). Note that if the +prototype is \*(L"slurpy\*(R" (e.g. ends with a \*(L"@\*(R"), the number of arguments +for the last specification is a \*(L"minimum\*(R" number rather than an exact +number. This can be detected by the last member of the last +specification matching m/[@#]_/. +.PP +\fImake_core_trampoline\fR +.IX Subsection "make_core_trampoline" +.PP +.Vb 1 +\& make_core_trampoline(\*(AqCORE::open\*(Aq, \*(Aqmain\*(Aq, prototype(\*(AqCORE::open\*(Aq)) +.Ve +.PP +Creates a trampoline for calling a core sub. Essentially, a tiny sub +that figures out how we should be calling our core sub, puts in the +arguments in the right way, and bounces our control over to it. +.PP +If we could reliably use `goto &` on core builtins, we wouldn't need +this subroutine. +.PP +\fIinstall_subs\fR +.IX Subsection "install_subs" +.PP +.Vb 1 +\& install_subs(\*(AqMy::Module\*(Aq, { \*(Aqread\*(Aq => sub { die("Hallo\en"), ... }}) +.Ve +.PP +Given a package name and a hashref mapping names to a subroutine +reference (or \f(CW\*(C`undef\*(C'\fR), this subroutine will install said subroutines +on their given name in that module. If a name mapes to \f(CW\*(C`undef\*(C'\fR, any +subroutine with that name in the target module will be remove +(possibly \*(L"unshadowing\*(R" a \s-1CORE\s0 sub of same name). +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2013\-2014, Niels Thykier +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the +same terms as Perl itself. diff --git a/data/miniconda3/man/man3/autodie%3A%3Aexception%3A%3Asystem.3 b/data/miniconda3/man/man3/autodie%3A%3Aexception%3A%3Asystem.3 new file mode 100644 index 0000000000000000000000000000000000000000..8c853d42f745c2b01eb165caa00900fef7a67876 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3Aexception%3A%3Asystem.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::exception::system 3" +.TH autodie::exception::system 3 "2020-12-18" "perl v5.32.1" "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" +autodie::exception::system \- Exceptions from autodying system(). +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& eval { +\& use autodie qw(system); +\& +\& system($cmd, @args); +\& +\& }; +\& +\& if (my $E = $@) { +\& say "Ooops! ",$E\->caller," had problems: $@"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a autodie::exception class for failures from the +\&\f(CW\*(C`system\*(C'\fR command. +.PP +Presently there is no way to interrogate an \f(CW\*(C`autodie::exception::system\*(C'\fR +object for the command, exit status, and other information you'd expect +such an object to hold. The interface will be expanded to accommodate +this in the future. +.SS "stringify" +.IX Subsection "stringify" +When stringified, \f(CW\*(C`autodie::exception::system\*(C'\fR objects currently +use the message generated by IPC::System::Simple. +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C)2008 Paul Fenwick +.PP +This is free software. You may modify and/or redistribute this +code under the same terms as Perl 5.10 itself, or, at your option, +any later version of Perl 5. +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Fenwick diff --git a/data/miniconda3/man/man3/autodie%3A%3Aexception.3 b/data/miniconda3/man/man3/autodie%3A%3Aexception.3 new file mode 100644 index 0000000000000000000000000000000000000000..35df6245c249d1cdb2863e5ac178504bfcbde648 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3Aexception.3 @@ -0,0 +1,430 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::exception 3" +.TH autodie::exception 3 "2020-12-18" "perl v5.32.1" "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" +autodie::exception \- Exceptions from autodying functions. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& eval { +\& use autodie; +\& +\& open(my $fh, \*(Aq<\*(Aq, \*(Aqsome_file.txt\*(Aq); +\& +\& ... +\& }; +\& +\& if (my $E = $@) { +\& say "Ooops! ",$E\->caller," had problems: $@"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When an autodie enabled function fails, it generates an +\&\f(CW\*(C`autodie::exception\*(C'\fR object. This can be interrogated to +determine further information about the error that occurred. +.PP +This document is broken into two sections; those methods that +are most useful to the end-developer, and those methods for +anyone wishing to subclass or get very familiar with +\&\f(CW\*(C`autodie::exception\*(C'\fR. +.SS "Common Methods" +.IX Subsection "Common Methods" +These methods are intended to be used in the everyday dealing +of exceptions. +.PP +The following assume that the error has been copied into +a separate scalar: +.PP +.Vb 3 +\& if ($E = $@) { +\& ... +\& } +.Ve +.PP +This is not required, but is recommended in case any code +is called which may reset or alter \f(CW$@\fR. +.PP +\fIargs\fR +.IX Subsection "args" +.PP +.Vb 1 +\& my $array_ref = $E\->args; +.Ve +.PP +Provides a reference to the arguments passed to the subroutine +that died. +.PP +\fIfunction\fR +.IX Subsection "function" +.PP +.Vb 1 +\& my $sub = $E\->function; +.Ve +.PP +The subroutine (including package) that threw the exception. +.PP +\fIfile\fR +.IX Subsection "file" +.PP +.Vb 1 +\& my $file = $E\->file; +.Ve +.PP +The file in which the error occurred (eg, \f(CW\*(C`myscript.pl\*(C'\fR or +\&\f(CW\*(C`MyTest.pm\*(C'\fR). +.PP +\fIpackage\fR +.IX Subsection "package" +.PP +.Vb 1 +\& my $package = $E\->package; +.Ve +.PP +The package from which the exceptional subroutine was called. +.PP +\fIcaller\fR +.IX Subsection "caller" +.PP +.Vb 1 +\& my $caller = $E\->caller; +.Ve +.PP +The subroutine that \fIcalled\fR the exceptional code. +.PP +\fIline\fR +.IX Subsection "line" +.PP +.Vb 1 +\& my $line = $E\->line; +.Ve +.PP +The line in \f(CW\*(C`$E\->file\*(C'\fR where the exceptional code was called. +.PP +\fIcontext\fR +.IX Subsection "context" +.PP +.Vb 1 +\& my $context = $E\->context; +.Ve +.PP +The context in which the subroutine was called by autodie; usually +the same as the context in which you called the autodying subroutine. +This can be 'list', 'scalar', or undefined (unknown). It will never +be 'void', as \f(CW\*(C`autodie\*(C'\fR always captures the return value in one way +or another. +.PP +For some core functions that always return a scalar value regardless +of their context (eg, \f(CW\*(C`chown\*(C'\fR), this may be 'scalar', even if you +used a list context. +.PP +\fIreturn\fR +.IX Subsection "return" +.PP +.Vb 1 +\& my $return_value = $E\->return; +.Ve +.PP +The value(s) returned by the failed subroutine. When the subroutine +was called in a list context, this will always be a reference to an +array containing the results. When the subroutine was called in +a scalar context, this will be the actual scalar returned. +.PP +\fIerrno\fR +.IX Subsection "errno" +.PP +.Vb 1 +\& my $errno = $E\->errno; +.Ve +.PP +The value of \f(CW$!\fR at the time when the exception occurred. +.PP +\&\fB\s-1NOTE\s0\fR: This method will leave the main \f(CW\*(C`autodie::exception\*(C'\fR class +and become part of a role in the future. You should only call +\&\f(CW\*(C`errno\*(C'\fR for exceptions where \f(CW$!\fR would reasonably have been +set on failure. +.PP +\fIeval_error\fR +.IX Subsection "eval_error" +.PP +.Vb 1 +\& my $old_eval_error = $E\->eval_error; +.Ve +.PP +The contents of \f(CW$@\fR immediately after autodie triggered an +exception. This may be useful when dealing with modules such +as Text::Balanced that set (but do not throw) \f(CW$@\fR on error. +.PP +\fImatches\fR +.IX Subsection "matches" +.PP +.Vb 1 +\& if ( $e\->matches(\*(Aqopen\*(Aq) ) { ... } +\& +\& if ( \*(Aqopen\*(Aq ~~ $e ) { ... } +.Ve +.PP +\&\f(CW\*(C`matches\*(C'\fR is used to determine whether a +given exception matches a particular role. +.PP +An exception is considered to match a string if: +.IP "\(bu" 4 +For a string not starting with a colon, the string exactly matches the +package and subroutine that threw the exception. For example, +\&\f(CW\*(C`MyModule::log\*(C'\fR. If the string does not contain a package name, +\&\f(CW\*(C`CORE::\*(C'\fR is assumed. +.IP "\(bu" 4 +For a string that does start with a colon, if the subroutine +throwing the exception \fIdoes\fR that behaviour. For example, the +\&\f(CW\*(C`CORE::open\*(C'\fR subroutine does \f(CW\*(C`:file\*(C'\fR, \f(CW\*(C`:io\*(C'\fR and \f(CW\*(C`:all\*(C'\fR. +.Sp +See \*(L"\s-1CATEGORIES\*(R"\s0 in autodie for further information. +.Sp +On Perl 5.10 and above, using smart-match (\f(CW\*(C`~~\*(C'\fR) with an +\&\f(CW\*(C`autodie::exception\*(C'\fR object will use \f(CW\*(C`matches\*(C'\fR underneath. This module +used to recommend using smart-match with the exception object on the left +hand side, but in future Perls that is likely to stop working. +The smart-match facility of this class should only be used with the +exception object on the right hand side. Having the exception object on +the right is both future-proof and portable to older Perls, back to 5.10. +Beware that this facility can only +be relied upon when it is certain that the exception object actually is +an \f(CW\*(C`autodie::exception\*(C'\fR object; it is no more capable than an explicit +call to the \f(CW\*(C`matches\*(C'\fR method. +.SS "Advanced methods" +.IX Subsection "Advanced methods" +The following methods, while usable from anywhere, are primarily +intended for developers wishing to subclass \f(CW\*(C`autodie::exception\*(C'\fR, +write code that registers custom error messages, or otherwise +work closely with the \f(CW\*(C`autodie::exception\*(C'\fR model. +.PP +\fIregister\fR +.IX Subsection "register" +.PP +.Vb 1 +\& autodie::exception\->register( \*(AqCORE::open\*(Aq => \e&mysub ); +.Ve +.PP +The \f(CW\*(C`register\*(C'\fR method allows for the registration of a message +handler for a given subroutine. The full subroutine name including +the package should be used. +.PP +Registered message handlers will receive the \f(CW\*(C`autodie::exception\*(C'\fR +object as the first parameter. +.PP +\fIadd_file_and_line\fR +.IX Subsection "add_file_and_line" +.PP +.Vb 1 +\& say "Problem occurred",$@\->add_file_and_line; +.Ve +.PP +Returns the string \f(CW\*(C` at %s line %d\*(C'\fR, where \f(CW%s\fR is replaced with +the filename, and \f(CW%d\fR is replaced with the line number. +.PP +Primarily intended for use by format handlers. +.PP +\fIstringify\fR +.IX Subsection "stringify" +.PP +.Vb 1 +\& say "The error was: ",$@\->stringify; +.Ve +.PP +Formats the error as a human readable string. Usually there's no +reason to call this directly, as it is used automatically if an +\&\f(CW\*(C`autodie::exception\*(C'\fR object is ever used as a string. +.PP +Child classes can override this method to change how they're +stringified. +.PP +\fIformat_default\fR +.IX Subsection "format_default" +.PP +.Vb 1 +\& my $error_string = $E\->format_default; +.Ve +.PP +This produces the default error string for the given exception, +\&\fIwithout using any registered message handlers\fR. It is primarily +intended to be called from a message handler when they have +been passed an exception they don't want to format. +.PP +Child classes can override this method to change how default +messages are formatted. +.PP +\fInew\fR +.IX Subsection "new" +.PP +.Vb 7 +\& my $error = autodie::exception\->new( +\& args => \e@_, +\& function => "CORE::open", +\& errno => $!, +\& context => \*(Aqscalar\*(Aq, +\& return => undef, +\& ); +.Ve +.PP +Creates a new \f(CW\*(C`autodie::exception\*(C'\fR object. Normally called +directly from an autodying function. The \f(CW\*(C`function\*(C'\fR argument +is required, its the function we were trying to call that +generated the exception. The \f(CW\*(C`args\*(C'\fR parameter is optional. +.PP +The \f(CW\*(C`errno\*(C'\fR value is optional. In versions of \f(CW\*(C`autodie::exception\*(C'\fR +1.99 and earlier the code would try to automatically use the +current value of \f(CW$!\fR, but this was unreliable and is no longer +supported. +.PP +Atrributes such as package, file, and caller are determined +automatically, and cannot be specified. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +autodie, autodie::exception::system +.SH "LICENSE" +.IX Header "LICENSE" +Copyright (C)2008 Paul Fenwick +.PP +This is free software. You may modify and/or redistribute this +code under the same terms as Perl 5.10 itself, or, at your option, +any later version of Perl 5. +.SH "AUTHOR" +.IX Header "AUTHOR" +Paul Fenwick diff --git a/data/miniconda3/man/man3/autodie%3A%3Askip.3 b/data/miniconda3/man/man3/autodie%3A%3Askip.3 new file mode 100644 index 0000000000000000000000000000000000000000..081a02ebadac89453477265a2b552eae608c491f --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3Askip.3 @@ -0,0 +1,167 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autodie::skip 3" +.TH autodie::skip 3 "2020-12-18" "perl v5.32.1" "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" +autodie::skip \- Skip a package when throwing autodie exceptions +.SH "SYNPOSIS" +.IX Header "SYNPOSIS" +.Vb 1 +\& use parent qw(autodie::skip); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This dummy class exists to signal that the class inheriting it should +be skipped when reporting exceptions from autodie. This is useful +for utility classes like Path::Tiny that wish to report the location +of where they were called on failure. +.PP +If your class has a better way of doing roles, then you should not +load this class and instead simply say that your class \fI\s-1DOES\s0\fR +\&\f(CW\*(C`autodie::skip\*(C'\fR instead. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2013, Paul Fenwick +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the same +terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +autodie, autodie::exception diff --git a/data/miniconda3/man/man3/autouse.3 b/data/miniconda3/man/man3/autouse.3 new file mode 100644 index 0000000000000000000000000000000000000000..c8dcb8a561238bdb5b3f749bf8f1764a69c420d0 --- /dev/null +++ b/data/miniconda3/man/man3/autouse.3 @@ -0,0 +1,204 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "autouse 3" +.TH autouse 3 "2020-12-18" "perl v5.32.1" "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" +autouse \- postpone load of modules until a function is used +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use autouse \*(AqCarp\*(Aq => qw(carp croak); +\& carp "this carp was predeclared and autoused "; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +If the module \f(CW\*(C`Module\*(C'\fR is already loaded, then the declaration +.PP +.Vb 1 +\& use autouse \*(AqModule\*(Aq => qw(func1 func2($;$)); +.Ve +.PP +is equivalent to +.PP +.Vb 1 +\& use Module qw(func1 func2); +.Ve +.PP +if \f(CW\*(C`Module\*(C'\fR defines \fBfunc2()\fR with prototype \f(CW\*(C`($;$)\*(C'\fR, and \fBfunc1()\fR has +no prototypes. (At least if \f(CW\*(C`Module\*(C'\fR uses \f(CW\*(C`Exporter\*(C'\fR's \f(CW\*(C`import\*(C'\fR, +otherwise it is a fatal error.) +.PP +If the module \f(CW\*(C`Module\*(C'\fR is not loaded yet, then the above declaration +declares functions \fBfunc1()\fR and \fBfunc2()\fR in the current package. When +these functions are called, they load the package \f(CW\*(C`Module\*(C'\fR if needed, +and substitute themselves with the correct definitions. +.SH "WARNING" +.IX Header "WARNING" +Using \f(CW\*(C`autouse\*(C'\fR will move important steps of your program's execution +from compile time to runtime. This can +.IP "\(bu" 4 +Break the execution of your program if the module you \f(CW\*(C`autouse\*(C'\fRd has +some initialization which it expects to be done early. +.IP "\(bu" 4 +hide bugs in your code since important checks (like correctness of +prototypes) is moved from compile time to runtime. In particular, if +the prototype you specified on \f(CW\*(C`autouse\*(C'\fR line is wrong, you will not +find it out until the corresponding function is executed. This will be +very unfortunate for functions which are not always called (note that +for such functions \f(CW\*(C`autouse\*(C'\fRing gives biggest win, for a workaround +see below). +.PP +To alleviate the second problem (partially) it is advised to write +your scripts like this: +.PP +.Vb 3 +\& use Module; +\& use autouse Module => qw(carp($) croak(&$)); +\& carp "this carp was predeclared and autoused "; +.Ve +.PP +The first line ensures that the errors in your argument specification +are found early. When you ship your application you should comment +out the first line, since it makes the second one useless. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ilya Zakharevich (ilya@math.ohio\-state.edu) +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBperl\fR\|(1). diff --git a/data/miniconda3/man/man3/base.3 b/data/miniconda3/man/man3/base.3 new file mode 100644 index 0000000000000000000000000000000000000000..2b5e5029e0a5ecb0e8ad1583cf8697decc894986 --- /dev/null +++ b/data/miniconda3/man/man3/base.3 @@ -0,0 +1,214 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "base 3" +.TH base 3 "2020-12-18" "perl v5.32.1" "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" +base \- Establish an ISA relationship with base classes at compile time +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package Baz; +\& use base qw(Foo Bar); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Unless you are using the \f(CW\*(C`fields\*(C'\fR pragma, consider this module discouraged +in favor of the lighter-weight \f(CW\*(C`parent\*(C'\fR. +.PP +Allows you to both load one or more modules, while setting up inheritance from +those modules at the same time. Roughly similar in effect to +.PP +.Vb 6 +\& package Baz; +\& BEGIN { +\& require Foo; +\& require Bar; +\& push @ISA, qw(Foo Bar); +\& } +.Ve +.PP +When \f(CW\*(C`base\*(C'\fR tries to \f(CW\*(C`require\*(C'\fR a module, it will not die if it cannot find +the module's file, but will die on any other error. After all this, should +your base class be empty, containing no symbols, \f(CW\*(C`base\*(C'\fR will die. This is +useful for inheriting from classes in the same file as yourself but where +the filename does not match the base module name, like so: +.PP +.Vb 3 +\& # in Bar.pm +\& package Foo; +\& sub exclaim { "I can have such a thing?!" } +\& +\& package Bar; +\& use base "Foo"; +.Ve +.PP +There is no \fIFoo.pm\fR, but because \f(CW\*(C`Foo\*(C'\fR defines a symbol (the \f(CW\*(C`exclaim\*(C'\fR +subroutine), \f(CW\*(C`base\*(C'\fR will not die when the \f(CW\*(C`require\*(C'\fR fails to load \fIFoo.pm\fR. +.PP +\&\f(CW\*(C`base\*(C'\fR will also initialize the fields if one of the base classes has it. +Multiple inheritance of fields is \fB\s-1NOT\s0\fR supported, if two or more base classes +each have inheritable fields the 'base' pragma will croak. See fields +for a description of this feature. +.PP +The base class' \f(CW\*(C`import\*(C'\fR method is \fBnot\fR called. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP "Base class package ""%s"" is empty." 4 +.el .IP "Base class package ``%s'' is empty." 4 +.IX Item "Base class package %s is empty." +base.pm was unable to require the base package, because it was not +found in your path. +.IP "Class 'Foo' tried to inherit from itself" 4 +.IX Item "Class 'Foo' tried to inherit from itself" +Attempting to inherit from yourself generates a warning. +.Sp +.Vb 2 +\& package Foo; +\& use base \*(AqFoo\*(Aq; +.Ve +.SH "HISTORY" +.IX Header "HISTORY" +This module was introduced with Perl 5.004_04. +.SH "CAVEATS" +.IX Header "CAVEATS" +Due to the limitations of the implementation, you must use +base \fIbefore\fR you declare any of your own fields. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +fields diff --git a/data/miniconda3/man/man3/bigint.3 b/data/miniconda3/man/man3/bigint.3 new file mode 100644 index 0000000000000000000000000000000000000000..000634eca5835658afff66415cf2b03eb91f44f6 --- /dev/null +++ b/data/miniconda3/man/man3/bigint.3 @@ -0,0 +1,594 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "bigint 3" +.TH bigint 3 "2020-12-18" "perl v5.32.1" "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" +bigint \- Transparent BigInteger support for Perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use bigint; +\& +\& $x = 2 + 4.5,"\en"; # BigInt 6 +\& print 2 ** 512,"\en"; # really is what you think it is +\& print inf + 42,"\en"; # inf +\& print NaN * 7,"\en"; # NaN +\& print hex("0x1234567890123490"),"\en"; # Perl v5.10.0 or later +\& +\& { +\& no bigint; +\& print 2 ** 256,"\en"; # a normal Perl scalar now +\& } +\& +\& # Import into current package: +\& use bigint qw/hex oct/; +\& print hex("0x1234567890123490"),"\en"; +\& print oct("01234567890123490"),"\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +All operators (including basic math operations) except the range operator \f(CW\*(C`..\*(C'\fR +are overloaded. Integer constants are created as proper BigInts. +.PP +Floating point constants are truncated to integer. All parts and results of +expressions are also truncated. +.PP +Unlike integer, this pragma creates integer constants that are only +limited in their size by the available memory and \s-1CPU\s0 time. +.SS "use integer vs. use bigint" +.IX Subsection "use integer vs. use bigint" +There is one small difference between \f(CW\*(C`use integer\*(C'\fR and \f(CW\*(C`use bigint\*(C'\fR: the +former will not affect assignments to variables and the return value of +some functions. \f(CW\*(C`bigint\*(C'\fR truncates these results to integer too: +.PP +.Vb 8 +\& # perl \-Minteger \-wle \*(Aqprint 3.2\*(Aq +\& 3.2 +\& # perl \-Minteger \-wle \*(Aqprint 3.2 + 0\*(Aq +\& 3 +\& # perl \-Mbigint \-wle \*(Aqprint 3.2\*(Aq +\& 3 +\& # perl \-Mbigint \-wle \*(Aqprint 3.2 + 0\*(Aq +\& 3 +\& +\& # perl \-Mbigint \-wle \*(Aqprint exp(1) + 0\*(Aq +\& 2 +\& # perl \-Mbigint \-wle \*(Aqprint exp(1)\*(Aq +\& 2 +\& # perl \-Minteger \-wle \*(Aqprint exp(1)\*(Aq +\& 2.71828182845905 +\& # perl \-Minteger \-wle \*(Aqprint exp(1) + 0\*(Aq +\& 2 +.Ve +.PP +In practice this makes seldom a difference as \fBparts and results\fR of +expressions will be truncated anyway, but this can, for instance, affect the +return value of subroutines: +.PP +.Vb 2 +\& sub three_integer { use integer; return 3.2; } +\& sub three_bigint { use bigint; return 3.2; } +\& +\& print three_integer(), " ", three_bigint(),"\en"; # prints "3.2 3" +.Ve +.SS "Options" +.IX Subsection "Options" +bigint recognizes some options that can be passed while loading it via use. +The options can (currently) be either a single letter form, or the long form. +The following options exist: +.IP "a or accuracy" 2 +.IX Item "a or accuracy" +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's \fBbround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbigint=a,2 \-le \*(Aqprint 12345+1\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "p or precision" 2 +.IX Item "p or precision" +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, and +are ignored since all operations happen in integer space. +A positive value rounds to this digit left from the dot. 0 or 1 mean round to +integer and are ignore like negative values. +.Sp +See Math::BigInt's \fBbfround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbignum=p,5 \-le \*(Aqprint 123456789+123\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "t or trace" 2 +.IX Item "t or trace" +This enables a trace mode and is primarily for debugging bigint or +Math::BigInt. +.IP "hex" 2 +.IX Item "hex" +Override the built-in \fBhex()\fR method with a version that can handle big +integers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBhex()\fR is lexically +overridden in the current scope whenever the bigint pragma is active. +.IP "oct" 2 +.IX Item "oct" +Override the built-in \fBoct()\fR method with a version that can handle big +integers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBoct()\fR is lexically +overridden in the current scope whenever the bigint pragma is active. +.IP "l, lib, try or only" 2 +.IX Item "l, lib, try or only" +Load a different math lib, see \*(L"Math Library\*(R". +.Sp +.Vb 3 +\& perl \-Mbigint=lib,GMP \-e \*(Aqprint 2 ** 512\*(Aq +\& perl \-Mbigint=try,GMP \-e \*(Aqprint 2 ** 512\*(Aq +\& perl \-Mbigint=only,GMP \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +Currently there is no way to specify more than one library on the command +line. This means the following does not work: +.Sp +.Vb 1 +\& perl \-Mbignum=l,GMP,Pari \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +This will be hopefully fixed soon ;) +.IP "v or version" 2 +.IX Item "v or version" +This prints out the name and version of all modules used and then exits. +.Sp +.Vb 1 +\& perl \-Mbigint=v +.Ve +.SS "Math Library" +.IX Subsection "Math Library" +Math with the numbers is done (by default) by a module called +Math::BigInt::Calc. This is equivalent to saying: +.PP +.Vb 1 +\& use bigint lib => \*(AqCalc\*(Aq; +.Ve +.PP +You can change this by using: +.PP +.Vb 1 +\& use bignum lib => \*(AqGMP\*(Aq; +.Ve +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use bigint lib => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +Using \f(CW\*(C`lib\*(C'\fR warns if none of the specified libraries can be found and +Math::BigInt did fall back to one of the default libraries. +To suppress this warning, use \f(CW\*(C`try\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum try => \*(AqGMP\*(Aq; +.Ve +.PP +If you want the code to die instead of falling back, use \f(CW\*(C`only\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum only => \*(AqGMP\*(Aq; +.Ve +.PP +Please see respective module documentation for further details. +.SS "Internal Format" +.IX Subsection "Internal Format" +The numbers are stored as objects, and their internals might change at anytime, +especially between math operations. The objects also might belong to different +classes, like Math::BigInt, or Math::BigInt::Lite. Mixing them together, even +with normal scalars is not extraordinary, but normal and expected. +.PP +You should not depend on the internal format, all accesses must go through +accessor methods. E.g. looking at \f(CW$x\fR\->{sign} is not a good idea since there +is no guaranty that the object in question has such a hash key, nor is a hash +underneath at all. +.SS "Sign" +.IX Subsection "Sign" +The sign is either '+', '\-', 'NaN', '+inf' or '\-inf'. +You can access it with the \fBsign()\fR method. +.PP +A sign of 'NaN' is used to represent the result when input arguments are not +numbers or as a result of 0/0. '+inf' and '\-inf' represent plus respectively +minus infinity. You will get '+inf' when dividing a positive number by 0, and +\&'\-inf' when dividing any negative number by 0. +.SS "Method calls" +.IX Subsection "Method calls" +Since all numbers are now objects, you can use all functions that are part of +the BigInt \s-1API.\s0 You can only use the \fBbxxx()\fR notation, and not the \fBfxxx()\fR +notation, though. +.PP +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $x = $y = 7; +.Ve +.PP +Using the copy or the original with overloaded math is okay, e.g. the +following work: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x + 1, " ", $y,"\en"; # prints 10 9 +.Ve +.PP +but calling any method that modifies the number directly will result in +\&\fBboth\fR the original and the copy being destroyed: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x\->badd(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->binc(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->bmul(2), " ", $y,"\en"; # prints 18 18 +.Ve +.PP +Using methods that do not modify, but test that the contents works: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $z = 9 if $x\->is_zero(); # works fine +.Ve +.PP +See the documentation about the copy constructor and \f(CW\*(C`=\*(C'\fR in overload, as +well as the documentation in BigInt for further details. +.SS "Methods" +.IX Subsection "Methods" +.IP "\fBinf()\fR" 2 +.IX Item "inf()" +A shortcut to return Math::BigInt\->\fBbinf()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`inf\*(C'\fR properly. +.IP "\fBNaN()\fR" 2 +.IX Item "NaN()" +A shortcut to return Math::BigInt\->\fBbnan()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`NaN\*(C'\fR properly. +.IP "e" 2 +.IX Item "e" +.Vb 1 +\& # perl \-Mbigint=e \-wle \*(Aqprint e\*(Aq +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR, aka \fBexp\fR\|(1). Note that under bigint, this is +truncated to an integer, and hence simple '2'. +.IP "\s-1PI\s0" 2 +.IX Item "PI" +.Vb 1 +\& # perl \-Mbigint=PI \-wle \*(Aqprint PI\*(Aq +.Ve +.Sp +Returns \s-1PI.\s0 Note that under bigint, this is truncated to an integer, and hence +simple '3'. +.IP "\fBbexp()\fR" 2 +.IX Item "bexp()" +.Vb 1 +\& bexp($power,$accuracy); +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR raised to the appropriate power, to +the wanted accuracy. +.Sp +Note that under bigint, the result is truncated to an integer. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbigint=bexp \-wle \*(Aqprint bexp(1,80)\*(Aq +.Ve +.IP "\fBbpi()\fR" 2 +.IX Item "bpi()" +.Vb 1 +\& bpi($accuracy); +.Ve +.Sp +Returns \s-1PI\s0 to the wanted accuracy. Note that under bigint, this is truncated +to an integer, and hence simple '3'. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbigint=bpi \-wle \*(Aqprint bpi(80)\*(Aq +.Ve +.IP "\fBupgrade()\fR" 2 +.IX Item "upgrade()" +Return the class that numbers are upgraded to, is in fact returning +\&\f(CW$Math::BigInt::upgrade\fR. +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +.Vb 1 +\& use bigint; +\& +\& print "in effect\en" if bigint::in_effect; # true +\& { +\& no bigint; +\& print "in effect\en" if bigint::in_effect; # false +\& } +.Ve +.Sp +Returns true or false if \f(CW\*(C`bigint\*(C'\fR is in effect in the current scope. +.Sp +This method only works on Perl v5.9.4 or later. +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "Operator vs literal overloading" 2 +.IX Item "Operator vs literal overloading" +\&\f(CW\*(C`bigint\*(C'\fR works by overloading handling of integer and floating point +literals, converting them to Math::BigInt objects. +.Sp +This means that arithmetic involving only string values or string +literals will be performed using Perl's built-in operators. +.Sp +For example: +.Sp +.Vb 4 +\& use bignum; +\& my $x = "900000000000000009"; +\& my $y = "900000000000000007"; +\& print $x \- $y; +.Ve +.Sp +will output \f(CW0\fR on default 32\-bit builds, since \f(CW\*(C`bigint\*(C'\fR never sees +the string literals. To ensure the expression is all treated as +\&\f(CW\*(C`Math::BigInt\*(C'\fR objects, use a literal number in the expression: +.Sp +.Vb 1 +\& print +(0+$x) \- $y; +.Ve +.IP "ranges" 2 +.IX Item "ranges" +Perl does not allow overloading of ranges, so you can neither safely use +ranges with bigint endpoints, nor is the iterator variable a bigint. +.Sp +.Vb 7 +\& use 5.010; +\& for my $i (12..13) { +\& for my $j (20..21) { +\& say $i ** $j; # produces a floating\-point number, +\& # not a big integer +\& } +\& } +.Ve +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +This method only works on Perl v5.9.4 or later. +.IP "\fBhex()\fR/\fBoct()\fR" 2 +.IX Item "hex()/oct()" +\&\f(CW\*(C`bigint\*(C'\fR overrides these routines with versions that can also handle +big integer values. Under Perl prior to version v5.9.4, however, this +will not happen unless you specifically ask for it with the two +import tags \*(L"hex\*(R" and \*(L"oct\*(R" \- and then it will be global and cannot be +disabled inside a scope with \*(L"no bigint\*(R": +.Sp +.Vb 1 +\& use bigint qw/hex oct/; +\& +\& print hex("0x1234567890123456"); +\& { +\& no bigint; +\& print hex("0x1234567890123456"); +\& } +.Ve +.Sp +The second call to \fBhex()\fR will warn about a non-portable constant. +.Sp +Compare this to: +.Sp +.Vb 1 +\& use bigint; +\& +\& # will warn only under Perl older than v5.9.4 +\& print hex("0x1234567890123456"); +.Ve +.SH "MODULES USED" +.IX Header "MODULES USED" +\&\f(CW\*(C`bigint\*(C'\fR is just a thin wrapper around various modules of the Math::BigInt +family. Think of it as the head of the family, who runs the shop, and orders +the others to do the work. +.PP +The following modules are currently used by bigint: +.PP +.Vb 2 +\& Math::BigInt::Lite (for speed, and only if it is loadable) +\& Math::BigInt +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Some cool command line examples to impress the Python crowd ;) You might want +to compare them to the results under \-Mbignum or \-Mbigrat: +.PP +.Vb 9 +\& perl \-Mbigint \-le \*(Aqprint sqrt(33)\*(Aq +\& perl \-Mbigint \-le \*(Aqprint 2*255\*(Aq +\& perl \-Mbigint \-le \*(Aqprint 4.5+2*255\*(Aq +\& perl \-Mbigint \-le \*(Aqprint 3/7 + 5/7 + 8/3\*(Aq +\& perl \-Mbigint \-le \*(Aqprint 123\->is_odd()\*(Aq +\& perl \-Mbigint \-le \*(Aqprint log(2)\*(Aq +\& perl \-Mbigint \-le \*(Aqprint 2 ** 0.5\*(Aq +\& perl \-Mbigint=a,65 \-le \*(Aqprint 2 ** 0.2\*(Aq +\& perl \-Mbignum=a,65,l,GMP \-le \*(Aqprint 7 ** 7777\*(Aq +.Ve +.SH "BUGS" +.IX Header "BUGS" +For information about bugs and how to report them, see the \s-1BUGS\s0 section in the +documentation available with the perldoc command. +.PP +.Vb 1 +\& perldoc bignum +.Ve +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc bigint +.Ve +.PP +For more information, see the \s-1SUPPORT\s0 section in the documentation available +with the perldoc command. +.PP +.Vb 1 +\& perldoc bignum +.Ve +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +bignum and bigrat. +.PP +Math::BigInt, Math::BigFloat, Math::BigRat and Math::Big as well as +Math::BigInt::FastCalc, Math::BigInt::Pari and Math::BigInt::GMP. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +(C) by Tels in early 2002 \- 2007. +.IP "\(bu" 4 +Maintained by Peter John Acklam , 2014\-. diff --git a/data/miniconda3/man/man3/bignum.3 b/data/miniconda3/man/man3/bignum.3 new file mode 100644 index 0000000000000000000000000000000000000000..6cbe163c3183d0aa7d19dbfdca5f20850543e652 --- /dev/null +++ b/data/miniconda3/man/man3/bignum.3 @@ -0,0 +1,672 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "bignum 3" +.TH bignum 3 "2020-12-18" "perl v5.32.1" "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" +bignum \- Transparent BigNumber support for Perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use bignum; +\& +\& $x = 2 + 4.5,"\en"; # BigFloat 6.5 +\& print 2 ** 512 * 0.1,"\en"; # really is what you think it is +\& print inf * inf,"\en"; # prints inf +\& print NaN * 3,"\en"; # prints NaN +\& +\& { +\& no bignum; +\& print 2 ** 256,"\en"; # a normal Perl scalar now +\& } +\& +\& # for older Perls, import into current package: +\& use bignum qw/hex oct/; +\& print hex("0x1234567890123490"),"\en"; +\& print oct("01234567890123490"),"\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +All operators (including basic math operations) are overloaded. Integer and +floating-point constants are created as proper BigInts or BigFloats, +respectively. +.PP +If you do +.PP +.Vb 1 +\& use bignum; +.Ve +.PP +at the top of your script, Math::BigFloat and Math::BigInt will be loaded +and any constant number will be converted to an object (Math::BigFloat for +floats like 3.1415 and Math::BigInt for integers like 1234). +.PP +So, the following line: +.PP +.Vb 1 +\& $x = 1234; +.Ve +.PP +creates actually a Math::BigInt and stores a reference to in \f(CW$x\fR. +This happens transparently and behind your back, so to speak. +.PP +You can see this with the following: +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqprint ref(1234)\*(Aq +.Ve +.PP +Don't worry if it says Math::BigInt::Lite, bignum and friends will use Lite +if it is installed since it is faster for some operations. It will be +automatically upgraded to BigInt whenever necessary: +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqprint ref(2**255)\*(Aq +.Ve +.PP +This also means it is a bad idea to check for some specific package, since +the actual contents of \f(CW$x\fR might be something unexpected. Due to the +transparent way of bignum \f(CW\*(C`ref()\*(C'\fR should not be necessary, anyway. +.PP +Since Math::BigInt and BigFloat also overload the normal math operations, +the following line will still work: +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqprint ref(1234+1234)\*(Aq +.Ve +.PP +Since numbers are actually objects, you can call all the usual methods from +BigInt/BigFloat on them. This even works to some extent on expressions: +.PP +.Vb 4 +\& perl \-Mbignum \-le \*(Aq$x = 1234; print $x\->bdec()\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 1234\->copy()\->binc();\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 1234\->copy()\->binc\->badd(6);\*(Aq +\& perl \-Mbignum \-le \*(Aqprint +(1234)\->copy()\->binc()\*(Aq +.Ve +.PP +(Note that print doesn't do what you expect if the expression starts with +\&'(' hence the \f(CW\*(C`+\*(C'\fR) +.PP +You can even chain the operations together as usual: +.PP +.Vb 2 +\& perl \-Mbignum \-le \*(Aqprint 1234\->copy()\->binc\->badd(6);\*(Aq +\& 1241 +.Ve +.PP +Under bignum (or bigint or bigrat), Perl will \*(L"upgrade\*(R" the numbers +appropriately. This means that: +.PP +.Vb 2 +\& perl \-Mbignum \-le \*(Aqprint 1234+4.5\*(Aq +\& 1238.5 +.Ve +.PP +will work correctly. These mixed cases don't do always work when using +Math::BigInt or Math::BigFloat alone, or at least not in the way normal Perl +scalars work. +.PP +If you do want to work with large integers like under \f(CW\*(C`use integer;\*(C'\fR, try +\&\f(CW\*(C`use bigint;\*(C'\fR: +.PP +.Vb 2 +\& perl \-Mbigint \-le \*(Aqprint 1234.5+4.5\*(Aq +\& 1238 +.Ve +.PP +There is also \f(CW\*(C`use bigrat;\*(C'\fR which gives you big rationals: +.PP +.Vb 2 +\& perl \-Mbigrat \-le \*(Aqprint 1234+4.1\*(Aq +\& 12381/10 +.Ve +.PP +The entire upgrading/downgrading is still experimental and might not work +as you expect or may even have bugs. You might get errors like this: +.PP +.Vb 2 +\& Can\*(Aqt use an undefined value as an ARRAY reference at +\& /usr/local/lib/perl5/5.8.0/Math/BigInt/Calc.pm line 864 +.Ve +.PP +This means somewhere a routine got a BigFloat/Lite but expected a BigInt (or +vice versa) and the upgrade/downgrad path was missing. This is a bug, please +report it so that we can fix it. +.PP +You might consider using just Math::BigInt or Math::BigFloat, since they +allow you finer control over what get's done in which module/space. For +instance, simple loop counters will be Math::BigInts under \f(CW\*(C`use bignum;\*(C'\fR and +this is slower than keeping them as Perl scalars: +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqfor ($i = 0; $i < 10; $i++) { print ref($i); }\*(Aq +.Ve +.PP +Please note the following does not work as expected (prints nothing), since +overloading of '..' is not yet possible in Perl (as of v5.8.0): +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqfor (1..2) { print ref($_); }\*(Aq +.Ve +.SS "Options" +.IX Subsection "Options" +bignum recognizes some options that can be passed while loading it via use. +The options can (currently) be either a single letter form, or the long form. +The following options exist: +.IP "a or accuracy" 2 +.IX Item "a or accuracy" +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's \fBbround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbignum=a,50 \-le \*(Aqprint sqrt(20)\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "p or precision" 2 +.IX Item "p or precision" +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, while +a positive value rounds to this digit left from the dot. 0 or 1 mean round to +integer. See Math::BigInt's \fBbfround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbignum=p,\-50 \-le \*(Aqprint sqrt(20)\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "t or trace" 2 +.IX Item "t or trace" +This enables a trace mode and is primarily for debugging bignum or +Math::BigInt/Math::BigFloat. +.IP "l or lib" 2 +.IX Item "l or lib" +Load a different math lib, see \*(L"Math Library\*(R". +.Sp +.Vb 1 +\& perl \-Mbignum=l,GMP \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +Currently there is no way to specify more than one library on the command +line. This means the following does not work: +.Sp +.Vb 1 +\& perl \-Mbignum=l,GMP,Pari \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +This will be hopefully fixed soon ;) +.IP "hex" 2 +.IX Item "hex" +Override the built-in \fBhex()\fR method with a version that can handle big +numbers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBhex()\fR is lexically +overridden in the current scope whenever the bignum pragma is active. +.IP "oct" 2 +.IX Item "oct" +Override the built-in \fBoct()\fR method with a version that can handle big +numbers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBoct()\fR is lexically +overridden in the current scope whenever the bigint pragma is active. +.IP "v or version" 2 +.IX Item "v or version" +This prints out the name and version of all modules used and then exits. +.Sp +.Vb 1 +\& perl \-Mbignum=v +.Ve +.SS "Methods" +.IX Subsection "Methods" +Beside \fBimport()\fR and \s-1\fBAUTOLOAD\s0()\fR there are only a few other methods. +.PP +Since all numbers are now objects, you can use all functions that are part of +the BigInt or BigFloat \s-1API.\s0 It is wise to use only the \fBbxxx()\fR notation, and not +the \fBfxxx()\fR notation, though. This makes it possible that the underlying object +might morph into a different class than BigFloat. +.SS "Caveats" +.IX Subsection "Caveats" +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $x = $y = 7; +.Ve +.PP +If you want to make a real copy, use the following: +.PP +.Vb 1 +\& $y = $x\->copy(); +.Ve +.PP +Using the copy or the original with overloaded math is okay, e.g. the +following work: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x + 1, " ", $y,"\en"; # prints 10 9 +.Ve +.PP +but calling any method that modifies the number directly will result in +\&\fBboth\fR the original and the copy being destroyed: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x\->badd(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->binc(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->bmul(2), " ", $y,"\en"; # prints 18 18 +.Ve +.PP +Using methods that do not modify, but test the contents works: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $z = 9 if $x\->is_zero(); # works fine +.Ve +.PP +See the documentation about the copy constructor and \f(CW\*(C`=\*(C'\fR in overload, as +well as the documentation in BigInt for further details. +.IP "\fBinf()\fR" 2 +.IX Item "inf()" +A shortcut to return Math::BigInt\->\fBbinf()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`inf\*(C'\fR properly. +.IP "\fBNaN()\fR" 2 +.IX Item "NaN()" +A shortcut to return Math::BigInt\->\fBbnan()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`NaN\*(C'\fR properly. +.IP "e" 2 +.IX Item "e" +.Vb 1 +\& # perl \-Mbignum=e \-wle \*(Aqprint e\*(Aq +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR, aka \fBexp\fR\|(1). +.IP "\s-1\fBPI\s0()\fR" 2 +.IX Item "PI()" +.Vb 1 +\& # perl \-Mbignum=PI \-wle \*(Aqprint PI\*(Aq +.Ve +.Sp +Returns \s-1PI.\s0 +.IP "\fBbexp()\fR" 2 +.IX Item "bexp()" +.Vb 1 +\& bexp($power,$accuracy); +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR raised to the appropriate power, to +the wanted accuracy. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbignum=bexp \-wle \*(Aqprint bexp(1,80)\*(Aq +.Ve +.IP "\fBbpi()\fR" 2 +.IX Item "bpi()" +.Vb 1 +\& bpi($accuracy); +.Ve +.Sp +Returns \s-1PI\s0 to the wanted accuracy. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbignum=bpi \-wle \*(Aqprint bpi(80)\*(Aq +.Ve +.IP "\fBupgrade()\fR" 2 +.IX Item "upgrade()" +Return the class that numbers are upgraded to, is in fact returning +\&\f(CW$Math::BigInt::upgrade\fR. +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +.Vb 1 +\& use bignum; +\& +\& print "in effect\en" if bignum::in_effect; # true +\& { +\& no bignum; +\& print "in effect\en" if bignum::in_effect; # false +\& } +.Ve +.Sp +Returns true or false if \f(CW\*(C`bignum\*(C'\fR is in effect in the current scope. +.Sp +This method only works on Perl v5.9.4 or later. +.SS "Math Library" +.IX Subsection "Math Library" +Math with the numbers is done (by default) by a module called +Math::BigInt::Calc. This is equivalent to saying: +.PP +.Vb 1 +\& use bignum lib => \*(AqCalc\*(Aq; +.Ve +.PP +You can change this by using: +.PP +.Vb 1 +\& use bignum lib => \*(AqGMP\*(Aq; +.Ve +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use bignum lib => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +Please see respective module documentation for further details. +.PP +Using \f(CW\*(C`lib\*(C'\fR warns if none of the specified libraries can be found and +Math::BigInt did fall back to one of the default libraries. +To suppress this warning, use \f(CW\*(C`try\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum try => \*(AqGMP\*(Aq; +.Ve +.PP +If you want the code to die instead of falling back, use \f(CW\*(C`only\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum only => \*(AqGMP\*(Aq; +.Ve +.SS "\s-1INTERNAL FORMAT\s0" +.IX Subsection "INTERNAL FORMAT" +The numbers are stored as objects, and their internals might change at anytime, +especially between math operations. The objects also might belong to different +classes, like Math::BigInt, or Math::BigFloat. Mixing them together, even +with normal scalars is not extraordinary, but normal and expected. +.PP +You should not depend on the internal format, all accesses must go through +accessor methods. E.g. looking at \f(CW$x\fR\->{sign} is not a bright idea since there +is no guaranty that the object in question has such a hashkey, nor is a hash +underneath at all. +.SS "\s-1SIGN\s0" +.IX Subsection "SIGN" +The sign is either '+', '\-', 'NaN', '+inf' or '\-inf' and stored separately. +You can access it with the \fBsign()\fR method. +.PP +A sign of 'NaN' is used to represent the result when input arguments are not +numbers or as a result of 0/0. '+inf' and '\-inf' represent plus respectively +minus infinity. You will get '+inf' when dividing a positive number by 0, and +\&'\-inf' when dividing any negative number by 0. +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "Operator vs literal overloading" 2 +.IX Item "Operator vs literal overloading" +\&\f(CW\*(C`bignum\*(C'\fR works by overloading handling of integer and floating point +literals, converting them to Math::BigInt or Math::BigFloat +objects. +.Sp +This means that arithmetic involving only string values or string +literals will be performed using Perl's built-in operators. +.Sp +For example: +.Sp +.Vb 4 +\& use bignum; +\& my $x = "900000000000000009"; +\& my $y = "900000000000000007"; +\& print $x \- $y; +.Ve +.Sp +will output \f(CW0\fR on default 32\-bit builds, since \f(CW\*(C`bigrat\*(C'\fR never sees +the string literals. To ensure the expression is all treated as +\&\f(CW\*(C`Math::BigInt\*(C'\fR or \f(CW\*(C`BigFloat\*(C'\fR objects, use a literal number in the +expression: +.Sp +.Vb 1 +\& print +(0+$x) \- $y; +.Ve +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +This method only works on Perl v5.9.4 or later. +.IP "\fBhex()\fR/\fBoct()\fR" 2 +.IX Item "hex()/oct()" +\&\f(CW\*(C`bigint\*(C'\fR overrides these routines with versions that can also handle +big integer values. Under Perl prior to version v5.9.4, however, this +will not happen unless you specifically ask for it with the two +import tags \*(L"hex\*(R" and \*(L"oct\*(R" \- and then it will be global and cannot be +disabled inside a scope with \*(L"no bigint\*(R": +.Sp +.Vb 1 +\& use bigint qw/hex oct/; +\& +\& print hex("0x1234567890123456"); +\& { +\& no bigint; +\& print hex("0x1234567890123456"); +\& } +.Ve +.Sp +The second call to \fBhex()\fR will warn about a non-portable constant. +.Sp +Compare this to: +.Sp +.Vb 1 +\& use bigint; +\& +\& # will warn only under older than v5.9.4 +\& print hex("0x1234567890123456"); +.Ve +.SH "MODULES USED" +.IX Header "MODULES USED" +\&\f(CW\*(C`bignum\*(C'\fR is just a thin wrapper around various modules of the Math::BigInt +family. Think of it as the head of the family, who runs the shop, and orders +the others to do the work. +.PP +The following modules are currently used by bignum: +.PP +.Vb 3 +\& Math::BigInt::Lite (for speed, and only if it is loadable) +\& Math::BigInt +\& Math::BigFloat +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Some cool command line examples to impress the Python crowd ;) +.PP +.Vb 10 +\& perl \-Mbignum \-le \*(Aqprint sqrt(33)\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 2*255\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 4.5+2*255\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 3/7 + 5/7 + 8/3\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 123\->is_odd()\*(Aq +\& perl \-Mbignum \-le \*(Aqprint log(2)\*(Aq +\& perl \-Mbignum \-le \*(Aqprint exp(1)\*(Aq +\& perl \-Mbignum \-le \*(Aqprint 2 ** 0.5\*(Aq +\& perl \-Mbignum=a,65 \-le \*(Aqprint 2 ** 0.2\*(Aq +\& perl \-Mbignum=a,65,l,GMP \-le \*(Aqprint 7 ** 7777\*(Aq +.Ve +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigint at rt.cpan.org\*(C'\fR, or through the web interface at + (requires login). +We will be notified, and then you'll automatically be notified of +progress on your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc bignum +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +Search \s-1CPAN\s0 +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +bigint and bigrat. +.PP +Math::BigInt, Math::BigFloat, Math::BigRat and Math::Big as well as +Math::BigInt::FastCalc, Math::BigInt::Pari and Math::BigInt::GMP. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +(C) by Tels in early 2002 \- 2007. +.IP "\(bu" 4 +Maintained by Peter John Acklam , 2014\-. diff --git a/data/miniconda3/man/man3/bigrat.3 b/data/miniconda3/man/man3/bigrat.3 new file mode 100644 index 0000000000000000000000000000000000000000..77c8f31bdc854a86c226e75151367c24780d986b --- /dev/null +++ b/data/miniconda3/man/man3/bigrat.3 @@ -0,0 +1,524 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "bigrat 3" +.TH bigrat 3 "2020-12-18" "perl v5.32.1" "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" +bigrat \- Transparent BigNumber/BigRational support for Perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use bigrat; +\& +\& print 2 + 4.5,"\en"; # BigFloat 6.5 +\& print 1/3 + 1/4,"\en"; # produces 7/12 +\& +\& { +\& no bigrat; +\& print 1/3,"\en"; # 0.33333... +\& } +\& +\& # Import into current package: +\& use bigrat qw/hex oct/; +\& print hex("0x1234567890123490"),"\en"; +\& print oct("01234567890123490"),"\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +All operators (including basic math operations) are overloaded. Integer and +floating-point constants are created as proper BigInts or BigFloats, +respectively. +.PP +Other than bignum, this module upgrades to Math::BigRat, meaning that +instead of 2.5 you will get 2+1/2 as output. +.SS "Modules Used" +.IX Subsection "Modules Used" +\&\f(CW\*(C`bigrat\*(C'\fR is just a thin wrapper around various modules of the Math::BigInt +family. Think of it as the head of the family, who runs the shop, and orders +the others to do the work. +.PP +The following modules are currently used by bignum: +.PP +.Vb 4 +\& Math::BigInt::Lite (for speed, and only if it is loadable) +\& Math::BigInt +\& Math::BigFloat +\& Math::BigRat +.Ve +.SS "Math Library" +.IX Subsection "Math Library" +Math with the numbers is done (by default) by a module called +Math::BigInt::Calc. This is equivalent to saying: +.PP +.Vb 1 +\& use bigrat lib => \*(AqCalc\*(Aq; +.Ve +.PP +You can change this by using: +.PP +.Vb 1 +\& use bignum lib => \*(AqGMP\*(Aq; +.Ve +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use bigrat lib => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +Using \f(CW\*(C`lib\*(C'\fR warns if none of the specified libraries can be found and +Math::BigInt did fall back to one of the default libraries. +To suppress this warning, use \f(CW\*(C`try\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum try => \*(AqGMP\*(Aq; +.Ve +.PP +If you want the code to die instead of falling back, use \f(CW\*(C`only\*(C'\fR instead: +.PP +.Vb 1 +\& use bignum only => \*(AqGMP\*(Aq; +.Ve +.PP +Please see respective module documentation for further details. +.SS "Sign" +.IX Subsection "Sign" +The sign is either '+', '\-', 'NaN', '+inf' or '\-inf'. +.PP +A sign of 'NaN' is used to represent the result when input arguments are not +numbers or as a result of 0/0. '+inf' and '\-inf' represent plus respectively +minus infinity. You will get '+inf' when dividing a positive number by 0, and +\&'\-inf' when dividing any negative number by 0. +.SS "Methods" +.IX Subsection "Methods" +Since all numbers are not objects, you can use all functions that are part of +the BigInt or BigFloat \s-1API.\s0 It is wise to use only the \fBbxxx()\fR notation, and not +the \fBfxxx()\fR notation, though. This makes you independent on the fact that the +underlying object might morph into a different class than BigFloat. +.IP "\fBinf()\fR" 2 +.IX Item "inf()" +A shortcut to return Math::BigInt\->\fBbinf()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`inf\*(C'\fR properly. +.IP "\fBNaN()\fR" 2 +.IX Item "NaN()" +A shortcut to return Math::BigInt\->\fBbnan()\fR. Useful because Perl does not always +handle bareword \f(CW\*(C`NaN\*(C'\fR properly. +.IP "e" 2 +.IX Item "e" +.Vb 1 +\& # perl \-Mbigrat=e \-wle \*(Aqprint e\*(Aq +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR, aka \fBexp\fR\|(1). +.IP "\s-1PI\s0" 2 +.IX Item "PI" +.Vb 1 +\& # perl \-Mbigrat=PI \-wle \*(Aqprint PI\*(Aq +.Ve +.Sp +Returns \s-1PI.\s0 +.IP "\fBbexp()\fR" 2 +.IX Item "bexp()" +.Vb 1 +\& bexp($power,$accuracy); +.Ve +.Sp +Returns Euler's number \f(CW\*(C`e\*(C'\fR raised to the appropriate power, to +the wanted accuracy. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbigrat=bexp \-wle \*(Aqprint bexp(1,80)\*(Aq +.Ve +.IP "\fBbpi()\fR" 2 +.IX Item "bpi()" +.Vb 1 +\& bpi($accuracy); +.Ve +.Sp +Returns \s-1PI\s0 to the wanted accuracy. +.Sp +Example: +.Sp +.Vb 1 +\& # perl \-Mbigrat=bpi \-wle \*(Aqprint bpi(80)\*(Aq +.Ve +.IP "\fBupgrade()\fR" 2 +.IX Item "upgrade()" +Return the class that numbers are upgraded to, is in fact returning +\&\f(CW$Math::BigInt::upgrade\fR. +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +.Vb 1 +\& use bigrat; +\& +\& print "in effect\en" if bigrat::in_effect; # true +\& { +\& no bigrat; +\& print "in effect\en" if bigrat::in_effect; # false +\& } +.Ve +.Sp +Returns true or false if \f(CW\*(C`bigrat\*(C'\fR is in effect in the current scope. +.Sp +This method only works on Perl v5.9.4 or later. +.SS "\s-1MATH LIBRARY\s0" +.IX Subsection "MATH LIBRARY" +Math with the numbers is done (by default) by a module called +.SS "Caveat" +.IX Subsection "Caveat" +But a warning is in order. When using the following to make a copy of a number, +only a shallow copy will be made. +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $x = $y = 7; +.Ve +.PP +If you want to make a real copy, use the following: +.PP +.Vb 1 +\& $y = $x\->copy(); +.Ve +.PP +Using the copy or the original with overloaded math is okay, e.g. the +following work: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x + 1, " ", $y,"\en"; # prints 10 9 +.Ve +.PP +but calling any method that modifies the number directly will result in +\&\fBboth\fR the original and the copy being destroyed: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& print $x\->badd(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->binc(1), " ", $y,"\en"; # prints 10 10 +\& +\& $x = 9; $y = $x; +\& print $x\->bmul(2), " ", $y,"\en"; # prints 18 18 +.Ve +.PP +Using methods that do not modify, but testthe contents works: +.PP +.Vb 2 +\& $x = 9; $y = $x; +\& $z = 9 if $x\->is_zero(); # works fine +.Ve +.PP +See the documentation about the copy constructor and \f(CW\*(C`=\*(C'\fR in overload, as +well as the documentation in BigInt for further details. +.SS "Options" +.IX Subsection "Options" +bignum recognizes some options that can be passed while loading it via use. +The options can (currently) be either a single letter form, or the long form. +The following options exist: +.IP "a or accuracy" 2 +.IX Item "a or accuracy" +This sets the accuracy for all math operations. The argument must be greater +than or equal to zero. See Math::BigInt's \fBbround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbigrat=a,50 \-le \*(Aqprint sqrt(20)\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "p or precision" 2 +.IX Item "p or precision" +This sets the precision for all math operations. The argument can be any +integer. Negative values mean a fixed number of digits after the dot, while +a positive value rounds to this digit left from the dot. 0 or 1 mean round to +integer. See Math::BigInt's \fBbfround()\fR function for details. +.Sp +.Vb 1 +\& perl \-Mbigrat=p,\-50 \-le \*(Aqprint sqrt(20)\*(Aq +.Ve +.Sp +Note that setting precision and accuracy at the same time is not possible. +.IP "t or trace" 2 +.IX Item "t or trace" +This enables a trace mode and is primarily for debugging bignum or +Math::BigInt/Math::BigFloat. +.IP "l or lib" 2 +.IX Item "l or lib" +Load a different math lib, see \*(L"\s-1MATH LIBRARY\*(R"\s0. +.Sp +.Vb 1 +\& perl \-Mbigrat=l,GMP \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +Currently there is no way to specify more than one library on the command +line. This means the following does not work: +.Sp +.Vb 1 +\& perl \-Mbignum=l,GMP,Pari \-e \*(Aqprint 2 ** 512\*(Aq +.Ve +.Sp +This will be hopefully fixed soon ;) +.IP "hex" 2 +.IX Item "hex" +Override the built-in \fBhex()\fR method with a version that can handle big +numbers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBhex()\fR is lexically +overridden in the current scope whenever the bigrat pragma is active. +.IP "oct" 2 +.IX Item "oct" +Override the built-in \fBoct()\fR method with a version that can handle big +numbers. This overrides it by exporting it to the current package. Under +Perl v5.10.0 and higher, this is not so necessary, as \fBoct()\fR is lexically +overridden in the current scope whenever the bigrat pragma is active. +.IP "v or version" 2 +.IX Item "v or version" +This prints out the name and version of all modules used and then exits. +.Sp +.Vb 1 +\& perl \-Mbigrat=v +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "Operator vs literal overloading" 2 +.IX Item "Operator vs literal overloading" +\&\f(CW\*(C`bigrat\*(C'\fR works by overloading handling of integer and floating point +literals, converting them to Math::BigInt or Math::BigRat +objects. +.Sp +This means that arithmetic involving only string values or string +literals will be performed using Perl's built-in operators. +.Sp +For example: +.Sp +.Vb 4 +\& use bigrat; +\& my $x = "900000000000000009"; +\& my $y = "900000000000000007"; +\& print $x \- $y; +.Ve +.Sp +will output \f(CW0\fR on default 32\-bit builds, since \f(CW\*(C`bigrat\*(C'\fR never sees +the string literals. To ensure the expression is all treated as +\&\f(CW\*(C`Math::BigInt\*(C'\fR or \f(CW\*(C`Math::BigRat\*(C'\fR objects, use a literal number in +the expression: +.Sp +.Vb 1 +\& print +(0+$x) \- $y; +.Ve +.IP "\fBin_effect()\fR" 2 +.IX Item "in_effect()" +This method only works on Perl v5.9.4 or later. +.IP "\fBhex()\fR/\fBoct()\fR" 2 +.IX Item "hex()/oct()" +\&\f(CW\*(C`bigint\*(C'\fR overrides these routines with versions that can also handle +big integer values. Under Perl prior to version v5.9.4, however, this +will not happen unless you specifically ask for it with the two +import tags \*(L"hex\*(R" and \*(L"oct\*(R" \- and then it will be global and cannot be +disabled inside a scope with \*(L"no bigint\*(R": +.Sp +.Vb 1 +\& use bigint qw/hex oct/; +\& +\& print hex("0x1234567890123456"); +\& { +\& no bigint; +\& print hex("0x1234567890123456"); +\& } +.Ve +.Sp +The second call to \fBhex()\fR will warn about a non-portable constant. +.Sp +Compare this to: +.Sp +.Vb 1 +\& use bigint; +\& +\& # will warn only under Perl older than v5.9.4 +\& print hex("0x1234567890123456"); +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 6 +\& perl \-Mbigrat \-le \*(Aqprint sqrt(33)\*(Aq +\& perl \-Mbigrat \-le \*(Aqprint 2*255\*(Aq +\& perl \-Mbigrat \-le \*(Aqprint 4.5+2*255\*(Aq +\& perl \-Mbigrat \-le \*(Aqprint 3/7 + 5/7 + 8/3\*(Aq +\& perl \-Mbigrat \-le \*(Aqprint 12\->is_odd()\*(Aq; +\& perl \-Mbignum=l,GMP \-le \*(Aqprint 7 ** 7777\*(Aq +.Ve +.SH "BUGS" +.IX Header "BUGS" +For information about bugs and how to report them, see the \s-1BUGS\s0 section in the +documentation available with the perldoc command. +.PP +.Vb 1 +\& perldoc bignum +.Ve +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc bigrat +.Ve +.PP +For more information, see the \s-1SUPPORT\s0 section in the documentation available +with the perldoc command. +.PP +.Vb 1 +\& perldoc bignum +.Ve +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +bignum and bigint. +.PP +Math::BigInt, Math::BigFloat, Math::BigRat and Math::Big as well as +Math::BigInt::FastCalc, Math::BigInt::Pari and Math::BigInt::GMP. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +(C) by Tels in early 2002 \- 2007. +.IP "\(bu" 4 +Peter John Acklam , 2014\-. diff --git a/data/miniconda3/man/man3/blib.3 b/data/miniconda3/man/man3/blib.3 new file mode 100644 index 0000000000000000000000000000000000000000..0957ec3397b2137dff382381b5dbf1c726782485 --- /dev/null +++ b/data/miniconda3/man/man3/blib.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "blib 3" +.TH blib 3 "2020-12-18" "perl v5.32.1" "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" +blib \- Use MakeMaker's uninstalled version of a package +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-Mblib script [args...] +\& +\& perl \-Mblib=dir script [args...] +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Looks for MakeMaker-like \fI'blib'\fR directory structure starting in +\&\fIdir\fR (or current directory) and working back up to five levels of '..'. +.PP +Intended for use on command line with \fB\-M\fR option as a way of testing +arbitrary scripts against an uninstalled version of a package. +.PP +However it is possible to : +.PP +.Vb 3 +\& use blib; +\& or +\& use blib \*(Aq..\*(Aq; +.Ve +.PP +etc. if you really must. +.SH "BUGS" +.IX Header "BUGS" +Pollutes global name space for development only task. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nick Ing-Simmons nik@tiuk.ti.com diff --git a/data/miniconda3/man/man3/bytes.3 b/data/miniconda3/man/man3/bytes.3 new file mode 100644 index 0000000000000000000000000000000000000000..3459eeacb20d2c3f60c98000c7f067e795561804 --- /dev/null +++ b/data/miniconda3/man/man3/bytes.3 @@ -0,0 +1,234 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "bytes 3" +.TH bytes 3 "2020-12-18" "perl v5.32.1" "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" +bytes \- Perl pragma to expose the individual bytes of characters +.SH "NOTICE" +.IX Header "NOTICE" +Because the bytes pragma breaks encapsulation (i.e. it exposes the innards of +how the perl executable currently happens to store a string), the byte values +that result are in an unspecified encoding. +.PP +\&\fBUse of this module for anything other than debugging purposes is +strongly discouraged.\fR If you feel that the functions here within +might be useful for your application, this possibly indicates a +mismatch between your mental model of Perl Unicode and the current +reality. In that case, you may wish to read some of the perl Unicode +documentation: perluniintro, perlunitut, perlunifaq and +perlunicode. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 8 +\& use bytes; +\& ... chr(...); # or bytes::chr +\& ... index(...); # or bytes::index +\& ... length(...); # or bytes::length +\& ... ord(...); # or bytes::ord +\& ... rindex(...); # or bytes::rindex +\& ... substr(...); # or bytes::substr +\& no bytes; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Perl's characters are stored internally as sequences of one or more bytes. +This pragma allows for the examination of the individual bytes that together +comprise a character. +.PP +Originally the pragma was designed for the loftier goal of helping incorporate +Unicode into Perl, but the approach that used it was found to be defective, +and the one remaining legitimate use is for debugging when you need to +non-destructively examine characters' individual bytes. Just insert this +pragma temporarily, and remove it after the debugging is finished. +.PP +The original usage can be accomplished by explicit (rather than this pragma's +implicit) encoding using the Encode module: +.PP +.Vb 1 +\& use Encode qw/encode/; +\& +\& my $utf8_byte_string = encode "UTF8", $string; +\& my $latin1_byte_string = encode "Latin1", $string; +.Ve +.PP +Or, if performance is needed and you are only interested in the \s-1UTF\-8\s0 +representation: +.PP +.Vb 1 +\& utf8::encode(my $utf8_byte_string = $string); +.Ve +.PP +\&\f(CW\*(C`no bytes\*(C'\fR can be used to reverse the effect of \f(CW\*(C`use bytes\*(C'\fR within the +current lexical scope. +.PP +As an example, when Perl sees \f(CW\*(C`$x = chr(400)\*(C'\fR, it encodes the character +in \s-1UTF\-8\s0 and stores it in \f(CW$x\fR. Then it is marked as character data, so, +for instance, \f(CW\*(C`length $x\*(C'\fR returns \f(CW1\fR. However, in the scope of the +\&\f(CW\*(C`bytes\*(C'\fR pragma, \f(CW$x\fR is treated as a series of bytes \- the bytes that make +up the \s-1UTF8\s0 encoding \- and \f(CW\*(C`length $x\*(C'\fR returns \f(CW2\fR: +.PP +.Vb 9 +\& $x = chr(400); +\& print "Length is ", length $x, "\en"; # "Length is 1" +\& printf "Contents are %vd\en", $x; # "Contents are 400" +\& { +\& use bytes; # or "require bytes; bytes::length()" +\& print "Length is ", length $x, "\en"; # "Length is 2" +\& printf "Contents are %vd\en", $x; # "Contents are 198.144 (on +\& # ASCII platforms)" +\& } +.Ve +.PP +\&\f(CW\*(C`chr()\*(C'\fR, \f(CW\*(C`ord()\*(C'\fR, \f(CW\*(C`substr()\*(C'\fR, \f(CW\*(C`index()\*(C'\fR and \f(CW\*(C`rindex()\*(C'\fR behave similarly. +.PP +For more on the implications, see perluniintro and perlunicode. +.PP +\&\f(CW\*(C`bytes::length()\*(C'\fR is admittedly handy if you need to know the +\&\fBbyte length\fR of a Perl scalar. But a more modern way is: +.PP +.Vb 2 +\& use Encode \*(Aqencode\*(Aq; +\& length(encode(\*(AqUTF\-8\*(Aq, $scalar)) +.Ve +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +\&\f(CW\*(C`bytes::substr()\*(C'\fR does not work as an \fI\f(BIlvalue()\fI\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perluniintro, perlunicode, utf8, Encode diff --git a/data/miniconda3/man/man3/charnames.3 b/data/miniconda3/man/man3/charnames.3 new file mode 100644 index 0000000000000000000000000000000000000000..b31165dbb16fdb52cebb50e18fd86b7004977f70 --- /dev/null +++ b/data/miniconda3/man/man3/charnames.3 @@ -0,0 +1,546 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "charnames 3" +.TH charnames 3 "2020-12-18" "perl v5.32.1" "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" +charnames \- access to Unicode character names and named character sequences; also define character names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use charnames \*(Aq:full\*(Aq; +\& print "\eN{GREEK SMALL LETTER SIGMA} is called sigma.\en"; +\& print "\eN{LATIN CAPITAL LETTER E WITH VERTICAL LINE BELOW}", +\& " is an officially named sequence of two Unicode characters\en"; +\& +\& use charnames \*(Aq:loose\*(Aq; +\& print "\eN{Greek small\-letter sigma}", +\& "can be used to ignore case, underscores, most blanks," +\& "and when you aren\*(Aqt sure if the official name has hyphens\en"; +\& +\& use charnames \*(Aq:short\*(Aq; +\& print "\eN{greek:Sigma} is an upper\-case sigma.\en"; +\& +\& use charnames qw(cyrillic greek); +\& print "\eN{sigma} is Greek sigma, and \eN{be} is Cyrillic b.\en"; +\& +\& use utf8; +\& use charnames ":full", ":alias" => { +\& e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE", +\& mychar => 0xE8000, # Private use area +\& "XXXXXXX" => "BICYCLIST" +\& }; +\& print "\eN{e_ACUTE} is a small letter e with an acute.\en"; +\& print "\eN{mychar} allows me to name private use characters.\en"; +\& print "And I can create synonyms in other languages,", +\& " such as \eN{XXXXXXX} for "BICYCLIST (U+1F6B4)\en"; +\& +\& use charnames (); +\& print charnames::viacode(0x1234); # prints "ETHIOPIC SYLLABLE SEE" +\& printf "%04X", charnames::vianame("GOTHIC LETTER AHSA"); # prints +\& # "10330" +\& print charnames::vianame("LATIN CAPITAL LETTER A"); # prints 65 on +\& # ASCII platforms; +\& # 193 on EBCDIC +\& print charnames::string_vianame("LATIN CAPITAL LETTER A"); # prints "A" +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Pragma \f(CW\*(C`use charnames\*(C'\fR is used to gain access to the names of the +Unicode characters and named character sequences, and to allow you to define +your own character and character sequence names. +.PP +All forms of the pragma enable use of the following 3 functions: +.IP "\(bu" 4 +"charnames::string_vianame(\fIname\fR)" for run-time lookup of a +either a character name or a named character sequence, returning its string +representation +.IP "\(bu" 4 +"charnames::vianame(\fIname\fR)" for run-time lookup of a +character name (but not a named character sequence) to get its ordinal value +(code point) +.IP "\(bu" 4 +"charnames::viacode(\fIcode\fR)" for run-time lookup of a code point to get its +Unicode name. +.PP +Starting in Perl v5.16, any occurrence of \f(CW\*(C`\eN{\f(CICHARNAME\f(CW}\*(C'\fR sequences +in a double-quotish string automatically loads this module with arguments +\&\f(CW\*(C`:full\*(C'\fR and \f(CW\*(C`:short\*(C'\fR (described below) if it hasn't already been loaded with +different arguments, in order to compile the named Unicode character into +position in the string. Prior to v5.16, an explicit \f(CW\*(C`use\ charnames\*(C'\fR was +required to enable this usage. (However, prior to v5.16, the form \f(CW"use\ charnames\ ();"\fR did not enable \f(CW\*(C`\eN{\f(CICHARNAME\f(CW}\*(C'\fR.) +.PP +Note that \f(CW\*(C`\eN{U+\f(CI...\f(CW}\*(C'\fR, where the \fI...\fR is a hexadecimal number, +also inserts a character into a string. +The character it inserts is the one whose Unicode code point +(ordinal value) is equal to the number. For example, \f(CW"\eN{U+263a}"\fR is +the Unicode (white background, black foreground) smiley face +equivalent to \f(CW"\eN{WHITE SMILING FACE}"\fR. +Also note, \f(CW\*(C`\eN{\f(CI...\f(CW}\*(C'\fR can mean a regex quantifier instead of a character +name, when the \fI...\fR is a number (or comma separated pair of numbers +(see \*(L"\s-1QUANTIFIERS\*(R"\s0 in perlreref), and is not related to this pragma. +.PP +The \f(CW\*(C`charnames\*(C'\fR pragma supports arguments \f(CW\*(C`:full\*(C'\fR, \f(CW\*(C`:loose\*(C'\fR, \f(CW\*(C`:short\*(C'\fR, +script names and customized aliases. +.PP +If \f(CW\*(C`:full\*(C'\fR is present, for expansion of +\&\f(CW\*(C`\eN{\f(CICHARNAME\f(CW}\*(C'\fR, the string \fI\s-1CHARNAME\s0\fR is first looked up in the list of +standard Unicode character names. +.PP +\&\f(CW\*(C`:loose\*(C'\fR is a variant of \f(CW\*(C`:full\*(C'\fR which allows \fI\s-1CHARNAME\s0\fR to be less +precisely specified. Details are in \*(L"\s-1LOOSE MATCHES\*(R"\s0. +.PP +If \f(CW\*(C`:short\*(C'\fR is present, and +\&\fI\s-1CHARNAME\s0\fR has the form \f(CW\*(C`\f(CISCRIPT\f(CW:\f(CICNAME\f(CW\*(C'\fR, then \fI\s-1CNAME\s0\fR is looked up +as a letter in script \fI\s-1SCRIPT\s0\fR, as described in the next paragraph. +Or, if \f(CW\*(C`use charnames\*(C'\fR is used +with script name arguments, then for \f(CW\*(C`\eN{\f(CICHARNAME\f(CW}\*(C'\fR the name +\&\fI\s-1CHARNAME\s0\fR is looked up as a letter in the given scripts (in the +specified order). Customized aliases can override these, and are explained in +\&\*(L"\s-1CUSTOM ALIASES\*(R"\s0. +.PP +For lookup of \fI\s-1CHARNAME\s0\fR inside a given script \fI\s-1SCRIPTNAME\s0\fR, +this pragma looks in the table of standard Unicode names for the names +.PP +.Vb 3 +\& SCRIPTNAME CAPITAL LETTER CHARNAME +\& SCRIPTNAME SMALL LETTER CHARNAME +\& SCRIPTNAME LETTER CHARNAME +.Ve +.PP +If \fI\s-1CHARNAME\s0\fR is all lowercase, +then the \f(CW\*(C`CAPITAL\*(C'\fR variant is ignored, otherwise the \f(CW\*(C`SMALL\*(C'\fR variant +is ignored, and both \fI\s-1CHARNAME\s0\fR and \fI\s-1SCRIPTNAME\s0\fR are converted to all +uppercase for look-up. Other than that, both of them follow loose rules if \f(CW\*(C`:loose\*(C'\fR is also specified; strict otherwise. +.PP +Note that \f(CW\*(C`\eN{...}\*(C'\fR is compile-time; it's a special form of string +constant used inside double-quotish strings; this means that you cannot +use variables inside the \f(CW\*(C`\eN{...}\*(C'\fR. If you want similar run-time +functionality, use +\&\fBcharnames::string_vianame()\fR. +.PP +Note, starting in Perl 5.18, the name \f(CW\*(C`BELL\*(C'\fR refers to the Unicode character +U+1F514, instead of the traditional U+0007. For the latter, use \f(CW\*(C`ALERT\*(C'\fR +or \f(CW\*(C`BEL\*(C'\fR. +.PP +It is a syntax error to use \f(CW\*(C`\eN{NAME}\*(C'\fR where \f(CW\*(C`NAME\*(C'\fR is unknown. +.PP +For \f(CW\*(C`\eN{NAME}\*(C'\fR, it is a fatal error if \f(CW\*(C`use bytes\*(C'\fR is in effect and the +input name is that of a character that won't fit into a byte (i.e., whose +ordinal is above 255). +.PP +Otherwise, any string that includes a \f(CW\*(C`\eN{\f(CIcharname\f(CW}\*(C'\fR or +\&\f(CW\*(C`\eN{U+\f(CIcode\ point\f(CW}\*(C'\fR will automatically have Unicode rules (see +\&\*(L"Byte and Character Semantics\*(R" in perlunicode). +.SH "LOOSE MATCHES" +.IX Header "LOOSE MATCHES" +By specifying \f(CW\*(C`:loose\*(C'\fR, Unicode's loose character name +matching rules are +selected instead of the strict exact match used otherwise. +That means that \fI\s-1CHARNAME\s0\fR doesn't have to be so precisely specified. +Upper/lower case doesn't matter (except with scripts as mentioned above), nor +do any underscores, and the only hyphens that matter are those at the +beginning or end of a word in the name (with one exception: the hyphen in +U+1180 \f(CW\*(C`HANGUL JUNGSEONG O\-E\*(C'\fR does matter). +Also, blanks not adjacent to hyphens don't matter. +The official Unicode names are quite variable as to where they use hyphens +versus spaces to separate word-like units, and this option allows you to not +have to care as much. +The reason non-medial hyphens matter is because of cases like +U+0F60 \f(CW\*(C`TIBETAN LETTER \-A\*(C'\fR versus U+0F68 \f(CW\*(C`TIBETAN LETTER A\*(C'\fR. +The hyphen here is significant, as is the space before it, and so both must be +included. +.PP +\&\f(CW\*(C`:loose\*(C'\fR slows down look-ups by a factor of 2 to 3 versus +\&\f(CW\*(C`:full\*(C'\fR, but the trade-off may be worth it to you. Each individual look-up +takes very little time, and the results are cached, so the speed difference +would become a factor only in programs that do look-ups of many different +spellings, and probably only when those look-ups are through \f(CW\*(C`vianame()\*(C'\fR and +\&\f(CW\*(C`string_vianame()\*(C'\fR, since \f(CW\*(C`\eN{...}\*(C'\fR look-ups are done at compile time. +.SH "ALIASES" +.IX Header "ALIASES" +Starting in Unicode 6.1 and Perl v5.16, Unicode defines many abbreviations and +names that were formerly Perl extensions, and some additional ones that Perl +did not previously accept. The list is getting too long to reproduce here, +but you can get the complete list from the Unicode web site: +. +.PP +Earlier versions of Perl accepted almost all the 6.1 names. These were most +extensively documented in the v5.14 version of this pod: +. +.SH "CUSTOM ALIASES" +.IX Header "CUSTOM ALIASES" +You can add customized aliases to standard (\f(CW\*(C`:full\*(C'\fR) Unicode naming +conventions. The aliases override any standard definitions, so, if +you're twisted enough, you can change \f(CW"\eN{LATIN CAPITAL LETTER A}"\fR to +mean \f(CW"B"\fR, etc. +.PP +Aliases must begin with a character that is alphabetic. After that, each may +contain any combination of word (\f(CW\*(C`\ew\*(C'\fR) characters, \s-1SPACE\s0 (U+0020), +HYPHEN-MINUS (U+002D), \s-1LEFT PARENTHESIS\s0 (U+0028), and \s-1RIGHT PARENTHESIS\s0 +(U+0029). These last two should never have been allowed +in names, and are retained for backwards compatibility only, and may be +deprecated and removed in future releases of Perl, so don't use them for new +names. (More precisely, the first character of a name you specify must be +something that matches all of \f(CW\*(C`\ep{ID_Start}\*(C'\fR, \f(CW\*(C`\ep{Alphabetic}\*(C'\fR, and +\&\f(CW\*(C`\ep{Gc=Letter}\*(C'\fR. This makes sure it is what any reasonable person would view +as an alphabetic character. And, the continuation characters that match \f(CW\*(C`\ew\*(C'\fR +must also match \f(CW\*(C`\ep{ID_Continue}\*(C'\fR.) Starting with Perl v5.18, any Unicode +characters meeting the above criteria may be used; prior to that only +Latin1\-range characters were acceptable. +.PP +An alias can map to either an official Unicode character name (not a loose +matched name) or to a +numeric code point (ordinal). The latter is useful for assigning names +to code points in Unicode private use areas such as U+E800 through +U+F8FF. +A numeric code point must be a non-negative integer, or a string beginning +with \f(CW"U+"\fR or \f(CW"0x"\fR with the remainder considered to be a +hexadecimal integer. A literal numeric constant must be unsigned; it +will be interpreted as hex if it has a leading zero or contains +non-decimal hex digits; otherwise it will be interpreted as decimal. +If it begins with \f(CW"U+"\fR, it is interpreted as the Unicode code point; +otherwise it is interpreted as native. (Only code points below 256 can +differ between Unicode and native.) Thus \f(CW\*(C`U+41\*(C'\fR is always the Latin letter +\&\*(L"A\*(R"; but \f(CW0x41\fR can be \*(L"NO-BREAK \s-1SPACE\*(R"\s0 on \s-1EBCDIC\s0 platforms. +.PP +Aliases are added either by the use of anonymous hashes: +.PP +.Vb 5 +\& use charnames ":alias" => { +\& e_ACUTE => "LATIN SMALL LETTER E WITH ACUTE", +\& mychar1 => 0xE8000, +\& }; +\& my $str = "\eN{e_ACUTE}"; +.Ve +.PP +or by using a file containing aliases: +.PP +.Vb 1 +\& use charnames ":alias" => "pro"; +.Ve +.PP +This will try to read \f(CW"unicore/pro_alias.pl"\fR from the \f(CW@INC\fR path. This +file should return a list in plain perl: +.PP +.Vb 10 +\& ( +\& A_GRAVE => "LATIN CAPITAL LETTER A WITH GRAVE", +\& A_CIRCUM => "LATIN CAPITAL LETTER A WITH CIRCUMFLEX", +\& A_DIAERES => "LATIN CAPITAL LETTER A WITH DIAERESIS", +\& A_TILDE => "LATIN CAPITAL LETTER A WITH TILDE", +\& A_BREVE => "LATIN CAPITAL LETTER A WITH BREVE", +\& A_RING => "LATIN CAPITAL LETTER A WITH RING ABOVE", +\& A_MACRON => "LATIN CAPITAL LETTER A WITH MACRON", +\& mychar2 => "U+E8001", +\& ); +.Ve +.PP +Both these methods insert \f(CW":full"\fR automatically as the first argument (if no +other argument is given), and you can give the \f(CW":full"\fR explicitly as +well, like +.PP +.Vb 1 +\& use charnames ":full", ":alias" => "pro"; +.Ve +.PP +\&\f(CW":loose"\fR has no effect with these. Input names must match exactly, using +\&\f(CW":full"\fR rules. +.PP +Also, both these methods currently allow only single characters to be named. +To name a sequence of characters, use a +custom translator (described below). +.SH "charnames::string_vianame(\fIname\fP)" +.IX Header "charnames::string_vianame(name)" +This is a runtime equivalent to \f(CW\*(C`\eN{...}\*(C'\fR. \fIname\fR can be any expression +that evaluates to a name accepted by \f(CW\*(C`\eN{...}\*(C'\fR under the \f(CW\*(C`:full\*(C'\fR +option to \f(CW\*(C`charnames\*(C'\fR. In addition, any other options for the +controlling \f(CW"use charnames"\fR in the same scope apply, like \f(CW\*(C`:loose\*(C'\fR or any +script list, \f(CW\*(C`:short\*(C'\fR option, or custom aliases you may have defined. +.PP +The only differences are due to the fact that \f(CW\*(C`string_vianame\*(C'\fR is run-time +and \f(CW\*(C`\eN{}\*(C'\fR is compile time. You can't interpolate inside a \f(CW\*(C`\eN{}\*(C'\fR, (so +\&\f(CW\*(C`\eN{$variable}\*(C'\fR doesn't work); and if the input name is unknown, +\&\f(CW\*(C`string_vianame\*(C'\fR returns \f(CW\*(C`undef\*(C'\fR instead of it being a syntax error. +.SH "charnames::vianame(\fIname\fP)" +.IX Header "charnames::vianame(name)" +This is similar to \f(CW\*(C`string_vianame\*(C'\fR. The main difference is that under most +circumstances, \f(CW\*(C`vianame\*(C'\fR returns an ordinal code +point, whereas \f(CW\*(C`string_vianame\*(C'\fR returns a string. For example, +.PP +.Vb 1 +\& printf "U+%04X", charnames::vianame("FOUR TEARDROP\-SPOKED ASTERISK"); +.Ve +.PP +prints \*(L"U+2722\*(R". +.PP +This leads to the other two differences. Since a single code point is +returned, the function can't handle named character sequences, as these are +composed of multiple characters (it returns \f(CW\*(C`undef\*(C'\fR for these. And, the code +point can be that of any +character, even ones that aren't legal under the \f(CW\*(C`use\ bytes\*(C'\fR pragma, +.PP +See \*(L"\s-1BUGS\*(R"\s0 for the circumstances in which the behavior differs +from that described above. +.SH "charnames::viacode(\fIcode\fP)" +.IX Header "charnames::viacode(code)" +Returns the full name of the character indicated by the numeric code. +For example, +.PP +.Vb 1 +\& print charnames::viacode(0x2722); +.Ve +.PP +prints \*(L"\s-1FOUR\s0 TEARDROP-SPOKED \s-1ASTERISK\*(R".\s0 +.PP +The name returned is the \*(L"best\*(R" (defined below) official name or alias +for the code point, if +available; otherwise your custom alias for it, if defined; otherwise \f(CW\*(C`undef\*(C'\fR. +This means that your alias will only be returned for code points that don't +have an official Unicode name (nor alias) such as private use code points. +.PP +If you define more than one name for the code point, it is indeterminate +which one will be returned. +.PP +As mentioned, the function returns \f(CW\*(C`undef\*(C'\fR if no name is known for the code +point. In Unicode the proper name for these is the empty string, which +\&\f(CW\*(C`undef\*(C'\fR stringifies to. (If you ask for a code point past the legal +Unicode maximum of U+10FFFF that you haven't assigned an alias to, you +get \f(CW\*(C`undef\*(C'\fR plus a warning.) +.PP +The input number must be a non-negative integer, or a string beginning +with \f(CW"U+"\fR or \f(CW"0x"\fR with the remainder considered to be a +hexadecimal integer. A literal numeric constant must be unsigned; it +will be interpreted as hex if it has a leading zero or contains +non-decimal hex digits; otherwise it will be interpreted as decimal. +If it begins with \f(CW"U+"\fR, it is interpreted as the Unicode code point; +otherwise it is interpreted as native. (Only code points below 256 can +differ between Unicode and native.) Thus \f(CW\*(C`U+41\*(C'\fR is always the Latin letter +\&\*(L"A\*(R"; but \f(CW0x41\fR can be \*(L"NO-BREAK \s-1SPACE\*(R"\s0 on \s-1EBCDIC\s0 platforms. +.PP +As mentioned above under \*(L"\s-1ALIASES\*(R"\s0, Unicode 6.1 defines extra names +(synonyms or aliases) for some code points, most of which were already +available as Perl extensions. All these are accepted by \f(CW\*(C`\eN{...}\*(C'\fR and the +other functions in this module, but \f(CW\*(C`viacode\*(C'\fR has to choose which one +name to return for a given input code point, so it returns the \*(L"best\*(R" name. +To understand how this works, it is helpful to know more about the Unicode +name properties. All code points actually have only a single name, which +(starting in Unicode 2.0) can never change once a character has been assigned +to the code point. But mistakes have been made in assigning names, for +example sometimes a clerical error was made during the publishing of the +Standard which caused words to be misspelled, and there was no way to correct +those. The Name_Alias property was eventually created to handle these +situations. If a name was wrong, a corrected synonym would be published for +it, using Name_Alias. \f(CW\*(C`viacode\*(C'\fR will return that corrected synonym as the +\&\*(L"best\*(R" name for a code point. (It is even possible, though it hasn't happened +yet, that the correction itself will need to be corrected, and so another +Name_Alias can be created for that code point; \f(CW\*(C`viacode\*(C'\fR will return the +most recent correction.) +.PP +The Unicode name for each of the control characters (such as \s-1LINE FEED\s0) is the +empty string. However almost all had names assigned by other standards, such +as the \s-1ASCII\s0 Standard, or were in common use. \f(CW\*(C`viacode\*(C'\fR returns these names +as the \*(L"best\*(R" ones available. Unicode 6.1 has created Name_Aliases for each +of them, including alternate names, like \s-1NEW LINE.\s0 \f(CW\*(C`viacode\*(C'\fR uses the +original name, \*(L"\s-1LINE FEED\*(R"\s0 in preference to the alternate. Similarly the +name returned for U+FEFF is \*(L"\s-1ZERO WIDTH\s0 NO-BREAK \s-1SPACE\*(R",\s0 not \*(L"\s-1BYTE ORDER +MARK\*(R".\s0 +.PP +Until Unicode 6.1, the 4 control characters U+0080, U+0081, U+0084, and U+0099 +did not have names nor aliases. +To preserve backwards compatibility, any alias you define for these code +points will be returned by this function, in preference to the official name. +.PP +Some code points also have abbreviated names, such as \*(L"\s-1LF\*(R"\s0 or \*(L"\s-1NL\*(R".\s0 +\&\f(CW\*(C`viacode\*(C'\fR never returns these. +.PP +Because a name correction may be added in future Unicode releases, the name +that \f(CW\*(C`viacode\*(C'\fR returns may change as a result. This is a rare event, but it +does happen. +.SH "CUSTOM TRANSLATORS" +.IX Header "CUSTOM TRANSLATORS" +The mechanism of translation of \f(CW\*(C`\eN{...}\*(C'\fR escapes is general and not +hardwired into \fIcharnames.pm\fR. A module can install custom +translations (inside the scope which \f(CW\*(C`use\*(C'\fRs the module) with the +following magic incantation: +.PP +.Vb 4 +\& sub import { +\& shift; +\& $^H{charnames} = \e&translator; +\& } +.Ve +.PP +Here \fBtranslator()\fR is a subroutine which takes \fI\s-1CHARNAME\s0\fR as an +argument, and returns text to insert into the string instead of the +\&\f(CW\*(C`\eN{\f(CICHARNAME\f(CW}\*(C'\fR escape. +.PP +This is the only way you can create a custom named sequence of code points. +.PP +Since the text to insert should be different +in \f(CW\*(C`bytes\*(C'\fR mode and out of it, the function should check the current +state of \f(CW\*(C`bytes\*(C'\fR\-flag as in: +.PP +.Vb 9 +\& use bytes (); # for $bytes::hint_bits +\& sub translator { +\& if ($^H & $bytes::hint_bits) { +\& return bytes_translator(@_); +\& } +\& else { +\& return utf8_translator(@_); +\& } +\& } +.Ve +.PP +See \*(L"\s-1CUSTOM ALIASES\*(R"\s0 above for restrictions on \fI\s-1CHARNAME\s0\fR. +.PP +Of course, \f(CW\*(C`vianame\*(C'\fR, \f(CW\*(C`viacode\*(C'\fR, and \f(CW\*(C`string_vianame\*(C'\fR would need to be +overridden as well. +.SH "BUGS" +.IX Header "BUGS" +\&\fBvianame()\fR normally returns an ordinal code point, but when the input name is of +the form \f(CW\*(C`U+...\*(C'\fR, it returns a chr instead. In this case, if \f(CW\*(C`use bytes\*(C'\fR is +in effect and the character won't fit into a byte, it returns \f(CW\*(C`undef\*(C'\fR and +raises a warning. +.PP +Since evaluation of the translation function (see \*(L"\s-1CUSTOM +TRANSLATORS\*(R"\s0) happens in the middle of compilation (of a string +literal), the translation function should not do any \f(CW\*(C`eval\*(C'\fRs or +\&\f(CW\*(C`require\*(C'\fRs. This restriction should be lifted (but is low priority) in +a future version of Perl. diff --git a/data/miniconda3/man/man3/constant.3 b/data/miniconda3/man/man3/constant.3 new file mode 100644 index 0000000000000000000000000000000000000000..4c889120cb194a132ea445e75858507766e73928 --- /dev/null +++ b/data/miniconda3/man/man3/constant.3 @@ -0,0 +1,390 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "constant 3" +.TH constant 3 "2020-12-18" "perl v5.32.1" "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" +constant \- Perl pragma to declare constants +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use constant PI => 4 * atan2(1, 1); +\& use constant DEBUG => 0; +\& +\& print "Pi equals ", PI, "...\en" if DEBUG; +\& +\& use constant { +\& SEC => 0, +\& MIN => 1, +\& HOUR => 2, +\& MDAY => 3, +\& MON => 4, +\& YEAR => 5, +\& WDAY => 6, +\& YDAY => 7, +\& ISDST => 8, +\& }; +\& +\& use constant WEEKDAYS => qw( +\& Sunday Monday Tuesday Wednesday Thursday Friday Saturday +\& ); +\& +\& print "Today is ", (WEEKDAYS)[ (localtime)[WDAY] ], ".\en"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma allows you to declare constants at compile-time. +.PP +When you declare a constant such as \f(CW\*(C`PI\*(C'\fR using the method shown +above, each machine your script runs upon can have as many digits +of accuracy as it can use. Also, your program will be easier to +read, more likely to be maintained (and maintained correctly), and +far less likely to send a space probe to the wrong planet because +nobody noticed the one equation in which you wrote \f(CW3.14195\fR. +.PP +When a constant is used in an expression, Perl replaces it with its +value at compile time, and may then optimize the expression further. +In particular, any code in an \f(CW\*(C`if (CONSTANT)\*(C'\fR block will be optimized +away if the constant is false. +.SH "NOTES" +.IX Header "NOTES" +As with all \f(CW\*(C`use\*(C'\fR directives, defining a constant happens at +compile time. Thus, it's probably not correct to put a constant +declaration inside of a conditional statement (like \f(CW\*(C`if ($foo) +{ use constant ... }\*(C'\fR). +.PP +Constants defined using this module cannot be interpolated into +strings like variables. However, concatenation works just fine: +.PP +.Vb 2 +\& print "Pi equals PI...\en"; # WRONG: does not expand "PI" +\& print "Pi equals ".PI."...\en"; # right +.Ve +.PP +Even though a reference may be declared as a constant, the reference may +point to data which may be changed, as this code shows. +.PP +.Vb 4 +\& use constant ARRAY => [ 1,2,3,4 ]; +\& print ARRAY\->[1]; +\& ARRAY\->[1] = " be changed"; +\& print ARRAY\->[1]; +.Ve +.PP +Constants belong to the package they are defined in. To refer to a +constant defined in another package, specify the full package name, as +in \f(CW\*(C`Some::Package::CONSTANT\*(C'\fR. Constants may be exported by modules, +and may also be called as either class or instance methods, that is, +as \f(CW\*(C`Some::Package\->CONSTANT\*(C'\fR or as \f(CW\*(C`$obj\->CONSTANT\*(C'\fR where +\&\f(CW$obj\fR is an instance of \f(CW\*(C`Some::Package\*(C'\fR. Subclasses may define +their own constants to override those in their base class. +.PP +As of version 1.32 of this module, constants can be defined in packages +other than the caller, by including the package name in the name of the +constant: +.PP +.Vb 2 +\& use constant "OtherPackage::FWIBBLE" => 7865; +\& constant\->import("Other::FWOBBLE",$value); # dynamically at run time +.Ve +.PP +The use of all caps for constant names is merely a convention, +although it is recommended in order to make constants stand out +and to help avoid collisions with other barewords, keywords, and +subroutine names. Constant names must begin with a letter or +underscore. Names beginning with a double underscore are reserved. Some +poor choices for names will generate warnings, if warnings are enabled at +compile time. +.SS "List constants" +.IX Subsection "List constants" +Constants may be lists of more (or less) than one value. A constant +with no values evaluates to \f(CW\*(C`undef\*(C'\fR in scalar context. Note that +constants with more than one value do \fInot\fR return their last value in +scalar context as one might expect. They currently return the number +of values, but \fBthis may change in the future\fR. Do not use constants +with multiple values in scalar context. +.PP +\&\fB\s-1NOTE:\s0\fR This implies that the expression defining the value of a +constant is evaluated in list context. This may produce surprises: +.PP +.Vb 2 +\& use constant TIMESTAMP => localtime; # WRONG! +\& use constant TIMESTAMP => scalar localtime; # right +.Ve +.PP +The first line above defines \f(CW\*(C`TIMESTAMP\*(C'\fR as a 9\-element list, as +returned by \f(CW\*(C`localtime()\*(C'\fR in list context. To set it to the string +returned by \f(CW\*(C`localtime()\*(C'\fR in scalar context, an explicit \f(CW\*(C`scalar\*(C'\fR +keyword is required. +.PP +List constants are lists, not arrays. To index or slice them, they +must be placed in parentheses. +.PP +.Vb 2 +\& my @workdays = WEEKDAYS[1 .. 5]; # WRONG! +\& my @workdays = (WEEKDAYS)[1 .. 5]; # right +.Ve +.SS "Defining multiple constants at once" +.IX Subsection "Defining multiple constants at once" +Instead of writing multiple \f(CW\*(C`use constant\*(C'\fR statements, you may define +multiple constants in a single statement by giving, instead of the +constant name, a reference to a hash where the keys are the names of +the constants to be defined. Obviously, all constants defined using +this method must have a single value. +.PP +.Vb 4 +\& use constant { +\& FOO => "A single value", +\& BAR => "This", "won\*(Aqt", "work!", # Error! +\& }; +.Ve +.PP +This is a fundamental limitation of the way hashes are constructed in +Perl. The error messages produced when this happens will often be +quite cryptic \*(-- in the worst case there may be none at all, and +you'll only later find that something is broken. +.PP +When defining multiple constants, you cannot use the values of other +constants defined in the same declaration. This is because the +calling package doesn't know about any constant within that group +until \fIafter\fR the \f(CW\*(C`use\*(C'\fR statement is finished. +.PP +.Vb 4 +\& use constant { +\& BITMASK => 0xAFBAEBA8, +\& NEGMASK => ~BITMASK, # Error! +\& }; +.Ve +.SS "Magic constants" +.IX Subsection "Magic constants" +Magical values and references can be made into constants at compile +time, allowing for way cool stuff like this. (These error numbers +aren't totally portable, alas.) +.PP +.Vb 3 +\& use constant E2BIG => ($! = 7); +\& print E2BIG, "\en"; # something like "Arg list too long" +\& print 0+E2BIG, "\en"; # "7" +.Ve +.PP +You can't produce a tied constant by giving a tied scalar as the +value. References to tied variables, however, can be used as +constants without any problems. +.SH "TECHNICAL NOTES" +.IX Header "TECHNICAL NOTES" +In the current implementation, scalar constants are actually +inlinable subroutines. As of version 5.004 of Perl, the appropriate +scalar constant is inserted directly in place of some subroutine +calls, thereby saving the overhead of a subroutine call. See +\&\*(L"Constant Functions\*(R" in perlsub for details about how and when this +happens. +.PP +In the rare case in which you need to discover at run time whether a +particular constant has been declared via this module, you may use +this function to examine the hash \f(CW%constant::declared\fR. If the given +constant name does not include a package name, the current package is +used. +.PP +.Vb 8 +\& sub declared ($) { +\& use constant 1.01; # don\*(Aqt omit this! +\& my $name = shift; +\& $name =~ s/^::/main::/; +\& my $pkg = caller; +\& my $full_name = $name =~ /::/ ? $name : "${pkg}::$name"; +\& $constant::declared{$full_name}; +\& } +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +List constants are not inlined unless you are using Perl v5.20 or higher. +In v5.20 or higher, they are still not read-only, but that may change in +future versions. +.PP +It is not possible to have a subroutine or a keyword with the same +name as a constant in the same package. This is probably a Good Thing. +.PP +A constant with a name in the list \f(CW\*(C`STDIN STDOUT STDERR ARGV ARGVOUT +ENV INC SIG\*(C'\fR is not allowed anywhere but in package \f(CW\*(C`main::\*(C'\fR, for +technical reasons. +.PP +Unlike constants in some languages, these cannot be overridden +on the command line or via environment variables. +.PP +You can get into trouble if you use constants in a context which +automatically quotes barewords (as is true for any subroutine call). +For example, you can't say \f(CW$hash{CONSTANT}\fR because \f(CW\*(C`CONSTANT\*(C'\fR will +be interpreted as a string. Use \f(CW$hash{CONSTANT()}\fR or +\&\f(CW$hash{+CONSTANT}\fR to prevent the bareword quoting mechanism from +kicking in. Similarly, since the \f(CW\*(C`=>\*(C'\fR operator quotes a bareword +immediately to its left, you have to say \f(CW\*(C`CONSTANT() => \*(Aqvalue\*(Aq\*(C'\fR +(or simply use a comma in place of the big arrow) instead of +\&\f(CW\*(C`CONSTANT => \*(Aqvalue\*(Aq\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Readonly \- Facility for creating read-only scalars, arrays, hashes. +.PP +Attribute::Constant \- Make read-only variables via attribute +.PP +Scalar::Readonly \- Perl extension to the \f(CW\*(C`SvREADONLY\*(C'\fR scalar flag +.PP +Hash::Util \- A selection of general-utility hash subroutines (mostly +to lock/unlock keys and values) +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests via the \fBperlbug\fR\|(1) utility. +.SH "AUTHORS" +.IX Header "AUTHORS" +Tom Phoenix, <\fIrootbeer@redcat.com\fR>, with help from +many other folks. +.PP +Multiple constant declarations at once added by Casey West, +<\fIcasey@geeknest.com\fR>. +.PP +Documentation mostly rewritten by Ilmari Karonen, +<\fIperl@itz.pp.sci.fi\fR>. +.PP +This program is maintained by the Perl 5 Porters. +The \s-1CPAN\s0 distribution is maintained by Se\*'bastien Aperghis-Tramoni +<\fIsebastien@aperghis.net\fR>. +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright (C) 1997, 1999 Tom Phoenix +.PP +This module is free software; you can redistribute it or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/deprecate.3 b/data/miniconda3/man/man3/deprecate.3 new file mode 100644 index 0000000000000000000000000000000000000000..f4efd7879d15a769bc811a6b294b907320d68567 --- /dev/null +++ b/data/miniconda3/man/man3/deprecate.3 @@ -0,0 +1,209 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "deprecate 3" +.TH deprecate 3 "2020-12-18" "perl v5.32.1" "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" +deprecate \- Perl pragma for deprecating the inclusion of a module in core +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use deprecate; # warn about future absence if loaded from core +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma simplifies the maintenance of dual-life modules that will no longer +be included in the Perl core in a future Perl release, but are still included +currently. +.PP +The purpose of the pragma is to alert users to the status of such a module by +issuing a warning that encourages them to install the module from \s-1CPAN,\s0 so that +a future upgrade to a perl which omits the module will not break their code. +.PP +This warning will only be issued if the module was loaded from a core library +directory, which allows the \f(CW\*(C`use deprecate\*(C'\fR line to be included in the \s-1CPAN\s0 +version of the module. Because the pragma remains silent when the module is run +from a non-core library directory, the pragma call does not need to be patched +into or out of either the core or \s-1CPAN\s0 version of the module. The exact same +code can be shipped for either purpose. +.SS "Important Caveat" +.IX Subsection "Important Caveat" +Note that when a module installs from \s-1CPAN\s0 to a core library directory rather +than the site library directories, the user gains no protection from having +installed it. +.PP +At the same time, this pragma cannot detect when such a module has installed +from \s-1CPAN\s0 to the core library, and so it would endlessly and uselessly exhort +the user to upgrade. +.PP +Therefore modules that can install from \s-1CPAN\s0 to the core library must make sure +not to call this pragma when they have done so. Generally this means that the +exact logic from the installer must be mirrored inside the module. E.g.: +.PP +.Vb 5 +\& # Makefile.PL +\& WriteMakefile( +\& # ... +\& INSTALLDIRS => ( "$]" >= 5.011 ? \*(Aqsite\*(Aq : \*(Aqperl\*(Aq ), +\& ); +\& +\& # lib/Foo/Bar.pm +\& use if "$]" >= 5.011, \*(Aqdeprecate\*(Aq; +.Ve +.PP +(The above example shows the most important case of this: when the target is +a Perl older than 5.12 (where the core library directories take precedence over +the site library directories) and the module being installed was included in +core in that Perl version. Under those circumstances, an upgrade of the module +from \s-1CPAN\s0 is only possible by installing to the core library.) +.SH "EXPORT" +.IX Header "EXPORT" +None by default. The only method is \f(CW\*(C`import\*(C'\fR, called by \f(CW\*(C`use deprecate;\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +First example to \f(CW\*(C`use deprecate;\*(C'\fR was Switch. +.SH "AUTHOR" +.IX Header "AUTHOR" +Original version by Nicholas Clark +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (C) 2009, 2011 +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.10.0 or, +at your option, any later version of Perl 5 you may have available. diff --git a/data/miniconda3/man/man3/diagnostics.3 b/data/miniconda3/man/man3/diagnostics.3 new file mode 100644 index 0000000000000000000000000000000000000000..f99cf22bc4d440592b3f26efa3449b879d0a2def --- /dev/null +++ b/data/miniconda3/man/man3/diagnostics.3 @@ -0,0 +1,334 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "diagnostics 3" +.TH diagnostics 3 "2020-12-18" "perl v5.32.1" "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" +diagnostics, splain \- produce verbose warning diagnostics +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +Using the \f(CW\*(C`diagnostics\*(C'\fR pragma: +.PP +.Vb 2 +\& use diagnostics; +\& use diagnostics \-verbose; +\& +\& enable diagnostics; +\& disable diagnostics; +.Ve +.PP +Using the \f(CW\*(C`splain\*(C'\fR standalone filter program: +.PP +.Vb 2 +\& perl program 2>diag.out +\& splain [\-v] [\-p] diag.out +.Ve +.PP +Using diagnostics to get stack traces from a misbehaving script: +.PP +.Vb 1 +\& perl \-Mdiagnostics=\-traceonly my_script.pl +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.ie n .SS "The ""diagnostics"" Pragma" +.el .SS "The \f(CWdiagnostics\fP Pragma" +.IX Subsection "The diagnostics Pragma" +This module extends the terse diagnostics normally emitted by both the +perl compiler and the perl interpreter (from running perl with a \-w +switch or \f(CW\*(C`use warnings\*(C'\fR), augmenting them with the more +explicative and endearing descriptions found in perldiag. Like the +other pragmata, it affects the compilation phase of your program rather +than merely the execution phase. +.PP +To use in your program as a pragma, merely invoke +.PP +.Vb 1 +\& use diagnostics; +.Ve +.PP +at the start (or near the start) of your program. (Note +that this \fIdoes\fR enable perl's \fB\-w\fR flag.) Your whole +compilation will then be subject(ed :\-) to the enhanced diagnostics. +These still go out \fB\s-1STDERR\s0\fR. +.PP +Due to the interaction between runtime and compiletime issues, +and because it's probably not a very good idea anyway, +you may not use \f(CW\*(C`no diagnostics\*(C'\fR to turn them off at compiletime. +However, you may control their behaviour at runtime using the +\&\fBdisable()\fR and \fBenable()\fR methods to turn them off and on respectively. +.PP +The \fB\-verbose\fR flag first prints out the perldiag introduction before +any other diagnostics. The \f(CW$diagnostics::PRETTY\fR variable can generate nicer +escape sequences for pagers. +.PP +Warnings dispatched from perl itself (or more accurately, those that match +descriptions found in perldiag) are only displayed once (no duplicate +descriptions). User code generated warnings a la \fBwarn()\fR are unaffected, +allowing duplicate user messages to be displayed. +.PP +This module also adds a stack trace to the error message when perl dies. +This is useful for pinpointing what +caused the death. The \fB\-traceonly\fR (or +just \fB\-t\fR) flag turns off the explanations of warning messages leaving just +the stack traces. So if your script is dieing, run it again with +.PP +.Vb 1 +\& perl \-Mdiagnostics=\-traceonly my_bad_script +.Ve +.PP +to see the call stack at the time of death. By supplying the \fB\-warntrace\fR +(or just \fB\-w\fR) flag, any warnings emitted will also come with a stack +trace. +.SS "The \fIsplain\fP Program" +.IX Subsection "The splain Program" +While apparently a whole nuther program, \fIsplain\fR is actually nothing +more than a link to the (executable) \fIdiagnostics.pm\fR module, as well as +a link to the \fIdiagnostics.pod\fR documentation. The \fB\-v\fR flag is like +the \f(CW\*(C`use diagnostics \-verbose\*(C'\fR directive. +The \fB\-p\fR flag is like the +\&\f(CW$diagnostics::PRETTY\fR variable. Since you're post-processing with +\&\fIsplain\fR, there's no sense in being able to \fBenable()\fR or \fBdisable()\fR processing. +.PP +Output from \fIsplain\fR is directed to \fB\s-1STDOUT\s0\fR, unlike the pragma. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +The following file is certain to trigger a few errors at both +runtime and compiletime: +.PP +.Vb 8 +\& use diagnostics; +\& print NOWHERE "nothing\en"; +\& print STDERR "\en\etThis message should be unadorned.\en"; +\& warn "\etThis is a user warning"; +\& print "\enDIAGNOSTIC TESTER: Please enter a here: "; +\& my $a, $b = scalar ; +\& print "\en"; +\& print $x/$y; +.Ve +.PP +If you prefer to run your program first and look at its problem +afterwards, do this: +.PP +.Vb 2 +\& perl \-w test.pl 2>test.out +\& ./splain < test.out +.Ve +.PP +Note that this is not in general possible in shells of more dubious heritage, +as the theoretical +.PP +.Vb 2 +\& (perl \-w test.pl >/dev/tty) >& test.out +\& ./splain < test.out +.Ve +.PP +Because you just moved the existing \fBstdout\fR to somewhere else. +.PP +If you don't want to modify your source code, but still have on-the-fly +warnings, do this: +.PP +.Vb 1 +\& exec 3>&1; perl \-w test.pl 2>&1 1>&3 3>&\- | splain 1>&2 3>&\- +.Ve +.PP +Nifty, eh? +.PP +If you want to control warnings on the fly, do something like this. +Make sure you do the \f(CW\*(C`use\*(C'\fR first, or you won't be able to get +at the \fBenable()\fR or \fBdisable()\fR methods. +.PP +.Vb 4 +\& use diagnostics; # checks entire compilation phase +\& print "\entime for 1st bogus diags: SQUAWKINGS\en"; +\& print BOGUS1 \*(Aqnada\*(Aq; +\& print "done with 1st bogus\en"; +\& +\& disable diagnostics; # only turns off runtime warnings +\& print "\entime for 2nd bogus: (squelched)\en"; +\& print BOGUS2 \*(Aqnada\*(Aq; +\& print "done with 2nd bogus\en"; +\& +\& enable diagnostics; # turns back on runtime warnings +\& print "\entime for 3rd bogus: SQUAWKINGS\en"; +\& print BOGUS3 \*(Aqnada\*(Aq; +\& print "done with 3rd bogus\en"; +\& +\& disable diagnostics; +\& print "\entime for 4th bogus: (squelched)\en"; +\& print BOGUS4 \*(Aqnada\*(Aq; +\& print "done with 4th bogus\en"; +.Ve +.SH "INTERNALS" +.IX Header "INTERNALS" +Diagnostic messages derive from the \fIperldiag.pod\fR file when available at +runtime. Otherwise, they may be embedded in the file itself when the +splain package is built. See the \fIMakefile\fR for details. +.PP +If an extant \f(CW$SIG\fR{_\|_WARN_\|_} handler is discovered, it will continue +to be honored, but only after the \fBdiagnostics::splainthis()\fR function +(the module's \f(CW$SIG\fR{_\|_WARN_\|_} interceptor) has had its way with your +warnings. +.PP +There is a \f(CW$diagnostics::DEBUG\fR variable you may set if you're desperately +curious what sorts of things are being intercepted. +.PP +.Vb 1 +\& BEGIN { $diagnostics::DEBUG = 1 } +.Ve +.SH "BUGS" +.IX Header "BUGS" +Not being able to say \*(L"no diagnostics\*(R" is annoying, but may not be +insurmountable. +.PP +The \f(CW\*(C`\-pretty\*(C'\fR directive is called too late to affect matters. +You have to do this instead, and \fIbefore\fR you load the module. +.PP +.Vb 1 +\& BEGIN { $diagnostics::PRETTY = 1 } +.Ve +.PP +I could start up faster by delaying compilation until it should be +needed, but this gets a \*(L"panic: top_level\*(R" when using the pragma form +in Perl 5.001e. +.PP +While it's true that this documentation is somewhat subserious, if you use +a program named \fIsplain\fR, you should expect a bit of whimsy. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tom Christiansen <\fItchrist@mox.perl.com\fR>, 25 June 1995. diff --git a/data/miniconda3/man/man3/encoding.3 b/data/miniconda3/man/man3/encoding.3 new file mode 100644 index 0000000000000000000000000000000000000000..7af63d8a8b6b87bb372876f656fe52fc5c5bb9eb --- /dev/null +++ b/data/miniconda3/man/man3/encoding.3 @@ -0,0 +1,624 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "encoding 3" +.TH encoding 3 "2020-12-18" "perl v5.32.1" "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" +encoding \- allows you to write your script in non\-ASCII and non\-UTF\-8 +.SH "WARNING" +.IX Header "WARNING" +This module has been deprecated since perl v5.18. See \*(L"\s-1DESCRIPTION\*(R"\s0 and +\&\*(L"\s-1BUGS\*(R"\s0. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use encoding "greek"; # Perl like Greek to you? +\& use encoding "euc\-jp"; # Jperl! +\& +\& # or you can even do this if your shell supports your native encoding +\& +\& perl \-Mencoding=latin2 \-e\*(Aq...\*(Aq # Feeling centrally European? +\& perl \-Mencoding=euc\-kr \-e\*(Aq...\*(Aq # Or Korean? +\& +\& # more control +\& +\& # A simple euc\-cn => utf\-8 converter +\& use encoding "euc\-cn", STDOUT => "utf8"; while(<>){print}; +\& +\& # "no encoding;" supported +\& no encoding; +\& +\& # an alternate way, Filter +\& use encoding "euc\-jp", Filter=>1; +\& # now you can use kanji identifiers \-\- in euc\-jp! +\& +\& # encode based on the current locale \- specialized purposes only; +\& # fraught with danger!! +\& use encoding \*(Aq:locale\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma is used to enable a Perl script to be written in encodings that +aren't strictly \s-1ASCII\s0 nor \s-1UTF\-8.\s0 It translates all or portions of the Perl +program script from a given encoding into \s-1UTF\-8,\s0 and changes the PerlIO layers +of \f(CW\*(C`STDIN\*(C'\fR and \f(CW\*(C`STDOUT\*(C'\fR to the encoding specified. +.PP +This pragma dates from the days when UTF\-8\-enabled editors were uncommon. But +that was long ago, and the need for it is greatly diminished. That, coupled +with the fact that it doesn't work with threads, along with other problems, +(see \*(L"\s-1BUGS\*(R"\s0) have led to its being deprecated. It is planned to remove this +pragma in a future Perl version. New code should be written in \s-1UTF\-8,\s0 and the +\&\f(CW\*(C`use utf8\*(C'\fR pragma used instead (see perluniintro and utf8 for details). +Old code should be converted to \s-1UTF\-8,\s0 via something like the recipe in the +\&\*(L"\s-1SYNOPSIS\*(R"\s0 (though this simple approach may require manual adjustments +afterwards). +.PP +If \s-1UTF\-8\s0 is not an option, it is recommended that one use a simple source +filter, such as that provided by Filter::Encoding on \s-1CPAN\s0 or this +pragma's own \f(CW\*(C`Filter\*(C'\fR option (see below). +.PP +The only legitimate use of this pragma is almost certainly just one per file, +near the top, with file scope, as the file is likely going to only be written +in one encoding. Further restrictions apply in Perls before v5.22 (see +\&\*(L"Prior to Perl v5.22\*(R"). +.PP +There are two basic modes of operation (plus turning if off): +.ie n .IP """use encoding [\*(Aq\fIENCNAME\fP\*(Aq] ;""" 4 +.el .IP "\f(CWuse encoding [\*(Aq\f(CIENCNAME\f(CW\*(Aq] ;\fR" 4 +.IX Item "use encoding [ENCNAME] ;" +Please note: This mode of operation is no longer supported as of Perl +v5.26. +.Sp +This is the normal operation. It translates various literals encountered in +the Perl source file from the encoding \fI\s-1ENCNAME\s0\fR into \s-1UTF\-8,\s0 and similarly +converts character code points. This is used when the script is a combination +of \s-1ASCII\s0 (for the variable names and punctuation, \fIetc\fR), but the literal +data is in the specified encoding. +.Sp +\&\fI\s-1ENCNAME\s0\fR is optional. If omitted, the encoding specified in the environment +variable \f(CW\*(C`PERL_ENCODING\*(C'\fR is used. If this isn't +set, or the resolved-to encoding is not known to \f(CW\*(C`Encode\*(C'\fR, the error +\&\f(CW\*(C`Unknown encoding \*(Aq\f(CIENCNAME\f(CW\*(Aq\*(C'\fR will be thrown. +.Sp +Starting in Perl v5.8.6 (\f(CW\*(C`Encode\*(C'\fR version 2.0.1), \fI\s-1ENCNAME\s0\fR may be the +name \f(CW\*(C`:locale\*(C'\fR. This is for very specialized applications, and is documented +in "The \f(CW\*(C`:locale\*(C'\fR sub-pragma" below. +.Sp +The literals that are converted are \f(CW\*(C`q//, qq//, qr//, qw///, qx//\*(C'\fR, and +starting in v5.8.1, \f(CW\*(C`tr///\*(C'\fR. Operations that do conversions include \f(CW\*(C`chr\*(C'\fR, +\&\f(CW\*(C`ord\*(C'\fR, \f(CW\*(C`utf8::upgrade\*(C'\fR (but not \f(CW\*(C`utf8::downgrade\*(C'\fR), and \f(CW\*(C`chomp\*(C'\fR. +.Sp +Also starting in v5.8.1, the \f(CW\*(C`DATA\*(C'\fR pseudo-filehandle is translated from the +encoding into \s-1UTF\-8.\s0 +.Sp +For example, you can write code in EUC-JP as follows: +.Sp +.Vb 3 +\& my $Rakuda = "\exF1\exD1\exF1\exCC"; # Camel in Kanji +\& #<\-char\-><\-char\-> # 4 octets +\& s/\ebCamel\eb/$Rakuda/; +.Ve +.Sp +And with \f(CW\*(C`use encoding "euc\-jp"\*(C'\fR in effect, it is the same thing as +that code in \s-1UTF\-8:\s0 +.Sp +.Vb 2 +\& my $Rakuda = "\ex{99F1}\ex{99DD}"; # two Unicode Characters +\& s/\ebCamel\eb/$Rakuda/; +.Ve +.Sp +See \*(L"\s-1EXAMPLE\*(R"\s0 below for a more complete example. +.Sp +Unless \f(CW\*(C`${^UNICODE}\*(C'\fR (available starting in v5.8.2) exists and is non-zero, the +PerlIO layers of \f(CW\*(C`STDIN\*(C'\fR and \f(CW\*(C`STDOUT\*(C'\fR are set to "\f(CW\*(C`:encoding(\f(CIENCNAME\f(CW)\*(C'\fR". +Therefore, +.Sp +.Vb 5 +\& use encoding "euc\-jp"; +\& my $message = "Camel is the symbol of perl.\en"; +\& my $Rakuda = "\exF1\exD1\exF1\exCC"; # Camel in Kanji +\& $message =~ s/\ebCamel\eb/$Rakuda/; +\& print $message; +.Ve +.Sp +will print +.Sp +.Vb 1 +\& "\exF1\exD1\exF1\exCC is the symbol of perl.\en" +.Ve +.Sp +not +.Sp +.Vb 1 +\& "\ex{99F1}\ex{99DD} is the symbol of perl.\en" +.Ve +.Sp +You can override this by giving extra arguments; see below. +.Sp +Note that \f(CW\*(C`STDERR\*(C'\fR \s-1WILL NOT\s0 be changed, regardless. +.Sp +Also note that non-STD file handles remain unaffected. Use \f(CW\*(C`use +open\*(C'\fR or \f(CW\*(C`binmode\*(C'\fR to change the layers of those. +.ie n .IP """use encoding \fIENCNAME\fP, Filter=>1;""" 4 +.el .IP "\f(CWuse encoding \f(CIENCNAME\f(CW, Filter=>1;\fR" 4 +.IX Item "use encoding ENCNAME, Filter=>1;" +This operates as above, but the \f(CW\*(C`Filter\*(C'\fR argument with a non-zero +value causes the entire script, and not just literals, to be translated from +the encoding into \s-1UTF\-8.\s0 This allows identifiers in the source to be in that +encoding as well. (Problems may occur if the encoding is not a superset of +\&\s-1ASCII\s0; imagine all your semi-colons being translated into something +different.) One can use this form to make +.Sp +.Vb 1 +\& ${"\ex{4eba}"}++ +.Ve +.Sp +work. (This is equivalent to \f(CW\*(C`$\f(CIhuman\f(CW++\*(C'\fR, where \fIhuman\fR is a single Han +ideograph). +.Sp +This effectively means that your source code behaves as if it were written in +\&\s-1UTF\-8\s0 with \f(CW\*(C`\*(Aquse utf8\*(C'\fR' in effect. So even if your editor only supports +Shift_JIS, for example, you can still try examples in Chapter 15 of +\&\f(CW\*(C`Programming Perl, 3rd Ed.\*(C'\fR. +.Sp +This option is significantly slower than the other one. +.ie n .IP """no encoding;""" 4 +.el .IP "\f(CWno encoding;\fR" 4 +.IX Item "no encoding;" +Unsets the script encoding. The layers of \f(CW\*(C`STDIN\*(C'\fR, \f(CW\*(C`STDOUT\*(C'\fR are +reset to "\f(CW\*(C`:raw\*(C'\fR" (the default unprocessed raw stream of bytes). +.SH "OPTIONS" +.IX Header "OPTIONS" +.ie n .SS "Setting ""STDIN"" and/or ""STDOUT"" individually" +.el .SS "Setting \f(CWSTDIN\fP and/or \f(CWSTDOUT\fP individually" +.IX Subsection "Setting STDIN and/or STDOUT individually" +The encodings of \f(CW\*(C`STDIN\*(C'\fR and \f(CW\*(C`STDOUT\*(C'\fR are individually settable by parameters to +the pragma: +.PP +.Vb 1 +\& use encoding \*(Aqeuc\-tw\*(Aq, STDIN => \*(Aqgreek\*(Aq ...; +.Ve +.PP +In this case, you cannot omit the first \fI\s-1ENCNAME\s0\fR. \f(CW\*(C`STDIN => undef\*(C'\fR +turns the I/O transcoding completely off for that filehandle. +.PP +When \f(CW\*(C`${^UNICODE}\*(C'\fR (available starting in v5.8.2) exists and is non-zero, +these options will be completely ignored. See "\f(CW\*(C`${^UNICODE}\*(C'\fR" in perlvar and +"\f(CW\*(C`\-C\*(C'\fR" in perlrun for details. +.ie n .SS "The "":locale"" sub-pragma" +.el .SS "The \f(CW:locale\fP sub-pragma" +.IX Subsection "The :locale sub-pragma" +Starting in v5.8.6, the encoding name may be \f(CW\*(C`:locale\*(C'\fR. This means that the +encoding is taken from the current locale, and not hard-coded by the pragma. +Since a script really can only be encoded in exactly one encoding, this option +is dangerous. It makes sense only if the script itself is written in \s-1ASCII,\s0 +and all the possible locales that will be in use when the script is executed +are supersets of \s-1ASCII.\s0 That means that the script itself doesn't get +changed, but the I/O handles have the specified encoding added, and the +operations like \f(CW\*(C`chr\*(C'\fR and \f(CW\*(C`ord\*(C'\fR use that encoding. +.PP +The logic of finding which locale \f(CW\*(C`:locale\*(C'\fR uses is as follows: +.IP "1." 4 +If the platform supports the \f(CW\*(C`langinfo(CODESET)\*(C'\fR interface, the codeset +returned is used as the default encoding for the open pragma. +.IP "2." 4 +If 1. didn't work but we are under the locale pragma, the environment +variables \f(CW\*(C`LC_ALL\*(C'\fR and \f(CW\*(C`LANG\*(C'\fR (in that order) are matched for encodings +(the part after "\f(CW\*(C`.\*(C'\fR", if any), and if any found, that is used +as the default encoding for the open pragma. +.IP "3." 4 +If 1. and 2. didn't work, the environment variables \f(CW\*(C`LC_ALL\*(C'\fR and \f(CW\*(C`LANG\*(C'\fR +(in that order) are matched for anything looking like \s-1UTF\-8,\s0 and if +any found, \f(CW\*(C`:utf8\*(C'\fR is used as the default encoding for the open +pragma. +.PP +If your locale environment variables (\f(CW\*(C`LC_ALL\*(C'\fR, \f(CW\*(C`LC_CTYPE\*(C'\fR, \f(CW\*(C`LANG\*(C'\fR) +contain the strings '\s-1UTF\-8\s0' or '\s-1UTF8\s0' (case-insensitive matching), +the default encoding of your \f(CW\*(C`STDIN\*(C'\fR, \f(CW\*(C`STDOUT\*(C'\fR, and \f(CW\*(C`STDERR\*(C'\fR, and of +\&\fBany subsequent file open\fR, is \s-1UTF\-8.\s0 +.SH "CAVEATS" +.IX Header "CAVEATS" +.SS "\s-1SIDE EFFECTS\s0" +.IX Subsection "SIDE EFFECTS" +.IP "\(bu" 4 +If the \f(CW\*(C`encoding\*(C'\fR pragma is in scope then the lengths returned are +calculated from the length of \f(CW$/\fR in Unicode characters, which is not +always the same as the length of \f(CW$/\fR in the native encoding. +.IP "\(bu" 4 +Without this pragma, if strings operating under byte semantics and strings +with Unicode character data are concatenated, the new string will +be created by decoding the byte strings as \fI\s-1ISO 8859\-1\s0 (Latin\-1)\fR. +.Sp +The \fBencoding\fR pragma changes this to use the specified encoding +instead. For example: +.Sp +.Vb 5 +\& use encoding \*(Aqutf8\*(Aq; +\& my $string = chr(20000); # a Unicode string +\& utf8::encode($string); # now it\*(Aqs a UTF\-8 encoded byte string +\& # concatenate with another Unicode string +\& print length($string . chr(20000)); +.Ve +.Sp +Will print \f(CW2\fR, because \f(CW$string\fR is upgraded as \s-1UTF\-8.\s0 Without +\&\f(CW\*(C`use encoding \*(Aqutf8\*(Aq;\*(C'\fR, it will print \f(CW4\fR instead, since \f(CW$string\fR +is three octets when interpreted as Latin\-1. +.SS "\s-1DO NOT MIX MULTIPLE ENCODINGS\s0" +.IX Subsection "DO NOT MIX MULTIPLE ENCODINGS" +Notice that only literals (string or regular expression) having only +legacy code points are affected: if you mix data like this +.PP +.Vb 2 +\& \ex{100}\exDF +\& \exDF\ex{100} +.Ve +.PP +the data is assumed to be in (Latin 1 and) Unicode, not in your native +encoding. In other words, this will match in \*(L"greek\*(R": +.PP +.Vb 1 +\& "\exDF" =~ /\ex{3af}/ +.Ve +.PP +but this will not +.PP +.Vb 1 +\& "\exDF\ex{100}" =~ /\ex{3af}\ex{100}/ +.Ve +.PP +since the \f(CW\*(C`\exDF\*(C'\fR (\s-1ISO 8859\-7 GREEK SMALL LETTER IOTA WITH TONOS\s0) on +the left will \fBnot\fR be upgraded to \f(CW\*(C`\ex{3af}\*(C'\fR (Unicode \s-1GREEK SMALL +LETTER IOTA WITH TONOS\s0) because of the \f(CW\*(C`\ex{100}\*(C'\fR on the left. You +should not be mixing your legacy data and Unicode in the same string. +.PP +This pragma also affects encoding of the 0x80..0xFF code point range: +normally characters in that range are left as eight-bit bytes (unless +they are combined with characters with code points 0x100 or larger, +in which case all characters need to become \s-1UTF\-8\s0 encoded), but if +the \f(CW\*(C`encoding\*(C'\fR pragma is present, even the 0x80..0xFF range always +gets \s-1UTF\-8\s0 encoded. +.PP +After all, the best thing about this pragma is that you don't have to +resort to \ex{....} just to spell your name in a native encoding. +So feel free to put your strings in your encoding in quotes and +regexes. +.SS "Prior to Perl v5.22" +.IX Subsection "Prior to Perl v5.22" +The pragma was a per script, not a per block lexical. Only the last +\&\f(CW\*(C`use encoding\*(C'\fR or \f(CW\*(C`no encoding\*(C'\fR mattered, and it affected +\&\fBthe whole script\fR. However, the \f(CW\*(C`no encoding\*(C'\fR pragma was supported and +\&\f(CW\*(C`use encoding\*(C'\fR could appear as many times as you want in a given script +(though only the last was effective). +.PP +Since the scope wasn't lexical, other modules' use of \f(CW\*(C`chr\*(C'\fR, \f(CW\*(C`ord\*(C'\fR, \fIetc.\fR +were affected. This leads to spooky, incorrect action at a distance that is +hard to debug. +.PP +This means you would have to be very careful of the load order: +.PP +.Vb 5 +\& # called module +\& package Module_IN_BAR; +\& use encoding "bar"; +\& # stuff in "bar" encoding here +\& 1; +\& +\& # caller script +\& use encoding "foo" +\& use Module_IN_BAR; +\& # surprise! use encoding "bar" is in effect. +.Ve +.PP +The best way to avoid this oddity is to use this pragma \s-1RIGHT AFTER\s0 +other modules are loaded. i.e. +.PP +.Vb 2 +\& use Module_IN_BAR; +\& use encoding "foo"; +.Ve +.SS "Prior to Encode version 1.87" +.IX Subsection "Prior to Encode version 1.87" +.IP "\(bu" 4 +\&\f(CW\*(C`STDIN\*(C'\fR and \f(CW\*(C`STDOUT\*(C'\fR were not set under the filter option. +And \f(CW\*(C`STDIN=>\f(CIENCODING\f(CW\*(C'\fR and \f(CW\*(C`STDOUT=>\f(CIENCODING\f(CW\*(C'\fR didn't work like +non-filter version. +.IP "\(bu" 4 +\&\f(CW\*(C`use utf8\*(C'\fR wasn't implicitly declared so you have to \f(CW\*(C`use utf8\*(C'\fR to do +.Sp +.Vb 1 +\& ${"\ex{4eba}"}++ +.Ve +.SS "Prior to Perl v5.8.1" +.IX Subsection "Prior to Perl v5.8.1" +.ie n .IP """NON-EUC"" doublebyte encodings" 4 +.el .IP "``NON-EUC'' doublebyte encodings" 4 +.IX Item "NON-EUC doublebyte encodings" +Because perl needs to parse the script before applying this pragma, such +encodings as Shift_JIS and Big\-5 that may contain \f(CW\*(Aq\e\*(Aq\fR (\s-1BACKSLASH\s0; +\&\f(CW\*(C`\ex5c\*(C'\fR) in the second byte fail because the second byte may +accidentally escape the quoting character that follows. +.ie n .IP """tr///""" 4 +.el .IP "\f(CWtr///\fR" 4 +.IX Item "tr///" +The \fBencoding\fR pragma works by decoding string literals in +\&\f(CW\*(C`q//,qq//,qr//,qw///, qx//\*(C'\fR and so forth. In perl v5.8.0, this +does not apply to \f(CW\*(C`tr///\*(C'\fR. Therefore, +.Sp +.Vb 4 +\& use encoding \*(Aqeuc\-jp\*(Aq; +\& #.... +\& $kana =~ tr/\exA4\exA1\-\exA4\exF3/\exA5\exA1\-\exA5\exF3/; +\& # \-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- +.Ve +.Sp +Does not work as +.Sp +.Vb 1 +\& $kana =~ tr/\ex{3041}\-\ex{3093}/\ex{30a1}\-\ex{30f3}/; +.Ve +.RS 4 +.IP "Legend of characters above" 4 +.IX Item "Legend of characters above" +.Vb 6 +\& utf8 euc\-jp charnames::viacode() +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& \ex{3041} \exA4\exA1 HIRAGANA LETTER SMALL A +\& \ex{3093} \exA4\exF3 HIRAGANA LETTER N +\& \ex{30a1} \exA5\exA1 KATAKANA LETTER SMALL A +\& \ex{30f3} \exA5\exF3 KATAKANA LETTER N +.Ve +.RE +.RS 4 +.Sp +This counterintuitive behavior has been fixed in perl v5.8.1. +.Sp +In perl v5.8.0, you can work around this as follows; +.Sp +.Vb 3 +\& use encoding \*(Aqeuc\-jp\*(Aq; +\& # .... +\& eval qq{ \e$kana =~ tr/\exA4\exA1\-\exA4\exF3/\exA5\exA1\-\exA5\exF3/ }; +.Ve +.Sp +Note the \f(CW\*(C`tr//\*(C'\fR expression is surrounded by \f(CW\*(C`qq{}\*(C'\fR. The idea behind +this is the same as the classic idiom that makes \f(CW\*(C`tr///\*(C'\fR 'interpolate': +.Sp +.Vb 2 +\& tr/$from/$to/; # wrong! +\& eval qq{ tr/$from/$to/ }; # workaround. +.Ve +.RE +.SH "EXAMPLE \- Greekperl" +.IX Header "EXAMPLE - Greekperl" +.Vb 1 +\& use encoding "iso 8859\-7"; +\& +\& # \exDF in ISO 8859\-7 (Greek) is \ex{3af} in Unicode. +\& +\& $a = "\exDF"; +\& $b = "\ex{100}"; +\& +\& printf "%#x\en", ord($a); # will print 0x3af, not 0xdf +\& +\& $c = $a . $b; +\& +\& # $c will be "\ex{3af}\ex{100}", not "\ex{df}\ex{100}". +\& +\& # chr() is affected, and ... +\& +\& print "mega\en" if ord(chr(0xdf)) == 0x3af; +\& +\& # ... ord() is affected by the encoding pragma ... +\& +\& print "tera\en" if ord(pack("C", 0xdf)) == 0x3af; +\& +\& # ... as are eq and cmp ... +\& +\& print "peta\en" if "\ex{3af}" eq pack("C", 0xdf); +\& print "exa\en" if "\ex{3af}" cmp pack("C", 0xdf) == 0; +\& +\& # ... but pack/unpack C are not affected, in case you still +\& # want to go back to your native encoding +\& +\& print "zetta\en" if unpack("C", (pack("C", 0xdf))) == 0xdf; +.Ve +.SH "BUGS" +.IX Header "BUGS" +.IP "Thread safety" 4 +.IX Item "Thread safety" +\&\f(CW\*(C`use encoding ...\*(C'\fR is not thread-safe (i.e., do not use in threaded +applications). +.IP "Can't be used by more than one module in a single program." 4 +.IX Item "Can't be used by more than one module in a single program." +Only one encoding is allowed. If you combine modules in a program that have +different encodings, only one will be actually used. +.ie n .IP "Other modules using ""STDIN"" and ""STDOUT"" get the encoded stream" 4 +.el .IP "Other modules using \f(CWSTDIN\fR and \f(CWSTDOUT\fR get the encoded stream" 4 +.IX Item "Other modules using STDIN and STDOUT get the encoded stream" +They may be expecting something completely different. +.IP "literals in regex that are longer than 127 bytes" 4 +.IX Item "literals in regex that are longer than 127 bytes" +For native multibyte encodings (either fixed or variable length), +the current implementation of the regular expressions may introduce +recoding errors for regular expression literals longer than 127 bytes. +.IP "\s-1EBCDIC\s0" 4 +.IX Item "EBCDIC" +The encoding pragma is not supported on \s-1EBCDIC\s0 platforms. +.ie n .IP """format""" 4 +.el .IP "\f(CWformat\fR" 4 +.IX Item "format" +This pragma doesn't work well with \f(CW\*(C`format\*(C'\fR because PerlIO does not +get along very well with it. When \f(CW\*(C`format\*(C'\fR contains non-ASCII +characters it prints funny or gets \*(L"wide character warnings\*(R". +To understand it, try the code below. +.Sp +.Vb 11 +\& # Save this one in utf8 +\& # replace *non\-ascii* with a non\-ascii string +\& my $camel; +\& format STDOUT = +\& *non\-ascii*@>>>>>>> +\& $camel +\& . +\& $camel = "*non\-ascii*"; +\& binmode(STDOUT=>\*(Aq:encoding(utf8)\*(Aq); # bang! +\& write; # funny +\& print $camel, "\en"; # fine +.Ve +.Sp +Without binmode this happens to work but without binmode, \fBprint()\fR +fails instead of \fBwrite()\fR. +.Sp +At any rate, the very use of \f(CW\*(C`format\*(C'\fR is questionable when it comes to +unicode characters since you have to consider such things as character +width (i.e. double-width for ideographs) and directions (i.e. \s-1BIDI\s0 for +Arabic and Hebrew). +.ie n .IP "See also ""\s-1CAVEATS""\s0" 4 +.el .IP "See also ``\s-1CAVEATS''\s0" 4 +.IX Item "See also CAVEATS" +.SH "HISTORY" +.IX Header "HISTORY" +This pragma first appeared in Perl v5.8.0. It has been enhanced in later +releases as specified above. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlunicode, Encode, open, Filter::Util::Call, +.PP +Ch. 15 of \f(CW\*(C`Programming Perl (3rd Edition)\*(C'\fR +by Larry Wall, Tom Christiansen, Jon Orwant; +O'Reilly & Associates; \s-1ISBN 0\-596\-00027\-8\s0 diff --git a/data/miniconda3/man/man3/experimental.3 b/data/miniconda3/man/man3/experimental.3 new file mode 100644 index 0000000000000000000000000000000000000000..0fd8266cdf269047be81be3b5cf2c6a481fce11d --- /dev/null +++ b/data/miniconda3/man/man3/experimental.3 @@ -0,0 +1,275 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "experimental 3" +.TH experimental 3 "2020-12-18" "perl v5.32.1" "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" +experimental \- Experimental features made easy +.SH "VERSION" +.IX Header "VERSION" +version 0.020 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use experimental \*(Aqlexical_subs\*(Aq, \*(Aqsmartmatch\*(Aq; +\& my sub foo { $_[0] ~~ 1 } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma provides an easy and convenient way to enable or disable +experimental features. +.PP +Every version of perl has some number of features present but considered +\&\*(L"experimental.\*(R" For much of the life of Perl 5, this was only a designation +found in the documentation. Starting in Perl v5.10.0, and more aggressively in +v5.18.0, experimental features were placed behind pragmata used to enable the +feature and disable associated warnings. +.PP +The \f(CW\*(C`experimental\*(C'\fR pragma exists to combine the required incantations into a +single interface stable across releases of perl. For every experimental +feature, this should enable the feature and silence warnings for the enclosing +lexical scope: +.PP +.Vb 1 +\& use experimental \*(Aqfeature\-name\*(Aq; +.Ve +.PP +To disable the feature and, if applicable, re-enable any warnings, use: +.PP +.Vb 1 +\& no experimental \*(Aqfeature\-name\*(Aq; +.Ve +.PP +The supported features, documented further below, are: +.IP "\(bu" 4 +\&\f(CW\*(C`array_base\*(C'\fR \- allow the use of \f(CW$[\fR to change the starting index of \f(CW@array\fR. +.Sp +This is supported on all versions of perl. +.IP "\(bu" 4 +\&\f(CW\*(C`autoderef\*(C'\fR \- allow push, each, keys, and other built-ins on references. +.Sp +This was added in perl 5.14.0 and removed in perl 5.23.1. +.IP "\(bu" 4 +\&\f(CW\*(C`bitwise\*(C'\fR \- allow the new stringwise bit operators +.Sp +This was added in perl 5.22.0. +.IP "\(bu" 4 +\&\f(CW\*(C`const_attr\*(C'\fR \- allow the :const attribute on subs +.Sp +This was added in perl 5.22.0. +.IP "\(bu" 4 +\&\f(CW\*(C`lexical_topic\*(C'\fR \- allow the use of lexical \f(CW$_\fR via \f(CW\*(C`my $_\*(C'\fR. +.Sp +This was added in perl 5.10.0 and removed in perl 5.23.4. +.IP "\(bu" 4 +\&\f(CW\*(C`lexical_subs\*(C'\fR \- allow the use of lexical subroutines. +.Sp +This was added in 5.18.0. +.IP "\(bu" 4 +\&\f(CW\*(C`postderef\*(C'\fR \- allow the use of postfix dereferencing expressions, +including in interpolating strings +.Sp +This was added in perl 5.20.0. +.IP "\(bu" 4 +\&\f(CW\*(C`re_strict\*(C'\fR \- enables strict mode in regular expressions +.Sp +This was added in perl 5.22.0. +.IP "\(bu" 4 +\&\f(CW\*(C`refaliasing\*(C'\fR \- allow aliasing via \f(CW\*(C`\e$x = \e$y\*(C'\fR +.Sp +This was added in perl 5.22.0. +.IP "\(bu" 4 +\&\f(CW\*(C`regex_sets\*(C'\fR \- allow extended bracketed character classes in regexps +.Sp +This was added in perl 5.18.0. +.IP "\(bu" 4 +\&\f(CW\*(C`signatures\*(C'\fR \- allow subroutine signatures (for named arguments) +.Sp +This was added in perl 5.20.0. +.IP "\(bu" 4 +\&\f(CW\*(C`smartmatch\*(C'\fR \- allow the use of \f(CW\*(C`~~\*(C'\fR +.Sp +This was added in perl 5.10.0, but it should be noted there are significant +incompatibilities between 5.10.0 and 5.10.1. +.IP "\(bu" 4 +\&\f(CW\*(C`switch\*(C'\fR \- allow the use of \f(CW\*(C`~~\*(C'\fR, given, and when +.Sp +This was added in perl 5.10.0. +.IP "\(bu" 4 +\&\f(CW\*(C`win32_perlio\*(C'\fR \- allows the use of the :win32 \s-1IO\s0 layer. +.Sp +This was added on perl 5.22.0. +.SS "Ordering matters" +.IX Subsection "Ordering matters" +Using this pragma to 'enable an experimental feature' is another way of saying +that this pragma will disable the warnings which would result from using that +feature. Therefore, the order in which pragmas are applied is important. In +particular, you probably want to enable experimental features \fIafter\fR you +enable warnings: +.PP +.Vb 2 +\& use warnings; +\& use experimental \*(Aqsmartmatch\*(Aq; +.Ve +.PP +You also need to take care with modules that enable warnings for you. A common +example being Moose. In this example, warnings for the 'smartmatch' feature are +first turned on by the warnings pragma, off by the experimental pragma and back +on again by the Moose module (fix is to switch the last two lines): +.PP +.Vb 3 +\& use warnings; +\& use experimental \*(Aqsmartmatch\*(Aq; +\& use Moose; +.Ve +.SS "Disclaimer" +.IX Subsection "Disclaimer" +Because of the nature of the features it enables, forward compatibility can not +be guaranteed in any way. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlexperimental contains more information about experimental features. +.SH "AUTHOR" +.IX Header "AUTHOR" +Leon Timmermans +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2013 by Leon Timmermans. +.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. diff --git a/data/miniconda3/man/man3/feature.3 b/data/miniconda3/man/man3/feature.3 new file mode 100644 index 0000000000000000000000000000000000000000..5cc6ad7ab33ad889259ecbd2f4640cd45f43c4b0 --- /dev/null +++ b/data/miniconda3/man/man3/feature.3 @@ -0,0 +1,553 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "feature 3" +.TH feature 3 "2020-12-18" "perl v5.32.1" "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" +feature \- Perl pragma to enable new features +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 8 +\& use feature qw(say switch); +\& given ($foo) { +\& when (1) { say "\e$foo == 1" } +\& when ([2,3]) { say "\e$foo == 2 || \e$foo == 3" } +\& when (/^a[bc]d$/) { say "\e$foo eq \*(Aqabd\*(Aq || \e$foo eq \*(Aqacd\*(Aq" } +\& when ($_ > 100) { say "\e$foo > 100" } +\& default { say "None of the above" } +\& } +\& +\& use feature \*(Aq:5.10\*(Aq; # loads all features available in perl 5.10 +\& +\& use v5.10; # implicitly loads :5.10 feature bundle +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +It is usually impossible to add new syntax to Perl without breaking +some existing programs. This pragma provides a way to minimize that +risk. New syntactic constructs, or new semantic meanings to older +constructs, can be enabled by \f(CW\*(C`use feature \*(Aqfoo\*(Aq\*(C'\fR, and will be parsed +only when the appropriate feature pragma is in scope. (Nevertheless, the +\&\f(CW\*(C`CORE::\*(C'\fR prefix provides access to all Perl keywords, regardless of this +pragma.) +.SS "Lexical effect" +.IX Subsection "Lexical effect" +Like other pragmas (\f(CW\*(C`use strict\*(C'\fR, for example), features have a lexical +effect. \f(CW\*(C`use feature qw(foo)\*(C'\fR will only make the feature \*(L"foo\*(R" available +from that point to the end of the enclosing block. +.PP +.Vb 5 +\& { +\& use feature \*(Aqsay\*(Aq; +\& say "say is available here"; +\& } +\& print "But not here.\en"; +.Ve +.ie n .SS """no feature""" +.el .SS "\f(CWno feature\fP" +.IX Subsection "no feature" +Features can also be turned off by using \f(CW\*(C`no feature "foo"\*(C'\fR. This too +has lexical effect. +.PP +.Vb 7 +\& use feature \*(Aqsay\*(Aq; +\& say "say is available here"; +\& { +\& no feature \*(Aqsay\*(Aq; +\& print "But not here.\en"; +\& } +\& say "Yet it is here."; +.Ve +.PP +\&\f(CW\*(C`no feature\*(C'\fR with no features specified will reset to the default group. To +disable \fIall\fR features (an unusual request!) use \f(CW\*(C`no feature \*(Aq:all\*(Aq\*(C'\fR. +.SH "AVAILABLE FEATURES" +.IX Header "AVAILABLE FEATURES" +.SS "The 'say' feature" +.IX Subsection "The 'say' feature" +\&\f(CW\*(C`use feature \*(Aqsay\*(Aq\*(C'\fR tells the compiler to enable the Perl 6 style +\&\f(CW\*(C`say\*(C'\fR function. +.PP +See \*(L"say\*(R" in perlfunc for details. +.PP +This feature is available starting with Perl 5.10. +.SS "The 'state' feature" +.IX Subsection "The 'state' feature" +\&\f(CW\*(C`use feature \*(Aqstate\*(Aq\*(C'\fR tells the compiler to enable \f(CW\*(C`state\*(C'\fR +variables. +.PP +See \*(L"Persistent Private Variables\*(R" in perlsub for details. +.PP +This feature is available starting with Perl 5.10. +.SS "The 'switch' feature" +.IX Subsection "The 'switch' feature" +\&\fB\s-1WARNING\s0\fR: Because the smartmatch operator is +experimental, Perl will warn when you use this feature, unless you have +explicitly disabled the warning: +.PP +.Vb 1 +\& no warnings "experimental::smartmatch"; +.Ve +.PP +\&\f(CW\*(C`use feature \*(Aqswitch\*(Aq\*(C'\fR tells the compiler to enable the Perl 6 +given/when construct. +.PP +See \*(L"Switch Statements\*(R" in perlsyn for details. +.PP +This feature is available starting with Perl 5.10. +.SS "The 'unicode_strings' feature" +.IX Subsection "The 'unicode_strings' feature" +\&\f(CW\*(C`use feature \*(Aqunicode_strings\*(Aq\*(C'\fR tells the compiler to use Unicode rules +in all string operations executed within its scope (unless they are also +within the scope of either \f(CW\*(C`use locale\*(C'\fR or \f(CW\*(C`use bytes\*(C'\fR). The same applies +to all regular expressions compiled within the scope, even if executed outside +it. It does not change the internal representation of strings, but only how +they are interpreted. +.PP +\&\f(CW\*(C`no feature \*(Aqunicode_strings\*(Aq\*(C'\fR tells the compiler to use the traditional +Perl rules wherein the native character set rules is used unless it is +clear to Perl that Unicode is desired. This can lead to some surprises +when the behavior suddenly changes. (See +\&\*(L"The \*(R"Unicode Bug"" in perlunicode for details.) For this reason, if you are +potentially using Unicode in your program, the +\&\f(CW\*(C`use feature \*(Aqunicode_strings\*(Aq\*(C'\fR subpragma is \fBstrongly\fR recommended. +.PP +This feature is available starting with Perl 5.12; was almost fully +implemented in Perl 5.14; and extended in Perl 5.16 to cover \f(CW\*(C`quotemeta\*(C'\fR; +was extended further in Perl 5.26 to cover the range +operator; and was extended again in Perl 5.28 to +cover special-cased whitespace splitting. +.SS "The 'unicode_eval' and 'evalbytes' features" +.IX Subsection "The 'unicode_eval' and 'evalbytes' features" +Together, these two features are intended to replace the legacy string +\&\f(CW\*(C`eval\*(C'\fR function, which behaves problematically in some instances. They are +available starting with Perl 5.16, and are enabled by default by a +\&\f(CW\*(C`use\ 5.16\*(C'\fR or higher declaration. +.PP +\&\f(CW\*(C`unicode_eval\*(C'\fR changes the behavior of plain string \f(CW\*(C`eval\*(C'\fR to work more +consistently, especially in the Unicode world. Certain (mis)behaviors +couldn't be changed without breaking some things that had come to rely on +them, so the feature can be enabled and disabled. Details are at +\&\*(L"Under the \*(R"unicode_eval\*(L" feature\*(R" in perlfunc. +.PP +\&\f(CW\*(C`evalbytes\*(C'\fR is like string \f(CW\*(C`eval\*(C'\fR, but operating on a byte stream that is +not \s-1UTF\-8\s0 encoded. Details are at \*(L"evalbytes \s-1EXPR\*(R"\s0 in perlfunc. Without a +\&\f(CW\*(C`use\ feature\ \*(Aqevalbytes\*(Aq\*(C'\fR nor a \f(CW\*(C`use\ v5.16\*(C'\fR (or higher) declaration in +the current scope, you can still access it by instead writing +\&\f(CW\*(C`CORE::evalbytes\*(C'\fR. +.SS "The 'current_sub' feature" +.IX Subsection "The 'current_sub' feature" +This provides the \f(CW\*(C`_\|_SUB_\|_\*(C'\fR token that returns a reference to the current +subroutine or \f(CW\*(C`undef\*(C'\fR outside of a subroutine. +.PP +This feature is available starting with Perl 5.16. +.SS "The 'array_base' feature" +.IX Subsection "The 'array_base' feature" +This feature supported the legacy \f(CW$[\fR variable. See \*(L"$[\*(R" in perlvar. +It was on by default but disabled under \f(CW\*(C`use v5.16\*(C'\fR (see +\&\*(L"\s-1IMPLICIT LOADING\*(R"\s0, below) and unavailable since perl 5.30. +.PP +This feature is available under this name starting with Perl 5.16. In +previous versions, it was simply on all the time, and this pragma knew +nothing about it. +.SS "The 'fc' feature" +.IX Subsection "The 'fc' feature" +\&\f(CW\*(C`use feature \*(Aqfc\*(Aq\*(C'\fR tells the compiler to enable the \f(CW\*(C`fc\*(C'\fR function, +which implements Unicode casefolding. +.PP +See \*(L"fc\*(R" in perlfunc for details. +.PP +This feature is available from Perl 5.16 onwards. +.SS "The 'lexical_subs' feature" +.IX Subsection "The 'lexical_subs' feature" +In Perl versions prior to 5.26, this feature enabled +declaration of subroutines via \f(CW\*(C`my sub foo\*(C'\fR, \f(CW\*(C`state sub foo\*(C'\fR +and \f(CW\*(C`our sub foo\*(C'\fR syntax. See \*(L"Lexical Subroutines\*(R" in perlsub for details. +.PP +This feature is available from Perl 5.18 onwards. From Perl 5.18 to 5.24, +it was classed as experimental, and Perl emitted a warning for its +usage, except when explicitly disabled: +.PP +.Vb 1 +\& no warnings "experimental::lexical_subs"; +.Ve +.PP +As of Perl 5.26, use of this feature no longer triggers a warning, though +the \f(CW\*(C`experimental::lexical_subs\*(C'\fR warning category still exists (for +compatibility with code that disables it). In addition, this syntax is +not only no longer experimental, but it is enabled for all Perl code, +regardless of what feature declarations are in scope. +.SS "The 'postderef' and 'postderef_qq' features" +.IX Subsection "The 'postderef' and 'postderef_qq' features" +The 'postderef_qq' feature extends the applicability of postfix +dereference syntax so that postfix array +and scalar dereference are available in double-quotish interpolations. For +example, it makes the following two statements equivalent: +.PP +.Vb 2 +\& my $s = "[@{ $h\->{a} }]"; +\& my $s = "[$h\->{a}\->@*]"; +.Ve +.PP +This feature is available from Perl 5.20 onwards. In Perl 5.20 and 5.22, it +was classed as experimental, and Perl emitted a warning for its +usage, except when explicitly disabled: +.PP +.Vb 1 +\& no warnings "experimental::postderef"; +.Ve +.PP +As of Perl 5.24, use of this feature no longer triggers a warning, though +the \f(CW\*(C`experimental::postderef\*(C'\fR warning category still exists (for +compatibility with code that disables it). +.PP +The 'postderef' feature was used in Perl 5.20 and Perl 5.22 to enable +postfix dereference syntax outside double-quotish interpolations. In those +versions, using it triggered the \f(CW\*(C`experimental::postderef\*(C'\fR warning in the +same way as the 'postderef_qq' feature did. As of Perl 5.24, this syntax is +not only no longer experimental, but it is enabled for all Perl code, +regardless of what feature declarations are in scope. +.SS "The 'signatures' feature" +.IX Subsection "The 'signatures' feature" +\&\fB\s-1WARNING\s0\fR: This feature is still experimental and the implementation may +change in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the +warning: +.PP +.Vb 1 +\& no warnings "experimental::signatures"; +.Ve +.PP +This enables unpacking of subroutine arguments into lexical variables +by syntax such as +.PP +.Vb 3 +\& sub foo ($left, $right) { +\& return $left + $right; +\& } +.Ve +.PP +See \*(L"Signatures\*(R" in perlsub for details. +.PP +This feature is available from Perl 5.20 onwards. +.SS "The 'refaliasing' feature" +.IX Subsection "The 'refaliasing' feature" +\&\fB\s-1WARNING\s0\fR: This feature is still experimental and the implementation may +change in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the +warning: +.PP +.Vb 1 +\& no warnings "experimental::refaliasing"; +.Ve +.PP +This enables aliasing via assignment to references: +.PP +.Vb 7 +\& \e$a = \e$b; # $a and $b now point to the same scalar +\& \e@a = \e@b; # to the same array +\& \e%a = \e%b; +\& \e&a = \e&b; +\& foreach \e%hash (@array_of_hash_refs) { +\& ... +\& } +.Ve +.PP +See \*(L"Assigning to References\*(R" in perlref for details. +.PP +This feature is available from Perl 5.22 onwards. +.SS "The 'bitwise' feature" +.IX Subsection "The 'bitwise' feature" +This makes the four standard bitwise operators (\f(CW\*(C`& | ^ ~\*(C'\fR) treat their +operands consistently as numbers, and introduces four new dotted operators +(\f(CW\*(C`&. |. ^. ~.\*(C'\fR) that treat their operands consistently as strings. The +same applies to the assignment variants (\f(CW\*(C`&= |= ^= &.= |.= ^.=\*(C'\fR). +.PP +See \*(L"Bitwise String Operators\*(R" in perlop for details. +.PP +This feature is available from Perl 5.22 onwards. Starting in Perl 5.28, +\&\f(CW\*(C`use v5.28\*(C'\fR will enable the feature. Before 5.28, it was still +experimental and would emit a warning in the \*(L"experimental::bitwise\*(R" +category. +.SS "The 'declared_refs' feature" +.IX Subsection "The 'declared_refs' feature" +\&\fB\s-1WARNING\s0\fR: This feature is still experimental and the implementation may +change in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the +warning: +.PP +.Vb 1 +\& no warnings "experimental::declared_refs"; +.Ve +.PP +This allows a reference to a variable to be declared with \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`state\*(C'\fR, +our \f(CW\*(C`our\*(C'\fR, or localized with \f(CW\*(C`local\*(C'\fR. It is intended mainly for use in +conjunction with the \*(L"refaliasing\*(R" feature. See \*(L"Declaring a +Reference to a Variable\*(R" in perlref for examples. +.PP +This feature is available from Perl 5.26 onwards. +.SS "The 'isa' feature" +.IX Subsection "The 'isa' feature" +This allows the use of the \f(CW\*(C`isa\*(C'\fR infix operator, which tests whether the +scalar given by the left operand is an object of the class given by the +right operand. See \*(L"Class Instance Operator\*(R" in perlop for more details. +.PP +This feature is available from Perl 5.32 onwards. +.SS "The 'indirect' feature" +.IX Subsection "The 'indirect' feature" +This feature allows the use of indirect object +syntax for method calls, e.g. \f(CW\*(C`new +Foo 1, 2;\*(C'\fR. It is enabled by default, but can be turned off to +disallow indirect object syntax. +.PP +This feature is available under this name from Perl 5.32 onwards. In +previous versions, it was simply on all the time. To disallow (or +warn on) indirect object syntax on older Perls, see the indirect +\&\s-1CPAN\s0 module. +.SH "FEATURE BUNDLES" +.IX Header "FEATURE BUNDLES" +It's possible to load multiple features together, using +a \fIfeature bundle\fR. The name of a feature bundle is prefixed with +a colon, to distinguish it from an actual feature. +.PP +.Vb 1 +\& use feature ":5.10"; +.Ve +.PP +The following feature bundles are available: +.PP +.Vb 3 +\& bundle features included +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& :default indirect +\& +\& :5.10 say state switch indirect +\& +\& :5.12 say state switch unicode_strings indirect +\& +\& :5.14 say state switch unicode_strings indirect +\& +\& :5.16 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& indirect +\& +\& :5.18 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& indirect +\& +\& :5.20 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& indirect +\& +\& :5.22 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& indirect +\& +\& :5.24 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& postderef_qq indirect +\& +\& :5.26 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& postderef_qq indirect +\& +\& :5.28 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& postderef_qq bitwise indirect +\& +\& :5.30 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& postderef_qq bitwise indirect +\& +\& :5.32 say state switch unicode_strings +\& unicode_eval evalbytes current_sub fc +\& postderef_qq bitwise indirect +.Ve +.PP +The \f(CW\*(C`:default\*(C'\fR bundle represents the feature set that is enabled before +any \f(CW\*(C`use feature\*(C'\fR or \f(CW\*(C`no feature\*(C'\fR declaration. +.PP +Specifying sub-versions such as the \f(CW0\fR in \f(CW5.14.0\fR in feature bundles has +no effect. Feature bundles are guaranteed to be the same for all sub-versions. +.PP +.Vb 2 +\& use feature ":5.14.0"; # same as ":5.14" +\& use feature ":5.14.1"; # same as ":5.14" +.Ve +.SH "IMPLICIT LOADING" +.IX Header "IMPLICIT LOADING" +Instead of loading feature bundles by name, it is easier to let Perl do +implicit loading of a feature bundle for you. +.PP +There are two ways to load the \f(CW\*(C`feature\*(C'\fR pragma implicitly: +.IP "\(bu" 4 +By using the \f(CW\*(C`\-E\*(C'\fR switch on the Perl command-line instead of \f(CW\*(C`\-e\*(C'\fR. +That will enable the feature bundle for that version of Perl in the +main compilation unit (that is, the one-liner that follows \f(CW\*(C`\-E\*(C'\fR). +.IP "\(bu" 4 +By explicitly requiring a minimum Perl version number for your program, with +the \f(CW\*(C`use VERSION\*(C'\fR construct. That is, +.Sp +.Vb 1 +\& use v5.10.0; +.Ve +.Sp +will do an implicit +.Sp +.Vb 2 +\& no feature \*(Aq:all\*(Aq; +\& use feature \*(Aq:5.10\*(Aq; +.Ve +.Sp +and so on. Note how the trailing sub-version +is automatically stripped from the +version. +.Sp +But to avoid portability warnings (see \*(L"use\*(R" in perlfunc), you may prefer: +.Sp +.Vb 1 +\& use 5.010; +.Ve +.Sp +with the same effect. +.Sp +If the required version is older than Perl 5.10, the \*(L":default\*(R" feature +bundle is automatically loaded instead. +.Sp +Unlike \f(CW\*(C`use feature ":5.12"\*(C'\fR, saying \f(CW\*(C`use v5.12\*(C'\fR (or any higher version) +also does the equivalent of \f(CW\*(C`use strict\*(C'\fR; see \*(L"use\*(R" in perlfunc for details. diff --git a/data/miniconda3/man/man3/fields.3 b/data/miniconda3/man/man3/fields.3 new file mode 100644 index 0000000000000000000000000000000000000000..09f4bde0d1c7bef0d786ac8ed356476701e82733 --- /dev/null +++ b/data/miniconda3/man/man3/fields.3 @@ -0,0 +1,276 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "fields 3" +.TH fields 3 "2020-12-18" "perl v5.32.1" "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" +fields \- compile\-time class fields +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 10 +\& { +\& package Foo; +\& use fields qw(foo bar _Foo_private); +\& sub new { +\& my Foo $self = shift; +\& unless (ref $self) { +\& $self = fields::new($self); +\& $self\->{_Foo_private} = "this is Foo\*(Aqs secret"; +\& } +\& $self\->{foo} = 10; +\& $self\->{bar} = 20; +\& return $self; +\& } +\& } +\& +\& my $var = Foo\->new; +\& $var\->{foo} = 42; +\& +\& # this will generate a run\-time error +\& $var\->{zap} = 42; +\& +\& # this will generate a compile\-time error +\& my Foo $foo = Foo\->new; +\& $foo\->{zap} = 24; +\& +\& # subclassing +\& { +\& package Bar; +\& use base \*(AqFoo\*(Aq; +\& use fields qw(baz _Bar_private); # not shared with Foo +\& sub new { +\& my $class = shift; +\& my $self = fields::new($class); +\& $self\->SUPER::new(); # init base fields +\& $self\->{baz} = 10; # init own fields +\& $self\->{_Bar_private} = "this is Bar\*(Aqs secret"; +\& return $self; +\& } +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`fields\*(C'\fR pragma enables compile-time and run-time verified class +fields. +.PP +\&\s-1NOTE:\s0 The current implementation keeps the declared fields in the \f(CW%FIELDS\fR +hash of the calling package, but this may change in future versions. +Do \fBnot\fR update the \f(CW%FIELDS\fR hash directly, because it must be created +at compile-time for it to be fully useful, as is done by this pragma. +.PP +If a typed lexical variable (\f(CW\*(C`my Class +$var\*(C'\fR) holding a reference is used to access a +hash element and a package with the same name as the type has +declared class fields using this pragma, then the hash key is +verified at compile time. If the variables are not typed, access is +only checked at run time. +.PP +The related \f(CW\*(C`base\*(C'\fR pragma will combine fields from base classes and any +fields declared using the \f(CW\*(C`fields\*(C'\fR pragma. This enables field +inheritance to work properly. Inherited fields can be overridden but +will generate a warning if warnings are enabled. +.PP +\&\fBOnly valid for Perl 5.8.x and earlier:\fR Field names that start with an +underscore character are made private to the class and are not visible +to subclasses. +.PP +Also, \fBin Perl 5.8.x and earlier\fR, this pragma uses pseudo-hashes, the +effect being that you can have objects with named fields which are as +compact and as fast arrays to access, as long as the objects are +accessed through properly typed variables. +.PP +The following functions are supported: +.IP "new" 4 +.IX Item "new" +\&\fBfields::new()\fR creates and blesses a hash comprised of the fields declared +using the \f(CW\*(C`fields\*(C'\fR pragma into the specified class. It is the +recommended way to construct a fields-based object. +.Sp +This makes it possible to write a constructor like this: +.Sp +.Vb 2 +\& package Critter::Sounds; +\& use fields qw(cat dog bird); +\& +\& sub new { +\& my $self = shift; +\& $self = fields::new($self) unless ref $self; +\& $self\->{cat} = \*(Aqmeow\*(Aq; # scalar element +\& @$self{\*(Aqdog\*(Aq,\*(Aqbird\*(Aq} = (\*(Aqbark\*(Aq,\*(Aqtweet\*(Aq); # slice +\& return $self; +\& } +.Ve +.IP "phash" 4 +.IX Item "phash" +\&\fBThis function only works in Perl 5.8.x and earlier.\fR Pseudo-hashes +were removed from Perl as of 5.10. Consider using restricted hashes or +\&\fBfields::new()\fR instead (which itself uses restricted hashes under 5.10+). +See Hash::Util. Using \fBfields::phash()\fR under 5.10 or higher will +cause an error. +.Sp +\&\fBfields::phash()\fR can be used to create and initialize a plain (unblessed) +pseudo-hash. This function should always be used instead of creating +pseudo-hashes directly. +.Sp +If the first argument is a reference to an array, the pseudo-hash will +be created with keys from that array. If a second argument is supplied, +it must also be a reference to an array whose elements will be used as +the values. If the second array contains less elements than the first, +the trailing elements of the pseudo-hash will not be initialized. +This makes it particularly useful for creating a pseudo-hash from +subroutine arguments: +.Sp +.Vb 3 +\& sub dogtag { +\& my $tag = fields::phash([qw(name rank ser_num)], [@_]); +\& } +.Ve +.Sp +\&\fBfields::phash()\fR also accepts a list of key-value pairs that will +be used to construct the pseudo hash. Examples: +.Sp +.Vb 3 +\& my $tag = fields::phash(name => "Joe", +\& rank => "captain", +\& ser_num => 42); +\& +\& my $pseudohash = fields::phash(%args); +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +base, Hash::Util diff --git a/data/miniconda3/man/man3/filetest.3 b/data/miniconda3/man/man3/filetest.3 new file mode 100644 index 0000000000000000000000000000000000000000..57e11f1bf4ee49cb7c9079f47633fc94e680fdfc --- /dev/null +++ b/data/miniconda3/man/man3/filetest.3 @@ -0,0 +1,231 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "filetest 3" +.TH filetest 3 "2020-12-18" "perl v5.32.1" "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" +filetest \- Perl pragma to control the filetest permission operators +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& $can_perhaps_read = \-r "file"; # use the mode bits +\& { +\& use filetest \*(Aqaccess\*(Aq; # intuit harder +\& $can_really_read = \-r "file"; +\& } +\& $can_perhaps_read = \-r "file"; # use the mode bits again +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma tells the compiler to change the behaviour of the filetest +permission operators, \f(CW\*(C`\-r\*(C'\fR \f(CW\*(C`\-w\*(C'\fR \f(CW\*(C`\-x\*(C'\fR \f(CW\*(C`\-R\*(C'\fR \f(CW\*(C`\-W\*(C'\fR \f(CW\*(C`\-X\*(C'\fR +(see perlfunc). +.PP +The default behaviour of file test operators is to use the simple +mode bits as returned by the \fBstat()\fR family of system calls. However, +many operating systems have additional features to define more complex +access rights, for example ACLs (Access Control Lists). +For such environments, \f(CW\*(C`use filetest\*(C'\fR may help the permission +operators to return results more consistent with other tools. +.PP +The \f(CW\*(C`use filetest\*(C'\fR or \f(CW\*(C`no filetest\*(C'\fR statements affect file tests defined in +their block, up to the end of the closest enclosing block (they are lexically +block-scoped). +.PP +Currently, only the \f(CW\*(C`access\*(C'\fR sub-pragma is implemented. It enables (or +disables) the use of \fBaccess()\fR when available, that is, on most \s-1UNIX\s0 systems and +other \s-1POSIX\s0 environments. See details below. +.SS "Consider this carefully" +.IX Subsection "Consider this carefully" +The \fBstat()\fR mode bits are probably right for most of the files and +directories found on your system, because few people want to use the +additional features offered by \fBaccess()\fR. But you may encounter surprises +if your program runs on a system that uses ACLs, since the \fBstat()\fR +information won't reflect the actual permissions. +.PP +There may be a slight performance decrease in the filetest operations +when the filetest pragma is in effect, because checking bits is very +cheap. +.PP +Also, note that using the file tests for security purposes is a lost cause +from the start: there is a window open for race conditions (who is to +say that the permissions will not change between the test and the real +operation?). Therefore if you are serious about security, just try +the real operation and test for its success \- think in terms of atomic +operations. Filetests are more useful for filesystem administrative +tasks, when you have no need for the content of the elements on disk. +.ie n .SS "The ""access"" sub-pragma" +.el .SS "The ``access'' sub-pragma" +.IX Subsection "The access sub-pragma" +\&\s-1UNIX\s0 and \s-1POSIX\s0 systems provide an abstract \fBaccess()\fR operating system call, +which should be used to query the read, write, and execute rights. This +function hides various distinct approaches in additional operating system +specific security features, like Access Control Lists (ACLs) +.PP +The extended filetest functionality is used by Perl only when the argument +of the operators is a filename, not when it is a filehandle. +.ie n .SS "Limitation with regard to ""_""" +.el .SS "Limitation with regard to \f(CW_\fP" +.IX Subsection "Limitation with regard to _" +Because \fBaccess()\fR does not invoke \fBstat()\fR (at least not in a way visible +to Perl), \fBthe stat result cache \*(L"_\*(R" is not set\fR. This means that the +outcome of the following two tests is different. The first has the stat +bits of \fI/etc/passwd\fR in \f(CW\*(C`_\*(C'\fR, and in the second case this still +contains the bits of \f(CW\*(C`/etc\*(C'\fR. +.PP +.Vb 4 +\& { \-d \*(Aq/etc\*(Aq; +\& \-w \*(Aq/etc/passwd\*(Aq; +\& print \-f _ ? \*(AqYes\*(Aq : \*(AqNo\*(Aq; # Yes +\& } +\& +\& { use filetest \*(Aqaccess\*(Aq; +\& \-d \*(Aq/etc\*(Aq; +\& \-w \*(Aq/etc/passwd\*(Aq; +\& print \-f _ ? \*(AqYes\*(Aq : \*(AqNo\*(Aq; # No +\& } +.Ve +.PP +Of course, unless your \s-1OS\s0 does not implement \fBaccess()\fR, in which case the +pragma is simply ignored. Best not to use \f(CW\*(C`_\*(C'\fR at all in a file where +the filetest pragma is active! +.PP +As a side effect, as \f(CW\*(C`_\*(C'\fR doesn't work, stacked filetest operators +(\f(CW\*(C`\-f \-w $file\*(C'\fR) won't work either. +.PP +This limitation might be removed in a future version of perl. diff --git a/data/miniconda3/man/man3/if.3 b/data/miniconda3/man/man3/if.3 new file mode 100644 index 0000000000000000000000000000000000000000..265e3d663e5f2a6465ffaffd49d3ec9d376ec276 --- /dev/null +++ b/data/miniconda3/man/man3/if.3 @@ -0,0 +1,237 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "if 3" +.TH if 3 "2020-12-18" "perl v5.32.1" "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" +if \- "use" a Perl module if a condition holds +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use if CONDITION, "MODULE", ARGUMENTS; +\& no if CONDITION, "MODULE", ARGUMENTS; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.ie n .SS """use if""" +.el .SS "\f(CWuse if\fP" +.IX Subsection "use if" +The \f(CW\*(C`if\*(C'\fR module is used to conditionally load another module. The construct: +.PP +.Vb 1 +\& use if CONDITION, "MODULE", ARGUMENTS; +.Ve +.PP +\&... will load \f(CW\*(C`MODULE\*(C'\fR only if \f(CW\*(C`CONDITION\*(C'\fR evaluates to true; it has no +effect if \f(CW\*(C`CONDITION\*(C'\fR evaluates to false. (The module name, assuming it +contains at least one \f(CW\*(C`::\*(C'\fR, must be quoted when \f(CW\*(Aquse strict "subs";\*(Aq\fR is in +effect.) If the \s-1CONDITION\s0 does evaluate to true, then the above line has the +same effect as: +.PP +.Vb 1 +\& use MODULE ARGUMENTS; +.Ve +.PP +For example, the \fIUnicode::UCD\fR module's \fIcharinfo\fR function will use two functions from \fIUnicode::Normalize\fR only if a certain condition is met: +.PP +.Vb 2 +\& use if defined &DynaLoader::boot_DynaLoader, +\& "Unicode::Normalize" => qw(getCombinClass NFD); +.Ve +.PP +Suppose you wanted \f(CW\*(C`ARGUMENTS\*(C'\fR to be an empty list, \fIi.e.\fR, to have the +effect of: +.PP +.Vb 1 +\& use MODULE (); +.Ve +.PP +You can't do this with the \f(CW\*(C`if\*(C'\fR pragma; however, you can achieve +exactly this effect, at compile time, with: +.PP +.Vb 1 +\& BEGIN { require MODULE if CONDITION } +.Ve +.ie n .SS """no if""" +.el .SS "\f(CWno if\fP" +.IX Subsection "no if" +The \f(CW\*(C`no if\*(C'\fR construct is mainly used to deactivate categories of warnings +when those categories would produce superfluous output under specified +versions of \fIperl\fR. +.PP +For example, the \f(CW\*(C`redundant\*(C'\fR category of warnings was introduced in +Perl\-5.22. This warning flags certain instances of superfluous arguments to +\&\f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`sprintf\*(C'\fR. But if your code was running warnings-free on +earlier versions of \fIperl\fR and you don't care about \f(CW\*(C`redundant\*(C'\fR warnings in +more recent versions, you can call: +.PP +.Vb 2 +\& use warnings; +\& no if $] >= 5.022, q|warnings|, qw(redundant); +\& +\& my $test = { fmt => "%s", args => [ qw( x y ) ] }; +\& my $result = sprintf $test\->{fmt}, @{$test\->{args}}; +.Ve +.PP +The \f(CW\*(C`no if\*(C'\fR construct assumes that a module or pragma has correctly +implemented an \f(CW\*(C`unimport()\*(C'\fR method \*(-- but most modules and pragmata have not. +That explains why the \f(CW\*(C`no if\*(C'\fR construct is of limited applicability. +.SH "BUGS" +.IX Header "BUGS" +The current implementation does not allow specification of the required +version of the module. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Module::Requires can be used to conditionally load one or modules, +with constraints based on the version of the module. +Unlike \f(CW\*(C`if\*(C'\fR though, Module::Requires is not a core module. +.PP +Module::Load::Conditional provides a number of functions you can use to +query what modules are available, and then load one or more of them at runtime. +.PP +The provide module from \s-1CPAN\s0 can be used to select one of several possible +modules to load based on the version of Perl that is running. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ilya Zakharevich . +.SH "COPYRIGHT AND LICENCE" +.IX Header "COPYRIGHT AND LICENCE" +This software is copyright (c) 2002 by Ilya Zakharevich. +.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. diff --git a/data/miniconda3/man/man3/integer.3 b/data/miniconda3/man/man3/integer.3 new file mode 100644 index 0000000000000000000000000000000000000000..92e623b973abe7348a4c7d19527c3ebf9d2c4e45 --- /dev/null +++ b/data/miniconda3/man/man3/integer.3 @@ -0,0 +1,220 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "integer 3" +.TH integer 3 "2020-12-18" "perl v5.32.1" "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" +integer \- Perl pragma to use integer arithmetic instead of floating point +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use integer; +\& $x = 10/3; +\& # $x is now 3, not 3.33333333333333333 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This tells the compiler to use integer operations from here to the end +of the enclosing \s-1BLOCK.\s0 On many machines, this doesn't matter a great +deal for most computations, but on those without floating point +hardware, it can make a big difference in performance. +.PP +Note that this only affects how most of the arithmetic and relational +\&\fBoperators\fR handle their operands and results, and \fBnot\fR how all +numbers everywhere are treated. Specifically, \f(CW\*(C`use integer;\*(C'\fR has the +effect that before computing the results of the arithmetic operators +(+, \-, *, /, %, +=, \-=, *=, /=, %=, and unary minus), the comparison +operators (<, <=, >, >=, ==, !=, <=>), and the bitwise operators (|, &, +^, <<, >>, |=, &=, ^=, <<=, >>=), the operands have their fractional +portions truncated (or floored), and the result will have its +fractional portion truncated as well. In addition, the range of +operands and results is restricted to that of familiar two's complement +integers, i.e., \-(2**31) .. (2**31\-1) on 32\-bit architectures, and +\&\-(2**63) .. (2**63\-1) on 64\-bit architectures. For example, this code +.PP +.Vb 7 +\& use integer; +\& $x = 5.8; +\& $y = 2.5; +\& $z = 2.7; +\& $a = 2**31 \- 1; # Largest positive integer on 32\-bit machines +\& $, = ", "; +\& print $x, \-$x, $x+$y, $x\-$y, $x/$y, $x*$y, $y==$z, $a, $a+1; +.Ve +.PP +will print: 5.8, \-5, 7, 3, 2, 10, 1, 2147483647, \-2147483648 +.PP +Note that \f(CW$x\fR is still printed as having its true non-integer value of +5.8 since it wasn't operated on. And note too the wrap-around from the +largest positive integer to the largest negative one. Also, arguments +passed to functions and the values returned by them are \fBnot\fR affected +by \f(CW\*(C`use integer;\*(C'\fR. E.g., +.PP +.Vb 3 +\& srand(1.5); +\& $, = ", "; +\& print sin(.5), cos(.5), atan2(1,2), sqrt(2), rand(10); +.Ve +.PP +will give the same result with or without \f(CW\*(C`use integer;\*(C'\fR The power +operator \f(CW\*(C`**\*(C'\fR is also not affected, so that 2 ** .5 is always the +square root of 2. Now, it so happens that the pre\- and post\- increment +and decrement operators, ++ and \-\-, are not affected by \f(CW\*(C`use integer;\*(C'\fR +either. Some may rightly consider this to be a bug \*(-- but at least it's +a long-standing one. +.PP +Finally, \f(CW\*(C`use integer;\*(C'\fR also has an additional affect on the bitwise +operators. Normally, the operands and results are treated as +\&\fBunsigned\fR integers, but with \f(CW\*(C`use integer;\*(C'\fR the operands and results +are \fBsigned\fR. This means, among other things, that ~0 is \-1, and \-2 & +\&\-5 is \-6. +.PP +Internally, native integer arithmetic (as provided by your C compiler) +is used. This means that Perl's own semantics for arithmetic +operations may not be preserved. One common source of trouble is the +modulus of negative numbers, which Perl does one way, but your hardware +may do another. +.PP +.Vb 4 +\& % perl \-le \*(Aqprint (4 % \-3)\*(Aq +\& \-2 +\& % perl \-Minteger \-le \*(Aqprint (4 % \-3)\*(Aq +\& 1 +.Ve +.PP +See \*(L"Pragmatic Modules\*(R" in perlmodlib, \*(L"Integer Arithmetic\*(R" in perlop diff --git a/data/miniconda3/man/man3/less.3 b/data/miniconda3/man/man3/less.3 new file mode 100644 index 0000000000000000000000000000000000000000..3f7621dc5ee3a0222c4800e29e5ac5329aa2cf49 --- /dev/null +++ b/data/miniconda3/man/man3/less.3 @@ -0,0 +1,225 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "less 3" +.TH less 3 "2020-12-18" "perl v5.32.1" "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" +less \- perl pragma to request less of something +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use less \*(AqCPU\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a user-pragma. If you're very lucky some code you're using +will know that you asked for less \s-1CPU\s0 usage or ram or fat or... we +just can't know. Consult your documentation on everything you're +currently using. +.PP +For general suggestions, try requesting \f(CW\*(C`CPU\*(C'\fR or \f(CW\*(C`memory\*(C'\fR. +.PP +.Vb 3 +\& use less \*(Aqmemory\*(Aq; +\& use less \*(AqCPU\*(Aq; +\& use less \*(Aqfat\*(Aq; +.Ve +.PP +If you ask for nothing in particular, you'll be asking for \f(CW\*(C`less +\&\*(Aqplease\*(Aq\*(C'\fR. +.PP +.Vb 1 +\& use less \*(Aqplease\*(Aq; +.Ve +.SH "FOR MODULE AUTHORS" +.IX Header "FOR MODULE AUTHORS" +less has been in the core as a \*(L"joke\*(R" module for ages now and it +hasn't had any real way to communicating any information to +anything. Thanks to Nicholas Clark we have user pragmas (see +perlpragma) and now \f(CW\*(C`less\*(C'\fR can do something. +.PP +You can probably expect your users to be able to guess that they can +request less \s-1CPU\s0 or memory or just \*(L"less\*(R" overall. +.PP +If the user didn't specify anything, it's interpreted as having used +the \f(CW\*(C`please\*(C'\fR tag. It's up to you to make this useful. +.PP +.Vb 3 +\& # equivalent +\& use less; +\& use less \*(Aqplease\*(Aq; +.Ve +.ie n .SS """BOOLEAN = less\->of( FEATURE )""" +.el .SS "\f(CWBOOLEAN = less\->of( FEATURE )\fP" +.IX Subsection "BOOLEAN = less->of( FEATURE )" +The class method \f(CW\*(C`less\->of( NAME )\*(C'\fR returns a boolean to tell you +whether your user requested less of something. +.PP +.Vb 4 +\& if ( less\->of( \*(AqCPU\*(Aq ) ) { +\& ... +\& } +\& elsif ( less\->of( \*(Aqmemory\*(Aq ) ) { +\& +\& } +.Ve +.ie n .SS """FEATURES = less\->of()""" +.el .SS "\f(CWFEATURES = less\->of()\fP" +.IX Subsection "FEATURES = less->of()" +If you don't ask for any feature, you get the list of features that +the user requested you to be nice to. This has the nice side effect +that if you don't respect anything in particular then you can just ask +for it and use it like a boolean. +.PP +.Vb 6 +\& if ( less\->of ) { +\& ... +\& } +\& else { +\& ... +\& } +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +.IP "This probably does nothing." 4 +.IX Item "This probably does nothing." +.PD 0 +.IP "This works only on 5.10+" 4 +.IX Item "This works only on 5.10+" +.PD +At least it's backwards compatible in not doing much. diff --git a/data/miniconda3/man/man3/lib.3 b/data/miniconda3/man/man3/lib.3 new file mode 100644 index 0000000000000000000000000000000000000000..363a155d6094e17cc59d1cb7b4b68bb60691b02b --- /dev/null +++ b/data/miniconda3/man/man3/lib.3 @@ -0,0 +1,272 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "lib 3" +.TH lib 3 "2023-12-23" "perl v5.32.1" "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" +lib \- manipulate @INC at compile time +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use lib LIST; +\& +\& no lib LIST; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a small simple module which simplifies the manipulation of \f(CW@INC\fR +at compile time. +.PP +It is typically used to add extra directories to perl's search path so +that later \f(CW\*(C`use\*(C'\fR or \f(CW\*(C`require\*(C'\fR statements will find modules which are +not located on perl's default search path. +.ie n .SS "Adding directories to @INC" +.el .SS "Adding directories to \f(CW@INC\fP" +.IX Subsection "Adding directories to @INC" +The parameters to \f(CW\*(C`use lib\*(C'\fR are added to the start of the perl search +path. Saying +.PP +.Vb 1 +\& use lib LIST; +.Ve +.PP +is \fIalmost\fR the same as saying +.PP +.Vb 1 +\& BEGIN { unshift(@INC, LIST) } +.Ve +.PP +For each directory in \s-1LIST\s0 (called \f(CW$dir\fR here) the lib module also +checks to see if a directory called \f(CW$dir\fR/$archname/auto exists. +If so the \f(CW$dir\fR/$archname directory is assumed to be a corresponding +architecture specific directory and is added to \f(CW@INC\fR in front of \f(CW$dir\fR. +lib.pm also checks if directories called \f(CW$dir\fR/$version and \f(CW$dir\fR/$version/$archname +exist and adds these directories to \f(CW@INC\fR. +.PP +The current value of \f(CW$archname\fR can be found with this command: +.PP +.Vb 1 +\& perl \-V:archname +.Ve +.PP +The corresponding command to get the current value of \f(CW$version\fR is: +.PP +.Vb 1 +\& perl \-V:version +.Ve +.PP +To avoid memory leaks, all trailing duplicate entries in \f(CW@INC\fR are +removed. +.ie n .SS "Deleting directories from @INC" +.el .SS "Deleting directories from \f(CW@INC\fP" +.IX Subsection "Deleting directories from @INC" +You should normally only add directories to \f(CW@INC\fR. If you need to +delete directories from \f(CW@INC\fR take care to only delete those which you +added yourself or which you are certain are not needed by other modules +in your script. Other modules may have added directories which they +need for correct operation. +.PP +The \f(CW\*(C`no lib\*(C'\fR statement deletes all instances of each named directory +from \f(CW@INC\fR. +.PP +For each directory in \s-1LIST\s0 (called \f(CW$dir\fR here) the lib module also +checks to see if a directory called \f(CW$dir\fR/$archname/auto exists. +If so the \f(CW$dir\fR/$archname directory is assumed to be a corresponding +architecture specific directory and is also deleted from \f(CW@INC\fR. lib.pm also +checks if directories called \f(CW$dir\fR/$version and \f(CW$dir\fR/$version/$archname +exist and deletes these directories from \f(CW@INC\fR. +.ie n .SS "Restoring original @INC" +.el .SS "Restoring original \f(CW@INC\fP" +.IX Subsection "Restoring original @INC" +When the lib module is first loaded it records the current value of \f(CW@INC\fR +in an array \f(CW@lib::ORIG_INC\fR. To restore \f(CW@INC\fR to that value you +can say +.PP +.Vb 1 +\& @INC = @lib::ORIG_INC; +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +In order to keep lib.pm small and simple, it only works with Unix +filepaths. This doesn't mean it only works on Unix, but non-Unix +users must first translate their file paths to Unix conventions. +.PP +.Vb 3 +\& # VMS users wanting to put [.stuff.moo] into +\& # their @INC would write +\& use lib \*(Aqstuff/moo\*(Aq; +.Ve +.SH "NOTES" +.IX Header "NOTES" +In the future, this module will likely use File::Spec for determining +paths, as it does now for Mac \s-1OS\s0 (where Unix-style or Mac-style paths +work, and Unix-style paths are converted properly to Mac-style paths +before being added to \f(CW@INC\fR). +.PP +If you try to add a file to \f(CW@INC\fR as follows: +.PP +.Vb 1 +\& use lib \*(Aqthis_is_a_file.txt\*(Aq; +.Ve +.PP +\&\f(CW\*(C`lib\*(C'\fR will warn about this. The sole exceptions are files with the +\&\f(CW\*(C`.par\*(C'\fR extension which are intended to be used as libraries. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +FindBin \- optional module which deals with paths relative to the source file. +.PP +\&\s-1PAR\s0 \- optional module which can treat \f(CW\*(C`.par\*(C'\fR files as Perl libraries. +.SH "AUTHOR" +.IX Header "AUTHOR" +Tim Bunce, 2nd June 1995. +.PP +\&\f(CW\*(C`lib\*(C'\fR is maintained by the perl5\-porters. Please direct +any questions to the canonical mailing list. Anything that +is applicable to the \s-1CPAN\s0 release can be sent to its maintainer, +though. +.PP +Maintainer: The Perl5\-Porters +.PP +Maintainer of the \s-1CPAN\s0 release: Steffen Mueller +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This package has been part of the perl core since perl 5.001. +It has been released separately to \s-1CPAN\s0 so older installations +can benefit from bug fixes. +.PP +This package has the same copyright and license as the perl core. diff --git a/data/miniconda3/man/man3/locale.3 b/data/miniconda3/man/man3/locale.3 new file mode 100644 index 0000000000000000000000000000000000000000..5f487c826e979a69515438999f3a1c09b2800aa2 --- /dev/null +++ b/data/miniconda3/man/man3/locale.3 @@ -0,0 +1,176 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "locale 3" +.TH locale 3 "2020-12-18" "perl v5.32.1" "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" +locale \- Perl pragma to use or avoid POSIX locales for built\-in operations +.SH "WARNING" +.IX Header "WARNING" +\&\s-1DO NOT USE\s0 this pragma in scripts that have multiple +threads active. The locale is not local to a single thread. +Another thread may change the locale at any time, which could cause at a +minimum that a given thread is operating in a locale it isn't expecting +to be in. On some platforms, segfaults can also occur. The locale +change need not be explicit; some operations cause perl to change the +locale itself. You are vulnerable simply by having done a \f(CW"use +locale"\fR. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& @x = sort @y; # Native\-platform/Unicode code point sort order +\& { +\& use locale; +\& @x = sort @y; # Locale\-defined sort order +\& } +\& @x = sort @y; # Native\-platform/Unicode code point sort order +\& # again +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma tells the compiler to enable (or disable) the use of \s-1POSIX\s0 +locales for built-in operations (for example, \s-1LC_CTYPE\s0 for regular +expressions, \s-1LC_COLLATE\s0 for string comparison, and \s-1LC_NUMERIC\s0 for number +formatting). Each \*(L"use locale\*(R" or \*(L"no locale\*(R" +affects statements to the end of the enclosing \s-1BLOCK.\s0 +.PP +See perllocale for more detailed information on how Perl supports +locales. +.PP +On systems that don't have locales, this pragma will cause your operations +to behave as if in the \*(L"C\*(R" locale; attempts to change the locale will fail. diff --git a/data/miniconda3/man/man3/mro.3 b/data/miniconda3/man/man3/mro.3 new file mode 100644 index 0000000000000000000000000000000000000000..dfd797060c3ff15de888dc3cb10c17edfbb9e8f6 --- /dev/null +++ b/data/miniconda3/man/man3/mro.3 @@ -0,0 +1,404 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "mro 3" +.TH mro 3 "2020-12-18" "perl v5.32.1" "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" +mro \- Method Resolution Order +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use mro; # enables next::method and friends globally +\& +\& use mro \*(Aqdfs\*(Aq; # enable DFS MRO for this class (Perl default) +\& use mro \*(Aqc3\*(Aq; # enable C3 MRO for this class +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \*(L"mro\*(R" namespace provides several utilities for dealing +with method resolution order and method caching in general. +.PP +These interfaces are only available in Perl 5.9.5 and higher. +See MRO::Compat on \s-1CPAN\s0 for a mostly forwards compatible +implementation for older Perls. +.SH "OVERVIEW" +.IX Header "OVERVIEW" +It's possible to change the \s-1MRO\s0 of a given class either by using \f(CW\*(C`use +mro\*(C'\fR as shown in the synopsis, or by using the \*(L"mro::set_mro\*(R" function +below. +.PP +The special methods \f(CW\*(C`next::method\*(C'\fR, \f(CW\*(C`next::can\*(C'\fR, and +\&\f(CW\*(C`maybe::next::method\*(C'\fR are not available until this \f(CW\*(C`mro\*(C'\fR module +has been loaded via \f(CW\*(C`use\*(C'\fR or \f(CW\*(C`require\*(C'\fR. +.SH "The C3 MRO" +.IX Header "The C3 MRO" +In addition to the traditional Perl default \s-1MRO\s0 (depth first +search, called \f(CW\*(C`DFS\*(C'\fR here), Perl now offers the C3 \s-1MRO\s0 as +well. Perl's support for C3 is based on the work done in +Stevan Little's module Class::C3, and most of the C3\-related +documentation here is ripped directly from there. +.SS "What is C3?" +.IX Subsection "What is C3?" +C3 is the name of an algorithm which aims to provide a sane method +resolution order under multiple inheritance. It was first introduced in +the language Dylan (see links in the \*(L"\s-1SEE ALSO\*(R"\s0 section), and then +later adopted as the preferred \s-1MRO\s0 (Method Resolution Order) for the +new-style classes in Python 2.3. Most recently it has been adopted as the +\&\*(L"canonical\*(R" \s-1MRO\s0 for Perl 6 classes, and the default \s-1MRO\s0 for Parrot objects +as well. +.SS "How does C3 work" +.IX Subsection "How does C3 work" +C3 works by always preserving local precedence ordering. This essentially +means that no class will appear before any of its subclasses. Take, for +instance, the classic diamond inheritance pattern: +.PP +.Vb 5 +\& +\& / \e +\& +\& \e / +\& +.Ve +.PP +The standard Perl 5 \s-1MRO\s0 would be (D, B, A, C). The result being that \fBA\fR +appears before \fBC\fR, even though \fBC\fR is the subclass of \fBA\fR. The C3 \s-1MRO\s0 +algorithm however, produces the following order: (D, B, C, A), which does +not have this issue. +.PP +This example is fairly trivial; for more complex cases and a deeper +explanation, see the links in the \*(L"\s-1SEE ALSO\*(R"\s0 section. +.SH "Functions" +.IX Header "Functions" +.ie n .SS "mro::get_linear_isa($classname[, $type])" +.el .SS "mro::get_linear_isa($classname[, \f(CW$type\fP])" +.IX Subsection "mro::get_linear_isa($classname[, $type])" +Returns an arrayref which is the linearized \s-1MRO\s0 of the given class. +Uses whichever \s-1MRO\s0 is currently in effect for that class by default, +or the given \s-1MRO\s0 (either \f(CW\*(C`c3\*(C'\fR or \f(CW\*(C`dfs\*(C'\fR if specified as \f(CW$type\fR). +.PP +The linearized \s-1MRO\s0 of a class is an ordered array of all of the +classes one would search when resolving a method on that class, +starting with the class itself. +.PP +If the requested class doesn't yet exist, this function will still +succeed, and return \f(CW\*(C`[ $classname ]\*(C'\fR +.PP +Note that \f(CW\*(C`UNIVERSAL\*(C'\fR (and any members of \f(CW\*(C`UNIVERSAL\*(C'\fR's \s-1MRO\s0) are not +part of the \s-1MRO\s0 of a class, even though all classes implicitly inherit +methods from \f(CW\*(C`UNIVERSAL\*(C'\fR and its parents. +.ie n .SS "mro::set_mro ($classname, $type)" +.el .SS "mro::set_mro ($classname, \f(CW$type\fP)" +.IX Subsection "mro::set_mro ($classname, $type)" +Sets the \s-1MRO\s0 of the given class to the \f(CW$type\fR argument (either +\&\f(CW\*(C`c3\*(C'\fR or \f(CW\*(C`dfs\*(C'\fR). +.SS "mro::get_mro($classname)" +.IX Subsection "mro::get_mro($classname)" +Returns the \s-1MRO\s0 of the given class (either \f(CW\*(C`c3\*(C'\fR or \f(CW\*(C`dfs\*(C'\fR). +.SS "mro::get_isarev($classname)" +.IX Subsection "mro::get_isarev($classname)" +Gets the \f(CW\*(C`mro_isarev\*(C'\fR for this class, returned as an +arrayref of class names. These are every class that \*(L"isa\*(R" +the given class name, even if the isa relationship is +indirect. This is used internally by the \s-1MRO\s0 code to +keep track of method/MRO cache invalidations. +.PP +As with \f(CW\*(C`mro::get_linear_isa\*(C'\fR above, \f(CW\*(C`UNIVERSAL\*(C'\fR is special. +\&\f(CW\*(C`UNIVERSAL\*(C'\fR (and parents') isarev lists do not include +every class in existence, even though all classes are +effectively descendants for method inheritance purposes. +.SS "mro::is_universal($classname)" +.IX Subsection "mro::is_universal($classname)" +Returns a boolean status indicating whether or not +the given classname is either \f(CW\*(C`UNIVERSAL\*(C'\fR itself, +or one of \f(CW\*(C`UNIVERSAL\*(C'\fR's parents by \f(CW@ISA\fR inheritance. +.PP +Any class for which this function returns true is +\&\*(L"universal\*(R" in the sense that all classes potentially +inherit methods from it. +.SS "\fBmro::invalidate_all_method_caches()\fP" +.IX Subsection "mro::invalidate_all_method_caches()" +Increments \f(CW\*(C`PL_sub_generation\*(C'\fR, which invalidates method +caching in all packages. +.SS "mro::method_changed_in($classname)" +.IX Subsection "mro::method_changed_in($classname)" +Invalidates the method cache of any classes dependent on the +given class. This is not normally necessary. The only +known case where pure perl code can confuse the method +cache is when you manually install a new constant +subroutine by using a readonly scalar value, like the +internals of constant do. If you find another case, +please report it so we can either fix it or document +the exception here. +.SS "mro::get_pkg_gen($classname)" +.IX Subsection "mro::get_pkg_gen($classname)" +Returns an integer which is incremented every time a +real local method in the package \f(CW$classname\fR changes, +or the local \f(CW@ISA\fR of \f(CW$classname\fR is modified. +.PP +This is intended for authors of modules which do lots +of class introspection, as it allows them to very quickly +check if anything important about the local properties +of a given class have changed since the last time they +looked. It does not increment on method/\f(CW@ISA\fR +changes in superclasses. +.PP +It's still up to you to seek out the actual changes, +and there might not actually be any. Perhaps all +of the changes since you last checked cancelled each +other out and left the package in the state it was in +before. +.PP +This integer normally starts off at a value of \f(CW1\fR +when a package stash is instantiated. Calling it +on packages whose stashes do not exist at all will +return \f(CW0\fR. If a package stash is completely +deleted (not a normal occurrence, but it can happen +if someone does something like \f(CW\*(C`undef %PkgName::\*(C'\fR), +the number will be reset to either \f(CW0\fR or \f(CW1\fR, +depending on how completely the package was wiped out. +.SS "next::method" +.IX Subsection "next::method" +This is somewhat like \f(CW\*(C`SUPER\*(C'\fR, but it uses the C3 method +resolution order to get better consistency in multiple +inheritance situations. Note that while inheritance in +general follows whichever \s-1MRO\s0 is in effect for the +given class, \f(CW\*(C`next::method\*(C'\fR only uses the C3 \s-1MRO.\s0 +.PP +One generally uses it like so: +.PP +.Vb 5 +\& sub some_method { +\& my $self = shift; +\& my $superclass_answer = $self\->next::method(@_); +\& return $superclass_answer + 1; +\& } +.Ve +.PP +Note that you don't (re\-)specify the method name. +It forces you to always use the same method name +as the method you started in. +.PP +It can be called on an object or a class, of course. +.PP +The way it resolves which actual method to call is: +.IP "1." 4 +First, it determines the linearized C3 \s-1MRO\s0 of +the object or class it is being called on. +.IP "2." 4 +Then, it determines the class and method name +of the context it was invoked from. +.IP "3." 4 +Finally, it searches down the C3 \s-1MRO\s0 list until +it reaches the contextually enclosing class, then +searches further down the \s-1MRO\s0 list for the next +method with the same name as the contextually +enclosing method. +.PP +Failure to find a next method will result in an +exception being thrown (see below for alternatives). +.PP +This is substantially different than the behavior +of \f(CW\*(C`SUPER\*(C'\fR under complex multiple inheritance. +(This becomes obvious when one realizes that the +common superclasses in the C3 linearizations of +a given class and one of its parents will not +always be ordered the same for both.) +.PP +\&\fBCaveat\fR: Calling \f(CW\*(C`next::method\*(C'\fR from methods defined outside the class: +.PP +There is an edge case when using \f(CW\*(C`next::method\*(C'\fR from within a subroutine +which was created in a different module than the one it is called from. It +sounds complicated, but it really isn't. Here is an example which will not +work correctly: +.PP +.Vb 1 +\& *Foo::foo = sub { (shift)\->next::method(@_) }; +.Ve +.PP +The problem exists because the anonymous subroutine being assigned to the +\&\f(CW*Foo::foo\fR glob will show up in the call stack as being called +\&\f(CW\*(C`_\|_ANON_\|_\*(C'\fR and not \f(CW\*(C`foo\*(C'\fR as you might expect. Since \f(CW\*(C`next::method\*(C'\fR uses +\&\f(CW\*(C`caller\*(C'\fR to find the name of the method it was called in, it will fail in +this case. +.PP +But fear not, there's a simple solution. The module \f(CW\*(C`Sub::Name\*(C'\fR will +reach into the perl internals and assign a name to an anonymous subroutine +for you. Simply do this: +.PP +.Vb 2 +\& use Sub::Name \*(Aqsubname\*(Aq; +\& *Foo::foo = subname \*(AqFoo::foo\*(Aq => sub { (shift)\->next::method(@_) }; +.Ve +.PP +and things will Just Work. +.SS "next::can" +.IX Subsection "next::can" +This is similar to \f(CW\*(C`next::method\*(C'\fR, but just returns either a code +reference or \f(CW\*(C`undef\*(C'\fR to indicate that no further methods of this name +exist. +.SS "maybe::next::method" +.IX Subsection "maybe::next::method" +In simple cases, it is equivalent to: +.PP +.Vb 1 +\& $self\->next::method(@_) if $self\->next::can; +.Ve +.PP +But there are some cases where only this solution +works (like \f(CW\*(C`goto &maybe::next::method\*(C'\fR); +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.SS "The original Dylan paper" +.IX Subsection "The original Dylan paper" +.IP "" 4 +.IX Item "" +.SS "Python 2.3 \s-1MRO\s0" +.IX Subsection "Python 2.3 MRO" +.PD 0 +.IP "" 4 +.IX Item "" +.PD +.SS "Class::C3" +.IX Subsection "Class::C3" +.IP "Class::C3" 4 +.IX Item "Class::C3" +.SH "AUTHOR" +.IX Header "AUTHOR" +Brandon L. Black, +.PP +Based on Stevan Little's Class::C3 diff --git a/data/miniconda3/man/man3/open.3 b/data/miniconda3/man/man3/open.3 new file mode 100644 index 0000000000000000000000000000000000000000..7af9e7f34184311f5ede76ee3d84584b101444ca --- /dev/null +++ b/data/miniconda3/man/man3/open.3 @@ -0,0 +1,262 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "open 3" +.TH open 3 "2020-12-18" "perl v5.32.1" "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" +open \- perl pragma to set default PerlIO layers for input and output +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 7 +\& use open IN => \*(Aq:crlf\*(Aq, OUT => \*(Aq:raw\*(Aq; +\& open my $in, \*(Aq<\*(Aq, \*(Aqfoo.txt\*(Aq or die "open failed: $!"; +\& my $line = <$in>; # CRLF translated +\& close $in; +\& open my $out, \*(Aq>\*(Aq, \*(Aqbar.txt\*(Aq or die "open failed: $!"; +\& print $out $line; # no translation of bytes +\& close $out; +\& +\& use open OUT => \*(Aq:encoding(UTF\-8)\*(Aq; +\& use open IN => \*(Aq:encoding(iso\-8859\-7)\*(Aq; +\& +\& use open IO => \*(Aq:locale\*(Aq; +\& +\& # IO implicit only for :utf8, :encoding, :locale +\& use open \*(Aq:encoding(UTF\-8)\*(Aq; +\& use open \*(Aq:encoding(iso\-8859\-7)\*(Aq; +\& use open \*(Aq:locale\*(Aq; +\& +\& # with :std, also affect global standard handles +\& use open \*(Aq:std\*(Aq, \*(Aq:encoding(UTF\-8)\*(Aq; +\& use open \*(Aq:std\*(Aq, OUT => \*(Aq:encoding(cp1252)\*(Aq; +\& use open \*(Aq:std\*(Aq, IO => \*(Aq:raw :encoding(UTF\-16LE)\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Full-fledged support for I/O layers is now implemented provided +Perl is configured to use PerlIO as its \s-1IO\s0 system (which has been the +default since 5.8, and the only supported configuration since 5.16). +.PP +The \f(CW\*(C`open\*(C'\fR pragma serves as one of the interfaces to declare default +\&\*(L"layers\*(R" (previously known as \*(L"disciplines\*(R") for all I/O. Any \fBopen()\fR, +\&\fBreadpipe()\fR (aka qx//) and similar operators found within the +lexical scope of this pragma will use the declared defaults via the +\&\f(CW\*(C`${^OPEN}\*(C'\fR variable. +.PP +Layers are specified with a leading colon by convention. You can +specify a stack of multiple layers as a space-separated string. +See PerlIO for more information on the available layers. +.PP +With the \f(CW\*(C`IN\*(C'\fR subpragma you can declare the default layers +of input streams, and with the \f(CW\*(C`OUT\*(C'\fR subpragma you can declare +the default layers of output streams. With the \f(CW\*(C`IO\*(C'\fR subpragma +(may be omitted for \f(CW\*(C`:utf8\*(C'\fR, \f(CW\*(C`:locale\*(C'\fR, or \f(CW\*(C`:encoding\*(C'\fR) you +can control both input and output streams simultaneously. +.PP +When \fBopen()\fR is given an explicit list of layers (with the three-arg +syntax), they override the list declared using this pragma. \fBopen()\fR can +also be given a single colon (:) for a layer name, to override this pragma +and use the default as detailed in +\&\*(L"Defaults and how to override them\*(R" in PerlIO. +.PP +To translate from and to an arbitrary text encoding, use the \f(CW\*(C`:encoding\*(C'\fR +layer. The matching of encoding names in \f(CW\*(C`:encoding\*(C'\fR is loose: case does +not matter, and many encodings have several aliases. See +Encode::Supported for details and the list of supported locales. +.PP +If you want to set your encoding layers based on your +locale environment variables, you can use the \f(CW\*(C`:locale\*(C'\fR pseudo-layer. +For example: +.PP +.Vb 9 +\& $ENV{LANG} = \*(Aqru_RU.KOI8\-R\*(Aq; +\& # the :locale will probe the locale environment variables like LANG +\& use open OUT => \*(Aq:locale\*(Aq; +\& open(my $out, \*(Aq>\*(Aq, \*(Aqkoi8\*(Aq) or die "open failed: $!"; +\& print $out chr(0x430); # CYRILLIC SMALL LETTER A = KOI8\-R 0xc1 +\& close $out; +\& open(my $in, \*(Aq<\*(Aq, \*(Aqkoi8\*(Aq) or die "open failed: $!"; +\& printf "%#x\en", ord(<$in>); # this should print 0xc1 +\& close $in; +.Ve +.PP +The logic of \f(CW\*(C`:locale\*(C'\fR is described in full in +"The \f(CW\*(C`:locale\*(C'\fR sub-pragma" in encoding, +but in short it is first trying nl_langinfo(\s-1CODESET\s0) and then +guessing from the \s-1LC_ALL\s0 and \s-1LANG\s0 locale environment variables. +\&\f(CW\*(C`:locale\*(C'\fR also implicitly turns on \f(CW\*(C`:std\*(C'\fR. +.PP +\&\f(CW\*(C`:std\*(C'\fR is not a layer but an additional subpragma. When specified in the +import list, it activates an additional functionality of pushing the +layers selected for input/output handles to the standard filehandles +(\s-1STDIN, STDOUT, STDERR\s0). If the new layers and existing layer stack both +end with an \f(CW\*(C`:encoding\*(C'\fR layer, the existing \f(CW\*(C`:encoding\*(C'\fR layer will also +be removed. +.PP +For example, if both input and out are chosen to be \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR, a +\&\f(CW\*(C`:std\*(C'\fR will mean that \s-1STDIN, STDOUT,\s0 and \s-1STDERR\s0 will also have +\&\f(CW\*(C`:encoding(UTF\-8)\*(C'\fR set. On the other hand, if only output is chosen to +be in \f(CW\*(C`:encoding(koi8r)\*(C'\fR, a \f(CW\*(C`:std\*(C'\fR will cause only the \s-1STDOUT\s0 and \s-1STDERR\s0 +to be in \f(CW\*(C`koi8r\*(C'\fR. +.PP +The effect of \f(CW\*(C`:std\*(C'\fR is not lexical as it modifies the layer stack of the +global handles. If you wish to apply only this global effect and not the +effect on handles that are opened in that scope, you can isolate the call +to this pragma in its own lexical scope. +.PP +.Vb 1 +\& { use open \*(Aq:std\*(Aq, IO => \*(Aq:encoding(UTF\-8)\*(Aq } +.Ve +.SH "IMPLEMENTATION DETAILS" +.IX Header "IMPLEMENTATION DETAILS" +There is a class method in \f(CW\*(C`PerlIO::Layer\*(C'\fR \f(CW\*(C`find\*(C'\fR which is +implemented as \s-1XS\s0 code. It is called by \f(CW\*(C`import\*(C'\fR to validate the +layers: +.PP +.Vb 1 +\& PerlIO::Layer::\->find("perlio") +.Ve +.PP +The return value (if defined) is a Perl object, of class +\&\f(CW\*(C`PerlIO::Layer\*(C'\fR which is created by the C code in \fIperlio.c\fR. As +yet there is nothing useful you can do with the object at the perl +level. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"binmode\*(R" in perlfunc, \*(L"open\*(R" in perlfunc, perlunicode, PerlIO, +encoding diff --git a/data/miniconda3/man/man3/ops.3 b/data/miniconda3/man/man3/ops.3 new file mode 100644 index 0000000000000000000000000000000000000000..87df77117cf80d6624902565bcd930ef296c4305 --- /dev/null +++ b/data/miniconda3/man/man3/ops.3 @@ -0,0 +1,159 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "ops 3" +.TH ops 3 "2020-12-18" "perl v5.32.1" "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" +ops \- Perl pragma to restrict unsafe operations when compiling +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl \-Mops=:default ... # only allow reasonably safe operations +\& +\& perl \-M\-ops=system ... # disable the \*(Aqsystem\*(Aq opcode +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Since the \f(CW\*(C`ops\*(C'\fR pragma currently has an irreversible global effect, it is +only of significant practical use with the \f(CW\*(C`\-M\*(C'\fR option on the command line. +.PP +See the Opcode module for information about opcodes, optags, opmasks +and important information about safety. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Opcode, Safe, perlrun diff --git a/data/miniconda3/man/man3/overload.3 b/data/miniconda3/man/man3/overload.3 new file mode 100644 index 0000000000000000000000000000000000000000..cf2d9f12e59d4789be5be28b476c5ba98b5b12aa --- /dev/null +++ b/data/miniconda3/man/man3/overload.3 @@ -0,0 +1,1684 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "overload 3" +.TH overload 3 "2020-12-18" "perl v5.32.1" "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" +overload \- Package for overloading Perl operations +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package SomeThing; +\& +\& use overload +\& \*(Aq+\*(Aq => \e&myadd, +\& \*(Aq\-\*(Aq => \e&mysub; +\& # etc +\& ... +\& +\& package main; +\& $a = SomeThing\->new( 57 ); +\& $b = 5 + $a; +\& ... +\& if (overload::Overloaded $b) {...} +\& ... +\& $strval = overload::StrVal $b; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma allows overloading of Perl's operators for a class. +To overload built-in functions, see \*(L"Overriding Built-in Functions\*(R" in perlsub instead. +.SS "Fundamentals" +.IX Subsection "Fundamentals" +\fIDeclaration\fR +.IX Subsection "Declaration" +.PP +Arguments of the \f(CW\*(C`use overload\*(C'\fR directive are (key, value) pairs. +For the full set of legal keys, see \*(L"Overloadable Operations\*(R" below. +.PP +Operator implementations (the values) can be subroutines, +references to subroutines, or anonymous subroutines +\&\- in other words, anything legal inside a \f(CW\*(C`&{ ... }\*(C'\fR call. +Values specified as strings are interpreted as method names. +Thus +.PP +.Vb 5 +\& package Number; +\& use overload +\& "\-" => "minus", +\& "*=" => \e&muas, +\& \*(Aq""\*(Aq => sub { ...; }; +.Ve +.PP +declares that subtraction is to be implemented by method \f(CW\*(C`minus()\*(C'\fR +in the class \f(CW\*(C`Number\*(C'\fR (or one of its base classes), +and that the function \f(CW\*(C`Number::muas()\*(C'\fR is to be used for the +assignment form of multiplication, \f(CW\*(C`*=\*(C'\fR. +It also defines an anonymous subroutine to implement stringification: +this is called whenever an object blessed into the package \f(CW\*(C`Number\*(C'\fR +is used in a string context (this subroutine might, for example, +return the number as a Roman numeral). +.PP +\fICalling Conventions and Magic Autogeneration\fR +.IX Subsection "Calling Conventions and Magic Autogeneration" +.PP +The following sample implementation of \f(CW\*(C`minus()\*(C'\fR (which assumes +that \f(CW\*(C`Number\*(C'\fR objects are simply blessed references to scalars) +illustrates the calling conventions: +.PP +.Vb 8 +\& package Number; +\& sub minus { +\& my ($self, $other, $swap) = @_; +\& my $result = $$self \- $other; # * +\& $result = \-$result if $swap; +\& ref $result ? $result : bless \e$result; +\& } +\& # * may recurse once \- see table below +.Ve +.PP +Three arguments are passed to all subroutines specified in the +\&\f(CW\*(C`use overload\*(C'\fR directive (with exceptions \- see below, particularly +\&\*(L"nomethod\*(R"). +.PP +The first of these is the operand providing the overloaded +operator implementation \- +in this case, the object whose \f(CW\*(C`minus()\*(C'\fR method is being called. +.PP +The second argument is the other operand, or \f(CW\*(C`undef\*(C'\fR in the +case of a unary operator. +.PP +The third argument is set to \s-1TRUE\s0 if (and only if) the two +operands have been swapped. Perl may do this to ensure that the +first argument (\f(CW$self\fR) is an object implementing the overloaded +operation, in line with general object calling conventions. +For example, if \f(CW$x\fR and \f(CW$y\fR are \f(CW\*(C`Number\*(C'\fRs: +.PP +.Vb 5 +\& operation | generates a call to +\& ============|====================== +\& $x \- $y | minus($x, $y, \*(Aq\*(Aq) +\& $x \- 7 | minus($x, 7, \*(Aq\*(Aq) +\& 7 \- $x | minus($x, 7, 1) +.Ve +.PP +Perl may also use \f(CW\*(C`minus()\*(C'\fR to implement other operators which +have not been specified in the \f(CW\*(C`use overload\*(C'\fR directive, +according to the rules for \*(L"Magic Autogeneration\*(R" described later. +For example, the \f(CW\*(C`use overload\*(C'\fR above declared no subroutine +for any of the operators \f(CW\*(C`\-\-\*(C'\fR, \f(CW\*(C`neg\*(C'\fR (the overload key for +unary minus), or \f(CW\*(C`\-=\*(C'\fR. Thus +.PP +.Vb 5 +\& operation | generates a call to +\& ============|====================== +\& \-$x | minus($x, 0, 1) +\& $x\-\- | minus($x, 1, undef) +\& $x \-= 3 | minus($x, 3, undef) +.Ve +.PP +Note the \f(CW\*(C`undef\*(C'\fRs: +where autogeneration results in the method for a standard +operator which does not change either of its operands, such +as \f(CW\*(C`\-\*(C'\fR, being used to implement an operator which changes +the operand (\*(L"mutators\*(R": here, \f(CW\*(C`\-\-\*(C'\fR and \f(CW\*(C`\-=\*(C'\fR), +Perl passes undef as the third argument. +This still evaluates as \s-1FALSE,\s0 consistent with the fact that +the operands have not been swapped, but gives the subroutine +a chance to alter its behaviour in these cases. +.PP +In all the above examples, \f(CW\*(C`minus()\*(C'\fR is required +only to return the result of the subtraction: +Perl takes care of the assignment to \f(CW$x\fR. +In fact, such methods should \fInot\fR modify their operands, +even if \f(CW\*(C`undef\*(C'\fR is passed as the third argument +(see \*(L"Overloadable Operations\*(R"). +.PP +The same is not true of implementations of \f(CW\*(C`++\*(C'\fR and \f(CW\*(C`\-\-\*(C'\fR: +these are expected to modify their operand. +An appropriate implementation of \f(CW\*(C`\-\-\*(C'\fR might look like +.PP +.Vb 3 +\& use overload \*(Aq\-\-\*(Aq => "decr", +\& # ... +\& sub decr { \-\-${$_[0]}; } +.Ve +.PP +If the \*(L"bitwise\*(R" feature is enabled (see feature), a fifth +\&\s-1TRUE\s0 argument is passed to subroutines handling \f(CW\*(C`&\*(C'\fR, \f(CW\*(C`|\*(C'\fR, \f(CW\*(C`^\*(C'\fR and \f(CW\*(C`~\*(C'\fR. +This indicates that the caller is expecting numeric behaviour. The fourth +argument will be \f(CW\*(C`undef\*(C'\fR, as that position (\f(CW$_[3]\fR) is reserved for use +by \*(L"nomethod\*(R". +.PP +\fIMathemagic, Mutators, and Copy Constructors\fR +.IX Subsection "Mathemagic, Mutators, and Copy Constructors" +.PP +The term 'mathemagic' describes the overloaded implementation +of mathematical operators. +Mathemagical operations raise an issue. +Consider the code: +.PP +.Vb 2 +\& $a = $b; +\& \-\-$a; +.Ve +.PP +If \f(CW$a\fR and \f(CW$b\fR are scalars then after these statements +.PP +.Vb 1 +\& $a == $b \- 1 +.Ve +.PP +An object, however, is a reference to blessed data, so if +\&\f(CW$a\fR and \f(CW$b\fR are objects then the assignment \f(CW\*(C`$a = $b\*(C'\fR +copies only the reference, leaving \f(CW$a\fR and \f(CW$b\fR referring +to the same object data. +One might therefore expect the operation \f(CW\*(C`\-\-$a\*(C'\fR to decrement +\&\f(CW$b\fR as well as \f(CW$a\fR. +However, this would not be consistent with how we expect the +mathematical operators to work. +.PP +Perl resolves this dilemma by transparently calling a copy +constructor before calling a method defined to implement +a mutator (\f(CW\*(C`\-\-\*(C'\fR, \f(CW\*(C`+=\*(C'\fR, and so on.). +In the above example, when Perl reaches the decrement +statement, it makes a copy of the object data in \f(CW$a\fR and +assigns to \f(CW$a\fR a reference to the copied data. +Only then does it call \f(CW\*(C`decr()\*(C'\fR, which alters the copied +data, leaving \f(CW$b\fR unchanged. +Thus the object metaphor is preserved as far as possible, +while mathemagical operations still work according to the +arithmetic metaphor. +.PP +Note: the preceding paragraph describes what happens when +Perl autogenerates the copy constructor for an object based +on a scalar. +For other cases, see \*(L"Copy Constructor\*(R". +.SS "Overloadable Operations" +.IX Subsection "Overloadable Operations" +The complete list of keys that can be specified in the \f(CW\*(C`use overload\*(C'\fR +directive are given, separated by spaces, in the values of the +hash \f(CW%overload::ops\fR: +.PP +.Vb 10 +\& with_assign => \*(Aq+ \- * / % ** << >> x .\*(Aq, +\& assign => \*(Aq+= \-= *= /= %= **= <<= >>= x= .=\*(Aq, +\& num_comparison => \*(Aq< <= > >= == !=\*(Aq, +\& \*(Aq3way_comparison\*(Aq=> \*(Aq<=> cmp\*(Aq, +\& str_comparison => \*(Aqlt le gt ge eq ne\*(Aq, +\& binary => \*(Aq& &= | |= ^ ^= &. &.= |. |.= ^. ^.=\*(Aq, +\& unary => \*(Aqneg ! ~ ~.\*(Aq, +\& mutators => \*(Aq++ \-\-\*(Aq, +\& func => \*(Aqatan2 cos sin exp abs log sqrt int\*(Aq, +\& conversion => \*(Aqbool "" 0+ qr\*(Aq, +\& iterators => \*(Aq<>\*(Aq, +\& filetest => \*(Aq\-X\*(Aq, +\& dereferencing => \*(Aq${} @{} %{} &{} *{}\*(Aq, +\& matching => \*(Aq~~\*(Aq, +\& special => \*(Aqnomethod fallback =\*(Aq +.Ve +.PP +Most of the overloadable operators map one-to-one to these keys. +Exceptions, including additional overloadable operations not +apparent from this hash, are included in the notes which follow. +This list is subject to growth over time. +.PP +A warning is issued if an attempt is made to register an operator not found +above. +.IP "\(bu" 5 +\&\f(CW\*(C`not\*(C'\fR +.Sp +The operator \f(CW\*(C`not\*(C'\fR is not a valid key for \f(CW\*(C`use overload\*(C'\fR. +However, if the operator \f(CW\*(C`!\*(C'\fR is overloaded then the same +implementation will be used for \f(CW\*(C`not\*(C'\fR +(since the two operators differ only in precedence). +.IP "\(bu" 5 +\&\f(CW\*(C`neg\*(C'\fR +.Sp +The key \f(CW\*(C`neg\*(C'\fR is used for unary minus to disambiguate it from +binary \f(CW\*(C`\-\*(C'\fR. +.IP "\(bu" 5 +\&\f(CW\*(C`++\*(C'\fR, \f(CW\*(C`\-\-\*(C'\fR +.Sp +Assuming they are to behave analogously to Perl's \f(CW\*(C`++\*(C'\fR and \f(CW\*(C`\-\-\*(C'\fR, +overloaded implementations of these operators are required to +mutate their operands. +.Sp +No distinction is made between prefix and postfix forms of the +increment and decrement operators: these differ only in the +point at which Perl calls the associated subroutine when +evaluating an expression. +.IP "\(bu" 5 +\&\fIAssignments\fR +.Sp +.Vb 2 +\& += \-= *= /= %= **= <<= >>= x= .= +\& &= |= ^= &.= |.= ^.= +.Ve +.Sp +Simple assignment is not overloadable (the \f(CW\*(Aq=\*(Aq\fR key is used +for the \*(L"Copy Constructor\*(R"). +Perl does have a way to make assignments to an object do whatever +you want, but this involves using \fBtie()\fR, not overload \- +see \*(L"tie\*(R" in perlfunc and the \*(L"\s-1COOKBOOK\*(R"\s0 examples below. +.Sp +The subroutine for the assignment variant of an operator is +required only to return the result of the operation. +It is permitted to change the value of its operand +(this is safe because Perl calls the copy constructor first), +but this is optional since Perl assigns the returned value to +the left-hand operand anyway. +.Sp +An object that overloads an assignment operator does so only in +respect of assignments to that object. +In other words, Perl never calls the corresponding methods with +the third argument (the \*(L"swap\*(R" argument) set to \s-1TRUE.\s0 +For example, the operation +.Sp +.Vb 1 +\& $a *= $b +.Ve +.Sp +cannot lead to \f(CW$b\fR's implementation of \f(CW\*(C`*=\*(C'\fR being called, +even if \f(CW$a\fR is a scalar. +(It can, however, generate a call to \f(CW$b\fR's method for \f(CW\*(C`*\*(C'\fR). +.IP "\(bu" 5 +\&\fINon-mutators with a mutator variant\fR +.Sp +.Vb 2 +\& + \- * / % ** << >> x . +\& & | ^ &. |. ^. +.Ve +.Sp +As described above, +Perl may call methods for operators like \f(CW\*(C`+\*(C'\fR and \f(CW\*(C`&\*(C'\fR in the course +of implementing missing operations like \f(CW\*(C`++\*(C'\fR, \f(CW\*(C`+=\*(C'\fR, and \f(CW\*(C`&=\*(C'\fR. +While these methods may detect this usage by testing the definedness +of the third argument, they should in all cases avoid changing their +operands. +This is because Perl does not call the copy constructor before +invoking these methods. +.IP "\(bu" 5 +\&\f(CW\*(C`int\*(C'\fR +.Sp +Traditionally, the Perl function \f(CW\*(C`int\*(C'\fR rounds to 0 +(see \*(L"int\*(R" in perlfunc), and so for floating-point-like types one +should follow the same semantic. +.IP "\(bu" 5 +\&\fIString, numeric, boolean, and regexp conversions\fR +.Sp +.Vb 1 +\& "" 0+ bool +.Ve +.Sp +These conversions are invoked according to context as necessary. +For example, the subroutine for \f(CW\*(Aq""\*(Aq\fR (stringify) may be used +where the overloaded object is passed as an argument to \f(CW\*(C`print\*(C'\fR, +and that for \f(CW\*(Aqbool\*(Aq\fR where it is tested in the condition of a flow +control statement (like \f(CW\*(C`while\*(C'\fR) or the ternary \f(CW\*(C`?:\*(C'\fR operation. +.Sp +Of course, in contexts like, for example, \f(CW\*(C`$obj + 1\*(C'\fR, Perl will +invoke \f(CW$obj\fR's implementation of \f(CW\*(C`+\*(C'\fR rather than (in this +example) converting \f(CW$obj\fR to a number using the numify method +\&\f(CW\*(Aq0+\*(Aq\fR (an exception to this is when no method has been provided +for \f(CW\*(Aq+\*(Aq\fR and \*(L"fallback\*(R" is set to \s-1TRUE\s0). +.Sp +The subroutines for \f(CW\*(Aq""\*(Aq\fR, \f(CW\*(Aq0+\*(Aq\fR, and \f(CW\*(Aqbool\*(Aq\fR can return +any arbitrary Perl value. +If the corresponding operation for this value is overloaded too, +the operation will be called again with this value. +.Sp +As a special case if the overload returns the object itself then it will +be used directly. An overloaded conversion returning the object is +probably a bug, because you're likely to get something that looks like +\&\f(CW\*(C`YourPackage=HASH(0x8172b34)\*(C'\fR. +.Sp +.Vb 1 +\& qr +.Ve +.Sp +The subroutine for \f(CW\*(Aqqr\*(Aq\fR is used wherever the object is +interpolated into or used as a regexp, including when it +appears on the \s-1RHS\s0 of a \f(CW\*(C`=~\*(C'\fR or \f(CW\*(C`!~\*(C'\fR operator. +.Sp +\&\f(CW\*(C`qr\*(C'\fR must return a compiled regexp, or a ref to a compiled regexp +(such as \f(CW\*(C`qr//\*(C'\fR returns), and any further overloading on the return +value will be ignored. +.IP "\(bu" 5 +\&\fIIteration\fR +.Sp +If \f(CW\*(C`<>\*(C'\fR is overloaded then the same implementation is used +for both the \fIread-filehandle\fR syntax \f(CW\*(C`<$var>\*(C'\fR and +\&\fIglobbing\fR syntax \f(CW\*(C`<${var}>\*(C'\fR. +.IP "\(bu" 5 +\&\fIFile tests\fR +.Sp +The key \f(CW\*(Aq\-X\*(Aq\fR is used to specify a subroutine to handle all the +filetest operators (\f(CW\*(C`\-f\*(C'\fR, \f(CW\*(C`\-x\*(C'\fR, and so on: see \*(L"\-X\*(R" in perlfunc for +the full list); +it is not possible to overload any filetest operator individually. +To distinguish them, the letter following the '\-' is passed as the +second argument (that is, in the slot that for binary operators +is used to pass the second operand). +.Sp +Calling an overloaded filetest operator does not affect the stat value +associated with the special filehandle \f(CW\*(C`_\*(C'\fR. It still refers to the +result of the last \f(CW\*(C`stat\*(C'\fR, \f(CW\*(C`lstat\*(C'\fR or unoverloaded filetest. +.Sp +This overload was introduced in Perl 5.12. +.IP "\(bu" 5 +\&\fIMatching\fR +.Sp +The key \f(CW"~~"\fR allows you to override the smart matching logic used by +the \f(CW\*(C`~~\*(C'\fR operator and the switch construct (\f(CW\*(C`given\*(C'\fR/\f(CW\*(C`when\*(C'\fR). See +\&\*(L"Switch Statements\*(R" in perlsyn and feature. +.Sp +Unusually, the overloaded implementation of the smart match operator +does not get full control of the smart match behaviour. +In particular, in the following code: +.Sp +.Vb 2 +\& package Foo; +\& use overload \*(Aq~~\*(Aq => \*(Aqmatch\*(Aq; +\& +\& my $obj = Foo\->new(); +\& $obj ~~ [ 1,2,3 ]; +.Ve +.Sp +the smart match does \fInot\fR invoke the method call like this: +.Sp +.Vb 1 +\& $obj\->match([1,2,3],0); +.Ve +.Sp +rather, the smart match distributive rule takes precedence, so \f(CW$obj\fR is +smart matched against each array element in turn until a match is found, +so you may see between one and three of these calls instead: +.Sp +.Vb 3 +\& $obj\->match(1,0); +\& $obj\->match(2,0); +\& $obj\->match(3,0); +.Ve +.Sp +Consult the match table in \*(L"Smartmatch Operator\*(R" in perlop for +details of when overloading is invoked. +.IP "\(bu" 5 +\&\fIDereferencing\fR +.Sp +.Vb 1 +\& ${} @{} %{} &{} *{} +.Ve +.Sp +If these operators are not explicitly overloaded then they +work in the normal way, yielding the underlying scalar, +array, or whatever stores the object data (or the appropriate +error message if the dereference operator doesn't match it). +Defining a catch-all \f(CW\*(Aqnomethod\*(Aq\fR (see below) +makes no difference to this as the catch-all function will +not be called to implement a missing dereference operator. +.Sp +If a dereference operator is overloaded then it must return a +\&\fIreference\fR of the appropriate type (for example, the +subroutine for key \f(CW\*(Aq${}\*(Aq\fR should return a reference to a +scalar, not a scalar), or another object which overloads the +operator: that is, the subroutine only determines what is +dereferenced and the actual dereferencing is left to Perl. +As a special case, if the subroutine returns the object itself +then it will not be called again \- avoiding infinite recursion. +.IP "\(bu" 5 +\&\fISpecial\fR +.Sp +.Vb 1 +\& nomethod fallback = +.Ve +.Sp +See "Special Keys for \f(CW\*(C`use overload\*(C'\fR". +.SS "Magic Autogeneration" +.IX Subsection "Magic Autogeneration" +If a method for an operation is not found then Perl tries to +autogenerate a substitute implementation from the operations +that have been defined. +.PP +Note: the behaviour described in this section can be disabled +by setting \f(CW\*(C`fallback\*(C'\fR to \s-1FALSE\s0 (see \*(L"fallback\*(R"). +.PP +In the following tables, numbers indicate priority. +For example, the table below states that, +if no implementation for \f(CW\*(Aq!\*(Aq\fR has been defined then Perl will +implement it using \f(CW\*(Aqbool\*(Aq\fR (that is, by inverting the value +returned by the method for \f(CW\*(Aqbool\*(Aq\fR); +if boolean conversion is also unimplemented then Perl will +use \f(CW\*(Aq0+\*(Aq\fR or, failing that, \f(CW\*(Aq""\*(Aq\fR. +.PP +.Vb 10 +\& operator | can be autogenerated from +\& | +\& | 0+ "" bool . x +\& =========|========================== +\& 0+ | 1 2 +\& "" | 1 2 +\& bool | 1 2 +\& int | 1 2 3 +\& ! | 2 3 1 +\& qr | 2 1 3 +\& . | 2 1 3 +\& x | 2 1 3 +\& .= | 3 2 4 1 +\& x= | 3 2 4 1 +\& <> | 2 1 3 +\& \-X | 2 1 3 +.Ve +.PP +Note: The iterator (\f(CW\*(Aq<>\*(Aq\fR) and file test (\f(CW\*(Aq\-X\*(Aq\fR) +operators work as normal: if the operand is not a blessed glob or +\&\s-1IO\s0 reference then it is converted to a string (using the method +for \f(CW\*(Aq""\*(Aq\fR, \f(CW\*(Aq0+\*(Aq\fR, or \f(CW\*(Aqbool\*(Aq\fR) to be interpreted as a glob +or filename. +.PP +.Vb 10 +\& operator | can be autogenerated from +\& | +\& | < <=> neg \-= \- +\& =========|========================== +\& neg | 1 +\& \-= | 1 +\& \-\- | 1 2 +\& abs | a1 a2 b1 b2 [*] +\& < | 1 +\& <= | 1 +\& > | 1 +\& >= | 1 +\& == | 1 +\& != | 1 +\& +\& * one from [a1, a2] and one from [b1, b2] +.Ve +.PP +Just as numeric comparisons can be autogenerated from the method +for \f(CW\*(Aq<=>\*(Aq\fR, string comparisons can be autogenerated from +that for \f(CW\*(Aqcmp\*(Aq\fR: +.PP +.Vb 3 +\& operators | can be autogenerated from +\& ====================|=========================== +\& lt gt le ge eq ne | cmp +.Ve +.PP +Similarly, autogeneration for keys \f(CW\*(Aq+=\*(Aq\fR and \f(CW\*(Aq++\*(Aq\fR is analogous +to \f(CW\*(Aq\-=\*(Aq\fR and \f(CW\*(Aq\-\-\*(Aq\fR above: +.PP +.Vb 6 +\& operator | can be autogenerated from +\& | +\& | += + +\& =========|========================== +\& += | 1 +\& ++ | 1 2 +.Ve +.PP +And other assignment variations are analogous to +\&\f(CW\*(Aq+=\*(Aq\fR and \f(CW\*(Aq\-=\*(Aq\fR (and similar to \f(CW\*(Aq.=\*(Aq\fR and \f(CW\*(Aqx=\*(Aq\fR above): +.PP +.Vb 3 +\& operator || *= /= %= **= <<= >>= &= ^= |= &.= ^.= |.= +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-||\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& autogenerated from || * / % ** << >> & ^ | &. ^. |. +.Ve +.PP +Note also that the copy constructor (key \f(CW\*(Aq=\*(Aq\fR) may be +autogenerated, but only for objects based on scalars. +See \*(L"Copy Constructor\*(R". +.PP +\fIMinimal Set of Overloaded Operations\fR +.IX Subsection "Minimal Set of Overloaded Operations" +.PP +Since some operations can be automatically generated from others, there is +a minimal set of operations that need to be overloaded in order to have +the complete set of overloaded operations at one's disposal. +Of course, the autogenerated operations may not do exactly what the user +expects. The minimal set is: +.PP +.Vb 6 +\& + \- * / % ** << >> x +\& <=> cmp +\& & | ^ ~ &. |. ^. ~. +\& atan2 cos sin exp log sqrt int +\& "" 0+ bool +\& ~~ +.Ve +.PP +Of the conversions, only one of string, boolean or numeric is +needed because each can be generated from either of the other two. +.ie n .SS "Special Keys for ""use overload""" +.el .SS "Special Keys for \f(CWuse overload\fP" +.IX Subsection "Special Keys for use overload" +\fI\f(CI\*(C`nomethod\*(C'\fI\fR +.IX Subsection "nomethod" +.PP +The \f(CW\*(Aqnomethod\*(Aq\fR key is used to specify a catch-all function to +be called for any operator that is not individually overloaded. +The specified function will be passed four parameters. +The first three arguments coincide with those that would have been +passed to the corresponding method if it had been defined. +The fourth argument is the \f(CW\*(C`use overload\*(C'\fR key for that missing +method. If the \*(L"bitwise\*(R" feature is enabled (see feature), +a fifth \s-1TRUE\s0 argument is passed to subroutines handling \f(CW\*(C`&\*(C'\fR, \f(CW\*(C`|\*(C'\fR, \f(CW\*(C`^\*(C'\fR and \f(CW\*(C`~\*(C'\fR to indicate that the caller is expecting numeric behaviour. +.PP +For example, if \f(CW$a\fR is an object blessed into a package declaring +.PP +.Vb 1 +\& use overload \*(Aqnomethod\*(Aq => \*(Aqcatch_all\*(Aq, # ... +.Ve +.PP +then the operation +.PP +.Vb 1 +\& 3 + $a +.Ve +.PP +could (unless a method is specifically declared for the key +\&\f(CW\*(Aq+\*(Aq\fR) result in a call +.PP +.Vb 1 +\& catch_all($a, 3, 1, \*(Aq+\*(Aq) +.Ve +.PP +See \*(L"How Perl Chooses an Operator Implementation\*(R". +.PP +\fI\f(CI\*(C`fallback\*(C'\fI\fR +.IX Subsection "fallback" +.PP +The value assigned to the key \f(CW\*(Aqfallback\*(Aq\fR tells Perl how hard +it should try to find an alternative way to implement a missing +operator. +.IP "\(bu" 4 +defined, but \s-1FALSE\s0 +.Sp +.Vb 1 +\& use overload "fallback" => 0, # ... ; +.Ve +.Sp +This disables \*(L"Magic Autogeneration\*(R". +.IP "\(bu" 4 +\&\f(CW\*(C`undef\*(C'\fR +.Sp +In the default case where no value is explicitly assigned to +\&\f(CW\*(C`fallback\*(C'\fR, magic autogeneration is enabled. +.IP "\(bu" 4 +\&\s-1TRUE\s0 +.Sp +The same as for \f(CW\*(C`undef\*(C'\fR, but if a missing operator cannot be +autogenerated then, instead of issuing an error message, Perl +is allowed to revert to what it would have done for that +operator if there had been no \f(CW\*(C`use overload\*(C'\fR directive. +.Sp +Note: in most cases, particularly the \*(L"Copy Constructor\*(R", +this is unlikely to be appropriate behaviour. +.PP +See \*(L"How Perl Chooses an Operator Implementation\*(R". +.PP +\fICopy Constructor\fR +.IX Subsection "Copy Constructor" +.PP +As mentioned above, +this operation is called when a mutator is applied to a reference +that shares its object with some other reference. +For example, if \f(CW$b\fR is mathemagical, and \f(CW\*(Aq++\*(Aq\fR is overloaded +with \f(CW\*(Aqincr\*(Aq\fR, and \f(CW\*(Aq=\*(Aq\fR is overloaded with \f(CW\*(Aqclone\*(Aq\fR, then the +code +.PP +.Vb 3 +\& $a = $b; +\& # ... (other code which does not modify $a or $b) ... +\& ++$b; +.Ve +.PP +would be executed in a manner equivalent to +.PP +.Vb 4 +\& $a = $b; +\& # ... +\& $b = $b\->clone(undef, ""); +\& $b\->incr(undef, ""); +.Ve +.PP +Note: +.IP "\(bu" 4 +The subroutine for \f(CW\*(Aq=\*(Aq\fR does not overload the Perl assignment +operator: it is used only to allow mutators to work as described +here. (See \*(L"Assignments\*(R" above.) +.IP "\(bu" 4 +As for other operations, the subroutine implementing '=' is passed +three arguments, though the last two are always \f(CW\*(C`undef\*(C'\fR and \f(CW\*(Aq\*(Aq\fR. +.IP "\(bu" 4 +The copy constructor is called only before a call to a function +declared to implement a mutator, for example, if \f(CW\*(C`++$b;\*(C'\fR in the +code above is effected via a method declared for key \f(CW\*(Aq++\*(Aq\fR +(or 'nomethod', passed \f(CW\*(Aq++\*(Aq\fR as the fourth argument) or, by +autogeneration, \f(CW\*(Aq+=\*(Aq\fR. +It is not called if the increment operation is effected by a call +to the method for \f(CW\*(Aq+\*(Aq\fR since, in the equivalent code, +.Sp +.Vb 2 +\& $a = $b; +\& $b = $b + 1; +.Ve +.Sp +the data referred to by \f(CW$a\fR is unchanged by the assignment to +\&\f(CW$b\fR of a reference to new object data. +.IP "\(bu" 4 +The copy constructor is not called if Perl determines that it is +unnecessary because there is no other reference to the data being +modified. +.IP "\(bu" 4 +If \f(CW\*(Aqfallback\*(Aq\fR is undefined or \s-1TRUE\s0 then a copy constructor +can be autogenerated, but only for objects based on scalars. +In other cases it needs to be defined explicitly. +Where an object's data is stored as, for example, an array of +scalars, the following might be appropriate: +.Sp +.Vb 1 +\& use overload \*(Aq=\*(Aq => sub { bless [ @{$_[0]} ] }, # ... +.Ve +.IP "\(bu" 4 +If \f(CW\*(Aqfallback\*(Aq\fR is \s-1TRUE\s0 and no copy constructor is defined then, +for objects not based on scalars, Perl may silently fall back on +simple assignment \- that is, assignment of the object reference. +In effect, this disables the copy constructor mechanism since +no new copy of the object data is created. +This is almost certainly not what you want. +(It is, however, consistent: for example, Perl's fallback for the +\&\f(CW\*(C`++\*(C'\fR operator is to increment the reference itself.) +.SS "How Perl Chooses an Operator Implementation" +.IX Subsection "How Perl Chooses an Operator Implementation" +Which is checked first, \f(CW\*(C`nomethod\*(C'\fR or \f(CW\*(C`fallback\*(C'\fR? +If the two operands of an operator are of different types and +both overload the operator, which implementation is used? +The following are the precedence rules: +.IP "1." 4 +If the first operand has declared a subroutine to overload the +operator then use that implementation. +.IP "2." 4 +Otherwise, if fallback is \s-1TRUE\s0 or undefined for the +first operand then see if the +rules for autogeneration +allows another of its operators to be used instead. +.IP "3." 4 +Unless the operator is an assignment (\f(CW\*(C`+=\*(C'\fR, \f(CW\*(C`\-=\*(C'\fR, etc.), +repeat step (1) in respect of the second operand. +.IP "4." 4 +Repeat Step (2) in respect of the second operand. +.IP "5." 4 +If the first operand has a \*(L"nomethod\*(R" method then use that. +.IP "6." 4 +If the second operand has a \*(L"nomethod\*(R" method then use that. +.IP "7." 4 +If \f(CW\*(C`fallback\*(C'\fR is \s-1TRUE\s0 for both operands +then perform the usual operation for the operator, +treating the operands as numbers, strings, or booleans +as appropriate for the operator (see note). +.IP "8." 4 +Nothing worked \- die. +.PP +Where there is only one operand (or only one operand with +overloading) the checks in respect of the other operand above are +skipped. +.PP +There are exceptions to the above rules for dereference operations +(which, if Step 1 fails, always fall back to the normal, built-in +implementations \- see Dereferencing), and for \f(CW\*(C`~~\*(C'\fR (which has its +own set of rules \- see \f(CW\*(C`Matching\*(C'\fR under \*(L"Overloadable Operations\*(R" +above). +.PP +Note on Step 7: some operators have a different semantic depending +on the type of their operands. +As there is no way to instruct Perl to treat the operands as, e.g., +numbers instead of strings, the result here may not be what you +expect. +See \*(L"\s-1BUGS AND PITFALLS\*(R"\s0. +.SS "Losing Overloading" +.IX Subsection "Losing Overloading" +The restriction for the comparison operation is that even if, for example, +\&\f(CW\*(C`cmp\*(C'\fR should return a blessed reference, the autogenerated \f(CW\*(C`lt\*(C'\fR +function will produce only a standard logical value based on the +numerical value of the result of \f(CW\*(C`cmp\*(C'\fR. In particular, a working +numeric conversion is needed in this case (possibly expressed in terms of +other conversions). +.PP +Similarly, \f(CW\*(C`.=\*(C'\fR and \f(CW\*(C`x=\*(C'\fR operators lose their mathemagical properties +if the string conversion substitution is applied. +.PP +When you \fBchop()\fR a mathemagical object it is promoted to a string and its +mathemagical properties are lost. The same can happen with other +operations as well. +.SS "Inheritance and Overloading" +.IX Subsection "Inheritance and Overloading" +Overloading respects inheritance via the \f(CW@ISA\fR hierarchy. +Inheritance interacts with overloading in two ways. +.ie n .IP "Method names in the ""use overload"" directive" 4 +.el .IP "Method names in the \f(CWuse overload\fR directive" 4 +.IX Item "Method names in the use overload directive" +If \f(CW\*(C`value\*(C'\fR in +.Sp +.Vb 1 +\& use overload key => value; +.Ve +.Sp +is a string, it is interpreted as a method name \- which may +(in the usual way) be inherited from another class. +.IP "Overloading of an operation is inherited by derived classes" 4 +.IX Item "Overloading of an operation is inherited by derived classes" +Any class derived from an overloaded class is also overloaded +and inherits its operator implementations. +If the same operator is overloaded in more than one ancestor +then the implementation is determined by the usual inheritance +rules. +.Sp +For example, if \f(CW\*(C`A\*(C'\fR inherits from \f(CW\*(C`B\*(C'\fR and \f(CW\*(C`C\*(C'\fR (in that order), +\&\f(CW\*(C`B\*(C'\fR overloads \f(CW\*(C`+\*(C'\fR with \f(CW\*(C`\e&D::plus_sub\*(C'\fR, and \f(CW\*(C`C\*(C'\fR overloads +\&\f(CW\*(C`+\*(C'\fR by \f(CW"plus_meth"\fR, then the subroutine \f(CW\*(C`D::plus_sub\*(C'\fR will +be called to implement operation \f(CW\*(C`+\*(C'\fR for an object in package \f(CW\*(C`A\*(C'\fR. +.PP +Note that in Perl version prior to 5.18 inheritance of the \f(CW\*(C`fallback\*(C'\fR key +was not governed by the above rules. The value of \f(CW\*(C`fallback\*(C'\fR in the first +overloaded ancestor was used. This was fixed in 5.18 to follow the usual +rules of inheritance. +.SS "Run-time Overloading" +.IX Subsection "Run-time Overloading" +Since all \f(CW\*(C`use\*(C'\fR directives are executed at compile-time, the only way to +change overloading during run-time is to +.PP +.Vb 1 +\& eval \*(Aquse overload "+" => \e&addmethod\*(Aq; +.Ve +.PP +You can also use +.PP +.Vb 1 +\& eval \*(Aqno overload "+", "\-\-", "<="\*(Aq; +.Ve +.PP +though the use of these constructs during run-time is questionable. +.SS "Public Functions" +.IX Subsection "Public Functions" +Package \f(CW\*(C`overload.pm\*(C'\fR provides the following public functions: +.IP "overload::StrVal(arg)" 5 +.IX Item "overload::StrVal(arg)" +Gives the string value of \f(CW\*(C`arg\*(C'\fR as in the +absence of stringify overloading. If you +are using this to get the address of a reference (useful for checking if two +references point to the same thing) then you may be better off using +\&\f(CW\*(C`Scalar::Util::refaddr()\*(C'\fR, which is faster. +.IP "overload::Overloaded(arg)" 5 +.IX Item "overload::Overloaded(arg)" +Returns true if \f(CW\*(C`arg\*(C'\fR is subject to overloading of some operations. +.IP "overload::Method(obj,op)" 5 +.IX Item "overload::Method(obj,op)" +Returns \f(CW\*(C`undef\*(C'\fR or a reference to the method that implements \f(CW\*(C`op\*(C'\fR. +.SS "Overloading Constants" +.IX Subsection "Overloading Constants" +For some applications, the Perl parser mangles constants too much. +It is possible to hook into this process via \f(CW\*(C`overload::constant()\*(C'\fR +and \f(CW\*(C`overload::remove_constant()\*(C'\fR functions. +.PP +These functions take a hash as an argument. The recognized keys of this hash +are: +.IP "integer" 8 +.IX Item "integer" +to overload integer constants, +.IP "float" 8 +.IX Item "float" +to overload floating point constants, +.IP "binary" 8 +.IX Item "binary" +to overload octal and hexadecimal constants, +.IP "q" 8 +.IX Item "q" +to overload \f(CW\*(C`q\*(C'\fR\-quoted strings, constant pieces of \f(CW\*(C`qq\*(C'\fR\- and \f(CW\*(C`qx\*(C'\fR\-quoted +strings and here-documents, +.IP "qr" 8 +.IX Item "qr" +to overload constant pieces of regular expressions. +.PP +The corresponding values are references to functions which take three arguments: +the first one is the \fIinitial\fR string form of the constant, the second one +is how Perl interprets this constant, the third one is how the constant is used. +Note that the initial string form does not +contain string delimiters, and has backslashes in backslash-delimiter +combinations stripped (thus the value of delimiter is not relevant for +processing of this string). The return value of this function is how this +constant is going to be interpreted by Perl. The third argument is undefined +unless for overloaded \f(CW\*(C`q\*(C'\fR\- and \f(CW\*(C`qr\*(C'\fR\- constants, it is \f(CW\*(C`q\*(C'\fR in single-quote +context (comes from strings, regular expressions, and single-quote \s-1HERE\s0 +documents), it is \f(CW\*(C`tr\*(C'\fR for arguments of \f(CW\*(C`tr\*(C'\fR/\f(CW\*(C`y\*(C'\fR operators, +it is \f(CW\*(C`s\*(C'\fR for right-hand side of \f(CW\*(C`s\*(C'\fR\-operator, and it is \f(CW\*(C`qq\*(C'\fR otherwise. +.PP +Since an expression \f(CW"ab$cd,,"\fR is just a shortcut for \f(CW\*(Aqab\*(Aq . $cd . \*(Aq,,\*(Aq\fR, +it is expected that overloaded constant strings are equipped with reasonable +overloaded catenation operator, otherwise absurd results will result. +Similarly, negative numbers are considered as negations of positive constants. +.PP +Note that it is probably meaningless to call the functions \fBoverload::constant()\fR +and \fBoverload::remove_constant()\fR from anywhere but \fBimport()\fR and \fBunimport()\fR methods. +From these methods they may be called as +.PP +.Vb 6 +\& sub import { +\& shift; +\& return unless @_; +\& die "unknown import: @_" unless @_ == 1 and $_[0] eq \*(Aq:constant\*(Aq; +\& overload::constant integer => sub {Math::BigInt\->new(shift)}; +\& } +.Ve +.SH "IMPLEMENTATION" +.IX Header "IMPLEMENTATION" +What follows is subject to change \s-1RSN.\s0 +.PP +The table of methods for all operations is cached in magic for the +symbol table hash for the package. The cache is invalidated during +processing of \f(CW\*(C`use overload\*(C'\fR, \f(CW\*(C`no overload\*(C'\fR, new function +definitions, and changes in \f(CW@ISA\fR. +.PP +(Every SVish thing has a magic queue, and magic is an entry in that +queue. This is how a single variable may participate in multiple +forms of magic simultaneously. For instance, environment variables +regularly have two forms at once: their \f(CW%ENV\fR magic and their taint +magic. However, the magic which implements overloading is applied to +the stashes, which are rarely used directly, thus should not slow down +Perl.) +.PP +If a package uses overload, it carries a special flag. This flag is also +set when new functions are defined or \f(CW@ISA\fR is modified. There will be a +slight speed penalty on the very first operation thereafter that supports +overloading, while the overload tables are updated. If there is no +overloading present, the flag is turned off. Thus the only speed penalty +thereafter is the checking of this flag. +.PP +It is expected that arguments to methods that are not explicitly supposed +to be changed are constant (but this is not enforced). +.SH "COOKBOOK" +.IX Header "COOKBOOK" +Please add examples to what follows! +.SS "Two-face Scalars" +.IX Subsection "Two-face Scalars" +Put this in \fItwo_face.pm\fR in your Perl library directory: +.PP +.Vb 6 +\& package two_face; # Scalars with separate string and +\& # numeric values. +\& sub new { my $p = shift; bless [@_], $p } +\& use overload \*(Aq""\*(Aq => \e&str, \*(Aq0+\*(Aq => \e&num, fallback => 1; +\& sub num {shift\->[1]} +\& sub str {shift\->[0]} +.Ve +.PP +Use it as follows: +.PP +.Vb 4 +\& require two_face; +\& my $seven = two_face\->new("vii", 7); +\& printf "seven=$seven, seven=%d, eight=%d\en", $seven, $seven+1; +\& print "seven contains \*(Aqi\*(Aq\en" if $seven =~ /i/; +.Ve +.PP +(The second line creates a scalar which has both a string value, and a +numeric value.) This prints: +.PP +.Vb 2 +\& seven=vii, seven=7, eight=8 +\& seven contains \*(Aqi\*(Aq +.Ve +.SS "Two-face References" +.IX Subsection "Two-face References" +Suppose you want to create an object which is accessible as both an +array reference and a hash reference. +.PP +.Vb 12 +\& package two_refs; +\& use overload \*(Aq%{}\*(Aq => \e&gethash, \*(Aq@{}\*(Aq => sub { $ {shift()} }; +\& sub new { +\& my $p = shift; +\& bless \e [@_], $p; +\& } +\& sub gethash { +\& my %h; +\& my $self = shift; +\& tie %h, ref $self, $self; +\& \e%h; +\& } +\& +\& sub TIEHASH { my $p = shift; bless \e shift, $p } +\& my %fields; +\& my $i = 0; +\& $fields{$_} = $i++ foreach qw{zero one two three}; +\& sub STORE { +\& my $self = ${shift()}; +\& my $key = $fields{shift()}; +\& defined $key or die "Out of band access"; +\& $$self\->[$key] = shift; +\& } +\& sub FETCH { +\& my $self = ${shift()}; +\& my $key = $fields{shift()}; +\& defined $key or die "Out of band access"; +\& $$self\->[$key]; +\& } +.Ve +.PP +Now one can access an object using both the array and hash syntax: +.PP +.Vb 3 +\& my $bar = two_refs\->new(3,4,5,6); +\& $bar\->[2] = 11; +\& $bar\->{two} == 11 or die \*(Aqbad hash fetch\*(Aq; +.Ve +.PP +Note several important features of this example. First of all, the +\&\fIactual\fR type of \f(CW$bar\fR is a scalar reference, and we do not overload +the scalar dereference. Thus we can get the \fIactual\fR non-overloaded +contents of \f(CW$bar\fR by just using \f(CW$$bar\fR (what we do in functions which +overload dereference). Similarly, the object returned by the +\&\s-1\fBTIEHASH\s0()\fR method is a scalar reference. +.PP +Second, we create a new tied hash each time the hash syntax is used. +This allows us not to worry about a possibility of a reference loop, +which would lead to a memory leak. +.PP +Both these problems can be cured. Say, if we want to overload hash +dereference on a reference to an object which is \fIimplemented\fR as a +hash itself, the only problem one has to circumvent is how to access +this \fIactual\fR hash (as opposed to the \fIvirtual\fR hash exhibited by the +overloaded dereference operator). Here is one possible fetching routine: +.PP +.Vb 8 +\& sub access_hash { +\& my ($self, $key) = (shift, shift); +\& my $class = ref $self; +\& bless $self, \*(Aqoverload::dummy\*(Aq; # Disable overloading of %{} +\& my $out = $self\->{$key}; +\& bless $self, $class; # Restore overloading +\& $out; +\& } +.Ve +.PP +To remove creation of the tied hash on each access, one may an extra +level of indirection which allows a non-circular structure of references: +.PP +.Vb 10 +\& package two_refs1; +\& use overload \*(Aq%{}\*(Aq => sub { ${shift()}\->[1] }, +\& \*(Aq@{}\*(Aq => sub { ${shift()}\->[0] }; +\& sub new { +\& my $p = shift; +\& my $a = [@_]; +\& my %h; +\& tie %h, $p, $a; +\& bless \e [$a, \e%h], $p; +\& } +\& sub gethash { +\& my %h; +\& my $self = shift; +\& tie %h, ref $self, $self; +\& \e%h; +\& } +\& +\& sub TIEHASH { my $p = shift; bless \e shift, $p } +\& my %fields; +\& my $i = 0; +\& $fields{$_} = $i++ foreach qw{zero one two three}; +\& sub STORE { +\& my $a = ${shift()}; +\& my $key = $fields{shift()}; +\& defined $key or die "Out of band access"; +\& $a\->[$key] = shift; +\& } +\& sub FETCH { +\& my $a = ${shift()}; +\& my $key = $fields{shift()}; +\& defined $key or die "Out of band access"; +\& $a\->[$key]; +\& } +.Ve +.PP +Now if \f(CW$baz\fR is overloaded like this, then \f(CW$baz\fR is a reference to a +reference to the intermediate array, which keeps a reference to an +actual array, and the access hash. The \fBtie()\fRing object for the access +hash is a reference to a reference to the actual array, so +.IP "\(bu" 4 +There are no loops of references. +.IP "\(bu" 4 +Both \*(L"objects\*(R" which are blessed into the class \f(CW\*(C`two_refs1\*(C'\fR are +references to a reference to an array, thus references to a \fIscalar\fR. +Thus the accessor expression \f(CW\*(C`$$foo\->[$ind]\*(C'\fR involves no +overloaded operations. +.SS "Symbolic Calculator" +.IX Subsection "Symbolic Calculator" +Put this in \fIsymbolic.pm\fR in your Perl library directory: +.PP +.Vb 2 +\& package symbolic; # Primitive symbolic calculator +\& use overload nomethod => \e&wrap; +\& +\& sub new { shift; bless [\*(Aqn\*(Aq, @_] } +\& sub wrap { +\& my ($obj, $other, $inv, $meth) = @_; +\& ($obj, $other) = ($other, $obj) if $inv; +\& bless [$meth, $obj, $other]; +\& } +.Ve +.PP +This module is very unusual as overloaded modules go: it does not +provide any usual overloaded operators, instead it provides an +implementation for "\f(CW\*(C`nomethod\*(C'\fR". In this example the \f(CW\*(C`nomethod\*(C'\fR +subroutine returns an object which encapsulates operations done over +the objects: \f(CW\*(C`symbolic\->new(3)\*(C'\fR contains \f(CW\*(C`[\*(Aqn\*(Aq, 3]\*(C'\fR, \f(CW\*(C`2 + +symbolic\->new(3)\*(C'\fR contains \f(CW\*(C`[\*(Aq+\*(Aq, 2, [\*(Aqn\*(Aq, 3]]\*(C'\fR. +.PP +Here is an example of the script which \*(L"calculates\*(R" the side of +circumscribed octagon using the above package: +.PP +.Vb 4 +\& require symbolic; +\& my $iter = 1; # 2**($iter+2) = 8 +\& my $side = symbolic\->new(1); +\& my $cnt = $iter; +\& +\& while ($cnt\-\-) { +\& $side = (sqrt(1 + $side**2) \- 1)/$side; +\& } +\& print "OK\en"; +.Ve +.PP +The value of \f(CW$side\fR is +.PP +.Vb 2 +\& [\*(Aq/\*(Aq, [\*(Aq\-\*(Aq, [\*(Aqsqrt\*(Aq, [\*(Aq+\*(Aq, 1, [\*(Aq**\*(Aq, [\*(Aqn\*(Aq, 1], 2]], +\& undef], 1], [\*(Aqn\*(Aq, 1]] +.Ve +.PP +Note that while we obtained this value using a nice little script, +there is no simple way to \fIuse\fR this value. In fact this value may +be inspected in debugger (see perldebug), but only if +\&\f(CW\*(C`bareStringify\*(C'\fR \fBO\fRption is set, and not via \f(CW\*(C`p\*(C'\fR command. +.PP +If one attempts to print this value, then the overloaded operator +\&\f(CW""\fR will be called, which will call \f(CW\*(C`nomethod\*(C'\fR operator. The +result of this operator will be stringified again, but this result is +again of type \f(CW\*(C`symbolic\*(C'\fR, which will lead to an infinite loop. +.PP +Add a pretty-printer method to the module \fIsymbolic.pm\fR: +.PP +.Vb 8 +\& sub pretty { +\& my ($meth, $a, $b) = @{+shift}; +\& $a = \*(Aqu\*(Aq unless defined $a; +\& $b = \*(Aqu\*(Aq unless defined $b; +\& $a = $a\->pretty if ref $a; +\& $b = $b\->pretty if ref $b; +\& "[$meth $a $b]"; +\& } +.Ve +.PP +Now one can finish the script by +.PP +.Vb 1 +\& print "side = ", $side\->pretty, "\en"; +.Ve +.PP +The method \f(CW\*(C`pretty\*(C'\fR is doing object-to-string conversion, so it +is natural to overload the operator \f(CW""\fR using this method. However, +inside such a method it is not necessary to pretty-print the +\&\fIcomponents\fR \f(CW$a\fR and \f(CW$b\fR of an object. In the above subroutine +\&\f(CW"[$meth $a $b]"\fR is a catenation of some strings and components \f(CW$a\fR +and \f(CW$b\fR. If these components use overloading, the catenation operator +will look for an overloaded operator \f(CW\*(C`.\*(C'\fR; if not present, it will +look for an overloaded operator \f(CW""\fR. Thus it is enough to use +.PP +.Vb 7 +\& use overload nomethod => \e&wrap, \*(Aq""\*(Aq => \e&str; +\& sub str { +\& my ($meth, $a, $b) = @{+shift}; +\& $a = \*(Aqu\*(Aq unless defined $a; +\& $b = \*(Aqu\*(Aq unless defined $b; +\& "[$meth $a $b]"; +\& } +.Ve +.PP +Now one can change the last line of the script to +.PP +.Vb 1 +\& print "side = $side\en"; +.Ve +.PP +which outputs +.PP +.Vb 1 +\& side = [/ [\- [sqrt [+ 1 [** [n 1 u] 2]] u] 1] [n 1 u]] +.Ve +.PP +and one can inspect the value in debugger using all the possible +methods. +.PP +Something is still amiss: consider the loop variable \f(CW$cnt\fR of the +script. It was a number, not an object. We cannot make this value of +type \f(CW\*(C`symbolic\*(C'\fR, since then the loop will not terminate. +.PP +Indeed, to terminate the cycle, the \f(CW$cnt\fR should become false. +However, the operator \f(CW\*(C`bool\*(C'\fR for checking falsity is overloaded (this +time via overloaded \f(CW""\fR), and returns a long string, thus any object +of type \f(CW\*(C`symbolic\*(C'\fR is true. To overcome this, we need a way to +compare an object to 0. In fact, it is easier to write a numeric +conversion routine. +.PP +Here is the text of \fIsymbolic.pm\fR with such a routine added (and +slightly modified \fBstr()\fR): +.PP +.Vb 3 +\& package symbolic; # Primitive symbolic calculator +\& use overload +\& nomethod => \e&wrap, \*(Aq""\*(Aq => \e&str, \*(Aq0+\*(Aq => \e# +\& +\& sub new { shift; bless [\*(Aqn\*(Aq, @_] } +\& sub wrap { +\& my ($obj, $other, $inv, $meth) = @_; +\& ($obj, $other) = ($other, $obj) if $inv; +\& bless [$meth, $obj, $other]; +\& } +\& sub str { +\& my ($meth, $a, $b) = @{+shift}; +\& $a = \*(Aqu\*(Aq unless defined $a; +\& if (defined $b) { +\& "[$meth $a $b]"; +\& } else { +\& "[$meth $a]"; +\& } +\& } +\& my %subr = ( n => sub {$_[0]}, +\& sqrt => sub {sqrt $_[0]}, +\& \*(Aq\-\*(Aq => sub {shift() \- shift()}, +\& \*(Aq+\*(Aq => sub {shift() + shift()}, +\& \*(Aq/\*(Aq => sub {shift() / shift()}, +\& \*(Aq*\*(Aq => sub {shift() * shift()}, +\& \*(Aq**\*(Aq => sub {shift() ** shift()}, +\& ); +\& sub num { +\& my ($meth, $a, $b) = @{+shift}; +\& my $subr = $subr{$meth} +\& or die "Do not know how to ($meth) in symbolic"; +\& $a = $a\->num if ref $a eq _\|_PACKAGE_\|_; +\& $b = $b\->num if ref $b eq _\|_PACKAGE_\|_; +\& $subr\->($a,$b); +\& } +.Ve +.PP +All the work of numeric conversion is done in \f(CW%subr\fR and \fBnum()\fR. Of +course, \f(CW%subr\fR is not complete, it contains only operators used in the +example below. Here is the extra-credit question: why do we need an +explicit recursion in \fBnum()\fR? (Answer is at the end of this section.) +.PP +Use this module like this: +.PP +.Vb 4 +\& require symbolic; +\& my $iter = symbolic\->new(2); # 16\-gon +\& my $side = symbolic\->new(1); +\& my $cnt = $iter; +\& +\& while ($cnt) { +\& $cnt = $cnt \- 1; # Mutator \*(Aq\-\-\*(Aq not implemented +\& $side = (sqrt(1 + $side**2) \- 1)/$side; +\& } +\& printf "%s=%f\en", $side, $side; +\& printf "pi=%f\en", $side*(2**($iter+2)); +.Ve +.PP +It prints (without so many line breaks) +.PP +.Vb 4 +\& [/ [\- [sqrt [+ 1 [** [/ [\- [sqrt [+ 1 [** [n 1] 2]]] 1] +\& [n 1]] 2]]] 1] +\& [/ [\- [sqrt [+ 1 [** [n 1] 2]]] 1] [n 1]]]=0.198912 +\& pi=3.182598 +.Ve +.PP +The above module is very primitive. It does not implement +mutator methods (\f(CW\*(C`++\*(C'\fR, \f(CW\*(C`\-=\*(C'\fR and so on), does not do deep copying +(not required without mutators!), and implements only those arithmetic +operations which are used in the example. +.PP +To implement most arithmetic operations is easy; one should just use +the tables of operations, and change the code which fills \f(CW%subr\fR to +.PP +.Vb 12 +\& my %subr = ( \*(Aqn\*(Aq => sub {$_[0]} ); +\& foreach my $op (split " ", $overload::ops{with_assign}) { +\& $subr{$op} = $subr{"$op="} = eval "sub {shift() $op shift()}"; +\& } +\& my @bins = qw(binary 3way_comparison num_comparison str_comparison); +\& foreach my $op (split " ", "@overload::ops{ @bins }") { +\& $subr{$op} = eval "sub {shift() $op shift()}"; +\& } +\& foreach my $op (split " ", "@overload::ops{qw(unary func)}") { +\& print "defining \*(Aq$op\*(Aq\en"; +\& $subr{$op} = eval "sub {$op shift()}"; +\& } +.Ve +.PP +Since subroutines implementing assignment operators are not required +to modify their operands (see \*(L"Overloadable Operations\*(R" above), +we do not need anything special to make \f(CW\*(C`+=\*(C'\fR and friends work, +besides adding these operators to \f(CW%subr\fR and defining a copy +constructor (needed since Perl has no way to know that the +implementation of \f(CW\*(Aq+=\*(Aq\fR does not mutate the argument \- +see \*(L"Copy Constructor\*(R"). +.PP +To implement a copy constructor, add \f(CW\*(C`\*(Aq=\*(Aq => \e&cpy\*(C'\fR to \f(CW\*(C`use overload\*(C'\fR +line, and code (this code assumes that mutators change things one level +deep only, so recursive copying is not needed): +.PP +.Vb 4 +\& sub cpy { +\& my $self = shift; +\& bless [@$self], ref $self; +\& } +.Ve +.PP +To make \f(CW\*(C`++\*(C'\fR and \f(CW\*(C`\-\-\*(C'\fR work, we need to implement actual mutators, +either directly, or in \f(CW\*(C`nomethod\*(C'\fR. We continue to do things inside +\&\f(CW\*(C`nomethod\*(C'\fR, thus add +.PP +.Vb 4 +\& if ($meth eq \*(Aq++\*(Aq or $meth eq \*(Aq\-\-\*(Aq) { +\& @$obj = ($meth, (bless [@$obj]), 1); # Avoid circular reference +\& return $obj; +\& } +.Ve +.PP +after the first line of \fBwrap()\fR. This is not a most effective +implementation, one may consider +.PP +.Vb 1 +\& sub inc { $_[0] = bless [\*(Aq++\*(Aq, shift, 1]; } +.Ve +.PP +instead. +.PP +As a final remark, note that one can fill \f(CW%subr\fR by +.PP +.Vb 10 +\& my %subr = ( \*(Aqn\*(Aq => sub {$_[0]} ); +\& foreach my $op (split " ", $overload::ops{with_assign}) { +\& $subr{$op} = $subr{"$op="} = eval "sub {shift() $op shift()}"; +\& } +\& my @bins = qw(binary 3way_comparison num_comparison str_comparison); +\& foreach my $op (split " ", "@overload::ops{ @bins }") { +\& $subr{$op} = eval "sub {shift() $op shift()}"; +\& } +\& foreach my $op (split " ", "@overload::ops{qw(unary func)}") { +\& $subr{$op} = eval "sub {$op shift()}"; +\& } +\& $subr{\*(Aq++\*(Aq} = $subr{\*(Aq+\*(Aq}; +\& $subr{\*(Aq\-\-\*(Aq} = $subr{\*(Aq\-\*(Aq}; +.Ve +.PP +This finishes implementation of a primitive symbolic calculator in +50 lines of Perl code. Since the numeric values of subexpressions +are not cached, the calculator is very slow. +.PP +Here is the answer for the exercise: In the case of \fBstr()\fR, we need no +explicit recursion since the overloaded \f(CW\*(C`.\*(C'\fR\-operator will fall back +to an existing overloaded operator \f(CW""\fR. Overloaded arithmetic +operators \fIdo not\fR fall back to numeric conversion if \f(CW\*(C`fallback\*(C'\fR is +not explicitly requested. Thus without an explicit recursion \fBnum()\fR +would convert \f(CW\*(C`[\*(Aq+\*(Aq, $a, $b]\*(C'\fR to \f(CW\*(C`$a + $b\*(C'\fR, which would just rebuild +the argument of \fBnum()\fR. +.PP +If you wonder why defaults for conversion are different for \fBstr()\fR and +\&\fBnum()\fR, note how easy it was to write the symbolic calculator. This +simplicity is due to an appropriate choice of defaults. One extra +note: due to the explicit recursion \fBnum()\fR is more fragile than \fBsym()\fR: +we need to explicitly check for the type of \f(CW$a\fR and \f(CW$b\fR. If components +\&\f(CW$a\fR and \f(CW$b\fR happen to be of some related type, this may lead to problems. +.SS "\fIReally\fP Symbolic Calculator" +.IX Subsection "Really Symbolic Calculator" +One may wonder why we call the above calculator symbolic. The reason +is that the actual calculation of the value of expression is postponed +until the value is \fIused\fR. +.PP +To see it in action, add a method +.PP +.Vb 5 +\& sub STORE { +\& my $obj = shift; +\& $#$obj = 1; +\& @$obj\->[0,1] = (\*(Aq=\*(Aq, shift); +\& } +.Ve +.PP +to the package \f(CW\*(C`symbolic\*(C'\fR. After this change one can do +.PP +.Vb 3 +\& my $a = symbolic\->new(3); +\& my $b = symbolic\->new(4); +\& my $c = sqrt($a**2 + $b**2); +.Ve +.PP +and the numeric value of \f(CW$c\fR becomes 5. However, after calling +.PP +.Vb 1 +\& $a\->STORE(12); $b\->STORE(5); +.Ve +.PP +the numeric value of \f(CW$c\fR becomes 13. There is no doubt now that the module +symbolic provides a \fIsymbolic\fR calculator indeed. +.PP +To hide the rough edges under the hood, provide a \fBtie()\fRd interface to the +package \f(CW\*(C`symbolic\*(C'\fR. Add methods +.PP +.Vb 3 +\& sub TIESCALAR { my $pack = shift; $pack\->new(@_) } +\& sub FETCH { shift } +\& sub nop { } # Around a bug +.Ve +.PP +(the bug, fixed in Perl 5.14, is described in \*(L"\s-1BUGS\*(R"\s0). One can use this +new interface as +.PP +.Vb 3 +\& tie $a, \*(Aqsymbolic\*(Aq, 3; +\& tie $b, \*(Aqsymbolic\*(Aq, 4; +\& $a\->nop; $b\->nop; # Around a bug +\& +\& my $c = sqrt($a**2 + $b**2); +.Ve +.PP +Now numeric value of \f(CW$c\fR is 5. After \f(CW\*(C`$a = 12; $b = 5\*(C'\fR the numeric value +of \f(CW$c\fR becomes 13. To insulate the user of the module add a method +.PP +.Vb 1 +\& sub vars { my $p = shift; tie($_, $p), $_\->nop foreach @_; } +.Ve +.PP +Now +.PP +.Vb 3 +\& my ($a, $b); +\& symbolic\->vars($a, $b); +\& my $c = sqrt($a**2 + $b**2); +\& +\& $a = 3; $b = 4; +\& printf "c5 %s=%f\en", $c, $c; +\& +\& $a = 12; $b = 5; +\& printf "c13 %s=%f\en", $c, $c; +.Ve +.PP +shows that the numeric value of \f(CW$c\fR follows changes to the values of \f(CW$a\fR +and \f(CW$b\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Ilya Zakharevich <\fIilya@math.mps.ohio\-state.edu\fR>. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The \f(CW\*(C`overloading\*(C'\fR pragma can be used to enable or disable overloaded +operations within a lexical scope \- see overloading. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +When Perl is run with the \fB\-Do\fR switch or its equivalent, overloading +induces diagnostic messages. +.PP +Using the \f(CW\*(C`m\*(C'\fR command of Perl debugger (see perldebug) one can +deduce which operations are overloaded (and which ancestor triggers +this overloading). Say, if \f(CW\*(C`eq\*(C'\fR is overloaded, then the method \f(CW\*(C`(eq\*(C'\fR +is shown by debugger. The method \f(CW\*(C`()\*(C'\fR corresponds to the \f(CW\*(C`fallback\*(C'\fR +key (in fact a presence of this method shows that this package has +overloading enabled, and it is what is used by the \f(CW\*(C`Overloaded\*(C'\fR +function of module \f(CW\*(C`overload\*(C'\fR). +.PP +The module might issue the following warnings: +.IP "Odd number of arguments for overload::constant" 4 +.IX Item "Odd number of arguments for overload::constant" +(W) The call to overload::constant contained an odd number of arguments. +The arguments should come in pairs. +.IP "'%s' is not an overloadable type" 4 +.IX Item "'%s' is not an overloadable type" +(W) You tried to overload a constant type the overload package is unaware of. +.IP "'%s' is not a code reference" 4 +.IX Item "'%s' is not a code reference" +(W) The second (fourth, sixth, ...) argument of overload::constant needs +to be a code reference. Either an anonymous subroutine, or a reference +to a subroutine. +.IP "overload arg '%s' is invalid" 4 +.IX Item "overload arg '%s' is invalid" +(W) \f(CW\*(C`use overload\*(C'\fR was passed an argument it did not +recognize. Did you mistype an operator? +.SH "BUGS AND PITFALLS" +.IX Header "BUGS AND PITFALLS" +.IP "\(bu" 4 +A pitfall when fallback is \s-1TRUE\s0 and Perl resorts to a built-in +implementation of an operator is that some operators have more +than one semantic, for example \f(CW\*(C`|\*(C'\fR: +.Sp +.Vb 5 +\& use overload \*(Aq0+\*(Aq => sub { $_[0]\->{n}; }, +\& fallback => 1; +\& my $x = bless { n => 4 }, "main"; +\& my $y = bless { n => 8 }, "main"; +\& print $x | $y, "\en"; +.Ve +.Sp +You might expect this to output \*(L"12\*(R". +In fact, it prints \*(L"<\*(R": the \s-1ASCII\s0 result of treating \*(L"|\*(R" +as a bitwise string operator \- that is, the result of treating +the operands as the strings \*(L"4\*(R" and \*(L"8\*(R" rather than numbers. +The fact that numify (\f(CW\*(C`0+\*(C'\fR) is implemented but stringify +(\f(CW""\fR) isn't makes no difference since the latter is simply +autogenerated from the former. +.Sp +The only way to change this is to provide your own subroutine +for \f(CW\*(Aq|\*(Aq\fR. +.IP "\(bu" 4 +Magic autogeneration increases the potential for inadvertently +creating self-referential structures. +Currently Perl will not free self-referential +structures until cycles are explicitly broken. +For example, +.Sp +.Vb 2 +\& use overload \*(Aq+\*(Aq => \*(Aqadd\*(Aq; +\& sub add { bless [ \e$_[0], \e$_[1] ] }; +.Ve +.Sp +is asking for trouble, since +.Sp +.Vb 1 +\& $obj += $y; +.Ve +.Sp +will effectively become +.Sp +.Vb 1 +\& $obj = add($obj, $y, undef); +.Ve +.Sp +with the same result as +.Sp +.Vb 1 +\& $obj = [\e$obj, \e$foo]; +.Ve +.Sp +Even if no \fIexplicit\fR assignment-variants of operators are present in +the script, they may be generated by the optimizer. +For example, +.Sp +.Vb 1 +\& "obj = $obj\en" +.Ve +.Sp +may be optimized to +.Sp +.Vb 1 +\& my $tmp = \*(Aqobj = \*(Aq . $obj; $tmp .= "\en"; +.Ve +.IP "\(bu" 4 +The symbol table is filled with names looking like line-noise. +.IP "\(bu" 4 +This bug was fixed in Perl 5.18, but may still trip you up if you are using +older versions: +.Sp +For the purpose of inheritance every overloaded package behaves as if +\&\f(CW\*(C`fallback\*(C'\fR is present (possibly undefined). This may create +interesting effects if some package is not overloaded, but inherits +from two overloaded packages. +.IP "\(bu" 4 +Before Perl 5.14, the relation between overloading and \fBtie()\fRing was broken. +Overloading was triggered or not based on the \fIprevious\fR class of the +\&\fBtie()\fRd variable. +.Sp +This happened because the presence of overloading was checked +too early, before any \fBtie()\fRd access was attempted. If the +class of the value \s-1\fBFETCH\s0()\fRed from the tied variable does not +change, a simple workaround for code that is to run on older Perl +versions is to access the value (via \f(CW\*(C`() = $foo\*(C'\fR or some such) +immediately after \fBtie()\fRing, so that after this call the \fIprevious\fR class +coincides with the current one. +.IP "\(bu" 4 +Barewords are not covered by overloaded string constants. +.IP "\(bu" 4 +The range operator \f(CW\*(C`..\*(C'\fR cannot be overloaded. diff --git a/data/miniconda3/man/man3/overloading.3 b/data/miniconda3/man/man3/overloading.3 new file mode 100644 index 0000000000000000000000000000000000000000..2ff1521d7428cbd32fafc617f970793da3c7060c --- /dev/null +++ b/data/miniconda3/man/man3/overloading.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "overloading 3" +.TH overloading 3 "2020-12-18" "perl v5.32.1" "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" +overloading \- perl pragma to lexically control overloading +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& { +\& no overloading; +\& my $str = "$object"; # doesn\*(Aqt call stringification overload +\& } +\& +\& # it\*(Aqs lexical, so this stringifies: +\& warn "$object"; +\& +\& # it can be enabled per op +\& no overloading qw(""); +\& warn "$object"; +\& +\& # and also reenabled +\& use overloading; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This pragma allows you to lexically disable or enable overloading. +.ie n .IP """no overloading""" 6 +.el .IP "\f(CWno overloading\fR" 6 +.IX Item "no overloading" +Disables overloading entirely in the current lexical scope. +.ie n .IP """no overloading @ops""" 6 +.el .IP "\f(CWno overloading @ops\fR" 6 +.IX Item "no overloading @ops" +Disables only specific overloads in the current lexical scope. +.ie n .IP """use overloading""" 6 +.el .IP "\f(CWuse overloading\fR" 6 +.IX Item "use overloading" +Reenables overloading in the current lexical scope. +.ie n .IP """use overloading @ops""" 6 +.el .IP "\f(CWuse overloading @ops\fR" 6 +.IX Item "use overloading @ops" +Reenables overloading only for specific ops in the current lexical scope. diff --git a/data/miniconda3/man/man3/parent.3 b/data/miniconda3/man/man3/parent.3 new file mode 100644 index 0000000000000000000000000000000000000000..f9761dfcad1de8b56da9e3e7192aed8b7011f248 --- /dev/null +++ b/data/miniconda3/man/man3/parent.3 @@ -0,0 +1,238 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "parent 3" +.TH parent 3 "2020-12-18" "perl v5.32.1" "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" +parent \- Establish an ISA relationship with base classes at compile time +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package Baz; +\& use parent qw(Foo Bar); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Allows you to both load one or more modules, while setting up inheritance from +those modules at the same time. Mostly similar in effect to +.PP +.Vb 6 +\& package Baz; +\& BEGIN { +\& require Foo; +\& require Bar; +\& push @ISA, qw(Foo Bar); +\& } +.Ve +.PP +By default, every base class needs to live in a file of its own. +If you want to have a subclass and its parent class in the same file, you +can tell \f(CW\*(C`parent\*(C'\fR not to load any modules by using the \f(CW\*(C`\-norequire\*(C'\fR switch: +.PP +.Vb 2 +\& package Foo; +\& sub exclaim { "I CAN HAS PERL" } +\& +\& package DoesNotLoadFooBar; +\& use parent \-norequire, \*(AqFoo\*(Aq, \*(AqBar\*(Aq; +\& # will not go looking for Foo.pm or Bar.pm +.Ve +.PP +This is equivalent to the following code: +.PP +.Vb 2 +\& package Foo; +\& sub exclaim { "I CAN HAS PERL" } +\& +\& package DoesNotLoadFooBar; +\& push @DoesNotLoadFooBar::ISA, \*(AqFoo\*(Aq, \*(AqBar\*(Aq; +.Ve +.PP +This is also helpful for the case where a package lives within +a differently named file: +.PP +.Vb 3 +\& package MyHash; +\& use Tie::Hash; +\& use parent \-norequire, \*(AqTie::StdHash\*(Aq; +.Ve +.PP +This is equivalent to the following code: +.PP +.Vb 3 +\& package MyHash; +\& require Tie::Hash; +\& push @ISA, \*(AqTie::StdHash\*(Aq; +.Ve +.PP +If you want to load a subclass from a file that \f(CW\*(C`require\*(C'\fR would +not consider an eligible filename (that is, it does not end in +either \f(CW\*(C`.pm\*(C'\fR or \f(CW\*(C`.pmc\*(C'\fR), use the following code: +.PP +.Vb 3 +\& package MySecondPlugin; +\& require \*(Aq./plugins/custom.plugin\*(Aq; # contains Plugin::Custom +\& use parent \-norequire, \*(AqPlugin::Custom\*(Aq; +.Ve +.SH "HISTORY" +.IX Header "HISTORY" +This module was forked from base to remove the cruft +that had accumulated in it. +.SH "CAVEATS" +.IX Header "CAVEATS" +.SH "SEE ALSO" +.IX Header "SEE ALSO" +.IP "base" 4 +.IX Item "base" +.PD 0 +.IP "parent::versioned" 4 +.IX Item "parent::versioned" +.PD +A fork of parent that provides version checking in parent class modules. +.SH "AUTHORS AND CONTRIBUTORS" +.IX Header "AUTHORS AND CONTRIBUTORS" +Rafae\*:l Garcia-Suarez, Bart Lateur, Max Maischein, Anno Siegel, Michael Schwern +.SH "MAINTAINER" +.IX Header "MAINTAINER" +Max Maischein \f(CW\*(C` corion@cpan.org \*(C'\fR +.PP +Copyright (c) 2007\-2017 Max Maischein \f(CW\*(C`\*(C'\fR +Based on the idea of \f(CW\*(C`base.pm\*(C'\fR, which was introduced with Perl 5.004_04. +.SH "LICENSE" +.IX Header "LICENSE" +This module is released under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/re.3 b/data/miniconda3/man/man3/re.3 new file mode 100644 index 0000000000000000000000000000000000000000..512dfc2a84be49f3e60b24edc6497d4b2ded6c2b --- /dev/null +++ b/data/miniconda3/man/man3/re.3 @@ -0,0 +1,626 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "re 3" +.TH re 3 "2020-12-18" "perl v5.32.1" "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" +re \- Perl pragma to alter regular expression behaviour +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use re \*(Aqtaint\*(Aq; +\& ($x) = ($^X =~ /^(.*)$/s); # $x is tainted here +\& +\& $pat = \*(Aq(?{ $foo = 1 })\*(Aq; +\& use re \*(Aqeval\*(Aq; +\& /foo${pat}bar/; # won\*(Aqt fail (when not under \-T +\& # switch) +\& +\& { +\& no re \*(Aqtaint\*(Aq; # the default +\& ($x) = ($^X =~ /^(.*)$/s); # $x is not tainted here +\& +\& no re \*(Aqeval\*(Aq; # the default +\& /foo${pat}bar/; # disallowed (with or without \-T +\& # switch) +\& } +\& +\& use re \*(Aqstrict\*(Aq; # Raise warnings for more conditions +\& +\& use re \*(Aq/ix\*(Aq; +\& "FOO" =~ / foo /; # /ix implied +\& no re \*(Aq/x\*(Aq; +\& "FOO" =~ /foo/; # just /i implied +\& +\& use re \*(Aqdebug\*(Aq; # output debugging info during +\& /^(.*)$/s; # compile and run time +\& +\& +\& use re \*(Aqdebugcolor\*(Aq; # same as \*(Aqdebug\*(Aq, but with colored +\& # output +\& ... +\& +\& use re qw(Debug All); # Same as "use re \*(Aqdebug\*(Aq", but you +\& # can use "Debug" with things other +\& # than \*(AqAll\*(Aq +\& use re qw(Debug More); # \*(AqAll\*(Aq plus output more details +\& no re qw(Debug ALL); # Turn on (almost) all re debugging +\& # in this scope +\& +\& use re qw(is_regexp regexp_pattern); # import utility functions +\& my ($pat,$mods)=regexp_pattern(qr/foo/i); +\& if (is_regexp($obj)) { +\& print "Got regexp: ", +\& scalar regexp_pattern($obj); # just as perl would stringify +\& } # it but no hassle with blessed +\& # re\*(Aqs. +.Ve +.PP +(We use $^X in these examples because it's tainted by default.) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "'taint' mode" +.IX Subsection "'taint' mode" +When \f(CW\*(C`use re \*(Aqtaint\*(Aq\*(C'\fR is in effect, and a tainted string is the target +of a regexp, the regexp memories (or values returned by the m// operator +in list context) are tainted. This feature is useful when regexp operations +on tainted data aren't meant to extract safe substrings, but to perform +other transformations. +.SS "'eval' mode" +.IX Subsection "'eval' mode" +When \f(CW\*(C`use re \*(Aqeval\*(Aq\*(C'\fR is in effect, a regexp is allowed to contain +\&\f(CW\*(C`(?{ ... })\*(C'\fR zero-width assertions and \f(CW\*(C`(??{ ... })\*(C'\fR postponed +subexpressions that are derived from variable interpolation, rather than +appearing literally within the regexp. That is normally disallowed, since +it is a +potential security risk. Note that this pragma is ignored when the regular +expression is obtained from tainted data, i.e. evaluation is always +disallowed with tainted regular expressions. See \*(L"(?{ code })\*(R" in perlre +and \*(L"(??{ code })\*(R" in perlre. +.PP +For the purpose of this pragma, interpolation of precompiled regular +expressions (i.e., the result of \f(CW\*(C`qr//\*(C'\fR) is \fInot\fR considered variable +interpolation. Thus: +.PP +.Vb 1 +\& /foo${pat}bar/ +.Ve +.PP +\&\fIis\fR allowed if \f(CW$pat\fR is a precompiled regular expression, even +if \f(CW$pat\fR contains \f(CW\*(C`(?{ ... })\*(C'\fR assertions or \f(CW\*(C`(??{ ... })\*(C'\fR subexpressions. +.SS "'strict' mode" +.IX Subsection "'strict' mode" +Note that this is an experimental feature which may be changed or removed in a +future Perl release. +.PP +When \f(CW\*(C`use re \*(Aqstrict\*(Aq\*(C'\fR is in effect, stricter checks are applied than +otherwise when compiling regular expressions patterns. These may cause more +warnings to be raised than otherwise, and more things to be fatal instead of +just warnings. The purpose of this is to find and report at compile time some +things, which may be legal, but have a reasonable possibility of not being the +programmer's actual intent. This automatically turns on the \f(CW"regexp"\fR +warnings category (if not already on) within its scope. +.PP +As an example of something that is caught under \f(CW\*(C`"strict\*(Aq\*(C'\fR, but not +otherwise, is the pattern +.PP +.Vb 1 +\& qr/\exABC/ +.Ve +.PP +The \f(CW"\ex"\fR construct without curly braces should be followed by exactly two +hex digits; this one is followed by three. This currently evaluates as +equivalent to +.PP +.Vb 1 +\& qr/\ex{AB}C/ +.Ve +.PP +that is, the character whose code point value is \f(CW0xAB\fR, followed by the +letter \f(CW\*(C`C\*(C'\fR. But since \f(CW\*(C`C\*(C'\fR is a hex digit, there is a reasonable chance +that the intent was +.PP +.Vb 1 +\& qr/\ex{ABC}/ +.Ve +.PP +that is the single character at \f(CW0xABC\fR. Under \f(CW\*(Aqstrict\*(Aq\fR it is an error to +not follow \f(CW\*(C`\ex\*(C'\fR with exactly two hex digits. When not under \f(CW\*(Aqstrict\*(Aq\fR a +warning is generated if there is only one hex digit, and no warning is raised +if there are more than two. +.PP +It is expected that what exactly \f(CW\*(Aqstrict\*(Aq\fR does will evolve over time as we +gain experience with it. This means that programs that compile under it in +today's Perl may not compile, or may have more or fewer warnings, in future +Perls. There is no backwards compatibility promises with regards to it. Also +there are already proposals for an alternate syntax for enabling it. For +these reasons, using it will raise a \f(CW\*(C`experimental::re_strict\*(C'\fR class warning, +unless that category is turned off. +.PP +Note that if a pattern compiled within \f(CW\*(Aqstrict\*(Aq\fR is recompiled, say by +interpolating into another pattern, outside of \f(CW\*(Aqstrict\*(Aq\fR, it is not checked +again for strictness. This is because if it works under strict it must work +under non-strict. +.SS "'/flags' mode" +.IX Subsection "'/flags' mode" +When \f(CW\*(C`use re \*(Aq/\f(CIflags\f(CW\*(Aq\*(C'\fR is specified, the given \fIflags\fR are automatically +added to every regular expression till the end of the lexical scope. +\&\fIflags\fR can be any combination of +\&\f(CW\*(Aqa\*(Aq\fR, +\&\f(CW\*(Aqaa\*(Aq\fR, +\&\f(CW\*(Aqd\*(Aq\fR, +\&\f(CW\*(Aqi\*(Aq\fR, +\&\f(CW\*(Aql\*(Aq\fR, +\&\f(CW\*(Aqm\*(Aq\fR, +\&\f(CW\*(Aqn\*(Aq\fR, +\&\f(CW\*(Aqp\*(Aq\fR, +\&\f(CW\*(Aqs\*(Aq\fR, +\&\f(CW\*(Aqu\*(Aq\fR, +\&\f(CW\*(Aqx\*(Aq\fR, +and/or +\&\f(CW\*(Aqxx\*(Aq\fR. +.PP +\&\f(CW\*(C`no re \*(Aq/\f(CIflags\f(CW\*(Aq\*(C'\fR will turn off the effect of \f(CW\*(C`use re \*(Aq/\f(CIflags\f(CW\*(Aq\*(C'\fR for the +given flags. +.PP +For example, if you want all your regular expressions to have /msxx on by +default, simply put +.PP +.Vb 1 +\& use re \*(Aq/msxx\*(Aq; +.Ve +.PP +at the top of your code. +.PP +The character set \f(CW\*(C`/adul\*(C'\fR flags cancel each other out. So, in this example, +.PP +.Vb 4 +\& use re "/u"; +\& "ss" =~ /\exdf/; +\& use re "/d"; +\& "ss" =~ /\exdf/; +.Ve +.PP +the second \f(CW\*(C`use re\*(C'\fR does an implicit \f(CW\*(C`no re \*(Aq/u\*(Aq\*(C'\fR. +.PP +Similarly, +.PP +.Vb 4 +\& use re "/xx"; # Doubled\-x +\& ... +\& use re "/x"; # Single x from here on +\& ... +.Ve +.PP +Turning on one of the character set flags with \f(CW\*(C`use re\*(C'\fR takes precedence over the +\&\f(CW\*(C`locale\*(C'\fR pragma and the 'unicode_strings' \f(CW\*(C`feature\*(C'\fR, for regular +expressions. Turning off one of these flags when it is active reverts to +the behaviour specified by whatever other pragmata are in scope. For +example: +.PP +.Vb 4 +\& use feature "unicode_strings"; +\& no re "/u"; # does nothing +\& use re "/l"; +\& no re "/l"; # reverts to unicode_strings behaviour +.Ve +.SS "'debug' mode" +.IX Subsection "'debug' mode" +When \f(CW\*(C`use re \*(Aqdebug\*(Aq\*(C'\fR is in effect, perl emits debugging messages when +compiling and using regular expressions. The output is the same as that +obtained by running a \f(CW\*(C`\-DDEBUGGING\*(C'\fR\-enabled perl interpreter with the +\&\fB\-Dr\fR switch. It may be quite voluminous depending on the complexity +of the match. Using \f(CW\*(C`debugcolor\*(C'\fR instead of \f(CW\*(C`debug\*(C'\fR enables a +form of output that can be used to get a colorful display on terminals +that understand termcap color sequences. Set \f(CW$ENV{PERL_RE_TC}\fR to a +comma-separated list of \f(CW\*(C`termcap\*(C'\fR properties to use for highlighting +strings on/off, pre-point part on/off. +See \*(L"Debugging Regular Expressions\*(R" in perldebug for additional info. +.PP +As of 5.9.5 the directive \f(CW\*(C`use re \*(Aqdebug\*(Aq\*(C'\fR and its equivalents are +lexically scoped, as the other directives are. However they have both +compile-time and run-time effects. +.PP +See \*(L"Pragmatic Modules\*(R" in perlmodlib. +.SS "'Debug' mode" +.IX Subsection "'Debug' mode" +Similarly \f(CW\*(C`use re \*(AqDebug\*(Aq\*(C'\fR produces debugging output, the difference +being that it allows the fine tuning of what debugging output will be +emitted. Options are divided into three groups, those related to +compilation, those related to execution and those related to special +purposes. The options are as follows: +.IP "Compile related options" 4 +.IX Item "Compile related options" +.RS 4 +.PD 0 +.IP "\s-1COMPILE\s0" 4 +.IX Item "COMPILE" +.PD +Turns on all non-extra compile related debug options. +.IP "\s-1PARSE\s0" 4 +.IX Item "PARSE" +Turns on debug output related to the process of parsing the pattern. +.IP "\s-1OPTIMISE\s0" 4 +.IX Item "OPTIMISE" +Enables output related to the optimisation phase of compilation. +.IP "\s-1TRIEC\s0" 4 +.IX Item "TRIEC" +Detailed info about trie compilation. +.IP "\s-1DUMP\s0" 4 +.IX Item "DUMP" +Dump the final program out after it is compiled and optimised. +.IP "\s-1FLAGS\s0" 4 +.IX Item "FLAGS" +Dump the flags associated with the program +.IP "\s-1TEST\s0" 4 +.IX Item "TEST" +Print output intended for testing the internals of the compile process +.RE +.RS 4 +.RE +.IP "Execute related options" 4 +.IX Item "Execute related options" +.RS 4 +.PD 0 +.IP "\s-1EXECUTE\s0" 4 +.IX Item "EXECUTE" +.PD +Turns on all non-extra execute related debug options. +.IP "\s-1MATCH\s0" 4 +.IX Item "MATCH" +Turns on debugging of the main matching loop. +.IP "\s-1TRIEE\s0" 4 +.IX Item "TRIEE" +Extra debugging of how tries execute. +.IP "\s-1INTUIT\s0" 4 +.IX Item "INTUIT" +Enable debugging of start-point optimisations. +.RE +.RS 4 +.RE +.IP "Extra debugging options" 4 +.IX Item "Extra debugging options" +.RS 4 +.PD 0 +.IP "\s-1EXTRA\s0" 4 +.IX Item "EXTRA" +.PD +Turns on all \*(L"extra\*(R" debugging options. +.IP "\s-1BUFFERS\s0" 4 +.IX Item "BUFFERS" +Enable debugging the capture group storage during match. Warning, +this can potentially produce extremely large output. +.IP "\s-1TRIEM\s0" 4 +.IX Item "TRIEM" +Enable enhanced \s-1TRIE\s0 debugging. Enhances both \s-1TRIEE\s0 +and \s-1TRIEC.\s0 +.IP "\s-1STATE\s0" 4 +.IX Item "STATE" +Enable debugging of states in the engine. +.IP "\s-1STACK\s0" 4 +.IX Item "STACK" +Enable debugging of the recursion stack in the engine. Enabling +or disabling this option automatically does the same for debugging +states as well. This output from this can be quite large. +.IP "\s-1GPOS\s0" 4 +.IX Item "GPOS" +Enable debugging of the \eG modifier. +.IP "\s-1OPTIMISEM\s0" 4 +.IX Item "OPTIMISEM" +Enable enhanced optimisation debugging and start-point optimisations. +Probably not useful except when debugging the regexp engine itself. +.IP "\s-1OFFSETS\s0" 4 +.IX Item "OFFSETS" +Dump offset information. This can be used to see how regops correlate +to the pattern. Output format is +.Sp +.Vb 1 +\& NODENUM:POSITION[LENGTH] +.Ve +.Sp +Where 1 is the position of the first char in the string. Note that position +can be 0, or larger than the actual length of the pattern, likewise length +can be zero. +.IP "\s-1OFFSETSDBG\s0" 4 +.IX Item "OFFSETSDBG" +Enable debugging of offsets information. This emits copious +amounts of trace information and doesn't mesh well with other +debug options. +.Sp +Almost definitely only useful to people hacking +on the offsets part of the debug engine. +.IP "\s-1DUMP_PRE_OPTIMIZE\s0" 4 +.IX Item "DUMP_PRE_OPTIMIZE" +Enable the dumping of the compiled pattern before the optimization phase. +.IP "\s-1WILDCARD\s0" 4 +.IX Item "WILDCARD" +When Perl encounters a wildcard subpattern, (see \*(L"Wildcards in +Property Values\*(R" in perlunicode), it suspends compilation of the main pattern, compiles the +subpattern, and then matches that against all legal possibilities to determine +the actual code points the subpattern matches. After that it adds these to +the main pattern, and continues its compilation. +.Sp +You may very well want to see how your subpattern gets compiled, but it is +likely of less use to you to see how Perl matches that against all the legal +possibilities, as that is under control of Perl, not you. Therefore, the +debugging information of the compilation portion is as specified by the other +options, but the debugging output of the matching portion is normally +suppressed. +.Sp +You can use the \s-1WILDCARD\s0 option to enable the debugging output of this +subpattern matching. Careful! This can lead to voluminous outputs, and it +may not make much sense to you what and why Perl is doing what it is. +But it may be helpful to you to see why things aren't going the way you +expect. +.Sp +Note that this option alone doesn't cause any debugging information to be +output. What it does is stop the normal suppression of execution-related +debugging information during the matching portion of the compilation of +wildcards. You also have to specify which execution debugging information you +want, such as by also including the \s-1EXECUTE\s0 option. +.RE +.RS 4 +.RE +.IP "Other useful flags" 4 +.IX Item "Other useful flags" +These are useful shortcuts to save on the typing. +.RS 4 +.IP "\s-1ALL\s0" 4 +.IX Item "ALL" +Enable all options at once except \s-1OFFSETS, OFFSETSDBG, BUFFERS, WILDCARD,\s0 and +\&\s-1DUMP_PRE_OPTIMIZE.\s0 +(To get every single option without exception, use both \s-1ALL\s0 and \s-1EXTRA,\s0 or +starting in 5.30 on a \f(CW\*(C`\-DDEBUGGING\*(C'\fR\-enabled perl interpreter, use +the \fB\-Drv\fR command-line switches.) +.IP "All" 4 +.IX Item "All" +Enable \s-1DUMP\s0 and all non-extra execute options. Equivalent to: +.Sp +.Vb 1 +\& use re \*(Aqdebug\*(Aq; +.Ve +.IP "\s-1MORE\s0" 4 +.IX Item "MORE" +.PD 0 +.IP "More" 4 +.IX Item "More" +.PD +Enable the options enabled by \*(L"All\*(R", plus \s-1STATE, TRIEC,\s0 and \s-1TRIEM.\s0 +.RE +.RS 4 +.RE +.PP +As of 5.9.5 the directive \f(CW\*(C`use re \*(Aqdebug\*(Aq\*(C'\fR and its equivalents are +lexically scoped, as are the other directives. However they have both +compile-time and run-time effects. +.SS "Exportable Functions" +.IX Subsection "Exportable Functions" +As of perl 5.9.5 're' debug contains a number of utility functions that +may be optionally exported into the caller's namespace. They are listed +below. +.IP "is_regexp($ref)" 4 +.IX Item "is_regexp($ref)" +Returns true if the argument is a compiled regular expression as returned +by \f(CW\*(C`qr//\*(C'\fR, false if it is not. +.Sp +This function will not be confused by overloading or blessing. In +internals terms, this extracts the regexp pointer out of the +PERL_MAGIC_qr structure so it cannot be fooled. +.IP "regexp_pattern($ref)" 4 +.IX Item "regexp_pattern($ref)" +If the argument is a compiled regular expression as returned by \f(CW\*(C`qr//\*(C'\fR, +then this function returns the pattern. +.Sp +In list context it returns a two element list, the first element +containing the pattern and the second containing the modifiers used when +the pattern was compiled. +.Sp +.Vb 1 +\& my ($pat, $mods) = regexp_pattern($ref); +.Ve +.Sp +In scalar context it returns the same as perl would when stringifying a raw +\&\f(CW\*(C`qr//\*(C'\fR with the same pattern inside. If the argument is not a compiled +reference then this routine returns false but defined in scalar context, +and the empty list in list context. Thus the following +.Sp +.Vb 1 +\& if (regexp_pattern($ref) eq \*(Aq(?^i:foo)\*(Aq) +.Ve +.Sp +will be warning free regardless of what \f(CW$ref\fR actually is. +.Sp +Like \f(CW\*(C`is_regexp\*(C'\fR this function will not be confused by overloading +or blessing of the object. +.IP "regmust($ref)" 4 +.IX Item "regmust($ref)" +If the argument is a compiled regular expression as returned by \f(CW\*(C`qr//\*(C'\fR, +then this function returns what the optimiser considers to be the longest +anchored fixed string and longest floating fixed string in the pattern. +.Sp +A \fIfixed string\fR is defined as being a substring that must appear for the +pattern to match. An \fIanchored fixed string\fR is a fixed string that must +appear at a particular offset from the beginning of the match. A \fIfloating +fixed string\fR is defined as a fixed string that can appear at any point in +a range of positions relative to the start of the match. For example, +.Sp +.Vb 3 +\& my $qr = qr/here .* there/x; +\& my ($anchored, $floating) = regmust($qr); +\& print "anchored:\*(Aq$anchored\*(Aq\enfloating:\*(Aq$floating\*(Aq\en"; +.Ve +.Sp +results in +.Sp +.Vb 2 +\& anchored:\*(Aqhere\*(Aq +\& floating:\*(Aqthere\*(Aq +.Ve +.Sp +Because the \f(CW\*(C`here\*(C'\fR is before the \f(CW\*(C`.*\*(C'\fR in the pattern, its position +can be determined exactly. That's not true, however, for the \f(CW\*(C`there\*(C'\fR; +it could appear at any point after where the anchored string appeared. +Perl uses both for its optimisations, preferring the longer, or, if they are +equal, the floating. +.Sp +\&\fB\s-1NOTE:\s0\fR This may not necessarily be the definitive longest anchored and +floating string. This will be what the optimiser of the Perl that you +are using thinks is the longest. If you believe that the result is wrong +please report it via the perlbug utility. +.IP "regname($name,$all)" 4 +.IX Item "regname($name,$all)" +Returns the contents of a named buffer of the last successful match. If +\&\f(CW$all\fR is true, then returns an array ref containing one entry per buffer, +otherwise returns the first defined buffer. +.IP "regnames($all)" 4 +.IX Item "regnames($all)" +Returns a list of all of the named buffers defined in the last successful +match. If \f(CW$all\fR is true, then it returns all names defined, if not it returns +only names which were involved in the match. +.IP "\fBregnames_count()\fR" 4 +.IX Item "regnames_count()" +Returns the number of distinct names defined in the pattern used +for the last successful match. +.Sp +\&\fBNote:\fR this result is always the actual number of distinct +named buffers defined, it may not actually match that which is +returned by \f(CW\*(C`regnames()\*(C'\fR and related routines when those routines +have not been called with the \f(CW$all\fR parameter set. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"Pragmatic Modules\*(R" in perlmodlib. diff --git a/data/miniconda3/man/man3/sigtrap.3 b/data/miniconda3/man/man3/sigtrap.3 new file mode 100644 index 0000000000000000000000000000000000000000..e7679481622c07c89165e4b70bcb24bc81332f4f --- /dev/null +++ b/data/miniconda3/man/man3/sigtrap.3 @@ -0,0 +1,296 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "sigtrap 3" +.TH sigtrap 3 "2020-12-18" "perl v5.32.1" "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" +sigtrap \- Perl pragma to enable simple signal handling +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 11 +\& use sigtrap; +\& use sigtrap qw(stack\-trace old\-interface\-signals); # equivalent +\& use sigtrap qw(BUS SEGV PIPE ABRT); +\& use sigtrap qw(die INT QUIT); +\& use sigtrap qw(die normal\-signals); +\& use sigtrap qw(die untrapped normal\-signals); +\& use sigtrap qw(die untrapped normal\-signals +\& stack\-trace any error\-signals); +\& use sigtrap \*(Aqhandler\*(Aq => \e&my_handler, \*(Aqnormal\-signals\*(Aq; +\& use sigtrap qw(handler my_handler normal\-signals +\& stack\-trace error\-signals); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \fBsigtrap\fR pragma is a simple interface to installing signal +handlers. You can have it install one of two handlers supplied by +\&\fBsigtrap\fR itself (one which provides a Perl stack trace and one which +simply \f(CW\*(C`die()\*(C'\fRs), or alternately you can supply your own handler for it +to install. It can be told only to install a handler for signals which +are either untrapped or ignored. It has a couple of lists of signals to +trap, plus you can supply your own list of signals. +.PP +The arguments passed to the \f(CW\*(C`use\*(C'\fR statement which invokes \fBsigtrap\fR +are processed in order. When a signal name or the name of one of +\&\fBsigtrap\fR's signal lists is encountered a handler is immediately +installed, when an option is encountered it affects subsequently +installed handlers. +.SH "OPTIONS" +.IX Header "OPTIONS" +.SS "\s-1SIGNAL HANDLERS\s0" +.IX Subsection "SIGNAL HANDLERS" +These options affect which handler will be used for subsequently +installed signals. +.IP "\fBstack-trace\fR" 4 +.IX Item "stack-trace" +The handler used for subsequently installed signals outputs a Perl stack +trace to \s-1STDERR\s0 and then tries to dump core. This is the default signal +handler. +.IP "\fBdie\fR" 4 +.IX Item "die" +The handler used for subsequently installed signals calls \f(CW\*(C`die\*(C'\fR +(actually \f(CW\*(C`croak\*(C'\fR) with a message indicating which signal was caught. +.IP "\fBhandler\fR \fIyour-handler\fR" 4 +.IX Item "handler your-handler" +\&\fIyour-handler\fR will be used as the handler for subsequently installed +signals. \fIyour-handler\fR can be any value which is valid as an +assignment to an element of \f(CW%SIG\fR. See perlvar for examples of +handler functions. +.SS "\s-1SIGNAL LISTS\s0" +.IX Subsection "SIGNAL LISTS" +\&\fBsigtrap\fR has a few built-in lists of signals to trap. They are: +.IP "\fBnormal-signals\fR" 4 +.IX Item "normal-signals" +These are the signals which a program might normally expect to encounter +and which by default cause it to terminate. They are \s-1HUP, INT, PIPE\s0 and +\&\s-1TERM.\s0 +.IP "\fBerror-signals\fR" 4 +.IX Item "error-signals" +These signals usually indicate a serious problem with the Perl +interpreter or with your script. They are \s-1ABRT, BUS, EMT, FPE, ILL, +QUIT, SEGV, SYS\s0 and \s-1TRAP.\s0 +.IP "\fBold-interface-signals\fR" 4 +.IX Item "old-interface-signals" +These are the signals which were trapped by default by the old +\&\fBsigtrap\fR interface, they are \s-1ABRT, BUS, EMT, FPE, ILL, PIPE, QUIT, +SEGV, SYS, TERM,\s0 and \s-1TRAP.\s0 If no signals or signals lists are passed to +\&\fBsigtrap\fR, this list is used. +.PP +For each of these three lists, the collection of signals set to be +trapped is checked before trapping; if your architecture does not +implement a particular signal, it will not be trapped but rather +silently ignored. +.SS "\s-1OTHER\s0" +.IX Subsection "OTHER" +.IP "\fBuntrapped\fR" 4 +.IX Item "untrapped" +This token tells \fBsigtrap\fR to install handlers only for subsequently +listed signals which aren't already trapped or ignored. +.IP "\fBany\fR" 4 +.IX Item "any" +This token tells \fBsigtrap\fR to install handlers for all subsequently +listed signals. This is the default behavior. +.IP "\fIsignal\fR" 4 +.IX Item "signal" +Any argument which looks like a signal name (that is, +\&\f(CW\*(C`/^[A\-Z][A\-Z0\-9]*$/\*(C'\fR) indicates that \fBsigtrap\fR should install a +handler for that name. +.IP "\fInumber\fR" 4 +.IX Item "number" +Require that at least version \fInumber\fR of \fBsigtrap\fR is being used. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Provide a stack trace for the old-interface-signals: +.PP +.Vb 1 +\& use sigtrap; +.Ve +.PP +Ditto: +.PP +.Vb 1 +\& use sigtrap qw(stack\-trace old\-interface\-signals); +.Ve +.PP +Provide a stack trace on the 4 listed signals only: +.PP +.Vb 1 +\& use sigtrap qw(BUS SEGV PIPE ABRT); +.Ve +.PP +Die on \s-1INT\s0 or \s-1QUIT:\s0 +.PP +.Vb 1 +\& use sigtrap qw(die INT QUIT); +.Ve +.PP +Die on \s-1HUP, INT, PIPE\s0 or \s-1TERM:\s0 +.PP +.Vb 1 +\& use sigtrap qw(die normal\-signals); +.Ve +.PP +Die on \s-1HUP, INT, PIPE\s0 or \s-1TERM,\s0 except don't change the behavior for +signals which are already trapped or ignored: +.PP +.Vb 1 +\& use sigtrap qw(die untrapped normal\-signals); +.Ve +.PP +Die on receipt one of an of the \fBnormal-signals\fR which is currently +\&\fBuntrapped\fR, provide a stack trace on receipt of \fBany\fR of the +\&\fBerror-signals\fR: +.PP +.Vb 2 +\& use sigtrap qw(die untrapped normal\-signals +\& stack\-trace any error\-signals); +.Ve +.PP +Install \fBmy_handler()\fR as the handler for the \fBnormal-signals\fR: +.PP +.Vb 1 +\& use sigtrap \*(Aqhandler\*(Aq, \e&my_handler, \*(Aqnormal\-signals\*(Aq; +.Ve +.PP +Install \fBmy_handler()\fR as the handler for the normal-signals, provide a +Perl stack trace on receipt of one of the error-signals: +.PP +.Vb 2 +\& use sigtrap qw(handler my_handler normal\-signals +\& stack\-trace error\-signals); +.Ve diff --git a/data/miniconda3/man/man3/sort.3 b/data/miniconda3/man/man3/sort.3 new file mode 100644 index 0000000000000000000000000000000000000000..44030e06e276087313cbaf92a91ac1823774dfe5 --- /dev/null +++ b/data/miniconda3/man/man3/sort.3 @@ -0,0 +1,234 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "sort 3" +.TH sort 3 "2020-12-18" "perl v5.32.1" "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" +sort \- perl pragma to control sort() behaviour +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use sort \*(Aqstable\*(Aq; # guarantee stability +\& use sort \*(Aqdefaults\*(Aq; # revert to default behavior +\& no sort \*(Aqstable\*(Aq; # stability not important +\& +\& my $current; +\& BEGIN { +\& $current = sort::current(); # identify prevailing pragmata +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +With the \f(CW\*(C`sort\*(C'\fR pragma you can control the behaviour of the builtin +\&\f(CW\*(C`sort()\*(C'\fR function. +.PP +A stable sort means that for records that compare equal, the original +input ordering is preserved. +Stability will matter only if elements that compare equal can be +distinguished in some other way. That means that simple numerical +and lexical sorts do not profit from stability, since equal elements +are indistinguishable. However, with a comparison such as +.PP +.Vb 1 +\& { substr($a, 0, 3) cmp substr($b, 0, 3) } +.Ve +.PP +stability might matter because elements that compare equal on the +first 3 characters may be distinguished based on subsequent characters. +.PP +Whether sorting is stable by default is an accident of implementation +that can change (and has changed) between Perl versions. +If stability is important, be sure to +say so with a +.PP +.Vb 1 +\& use sort \*(Aqstable\*(Aq; +.Ve +.PP +The \f(CW\*(C`no sort\*(C'\fR pragma doesn't +\&\fIforbid\fR what follows, it just leaves the choice open. Thus, after +.PP +.Vb 1 +\& no sort \*(Aqstable\*(Aq; +.Ve +.PP +sorting may happen to be stable anyway. +.SH "CAVEATS" +.IX Header "CAVEATS" +As of Perl 5.10, this pragma is lexically scoped and takes effect +at compile time. In earlier versions its effect was global and took +effect at run-time; the documentation suggested using \f(CW\*(C`eval()\*(C'\fR to +change the behaviour: +.PP +.Vb 10 +\& { eval \*(Aqno sort "stable"\*(Aq; # stability not wanted +\& print sort::current . "\en"; +\& @a = sort @b; +\& eval \*(Aquse sort "defaults"\*(Aq; # clean up, for others +\& } +\& { eval \*(Aquse sort qw(defaults stable)\*(Aq; # force stability +\& print sort::current . "\en"; +\& @c = sort @d; +\& eval \*(Aquse sort "defaults"\*(Aq; # clean up, for others +\& } +.Ve +.PP +Such code no longer has the desired effect, for two reasons. +Firstly, the use of \f(CW\*(C`eval()\*(C'\fR means that the sorting algorithm +is not changed until runtime, by which time it's too late to +have any effect. Secondly, \f(CW\*(C`sort::current\*(C'\fR is also called at +run-time, when in fact the compile-time value of \f(CW\*(C`sort::current\*(C'\fR +is the one that matters. +.PP +So now this code would be written: +.PP +.Vb 10 +\& { no sort "stable"; # stability not wanted +\& my $current; +\& BEGIN { $current = sort::current; } +\& print "$current\en"; +\& @a = sort @b; +\& # Pragmas go out of scope at the end of the block +\& } +\& { use sort qw(defaults stable); # force stability +\& my $current; +\& BEGIN { $current = sort::current; } +\& print "$current\en"; +\& @c = sort @d; +\& } +.Ve diff --git a/data/miniconda3/man/man3/strict.3 b/data/miniconda3/man/man3/strict.3 new file mode 100644 index 0000000000000000000000000000000000000000..3b8ac12988fb69f4a295ee833111b1c9ffec3f90 --- /dev/null +++ b/data/miniconda3/man/man3/strict.3 @@ -0,0 +1,246 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "strict 3" +.TH strict 3 "2020-12-18" "perl v5.32.1" "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" +strict \- Perl pragma to restrict unsafe constructs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use strict; +\& +\& use strict "vars"; +\& use strict "refs"; +\& use strict "subs"; +\& +\& use strict; +\& no strict "vars"; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`strict\*(C'\fR pragma disables certain Perl expressions that could behave +unexpectedly or are difficult to debug, turning them into errors. The +effect of this pragma is limited to the current file or scope block. +.PP +If no import list is supplied, all possible restrictions are assumed. +(This is the safest mode to operate in, but is sometimes too strict for +casual programming.) Currently, there are three possible things to be +strict about: \*(L"subs\*(R", \*(L"vars\*(R", and \*(L"refs\*(R". +.ie n .IP """strict refs""" 6 +.el .IP "\f(CWstrict refs\fR" 6 +.IX Item "strict refs" +This generates a runtime error if you +use symbolic references (see perlref). +.Sp +.Vb 7 +\& use strict \*(Aqrefs\*(Aq; +\& $ref = \e$foo; +\& print $$ref; # ok +\& $ref = "foo"; +\& print $$ref; # runtime error; normally ok +\& $file = "STDOUT"; +\& print $file "Hi!"; # error; note: no comma after $file +.Ve +.Sp +There is one exception to this rule: +.Sp +.Vb 2 +\& $bar = \e&{\*(Aqfoo\*(Aq}; +\& &$bar; +.Ve +.Sp +is allowed so that \f(CW\*(C`goto &$AUTOLOAD\*(C'\fR would not break under stricture. +.ie n .IP """strict vars""" 6 +.el .IP "\f(CWstrict vars\fR" 6 +.IX Item "strict vars" +This generates a compile-time error if you access a variable that was +neither explicitly declared (using any of \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`our\*(C'\fR, \f(CW\*(C`state\*(C'\fR, or \f(CW\*(C`use +vars\*(C'\fR) nor fully qualified. (Because this is to avoid variable suicide +problems and subtle dynamic scoping issues, a merely \f(CW\*(C`local\*(C'\fR variable isn't +good enough.) See \*(L"my\*(R" in perlfunc, \*(L"our\*(R" in perlfunc, \*(L"state\*(R" in perlfunc, +\&\*(L"local\*(R" in perlfunc, and vars. +.Sp +.Vb 4 +\& use strict \*(Aqvars\*(Aq; +\& $X::foo = 1; # ok, fully qualified +\& my $foo = 10; # ok, my() var +\& local $baz = 9; # blows up, $baz not declared before +\& +\& package Cinna; +\& our $bar; # Declares $bar in current package +\& $bar = \*(AqHgS\*(Aq; # ok, global declared via pragma +.Ve +.Sp +The \fBlocal()\fR generated a compile-time error because you just touched a global +name without fully qualifying it. +.Sp +Because of their special use by \fBsort()\fR, the variables \f(CW$a\fR and \f(CW$b\fR are +exempted from this check. +.ie n .IP """strict subs""" 6 +.el .IP "\f(CWstrict subs\fR" 6 +.IX Item "strict subs" +This disables the poetry optimization, generating a compile-time error if +you try to use a bareword identifier that's not a subroutine, unless it +is a simple identifier (no colons) and that it appears in curly braces or +on the left hand side of the \f(CW\*(C`=>\*(C'\fR symbol. +.Sp +.Vb 4 +\& use strict \*(Aqsubs\*(Aq; +\& $SIG{PIPE} = Plumber; # blows up +\& $SIG{PIPE} = "Plumber"; # fine: quoted string is always ok +\& $SIG{PIPE} = \e&Plumber; # preferred form +.Ve +.PP +See \*(L"Pragmatic Modules\*(R" in perlmodlib. +.SH "HISTORY" +.IX Header "HISTORY" +\&\f(CW\*(C`strict \*(Aqsubs\*(Aq\*(C'\fR, with Perl 5.6.1, erroneously permitted to use an unquoted +compound identifier (e.g. \f(CW\*(C`Foo::Bar\*(C'\fR) as a hash key (before \f(CW\*(C`=>\*(C'\fR or +inside curlies), but without forcing it always to a literal string. +.PP +Starting with Perl 5.8.1 strict is strict about its restrictions: +if unknown restrictions are used, the strict pragma will abort with +.PP +.Vb 1 +\& Unknown \*(Aqstrict\*(Aq tag(s) \*(Aq...\*(Aq +.Ve +.PP +As of version 1.04 (Perl 5.10), strict verifies that it is used as +\&\*(L"strict\*(R" to avoid the dreaded Strict trap on case insensitive file +systems. diff --git a/data/miniconda3/man/man3/subs.3 b/data/miniconda3/man/man3/subs.3 new file mode 100644 index 0000000000000000000000000000000000000000..a8954ad1a7fda0b9aa79a74917ce47397fe72662 --- /dev/null +++ b/data/miniconda3/man/man3/subs.3 @@ -0,0 +1,161 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "subs 3" +.TH subs 3 "2020-12-18" "perl v5.32.1" "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" +subs \- Perl pragma to predeclare subroutine names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use subs qw(frob); +\& frob 3..10; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This will predeclare all the subroutines whose names are +in the list, allowing you to use them without parentheses (as list operators) +even before they're declared. +.PP +Unlike pragmas that affect the \f(CW$^H\fR hints variable, the \f(CW\*(C`use vars\*(C'\fR and +\&\f(CW\*(C`use subs\*(C'\fR declarations are not lexically scoped to the block they appear +in: they affect +the entire package in which they appear. It is not possible to rescind these +declarations with \f(CW\*(C`no vars\*(C'\fR or \f(CW\*(C`no subs\*(C'\fR. +.PP +See \*(L"Pragmatic Modules\*(R" in perlmodlib and \*(L"strict subs\*(R" in strict. diff --git a/data/miniconda3/man/man3/threads%3A%3Ashared.3 b/data/miniconda3/man/man3/threads%3A%3Ashared.3 new file mode 100644 index 0000000000000000000000000000000000000000..d6fd74745440163e12d5f88dac994426f5f42b9b --- /dev/null +++ b/data/miniconda3/man/man3/threads%3A%3Ashared.3 @@ -0,0 +1,652 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "threads::shared 3" +.TH threads::shared 3 "2020-12-18" "perl v5.32.1" "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" +threads::shared \- Perl extension for sharing data structures between threads +.SH "VERSION" +.IX Header "VERSION" +This document describes threads::shared version 1.61 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use threads; +\& use threads::shared; +\& +\& my $var :shared; +\& my %hsh :shared; +\& my @ary :shared; +\& +\& my ($scalar, @array, %hash); +\& share($scalar); +\& share(@array); +\& share(%hash); +\& +\& $var = $scalar_value; +\& $var = $shared_ref_value; +\& $var = shared_clone($non_shared_ref_value); +\& $var = shared_clone({\*(Aqfoo\*(Aq => [qw/foo bar baz/]}); +\& +\& $hsh{\*(Aqfoo\*(Aq} = $scalar_value; +\& $hsh{\*(Aqbar\*(Aq} = $shared_ref_value; +\& $hsh{\*(Aqbaz\*(Aq} = shared_clone($non_shared_ref_value); +\& $hsh{\*(Aqquz\*(Aq} = shared_clone([1..3]); +\& +\& $ary[0] = $scalar_value; +\& $ary[1] = $shared_ref_value; +\& $ary[2] = shared_clone($non_shared_ref_value); +\& $ary[3] = shared_clone([ {}, [] ]); +\& +\& { lock(%hash); ... } +\& +\& cond_wait($scalar); +\& cond_timedwait($scalar, time() + 30); +\& cond_broadcast(@array); +\& cond_signal(%hash); +\& +\& my $lockvar :shared; +\& # condition var != lock var +\& cond_wait($var, $lockvar); +\& cond_timedwait($var, time()+30, $lockvar); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +By default, variables are private to each thread, and each newly created +thread gets a private copy of each existing variable. This module allows you +to share variables across different threads (and pseudo-forks on Win32). It +is used together with the threads module. +.PP +This module supports the sharing of the following data types only: scalars +and scalar refs, arrays and array refs, and hashes and hash refs. +.SH "EXPORT" +.IX Header "EXPORT" +The following functions are exported by this module: \f(CW\*(C`share\*(C'\fR, +\&\f(CW\*(C`shared_clone\*(C'\fR, \f(CW\*(C`is_shared\*(C'\fR, \f(CW\*(C`cond_wait\*(C'\fR, \f(CW\*(C`cond_timedwait\*(C'\fR, \f(CW\*(C`cond_signal\*(C'\fR +and \f(CW\*(C`cond_broadcast\*(C'\fR +.PP +Note that if this module is imported when threads has not yet been loaded, +then these functions all become no-ops. This makes it possible to write +modules that will work in both threaded and non-threaded environments. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "share \s-1VARIABLE\s0" 4 +.IX Item "share VARIABLE" +\&\f(CW\*(C`share\*(C'\fR takes a variable and marks it as shared: +.Sp +.Vb 4 +\& my ($scalar, @array, %hash); +\& share($scalar); +\& share(@array); +\& share(%hash); +.Ve +.Sp +\&\f(CW\*(C`share\*(C'\fR will return the shared rvalue, but always as a reference. +.Sp +Variables can also be marked as shared at compile time by using the +\&\f(CW\*(C`:shared\*(C'\fR attribute: +.Sp +.Vb 1 +\& my ($var, %hash, @array) :shared; +.Ve +.Sp +Shared variables can only store scalars, refs of shared variables, or +refs of shared data (discussed in next section): +.Sp +.Vb 2 +\& my ($var, %hash, @array) :shared; +\& my $bork; +\& +\& # Storing scalars +\& $var = 1; +\& $hash{\*(Aqfoo\*(Aq} = \*(Aqbar\*(Aq; +\& $array[0] = 1.5; +\& +\& # Storing shared refs +\& $var = \e%hash; +\& $hash{\*(Aqary\*(Aq} = \e@array; +\& $array[1] = \e$var; +\& +\& # The following are errors: +\& # $var = \e$bork; # ref of non\-shared variable +\& # $hash{\*(Aqbork\*(Aq} = []; # non\-shared array ref +\& # push(@array, { \*(Aqx\*(Aq => 1 }); # non\-shared hash ref +.Ve +.IP "shared_clone \s-1REF\s0" 4 +.IX Item "shared_clone REF" +\&\f(CW\*(C`shared_clone\*(C'\fR takes a reference, and returns a shared version of its +argument, performing a deep copy on any non-shared elements. Any shared +elements in the argument are used as is (i.e., they are not cloned). +.Sp +.Vb 1 +\& my $cpy = shared_clone({\*(Aqfoo\*(Aq => [qw/foo bar baz/]}); +.Ve +.Sp +Object status (i.e., the class an object is blessed into) is also cloned. +.Sp +.Vb 4 +\& my $obj = {\*(Aqfoo\*(Aq => [qw/foo bar baz/]}; +\& bless($obj, \*(AqFoo\*(Aq); +\& my $cpy = shared_clone($obj); +\& print(ref($cpy), "\en"); # Outputs \*(AqFoo\*(Aq +.Ve +.Sp +For cloning empty array or hash refs, the following may also be used: +.Sp +.Vb 2 +\& $var = &share([]); # Same as $var = shared_clone([]); +\& $var = &share({}); # Same as $var = shared_clone({}); +.Ve +.Sp +Not all Perl data types can be cloned (e.g., globs, code refs). By default, +\&\f(CW\*(C`shared_clone\*(C'\fR will croak if it encounters such items. To change +this behaviour to a warning, then set the following: +.Sp +.Vb 1 +\& $threads::shared::clone_warn = 1; +.Ve +.Sp +In this case, \f(CW\*(C`undef\*(C'\fR will be substituted for the item to be cloned. If +set to zero: +.Sp +.Vb 1 +\& $threads::shared::clone_warn = 0; +.Ve +.Sp +then the \f(CW\*(C`undef\*(C'\fR substitution will be performed silently. +.IP "is_shared \s-1VARIABLE\s0" 4 +.IX Item "is_shared VARIABLE" +\&\f(CW\*(C`is_shared\*(C'\fR checks if the specified variable is shared or not. If shared, +returns the variable's internal \s-1ID\s0 (similar to +\&\f(CW\*(C`refaddr()\*(C'\fR (see Scalar::Util). Otherwise, returns \f(CW\*(C`undef\*(C'\fR. +.Sp +.Vb 5 +\& if (is_shared($var)) { +\& print("\e$var is shared\en"); +\& } else { +\& print("\e$var is not shared\en"); +\& } +.Ve +.Sp +When used on an element of an array or hash, \f(CW\*(C`is_shared\*(C'\fR checks if the +specified element belongs to a shared array or hash. (It does not check +the contents of that element.) +.Sp +.Vb 4 +\& my %hash :shared; +\& if (is_shared(%hash)) { +\& print("\e%hash is shared\en"); +\& } +\& +\& $hash{\*(Aqelem\*(Aq} = 1; +\& if (is_shared($hash{\*(Aqelem\*(Aq})) { +\& print("\e$hash{\*(Aqelem\*(Aq} is in a shared hash\en"); +\& } +.Ve +.IP "lock \s-1VARIABLE\s0" 4 +.IX Item "lock VARIABLE" +\&\f(CW\*(C`lock\*(C'\fR places a \fBadvisory\fR lock on a variable until the lock goes out of +scope. If the variable is locked by another thread, the \f(CW\*(C`lock\*(C'\fR call will +block until it's available. Multiple calls to \f(CW\*(C`lock\*(C'\fR by the same thread from +within dynamically nested scopes are safe \*(-- the variable will remain locked +until the outermost lock on the variable goes out of scope. +.Sp +\&\f(CW\*(C`lock\*(C'\fR follows references exactly \fIone\fR level: +.Sp +.Vb 3 +\& my %hash :shared; +\& my $ref = \e%hash; +\& lock($ref); # This is equivalent to lock(%hash) +.Ve +.Sp +Note that you cannot explicitly unlock a variable; you can only wait for the +lock to go out of scope. This is most easily accomplished by locking the +variable inside a block. +.Sp +.Vb 7 +\& my $var :shared; +\& { +\& lock($var); +\& # $var is locked from here to the end of the block +\& ... +\& } +\& # $var is now unlocked +.Ve +.Sp +As locks are advisory, they do not prevent data access or modification by +another thread that does not itself attempt to obtain a lock on the variable. +.Sp +You cannot lock the individual elements of a container variable: +.Sp +.Vb 4 +\& my %hash :shared; +\& $hash{\*(Aqfoo\*(Aq} = \*(Aqbar\*(Aq; +\& #lock($hash{\*(Aqfoo\*(Aq}); # Error +\& lock(%hash); # Works +.Ve +.Sp +If you need more fine-grained control over shared variable access, see +Thread::Semaphore. +.IP "cond_wait \s-1VARIABLE\s0" 4 +.IX Item "cond_wait VARIABLE" +.PD 0 +.IP "cond_wait \s-1CONDVAR, LOCKVAR\s0" 4 +.IX Item "cond_wait CONDVAR, LOCKVAR" +.PD +The \f(CW\*(C`cond_wait\*(C'\fR function takes a \fBlocked\fR variable as a parameter, unlocks +the variable, and blocks until another thread does a \f(CW\*(C`cond_signal\*(C'\fR or +\&\f(CW\*(C`cond_broadcast\*(C'\fR for that same locked variable. The variable that +\&\f(CW\*(C`cond_wait\*(C'\fR blocked on is re-locked after the \f(CW\*(C`cond_wait\*(C'\fR is satisfied. If +there are multiple threads \f(CW\*(C`cond_wait\*(C'\fRing on the same variable, all but one +will re-block waiting to reacquire the +lock on the variable. (So if you're only +using \f(CW\*(C`cond_wait\*(C'\fR for synchronization, give up the lock as soon as possible). +The two actions of unlocking the variable and entering the blocked wait state +are atomic, the two actions of exiting from the blocked wait state and +re-locking the variable are not. +.Sp +In its second form, \f(CW\*(C`cond_wait\*(C'\fR takes a shared, \fBunlocked\fR variable followed +by a shared, \fBlocked\fR variable. The second variable is unlocked and thread +execution suspended until another thread signals the first variable. +.Sp +It is important to note that the variable can be notified even if no thread +\&\f(CW\*(C`cond_signal\*(C'\fR or \f(CW\*(C`cond_broadcast\*(C'\fR on the variable. It is therefore +important to check the value of the variable and go back to waiting if the +requirement is not fulfilled. For example, to pause until a shared counter +drops to zero: +.Sp +.Vb 1 +\& { lock($counter); cond_wait($counter) until $counter == 0; } +.Ve +.IP "cond_timedwait \s-1VARIABLE, ABS_TIMEOUT\s0" 4 +.IX Item "cond_timedwait VARIABLE, ABS_TIMEOUT" +.PD 0 +.IP "cond_timedwait \s-1CONDVAR, ABS_TIMEOUT, LOCKVAR\s0" 4 +.IX Item "cond_timedwait CONDVAR, ABS_TIMEOUT, LOCKVAR" +.PD +In its two-argument form, \f(CW\*(C`cond_timedwait\*(C'\fR takes a \fBlocked\fR variable and an +absolute timeout in \fIepoch\fR seconds (see \fBtime()\fR in perlfunc +for more) as parameters, unlocks the variable, and blocks until the +timeout is reached or another thread signals the variable. A false value is +returned if the timeout is reached, and a true value otherwise. In either +case, the variable is re-locked upon return. +.Sp +Like \f(CW\*(C`cond_wait\*(C'\fR, this function may take a shared, \fBlocked\fR variable as an +additional parameter; in this case the first parameter is an \fBunlocked\fR +condition variable protected by a distinct lock variable. +.Sp +Again like \f(CW\*(C`cond_wait\*(C'\fR, waking up and reacquiring the lock are not atomic, +and you should always check your desired condition after this function +returns. Since the timeout is an absolute value, however, it does not have to +be recalculated with each pass: +.Sp +.Vb 6 +\& lock($var); +\& my $abs = time() + 15; +\& until ($ok = desired_condition($var)) { +\& last if !cond_timedwait($var, $abs); +\& } +\& # we got it if $ok, otherwise we timed out! +.Ve +.IP "cond_signal \s-1VARIABLE\s0" 4 +.IX Item "cond_signal VARIABLE" +The \f(CW\*(C`cond_signal\*(C'\fR function takes a \fBlocked\fR variable as a parameter and +unblocks one thread that's \f(CW\*(C`cond_wait\*(C'\fRing +on that variable. If more than one +thread is blocked in a \f(CW\*(C`cond_wait\*(C'\fR on that variable, only one (and which one +is indeterminate) will be unblocked. +.Sp +If there are no threads blocked in a \f(CW\*(C`cond_wait\*(C'\fR on the variable, the signal +is discarded. By always locking before +signaling, you can (with care), avoid +signaling before another thread has entered \fBcond_wait()\fR. +.Sp +\&\f(CW\*(C`cond_signal\*(C'\fR will normally generate a warning if you attempt to use it on an +unlocked variable. On the rare occasions +where doing this may be sensible, you +can suppress the warning with: +.Sp +.Vb 1 +\& { no warnings \*(Aqthreads\*(Aq; cond_signal($foo); } +.Ve +.IP "cond_broadcast \s-1VARIABLE\s0" 4 +.IX Item "cond_broadcast VARIABLE" +The \f(CW\*(C`cond_broadcast\*(C'\fR function works similarly to \f(CW\*(C`cond_signal\*(C'\fR. +\&\f(CW\*(C`cond_broadcast\*(C'\fR, though, will unblock \fBall\fR the threads that are blocked in +a \f(CW\*(C`cond_wait\*(C'\fR on the locked variable, rather than only one. +.SH "OBJECTS" +.IX Header "OBJECTS" +threads::shared exports a version of \fBbless()\fR that +works on shared objects such that \fIblessings\fR propagate across threads. +.PP +.Vb 3 +\& # Create a shared \*(AqFoo\*(Aq object +\& my $foo :shared = shared_clone({}); +\& bless($foo, \*(AqFoo\*(Aq); +\& +\& # Create a shared \*(AqBar\*(Aq object +\& my $bar :shared = shared_clone({}); +\& bless($bar, \*(AqBar\*(Aq); +\& +\& # Put \*(Aqbar\*(Aq inside \*(Aqfoo\*(Aq +\& $foo\->{\*(Aqbar\*(Aq} = $bar; +\& +\& # Rebless the objects via a thread +\& threads\->create(sub { +\& # Rebless the outer object +\& bless($foo, \*(AqYin\*(Aq); +\& +\& # Cannot directly rebless the inner object +\& #bless($foo\->{\*(Aqbar\*(Aq}, \*(AqYang\*(Aq); +\& +\& # Retrieve and rebless the inner object +\& my $obj = $foo\->{\*(Aqbar\*(Aq}; +\& bless($obj, \*(AqYang\*(Aq); +\& $foo\->{\*(Aqbar\*(Aq} = $obj; +\& +\& })\->join(); +\& +\& print(ref($foo), "\en"); # Prints \*(AqYin\*(Aq +\& print(ref($foo\->{\*(Aqbar\*(Aq}), "\en"); # Prints \*(AqYang\*(Aq +\& print(ref($bar), "\en"); # Also prints \*(AqYang\*(Aq +.Ve +.SH "NOTES" +.IX Header "NOTES" +threads::shared is designed to disable itself silently if threads are not +available. This allows you to write modules and packages that can be used +in both threaded and non-threaded applications. +.PP +If you want access to threads, you must \f(CW\*(C`use threads\*(C'\fR before you +\&\f(CW\*(C`use threads::shared\*(C'\fR. threads will emit a warning if you use it after +threads::shared. +.SH "WARNINGS" +.IX Header "WARNINGS" +.IP "\fBcond_broadcast()\fR called on unlocked variable" 4 +.IX Item "cond_broadcast() called on unlocked variable" +.PD 0 +.IP "\fBcond_signal()\fR called on unlocked variable" 4 +.IX Item "cond_signal() called on unlocked variable" +.PD +See \*(L"cond_signal \s-1VARIABLE\*(R"\s0, above. +.SH "BUGS AND LIMITATIONS" +.IX Header "BUGS AND LIMITATIONS" +When \f(CW\*(C`share\*(C'\fR is used on arrays, hashes, array refs or hash refs, any data +they contain will be lost. +.PP +.Vb 3 +\& my @arr = qw(foo bar baz); +\& share(@arr); +\& # @arr is now empty (i.e., == ()); +\& +\& # Create a \*(Aqfoo\*(Aq object +\& my $foo = { \*(Aqdata\*(Aq => 99 }; +\& bless($foo, \*(Aqfoo\*(Aq); +\& +\& # Share the object +\& share($foo); # Contents are now wiped out +\& print("ERROR: \e$foo is empty\en") +\& if (! exists($foo\->{\*(Aqdata\*(Aq})); +.Ve +.PP +Therefore, populate such variables \fBafter\fR declaring them as shared. (Scalar +and scalar refs are not affected by this problem.) +.PP +Blessing a shared item after it has been nested in another shared item does +not propagate the blessing to the shared reference: +.PP +.Vb 5 +\& my $foo = &share({}); +\& my $bar = &share({}); +\& $bar\->{foo} = $foo; +\& bless($foo, \*(Aqbaz\*(Aq); # $foo is now of class \*(Aqbaz\*(Aq, +\& # but $bar\->{foo} is unblessed. +.Ve +.PP +Therefore, you should bless objects before sharing them. +.PP +It is often not wise to share an object unless the class itself has been +written to support sharing. For example, a shared object's destructor may +get called multiple times, once for each thread's scope exit, or may not +get called at all if it is embedded inside another shared object. Another +issue is that the contents of hash-based objects will be lost due to the +above mentioned limitation. See \fIexamples/class.pl\fR (in the \s-1CPAN\s0 +distribution of this module) for how to create a class that supports object +sharing. +.PP +Destructors may not be called on objects if those objects still exist at +global destruction time. If the destructors must be called, make sure +there are no circular references and that nothing is referencing the +objects before the program ends. +.PP +Does not support \f(CW\*(C`splice\*(C'\fR on arrays. Does not support explicitly changing +array lengths via $#array \*(-- use \f(CW\*(C`push\*(C'\fR and \f(CW\*(C`pop\*(C'\fR instead. +.PP +Taking references to the elements of shared arrays and hashes does not +autovivify the elements, and neither does slicing a shared array/hash over +non-existent indices/keys autovivify the elements. +.PP +\&\f(CW\*(C`share()\*(C'\fR allows you to \f(CW\*(C`share($hashref\->{key})\*(C'\fR and +\&\f(CW\*(C`share($arrayref\->[idx])\*(C'\fR without giving any error message. But the +\&\f(CW\*(C`$hashref\->{key}\*(C'\fR or \f(CW\*(C`$arrayref\->[idx]\*(C'\fR is \fBnot\fR shared, causing +the error \*(L"lock can only be used on shared values\*(R" to occur when you attempt +to \f(CW\*(C`lock($hashref\->{key})\*(C'\fR or \f(CW\*(C`lock($arrayref\->[idx])\*(C'\fR in another +thread. +.PP +Using \f(CW\*(C`refaddr()\*(C'\fR is unreliable for testing +whether or not two shared references are equivalent (e.g., when testing for +circular references). Use \fBis_shared()\fR, instead: +.PP +.Vb 3 +\& use threads; +\& use threads::shared; +\& use Scalar::Util qw(refaddr); +\& +\& # If ref is shared, use threads::shared\*(Aqs internal ID. +\& # Otherwise, use refaddr(). +\& my $addr1 = is_shared($ref1) || refaddr($ref1); +\& my $addr2 = is_shared($ref2) || refaddr($ref2); +\& +\& if ($addr1 == $addr2) { +\& # The refs are equivalent +\& } +.Ve +.PP +\&\fBeach()\fR does not work properly on shared references +embedded in shared structures. For example: +.PP +.Vb 2 +\& my %foo :shared; +\& $foo{\*(Aqbar\*(Aq} = shared_clone({\*(Aqa\*(Aq=>\*(Aqx\*(Aq, \*(Aqb\*(Aq=>\*(Aqy\*(Aq, \*(Aqc\*(Aq=>\*(Aqz\*(Aq}); +\& +\& while (my ($key, $val) = each(%{$foo{\*(Aqbar\*(Aq}})) { +\& ... +\& } +.Ve +.PP +Either of the following will work instead: +.PP +.Vb 4 +\& my $ref = $foo{\*(Aqbar\*(Aq}; +\& while (my ($key, $val) = each(%{$ref})) { +\& ... +\& } +\& +\& foreach my $key (keys(%{$foo{\*(Aqbar\*(Aq}})) { +\& my $val = $foo{\*(Aqbar\*(Aq}{$key}; +\& ... +\& } +.Ve +.PP +This module supports dual-valued variables created using \f(CW\*(C`dualvar()\*(C'\fR from +Scalar::Util. However, while \f(CW$!\fR acts +like a dualvar, it is implemented as a tied \s-1SV.\s0 To propagate its value, use +the follow construct, if needed: +.PP +.Vb 1 +\& my $errno :shared = dualvar($!,$!); +.Ve +.PP +View existing bug reports at, and submit any new bugs, problems, patches, etc. +to: +.SH "SEE ALSO" +.IX Header "SEE ALSO" +threads::shared on MetaCPAN: + +.PP +Code repository for \s-1CPAN\s0 distribution: + +.PP +threads, perlthrtut +.PP + and + +.PP +Perl threads mailing list: + +.PP +Sample code in the \fIexamples\fR directory of this distribution on \s-1CPAN.\s0 +.SH "AUTHOR" +.IX Header "AUTHOR" +Artur Bergman +.PP +Documentation borrowed from the old Thread.pm. +.PP +\&\s-1CPAN\s0 version produced by Jerry D. Hedden . +.SH "LICENSE" +.IX Header "LICENSE" +threads::shared is released under the same license as Perl. diff --git a/data/miniconda3/man/man3/threads.3 b/data/miniconda3/man/man3/threads.3 new file mode 100644 index 0000000000000000000000000000000000000000..786c13bdd41480aa04c3d19bd66cc6a59bf22f48 --- /dev/null +++ b/data/miniconda3/man/man3/threads.3 @@ -0,0 +1,1144 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "threads 3" +.TH threads 3 "2020-12-18" "perl v5.32.1" "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" +threads \- Perl interpreter\-based threads +.SH "VERSION" +.IX Header "VERSION" +This document describes threads version 2.25 +.SH "WARNING" +.IX Header "WARNING" +The \*(L"interpreter-based threads\*(R" provided by Perl are not the fast, lightweight +system for multitasking that one might expect or hope for. Threads are +implemented in a way that makes them easy to misuse. Few people know how to +use them correctly or will be able to provide help. +.PP +The use of interpreter-based threads in perl is officially +discouraged. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use threads (\*(Aqyield\*(Aq, +\& \*(Aqstack_size\*(Aq => 64*4096, +\& \*(Aqexit\*(Aq => \*(Aqthreads_only\*(Aq, +\& \*(Aqstringify\*(Aq); +\& +\& sub start_thread { +\& my @args = @_; +\& print(\*(AqThread started: \*(Aq, join(\*(Aq \*(Aq, @args), "\en"); +\& } +\& my $thr = threads\->create(\*(Aqstart_thread\*(Aq, \*(Aqargument\*(Aq); +\& $thr\->join(); +\& +\& threads\->create(sub { print("I am a thread\en"); })\->join(); +\& +\& my $thr2 = async { foreach (@files) { ... } }; +\& $thr2\->join(); +\& if (my $err = $thr2\->error()) { +\& warn("Thread error: $err\en"); +\& } +\& +\& # Invoke thread in list context (implicit) so it can return a list +\& my ($thr) = threads\->create(sub { return (qw/a b c/); }); +\& # or specify list context explicitly +\& my $thr = threads\->create({\*(Aqcontext\*(Aq => \*(Aqlist\*(Aq}, +\& sub { return (qw/a b c/); }); +\& my @results = $thr\->join(); +\& +\& $thr\->detach(); +\& +\& # Get a thread\*(Aqs object +\& $thr = threads\->self(); +\& $thr = threads\->object($tid); +\& +\& # Get a thread\*(Aqs ID +\& $tid = threads\->tid(); +\& $tid = $thr\->tid(); +\& $tid = "$thr"; +\& +\& # Give other threads a chance to run +\& threads\->yield(); +\& yield(); +\& +\& # Lists of non\-detached threads +\& my @threads = threads\->list(); +\& my $thread_count = threads\->list(); +\& +\& my @running = threads\->list(threads::running); +\& my @joinable = threads\->list(threads::joinable); +\& +\& # Test thread objects +\& if ($thr1 == $thr2) { +\& ... +\& } +\& +\& # Manage thread stack size +\& $stack_size = threads\->get_stack_size(); +\& $old_size = threads\->set_stack_size(32*4096); +\& +\& # Create a thread with a specific context and stack size +\& my $thr = threads\->create({ \*(Aqcontext\*(Aq => \*(Aqlist\*(Aq, +\& \*(Aqstack_size\*(Aq => 32*4096, +\& \*(Aqexit\*(Aq => \*(Aqthread_only\*(Aq }, +\& \e&foo); +\& +\& # Get thread\*(Aqs context +\& my $wantarray = $thr\->wantarray(); +\& +\& # Check thread\*(Aqs state +\& if ($thr\->is_running()) { +\& sleep(1); +\& } +\& if ($thr\->is_joinable()) { +\& $thr\->join(); +\& } +\& +\& # Send a signal to a thread +\& $thr\->kill(\*(AqSIGUSR1\*(Aq); +\& +\& # Exit a thread +\& threads\->exit(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Since Perl 5.8, thread programming has been available using a model called +\&\fIinterpreter threads\fR which provides a new Perl interpreter for each +thread, and, by default, results in no data or state information being shared +between threads. +.PP +(Prior to Perl 5.8, \fI5005threads\fR was available through the \f(CW\*(C`Thread.pm\*(C'\fR \s-1API.\s0 +This threading model has been deprecated, and was removed as of Perl 5.10.0.) +.PP +As just mentioned, all variables are, by default, thread local. To use shared +variables, you need to also load threads::shared: +.PP +.Vb 2 +\& use threads; +\& use threads::shared; +.Ve +.PP +When loading threads::shared, you must \f(CW\*(C`use threads\*(C'\fR before you +\&\f(CW\*(C`use threads::shared\*(C'\fR. (\f(CW\*(C`threads\*(C'\fR will emit a warning if you do it the +other way around.) +.PP +It is strongly recommended that you enable threads via \f(CW\*(C`use threads\*(C'\fR as early +as possible in your script. +.PP +If needed, scripts can be written so as to run on both threaded and +non-threaded Perls: +.PP +.Vb 8 +\& my $can_use_threads = eval \*(Aquse threads; 1\*(Aq; +\& if ($can_use_threads) { +\& # Do processing using threads +\& ... +\& } else { +\& # Do it without using threads +\& ... +\& } +.Ve +.ie n .IP "$thr = threads\->create(\s-1FUNCTION, ARGS\s0)" 4 +.el .IP "\f(CW$thr\fR = threads\->create(\s-1FUNCTION, ARGS\s0)" 4 +.IX Item "$thr = threads->create(FUNCTION, ARGS)" +This will create a new thread that will begin execution with the specified +entry point function, and give it the \fI\s-1ARGS\s0\fR list as parameters. It will +return the corresponding threads object, or \f(CW\*(C`undef\*(C'\fR if thread creation failed. +.Sp +\&\fI\s-1FUNCTION\s0\fR may either be the name of a function, an anonymous subroutine, or +a code ref. +.Sp +.Vb 5 +\& my $thr = threads\->create(\*(Aqfunc_name\*(Aq, ...); +\& # or +\& my $thr = threads\->create(sub { ... }, ...); +\& # or +\& my $thr = threads\->create(\e&func, ...); +.Ve +.Sp +The \f(CW\*(C`\->new()\*(C'\fR method is an alias for \f(CW\*(C`\->create()\*(C'\fR. +.ie n .IP "$thr\->\fBjoin()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBjoin()\fR" 4 +.IX Item "$thr->join()" +This will wait for the corresponding thread to complete its execution. When +the thread finishes, \f(CW\*(C`\->join()\*(C'\fR will return the return value(s) of the +entry point function. +.Sp +The context (void, scalar or list) for the return value(s) for \f(CW\*(C`\->join()\*(C'\fR +is determined at the time of thread creation. +.Sp +.Vb 10 +\& # Create thread in list context (implicit) +\& my ($thr1) = threads\->create(sub { +\& my @results = qw(a b c); +\& return (@results); +\& }); +\& # or (explicit) +\& my $thr1 = threads\->create({\*(Aqcontext\*(Aq => \*(Aqlist\*(Aq}, +\& sub { +\& my @results = qw(a b c); +\& return (@results); +\& }); +\& # Retrieve list results from thread +\& my @res1 = $thr1\->join(); +\& +\& # Create thread in scalar context (implicit) +\& my $thr2 = threads\->create(sub { +\& my $result = 42; +\& return ($result); +\& }); +\& # Retrieve scalar result from thread +\& my $res2 = $thr2\->join(); +\& +\& # Create a thread in void context (explicit) +\& my $thr3 = threads\->create({\*(Aqvoid\*(Aq => 1}, +\& sub { print("Hello, world\en"); }); +\& # Join the thread in void context (i.e., no return value) +\& $thr3\->join(); +.Ve +.Sp +See \*(L"\s-1THREAD CONTEXT\*(R"\s0 for more details. +.Sp +If the program exits without all threads having either been joined or +detached, then a warning will be issued. +.Sp +Calling \f(CW\*(C`\->join()\*(C'\fR or \f(CW\*(C`\->detach()\*(C'\fR on an already joined thread will +cause an error to be thrown. +.ie n .IP "$thr\->\fBdetach()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBdetach()\fR" 4 +.IX Item "$thr->detach()" +Makes the thread unjoinable, and causes any eventual return value to be +discarded. When the program exits, any detached threads that are still +running are silently terminated. +.Sp +If the program exits without all threads having either been joined or +detached, then a warning will be issued. +.Sp +Calling \f(CW\*(C`\->join()\*(C'\fR or \f(CW\*(C`\->detach()\*(C'\fR on an already detached thread +will cause an error to be thrown. +.IP "threads\->\fBdetach()\fR" 4 +.IX Item "threads->detach()" +Class method that allows a thread to detach itself. +.IP "threads\->\fBself()\fR" 4 +.IX Item "threads->self()" +Class method that allows a thread to obtain its own \fIthreads\fR object. +.ie n .IP "$thr\->\fBtid()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBtid()\fR" 4 +.IX Item "$thr->tid()" +Returns the \s-1ID\s0 of the thread. Thread IDs are unique integers with the main +thread in a program being 0, and incrementing by 1 for every thread created. +.IP "threads\->\fBtid()\fR" 4 +.IX Item "threads->tid()" +Class method that allows a thread to obtain its own \s-1ID.\s0 +.ie n .IP """$thr""" 4 +.el .IP "``$thr''" 4 +.IX Item "$thr" +If you add the \f(CW\*(C`stringify\*(C'\fR import option to your \f(CW\*(C`use threads\*(C'\fR declaration, +then using a threads object in a string or a string context (e.g., as a hash +key) will cause its \s-1ID\s0 to be used as the value: +.Sp +.Vb 1 +\& use threads qw(stringify); +\& +\& my $thr = threads\->create(...); +\& print("Thread $thr started\en"); # Prints: Thread 1 started +.Ve +.IP "threads\->object($tid)" 4 +.IX Item "threads->object($tid)" +This will return the \fIthreads\fR object for the \fIactive\fR thread associated +with the specified thread \s-1ID.\s0 If \f(CW$tid\fR is the value for the current thread, +then this call works the same as \f(CW\*(C`\->self()\*(C'\fR. Otherwise, returns \f(CW\*(C`undef\*(C'\fR +if there is no thread associated with the \s-1TID,\s0 if the thread is joined or +detached, if no \s-1TID\s0 is specified or if the specified \s-1TID\s0 is undef. +.IP "threads\->\fByield()\fR" 4 +.IX Item "threads->yield()" +This is a suggestion to the \s-1OS\s0 to let this thread yield \s-1CPU\s0 time to other +threads. What actually happens is highly dependent upon the underlying +thread implementation. +.Sp +You may do \f(CW\*(C`use threads qw(yield)\*(C'\fR, and then just use \f(CW\*(C`yield()\*(C'\fR in your +code. +.IP "threads\->\fBlist()\fR" 4 +.IX Item "threads->list()" +.PD 0 +.IP "threads\->list(threads::all)" 4 +.IX Item "threads->list(threads::all)" +.IP "threads\->list(threads::running)" 4 +.IX Item "threads->list(threads::running)" +.IP "threads\->list(threads::joinable)" 4 +.IX Item "threads->list(threads::joinable)" +.PD +With no arguments (or using \f(CW\*(C`threads::all\*(C'\fR) and in a list context, returns a +list of all non-joined, non-detached \fIthreads\fR objects. In a scalar context, +returns a count of the same. +.Sp +With a \fItrue\fR argument (using \f(CW\*(C`threads::running\*(C'\fR), returns a list of all +non-joined, non-detached \fIthreads\fR objects that are still running. +.Sp +With a \fIfalse\fR argument (using \f(CW\*(C`threads::joinable\*(C'\fR), returns a list of all +non-joined, non-detached \fIthreads\fR objects that have finished running (i.e., +for which \f(CW\*(C`\->join()\*(C'\fR will not \fIblock\fR). +.ie n .IP "$thr1\->equal($thr2)" 4 +.el .IP "\f(CW$thr1\fR\->equal($thr2)" 4 +.IX Item "$thr1->equal($thr2)" +Tests if two threads objects are the same thread or not. This is overloaded +to the more natural forms: +.Sp +.Vb 7 +\& if ($thr1 == $thr2) { +\& print("Threads are the same\en"); +\& } +\& # or +\& if ($thr1 != $thr2) { +\& print("Threads differ\en"); +\& } +.Ve +.Sp +(Thread comparison is based on thread IDs.) +.IP "async \s-1BLOCK\s0;" 4 +.IX Item "async BLOCK;" +\&\f(CW\*(C`async\*(C'\fR creates a thread to execute the block immediately following +it. This block is treated as an anonymous subroutine, and so must have a +semicolon after the closing brace. Like \f(CW\*(C`threads\->create()\*(C'\fR, \f(CW\*(C`async\*(C'\fR +returns a \fIthreads\fR object. +.ie n .IP "$thr\->\fBerror()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBerror()\fR" 4 +.IX Item "$thr->error()" +Threads are executed in an \f(CW\*(C`eval\*(C'\fR context. This method will return \f(CW\*(C`undef\*(C'\fR +if the thread terminates \fInormally\fR. Otherwise, it returns the value of +\&\f(CW$@\fR associated with the thread's execution status in its \f(CW\*(C`eval\*(C'\fR context. +.ie n .IP "$thr\->\fB_handle()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fB_handle()\fR" 4 +.IX Item "$thr->_handle()" +This \fIprivate\fR method returns a pointer (i.e., the memory location expressed +as an unsigned integer) to the internal thread structure associated with a +threads object. For Win32, this is a pointer to the \f(CW\*(C`HANDLE\*(C'\fR value returned +by \f(CW\*(C`CreateThread\*(C'\fR (i.e., \f(CW\*(C`HANDLE *\*(C'\fR); for other platforms, it is a pointer +to the \f(CW\*(C`pthread_t\*(C'\fR structure used in the \f(CW\*(C`pthread_create\*(C'\fR call (i.e., +\&\f(CW\*(C`pthread_t *\*(C'\fR). +.Sp +This method is of no use for general Perl threads programming. Its intent is +to provide other (XS-based) thread modules with the capability to access, and +possibly manipulate, the underlying thread structure associated with a Perl +thread. +.IP "threads\->\fB_handle()\fR" 4 +.IX Item "threads->_handle()" +Class method that allows a thread to obtain its own \fIhandle\fR. +.SH "EXITING A THREAD" +.IX Header "EXITING A THREAD" +The usual method for terminating a thread is to +\&\fBreturn()\fR from the entry point function with the +appropriate return value(s). +.IP "threads\->\fBexit()\fR" 4 +.IX Item "threads->exit()" +If needed, a thread can be exited at any time by calling +\&\f(CW\*(C`threads\->exit()\*(C'\fR. This will cause the thread to return \f(CW\*(C`undef\*(C'\fR in a +scalar context, or the empty list in a list context. +.Sp +When called from the \fImain\fR thread, this behaves the same as \f(CWexit(0)\fR. +.IP "threads\->exit(status)" 4 +.IX Item "threads->exit(status)" +When called from a thread, this behaves like \f(CW\*(C`threads\->exit()\*(C'\fR (i.e., the +exit status code is ignored). +.Sp +When called from the \fImain\fR thread, this behaves the same as \f(CW\*(C`exit(status)\*(C'\fR. +.IP "\fBdie()\fR" 4 +.IX Item "die()" +Calling \f(CW\*(C`die()\*(C'\fR in a thread indicates an abnormal exit for the thread. Any +\&\f(CW$SIG{_\|_DIE_\|_}\fR handler in the thread will be called first, and then the +thread will exit with a warning message that will contain any arguments passed +in the \f(CW\*(C`die()\*(C'\fR call. +.IP "exit(status)" 4 +.IX Item "exit(status)" +Calling \fBexit()\fR inside a thread causes the whole +application to terminate. Because of this, the use of \f(CW\*(C`exit()\*(C'\fR inside +threaded code, or in modules that might be used in threaded applications, is +strongly discouraged. +.Sp +If \f(CW\*(C`exit()\*(C'\fR really is needed, then consider using the following: +.Sp +.Vb 2 +\& threads\->exit() if threads\->can(\*(Aqexit\*(Aq); # Thread friendly +\& exit(status); +.Ve +.IP "use threads 'exit' => 'threads_only'" 4 +.IX Item "use threads 'exit' => 'threads_only'" +This globally overrides the default behavior of calling \f(CW\*(C`exit()\*(C'\fR inside a +thread, and effectively causes such calls to behave the same as +\&\f(CW\*(C`threads\->exit()\*(C'\fR. In other words, with this setting, calling \f(CW\*(C`exit()\*(C'\fR +causes only the thread to terminate. +.Sp +Because of its global effect, this setting should not be used inside modules +or the like. +.Sp +The \fImain\fR thread is unaffected by this setting. +.IP "threads\->create({'exit' => 'thread_only'}, ...)" 4 +.IX Item "threads->create({'exit' => 'thread_only'}, ...)" +This overrides the default behavior of \f(CW\*(C`exit()\*(C'\fR inside the newly created +thread only. +.ie n .IP "$thr\->set_thread_exit_only(boolean)" 4 +.el .IP "\f(CW$thr\fR\->set_thread_exit_only(boolean)" 4 +.IX Item "$thr->set_thread_exit_only(boolean)" +This can be used to change the \fIexit thread only\fR behavior for a thread after +it has been created. With a \fItrue\fR argument, \f(CW\*(C`exit()\*(C'\fR will cause only the +thread to exit. With a \fIfalse\fR argument, \f(CW\*(C`exit()\*(C'\fR will terminate the +application. +.Sp +The \fImain\fR thread is unaffected by this call. +.IP "threads\->set_thread_exit_only(boolean)" 4 +.IX Item "threads->set_thread_exit_only(boolean)" +Class method for use inside a thread to change its own behavior for \f(CW\*(C`exit()\*(C'\fR. +.Sp +The \fImain\fR thread is unaffected by this call. +.SH "THREAD STATE" +.IX Header "THREAD STATE" +The following boolean methods are useful in determining the \fIstate\fR of a +thread. +.ie n .IP "$thr\->\fBis_running()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBis_running()\fR" 4 +.IX Item "$thr->is_running()" +Returns true if a thread is still running (i.e., if its entry point function +has not yet finished or exited). +.ie n .IP "$thr\->\fBis_joinable()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBis_joinable()\fR" 4 +.IX Item "$thr->is_joinable()" +Returns true if the thread has finished running, is not detached and has not +yet been joined. In other words, the thread is ready to be joined, and a call +to \f(CW\*(C`$thr\->join()\*(C'\fR will not \fIblock\fR. +.ie n .IP "$thr\->\fBis_detached()\fR" 4 +.el .IP "\f(CW$thr\fR\->\fBis_detached()\fR" 4 +.IX Item "$thr->is_detached()" +Returns true if the thread has been detached. +.IP "threads\->\fBis_detached()\fR" 4 +.IX Item "threads->is_detached()" +Class method that allows a thread to determine whether or not it is detached. +.SH "THREAD CONTEXT" +.IX Header "THREAD CONTEXT" +As with subroutines, the type of value returned from a thread's entry point +function may be determined by the thread's \fIcontext\fR: list, scalar or void. +The thread's context is determined at thread creation. This is necessary so +that the context is available to the entry point function via +\&\fBwantarray()\fR. The thread may then specify a value of +the appropriate type to be returned from \f(CW\*(C`\->join()\*(C'\fR. +.SS "Explicit context" +.IX Subsection "Explicit context" +Because thread creation and thread joining may occur in different contexts, it +may be desirable to state the context explicitly to the thread's entry point +function. This may be done by calling \f(CW\*(C`\->create()\*(C'\fR with a hash reference +as the first argument: +.PP +.Vb 3 +\& my $thr = threads\->create({\*(Aqcontext\*(Aq => \*(Aqlist\*(Aq}, \e&foo); +\& ... +\& my @results = $thr\->join(); +.Ve +.PP +In the above, the threads object is returned to the parent thread in scalar +context, and the thread's entry point function \f(CW\*(C`foo\*(C'\fR will be called in list +(array) context such that the parent thread can receive a list (array) from +the \f(CW\*(C`\->join()\*(C'\fR call. (\f(CW\*(Aqarray\*(Aq\fR is synonymous with \f(CW\*(Aqlist\*(Aq\fR.) +.PP +Similarly, if you need the threads object, but your thread will not be +returning a value (i.e., \fIvoid\fR context), you would do the following: +.PP +.Vb 3 +\& my $thr = threads\->create({\*(Aqcontext\*(Aq => \*(Aqvoid\*(Aq}, \e&foo); +\& ... +\& $thr\->join(); +.Ve +.PP +The context type may also be used as the \fIkey\fR in the hash reference followed +by a \fItrue\fR value: +.PP +.Vb 4 +\& threads\->create({\*(Aqscalar\*(Aq => 1}, \e&foo); +\& ... +\& my ($thr) = threads\->list(); +\& my $result = $thr\->join(); +.Ve +.SS "Implicit context" +.IX Subsection "Implicit context" +If not explicitly stated, the thread's context is implied from the context +of the \f(CW\*(C`\->create()\*(C'\fR call: +.PP +.Vb 2 +\& # Create thread in list context +\& my ($thr) = threads\->create(...); +\& +\& # Create thread in scalar context +\& my $thr = threads\->create(...); +\& +\& # Create thread in void context +\& threads\->create(...); +.Ve +.ie n .SS "$thr\->\fBwantarray()\fP" +.el .SS "\f(CW$thr\fP\->\fBwantarray()\fP" +.IX Subsection "$thr->wantarray()" +This returns the thread's context in the same manner as +\&\fBwantarray()\fR. +.SS "threads\->\fBwantarray()\fP" +.IX Subsection "threads->wantarray()" +Class method to return the current thread's context. This returns the same +value as running \fBwantarray()\fR inside the current +thread's entry point function. +.SH "THREAD STACK SIZE" +.IX Header "THREAD STACK SIZE" +The default per-thread stack size for different platforms varies +significantly, and is almost always far more than is needed for most +applications. On Win32, Perl's makefile explicitly sets the default stack to +16 \s-1MB\s0; on most other platforms, the system default is used, which again may be +much larger than is needed. +.PP +By tuning the stack size to more accurately reflect your application's needs, +you may significantly reduce your application's memory usage, and increase the +number of simultaneously running threads. +.PP +Note that on Windows, address space allocation granularity is 64 \s-1KB,\s0 +therefore, setting the stack smaller than that on Win32 Perl will not save any +more memory. +.IP "threads\->\fBget_stack_size()\fR;" 4 +.IX Item "threads->get_stack_size();" +Returns the current default per-thread stack size. The default is zero, which +means the system default stack size is currently in use. +.ie n .IP "$size = $thr\->\fBget_stack_size()\fR;" 4 +.el .IP "\f(CW$size\fR = \f(CW$thr\fR\->\fBget_stack_size()\fR;" 4 +.IX Item "$size = $thr->get_stack_size();" +Returns the stack size for a particular thread. A return value of zero +indicates the system default stack size was used for the thread. +.ie n .IP "$old_size = threads\->set_stack_size($new_size);" 4 +.el .IP "\f(CW$old_size\fR = threads\->set_stack_size($new_size);" 4 +.IX Item "$old_size = threads->set_stack_size($new_size);" +Sets a new default per-thread stack size, and returns the previous setting. +.Sp +Some platforms have a minimum thread stack size. Trying to set the stack size +below this value will result in a warning, and the minimum stack size will be +used. +.Sp +Some Linux platforms have a maximum stack size. Setting too large of a stack +size will cause thread creation to fail. +.Sp +If needed, \f(CW$new_size\fR will be rounded up to the next multiple of the memory +page size (usually 4096 or 8192). +.Sp +Threads created after the stack size is set will then either call +\&\f(CW\*(C`pthread_attr_setstacksize()\*(C'\fR \fI(for pthreads platforms)\fR, or supply the +stack size to \f(CW\*(C`CreateThread()\*(C'\fR \fI(for Win32 Perl)\fR. +.Sp +(Obviously, this call does not affect any currently extant threads.) +.IP "use threads ('stack_size' => \s-1VALUE\s0);" 4 +.IX Item "use threads ('stack_size' => VALUE);" +This sets the default per-thread stack size at the start of the application. +.ie n .IP "$ENV{'\s-1PERL5_ITHREADS_STACK_SIZE\s0'}" 4 +.el .IP "\f(CW$ENV\fR{'\s-1PERL5_ITHREADS_STACK_SIZE\s0'}" 4 +.IX Item "$ENV{'PERL5_ITHREADS_STACK_SIZE'}" +The default per-thread stack size may be set at the start of the application +through the use of the environment variable \f(CW\*(C`PERL5_ITHREADS_STACK_SIZE\*(C'\fR: +.Sp +.Vb 3 +\& PERL5_ITHREADS_STACK_SIZE=1048576 +\& export PERL5_ITHREADS_STACK_SIZE +\& perl \-e\*(Aquse threads; print(threads\->get_stack_size(), "\en")\*(Aq +.Ve +.Sp +This value overrides any \f(CW\*(C`stack_size\*(C'\fR parameter given to \f(CW\*(C`use threads\*(C'\fR. Its +primary purpose is to permit setting the per-thread stack size for legacy +threaded applications. +.IP "threads\->create({'stack_size' => \s-1VALUE\s0}, \s-1FUNCTION, ARGS\s0)" 4 +.IX Item "threads->create({'stack_size' => VALUE}, FUNCTION, ARGS)" +To specify a particular stack size for any individual thread, call +\&\f(CW\*(C`\->create()\*(C'\fR with a hash reference as the first argument: +.Sp +.Vb 2 +\& my $thr = threads\->create({\*(Aqstack_size\*(Aq => 32*4096}, +\& \e&foo, @args); +.Ve +.ie n .IP "$thr2 = $thr1\->create(\s-1FUNCTION, ARGS\s0)" 4 +.el .IP "\f(CW$thr2\fR = \f(CW$thr1\fR\->create(\s-1FUNCTION, ARGS\s0)" 4 +.IX Item "$thr2 = $thr1->create(FUNCTION, ARGS)" +This creates a new thread (\f(CW$thr2\fR) that inherits the stack size from an +existing thread (\f(CW$thr1\fR). This is shorthand for the following: +.Sp +.Vb 3 +\& my $stack_size = $thr1\->get_stack_size(); +\& my $thr2 = threads\->create({\*(Aqstack_size\*(Aq => $stack_size}, +\& FUNCTION, ARGS); +.Ve +.SH "THREAD SIGNALLING" +.IX Header "THREAD SIGNALLING" +When safe signals is in effect (the default behavior \- see \*(L"Unsafe signals\*(R" +for more details), then signals may be sent and acted upon by individual +threads. +.ie n .IP "$thr\->kill('\s-1SIG...\s0');" 4 +.el .IP "\f(CW$thr\fR\->kill('\s-1SIG...\s0');" 4 +.IX Item "$thr->kill('SIG...');" +Sends the specified signal to the thread. Signal names and (positive) signal +numbers are the same as those supported by +\&\fBkill()\fR. For example, '\s-1SIGTERM\s0', '\s-1TERM\s0' and +(depending on the \s-1OS\s0) 15 are all valid arguments to \f(CW\*(C`\->kill()\*(C'\fR. +.Sp +Returns the thread object to allow for method chaining: +.Sp +.Vb 1 +\& $thr\->kill(\*(AqSIG...\*(Aq)\->join(); +.Ve +.PP +Signal handlers need to be set up in the threads for the signals they are +expected to act upon. Here's an example for \fIcancelling\fR a thread: +.PP +.Vb 1 +\& use threads; +\& +\& sub thr_func +\& { +\& # Thread \*(Aqcancellation\*(Aq signal handler +\& $SIG{\*(AqKILL\*(Aq} = sub { threads\->exit(); }; +\& +\& ... +\& } +\& +\& # Create a thread +\& my $thr = threads\->create(\*(Aqthr_func\*(Aq); +\& +\& ... +\& +\& # Signal the thread to terminate, and then detach +\& # it so that it will get cleaned up automatically +\& $thr\->kill(\*(AqKILL\*(Aq)\->detach(); +.Ve +.PP +Here's another simplistic example that illustrates the use of thread +signalling in conjunction with a semaphore to provide rudimentary \fIsuspend\fR +and \fIresume\fR capabilities: +.PP +.Vb 2 +\& use threads; +\& use Thread::Semaphore; +\& +\& sub thr_func +\& { +\& my $sema = shift; +\& +\& # Thread \*(Aqsuspend/resume\*(Aq signal handler +\& $SIG{\*(AqSTOP\*(Aq} = sub { +\& $sema\->down(); # Thread suspended +\& $sema\->up(); # Thread resumes +\& }; +\& +\& ... +\& } +\& +\& # Create a semaphore and pass it to a thread +\& my $sema = Thread::Semaphore\->new(); +\& my $thr = threads\->create(\*(Aqthr_func\*(Aq, $sema); +\& +\& # Suspend the thread +\& $sema\->down(); +\& $thr\->kill(\*(AqSTOP\*(Aq); +\& +\& ... +\& +\& # Allow the thread to continue +\& $sema\->up(); +.Ve +.PP +\&\s-1CAVEAT:\s0 The thread signalling capability provided by this module does not +actually send signals via the \s-1OS.\s0 It \fIemulates\fR signals at the Perl-level +such that signal handlers are called in the appropriate thread. For example, +sending \f(CW\*(C`$thr\->kill(\*(AqSTOP\*(Aq)\*(C'\fR does not actually suspend a thread (or the +whole process), but does cause a \f(CW$SIG{\*(AqSTOP\*(Aq}\fR handler to be called in that +thread (as illustrated above). +.PP +As such, signals that would normally not be appropriate to use in the +\&\f(CW\*(C`kill()\*(C'\fR command (e.g., \f(CW\*(C`kill(\*(AqKILL\*(Aq, $$)\*(C'\fR) are okay to use with the +\&\f(CW\*(C`\->kill()\*(C'\fR method (again, as illustrated above). +.PP +Correspondingly, sending a signal to a thread does not disrupt the operation +the thread is currently working on: The signal will be acted upon after the +current operation has completed. For instance, if the thread is \fIstuck\fR on +an I/O call, sending it a signal will not cause the I/O call to be interrupted +such that the signal is acted up immediately. +.PP +Sending a signal to a terminated/finished thread is ignored. +.SH "WARNINGS" +.IX Header "WARNINGS" +.IP "Perl exited with active threads:" 4 +.IX Item "Perl exited with active threads:" +If the program exits without all threads having either been joined or +detached, then this warning will be issued. +.Sp +\&\s-1NOTE:\s0 If the \fImain\fR thread exits, then this warning cannot be suppressed +using \f(CW\*(C`no warnings \*(Aqthreads\*(Aq;\*(C'\fR as suggested below. +.IP "Thread creation failed: pthread_create returned #" 4 +.IX Item "Thread creation failed: pthread_create returned #" +See the appropriate \fIman\fR page for \f(CW\*(C`pthread_create\*(C'\fR to determine the actual +cause for the failure. +.IP "Thread # terminated abnormally: ..." 4 +.IX Item "Thread # terminated abnormally: ..." +A thread terminated in some manner other than just returning from its entry +point function, or by using \f(CW\*(C`threads\->exit()\*(C'\fR. For example, the thread +may have terminated because of an error, or by using \f(CW\*(C`die\*(C'\fR. +.IP "Using minimum thread stack size of #" 4 +.IX Item "Using minimum thread stack size of #" +Some platforms have a minimum thread stack size. Trying to set the stack size +below this value will result in the above warning, and the stack size will be +set to the minimum. +.IP "Thread creation failed: pthread_attr_setstacksize(\fI\s-1SIZE\s0\fR) returned 22" 4 +.IX Item "Thread creation failed: pthread_attr_setstacksize(SIZE) returned 22" +The specified \fI\s-1SIZE\s0\fR exceeds the system's maximum stack size. Use a smaller +value for the stack size. +.PP +If needed, thread warnings can be suppressed by using: +.PP +.Vb 1 +\& no warnings \*(Aqthreads\*(Aq; +.Ve +.PP +in the appropriate scope. +.SH "ERRORS" +.IX Header "ERRORS" +.IP "This Perl not built to support threads" 4 +.IX Item "This Perl not built to support threads" +The particular copy of Perl that you're trying to use was not built using the +\&\f(CW\*(C`useithreads\*(C'\fR configuration option. +.Sp +Having threads support requires all of Perl and all of the \s-1XS\s0 modules in the +Perl installation to be rebuilt; it is not just a question of adding the +threads module (i.e., threaded and non-threaded Perls are binary +incompatible). +.IP "Cannot change stack size of an existing thread" 4 +.IX Item "Cannot change stack size of an existing thread" +The stack size of currently extant threads cannot be changed, therefore, the +following results in the above error: +.Sp +.Vb 1 +\& $thr\->set_stack_size($size); +.Ve +.IP "Cannot signal threads without safe signals" 4 +.IX Item "Cannot signal threads without safe signals" +Safe signals must be in effect to use the \f(CW\*(C`\->kill()\*(C'\fR signalling method. +See \*(L"Unsafe signals\*(R" for more details. +.IP "Unrecognized signal name: ..." 4 +.IX Item "Unrecognized signal name: ..." +The particular copy of Perl that you're trying to use does not support the +specified signal being used in a \f(CW\*(C`\->kill()\*(C'\fR call. +.SH "BUGS AND LIMITATIONS" +.IX Header "BUGS AND LIMITATIONS" +Before you consider posting a bug report, please consult, and possibly post a +message to the discussion forum to see if what you've encountered is a known +problem. +.IP "Thread-safe modules" 4 +.IX Item "Thread-safe modules" +See \*(L"Making your module threadsafe\*(R" in perlmod when creating modules that may +be used in threaded applications, especially if those modules use non-Perl +data, or \s-1XS\s0 code. +.IP "Using non-thread-safe modules" 4 +.IX Item "Using non-thread-safe modules" +Unfortunately, you may encounter Perl modules that are not \fIthread-safe\fR. +For example, they may crash the Perl interpreter during execution, or may dump +core on termination. Depending on the module and the requirements of your +application, it may be possible to work around such difficulties. +.Sp +If the module will only be used inside a thread, you can try loading the +module from inside the thread entry point function using \f(CW\*(C`require\*(C'\fR (and +\&\f(CW\*(C`import\*(C'\fR if needed): +.Sp +.Vb 4 +\& sub thr_func +\& { +\& require Unsafe::Module +\& # Unsafe::Module\->import(...); +\& +\& .... +\& } +.Ve +.Sp +If the module is needed inside the \fImain\fR thread, try modifying your +application so that the module is loaded (again using \f(CW\*(C`require\*(C'\fR and +\&\f(CW\*(C`\->import()\*(C'\fR) after any threads are started, and in such a way that no +other threads are started afterwards. +.Sp +If the above does not work, or is not adequate for your application, then file +a bug report on against the problematic module. +.IP "Memory consumption" 4 +.IX Item "Memory consumption" +On most systems, frequent and continual creation and destruction of threads +can lead to ever-increasing growth in the memory footprint of the Perl +interpreter. While it is simple to just launch threads and then +\&\f(CW\*(C`\->join()\*(C'\fR or \f(CW\*(C`\->detach()\*(C'\fR them, for long-lived applications, it is +better to maintain a pool of threads, and to reuse them for the work needed, +using queues to notify threads of pending work. The \s-1CPAN\s0 +distribution of this module contains a simple example +(\fIexamples/pool_reuse.pl\fR) illustrating the creation, use and monitoring of a +pool of \fIreusable\fR threads. +.IP "Current working directory" 4 +.IX Item "Current working directory" +On all platforms except MSWin32, the setting for the current working directory +is shared among all threads such that changing it in one thread (e.g., using +\&\f(CW\*(C`chdir()\*(C'\fR) will affect all the threads in the application. +.Sp +On MSWin32, each thread maintains its own the current working directory +setting. +.IP "Locales" 4 +.IX Item "Locales" +Prior to Perl 5.28, locales could not be used with threads, due to various +race conditions. Starting in that release, on systems that implement +thread-safe locale functions, threads can be used, with some caveats. +This includes Windows starting with Visual Studio 2005, and systems compatible +with \s-1POSIX 2008.\s0 See \*(L"Multi-threaded operation\*(R" in perllocale. +.Sp +Each thread (except the main thread) is started using the C locale. The main +thread is started like all other Perl programs; see \*(L"\s-1ENVIRONMENT\*(R"\s0 in perllocale. +You can switch locales in any thread as often as you like. +.Sp +If you want to inherit the parent thread's locale, you can, in the parent, set +a variable like so: +.Sp +.Vb 1 +\& $foo = POSIX::setlocale(LC_ALL, NULL); +.Ve +.Sp +and then pass to threads\->\fBcreate()\fR a sub that closes over \f(CW$foo\fR. Then, in +the child, you say +.Sp +.Vb 1 +\& POSIX::setlocale(LC_ALL, $foo); +.Ve +.Sp +Or you can use the facilities in threads::shared to pass \f(CW$foo\fR; +or if the environment hasn't changed, in the child, do +.Sp +.Vb 1 +\& POSIX::setlocale(LC_ALL, ""); +.Ve +.IP "Environment variables" 4 +.IX Item "Environment variables" +Currently, on all platforms except MSWin32, all \fIsystem\fR calls (e.g., using +\&\f(CW\*(C`system()\*(C'\fR or back-ticks) made from threads use the environment variable +settings from the \fImain\fR thread. In other words, changes made to \f(CW%ENV\fR in +a thread will not be visible in \fIsystem\fR calls made by that thread. +.Sp +To work around this, set environment variables as part of the \fIsystem\fR call. +For example: +.Sp +.Vb 2 +\& my $msg = \*(Aqhello\*(Aq; +\& system("FOO=$msg; echo \e$FOO"); # Outputs \*(Aqhello\*(Aq to STDOUT +.Ve +.Sp +On MSWin32, each thread maintains its own set of environment variables. +.IP "Catching signals" 4 +.IX Item "Catching signals" +Signals are \fIcaught\fR by the main thread (thread \s-1ID\s0 = 0) of a script. +Therefore, setting up signal handlers in threads for purposes other than +\&\*(L"\s-1THREAD SIGNALLING\*(R"\s0 as documented above will not accomplish what is +intended. +.Sp +This is especially true if trying to catch \f(CW\*(C`SIGALRM\*(C'\fR in a thread. To handle +alarms in threads, set up a signal handler in the main thread, and then use +\&\*(L"\s-1THREAD SIGNALLING\*(R"\s0 to relay the signal to the thread: +.Sp +.Vb 10 +\& # Create thread with a task that may time out +\& my $thr = threads\->create(sub { +\& threads\->yield(); +\& eval { +\& $SIG{ALRM} = sub { die("Timeout\en"); }; +\& alarm(10); +\& ... # Do work here +\& alarm(0); +\& }; +\& if ($@ =~ /Timeout/) { +\& warn("Task in thread timed out\en"); +\& } +\& }; +\& +\& # Set signal handler to relay SIGALRM to thread +\& $SIG{ALRM} = sub { $thr\->kill(\*(AqALRM\*(Aq) }; +\& +\& ... # Main thread continues working +.Ve +.IP "Parent-child threads" 4 +.IX Item "Parent-child threads" +On some platforms, it might not be possible to destroy \fIparent\fR threads while +there are still existing \fIchild\fR threads. +.IP "Unsafe signals" 4 +.IX Item "Unsafe signals" +Since Perl 5.8.0, signals have been made safer in Perl by postponing their +handling until the interpreter is in a \fIsafe\fR state. See +\&\*(L"Safe Signals\*(R" in perl58delta and \*(L"Deferred Signals (Safe Signals)\*(R" in perlipc +for more details. +.Sp +Safe signals is the default behavior, and the old, immediate, unsafe +signalling behavior is only in effect in the following situations: +.RS 4 +.IP "\(bu" 4 +Perl has been built with \f(CW\*(C`PERL_OLD_SIGNALS\*(C'\fR (see \f(CW\*(C`perl \-V\*(C'\fR). +.IP "\(bu" 4 +The environment variable \f(CW\*(C`PERL_SIGNALS\*(C'\fR is set to \f(CW\*(C`unsafe\*(C'\fR +(see \*(L"\s-1PERL_SIGNALS\*(R"\s0 in perlrun). +.IP "\(bu" 4 +The module Perl::Unsafe::Signals is used. +.RE +.RS 4 +.Sp +If unsafe signals is in effect, then signal handling is not thread-safe, and +the \f(CW\*(C`\->kill()\*(C'\fR signalling method cannot be used. +.RE +.IP "Identity of objects returned from threads" 4 +.IX Item "Identity of objects returned from threads" +When a value is returned from a thread through a \f(CW\*(C`join\*(C'\fR operation, +the value and everything that it references is copied across to the +joining thread, in much the same way that values are copied upon thread +creation. This works fine for most kinds of value, including arrays, +hashes, and subroutines. The copying recurses through array elements, +reference scalars, variables closed over by subroutines, and other kinds +of reference. +.Sp +However, everything referenced by the returned value is a fresh copy in +the joining thread, even if a returned object had in the child thread +been a copy of something that previously existed in the parent thread. +After joining, the parent will therefore have a duplicate of each such +object. This sometimes matters, especially if the object gets mutated; +this can especially matter for private data to which a returned subroutine +provides access. +.IP "Returning blessed objects from threads" 4 +.IX Item "Returning blessed objects from threads" +Returning blessed objects from threads does not work. Depending on the classes +involved, you may be able to work around this by returning a serialized +version of the object (e.g., using Data::Dumper or Storable), and then +reconstituting it in the joining thread. If you're using Perl 5.10.0 or +later, and if the class supports shared objects, +you can pass them via shared queues. +.IP "\s-1END\s0 blocks in threads" 4 +.IX Item "END blocks in threads" +It is possible to add \s-1END\s0 blocks to threads by using require or +eval with the appropriate code. These \f(CW\*(C`END\*(C'\fR blocks +will then be executed when the thread's interpreter is destroyed (i.e., either +during a \f(CW\*(C`\->join()\*(C'\fR call, or at program termination). +.Sp +However, calling any threads methods in such an \f(CW\*(C`END\*(C'\fR block will most +likely \fIfail\fR (e.g., the application may hang, or generate an error) due to +mutexes that are needed to control functionality within the threads module. +.Sp +For this reason, the use of \f(CW\*(C`END\*(C'\fR blocks in threads is \fBstrongly\fR +discouraged. +.IP "Open directory handles" 4 +.IX Item "Open directory handles" +In perl 5.14 and higher, on systems other than Windows that do +not support the \f(CW\*(C`fchdir\*(C'\fR C function, directory handles (see +opendir) will not be copied to new +threads. You can use the \f(CW\*(C`d_fchdir\*(C'\fR variable in Config.pm to +determine whether your system supports it. +.Sp +In prior perl versions, spawning threads with open directory handles would +crash the interpreter. +[perl #75154] +.IP "Detached threads and global destruction" 4 +.IX Item "Detached threads and global destruction" +If the main thread exits while there are detached threads which are still +running, then Perl's global destruction phase is not executed because +otherwise certain global structures that control the operation of threads and +that are allocated in the main thread's memory may get destroyed before the +detached thread is destroyed. +.Sp +If you are using any code that requires the execution of the global +destruction phase for clean up (e.g., removing temp files), then do not use +detached threads, but rather join all threads before exiting the program. +.IP "Perl Bugs and the \s-1CPAN\s0 Version of threads" 4 +.IX Item "Perl Bugs and the CPAN Version of threads" +Support for threads extends beyond the code in this module (i.e., +\&\fIthreads.pm\fR and \fIthreads.xs\fR), and into the Perl interpreter itself. Older +versions of Perl contain bugs that may manifest themselves despite using the +latest version of threads from \s-1CPAN.\s0 There is no workaround for this other +than upgrading to the latest version of Perl. +.Sp +Even with the latest version of Perl, it is known that certain constructs +with threads may result in warning messages concerning leaked scalars or +unreferenced scalars. However, such warnings are harmless, and may safely be +ignored. +.Sp +You can search for threads related bug reports at +. If needed submit any new bugs, problems, +patches, etc. to: +.SH "REQUIREMENTS" +.IX Header "REQUIREMENTS" +Perl 5.8.0 or later +.SH "SEE ALSO" +.IX Header "SEE ALSO" +threads on MetaCPAN: + +.PP +Code repository for \s-1CPAN\s0 distribution: + +.PP +threads::shared, perlthrtut +.PP + and + +.PP +Perl threads mailing list: + +.PP +Stack size discussion: + +.PP +Sample code in the \fIexamples\fR directory of this distribution on \s-1CPAN.\s0 +.SH "AUTHOR" +.IX Header "AUTHOR" +Artur Bergman +.PP +\&\s-1CPAN\s0 version produced by Jerry D. Hedden +.SH "LICENSE" +.IX Header "LICENSE" +threads is released under the same license as Perl. +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Richard Soderberg \- +Helping me out tons, trying to find reasons for races and other weird bugs! +.PP +Simon Cozens \- +Being there to answer zillions of annoying questions +.PP +Rocco Caputo +.PP +Vipul Ved Prakash \- +Helping with debugging +.PP +Dean Arnold \- +Stack size \s-1API\s0 diff --git a/data/miniconda3/man/man3/utf8.3 b/data/miniconda3/man/man3/utf8.3 new file mode 100644 index 0000000000000000000000000000000000000000..d8d759cfd3febcface8393993787e770bbc13597 --- /dev/null +++ b/data/miniconda3/man/man3/utf8.3 @@ -0,0 +1,399 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "utf8 3" +.TH utf8 3 "2020-12-18" "perl v5.32.1" "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" +utf8 \- Perl pragma to enable/disable UTF\-8 (or UTF\-EBCDIC) in source code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use utf8; +\& no utf8; +\& +\& # Convert the internal representation of a Perl scalar to/from UTF\-8. +\& +\& $num_octets = utf8::upgrade($string); +\& $success = utf8::downgrade($string[, $fail_ok]); +\& +\& # Change each character of a Perl scalar to/from a series of +\& # characters that represent the UTF\-8 bytes of each original character. +\& +\& utf8::encode($string); # "\ex{100}" becomes "\exc4\ex80" +\& utf8::decode($string); # "\exc4\ex80" becomes "\ex{100}" +\& +\& # Convert a code point from the platform native character set to +\& # Unicode, and vice\-versa. +\& $unicode = utf8::native_to_unicode(ord(\*(AqA\*(Aq)); # returns 65 on both +\& # ASCII and EBCDIC +\& # platforms +\& $native = utf8::unicode_to_native(65); # returns 65 on ASCII +\& # platforms; 193 on +\& # EBCDIC +\& +\& $flag = utf8::is_utf8($string); # since Perl 5.8.1 +\& $flag = utf8::valid($string); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`use utf8\*(C'\fR pragma tells the Perl parser to allow \s-1UTF\-8\s0 in the +program text in the current lexical scope. The \f(CW\*(C`no utf8\*(C'\fR pragma tells Perl +to switch back to treating the source text as literal bytes in the current +lexical scope. (On \s-1EBCDIC\s0 platforms, technically it is allowing UTF-EBCDIC, +and not \s-1UTF\-8,\s0 but this distinction is academic, so in this document the term +\&\s-1UTF\-8\s0 is used to mean both). +.PP +\&\fBDo not use this pragma for anything else than telling Perl that your +script is written in \s-1UTF\-8.\s0\fR The utility functions described below are +directly usable without \f(CW\*(C`use utf8;\*(C'\fR. +.PP +Because it is not possible to reliably tell \s-1UTF\-8\s0 from native 8 bit +encodings, you need either a Byte Order Mark at the beginning of your +source code, or \f(CW\*(C`use utf8;\*(C'\fR, to instruct perl. +.PP +When \s-1UTF\-8\s0 becomes the standard source format, this pragma will +effectively become a no-op. +.PP +See also the effects of the \f(CW\*(C`\-C\*(C'\fR switch and its cousin, the +\&\f(CW\*(C`PERL_UNICODE\*(C'\fR environment variable, in perlrun. +.PP +Enabling the \f(CW\*(C`utf8\*(C'\fR pragma has the following effect: +.IP "\(bu" 4 +Bytes in the source text that are not in the \s-1ASCII\s0 character set will be +treated as being part of a literal \s-1UTF\-8\s0 sequence. This includes most +literals such as identifier names, string constants, and constant +regular expression patterns. +.PP +Note that if you have non-ASCII, non\-UTF\-8 bytes in your script (for example +embedded Latin\-1 in your string literals), \f(CW\*(C`use utf8\*(C'\fR will be unhappy. If +you want to have such bytes under \f(CW\*(C`use utf8\*(C'\fR, you can disable this pragma +until the end the block (or file, if at top level) by \f(CW\*(C`no utf8;\*(C'\fR. +.SS "Utility functions" +.IX Subsection "Utility functions" +The following functions are defined in the \f(CW\*(C`utf8::\*(C'\fR package by the +Perl core. You do not need to say \f(CW\*(C`use utf8\*(C'\fR to use these and in fact +you should not say that unless you really want to have \s-1UTF\-8\s0 source code. +.IP "\(bu" 4 +\&\f(CW\*(C`$num_octets = utf8::upgrade($string)\*(C'\fR +.Sp +(Since Perl v5.8.0) +Converts in-place the internal representation of the string from an octet +sequence in the native encoding (Latin\-1 or \s-1EBCDIC\s0) to \s-1UTF\-8.\s0 The +logical character sequence itself is unchanged. If \fI\f(CI$string\fI\fR is already +upgraded, then this is a no-op. Returns the +number of octets necessary to represent the string as \s-1UTF\-8.\s0 +.Sp +If your code needs to be compatible with versions of perl without +\&\f(CW\*(C`use feature \*(Aqunicode_strings\*(Aq;\*(C'\fR, you can force Unicode semantics on +a given string: +.Sp +.Vb 3 +\& # force unicode semantics for $string without the +\& # "unicode_strings" feature +\& utf8::upgrade($string); +.Ve +.Sp +For example: +.Sp +.Vb 7 +\& # without explicit or implicit use feature \*(Aqunicode_strings\*(Aq +\& my $x = "\exDF"; # LATIN SMALL LETTER SHARP S +\& $x =~ /ss/i; # won\*(Aqt match +\& my $y = uc($x); # won\*(Aqt convert +\& utf8::upgrade($x); +\& $x =~ /ss/i; # matches +\& my $z = uc($x); # converts to "SS" +.Ve +.Sp +\&\fBNote that this function does not handle arbitrary encodings\fR; +use Encode instead. +.IP "\(bu" 4 +\&\f(CW\*(C`$success = utf8::downgrade($string[, $fail_ok])\*(C'\fR +.Sp +(Since Perl v5.8.0) +Converts in-place the internal representation of the string from \s-1UTF\-8\s0 to the +equivalent octet sequence in the native encoding (Latin\-1 or \s-1EBCDIC\s0). The +logical character sequence itself is unchanged. If \fI\f(CI$string\fI\fR is already +stored as native 8 bit, then this is a no-op. Can be used to make sure that +the \s-1UTF\-8\s0 flag is off, e.g. when you want to make sure that the \fBsubstr()\fR or +\&\fBlength()\fR function works with the usually faster byte algorithm. +.Sp +Fails if the original \s-1UTF\-8\s0 sequence cannot be represented in the +native 8 bit encoding. On failure dies or, if the value of \fI\f(CI$fail_ok\fI\fR is +true, returns false. +.Sp +Returns true on success. +.Sp +If your code expects an octet sequence this can be used to validate +that you've received one: +.Sp +.Vb 2 +\& # throw an exception if not representable as octets +\& utf8::downgrade($string) +\& +\& # or do your own error handling +\& utf8::downgrade($string, 1) or die "string must be octets"; +.Ve +.Sp +\&\fBNote that this function does not handle arbitrary encodings\fR; +use Encode instead. +.IP "\(bu" 4 +\&\f(CW\*(C`utf8::encode($string)\*(C'\fR +.Sp +(Since Perl v5.8.0) +Converts in-place the character sequence to the corresponding octet +sequence in Perl's extended \s-1UTF\-8.\s0 That is, every (possibly wide) character +gets replaced with a sequence of one or more characters that represent the +individual \s-1UTF\-8\s0 bytes of the character. The \s-1UTF8\s0 flag is turned off. +Returns nothing. +.Sp +.Vb 4 +\& my $x = "\ex{100}"; # $x contains one character, with ord 0x100 +\& utf8::encode($x); # $x contains two characters, with ords (on +\& # ASCII platforms) 0xc4 and 0x80. On EBCDIC +\& # 1047, this would instead be 0x8C and 0x41. +.Ve +.Sp +Similar to: +.Sp +.Vb 2 +\& use Encode; +\& $x = Encode::encode("utf8", $x); +.Ve +.Sp +\&\fBNote that this function does not handle arbitrary encodings\fR; +use Encode instead. +.IP "\(bu" 4 +\&\f(CW\*(C`$success = utf8::decode($string)\*(C'\fR +.Sp +(Since Perl v5.8.0) +Attempts to convert in-place the octet sequence encoded in Perl's extended +\&\s-1UTF\-8\s0 to the corresponding character sequence. That is, it replaces each +sequence of characters in the string whose ords represent a valid (extended) +\&\s-1UTF\-8\s0 byte sequence, with the corresponding single character. The \s-1UTF\-8\s0 flag +is turned on only if the source string contains multiple-byte \s-1UTF\-8\s0 +characters. If \fI\f(CI$string\fI\fR is invalid as extended \s-1UTF\-8,\s0 returns false; +otherwise returns true. +.Sp +.Vb 6 +\& my $x = "\exc4\ex80"; # $x contains two characters, with ords +\& # 0xc4 and 0x80 +\& utf8::decode($x); # On ASCII platforms, $x contains one char, +\& # with ord 0x100. Since these bytes aren\*(Aqt +\& # legal UTF\-EBCDIC, on EBCDIC platforms, $x is +\& # unchanged and the function returns FALSE. +.Ve +.Sp +\&\fBNote that this function does not handle arbitrary encodings\fR; +use Encode instead. +.IP "\(bu" 4 +\&\f(CW\*(C`$unicode = utf8::native_to_unicode($code_point)\*(C'\fR +.Sp +(Since Perl v5.8.0) +This takes an unsigned integer (which represents the ordinal number of a +character (or a code point) on the platform the program is being run on) and +returns its Unicode equivalent value. Since \s-1ASCII\s0 platforms natively use the +Unicode code points, this function returns its input on them. On \s-1EBCDIC\s0 +platforms it converts from \s-1EBCDIC\s0 to Unicode. +.Sp +A meaningless value will currently be returned if the input is not an unsigned +integer. +.Sp +Since Perl v5.22.0, calls to this function are optimized out on \s-1ASCII\s0 +platforms, so there is no performance hit in using it there. +.IP "\(bu" 4 +\&\f(CW\*(C`$native = utf8::unicode_to_native($code_point)\*(C'\fR +.Sp +(Since Perl v5.8.0) +This is the inverse of \f(CW\*(C`utf8::native_to_unicode()\*(C'\fR, converting the other +direction. Again, on \s-1ASCII\s0 platforms, this returns its input, but on \s-1EBCDIC\s0 +platforms it will find the native platform code point, given any Unicode one. +.Sp +A meaningless value will currently be returned if the input is not an unsigned +integer. +.Sp +Since Perl v5.22.0, calls to this function are optimized out on \s-1ASCII\s0 +platforms, so there is no performance hit in using it there. +.IP "\(bu" 4 +\&\f(CW\*(C`$flag = utf8::is_utf8($string)\*(C'\fR +.Sp +(Since Perl 5.8.1) Test whether \fI\f(CI$string\fI\fR is marked internally as encoded in +\&\s-1UTF\-8.\s0 Functionally the same as \f(CW\*(C`Encode::is_utf8($string)\*(C'\fR. +.Sp +Typically only necessary for debugging and testing, if you need to +dump the internals of an \s-1SV,\s0 Devel::Peek's \fBDump()\fR +provides more detail in a compact form. +.Sp +If you still think you need this outside of debugging, testing or +dealing with filenames, you should probably read perlunitut and +\&\*(L"What is \*(R"the \s-1UTF8\s0 flag\*(L"?\*(R" in perlunifaq. +.Sp +Don't use this flag as a marker to distinguish character and binary +data: that should be decided for each variable when you write your +code. +.Sp +To force unicode semantics in code portable to perl 5.8 and 5.10, call +\&\f(CW\*(C`utf8::upgrade($string)\*(C'\fR unconditionally. +.IP "\(bu" 4 +\&\f(CW\*(C`$flag = utf8::valid($string)\*(C'\fR +.Sp +[\s-1INTERNAL\s0] Test whether \fI\f(CI$string\fI\fR is in a consistent state regarding +\&\s-1UTF\-8.\s0 Will return true if it is well-formed Perl extended \s-1UTF\-8\s0 and has the +\&\s-1UTF\-8\s0 flag +on \fBor\fR if \fI\f(CI$string\fI\fR is held as bytes (both these states are 'consistent'). +The main reason for this routine is to allow Perl's test suite to check +that operations have left strings in a consistent state. +.PP +\&\f(CW\*(C`utf8::encode\*(C'\fR is like \f(CW\*(C`utf8::upgrade\*(C'\fR, but the \s-1UTF8\s0 flag is +cleared. See perlunicode, and the C \s-1API\s0 +functions \f(CW\*(C`sv_utf8_upgrade\*(C'\fR, +\&\f(CW\*(C`"sv_utf8_downgrade" in perlapi\*(C'\fR, \f(CW\*(C`"sv_utf8_encode" in perlapi\*(C'\fR, +and \f(CW\*(C`"sv_utf8_decode" in perlapi\*(C'\fR, which are wrapped by the Perl functions +\&\f(CW\*(C`utf8::upgrade\*(C'\fR, \f(CW\*(C`utf8::downgrade\*(C'\fR, \f(CW\*(C`utf8::encode\*(C'\fR and +\&\f(CW\*(C`utf8::decode\*(C'\fR. Also, the functions \f(CW\*(C`utf8::is_utf8\*(C'\fR, \f(CW\*(C`utf8::valid\*(C'\fR, +\&\f(CW\*(C`utf8::encode\*(C'\fR, \f(CW\*(C`utf8::decode\*(C'\fR, \f(CW\*(C`utf8::upgrade\*(C'\fR, and \f(CW\*(C`utf8::downgrade\*(C'\fR are +actually internal, and thus always available, without a \f(CW\*(C`require utf8\*(C'\fR +statement. +.SH "BUGS" +.IX Header "BUGS" +Some filesystems may not support \s-1UTF\-8\s0 file names, or they may be supported +incompatibly with Perl. Therefore \s-1UTF\-8\s0 names that are visible to the +filesystem, such as module names may not work. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlunitut, perluniintro, perlrun, bytes, perlunicode diff --git a/data/miniconda3/man/man3/vars.3 b/data/miniconda3/man/man3/vars.3 new file mode 100644 index 0000000000000000000000000000000000000000..449f71fbef684be5f4a51857a43a9a37e5e0f903 --- /dev/null +++ b/data/miniconda3/man/man3/vars.3 @@ -0,0 +1,173 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "vars 3" +.TH vars 3 "2020-12-18" "perl v5.32.1" "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" +vars \- Perl pragma to predeclare global variable names +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use vars qw($frob @mung %seen); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\s-1NOTE:\s0 For use with variables in the current package for a single scope, the +functionality provided by this pragma has been superseded by \f(CW\*(C`our\*(C'\fR +declarations, available in Perl v5.6.0 or later, and use of this pragma is +discouraged. See \*(L"our\*(R" in perlfunc. +.PP +This pragma will predeclare all the variables whose names are +in the list, allowing you to use them under \f(CW\*(C`use strict\*(C'\fR, and +disabling any typo warnings for them. +.PP +Unlike pragmas that affect the \f(CW$^H\fR hints variable, the \f(CW\*(C`use vars\*(C'\fR and +\&\f(CW\*(C`use subs\*(C'\fR declarations are not lexically scoped to the block they appear +in: they affect +the entire package in which they appear. It is not possible to rescind these +declarations with \f(CW\*(C`no vars\*(C'\fR or \f(CW\*(C`no subs\*(C'\fR. +.PP +Packages such as the \fBAutoLoader\fR and \fBSelfLoader\fR that delay +loading of subroutines within packages can create problems with +package lexicals defined using \f(CW\*(C`my()\*(C'\fR. While the \fBvars\fR pragma +cannot duplicate the effect of package lexicals (total transparency +outside of the package), it can act as an acceptable substitute by +pre-declaring global symbols, ensuring their availability to the +later-loaded routines. +.PP +See \*(L"Pragmatic Modules\*(R" in perlmodlib. diff --git a/data/miniconda3/man/man3/version%3A%3AInternals.3 b/data/miniconda3/man/man3/version%3A%3AInternals.3 new file mode 100644 index 0000000000000000000000000000000000000000..949caed0102f0a04a4d51b7981809ec5af1acfd5 --- /dev/null +++ b/data/miniconda3/man/man3/version%3A%3AInternals.3 @@ -0,0 +1,838 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "version::Internals 3" +.TH version::Internals 3 "2020-12-18" "perl v5.32.1" "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" +version::Internals \- Perl extension for Version Objects +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Overloaded version objects for all modern versions of Perl. This documents +the internal data representation and underlying code for version.pm. See +\&\fIversion.pod\fR for daily usage. This document is only useful for users +interested in the gory details. +.SH "WHAT IS A VERSION?" +.IX Header "WHAT IS A VERSION?" +For the purposes of this module, a version \*(L"number\*(R" is a sequence of +positive integer values separated by one or more decimal points and +optionally a single underscore. This corresponds to what Perl itself +uses for a version, as well as extending the \*(L"version as number\*(R" that +is discussed in the various editions of the Camel book. +.PP +There are actually two distinct kinds of version objects: +.IP "Decimal versions" 4 +.IX Item "Decimal versions" +Any version which \*(L"looks like a number\*(R", see \*(L"Decimal Versions\*(R". This +also includes versions with a single decimal point and a single embedded +underscore, see \*(L"Alpha Versions\*(R", even though these must be quoted +to preserve the underscore formatting. +.IP "Dotted-Decimal versions" 4 +.IX Item "Dotted-Decimal versions" +Also referred to as \*(L"Dotted-Integer\*(R", these contains more than one decimal +point and may have an optional embedded underscore, see Dotted-Decimal +Versions. This is what is commonly used in most open source software as +the \*(L"external\*(R" version (the one used as part of the tag or tarfile name). +A leading 'v' character is now required and will warn if it missing. +.PP +Both of these methods will produce similar version objects, in that +the default stringification will yield the version \*(L"Normal Form\*(R" only +if required: +.PP +.Vb 3 +\& $v = version\->new(1.002); # 1.002, but compares like 1.2.0 +\& $v = version\->new(1.002003); # 1.002003 +\& $v2 = version\->new("v1.2.3"); # v1.2.3 +.Ve +.PP +In specific, version numbers initialized as \*(L"Decimal Versions\*(R" will +stringify as they were originally created (i.e. the same string that was +passed to \f(CW\*(C`new()\*(C'\fR. Version numbers initialized as \*(L"Dotted-Decimal Versions\*(R" +will be stringified as \*(L"Normal Form\*(R". +.SS "Decimal Versions" +.IX Subsection "Decimal Versions" +These correspond to historical versions of Perl itself prior to 5.6.0, +as well as all other modules which follow the Camel rules for the +\&\f(CW$VERSION\fR scalar. A Decimal version is initialized with what looks like +a floating point number. Leading zeros \fBare\fR significant and trailing +zeros are implied so that a minimum of three places is maintained +between subversions. What this means is that any subversion (digits +to the right of the decimal place) that contains less than three digits +will have trailing zeros added to make up the difference, but only for +purposes of comparison with other version objects. For example: +.PP +.Vb 7 +\& # Prints Equivalent to +\& $v = version\->new( 1.2); # 1.2 v1.200.0 +\& $v = version\->new( 1.02); # 1.02 v1.20.0 +\& $v = version\->new( 1.002); # 1.002 v1.2.0 +\& $v = version\->new( 1.0023); # 1.0023 v1.2.300 +\& $v = version\->new( 1.00203); # 1.00203 v1.2.30 +\& $v = version\->new( 1.002003); # 1.002003 v1.2.3 +.Ve +.PP +All of the preceding examples are true whether or not the input value is +quoted. The important feature is that the input value contains only a +single decimal. See also \*(L"Alpha Versions\*(R". +.PP +\&\s-1IMPORTANT NOTE:\s0 As shown above, if your Decimal version contains more +than 3 significant digits after the decimal place, it will be split on +each multiple of 3, so 1.0003 is equivalent to v1.0.300, due to the need +to remain compatible with Perl's own 5.005_03 == 5.5.30 interpretation. +Any trailing zeros are ignored for mathematical comparison purposes. +.SS "Dotted-Decimal Versions" +.IX Subsection "Dotted-Decimal Versions" +These are the newest form of versions, and correspond to Perl's own +version style beginning with 5.6.0. Starting with Perl 5.10.0, +and most likely Perl 6, this is likely to be the preferred form. This +method normally requires that the input parameter be quoted, although +Perl's after 5.8.1 can use v\-strings as a special form of quoting, but +this is highly discouraged. +.PP +Unlike \*(L"Decimal Versions\*(R", Dotted-Decimal Versions have more than +a single decimal point, e.g.: +.PP +.Vb 6 +\& # Prints +\& $v = version\->new( "v1.200"); # v1.200.0 +\& $v = version\->new("v1.20.0"); # v1.20.0 +\& $v = qv("v1.2.3"); # v1.2.3 +\& $v = qv("1.2.3"); # v1.2.3 +\& $v = qv("1.20"); # v1.20.0 +.Ve +.PP +In general, Dotted-Decimal Versions permit the greatest amount of freedom +to specify a version, whereas Decimal Versions enforce a certain +uniformity. +.PP +Just like \*(L"Decimal Versions\*(R", Dotted-Decimal Versions can be used as +\&\*(L"Alpha Versions\*(R". +.SS "Alpha Versions" +.IX Subsection "Alpha Versions" +For module authors using \s-1CPAN,\s0 the convention has been to note unstable +releases with an underscore in the version string. (See \s-1CPAN\s0.) version.pm +follows this convention and alpha releases will test as being newer than the +more recent stable release, and less than the next stable release. Only the +last element may be separated by an underscore: +.PP +.Vb 2 +\& # Declaring +\& use version 0.77; our $VERSION = version\->declare("v1.2_3"); +\& +\& # Parsing +\& $v1 = version\->parse("v1.2_3"); +\& $v1 = version\->parse("1.002_003"); +.Ve +.PP +Note that you \fBmust\fR quote the version when writing an alpha Decimal version. +The stringified form of Decimal versions will always be the same string that +was used to initialize the version object. +.SS "Regular Expressions for Version Parsing" +.IX Subsection "Regular Expressions for Version Parsing" +A formalized definition of the legal forms for version strings is +included in the \f(CW\*(C`version::regex\*(C'\fR class. Primitives are included for +common elements, although they are scoped to the file so they are useful +for reference purposes only. There are two publicly accessible scalars +that can be used in other code (not exported): +.ie n .IP "$version::LAX" 4 +.el .IP "\f(CW$version::LAX\fR" 4 +.IX Item "$version::LAX" +This regexp covers all of the legal forms allowed under the current +version string parser. This is not to say that all of these forms +are recommended, and some of them can only be used when quoted. +.Sp +For dotted decimals: +.Sp +.Vb 3 +\& v1.2 +\& 1.2345.6 +\& v1.23_4 +.Ve +.Sp +The leading 'v' is optional if two or more decimals appear. If only +a single decimal is included, then the leading 'v' is required to +trigger the dotted-decimal parsing. A leading zero is permitted, +though not recommended except when quoted, because of the risk that +Perl will treat the number as octal. A trailing underscore plus one +or more digits denotes an alpha or development release (and must be +quoted to be parsed properly). +.Sp +For decimal versions: +.Sp +.Vb 3 +\& 1 +\& 1.2345 +\& 1.2345_01 +.Ve +.Sp +an integer portion, an optional decimal point, and optionally one or +more digits to the right of the decimal are all required. A trailing +underscore is permitted and a leading zero is permitted. Just like +the lax dotted-decimal version, quoting the values is required for +alpha/development forms to be parsed correctly. +.ie n .IP "$version::STRICT" 4 +.el .IP "\f(CW$version::STRICT\fR" 4 +.IX Item "$version::STRICT" +This regexp covers a much more limited set of formats and constitutes +the best practices for initializing version objects. Whether you choose +to employ decimal or dotted-decimal for is a personal preference however. +.RS 4 +.IP "v1.234.5" 4 +.IX Item "v1.234.5" +For dotted-decimal versions, a leading 'v' is required, with three or +more sub-versions of no more than three digits. A leading 0 (zero) +before the first sub-version (in the above example, '1') is also +prohibited. +.IP "2.3456" 4 +.IX Item "2.3456" +For decimal versions, an integer portion (no leading 0), a decimal point, +and one or more digits to the right of the decimal are all required. +.RE +.RS 4 +.RE +.PP +Both of the provided scalars are already compiled as regular expressions +and do not contain either anchors or implicit groupings, so they can be +included in your own regular expressions freely. For example, consider +the following code: +.PP +.Vb 6 +\& ($pkg, $ver) =~ / +\& ^[ \et]* +\& use [ \et]+($PKGNAME) +\& (?:[ \et]+($version::STRICT))? +\& [ \et]*; +\& /x; +.Ve +.PP +This would match a line of the form: +.PP +.Vb 1 +\& use Foo::Bar::Baz v1.2.3; # legal only in Perl 5.8.1+ +.Ve +.PP +where \f(CW$PKGNAME\fR is another regular expression that defines the legal +forms for package names. +.SH "IMPLEMENTATION DETAILS" +.IX Header "IMPLEMENTATION DETAILS" +.SS "Equivalence between Decimal and Dotted-Decimal Versions" +.IX Subsection "Equivalence between Decimal and Dotted-Decimal Versions" +When Perl 5.6.0 was released, the decision was made to provide a +transformation between the old-style decimal versions and new-style +dotted-decimal versions: +.PP +.Vb 2 +\& 5.6.0 == 5.006000 +\& 5.005_04 == 5.5.40 +.Ve +.PP +The floating point number is taken and split first on the single decimal +place, then each group of three digits to the right of the decimal makes up +the next digit, and so on until the number of significant digits is exhausted, +\&\fBplus\fR enough trailing zeros to reach the next multiple of three. +.PP +This was the method that version.pm adopted as well. Some examples may be +helpful: +.PP +.Vb 9 +\& equivalent +\& decimal zero\-padded dotted\-decimal +\& \-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1.2 1.200 v1.200.0 +\& 1.02 1.020 v1.20.0 +\& 1.002 1.002 v1.2.0 +\& 1.0023 1.002300 v1.2.300 +\& 1.00203 1.002030 v1.2.30 +\& 1.002003 1.002003 v1.2.3 +.Ve +.SS "Quoting Rules" +.IX Subsection "Quoting Rules" +Because of the nature of the Perl parsing and tokenizing routines, +certain initialization values \fBmust\fR be quoted in order to correctly +parse as the intended version, especially when using the \f(CW\*(C`declare\*(C'\fR or +\&\*(L"\fBqv()\fR\*(R" methods. While you do not have to quote decimal numbers when +creating version objects, it is always safe to quote \fBall\fR initial values +when using version.pm methods, as this will ensure that what you type is +what is used. +.PP +Additionally, if you quote your initializer, then the quoted value that goes +\&\fBin\fR will be exactly what comes \fBout\fR when your \f(CW$VERSION\fR is printed +(stringified). If you do not quote your value, Perl's normal numeric handling +comes into play and you may not get back what you were expecting. +.PP +If you use a mathematic formula that resolves to a floating point number, +you are dependent on Perl's conversion routines to yield the version you +expect. You are pretty safe by dividing by a power of 10, for example, +but other operations are not likely to be what you intend. For example: +.PP +.Vb 4 +\& $VERSION = version\->new((qw$Revision: 1.4)[1]/10); +\& print $VERSION; # yields 0.14 +\& $V2 = version\->new(100/9); # Integer overflow in decimal number +\& print $V2; # yields something like 11.111.111.100 +.Ve +.PP +Perl 5.8.1 and beyond are able to automatically quote v\-strings but +that is not possible in earlier versions of Perl. In other words: +.PP +.Vb 2 +\& $version = version\->new("v2.5.4"); # legal in all versions of Perl +\& $newvers = version\->new(v2.5.4); # legal only in Perl >= 5.8.1 +.Ve +.SS "What about v\-strings?" +.IX Subsection "What about v-strings?" +There are two ways to enter v\-strings: a bare number with two or more +decimal points, or a bare number with one or more decimal points and a +leading 'v' character (also bare). For example: +.PP +.Vb 2 +\& $vs1 = 1.2.3; # encoded as \e1\e2\e3 +\& $vs2 = v1.2; # encoded as \e1\e2 +.Ve +.PP +However, the use of bare v\-strings to initialize version objects is +\&\fBstrongly\fR discouraged in all circumstances. Also, bare +v\-strings are not completely supported in any version of Perl prior to +5.8.1. +.PP +If you insist on using bare v\-strings with Perl > 5.6.0, be aware of the +following limitations: +.PP +1) For Perl releases 5.6.0 through 5.8.0, the v\-string code merely guesses, +based on some characteristics of v\-strings. You \fBmust\fR use a three part +version, e.g. 1.2.3 or v1.2.3 in order for this heuristic to be successful. +.PP +2) For Perl releases 5.8.1 and later, v\-strings have changed in the Perl +core to be magical, which means that the version.pm code can automatically +determine whether the v\-string encoding was used. +.PP +3) In all cases, a version created using v\-strings will have a stringified +form that has a leading 'v' character, for the simple reason that sometimes +it is impossible to tell whether one was present initially. +.SS "Version Object Internals" +.IX Subsection "Version Object Internals" +version.pm provides an overloaded version object that is designed to both +encapsulate the author's intended \f(CW$VERSION\fR assignment as well as make it +completely natural to use those objects as if they were numbers (e.g. for +comparisons). To do this, a version object contains both the original +representation as typed by the author, as well as a parsed representation +to ease comparisons. Version objects employ overload methods to +simplify code that needs to compare, print, etc the objects. +.PP +The internal structure of version objects is a blessed hash with several +components: +.PP +.Vb 11 +\& bless( { +\& \*(Aqoriginal\*(Aq => \*(Aqv1.2.3_4\*(Aq, +\& \*(Aqalpha\*(Aq => 1, +\& \*(Aqqv\*(Aq => 1, +\& \*(Aqversion\*(Aq => [ +\& 1, +\& 2, +\& 3, +\& 4 +\& ] +\& }, \*(Aqversion\*(Aq ); +.Ve +.IP "original" 4 +.IX Item "original" +A faithful representation of the value used to initialize this version +object. The only time this will not be precisely the same characters +that exist in the source file is if a short dotted-decimal version like +v1.2 was used (in which case it will contain 'v1.2'). This form is +\&\fB\s-1STRONGLY\s0\fR discouraged, in that it will confuse you and your users. +.IP "qv" 4 +.IX Item "qv" +A boolean that denotes whether this is a decimal or dotted-decimal version. +See \*(L"\fBis_qv()\fR\*(R" in version. +.IP "alpha" 4 +.IX Item "alpha" +A boolean that denotes whether this is an alpha version. \s-1NOTE:\s0 that the +underscore can only appear in the last position. See \*(L"\fBis_alpha()\fR\*(R" in version. +.IP "version" 4 +.IX Item "version" +An array of non-negative integers that is used for comparison purposes with +other version objects. +.SS "Replacement \s-1UNIVERSAL::VERSION\s0" +.IX Subsection "Replacement UNIVERSAL::VERSION" +In addition to the version objects, this modules also replaces the core +\&\s-1UNIVERSAL::VERSION\s0 function with one that uses version objects for its +comparisons. The return from this operator is always the stringified form +as a simple scalar (i.e. not an object), but the warning message generated +includes either the stringified form or the normal form, depending on how +it was called. +.PP +For example: +.PP +.Vb 2 +\& package Foo; +\& $VERSION = 1.2; +\& +\& package Bar; +\& $VERSION = "v1.3.5"; # works with all Perl\*(Aqs (since it is quoted) +\& +\& package main; +\& use version; +\& +\& print $Foo::VERSION; # prints 1.2 +\& +\& print $Bar::VERSION; # prints 1.003005 +\& +\& eval "use foo 10"; +\& print $@; # prints "foo version 10 required..." +\& eval "use foo 1.3.5; # work in Perl 5.6.1 or better +\& print $@; # prints "foo version 1.3.5 required..." +\& +\& eval "use bar 1.3.6"; +\& print $@; # prints "bar version 1.3.6 required..." +\& eval "use bar 1.004"; # note Decimal version +\& print $@; # prints "bar version 1.004 required..." +.Ve +.PP +\&\s-1IMPORTANT NOTE:\s0 This may mean that code which searches for a specific +string (to determine whether a given module is available) may need to be +changed. It is always better to use the built-in comparison implicit in +\&\f(CW\*(C`use\*(C'\fR or \f(CW\*(C`require\*(C'\fR, rather than manually poking at \f(CW\*(C`class\->VERSION\*(C'\fR +and then doing a comparison yourself. +.PP +The replacement \s-1UNIVERSAL::VERSION,\s0 when used as a function, like this: +.PP +.Vb 1 +\& print $module\->VERSION; +.Ve +.PP +will also exclusively return the stringified form. See \*(L"Stringification\*(R" +for more details. +.SH "USAGE DETAILS" +.IX Header "USAGE DETAILS" +.SS "Using modules that use version.pm" +.IX Subsection "Using modules that use version.pm" +As much as possible, the version.pm module remains compatible with all +current code. However, if your module is using a module that has defined +\&\f(CW$VERSION\fR using the version class, there are a couple of things to be +aware of. For purposes of discussion, we will assume that we have the +following module installed: +.PP +.Vb 4 +\& package Example; +\& use version; $VERSION = qv(\*(Aq1.2.2\*(Aq); +\& ...module code here... +\& 1; +.Ve +.IP "Decimal versions always work" 4 +.IX Item "Decimal versions always work" +Code of the form: +.Sp +.Vb 1 +\& use Example 1.002003; +.Ve +.Sp +will always work correctly. The \f(CW\*(C`use\*(C'\fR will perform an automatic +\&\f(CW$VERSION\fR comparison using the floating point number given as the first +term after the module name (e.g. above 1.002.003). In this case, the +installed module is too old for the requested line, so you would see an +error like: +.Sp +.Vb 1 +\& Example version 1.002003 (v1.2.3) required\-\-this is only version 1.002002 (v1.2.2)... +.Ve +.IP "Dotted-Decimal version work sometimes" 4 +.IX Item "Dotted-Decimal version work sometimes" +With Perl >= 5.6.2, you can also use a line like this: +.Sp +.Vb 1 +\& use Example 1.2.3; +.Ve +.Sp +and it will again work (i.e. give the error message as above), even with +releases of Perl which do not normally support v\-strings (see \*(L"What about v\-strings?\*(R" above). This has to do with that fact that \f(CW\*(C`use\*(C'\fR only checks +to see if the second term \fIlooks like a number\fR and passes that to the +replacement \s-1UNIVERSAL::VERSION\s0. This is not true in Perl 5.005_04, +however, so you are \fBstrongly encouraged\fR to always use a Decimal version +in your code, even for those versions of Perl which support the Dotted-Decimal +version. +.SS "Object Methods" +.IX Subsection "Object Methods" +.IP "\fBnew()\fR" 4 +.IX Item "new()" +Like many \s-1OO\s0 interfaces, the \fBnew()\fR method is used to initialize version +objects. If two arguments are passed to \f(CW\*(C`new()\*(C'\fR, the \fBsecond\fR one will be +used as if it were prefixed with \*(L"v\*(R". This is to support historical use of the +\&\f(CW\*(C`qw\*(C'\fR operator with the \s-1CVS\s0 variable \f(CW$Revision\fR, which is automatically +incremented by \s-1CVS\s0 every time the file is committed to the repository. +.Sp +In order to facilitate this feature, the following +code can be employed: +.Sp +.Vb 1 +\& $VERSION = version\->new(qw$Revision: 2.7 $); +.Ve +.Sp +and the version object will be created as if the following code +were used: +.Sp +.Vb 1 +\& $VERSION = version\->new("v2.7"); +.Ve +.Sp +In other words, the version will be automatically parsed out of the +string, and it will be quoted to preserve the meaning \s-1CVS\s0 normally +carries for versions. The \s-1CVS\s0 \f(CW$Revision\fR$ increments differently from +Decimal versions (i.e. 1.10 follows 1.9), so it must be handled as if +it were a Dotted-Decimal Version. +.Sp +A new version object can be created as a copy of an existing version +object, either as a class method: +.Sp +.Vb 2 +\& $v1 = version\->new(12.3); +\& $v2 = version\->new($v1); +.Ve +.Sp +or as an object method: +.Sp +.Vb 2 +\& $v1 = version\->new(12.3); +\& $v2 = $v1\->new(12.3); +.Ve +.Sp +and in each case, \f(CW$v1\fR and \f(CW$v2\fR will be identical. \s-1NOTE:\s0 if you create +a new object using an existing object like this: +.Sp +.Vb 1 +\& $v2 = $v1\->new(); +.Ve +.Sp +the new object \fBwill not\fR be a clone of the existing object. In the +example case, \f(CW$v2\fR will be an empty object of the same type as \f(CW$v1\fR. +.IP "\fBqv()\fR" 4 +.IX Item "qv()" +An alternate way to create a new version object is through the exported +\&\fBqv()\fR sub. This is not strictly like other q? operators (like qq, qw), +in that the only delimiters supported are parentheses (or spaces). It is +the best way to initialize a short version without triggering the floating +point interpretation. For example: +.Sp +.Vb 2 +\& $v1 = qv(1.2); # v1.2.0 +\& $v2 = qv("1.2"); # also v1.2.0 +.Ve +.Sp +As you can see, either a bare number or a quoted string can usually +be used interchangeably, except in the case of a trailing zero, which +must be quoted to be converted properly. For this reason, it is strongly +recommended that all initializers to \fBqv()\fR be quoted strings instead of +bare numbers. +.Sp +To prevent the \f(CW\*(C`qv()\*(C'\fR function from being exported to the caller's namespace, +either use version with a null parameter: +.Sp +.Vb 1 +\& use version (); +.Ve +.Sp +or just require version, like this: +.Sp +.Vb 1 +\& require version; +.Ve +.Sp +Both methods will prevent the \fBimport()\fR method from firing and exporting the +\&\f(CW\*(C`qv()\*(C'\fR sub. +.PP +For the subsequent examples, the following three objects will be used: +.PP +.Vb 3 +\& $ver = version\->new("1.2.3.4"); # see "Quoting Rules" +\& $alpha = version\->new("1.2.3_4"); # see "Alpha Versions" +\& $nver = version\->new(1.002); # see "Decimal Versions" +.Ve +.IP "Normal Form" 4 +.IX Item "Normal Form" +For any version object which is initialized with multiple decimal +places (either quoted or if possible v\-string), or initialized using +the \fBqv()\fR operator, the stringified representation is returned in +a normalized or reduced form (no extraneous zeros), and with a leading 'v': +.Sp +.Vb 6 +\& print $ver\->normal; # prints as v1.2.3.4 +\& print $ver\->stringify; # ditto +\& print $ver; # ditto +\& print $nver\->normal; # prints as v1.2.0 +\& print $nver\->stringify; # prints as 1.002, +\& # see "Stringification" +.Ve +.Sp +In order to preserve the meaning of the processed version, the +normalized representation will always contain at least three sub terms. +In other words, the following is guaranteed to always be true: +.Sp +.Vb 3 +\& my $newver = version\->new($ver\->stringify); +\& if ($newver eq $ver ) # always true +\& {...} +.Ve +.IP "Numification" 4 +.IX Item "Numification" +Although all mathematical operations on version objects are forbidden +by default, it is possible to retrieve a number which corresponds +to the version object through the use of the \f(CW$obj\fR\->numify +method. For formatting purposes, when displaying a number which +corresponds a version object, all sub versions are assumed to have +three decimal places. So for example: +.Sp +.Vb 2 +\& print $ver\->numify; # prints 1.002003004 +\& print $nver\->numify; # prints 1.002 +.Ve +.Sp +Unlike the stringification operator, there is never any need to append +trailing zeros to preserve the correct version value. +.IP "Stringification" 4 +.IX Item "Stringification" +The default stringification for version objects returns exactly the same +string as was used to create it, whether you used \f(CW\*(C`new()\*(C'\fR or \f(CW\*(C`qv()\*(C'\fR, +with one exception. The sole exception is if the object was created using +\&\f(CW\*(C`qv()\*(C'\fR and the initializer did not have two decimal places or a leading +\&'v' (both optional), then the stringified form will have a leading 'v' +prepended, in order to support round-trip processing. +.Sp +For example: +.Sp +.Vb 7 +\& Initialized as Stringifies to +\& ============== ============== +\& version\->new("1.2") 1.2 +\& version\->new("v1.2") v1.2 +\& qv("1.2.3") 1.2.3 +\& qv("v1.3.5") v1.3.5 +\& qv("1.2") v1.2 ### exceptional case +.Ve +.Sp +See also \s-1UNIVERSAL::VERSION\s0, as this also returns the stringified form +when used as a class method. +.Sp +\&\s-1IMPORTANT NOTE:\s0 There is one exceptional cases shown in the above table +where the \*(L"initializer\*(R" is not stringwise equivalent to the stringified +representation. If you use the \f(CW\*(C`qv\*(C'\fR() operator on a version without a +leading 'v' \fBand\fR with only a single decimal place, the stringified output +will have a leading 'v', to preserve the sense. See the \*(L"\fBqv()\fR\*(R" operator +for more details. +.Sp +\&\s-1IMPORTANT NOTE 2:\s0 Attempting to bypass the normal stringification rules by +manually applying \fBnumify()\fR and \fBnormal()\fR will sometimes yield +surprising results: +.Sp +.Vb 1 +\& print version\->new(version\->new("v1.0")\->numify)\->normal; # v1.0.0 +.Ve +.Sp +The reason for this is that the \fBnumify()\fR operator will turn \*(L"v1.0\*(R" +into the equivalent string \*(L"1.000000\*(R". Forcing the outer version object +to \fBnormal()\fR form will display the mathematically equivalent \*(L"v1.0.0\*(R". +.Sp +As the example in \*(L"\fBnew()\fR\*(R" shows, you can always create a copy of an +existing version object with the same value by the very compact: +.Sp +.Vb 1 +\& $v2 = $v1\->new($v1); +.Ve +.Sp +and be assured that both \f(CW$v1\fR and \f(CW$v2\fR will be completely equivalent, +down to the same internal representation as well as stringification. +.IP "Comparison operators" 4 +.IX Item "Comparison operators" +Both \f(CW\*(C`cmp\*(C'\fR and \f(CW\*(C`<=>\*(C'\fR operators perform the same comparison between +terms (upgrading to a version object automatically). Perl automatically +generates all of the other comparison operators based on those two. +In addition to the obvious equalities listed below, appending a single +trailing 0 term does not change the value of a version for comparison +purposes. In other words \*(L"v1.2\*(R" and \*(L"1.2.0\*(R" will compare as identical. +.Sp +For example, the following relations hold: +.Sp +.Vb 7 +\& As Number As String Truth Value +\& \-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- +\& $ver > 1.0 $ver gt "1.0" true +\& $ver < 2.5 $ver lt true +\& $ver != 1.3 $ver ne "1.3" true +\& $ver == 1.2 $ver eq "1.2" false +\& $ver == 1.2.3.4 $ver eq "1.2.3.4" see discussion below +.Ve +.Sp +It is probably best to chose either the Decimal notation or the string +notation and stick with it, to reduce confusion. Perl6 version objects +\&\fBmay\fR only support Decimal comparisons. See also \*(L"Quoting Rules\*(R". +.Sp +\&\s-1WARNING:\s0 Comparing version with unequal numbers of decimal points (whether +explicitly or implicitly initialized), may yield unexpected results at +first glance. For example, the following inequalities hold: +.Sp +.Vb 2 +\& version\->new(0.96) > version\->new(0.95); # 0.960.0 > 0.950.0 +\& version\->new("0.96.1") < version\->new(0.95); # 0.096.1 < 0.950.0 +.Ve +.Sp +For this reason, it is best to use either exclusively \*(L"Decimal Versions\*(R" or +\&\*(L"Dotted-Decimal Versions\*(R" with multiple decimal points. +.IP "Logical Operators" 4 +.IX Item "Logical Operators" +If you need to test whether a version object +has been initialized, you can simply test it directly: +.Sp +.Vb 2 +\& $vobj = version\->new($something); +\& if ( $vobj ) # true only if $something was non\-blank +.Ve +.Sp +You can also test whether a version object is an alpha version, for +example to prevent the use of some feature not present in the main +release: +.Sp +.Vb 3 +\& $vobj = version\->new("1.2_3"); # MUST QUOTE +\& ...later... +\& if ( $vobj\->is_alpha ) # True +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +John Peacock +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perl. diff --git a/data/miniconda3/man/man3/version.3 b/data/miniconda3/man/man3/version.3 new file mode 100644 index 0000000000000000000000000000000000000000..a3da3c099b987ecae77ec65f0e90da77093412c4 --- /dev/null +++ b/data/miniconda3/man/man3/version.3 @@ -0,0 +1,448 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "version 3" +.TH version 3 "2020-12-18" "perl v5.32.1" "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" +version \- Perl extension for Version Objects +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # Parsing version strings (decimal or dotted\-decimal) +\& +\& use version 0.77; # get latest bug\-fixes and API +\& $ver = version\->parse($string) +\& +\& # Declaring a dotted\-decimal $VERSION (keep on one line!) +\& +\& use version; our $VERSION = version\->declare("v1.2.3"); # formal +\& use version; our $VERSION = qv("v1.2.3"); # deprecated +\& use version; our $VERSION = qv("v1.2_3"); # deprecated +\& +\& # Declaring an old\-style decimal $VERSION (use quotes!) +\& +\& our $VERSION = "1.0203"; # recommended +\& use version; our $VERSION = version\->parse("1.0203"); # formal +\& use version; our $VERSION = version\->parse("1.02_03"); # alpha +\& +\& # Comparing mixed version styles (decimals, dotted\-decimals, objects) +\& +\& if ( version\->parse($v1) == version\->parse($v2) ) { +\& # do stuff +\& } +\& +\& # Sorting mixed version styles +\& +\& @ordered = sort { version\->parse($a) <=> version\->parse($b) } @list; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Version objects were added to Perl in 5.10. This module implements version +objects for older version of Perl and provides the version object \s-1API\s0 for all +versions of Perl. All previous releases before 0.74 are deprecated and should +not be used due to incompatible \s-1API\s0 changes. Version 0.77 introduces the new +\&'parse' and 'declare' methods to standardize usage. You are strongly urged to +set 0.77 as a minimum in your code, e.g. +.PP +.Vb 1 +\& use version 0.77; # even for Perl v.5.10.0 +.Ve +.SH "TYPES OF VERSION OBJECTS" +.IX Header "TYPES OF VERSION OBJECTS" +There are two different types of version objects, corresponding to the two +different styles of versions in use: +.IP "Decimal Versions" 2 +.IX Item "Decimal Versions" +The classic floating-point number \f(CW$VERSION\fR. The advantage to this style is +that you don't need to do anything special, just type a number into your +source file. Quoting is recommended, as it ensures that trailing zeroes +(\*(L"1.50\*(R") are preserved in any warnings or other output. +.IP "Dotted Decimal Versions" 2 +.IX Item "Dotted Decimal Versions" +The more modern form of version assignment, with 3 (or potentially more) +integers separated by decimal points (e.g. v1.2.3). This is the form that +Perl itself has used since 5.6.0 was released. The leading 'v' is now +strongly recommended for clarity, and will throw a warning in a future +release if omitted. A leading 'v' character is required to pass the +\&\*(L"\fBis_strict()\fR\*(R" test. +.SH "DECLARING VERSIONS" +.IX Header "DECLARING VERSIONS" +If you have a module that uses a decimal \f(CW$VERSION\fR (floating point), and you +do not intend to ever change that, this module is not for you. There is +nothing that version.pm gains you over a simple \f(CW$VERSION\fR assignment: +.PP +.Vb 1 +\& our $VERSION = "1.02"; +.Ve +.PP +Since Perl v5.10.0 includes the version.pm comparison logic anyways, +you don't need to do anything at all. +.SS "How to convert a module from decimal to dotted-decimal" +.IX Subsection "How to convert a module from decimal to dotted-decimal" +If you have used a decimal \f(CW$VERSION\fR in the past and wish to switch to a +dotted-decimal \f(CW$VERSION\fR, then you need to make a one-time conversion to +the new format. +.PP +\&\fBImportant Note\fR: you must ensure that your new \f(CW$VERSION\fR is numerically +greater than your current decimal \f(CW$VERSION\fR; this is not always obvious. First, +convert your old decimal version (e.g. 1.02) to a normalized dotted-decimal +form: +.PP +.Vb 2 +\& $ perl \-Mversion \-e \*(Aqprint version\->parse("1.02")\->normal\*(Aq +\& v1.20.0 +.Ve +.PP +Then increment any of the dotted-decimal components (v1.20.1 or v1.21.0). +.ie n .SS "How to ""declare()"" a dotted-decimal version" +.el .SS "How to \f(CWdeclare()\fP a dotted-decimal version" +.IX Subsection "How to declare() a dotted-decimal version" +.Vb 1 +\& use version; our $VERSION = version\->declare("v1.2.3"); +.Ve +.PP +The \f(CW\*(C`declare()\*(C'\fR method always creates dotted-decimal version objects. When +used in a module, you \fBmust\fR put it on the same line as \*(L"use version\*(R" to +ensure that \f(CW$VERSION\fR is read correctly by \s-1PAUSE\s0 and installer tools. You +should also add 'version' to the 'configure_requires' section of your +module metadata file. See instructions in ExtUtils::MakeMaker or +Module::Build for details. +.PP +\&\fBImportant Note\fR: Even if you pass in what looks like a decimal number +(\*(L"1.2\*(R"), a dotted-decimal will be created (\*(L"v1.200.0\*(R"). To avoid confusion +or unintentional errors on older Perls, follow these guidelines: +.IP "\(bu" 2 +Always use a dotted-decimal with (at least) three components +.IP "\(bu" 2 +Always use a leading-v +.IP "\(bu" 2 +Always quote the version +.PP +If you really insist on using version.pm with an ordinary decimal version, +use \f(CW\*(C`parse()\*(C'\fR instead of declare. See the \*(L"\s-1PARSING AND COMPARING VERSIONS\*(R"\s0 +for details. +.PP +See also version::Internals for more on version number conversion, +quoting, calculated version numbers and declaring developer or \*(L"alpha\*(R" version +numbers. +.SH "PARSING AND COMPARING VERSIONS" +.IX Header "PARSING AND COMPARING VERSIONS" +If you need to compare version numbers, but can't be sure whether they are +expressed as numbers, strings, v\-strings or version objects, then you should +use version.pm to parse them all into objects for comparison. +.ie n .SS "How to ""parse()"" a version" +.el .SS "How to \f(CWparse()\fP a version" +.IX Subsection "How to parse() a version" +The \f(CW\*(C`parse()\*(C'\fR method takes in anything that might be a version and returns +a corresponding version object, doing any necessary conversion along the way. +.IP "\(bu" 2 +Dotted-decimal: bare v\-strings (v1.2.3) and strings with more than one +decimal point and a leading 'v' (\*(L"v1.2.3\*(R"); \s-1NOTE\s0 you can technically use a +v\-string or strings with a leading-v and only one decimal point (v1.2 or +\&\*(L"v1.2\*(R"), but you will confuse both yourself and others. +.IP "\(bu" 2 +Decimal: regular decimal numbers (literal or in a string) +.PP +Some examples: +.PP +.Vb 8 +\& $variable version\->parse($variable) +\& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1.23 v1.230.0 +\& "1.23" v1.230.0 +\& v1.23 v1.23.0 +\& "v1.23" v1.23.0 +\& "1.2.3" v1.2.3 +\& "v1.2.3" v1.2.3 +.Ve +.PP +See version::Internals for more on version number conversion. +.SS "How to check for a legal version string" +.IX Subsection "How to check for a legal version string" +If you do not want to actually create a full blown version object, but +would still like to verify that a given string meets the criteria to +be parsed as a version, there are two helper functions that can be +employed directly: +.ie n .IP """is_lax()""" 4 +.el .IP "\f(CWis_lax()\fR" 4 +.IX Item "is_lax()" +The lax criteria corresponds to what is currently allowed by the +version parser. All of the following formats are acceptable +for dotted-decimal formats strings: +.Sp +.Vb 5 +\& v1.2 +\& 1.2345.6 +\& v1.23_4 +\& 1.2345 +\& 1.2345_01 +.Ve +.ie n .IP """is_strict()""" 4 +.el .IP "\f(CWis_strict()\fR" 4 +.IX Item "is_strict()" +If you want to limit yourself to a much more narrow definition of what +a version string constitutes, \f(CW\*(C`is_strict()\*(C'\fR is limited to version +strings like the following list: +.Sp +.Vb 2 +\& v1.234.5 +\& 2.3456 +.Ve +.PP +See version::Internals for details of the regular expressions +that define the legal version string forms, as well as how to use +those regular expressions in your own code if \f(CW\*(C`is_lax()\*(C'\fR and +\&\f(CW\*(C`is_strict()\*(C'\fR are not sufficient for your needs. +.SS "How to compare version objects" +.IX Subsection "How to compare version objects" +Version objects overload the \f(CW\*(C`cmp\*(C'\fR and \f(CW\*(C`<=>\*(C'\fR operators. Perl +automatically generates all of the other comparison operators based on those +two so all the normal logical comparisons will work. +.PP +.Vb 3 +\& if ( version\->parse($v1) == version\->parse($v2) ) { +\& # do stuff +\& } +.Ve +.PP +If a version object is compared against a non-version object, the non-object +term will be converted to a version object using \f(CW\*(C`parse()\*(C'\fR. This may give +surprising results: +.PP +.Vb 2 +\& $v1 = version\->parse("v0.95.0"); +\& $bool = $v1 < 0.96; # FALSE since 0.96 is v0.960.0 +.Ve +.PP +Always comparing to a version object will help avoid surprises: +.PP +.Vb 1 +\& $bool = $v1 < version\->parse("v0.96.0"); # TRUE +.Ve +.PP +Note that \*(L"alpha\*(R" version objects (where the version string contains +a trailing underscore segment) compare as less than the equivalent +version without an underscore: +.PP +.Vb 1 +\& $bool = version\->parse("1.23_45") < version\->parse("1.2345"); # TRUE +.Ve +.PP +See version::Internals for more details on \*(L"alpha\*(R" versions. +.SH "OBJECT METHODS" +.IX Header "OBJECT METHODS" +.SS "\fBis_alpha()\fP" +.IX Subsection "is_alpha()" +True if and only if the version object was created with a underscore, e.g. +.PP +.Vb 2 +\& version\->parse(\*(Aq1.002_03\*(Aq)\->is_alpha; # TRUE +\& version\->declare(\*(Aq1.2.3_4\*(Aq)\->is_alpha; # TRUE +.Ve +.SS "\fBis_qv()\fP" +.IX Subsection "is_qv()" +True only if the version object is a dotted-decimal version, e.g. +.PP +.Vb 4 +\& version\->parse(\*(Aqv1.2.0\*(Aq)\->is_qv; # TRUE +\& version\->declare(\*(Aqv1.2\*(Aq)\->is_qv; # TRUE +\& qv(\*(Aq1.2\*(Aq)\->is_qv; # TRUE +\& version\->parse(\*(Aq1.2\*(Aq)\->is_qv; # FALSE +.Ve +.SS "\fBnormal()\fP" +.IX Subsection "normal()" +Returns a string with a standard 'normalized' dotted-decimal form with a +leading-v and at least 3 components. +.PP +.Vb 2 +\& version\->declare(\*(Aqv1.2\*(Aq)\->normal; # v1.2.0 +\& version\->parse(\*(Aq1.2\*(Aq)\->normal; # v1.200.0 +.Ve +.SS "\fBnumify()\fP" +.IX Subsection "numify()" +Returns a value representing the object in a pure decimal. +.PP +.Vb 2 +\& version\->declare(\*(Aqv1.2\*(Aq)\->numify; # 1.002000 +\& version\->parse(\*(Aq1.2\*(Aq)\->numify; # 1.200 +.Ve +.SS "\fBstringify()\fP" +.IX Subsection "stringify()" +Returns a string that is as close to the original representation as possible. +If the original representation was a numeric literal, it will be returned the +way perl would normally represent it in a string. This method is used whenever +a version object is interpolated into a string. +.PP +.Vb 3 +\& version\->declare(\*(Aqv1.2\*(Aq)\->stringify; # v1.2 +\& version\->parse(\*(Aq1.200\*(Aq)\->stringify; # 1.2 +\& version\->parse(1.02_30)\->stringify; # 1.023 +.Ve +.SH "EXPORTED FUNCTIONS" +.IX Header "EXPORTED FUNCTIONS" +.SS "\fBqv()\fP" +.IX Subsection "qv()" +This function is no longer recommended for use, but is maintained for +compatibility with existing code. If you do not want to have it exported +to your namespace, use this form: +.PP +.Vb 1 +\& use version 0.77 (); +.Ve +.SS "\fBis_lax()\fP" +.IX Subsection "is_lax()" +(Not exported by default) +.PP +This function takes a scalar argument and returns a boolean value indicating +whether the argument meets the \*(L"lax\*(R" rules for a version number. Leading and +trailing spaces are not allowed. +.SS "\fBis_strict()\fP" +.IX Subsection "is_strict()" +(Not exported by default) +.PP +This function takes a scalar argument and returns a boolean value indicating +whether the argument meets the \*(L"strict\*(R" rules for a version number. Leading +and trailing spaces are not allowed. +.SH "AUTHOR" +.IX Header "AUTHOR" +John Peacock +.SH "SEE ALSO" +.IX Header "SEE ALSO" +version::Internals. +.PP +perl. diff --git a/data/miniconda3/man/man3/vmsish.3 b/data/miniconda3/man/man3/vmsish.3 new file mode 100644 index 0000000000000000000000000000000000000000..caa6b253d93702d6035c7d5d903949099cd147fd --- /dev/null +++ b/data/miniconda3/man/man3/vmsish.3 @@ -0,0 +1,243 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "vmsish 3" +.TH vmsish 3 "2020-12-18" "perl v5.32.1" "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" +vmsish \- Perl pragma to control VMS\-specific language features +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use vmsish; +\& +\& use vmsish \*(Aqstatus\*(Aq; # or \*(Aq$?\*(Aq +\& use vmsish \*(Aqexit\*(Aq; +\& use vmsish \*(Aqtime\*(Aq; +\& +\& use vmsish \*(Aqhushed\*(Aq; +\& no vmsish \*(Aqhushed\*(Aq; +\& vmsish::hushed($hush); +\& +\& use vmsish; +\& no vmsish \*(Aqtime\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +If no import list is supplied, all possible VMS-specific features are +assumed. Currently, there are four VMS-specific features available: +\&'status' (a.k.a '$?'), 'exit', 'time' and 'hushed'. +.PP +If you're not running \s-1VMS,\s0 this module does nothing. +.ie n .IP """vmsish status""" 6 +.el .IP "\f(CWvmsish status\fR" 6 +.IX Item "vmsish status" +This makes \f(CW$?\fR and \f(CW\*(C`system\*(C'\fR return the native \s-1VMS\s0 exit status +instead of emulating the \s-1POSIX\s0 exit status. +.ie n .IP """vmsish exit""" 6 +.el .IP "\f(CWvmsish exit\fR" 6 +.IX Item "vmsish exit" +This makes \f(CW\*(C`exit 1\*(C'\fR produce a successful exit (with status \s-1SS$_NORMAL\s0), +instead of emulating \s-1UNIX\s0 \fBexit()\fR, which considers \f(CW\*(C`exit 1\*(C'\fR to indicate +an error. As with the \s-1CRTL\s0's \fBexit()\fR function, \f(CW\*(C`exit 0\*(C'\fR is also mapped +to an exit status of \s-1SS$_NORMAL,\s0 and any other argument to \fBexit()\fR is +used directly as Perl's exit status. +.ie n .IP """vmsish time""" 6 +.el .IP "\f(CWvmsish time\fR" 6 +.IX Item "vmsish time" +This makes all times relative to the local time zone, instead of the +default of Universal Time (a.k.a Greenwich Mean Time, or \s-1GMT\s0). +.ie n .IP """vmsish hushed""" 6 +.el .IP "\f(CWvmsish hushed\fR" 6 +.IX Item "vmsish hushed" +This suppresses printing of \s-1VMS\s0 status messages to \s-1SYS$OUTPUT\s0 and +\&\s-1SYS$ERROR\s0 if Perl terminates with an error status, and allows +programs that are expecting \*(L"unix-style\*(R" Perl to avoid having to parse +\&\s-1VMS\s0 error messages. It does not suppress any messages from Perl +itself, just the messages generated by \s-1DCL\s0 after Perl exits. The \s-1DCL\s0 +symbol \f(CW$STATUS\fR will still have the termination status, but with a +high-order bit set: +.Sp +\&\s-1EXAMPLE:\s0 + $ perl \-e\*(L"exit 44;\*(R" Non-hushed error exit + \f(CW%SYSTEM\fR\-F\-ABORT, abort \s-1DCL\s0 message + $ show sym \f(CW$STATUS\fR + \f(CW$STATUS\fR == \*(L"%X0000002C\*(R" +.Sp +.Vb 3 +\& $ perl \-e"use vmsish qw(hushed); exit 44;" Hushed error exit +\& $ show sym $STATUS +\& $STATUS == "%X1000002C" +.Ve +.Sp +The 'hushed' flag has a global scope during compilation: the \fBexit()\fR or +\&\fBdie()\fR commands that are compiled after 'vmsish hushed' will be hushed +when they are executed. Doing a \*(L"no vmsish 'hushed'\*(R" turns off the +hushed flag. +.Sp +The status of the hushed flag also affects output of \s-1VMS\s0 error +messages from compilation errors. Again, you still get the Perl +error message (and the code in \f(CW$STATUS\fR) +.Sp +\&\s-1EXAMPLE:\s0 + use vmsish 'hushed'; # turn on hushed flag + use Carp; # Carp compiled hushed + exit 44; # will be hushed + croak('I die'); # will be hushed + no vmsish 'hushed'; # turn off hushed flag + exit 44; # will not be hushed + croak('I die2'): # \s-1WILL\s0 be hushed, croak was compiled hushed +.Sp +You can also control the 'hushed' flag at run-time, using the built-in +routine \fBvmsish::hushed()\fR. Without argument, it returns the hushed status. +Since vmsish::hushed is built-in, you do not need to \*(L"use vmsish\*(R" to call +it. +.Sp +\&\s-1EXAMPLE:\s0 + if ($quiet_exit) { + \fBvmsish::hushed\fR\|(1); + } + print \*(L"Sssshhhh...I'm hushed...\en\*(R" if \fBvmsish::hushed()\fR; + exit 44; +.Sp +Note that an \fBexit()\fR or \fBdie()\fR that is compiled 'hushed' because of \*(L"use +vmsish\*(R" is not un-hushed by calling \fBvmsish::hushed\fR\|(0) at runtime. +.Sp +The messages from error exits from inside the Perl core are generally +more serious, and are not suppressed. +.PP +See \*(L"Perl Modules\*(R" in perlmod. diff --git a/data/miniconda3/man/man3/warnings%3A%3Aregister.3 b/data/miniconda3/man/man3/warnings%3A%3Aregister.3 new file mode 100644 index 0000000000000000000000000000000000000000..09ee6b6f229e3f83fd74218cb0fda3839a28e30c --- /dev/null +++ b/data/miniconda3/man/man3/warnings%3A%3Aregister.3 @@ -0,0 +1,152 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" 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 +.\" +.\" 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 "warnings::register 3" +.TH warnings::register 3 "2020-12-18" "perl v5.32.1" "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" +warnings::register \- warnings import function +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use warnings::register; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Creates a warnings category with the same name as the current package. +.PP +See warnings for more information on this module's usage.