Re: [MacPerl-AnyPerl] Alfabetical

2003-03-02 Thread Jeff Lowrey
At 11:21 AM +0100 3/2/03, Eelco Alosery wrote: I want to display a text file alfabetical. I have this in a text file named groep.file Installatie matriaal|144548342| Verlichting|784803956| Draad en kabel|474860160| Schakel matriaal|731915587| Schakel en verdeel inrichtingen|630243268| Data en coax|

Re: [MacPerl-AnyPerl] sort a database

2003-03-02 Thread David Iberri
Hi Eelco, If you're data file isn't excessively large, you might use the following example. Otherwise, you should probably stuff you data file into a database ,such as CSV or mysql, and use the DBI (available at www.cpan.org) for processing. The following code reads in each line of $data_file, re

[MacPerl-AnyPerl] sort a database

2003-03-02 Thread Eelco Alosery
Hello, I'm having truble sorting a database. I use this script to open and read a database: open (DATABASE, "$data_file") || die "Can't Open $data_file"; while() { ($groep2, $groep_id2) = split(/\|/,$_); foreach ($groep2) { print < ENDOFTEXT } } close(DATABASE); The problem I have is that I want $

[MacPerl-AnyPerl] Alfabetical

2003-03-02 Thread Eelco Alosery
I want to display a text file alfabetical. I have this in a text file named groep.file Installatie matriaal|144548342| Verlichting|784803956| Draad en kabel|474860160| Schakel matriaal|731915587| Schakel en verdeel inrichtingen|630243268| Data en coax|4466374| I want to open this file and read the