http://www.perlmonks.org?node_id=977860


in reply to Re^5: redirection problem
in thread redirection problem

Yes, it is the first one. I installed strawberry perl 5.12, changed registry to point at it and this one worked:
C:\temp>ftype Perl Perl="C:\strawberry\perl\bin\perl.exe" "%1" %* C:\temp>script.pl aabc C:\temp>script.pl > strawberry.txt C:\temp>type strawberry.txt aabc
I'll try to install AS 5.12 to see how it works (on Monday).

Replies are listed 'Best First'.
Re^7: redirection problem
by BrowserUk (Patriarch) on Jun 22, 2012 at 16:35 UTC

    Try removing the assoc and ftype prior to doing the installation.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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.

    The start of some sanity?

      It didn't help either. I've installed Strawberry once again and no progress. Then uninstalled and installed AS 5.12.4 32-bit, but no success either. But... started digging and after finding similar posts for Groovy and Python I followed one of the links. This is actually very old fix for Win2000, but adding mentioned InheritConsoleHandles registry key solved my problem.

        Cool that you've fixed your problem.

        Strange that such an old hotfix that will've been long since rolled up into service packs and (should) have been applied at source since Vista, should suddenly reappear in 7. And only for some people.

        Even weirder is that registry key does not exist on my machine, but I have never seen the problem. And I run all my scripts via the associations. IF the key was there by default and something was deleting it on afflicted machines, it would make sense. But the need to add it -- only on afflicted machines -- is just downright nonsensical.

        There is still something more to this problem to be discovered. The only suspect I have at the moment is Strawberry Perl which I have never installed on this machine, but that is tenuous at best.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        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.

        The start of some sanity?