Re: MacPerl-AnyPerl Sorting a file list by Eelco Alosery- January 30, 2004 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 30104, Eelco Alosery wrote:>>> how do i combine this together>> Like this, but now it&39;s time for _you_ to do some footwork :-)>>> my $db = "tmptmp";> my ($date, $s1, $s2);> open DB, $db;> for (<DB>) > s(..)-(..)-(....)(.+)$3$2$1$4;> push temp, $_ ;> > for...http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg286.html Re: MacPerl-AnyPerl Sorting a file list by John Delacour- January 30, 2004 At 12:37 am +0100 30104, Eelco Alosery wrote:>how do i combine this togetherLike this, but now it&39;s time for _you_ to do some footwork :-)my $db = "tmptmp";my ($date, $s1, $s2);open DB, $db;for (<DB>) s(..)-(..)-(....)(.+)$3$2$1$4; push temp, $_ ;for (sort temp) chomp; s(....)(..)(..)(.+)$3-$2-$1$4; ($date, $s1, $s2) = split ; $date and print " $date $s1 $s2 $" ;http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg285.html Re: MacPerl-AnyPerl Unsubscription tips by Chris Nandor- January 29, 2004 At 15:19 +1300 2004.01.30, Dave Horn wrote:>I haven&39;t been able to unsubscribe from this list. I&39;m not entirely>sure what I&39;m doing wrong.>>Is there a moderator out there who can punt me out>>-daveh.Reply sent to list in case anyone else wants the answer.Unsubscribe information is in the header of the email:List-Post: <mailto:macperl-anyperlperl.org>List-Help: <mailto:macperl-anyperl-helpperl.org>List-Unsubscribe:...http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg284.html Unsubscription tips by Dave Horn- January 29, 2004 I haven&39;t been able to unsubscribe from this list. I&39;m not entirely sure what I&39;m doing wrong.Is there a moderator out there who can punt me out-daveh.--"This Post May Or May Not Empower You. Your Call."Auckland Ultimate Online --- www.ultimate.org.nzaucklandhttp://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg283.html Re: MacPerl-AnyPerl Sorting a file list by Eelco Alosery- January 29, 2004 Thanks John,And when i use this part to open the data fileopen (DATABASE, "$database") die "Can&39;t Open $klantfile";while(<DATABASE>)($date, $text1, $text2) = split(,$_);foreach ($date) print <<ENDOFTEXT;some html textENDOFTEXTclose (DATABASE);how do i combine this togetherOp 29-jan-04 om 23:58 heeft John Delacour het volgende geschreven:>> At 11:19 pm +0100 29104, Eelco Alosery wrote:>>> the strings are formated this way>>>>...http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg282.html Re: MacPerl-AnyPerl Sorting a file list by John Delacour- January 29, 2004 At 11:19 pm +0100 29104, Eelco Alosery wrote:>the strings are formated this way>>01-12-2003some textsoem other text>03-12-2003some textsoem other text>10-12-2003some textsoem other textThen it&39;s very simple:my temp;my lines = split "n", <<_;01-12-2003some textsoem other text03-12-2003some textsoem other text10-12-2003some textsoem other text06-12-2003some textsoem other text04-12-2003some textsoem other text_for (lines) s(..)-(..)-(....)(.+)$3$2$1$4; push..http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg281.html Re: MacPerl-AnyPerl Sorting a file list by Eelco Alosery- January 29, 2004 the strings are formated this way01-12-2003some textsoem other text03-12-2003some textsoem other text10-12-2003some textsoem other text06-12-2003some textsoem other text04-12-2003some textsoem other textOp 29-jan-04 om 23:01 heeft John Delacour het volgende geschreven:>> At 9:06 pm +0100 29104, 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:>>...http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg280.html Re: MacPerl-AnyPerl Sorting a file list by John Delacour- January 29, 2004 At 9:06 pm +0100 29104, 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:>part1part2parst3>>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.What is the format of part1 and of the whole line Nobody can help without knowing that.JDhttp://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg279.html Sorting a file list by Eelco Alosery- January 29, 2004 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:part1part2parst3Now i want to display the lines in order of date(the first part) to a html fileHow do i do this whit a cgi script.Thanks,Eelco Aloseryhttp://www.nntp.perl.org/group/perl.macperl.anyperl/2004/01/msg278.html |