App-PTP

 view release on metacpan or  search on metacpan

script/ptp  view on Meta::CPAN


=head1 ENVIRONMENT

Some environment variables can affects default options of the program when they
are set.

=over 4

=item PTP_DEFAULT_CASE_INSENSITIVE

Setting this variable to B<1> means the the B<-I> flag is in effect at the
beginning of the parsing of the command line arguments. Setting the variable to
B<0> gives the default behavior (as if B<-S> was passed).

=item PTP_DEFAULT_QUOTE_REGEX

Setting this variable to B<1> means the the B<-Q> flag is in effect at the
beginning of the parsing of the command line arguments. Setting the variable to
B<0> gives the default behavior (as if B<-E> was passed).

=item PTP_DEFAULT_INVERSE_MATCH

Setting this variable to B<1> means that the B<-V> flag is in effect at the
beginning of the parsing of the command line arguments. Setting the variable to
B<0> gives the default behavior (as if B<-N> was passed).

=item PTP_DEFAULT_LOCAL_MATCH

Setting this variable to B<1> means the the B<-L> flag is in effect at the
beginning of the parsing of the command line arguments. Setting the variable to
B<0> gives the default behavior (as if B<-G> was passed).

=item PTP_DEFAULT_REGEX_ENGINE

Setting this variable allows to override the default regex engine used by the
program. That variable can take the same values as the B<--re> flag.

=item PTP_DEFAULT_FATAL_ERROR

Setting this variable to B<1> means that the B<-X> flag is in effect at the
beginning of the parsing of the command line arguments. Setting the variable to
B<0> gives the default behavior (as if B<-ignore-error> was passed).

=item PTP_DEFAULT_SAFE

Setting this variable to an integer value will set the default mode of executing
user supplied Perl code, as if the B<--safe> option was given.

=back

=head1 CAVEATS

This program is optimized for expressivity rather than performance (also,
modern computers are powerful). So it will read each file in memory entirely
before processing it. In particular, if you use the B<--merge> option, then all
the input files are entirely loaded in memory at the same time.

Handling of the user supplied code might differ depending on whether the
B<--safe> option is in effect or not. In particular, currently any exception
thrown by user code in safe mode is entirely ignored. While this is a bug, one
could say that this contribute to prevent that anything unpredictable will
happen to the calling code...

=head1 AUTHOR

This program has been written by L<Mathias Kende|mailto:mathias@cpan.org>.

=head1 LICENCE

Copyright 2019-2024 Mathias Kende

This program is distributed under the MIT (X11) License:
L<http://www.opensource.org/licenses/mit-license.php>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

=head1 SEE ALSO

L<perl(1)>, L<grep(1)>, L<sed(1)>,
L<perlre|https://perldoc.perl.org/perlre.html>

=cut



( run in 1.157 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )