Couple of problems:
- You have repeated the code twice in your post, can you clean that up please.
- What are you trying to do? This looks like some sort of forum ripping robot?
- As submitted the initialisation of the LWP::RobotUA with the new method seems to go into lala land and just get lost, but then the invocation of the method does not appear to be in accordance with the documentation.
What testing of this have you done so far? Where were your problems?
jdtoronto