diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-22 19:43:51 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-22 19:48:11 -0400 |
commit | 40ecb271cd82f320753f4593b8e902b1a6a4b2ed (patch) | |
tree | 63f93194d54bd08b47fbffec5adfb988d0a35d31 /lib | |
parent | 2888936658f395416cb183aa8a5f24e6e3ea585c (diff) | |
download | parse-keyword-40ecb271cd82f320753f4593b8e902b1a6a4b2ed.tar.gz parse-keyword-40ecb271cd82f320753f4593b8e902b1a6a4b2ed.zip |
allow creating non-anonymous subs too
this makes a difference in some obscure cases dealing with closures. see
t/unavailable.t for more information.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Parse/Keyword.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Parse/Keyword.pm b/lib/Parse/Keyword.pm index f459937..1c270de 100644 --- a/lib/Parse/Keyword.pm +++ b/lib/Parse/Keyword.pm @@ -105,10 +105,14 @@ reverse order. See L<perlapi/lex_stuff_sv> for more information. parse_fullexpr, parse_listexpr, parse_termexpr, parse_arithexpr These functions parse the specified amount of Perl code, and return a coderef -which will evaluate that code when executed. See L<perlapi/parse_block>, -L<perlapi/parse_stmtseq>, L<perlapi/parse_fullstmt>, L<perlapi/parse_barestmt>, -L<perlapi/parse_fullexpr>, L<parse_listexpr>, L<parse_termexpr>, and -L<perlapi/parse_arithexpr> for more details. +which will evaluate that code when executed. They each take an optional boolean +parameter that should be true if you are creating a subroutine which will be +going in the symbol table, or in other more obscure situations involving +closures (the CVf_ANON flag will be set on the created coderef if this is not +passed - see C<t/unavailable.t> in this distribution). See +L<perlapi/parse_block>, L<perlapi/parse_stmtseq>, L<perlapi/parse_fullstmt>, +L<perlapi/parse_barestmt>, L<perlapi/parse_fullexpr>, L<parse_listexpr>, +L<parse_termexpr>, and L<perlapi/parse_arithexpr> for more details. =func compiling_package |