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: Re: [allan1962] Creating alphabetic Sort: Edit Log



allan1962
Novice

Jun 9, 2007, 12:38 PM


Views: 5130
Re: [allan1962] Creating alphabetic Sort

I tried this and it worked.

foreach $data(@data)
{

($subcats) = split(/\|/, $data);
push @db_searchresults, $data;
}

foreach $data1(@db_searchresults)
{

chop ($data1);
($subcats) = split(/\|/, $data1);
push @{ $cats{substr $subcats,0,1} },$subcats;
}

_____________________________________

Thanks for everything Kevin, this is greatly appreciated.

Allan


(This post was edited by allan1962 on Jun 9, 2007, 12:38 PM)


Edit Log:
Post edited by allan1962 (Novice) on Jun 9, 2007, 12:38 PM


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

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