Inline(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– 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 🌸

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