|Think about Loose Coupling|
Sorting result of function callby Hofmator (Curate)
|on Dec 20, 2006 at 09:29 UTC||Need Help??|
Hofmator has asked for the
wisdom of the Perl Monks concerning the following question:
I'm a bit surprised by the behaviour of the following code:
I would have expected that all these outputs would be identical. Here my guesses what went wrong. Could somebody shed some more light on it, please.
In case it matters: This is perl, v5.6.1 built for i386-linux.
And btw, I came across this when I tested App::Ack (Version 1.50) and tried to run ack --help types which doesn't display any types for me. Tracking it down, I reached the following line in App::Ack::show_help_types, which exhibits the behaviour of case 2 above.
Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.