Hmm
http://perl5.git.perl.org/perl.git?a=search&h=blead&st=grep&s=LVRET
#define LVRET ((PL_op->op_private & OPpMAYBE_LVSUB) && is_lvalue_sub() +)
http://perl5.git.perl.org/perl.git?a=search&h=blead&st=grep&s=is_lvalue_sub
I32 1397 Perl_is_lvalue_sub(pTHX) 1398 { 1399 dVAR; 1400 const I32 cxix = dopoptosub(cxstack_ix); 1401 assert(cxix >= 0); /* We should only be called from inside s +ubs */ 1402 1403 if (CxLVAL(cxstack + cxix) && CvLVALUE(cxstack[cxix].blk_sub. +cv)) 1404 return CxLVAL(cxstack + cxix); 1405 else 1406 return 0; 1407 }
http://perl5.git.perl.org/perl.git?a=search&h=blead&st=grep&s=CxLVAL

http://perl5.git.perl.org/perl.git?a=search&h=blead&st=grep&s=CvLVALUE

CvLVALUE site:cpansearch.perl.org

CxLVAL site:cpansearch.perl.org

CvLVALUE_on maybe?

In reply to Re^3: lvalue XS subs by Anonymous Monk
in thread lvalue XS subs by ikegami

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.