Newsgroups: comp.lang.perl.misc
From: cha...@lonemerchant.com
Date: Thu, 15 May 2008 16:06:25 -0700 (PDT)
Local: Thurs, May 15 2008 7:06 pm
Subject: Re: Need ideas on how to make this code faster than a speeding turtle
On May 15, 3:16 pm, "Gordon Etly" <ge...@bentsys-INVALID.com> wrote:
> cha...@lonemerchant.com wrote: I just tried LWP, and now I can't get the code to work for the life of > > 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. > He seems to constantly come across this way. I really wish he could see > As a simple answer, take a look at LWP:UserAgent > -- me. Here is what I attempted #!/usr/bin/perl -w use LWP::UserAgent; my ($read, $build, @product, @id, @sku, @upc, @weight); open(IN, '<', 'input') || die "cant open: $!"; my $ua = LWP::UserAgent->new; my $request = HTTP::Request->new('GET'); my $cookie_jar = HTTP::Cookies->new; my $response = $ua->request($request); my $code = $response->code; @temp = $request->content; @product = grep(/Product ID/, @temp); print @product; % ./parse.pl 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.
| ||||||||||||||