Mar 7, 2015, 9:36 AM
You could use perl's debugger to step through the script to see its flow or you could run it under strace to get lower level view of the process flow.
Re: [C_PRASANNA] Open file command with Sort and sub function call
This is clearly a very obfuscated and inefficient way to copy and sort a file.
I have not tested that horrible mess, but there are a couple parts of it that lead me to believe that it would fail with a compilation error. I'm referring to using an empty prototype definition which implies that the sub doesn't accept arguments, but one is being passed when called. I don't recall for sure if using the FQN when calling a sub bypasses prototype checking.
(This post was edited by FishMonger on Mar 7, 2015, 9:47 AM)