Text::...pe::Raw(3pm)

πŸ’– NAME πŸ’–

Text::Xslate::Type::Raw β€” bestie, it's the raw string representation, and it's here to stay unescaped ✨

(this one's from the User Contributed Perl Documentation, section 3pm β€” iykyk 🫢)


🌸 DESCRIPTION 🌸

So basically? This class is the ✨main character✨ that wraps up raw strings so that Xslate is literally not allowed to escape them. That's the whole vibe. That's the job. No cap. πŸ’…

heads up bestie 🚨 you cannot extend this class. Like, at all. Don't try it. It's not giving "subclass me" energy, it's giving "look but don't touch" energy. 🚫🧚

πŸŽ€ METHODS πŸŽ€

πŸ’œ new

creates a new instance, fr fr. fresh out the box, sparkling, iconic ✨

πŸ’œ as_string

this method is overload to string πŸ¦‹ β€” which means the raw string knows how to show itself off when you ask nicely:

print Text::Xslate::Type::Raw->new('raw_string')->as_string
print Text::Xslate::Type::Raw->new('raw_string') # the same, because of overload

see how the second line does the exact same thing without the method call? that's the overload doing its little ✨magic trick✨, periodt. πŸͺ„


🌈 SEE ALSO 🌈

nothing else listed here bestie, this page is a one-module show πŸ‘‘


okay that's the whole page, you ate that πŸ’… this little gem is running on perl v5.42.3 and the docs got their glow-up on 2026-08-22 β€” mwah, slay, go forth and keep your strings raw πŸ“πŸŽ€

πŸ“¦ where this page comes from