Newsgroups: comp.lang.perl.misc
From: "A. Sinan Unur" <1...@llenroc.ude.invalid>
Date: Thu, 15 May 2008 23:14:45 GMT
Local: Thurs, May 15 2008 7:14 pm
Subject: Re: Need ideas on how to make this code faster than a speeding turtle
cha...@lonemerchant.com wrote in
news:b0833433-862e-4895-8002-66c92cc53b15@w5g2000prd.googlegroups.com: > On May 15, 3:16 pm, "Gordon Etly" <ge...@bentsys-INVALID.com> wrote: ... >> cha...@lonemerchant.com wrote: >> > On May 15, 1:37 pm, Uri Guttman <u...@stemsystems.com> wrote: >> > chadda <cha...@lonemerchant.com> writes: >> > > i have to know if you could write this mess any slower? you are >> > > doing >> > > everything possible to slow you down. >> > I know I shouldn't critize free help, but you seem to have some >> > anger management issues. 5.812/lib/LWP/UserAgent.pm), >> as a good start in the right direction. ... > I just tried LWP, and now I can't get the code to work for the life of As I mentioned elsewhere, all you need is LWP::Simple. > me. Here is what I attempted So, here is a fish for you: C:\Temp> cat p.pl use strict; use HTML::TokeParser; my ($input_file) = @ARGV; open my $INPUT, '<', $input_file ID: my $url = make_url( $id ); unless ( defined $html ) { my $parser = HTML::TokeParser->new( \$html ); TABLE: } sub make_url { return sprintf q{http://www.doba.com/members/catalog/%s.html}, $_[0]; } __END__ C:\Temp> timethis p list $VAR1 = { TimeThis : Command Line : p list Comparing this to the overhead of an empty script: C:\Temp> cat t.pl use strict; C:\Temp> timethis t TimeThis : Command Line : t It took 0.844 seconds to retrieve and parse the required information. Of -- comp.lang.perl.misc guidelines on the WWW: You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||