🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Co zwraca split?

#52396
From: Wojtek Garbacz
Date: Fri, 17 Feb 2012 10:15
15 lines
1392 bytes
On 2012-02-17 10:39, Stachu 'Dozzie' K. wrote:
> On 2012-02-17, Wojtek Garbacz<wojtek.b.garbacz@gmail.com>  wrote:
>> Splits the string EXPR into a list of strings and returns that list.
>> To czemu to nie działa?
>> 	$A1 = Mktime(split(/[-: ]/));
>> Podczas gdy to działa?
>> 	($A,$B,$C,$D,$E,$F)=split(/[-: ]/);
>> 	$A1 = Mktime($A,$B,$C,$D,$E,$F);
>
> Zależy od tego, co robi funkcja Mktime() i na ile pól da się
> podzielić $_.
>
Dzięki - rada pomocna :-)
Zatem drugie pytanie - jak wziąć tylko pierwszych sześć wartości z listy?
w.
Technical Details
Message-ID: <jhl9c8$1p2$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.mb-net.net!open-news-network.org!aioe.org!.POSTED!not-for-mail
References: <jhl6nc$qj7$1@speranza.aioe.org> <slrnjjs81a.j5o.dozzie@jarowit.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.mb-net.net!open-news-network.org!aioe.org!.POSTED!not-for-mail
From: Wojtek Garbacz <wojtek.b.garbacz@gmail.com>
Newsgroups: pl.comp.lang.perl
Subject: Re: Co zwraca split?
Date: Fri, 17 Feb 2012 11:15:41 +0100
Organization: Aioe.org NNTP Server
Lines: 15
Message-ID: <jhl9c8$1p2$1@speranza.aioe.org>
References: <jhl6nc$qj7$1@speranza.aioe.org> <slrnjjs81a.j5o.dozzie@jarowit.net>
NNTP-Posting-Host: uWvuvnFHHiJb7KahMaA2SA.user.speranza.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1
X-Notice: Filtered by postfilter v. 0.8.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit