Guest User

Untitled

a guest
Jul 4th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. # We need a hash of comment ids; to avoid abusing the DB, we're going to build
  2. # this here; this is probably a horrible way to do it, and likely saner, but perldocs
  3. # isn't helping me figure this out
  4. for (@$comments) {
  5. my (%comment);
  6. @comment{qw(nickname cid date subject pid comment)} = @$_;
  7. $comment_hash{cid} = {
  8. nickname => $comment{nickname},
  9. date => $comment{date},
  10. pid => $comment{pid},
  11. comment => $comment{comment}
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment