How can I troubleshoot my Perl CGI script?

前端 未结 8 1088
深忆病人
深忆病人 2020-11-22 02:43

I have a Perl script that isn\'t working and I don\'t know how to start narrowing down the problem. What can I do?


Note: I\'m adding the question because I rea

8条回答
  •  抹茶落季
    2020-11-22 03:12

    Honestly you can do all the fun stuff above this post. ALTHOUGH, the simplest and most proactive solution I found was to just "print it".

    In example: (Normal code)

    `$somecommand`;
    

    To see if it's doing what I really want it to do: (Trouble shooting)

    print "$somecommand";
    

提交回复
热议问题