From 40ecb271cd82f320753f4593b8e902b1a6a4b2ed Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 22 Jul 2013 19:43:51 -0400 Subject: allow creating non-anonymous subs too this makes a difference in some obscure cases dealing with closures. see t/unavailable.t for more information. --- lib/Parse/Keyword.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib') 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 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, -L, L, L, -L, L, L, and -L 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 in this distribution). See +L, L, L, +L, L, L, +L, and L for more details. =func compiling_package -- cgit v1.2.3-54-g00ecf