|We don't bite newbies here... much|
nested loop within Mechanizeby Perlbeginner1 (Scribe)
|on Oct 03, 2012 at 17:59 UTC||Need Help??|
Perlbeginner1 has asked for the
wisdom of the Perl Monks concerning the following question:
hello monks :)
it's waaay too long i haven't been coding (at all), and especially coding in perl, so please forgive me for this dumb dumb dumb question.
I haven't found it answered, so either I can't even properly search or it's so dumb nobody ever dared to ask. my need : I've got two arrays, say
Well i am currently working on a small solution: I have tried various tutorials (examples of Mecha - that i have found on the net) not oll of them work - some of them are broken!
Now i try to get some real-world-task! This is much more interesting for me as a Perl-beginner
i start with a Mechanize-job, which sure can be done with LWP too. But at the beginning i want to keep it pretty simple. Well i need Mecha - particularly for doing the form based search and selecting the individual entries.
goal: i have approximatley 100 pages to parse
they are organized like that:
Hmm - i guess that the algorithm would be basically only one nested loop: hmm - one outer loop runs the form based search, and yes: one inner loop processes the search results.
well i did it like this one here:
It's really really !!! just one loop, isn't it?
well the thing is pretty simple - i need to do two things with Mechanize
- particularly for doing the form based search and
- selecting the individual entries and parse them
well what do you say?!