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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
A Flat-file DB Sorter/Displayer



Feb 25, 2001, 1:54 PM

Post #1 of 2 (2127 views)
A Flat-file DB Sorter/Displayer Can't Post

I already have a DB setup (uses pipe delimited format, "|") using a script that allows me to add, modify, or delete entries, but I'd like a script that can sort a all records by a single field.

In my specific case, the field is always numerical of varying digit lengths. I'd like a script that can sort the flat-file database each time the script is called & when it is called (accessed thru browser) it displays only two of the over 25 different fields - one of the two will be the numerical field that i wanted sorted.

Also, when I say of varying digit length I mean that the number might have anywhere from 5-8 digits in it, so the script will haveta understand that 600000 is more then 94000 - not just say 9 is more then 6.

The script does NOT need to take any input from user, merely sort a file (according to a numerical field in order of largest to smallest) & display 2 fields of over 25 in the file for each user.


Apr 16, 2001, 10:52 AM

Post #2 of 2 (2098 views)
Re: A Flat-file DB Sorter/Displayer [In reply to] Can't Post

If you haven't already found something, email me. I wrote a 1-file script on my own that I use on my website to deal with displaying my pipe delimited databases.

The script is set up to handle direct HTTP calls or you can place the "exec cmd" command directly into the document. You can specify what field to sort, in what order, and limit the fields that you want to display.

You can get a better idea by seeing them in action at

Sean Shrum


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

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