#!perl

use strict;
use warnings;

system $^X, "-d:NYTProf", @ARGV;
my $exitcode = $?;
if (-f "nytprof.out") {
    system "nytprofhtml", "--open";
}
exit $exitcode;

# ABSTRACT: Run perl followed by nytprofhtml --open
# PODNAME: perlnytprofhtml

__END__

=pod

=encoding UTF-8

=head1 NAME

perlnytprofhtml - Run perl followed by nytprofhtml --open

=head1 VERSION

This document describes version 0.001 of perlnytprofhtml (from Perl distribution App-NYTProfUtils), released on 2018-10-07.

=head1 SYNOPSIS

 % perlnytprofhtml foo.pl

is a shortcut for:

 % perl -d:NYTProf foo.pl
 % nytprofhtml --open foo.pl

=head1 DESCRIPTION

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-NYTProfUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-NYTProfUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-NYTProfUtils>

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 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2018 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
