> And I want to extract from it the chekbox values and their 
> respective channel names (contained in the link beside the 
> checkbox). I have checked a lot of modules on cpan but I 
> haven't found one that does it just the way I want it to yet. 
> Actually I havent found any that I can get to work at all.
> 
> Any tips?
> 

If I were to do it by hand I'd do something like this:

Assuming it always looks like this: (that's a pretty big assumption which is why 
modules are good, but anyway...)
<input type="checkbox" name=kanal_id[] value=9 > <a 
href="index.html?kanal_id=9&dag=0&fra_tid=0&til_tid=24&kategori_id=">

my %value_channel = $html =~ /type\=\"checkbox\" name=kanal_id[] value=(\d+) \> \<a 
href\=\"(.*)\"/mg;

Then the keys would be the checkbox value and the value would be the url!

Isn't Perl sexxy? :)

DMuey

> Christian...



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to