Posted By: madhouse (Ekozmrd & cykloterorista) on 'CZunix'
Title:     Re: inteligentni sort
Date:      Mon Aug 18 11:49:25 2008

Mne teda pripadne ten sort uplne stupidni, kdyz si ty duplicitni 
polozky uklada vickrat. Dokonce i perli Sort::External si dela gigabajtovy
soubory kdyz do nich opakovane cpes "ahoj" ;-)

Mozna bych zkusil tie na nejakou hash db:
http://kobesearch.cpan.org/htdocs/QDBM_File/QDBM_File.html

tie %hash, 'QDBM_File',... vytunit parametry ;)

while (<VSTUP>)
{
  $hash{$_} += 1 ;
}

pak zkusit print sort keys %hash a nebo to cpat do Sort::External..

--
AUTHOR
       Written by FIXME unknown.

Search the boards