Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ysmith

    using Schwartzian Transform to sort a data file by fields

    Thanks KevinADC and mikevh! It works perfectly!
  2. ysmith

    using Schwartzian Transform to sort a data file by fields

    mikevh, here's a sample of the unsorted file: John, Doe, jdoe@rl.af.mil, Bethel College, Public Affairs, 56RF, 1984, History/German Jane, Simmons, , Saint Mary's College, Medical Corps, 45MC, 1999, Nursing/Business Joe, Schmoe, jschmo@nd.edu, University of Notre Dame, Medical Corps, 34MC, 2004...
  3. ysmith

    using Schwartzian Transform to sort a data file by fields

    Hello, I'm still new at Perl and I'm trying to understand how to effectively implement the Schwartzian Transform on a data file. Here's what I'm trying to do my $test_file = "../data/data_file"; open TEST, "<$test_file"; my @test_sort = <TEST>; close TEST; my @arr = map {$_->[1]} sort...
  4. ysmith

    Sorting fields in a data file without a hash and without Schwartz

    KevinADC, I think you're right--I am confused. In the Schwartz method, do I have to copy the whole data file at the end of the program, or does my data file just need to have the <DATA> designator at the top when I open it? To answer your question icrf, the data is stored in the following...
  5. ysmith

    Sorting fields in a data file without a hash and without Schwartz

    Hello, I am having a similar problem as ljsmith91. I'm using perl to write to a data file and I want to be able to sort the lines based upon a sort parameter the user defines. The field names are first name, last name, email, school, and so on. For now, a hash is fine for our purposes because we...
  6. ysmith

    Sorting Data by Field

    Hello, I am having a similar problem as ljsmith91. I'm using perl to write to a data file and I want to be able to sort the lines based upon a sort parameter the user defines. The field names are first name, last name, email, school, and so on. For now, a hash is fine for our purposes because we...
  7. ysmith

    Newbie needs to know why script won't write to a file

    Hi, I'm relatively new to perl, so my code is a little rough around the edges. I'm trying to create an alumni 'database' for my school and I got my form to send the variables to a perl script, but for some reason, I can't get my script to write the variables to a file...I created a function...

Part and Inventory Search

Back
Top