in reply to Pattern Matching and replacement
Actually you don't really want to do it that way. You do want to use something like WWW::Mechanize::FormFiller off CPAN which fills in forms and submits them for you. Ready to go at a CPAN mirror near you. You will also need to read the docs for WWW::Mechanize base class to see how you submit the result of the form you filled in with the FormFiller subclass. A few dozen lines of code then take the rest of the week off! Gotta love CPAN
Modifying HTML with regexes is always a fragile solution. You need to use HTML::Parser if you want relaible parsing but as noted above all the hard work has been done for you already.....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern Matching and replacement
by cees (Curate) on Apr 14, 2003 at 05:14 UTC |