Welcome Guest!
 Previous Message All Messages Next Message 
Re: Slow WWW::Mechanize  Jay Strauss
 Aug 26, 2003 06:34 PDT 

 This is incredibly dangerous code. What if that regex doesn't
match? You get the previous round's $1. Ugh!

That's because I'm a risk taker, I LIVE, on the edge.

Point taken, I changed the code to:

        if ($r->{rows}[1]{cells}[$i++]{data} =~ />([^<]+)</) {
            $data{$_} = $1;
            $data{$_} =~ s/\ //g;

I think this is what you mean

 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Food & Drink
 Health & Fitness
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.