Perl: the Markov chain saw | |
PerlMonks |
Re^5: Out of date over <> and 5.10 (reproduce)by tye (Sage) |
on Sep 08, 2010 at 17:42 UTC ( [id://859372]=note: print w/replies, xml ) | Need Help?? |
I tried to come up with a complete test case that anybody could run, since this behavior seems to vary based on tiny things, perhaps down to unknown quirks in different environments. Perhaps this test case can be extended to cover the quirks that get discovered to the point that it demonstrates failure and success of piping / redirection in exactly the same cases on lots of different systems.
Running it myself gave me different results than BrowserUk's. First, the boring pre-amble:
That last line shows that I don't have an old pipe.exe or pipe.bat hanging around to confuse things.
The above shows that neither piping nor redirection works for me when I leave off .pl even when .pl is first in PATHEXT (the case where it worked for BrowserUk).
The above is the boring middle part.
The above shows that redirection and piping also fails for me when .pl at the last item in PATHEXT (the case where it also failed for BrowserUk (update:) based on my prior reading of his node but that doesn't appear to have failed for him in my latest reading of his node).
That last chunk is the boring end. In the process of trying to get ftype / assoc to actually work, I found a lot of quirks that are possible in the Classes/.pl and Classes/testperl Registry keys. I suspect that there is something here that is important. To be clear, when I ran this test case, I had previously deleted the Class/.pl and Class/perltest Registry keys. I didn't include those steps in the test case as I figured some might find such a drastic step impolite and also because I suspect such a step would mask some of the existing quirks that cause different behavior for different people. Somebody should probably add code to the test case that saves the keys, deletes them, and then restores them at the end. Unfortunately, the Windows Registry doesn't appear to support "rename key". - tye
In Section
Seekers of Perl Wisdom
|
|