App-hr

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.12    2015-07-06  Released-By: PERLANCAR

        - UPDATE: this version is broken (mistakenly dependent to
          Code::Embeddable).

	- Use Rinci function metadata attribute cmdline.skip_format=>1 so
	  that pericmd-inline skips providing --format, --json, --naked-res
	  [RT#105641].

	- Replace 'use 5.010' with 'use feature say' to avoid
	  Data::Dumper's Deparse feature producing 'no feature :all' which
	  is not supported by perl 5.14-.

	- Use prepend: section to avoid clash in FUNCTIONS POD section.


0.11    2015-07-02  Released-By: PERLANCAR

        - No functional changes.

        - [build] Rebuild with updated Perinci::CmdLine::Inline (0.13) to fix

script/_hr  view on Meta::CPAN

#    };
#
#    my $res = $deparse->coderef2text($code);
#
#    my ($res_before_first_line, $res_after_first_line) =
#        $res =~ /(.+?)^(#line .+)/ms;
#
#    if ($OPT_REMOVE_PRAGMAS) {
#        $res_before_first_line = "{";
#    } elsif ($OPT_PERL_VERSION < 5.016) {
#        # older perls' feature.pm doesn't yet support q{no feature ':all';}
#        # so we replace it with q{no feature}.
#        $res_before_first_line =~ s/no feature ':all';/no feature;/m;
#    }
#    $res_after_first_line =~ s/^#line .+//gm;
#
#    $res = "sub" . $res_before_first_line . $res_after_first_line;
#    $res =~ s/^\s+//gm;
#    $res =~ s/\n+//g;
#    $res =~ s/;\}\z/}/;
#    $res;
#}
#

script/_hr  view on Meta::CPAN

#will keep compatibility with Perl 5.10.0. This is used in the following ways:
#
#=over
#
#=item * passed to L<Regexp::Stringify>
#
#=item * when dumping code references
#
#For example, in perls earlier than 5.016, feature.pm does not understand:
#
# no feature ':all';
#
#so we replace it with:
#
# no feature;
#
#=back
#
#=head2 $Data::Dmp::OPT_REMOVE_PRAGMAS
#
#Bool, default: 0.



( run in 0.292 second using v1.01-cache-2.11-cpan-cba739cd03b )