summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-02-21 18:55:37 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-02-21 18:55:37 +0000
commite8a44d0f80cd5679558cebbf0012c4fc47ef47d4 (patch)
treec416588aa3ba032eb0884f984cb08ad3e31c6042 /pod
parent7785e8ca27b8f45b060365dba674f3d5a297bc06 (diff)
parenta0acbdc36d211b2eba42328df555d9ec49fa4cd4 (diff)
downloadperl-e8a44d0f80cd5679558cebbf0012c4fc47ef47d4.tar.gz
Integrate mainline
p4raw-id: //depot/perlio@8878
Diffstat (limited to 'pod')
-rw-r--r--pod/perlapi.pod26
-rw-r--r--pod/perlfaq9.pod6
-rw-r--r--pod/perlguts.pod3
-rw-r--r--pod/perlop.pod26
-rw-r--r--pod/perlport.pod11
5 files changed, 49 insertions, 23 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index aa50fbdf36..7b6ad4a621 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -1035,9 +1035,10 @@ Found in file handy.h
=item is_utf8_char
-Tests if some arbitrary number of bytes begins in a valid UTF-8 character.
-The actual number of bytes in the UTF-8 character will be returned if it
-is valid, otherwise 0.
+Tests if some arbitrary number of bytes begins in a valid UTF-8
+character. Note that an ASCII character is a valid UTF-8 character.
+The actual number of bytes in the UTF-8 character will be returned if
+it is valid, otherwise 0.
STRLEN is_utf8_char(U8 *p)
@@ -1046,8 +1047,10 @@ Found in file utf8.c
=item is_utf8_string
-Returns true if first C<len> bytes of the given string form valid a UTF8
-string, false otherwise.
+Returns true if first C<len> bytes of the given string form a valid UTF8
+string, false otherwise. Note that 'a valid UTF8 string' does not mean
+'a string that contains UTF8' because a valid ASCII string is a valid
+UTF8 string.
bool is_utf8_string(U8 *s, STRLEN len)
@@ -3008,6 +3011,19 @@ Note that C<sv_setref_pv> copies the pointer while this copies the string.
=for hackers
Found in file sv.c
+=item sv_setref_uv
+
+Copies an unsigned integer into a new SV, optionally blessing the SV. The C<rv>
+argument will be upgraded to an RV. That RV will be modified to point to
+the new SV. The C<classname> argument indicates the package for the
+blessing. Set C<classname> to C<Nullch> to avoid the blessing. The new SV
+will be returned and will have a reference count of 1.
+
+ SV* sv_setref_uv(SV* rv, const char* classname, UV uv)
+
+=for hackers
+Found in file sv.c
+
=item sv_setsv
Copies the contents of the source SV C<ssv> into the destination SV C<dsv>.
diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod
index c4f4302dc6..d234cf43a9 100644
--- a/pod/perlfaq9.pod
+++ b/pod/perlfaq9.pod
@@ -352,10 +352,10 @@ deliverable which are compliant.
Many are tempted to try to eliminate many frequently-invalid
mail addresses with a simple regex, such as
-C</^[\w.-]+\@([\w.-]+\.)+\w+$/>. It's a very bad idea. However,
+C</^[\w.-]+\@(?:[\w-]+\.)+\w+$/>. It's a very bad idea. However,
this also throws out many valid ones, and says nothing about
-potential deliverability, so is not suggested. Instead, see
-http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/ckaddr.gz ,
+potential deliverability, so it is not suggested. Instead, see
+http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/ckaddr.gz,
which actually checks against the full RFC spec (except for nested
comments), looks for addresses you may not wish to accept mail to
(say, Bill Clinton or your postmaster), and then makes sure that the
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 54d071596a..557dbaf306 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -530,10 +530,11 @@ class. SV is returned.
SV* newSVrv(SV* rv, const char* classname);
-Copies integer or double into an SV whose reference is C<rv>. SV is blessed
+Copies integer, unsigned integer or double into an SV whose reference is C<rv>. SV is blessed
if C<classname> is non-null.
SV* sv_setref_iv(SV* rv, const char* classname, IV iv);
+ SV* sv_setref_uv(SV* rv, const char* classname, UV uv);
SV* sv_setref_nv(SV* rv, const char* classname, NV iv);
Copies the pointer value (I<the address, not the string!>) into an SV whose
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 9d67cfe238..d4349aeff7 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -1578,19 +1578,19 @@ There are several I/O operators you should know about.
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
-pseudo-literal, j
-string consisting of all output is returned. In list context, a
-list of values is returned, one per line of output. (You can set
-C<$/> 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 C<$?> (see L<perlvar> for the interpretation
-of C<$?>). Unlike in B<csh>, 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 C<qx//>.
-(Because backticks always undergo shell expansion as well, see
-L<perlsec> for security concerns.)
+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 C<$/> 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 C<$?> (see L<perlvar> for the interpretation of C<$?>).
+Unlike in B<csh>, 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 C<qx//>. (Because
+backticks always undergo shell expansion as well, see L<perlsec> for
+security concerns.)
In scalar context, evaluating a filehandle in angle brackets yields
the next line from that file (the newline, if any, included), or
diff --git a/pod/perlport.pod b/pod/perlport.pod
index de2d855ff3..457584c0cb 100644
--- a/pod/perlport.pod
+++ b/pod/perlport.pod
@@ -675,6 +675,15 @@ DOSish perls are as follows:
Windows NT MSWin32 MSWin32-ppc
Cygwin cygwin
+The various MSWin32 Perl's can distinguish the OS they are running on
+via the value of the fifth element of the list returned from
+Win32::GetOSVersion(). For example:
+
+ if ($^O eq 'MSWin32') {
+ my @os_version_info = Win32::GetOSVersion();
+ print +('3.1','95','NT')[$os_version_info[4]],"\n";
+ }
+
Also see:
=over 4
@@ -1225,7 +1234,7 @@ Be OS, F<README.beos>
=item *
HP 300 MPE/iX, F<README.mpeix> and Mark Bixby's web page
-http://www.cccd.edu/~markb/perlix.html
+http://www.bixby.org/mark/perlix.html
=item *