laziness, impatience, and hubris | |
PerlMonks |
Re: update required for subroutineby pemungkah (Priest) |
on Apr 21, 2010 at 20:02 UTC ( [id://836118]=note: print w/replies, xml ) | Need Help?? |
I realize you're in a hurry, but you're really going about this all wrong.
You're running code, getting an answer, posting it here, and asking for help. This is not, as they say, a sustainable development model. Do you have tests? Are you using a source code management tool? I know - you don't have time. But consider: your development cycle is now at the mercy of folks deciding to help. You need to do more to help yourself. Take one example of your input and expected output, and write a test. Use Test::Deep to check the differences between the data structure you're getting and the one you want. Start using the debugger to step through the manipulations of the data structure to check that each step is doing what you want, or to find where it's not. You don't have to use something complicated to start doing source control. Use RCS. You don't have to set up a repository, and there are very few commands. Learn SVN or Mercurial or git some other time. The only person who can really invest in this code is you, and you need to treat yourself right and give yourself the tools you need to fix this. I realize that you're probably under pressure to get this done, but your current working method will not do it.
In Section
Seekers of Perl Wisdom
|
|