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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.