CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [C_PRASANNA] Open file command with Sort and sub function call: Edit Log



FishMonger
Veteran / Moderator

Mar 7, 2015, 9:36 AM


Views: 10148
Re: [C_PRASANNA] Open file command with Sort and sub function call

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.

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)


Edit Log:
Post edited by FishMonger (Veteran) on Mar 7, 2015, 9:43 AM
Post edited by FishMonger (Veteran) on Mar 7, 2015, 9:47 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives