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: [BillKSmith] Data Sorting Example: Edit Log



AlphaScorpious
Novice

Oct 5, 2013, 2:17 PM


Views: 2903
Re: [BillKSmith] Data Sorting Example


In Reply To
Please try the code below and compare the result with yours

That worked, thank you.


In Reply To
Well, if you want to sort all the positive integers from 1 to 50,000, just don't sort them and don't even look at your database. Just print them in their natural order:

Thanks, but the exercise is to emulate a database so I'm pulling out a section of the numbers from 1 to 50,000 and then giving the user the option to do things like display only prime numbers, or exclude numbers starting with 3 or ending with 8, etc.


In Reply To
Do not assume that the user has entered the right data, validate it. I recommend the use of a module for prompting.

Thanks, but I'm just starting with Perl so I'll wait to add modules until I understand enough of the basics.


(This post was edited by AlphaScorpious on Oct 5, 2013, 2:19 PM)


Edit Log:
Post edited by AlphaScorpious (Novice) on Oct 5, 2013, 2:19 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