in reply to Removing unessary data

Why do you want to remove unneeded code? what harm is it doing you?

A wise programer might answer that it hurts performance or my contain bugs that harm overall stability, but seeing as you have no desire to learn perl, you are not in a positon to fix bugs or performance issues, and removing code you don't understand more likey to break the program than help it, so my advice is not to edit the code any more than you have to.

Having said that, if you realy want to know what parts of the code are not used, My advice would be to use a coverage or profing tool such as Devel::Cover or Devel::NYTProf to tell you which parts of the code are not touched during a typical run of the program.

Replies are listed 'Best First'.
Re^2: Removing unessary data
by reidlos65 (Initiate) on Jul 21, 2011 at 15:31 UTC
    I not unwilling to learn, I have just a situation where im being asked to do something I dont know how to do, using a very advanced script that does several intertwined unnecessary actions. I wanted to see if it could be broken down to a set of information as to what needs to be removed. Thanks

      "I wanted to see if it could be broken down to a set of information as to what needs to be removed."

      Again, that's what the comments are for, they tell you what the associated parts of the code do.

      im being asked to do something I dont know how to do

      In situations like these I tell the one who asked me, that I'm currently feeling unable to solve the task but that I'm willing to try. I will also tell him that I will not be able yet to tell him how much time I need.

      In regards to the script: Use the source young jedi! Comments are a powerful part of the source. And then there is always perl -d...

      May the source be with you ;)


      s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
      +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e