I have never seen anybody even come close to isolating what causes some installs to exhibit this problem while other installs do not.

Now you have! :)

But only as a result of your prompting my memory with your post:

C:\test>set PATHEXT=.COM;.EXE;.BAT;.CMD; C:\test>junk.pl junk.pl 'print "'$_'" while <>; ' C:\test>junk junk.pl C:\test>set PATHEXT=.pl;.COM;.EXE;.BAT;.CMD; C:\test>junk junk.pl 'print "'$_'" while <>; '

Personally, I dislike pl2bat with a vengeance. I've tried it several time over the years and always abandoned it almost immediately for one reason or another. I haven't tried to use it now for several years and can't remember all of the reasons.

But the Terminate batch job (Y/N)? prompting is only one.

Another is it screws up syntax highlighting. I could associate .bat with the .pl profile, but then that screws up highlighting in .bats. Another is forgetting that I pl2bat'd some script and the spending a few minutes--or on one particularly memorable occasion a few days--tearing my hair out before working out why none of the changes I was making to the .pl file were affecting the output from the script :)

Dumb! But I've done it several times. There are others. Perl::Tidy etc. Yes. It is just a matter of discipline. And only pl2batting once you've finished developing which is reasonably easy to do. But it's when you come back to something a few months or years later that it goes tits up.

Once you have PATHEXT/ASSOC/FTYPE set up correctly, everything "Just works". And setting it up is a one-time deal. I also like the multiple side-by-side perl installs that it affords through the simple mechanism of using different extensions .pl for 5.latest, .pl8 for 5.8 etc.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

In reply to Re^2: Out of date over <> and 5.10 (redir) by BrowserUk
in thread Out of date over <> and 5.10 by hsmyers

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.