Acme-CPANModules-InterestingTies

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    Acme::CPANModules::InterestingTies (from Perl distribution
    Acme-CPANModules-InterestingTies), released on 2023-10-31.

DESCRIPTION
    The perl's tie interface allows you to create "magical" scalar, array,
    hash, or filehandle. When you read or set the value of these variables,
    various things can be triggered.

    This Acme::CPANModules list catalogs some of the interesting uses of the
    tie() interface.

ACME::CPANMODULES ENTRIES
    Acme::Tie::Formatted
        Author: MCMAHON <https://metacpan.org/author/MCMAHON>

        This module allows you to do sprintf() by accessing a hash key,
        e.g.:

         print $format{17, "%03x"};

        will output:

         011

        The nice thing about this is that the $format{...} term can be put
        inside double quote, although you have to use a different quote
        inside the quote, e.g.:

         print "The value is: $format{17, '%03x'}";
         print qq(The value is: $format{17, "%03x"});

        The module advertises the functionality as "printf inside print",
        although the author chose to accept a different argument order than
        printf. Instead of:

         FORMAT, LIST

        the FORMAT is put at the end:

         LIST, FORMAT

    Regexp::Common
        Author: ABIGAIL <https://metacpan.org/author/ABIGAIL>

        This module contains a collection of regular expression patterns. To
        access the patterns, you can use the tied hash %RE, e.g.:

         $RE{quoted}
         $RE{num}{real}

        You can also give arguments to customize the generated pattern:

         $RE{delimited}{-delim=>'/'}]

        The advantage, again, is being able to be used inside a regular
        expression pattern.

        Note that the module also offers subroutine-based interface. I also
        created an alternative module called Regexp::Pattern which opts for
        the non-magical subroutine-based interface and offers smaller
        startup overhead.

FAQ
  What is an Acme::CPANModules::* module?
    An Acme::CPANModules::* module, like this module, contains just a list
    of module names that share a common characteristics. It is a way to
    categorize modules and document CPAN. See Acme::CPANModules for more
    details.

  What are ways to use this Acme::CPANModules module?
    Aside from reading this Acme::CPANModules module's POD documentation,
    you can install all the listed modules (entries) using cpanm-cpanmodules
    script (from App::cpanm::cpanmodules distribution):

     % cpanm-cpanmodules -n InterestingTies

    Alternatively you can use the cpanmodules CLI (from App::cpanmodules
    distribution):

        % cpanmodules ls-entries InterestingTies | cpanm -n

    or Acme::CM::Get:

        % perl -MAcme::CM::Get=InterestingTies -E'say $_->{module} for @{ $LIST->{entries} }' | cpanm -n

    or directly:

        % perl -MAcme::CPANModules::InterestingTies -E'say $_->{module} for @{ $Acme::CPANModules::InterestingTies::LIST->{entries} }' | cpanm -n

    This Acme::CPANModules module also helps lcpan produce a more meaningful
    result for "lcpan related-mods" command when it comes to finding related
    modules for the modules listed in this Acme::CPANModules module. See
    App::lcpan::Cmd::related_mods for more details on how "related modules"
    are found.

HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Acme-CPANModules-InterestingTies>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Acme-CPANModules-InterestingTies>.

SEE ALSO
    Acme::CPANModules - about the Acme::CPANModules namespace

    cpanmodules - CLI tool to let you browse/view the lists

AUTHOR
    perlancar <perlancar@cpan.org>

CONTRIBUTING
    To contribute, you can send patches by email/via RT, or send pull
    requests on GitHub.

    Most of the time, you don't need to build the distribution yourself. You
    can simply modify the code, then test via:

     % prove -l

    If you want to build the distribution (e.g. to try to install it locally



( run in 1.313 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )