Hi Harry,

On Sat, 31 Jan 2015 16:58:48 -0500
Harry Putnam <rea...@newsguy.com> wrote:

> I've given myself a headache googling on how to debug a perl script
> that does not run.
> 
> Maybe `debug' is the wrong word... I'd love to know if there is a more
> accurage one.
> 
> I realize this post is quite a lot of yak, but hoping someone can lay
> out a few steps that will narrow down the problem.
> 
> Many, many of the google hits are all about using the debugger, which
> of course is a non-starter if the darn script will not run due to
> compilation errors..
> 

Some tips for resolving compilation errors:

1. Use a version control system - that way you can diff against the latest
version that was checked in (and compiled file) it and see what got you in
trouble.

See:

https://duckduckgo.com/?q=version+control+systems&ia=about

2. Gradually remove parts from a copy of the code until you find the offending
problem. See:

https://en.wikipedia.org/wiki/Bisection_%28software_engineering%29

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

I invented the term Object‐Oriented, and I can tell you I did not have C++ in
mind.                  — Alan Kay (Attributed)

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to