Acme-CPANModules-OneLinerTools

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


         % perl -MOrg::Parser::Tiny -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

        you can now write:

         % perl -ML -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

        "Module autoloader" modules work using Perl's autoloading mechanism
        (read "perlsub" for more details). By declaring a subroutine named
        "AUTOLOAD" in the "UNIVERSAL" package, you setup a fallback
        mechanism when you call an undefined subroutine. L's AUTOLOADER
        loads the module using Module::Load then try to invoke the undefined
        subroutine once again.

    lib::xi
        Author: GFUJI <https://metacpan.org/author/GFUJI>

        This module can automatically install missing module during run-time
        using "cpanm". Convenient when running a Perl script (that comes
        without a proper distribution or "cpanfile") that uses several
        modules which you might not have. The alternative to lib::xi is the
        "trial and error" method: repeatedly run the Perl script to see

lib/Acme/CPANModules/OneLinerTools.pm  view on Meta::CPAN

one-liner usage. So instead of having to type this:

    % perl -MOrg::Parser::Tiny -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

you can now write:

    % perl -ML -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

"Module autoloader" modules work using Perl's autoloading mechanism (read
`perlsub` for more details). By declaring a subroutine named `AUTOLOAD` in the
`UNIVERSAL` package, you setup a fallback mechanism when you call an undefined
subroutine. <pm:L>'s AUTOLOADER loads the module using <pm:Module::Load> then
try to invoke the undefined subroutine once again.

MARKDOWN
            tags => ['module-loading'],
        },

        {
            module => 'lib::xi',
            description => <<'MARKDOWN',

This module can automatically install missing module during run-time using

lib/Acme/CPANModules/OneLinerTools.pm  view on Meta::CPAN

one-liner usage. So instead of having to type this:

 % perl -MOrg::Parser::Tiny -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

you can now write:

 % perl -ML -E'$doc = Org::Parser::Tiny->new->parse_file("/home/budi/todo.org"); ...'

"Module autoloader" modules work using Perl's autoloading mechanism (read
C<perlsub> for more details). By declaring a subroutine named C<AUTOLOAD> in the
C<UNIVERSAL> package, you setup a fallback mechanism when you call an undefined
subroutine. L<L>'s AUTOLOADER loads the module using L<Module::Load> then
try to invoke the undefined subroutine once again.


=item L<lib::xi>

Author: L<GFUJI|https://metacpan.org/author/GFUJI>

This module can automatically install missing module during run-time using
C<cpanm>. Convenient when running a Perl script (that comes without a proper
distribution or C<cpanfile>) that uses several modules which you might not have.
The alternative to lib::xi is the "trial and error" method: repeatedly run the



( run in 2.686 seconds using v1.01-cache-2.11-cpan-d80b1682f3f )