in reply to I dont understand what it is doing....

Actually I just dont understand what does the below code trying to do :( can somebody explain to me?
  • Comment on Re: I dont understand what it is doing....

Replies are listed 'Best First'.
Re^2: I dont understand what it is doing....
by ikegami (Patriarch) on Jun 07, 2010 at 17:47 UTC
    It's trying to create a string. As to what that strings looks like, fix the errors, run it and print the content of $proj and you'll see.
Re^2: I dont understand what it is doing....
by Anonymous Monk on Jun 07, 2010 at 17:52 UTC

    The code doesn't compile, AND has no comments.

    Clearly, the solution here is to find the original author, and ask what the heck they were thinking when they committed it to the repository.

Re^2: I dont understand what it is doing....
by noobie82 (Initiate) on Jun 07, 2010 at 17:45 UTC
    I mean this part:
    sub query($$$@){ my($name, $type, $comb,@vals)=@_; @vals=map{ s/'/''; "[$name] $type '$_'";}@vals; return "(".join(" $comb",@vals). ")"; }
      It's not doing anything, except throwing an error. What is it supposed to do?