🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Wyświetlanie zawartości tablicy

#52538
From: Giz
Date: Tue, 25 Jun 2013 06:56
22 lines
1423 bytes
> To znaczy w czym masz problem? Składnia for jest dość prosta.
> -- 
> Secunia non olet.
> Stanislaw Klekot

W tym że nie potrafiłem skonstruować tej składni.
Ale już sobie poradziłem z tym  że za pomocą pętli while
dzięki.


my @t=[
       {a=>1},
       {a=>2},
       {a=>3}
      ];

my $i=0;
while($t[0][$i])
  {
   print $t[0][$i]->{a}."\n";
   $i++;
  }
Technical Details
Message-ID: <kqbev2$hmu$1@news.task.gda.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mail
References: <kq9m8o$t9i$1@news.task.gda.pl> <slrnksgnl3.d47.dozzie@jarowit.net> <kq9oc4$bfg$1@news.task.gda.pl> <slrnksgpth.d47.dozzie@jarowit.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mail
From: "Giz" <giz@nospam.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Wyświetlanie zawartości tablicy
Date: Tue, 25 Jun 2013 08:56:51 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 23
Message-ID: <kqbev2$hmu$1@news.task.gda.pl>
References: <kq9m8o$t9i$1@news.task.gda.pl> <slrnksgnl3.d47.dozzie@jarowit.net> <kq9oc4$bfg$1@news.task.gda.pl> <slrnksgpth.d47.dozzie@jarowit.net>
NNTP-Posting-Host: axv251.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1372143394 18142 83.18.99.251 (25 Jun 2013 06:56:34 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Tue, 25 Jun 2013 06:56:34 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit