#!perl our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY our $DATE = '2021-03-13'; # DATE our $DIST = 'App-printenv-perl'; # DIST our $VERSION = '0.001'; # VERSION print for sort {lc($a) cmp lc($b)} map {"$_=$ENV{$_}\n"} keys %ENV; # ABSTRACT: Print environment variables, as seen by a Perl script # PODNAME: printenv-perl __END__ =pod =encoding UTF-8 =head1 NAME printenv-perl - Print environment variables, as seen by a Perl script =head1 VERSION This document describes version 0.001 of printenv-perl (from Perl distribution App-printenv-perl), released on 2021-03-13. =head1 SYNOPSIS % printenv-perl In bash: % diff -u <(env | sort) <(printenv-perl) % diff -u <(printenv | sort) <(printenv-perl) =head1 DESCRIPTION You can compare the output of this script with that of B<printenv> utility, B<env> utility, or B<set> (shell internal command). =head1 HOMEPAGE Please visit the project's homepage at L<https://metacpan.org/release/App-printenv-perl>. =head1 SOURCE Source repository is at L<https://github.com/perlancar/perl-App-printenv-perl>. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L<https://github.com/perlancar/perl-App-printenv-perl/issues> 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. =head1 SEE ALSO B<env> Unix utility B<printenv> Unix utility B<set> (shell internal command) C<%ENV> variable in L<perlvar> =head1 AUTHOR perlancar <perlancar@cpan.org> =head1 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. =cut