Newsgroups: comp.lang.perl.misc
From: cha...@lonemerchant.com
Date: Thu, 15 May 2008 14:21:23 -0700 (PDT)
Local: Thurs, May 15 2008 5:21 pm
Subject: Re: Need ideas on how to make this code faster than a speeding turtle
On May 15, 1:37 pm, Uri Guttman <u...@stemsystems.com> wrote:
> >>>>> "c" == chadda <cha...@lonemerchant.com> writes: I know I shouldn't critize free help, but you seem to have some anger > i have to know if you could write this mess any slower? you are doing management issues. > c> open(IN, '<', 'input') || die "cant open: $!"; > why are you calling out to a program when perl can load web pages just run on a server with restricted access. Ie, I can't install stuff from cpan on that server. > c> open(OUTFILE, '>out'); Huh? Are you saying I don't need the 'out' file? > c> print OUTFILE $temp; > c> close OUTFILE; > c> open(OUT, '<', 'out') || die "cant open: $!"; > why are you writing out the output of lynx JUST TO READ IT BACK IN > you have the text in $temp. you know how to use backticks but why do you > also calling it @shit is not a good thing. > c> @product = grep(/Product ID/, @shit);
> c> @id = grep(/Item ID/, @shit); > c> @sku = grep(/SKU/, @shit); > c> @upc = grep(/UPC/, @shit); #this part doesn't grep UPC correctly. I > c> get some extra data after UPC. > that is a problem with the format of the html page. html isn't line > uri 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.
| ||||||||||||||