#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    1
    Rep Power
    0

    What is wrong with my answer


    I dont understand why im being downvoted for my answer here. Can somebody englighten me, I'm pretty sure my answer is ideal

    stackoverflow .com
    /questions/3960914/how-can-i-parse-just-part-of-a-file-with-perl
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Apr 2009
    Posts
    1,954
    Rep Power
    1225
    That thread is 3 1/2 yrs old. Why did you wait so long to ask about this issue?

    You obviously didn't test your code.

    1) The regex won't match the required data.

    2) It uses symbolic references, which is bad coding.

    3) Due to the usage of symbolic reference, you cant use the strict pragma. Or at least strict refs must be disabled in that block.

    I'm surprised that you only got 1 down vote.

IMN logo majestic logo threadwatch logo seochat tools logo