🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52401

Re: sortowanie tablicy problem

#52401
From: Stachu 'Dozzie' K.
Date: Fri, 17 Feb 2012 12:58
17 lines
1677 bytes
On 2012-02-17, karraso <karraso@gazeta.pl> wrote:
> Witam
> Mam problem z tablicą, a mianowicie chciałbym zwracać wartość minimalną
> @tablica = qw(69 31 43 3 15 2 51 86 73 89 80 89 66);
> @tablica = sort @tablica;
> print "@tablica\n";
>
> niestety wynik jest
> 15 2 3 31 43 51 66 69 73 80 86 89 89
> Dlaczego dla tego przypadku jest bład?

To nie jest błąd. To jest poprawne zachowanie. Nie doczytałeś co robi
sort, to wszystko. perldoc -f sort.

-- 
Secunia non olet.
Stanislaw Klekot
Technical Details
Message-ID: <slrnjjsjna.j5o.dozzie@jarowit.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <1p7eq993nr555$.10svddsok2fup$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: "Stachu 'Dozzie' K." <dozzie@go.eat.some.screws.spammer.invalid>
Newsgroups: pl.comp.lang.perl
Subject: Re: sortowanie tablicy problem
Date: Fri, 17 Feb 2012 12:58:37 +0000 (UTC)
Organization: solani.org
Lines: 17
Message-ID: <slrnjjsjna.j5o.dozzie@jarowit.net>
References: <1p7eq993nr555$.10svddsok2fup$.dlg@40tude.net>
Mime-Version: 1.0
X-Trace: solani.org 1329483517 17170 eJwNxcEBwCAIA8CVSIFQxwE1+4/Q3ufSCe4KJiOV4iyuo3Ew/L6GzaNr/6kKqM2CXdV4fMr4ARdYEJM= (17 Feb 2012 12:58:37 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Fri, 17 Feb 2012 12:58:37 +0000 (UTC)
User-Agent: slrn/pre0.9.9-111 (Linux)
X-User-ID: eJwFwYEBwCAIA7CXBrQI52Cn/59gwkhLLSQTvLxqbhOsZ0nFmOyMLcGxThU0X/w+flBgaR4bMxED
Cancel-Lock: sha1:2SxcOduT070fBW5by/ARh5J+rec=
X-NNTP-Posting-Host: eJwFwQEBwCAMAzBLlNKNyfk78C+BRAyEc4Vi6era+69T5MY4Ex4ppahd4EQHhfan7q5KVzwHRRBU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit