Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-30 Thread Eelco Alosery
Thanks again John, I will gif it some testing, and testing until i get it done. Op 30-jan-04 om 11:04 heeft John Delacour het volgende geschreven: At 12:37 am +0100 30/1/04, Eelco Alosery wrote: how do i combine this together Like this, but now it's time for _you_ to do some footwork :-) my

Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-30 Thread John Delacour
At 12:37 am +0100 30/1/04, Eelco Alosery wrote: how do i combine this together Like this, but now it's time for _you_ to do some footwork :-) my $db = "/tmp/tmp"; my ($date, $s1, $s2); open DB, $db; for () { s~^(..)-(..)-()(.+)~$3$2$1$4~; push @temp, $_ ; } for (sort @temp) { chomp; s

Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-29 Thread Eelco Alosery
Thanks John, And when i use this part to open the data file open (DATABASE, "$database") || die "Can't Open $klantfile"; while() { ($date, $text1, $text2) = split(/\|/,$_); foreach ($date) { print < some html text ENDOFTEXT } } close (DATABASE); how do i combine this together Op

Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-29 Thread John Delacour
At 11:19 pm +0100 29/1/04, Eelco Alosery wrote: the strings are formated this way 01-12-2003|some text|soem other text| 03-12-2003|some text|soem other text| 10-12-2003|some text|soem other text| Then it's very simple: my @temp; my @lines = split "\n", <<_; 01-12-2003|some text|soem other text

Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-29 Thread Eelco Alosery
the strings are formated this way 01-12-2003|some text|soem other text| 03-12-2003|some text|soem other text| 10-12-2003|some text|soem other text| 06-12-2003|some text|soem other text| 04-12-2003|some text|soem other text| Op 29-jan-04 om 23:01 heeft John Delacour het volgende geschreven: At 9:0

Re: [MacPerl-AnyPerl] Sorting a file list

2004-01-29 Thread John Delacour
At 9:06 pm +0100 29/1/04, Eelco Alosery wrote: I have a data file to where i print lines of data. The firts part of the line contans the date of writing. I uese this kind of line: part1|part2|parst3| Now i want to display the lines in order of date(the first part) to a html file How do i do this

[MacPerl-AnyPerl] Sorting a file list

2004-01-29 Thread Eelco Alosery
Hello, I have a data file to where i print lines of data. The firts part of the line contans the date of writing. I uese this kind of line: part1|part2|parst3| Now i want to display the lines in order of date(the first part) to a html file How do i do this whit a cgi script. Thanks, Eelco Aloser