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: [hwnd] Reading results back that were dumped?: Edit Log



Chris Charley
User

Apr 10, 2013, 11:04 AM


Views: 1582
Re: [hwnd] Reading results back that were dumped?

Not faster probably, but requires less code is all.

And since your id is numeric, (I believe), you should probably use a numeric sort.


Code
 foreach ( sort(keys( %$sth ))   

Should be:

foreach (sort {$a <=> $b} keys %$sth) {
....
}



(This post was edited by Chris Charley on Apr 10, 2013, 12:14 PM)


Edit Log:
Post edited by Chris Charley (User) on Apr 10, 2013, 11:09 AM
Post edited by Chris Charley (User) on Apr 10, 2013, 12:14 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