The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

End::Eval::FirstArg - Take code from first command-line argument, then eval it in END block

VERSION

This document describes version 0.002 of End::Eval::FirstArg (from Perl distribution End-Eval-FirstArg), released on 2021-08-06.

SYNOPSIS

On the command-line:

 % perl -MEnd::Eval::FirstArg `which some-perl-script.pl` 'use Data::Dump; dd \%INC' ...
 % PERL5OPT=-MEnd::Eval::FirstArg some-perl-script.pl 'use Data::Dump; dd \%INC' ...

DESCRIPTION

This module allows you to specify a code in the first command-line argument, basically for convenience in one-liners.

FAQ

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/End-Eval-FirstArg.

SOURCE

Source repository is at https://github.com/perlancar/perl-End-Eval-FirstArg.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=End-Eval-FirstArg

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Other End::Eval::* (like End::Eval and End::Eval::Env) and End::* modules.

Other Devel::End::* modules (but this namespace is deprecated in favor of End).

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by perlancar@cpan.org.

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