CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Sorting matched

 



Gregorio
User

May 20, 2001, 11:46 AM

Post #1 of 2 (711 views)
Sorting matched Can't Post

I'm getting information from other sites' search results and need to sort the results of all the pages by price. I use UserAgent to get the pages and matching to get the search results, is there a way I could sort all of these results from all the pages price?



Gregorio
User

May 20, 2001, 4:17 PM

Post #2 of 2 (704 views)
Re: Sorting matched [In reply to] Can't Post

more specifically:
my code for matching is:

Code
while (sitepage =~ m/USD.<.font><font face=arial,helvetica>([^<]+)/sog) { 
($siteprice) = ($1);
$output .= qq~$siteprice~;
}


print CGI->header;
print qq~
<html>
<head>
<title>Airline Search results.</title>
</head>
<body>
$output
</body>
</html>
~;

is there a way to sort $output numerically ($siteprice is a number in each case that it is found)?


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives