diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:00:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:00:08 +0000 |
commit | 88d7a19bf96d2396483f674c643f50b1079d8cda (patch) | |
tree | 16bad372bee98d0e72f3642890dca0824c2b21cd /pod | |
parent | 02e93a22d20fc9a528c7ba76d142151f565790cd (diff) | |
parent | 1189a94a32ae3258f75f6b7571b7a68e694d4ffe (diff) | |
download | perl-88d7a19bf96d2396483f674c643f50b1079d8cda.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4140
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldata.pod | 27 | ||||
-rw-r--r-- | pod/perldelta.pod | 5 | ||||
-rw-r--r-- | pod/perldiag.pod | 5 | ||||
-rw-r--r-- | pod/perlfunc.pod | 7 | ||||
-rw-r--r-- | pod/perlguts.pod | 12 | ||||
-rw-r--r-- | pod/perllexwarn.pod | 4 |
6 files changed, 46 insertions, 14 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index f4c660d622..067c6d9bd5 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -327,15 +327,24 @@ The special literals __FILE__, __LINE__, and __PACKAGE__ represent the current filename, line number, and package name at that point in your program. They may be used only as separate tokens; they will not be interpolated into strings. If there is no current package -(due to an empty C<package;> directive), __PACKAGE__ is the undefined value. - -The tokens __END__ and __DATA__ may be used to indicate the logical -end of the script before the actual end of file. Any following -text is ignored, but may be read via a DATA filehandle: main::DATA -for __END__, or PACKNAME::DATA (where PACKNAME is the current -package) for __DATA__. The two control characters ^D and ^Z are -synonyms for __END__ in the main program, __DATA__ in a separate -module. See L<SelfLoader> for more description of __DATA__, and +(due to an empty C<package;> directive), __PACKAGE__ is the undefined +value. + +The two control characters ^D and ^Z, and the tokens __END__ and __DATA__ +may be used to indicate the logical end of the script before the actual +end of file. Any following text is ignored. + +Text after __DATA__ but may be read via the filehandle C<PACKNAME::DATA>, +where C<PACKNAME> is the package that was current when the __DATA__ +token was encountered. The filehandle is left open pointing to the +contents after __DATA__. It is the program's responsibility to +C<close DATA> when it is done reading from it. For compatibility with +older scripts written before __DATA__ was introduced, __END__ behaves +like __DATA__ in the toplevel script (but not in files loaded with +C<require> or C<do>) and leaves the remaining contents of the +file accessible via C<main::DATA>. + +See L<SelfLoader> for more description of __DATA__, and an example of its use. Note that you cannot read from the DATA filehandle in a BEGIN block: the BEGIN block is executed as soon as it is seen (during compilation), at which point the corresponding diff --git a/pod/perldelta.pod b/pod/perldelta.pod index bfd071a59b..f77ab5d9b4 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -709,6 +709,11 @@ elements of a subroutine attribute list. If the previous attribute had a parenthesised parameter list, perhaps that list was terminated too soon. +=item Possible Y2K bug: %s + +(W) You are concatenating the number 19 with another number, which +could be a potential Year 2000 problem. + =item Unterminated attribute parameter in subroutine attribute list (F) The lexer saw an opening (left) parenthesis character while parsing a diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 6147d2a41c..3ad973144a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2360,6 +2360,11 @@ perspective, it's probably not what you intended. (F) Your C compiler uses POSIX getpgrp(), which takes no argument, unlike the BSD version, which takes a pid. +=item Possible Y2K bug: %s + +(W) You are concatenating the number 19 with another number, which +could be a potential Year 2000 problem. + =item Possible attempt to put comments in qw() list (W) qw() lists contain items separated by whitespace; as with literal diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 0d47260e10..995a671110 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4120,6 +4120,13 @@ If C<use locale> is in effect, the character used for the decimal point in formatted real numbers is affected by the LC_NUMERIC locale. See L<perllocale>. +To cope with broken systems that allow the standard locales to be +overridden by malicious users, the return value may be tainted +if any of the floating point formats are used and the conversion +yields something that doesn't look like a normal C-locale floating +point number. This happens regardless of whether C<use locale> is +in effect or not. + If Perl understands "quads" (64-bit integers) (this requires either that the platform natively supports quads or that Perl has been specifically compiled to support quads), the characters diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 93d4bd70c4..af12297ec3 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -3649,24 +3649,26 @@ Like C<sv_usepvn>, but also handles 'set' magic. void sv_usepvn_mg (SV* sv, char* ptr, STRLEN len) -=item sv_vcatpvfn(sv, pat, patlen, args, svargs, svmax, used_locale) +=item sv_vcatpvfn Processes its arguments like C<vsprintf> and appends the formatted output to an SV. Uses an array of SVs if the C style variable argument list is -missing (NULL). Indicates if locale information has been used for formatting. +missing (NULL). When running with taint checks enabled, indicates via +C<maybe_tainted> if results are untrustworthy (often due to the use of +locales). void sv_catpvfn (SV* sv, const char* pat, STRLEN patlen, va_list *args, SV **svargs, I32 svmax, - bool *used_locale); + bool *maybe_tainted); -=item sv_vsetpvfn(sv, pat, patlen, args, svargs, svmax, used_locale) +=item sv_vsetpvfn Works like C<vcatpvfn> but copies the text into the SV instead of appending it. void sv_setpvfn (SV* sv, const char* pat, STRLEN patlen, va_list *args, SV **svargs, I32 svmax, - bool *used_locale); + bool *maybe_tainted); =item SvUV diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod index 8dbae0ddbc..32fc21084e 100644 --- a/pod/perllexwarn.pod +++ b/pod/perllexwarn.pod @@ -313,6 +313,10 @@ produce a fatal error. The experimental features need bottomed out. + perldiag.pod + Need to add warning class information and notes on + how to use the class info with the warnings pragma. + perl5db.pl The debugger saves and restores C<$^W> at runtime. I haven't checked whether the debugger will still work with the lexical warnings |