diff options
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 13 | ||||
-rw-r--r-- | pod/perlfunc.pod | 15 | ||||
-rw-r--r-- | pod/perlop.pod | 3 | ||||
-rw-r--r-- | pod/perlre.pod | 1 | ||||
-rw-r--r-- | pod/perlrun.pod | 8 | ||||
-rw-r--r-- | pod/perlxs.pod | 21 |
6 files changed, 47 insertions, 14 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 130bc8dca2..38edda1982 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -133,6 +133,10 @@ which provides a race condition that breaks security. (F) Perl can't peek at the stdio buffer of filehandles when it doesn't know about your kind of stdio. You'll have to use a filename instead. +=item 500 Server error + +See Server error. + =item ?+* follows nothing in regexp (F) You started a regular expression with a quantifier. Backslash it @@ -1751,6 +1755,15 @@ but has not yet been written. See L<perlre>. (F) You used a regular expression extension that doesn't make sense. See L<perlre>. +=item Server error + +Also known as "500 Server error". This is a CGI error, not a Perl +error. You need to make sure your script is executable, is accessible +by the user CGI is running the script under (which is probably not +the user account you tested it under), does not rely on any environment +variables (like PATH) from the user it isn't running under, and isn't +in a location where the CGI server can't find it, basically, more or less. + =item setegid() not implemented (F) You tried to assign to $), and your operating system doesn't support diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 7017c8f5df..6b312536b4 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -628,6 +628,21 @@ Examples: See also undef(). +Note: many folks tend to overuse defined(), and then are surprised to +discover that the number 0 and the null string are, in fact, defined +concepts. For example, if you say + + "ab" =~ /a(.*)b/; + +the pattern match succeeds, and $1 is defined, despite the fact that it +matched "nothing". But it didn't really match nothing--rather, it +matched something that happened to be 0 characters long. This is all +very above-board and honest. When a function returns an undefined value, +it's an admission that it couldn't give you an honest answer. So +you should only use defined() when you're questioning the integrity +of what you're trying to do. At other times, a simple comparison to +0 or "" is what you want. + =item delete EXPR Deletes the specified value from its hash array. Returns the deleted diff --git a/pod/perlop.pod b/pod/perlop.pod index d96afc55a2..810cff324d 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -32,7 +32,7 @@ operate on scalar values only, not array values. right = += -= *= etc. left , => nonassoc list operators (rightward) - left not + right not left and left or xor @@ -562,7 +562,6 @@ are interpolated, as are the following sequences: \n newline \r return \f form feed - \v vertical tab, whatever that is \b backspace \a alarm (bell) \e escape diff --git a/pod/perlre.pod b/pod/perlre.pod index 1c7855c041..41a3d5ff8f 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -104,7 +104,6 @@ also work: \n newline \r return \f form feed - \v vertical tab, whatever that is \a alarm (bell) \e escape (think troff) \033 octal char (think of a PDP-11) diff --git a/pod/perlrun.pod b/pod/perlrun.pod index fe8a154c39..7169515c54 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -260,11 +260,19 @@ C<-M>I<module> executes C<use> I<module> C<;> before executing your script. You can use quotes to add extra code after the module name, e.g., C<-M'module qw(foo bar)'>. +If the first character after the C<-M> or C<-m> is a dash (C<->) +then the 'use' is replaced with 'no'. + A little built-in syntactic sugar means you can also say C<-mmodule=foo> or C<-Mmodule=foo> as a shortcut for C<-M'module qw(foo)'>. Note that using the C<=> form removes the distinction between C<-m> and C<-M>. +To avoid the need to use quotes when importing more that one symbol +with the C<=> form, the text following the C<=> is split into a list +on commas (C<,>) rather than whitespace. The actual code generated +by C<-Mmodule=foo,bar> is C<use module split(/,/,q{foo,bar})>. + =item B<-n> causes Perl to assume the following loop around your script, which diff --git a/pod/perlxs.pod b/pod/perlxs.pod index 0c376047ba..5e7699b0d5 100644 --- a/pod/perlxs.pod +++ b/pod/perlxs.pod @@ -27,12 +27,11 @@ See L<perlxstut> for a tutorial on the whole extension creation process. =head2 On The Road -Many of the examples which follow will concentrate on creating an -interface between Perl and the ONC+ RPC bind library functions. -Specifically, the rpcb_gettime() function will be used to demonstrate many -features of the XS language. This function has two parameters; the first -is an input parameter and the second is an output parameter. The function -also returns a status value. +Many of the examples which follow will concentrate on creating an interface +between Perl and the ONC+ RPC bind library functions. The rpcb_gettime() +function is used to demonstrate many features of the XS language. This +function has two parameters; the first is an input parameter and the second +is an output parameter. The function also returns a status value. bool_t rpcb_gettime(const char *host, time_t *timep); @@ -845,10 +844,10 @@ the function will be called using the THIS->method() syntax. The next examples will use the following C++ class. - class colors { + class color { public: - colors(); - ~colors(); + color(); + ~color(); int blue(); void set_blue( int ); @@ -1115,9 +1114,9 @@ File C<rpctest.pl>: Perl test program for the RPC extension. =head1 XS VERSION -This document covers features supported by C<xsubpp> 1.931. +This document covers features supported by C<xsubpp> 1.933. =head1 AUTHOR Dean Roehrich F<E<lt>roehrich@cray.comE<gt>> -Jan 25, 1996 +Feb 13, 1996 |