diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-18 17:57:11 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-18 17:57:11 -0800 |
commit | 2836693588eb28b4707239cc6f6c72b3c54749ad (patch) | |
tree | 0ff90399b1f507319d5f903b898f77d61900b4da /sv.c | |
parent | dd14f06c60285679a484c83c08394ed432babee1 (diff) | |
download | perl-2836693588eb28b4707239cc6f6c72b3c54749ad.tar.gz |
Tweaks to find_uninit_var docs
• Typos
• Double space after fullstop, as that is how nroff renders
a fullstop at the end of a line in mid-paragraph.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13833,12 +13833,12 @@ S_varname(pTHX_ const GV *const gv, const char gvtype, PADOFFSET targ, /* =for apidoc find_uninit_var -Find the name of the undefined variable (if any) that caused the operator o +Find the name of the undefined variable (if any) that caused the operator to issue a "Use of uninitialized value" warning. -If match is true, only return a name if it's value matches uninit_sv. +If match is true, only return a name if its value matches uninit_sv. So roughly speaking, if a unary operator (such as OP_COS) generates a warning, then following the direct child of the op may yield an -OP_PADSV or OP_GV that gives the name of the undefined variable. On the +OP_PADSV or OP_GV that gives the name of the undefined variable. On the other hand, with OP_ADD there are two branches to follow, so we only print the variable name if we get an exact match. |