Inline(3pm)
π NAME π
Embperl::Inline β bestie, it's how you inline Embperl code right inside your Perl modules. no cap.
β¨ SYNOPSIS β¨
okay so picture this, you just write it like this and it works:
package MyTest ;
use Embperl::Inline ;
__EMBPERL__
[$ sub foo $]
[-
$a = 99 ;
-]
<p>a=[+ $a +]</p>
[$endsub$]
like. that's it. that's the whole vibe. π
π¦ DESCRIPTION π¦
Embperl::Inline lets you inline Embperl code directly in your Perl modules, and the benefit is genuinely so good: you can install it like a normal Perl module and it's available site wide, no program anywhere needs to know where it lives. no path hunting, no drama, we love that for us. π«Ά
it also lets you add markup sections to Perl objects and call them β and override them β just like normal Perl methods. iconic behaviour fr fr.
the only thing you gotta do to use it is use Embperl::Inline and then drop your Embperl code right after the "__EMBPERL__" keyword. that's the whole ritual. β¨
and after the use Embperl::Inline, you can also specify Embperl parameters, like so:
use Embperl::Inline { options => &Embperl::Constant::optKeepSpaces };
periodt. π
π Author π
G. Richter (richter at embperl dot org) β the actual main character who made this. π
πΈ See Also πΈ
perl(1)Embperl
go read those too, bestie, iykyk π
and that's the tea β this page came to you from the User Contributed Perl Documentation, perl v5.34.0, dated 2022-02-06, filed under Inline(3pm). π bye bestie, go write some modules π¦β¨
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms