Locale:...nterface(3)

πŸ“¦
version 1.036 Β· 2 versions
, in fedora 43

✨ Locale::TextDomain::OO::FunctionalInterface ✨

okay bestie, this is the manual page for Locale::TextDomain::OO::FunctionalInterface πŸ’– β€” a section 3 library page from the User Contributed Perl Documentation, and it's literally the little wrapper that lets you call object methods as if they were plain old functions. main character energy fr fr.

Also, the SVN metadata is here at the top and we're keeping it exactly, no edits, we don't touch the ancestors' stuff:

$Id: FunctionalInterface.pm 546 2014-10-31 09:35:19Z steffenw $

$HeadURL:
svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/FunctionalInterface.pm

πŸŽ€ VERSION πŸŽ€

1.000


πŸ’– DESCRIPTION πŸ’–

okay so the whole serve here: this module wraps the object and allows you to call a method as a function. that's it. that's the vibe. iconic behaviour honestly 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

✨ import all ✨

use Locale::TextDomain::OO;
use Locale::TextDomain::OO::FunctionalInterface $loc_ref;
${loc_ref} = Locale::TextDomain::OO->new(
    ...
);
use Locale::TextDomain::OO::FunctionalInterface;

✨ or import only the given functions, as example all ✨

like, you could grab every single one, or you could be a picky little curator and ask for exactly the ones you want πŸ‘‘. the example below asks for all of them (go big or go home):

use Locale::TextDomain::OO;
use Locale::TextDomain::OO::TiedInterface $loc_ref, qw(
    loc_begin_d
    loc_begin_c
    loc_begin_dc
    loc_end_d
    loc_end_c
    loc_end_dc
    loc_
    loc_x
    loc_n
    loc_nx
    loc_p
    loc_px
    loc_np
    loc_npx
    loc_d
    loc_dx
    loc_dn
    loc_dnx
    loc_dp
    loc_dpx
    loc_dnp
    loc_dnpx
    loc_c
    loc_cx
    loc_cn
    loc_cnx
    loc_cp
    loc_cpx
    loc_cnp
    loc_cnpx
    loc_dc
    loc_dcx
    loc_dcn
    loc_dcnx
    loc_dcp
    loc_dcpx
    loc_dcnp
    loc_dcnpx

    Nloc_
    Nloc_x
    Nloc_n
    Nloc_nx
    Nloc_p
    Nloc_px
    Nloc_np
    Nloc_npx
    Nloc_d
    Nloc_dx
    Nloc_dn
    Nloc_dnx
    Nloc_dp
    Nloc_dpx
    Nloc_dnp
    Nloc_dnpx
    Nloc_c
    Nloc_cx
    Nloc_cn
    Nloc_cnx
    Nloc_cp
    Nloc_cpx
    Nloc_cnp
    Nloc_cnpx
    Nloc_dc
    Nloc_dcx
    Nloc_dcn
    Nloc_dcnx
    Nloc_dcp
    Nloc_dcpx
    Nloc_dcnp
    Nloc_dcnpx

    __begin_d
    __begin_c
    __begin_dc
    __end_d
    __end_c
    __end_dc
    __
    __x
    __n
    __nx
    __p
    __px
    __np
    __npx
    __d
    __dx
    __dn
    __dnx
    __dp
    __dpx
    __dnp
    __dnpx
    __c
    __cx
    __cn
    __cnx
    __cp
    __cpx
    __cnp
    __cnpx
    __dc
    __dcx
    __dcn
    __dcnx
    __dcp
    __dcpx
    __dcnp
    __dcnpx

    N__
    N__x
    N__n
    N__nx
    N__p
    N__px
    N__np
    N__npx
    N__d
    N__dx
    N__dn
    N__dnx
    N__dp
    N__dpx
    N__dnp
    N__dnpx
    N__c
    N__cx
    N__cn
    N__cnx
    N__cp
    N__cpx
    N__cnp
    N__cnpx
    N__dc
    N__dcx
    N__dcn
    N__dcnx
    N__dcp
    N__dcpx
    N__dcnp
    N__dcnpx

    locn
    Nlocn

    maketext
    maketext_p
    maketext_d
    maketext_dp
    maketext_c
    maketext_cp
    maketext_dc
    maketext_dcp

    Nmaketext
    Nmaketext_p
    Nmaketext_d
    Nmaketext_dp
    Nmaketext_c
    Nmaketext_cp
    Nmaketext_dc
    Nmaketext_dcp

    loc
    loc_m
    loc_mp

    localise
    localise_m
    localise_mp

    localize
    localize_m
    localize_mp

    Nloc
    Nloc_m
Nloc_mp
);
${loc_ref} = Locale::TextDomain::OO->new(
    ...
);

(and yes bestie, the indentation on that last stretch is exactly like the original, Nloc_mp and ); are hanging out over there β€” we don't fix what we didn't write πŸ’€)


🌸 SUBROUTINES/METHODS 🌸

see SYNOPSIS πŸ‘† that's the whole answer, it's giving "the homework is on the board"


🌈 EXAMPLE 🌈

Inside of this distribution there's a directory named example. Run this *.pl files. πŸƒβ€β™€οΈπŸ’¨


πŸ’… DIAGNOSTICS πŸ’…

confess


🧚 CONFIGURATION AND ENVIRONMENT 🧚

none πŸƒ


⭐ DEPENDENCIES ⭐

Carp


πŸ’œ INCOMPATIBILITIES πŸ’œ

not known πŸ€·β€β™€οΈ


πŸ™ˆ BUGS AND LIMITATIONS πŸ™ˆ

none πŸŽ‰


πŸ”₯ SEE ALSO πŸ”₯

Locale::TextDoamin::OO

okay bestie just so you know, that's spelled exactly like the original says β€” <red>Locale::TextDoamin::OOβ€” theaand thei` are doing a little swap in there and I am NOT editing it, periodt. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Steffen Winkler


Copyright (c) 2009 - 2014, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.

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


and that's the whole page bestie πŸ’– this was perl v5.42.0, dated 2025-07-25, and the page itself is Locale:...nterface(3) β€” slay, go call some methods as functions, ily πŸ¦‹βœ¨

πŸ“¦ where this page comes from