🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: sortowanie tablicy problem

#52402
From: karraso
Date: Fri, 17 Feb 2012 13:00
18 lines
1471 bytes
Dnia Fri, 17 Feb 2012 12:58:37 +0000 (UTC), Stachu 'Dozzie' K. napisał(a):

> 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.

A możesz mi podpowiedzieć jak zwracać min wartość ?
Pzdr
Technical Details
Message-ID: <1euo49qfe2xch.1ed8hdlohlqhq.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <1p7eq993nr555$.10svddsok2fup$.dlg@40tude.net> <slrnjjsjna.j5o.dozzie@jarowit.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: karraso@gazeta.pl
Newsgroups: pl.comp.lang.perl
Subject: Re: sortowanie tablicy problem
Date: Fri, 17 Feb 2012 14:00:37 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 18
Sender: karraso@gazeta.pl
Message-ID: <1euo49qfe2xch.1ed8hdlohlqhq.dlg@40tude.net>
References: <1p7eq993nr555$.10svddsok2fup$.dlg@40tude.net> <slrnjjsjna.j5o.dozzie@jarowit.net>
Reply-To: karraso@gazeta.pl
NNTP-Posting-Host: dino.centertel.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1329483634 11524 194.9.223.25 (17 Feb 2012 13:00:34 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 17 Feb 2012 13:00:34 +0000 (UTC)
X-User: karraso
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit