Templat...:Scalar(3)

🌸 NAME 🌸

Okay bestie, welcome to the Templat...:Scalar(3) page β€” it's a User Contributed Perl Documentation moment, and the main character is Template::Plugin::Scalar: it's literally here to call object methods in scalar context. No cap. πŸ’…

✨ SYNOPSIS ✨

[% USE scalar %]

# TT2 calls object methods in array context by default
[% object.method %]

# force it to use scalar context
[% object.scalar.method %]

# also works with subroutine references
[% scalar.my_sub_ref %]

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: The Template Toolkit calls user-defined subroutines and object methods using Perl's array context by default. This plugin module provides a way for you to call subroutines and methods in scalar context. That's it, that's the whole serve. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

The icon behind this is Andy Wardley <abw@wardley.org> <http://wardley.org/>. Obsessed. πŸ’…

Copyright (C) 2008-2022 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Periodt. πŸŽ€

πŸ¦‹ SEE ALSO πŸ¦‹

Template::Plugin β€” go give it a lil visit, iykyk. πŸ¦‹


That's the whole page, bestie! This one comes from perl v5.42.0, dated 2024-06-23, and the manual name is Templat...:Scalar(3). Bye! πŸ’–βœ¨

πŸ“¦ where this page comes from