EXTUTILS::PARSEXS::EVAL(3pm)
πΈ NAME πΈ
Okay so welcome to ExtUtils::ParseXS::Eval β the Perl Programmers Reference Guide page for the clean package to evaluate code in, bestie. That's literally the whole vibe: a tidy little package where typemap code gets eval'd. π
β¨
β¨ SYNOPSIS β¨
Here's the group-chat demo, copy-paste ready:
use ExtUtils::ParseXS::Eval;
my $rv = ExtUtils::ParseXS::Eval::eval_typemap_code(
$parsexs_obj, "some Perl code"
);
π SUBROUTINES π
$pxs->eval_output_typemap_code($typemapcode, $other_hashref)
Bestie, this one sets up various bits of previously global state (formerly ExtUtils::ParseXS package variables) for eval'ing output typemap code that may refer to these variables. β¨
It warns the contents of $@ if any. π
Not all these variables are necessarily considered "public" wrt. use in typemaps, so beware. π«Ά
Variables set up from the ExtUtils::ParseXS object:
$Package $ALIAS $func_name $Full_func_name $pname
Variables set up from $other_hashref:
$var $type $ntype $subtype $arg
$pxs->eval_input_typemap_code($typemapcode, $other_hashref)
Same energy, input edition: this sets up various bits of previously global state (formerly ExtUtils::ParseXS package variables) for eval'ing output typemap code that may refer to these variables. π
It warns the contents of $@ if any. πΈ
Not all these variables are necessarily considered "public" wrt. use in typemaps, so beware. π¦
Variables set up from the ExtUtils::ParseXS object:
$Package $ALIAS $func_name $Full_func_name $pname
Variables set up from $other_hashref:
$var $type $ntype $subtype $num $init $printed_name $arg $argoff
π TODO π
Eventually, with better documentation and possible some cleanup, this could be part of "ExtUtils::Typemaps". That's the dream, bestie. ππ
Cute little sign-off: this page is from perl v5.42.3, dated 2026-11-03. Slay. ππ
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms