From: Rafael Garcia-Suarez Date: Thu, 22 Dec 2005 10:32:17 +0000 (+0000) Subject: Regenerate perlapi.pod. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9f435386c83a4cc6da710aa79ee7eb835c76e1f6;p=p5sagit%2Fp5-mst-13.2.git Regenerate perlapi.pod. Fix indentation of code examples in perlsyn. p4raw-id: //depot/perl@26443 --- diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 2931da4..e3dac62 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -1119,6 +1119,19 @@ Return the SV from the GV. =for hackers Found in file gv.h +=item gv_const_sv +X + +If C is a typeglob whose subroutine entry is a constant sub eligible for +inlining, or C is a placeholder reference that would be promoted to such +a typeglob, then returns the value returned by the sub. Otherwise, returns +NULL. + + SV* gv_const_sv(GV* gv) + +=for hackers +Found in file gv.c + =item gv_fetchmeth X @@ -4554,6 +4567,7 @@ X Using various gambits, try to get a CV from an SV; in addition, try if possible to set C<*st> and C<*gvp> to the stash and GV associated with it. +The flags in C are passed to sv_fetchsv. CV* sv_2cv(SV* sv, HV** st, GV** gvp, I32 lref) diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 31b919e..3e78c7b 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -516,7 +516,7 @@ This construct is very flexible and powerful. For example: when (undef) { say '$foo is undefined'; } - + when ("foo") { say '$foo is the string "foo"'; } @@ -524,8 +524,8 @@ This construct is very flexible and powerful. For example: when ([1,3,5,7,9]) { say '$foo is an odd digit'; continue; # Fall through - } - + } + when ($_ < 100) { say '$foo is numerically less than 100'; } @@ -533,7 +533,7 @@ This construct is very flexible and powerful. For example: when (\&complicated_check) { say 'complicated_check($foo) is true'; } - + default { die q(I don't know what to do with $foo); }