http://qs321.pair.com?node_id=1217906


in reply to Re^3: Markup::Perl Review / Demo (Basic CGI Shell)
in thread Markup::Perl Review / Demo (Basic CGI Shell)

Thank you Corion, I missed that. Being the type of person who rummages through error_logs to find new excuses for rewriterules, my mind wonders why someone hasn't fixed that. I don't have perl on windows handy to test if Markup::Perl will work by installing with force.

STOP REINVENTING WHEELS, START BUILDING SPACE ROCKETS!CPAN 🐪
  • Comment on Re^4: Markup::Perl Review / Demo (Basic CGI Shell)

Replies are listed 'Best First'.
Re^5: Markup::Perl Review / Demo (Basic CGI Shell)
by stevieb (Canon) on Jul 05, 2018 at 18:06 UTC

    Instead of using force, why don't you fix the actual test and send a patch?

    Here is often how I check if a binary is available and executable (usually in my Makefile.PL files, but I digress... here's one example, and another):

    use strict; use warnings; use Test::More; my $is_win = $^O =~ /MSWin/; my ($sep, $bin) = $is_win ? (';', 'perl.exe') : (':', 'perl'); my $perl_available = grep { -x "$_/$bin" } split /$sep/, $ENV{PATH}; ok $perl_available, "perl binary was found and is executable"; done_testing();

    Update: Modified code to work on both Windows and Unixy platforms.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^5: Markup::Perl Review / Demo (Basic CGI Shell)
by marto (Cardinal) on Jul 04, 2018 at 21:37 UTC

    "my mind wonders why someone hasn't fixed that."

    Probably because nobody uses it.

    A reply falls below the community's threshold of quality. You may see it by logging in.