Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: HTML::Parser / Regexby eyepopslikeamosquito (Archbishop) |
on May 28, 2017 at 06:30 UTC ( [id://1191398]=note: print w/replies, xml ) | Need Help?? |
What you're attempting as a first program is too tough for a complete beginner IMHO ... So, like kcott, I suggest you read perlintro or some of these Learning Perl links. Then write some simpler programs first, to gain some confidence. Feel free to ask more questions if you get stumped. Once you've done that (will probably take a week or two) return to your original problem. That said, I can see you're very determined to try to solve your real world problem immediately! If so, try running this simple program: on your original test california.html file: which should produce the following output: Now, take the time to understand how the above program works by reading the introductory Perl links above. Feel free to ask any questions about it. Please note that I am NOT endorsing the above program as a sound way to solve your real world problem. It is just a simple program, directly related to your real world problem, to help motivate you to learn some Perl basics. For a sound solution to your problem, I suspect HTML-Parser is the way to go.
In Section
Seekers of Perl Wisdom
|
|