Welcome to the Monastery | |
PerlMonks |
Re: How to pass variable in the LWP moduleby 1nickt (Canon) |
on Jun 30, 2015 at 11:59 UTC ( [id://1132608]=note: print w/replies, xml ) | Need Help?? |
Hello Bhushan,
In general, it looks like you are rushing too much to try to make your scripts accomplish your ultimate goal, without learning the steps necessary to get there. I suggest that you try to learn some basics about Perl programming before trying to do relatively complex tasks like speaking JSON to a remote server. Have you worked through any Perl tutorials? There are no shortcuts to becoming an effective programmer. You might be able to find out how to do what you want with a question on PerlMonks or Stack Exchange, but if you don't understand what it is that you are doing and why it works, you will not be able to fix it when it breaks or extend it when $boss wants a new feature. The requirements of your ($boss, $job) might mean that you just have to get It working Now ... we've all been there. But then you have to spend many many hours practicing the basic techniques in an environment that is _not_ your live project, in order to really learn what is going on. One effective technique is to get a script or a piece of code that works, from here or from somewhere else, then "reverse engineer" it to see how it works. Start commenting out lines and reducing the complexity of the code, all the way down so it simply compiles, with no function. Then start adding the lines back in one by one, not advancing until you understand. Reduce the data to the simplest it can be (eg just one element in an array) ... just make the simplest script you can. Gradually you can build the complexity back in.
In Section
Seekers of Perl Wisdom
|
|