Article View: pl.comp.lang.perl
Article #692Re: string
From: Robert Richard George 'reptile' ...
Date: Fri, 07 Nov 1997 11:53
Date: Fri, 07 Nov 1997 11:53
26 lines
2250 bytes
2250 bytes
Szymon Sokol wrote:
> Bogumila Zawistowska <zawistow@ibm.uci.agh.edu.pl> wrote:
> : Stworzylem tablice @wyrazy wczytujac z pliku dane.
> : Przypisalo to kazda linijka jednemu elementowi tablicy.
> : Teraz porownuje
> : $i od 1 do 100 ...
> : if ($wyrazy[$i] == "kot"){ print $wyrazy[$i] }
> : aten wypisuje mi wszystkie elementy tablicy!
> : Dlaczego?
> 2) a jak konstruujesz tę pętlę "od 1 do 100" ? Może tu pies
> pogrzebany?
Nie, pies jest pogrzebany gdzie indziej. ,,=='' to porownanie wartosci
logicznych/numerycznych, a obie strony jesli zawieraja cokolwiek maja
wartosc logiczna TRUE. Do porownywania tekstow sluzy operator ,,eq''
(rownoznaczne) i ,,ne'' (nierownoznaczne).
Gad
--
mailto:reptile@pdi.net :)
Women are more complicated than PC... :(
Look into my headers and you'll see who I am. :)
Technical Details
Message-ID:
<63uvfk$380$3@helios.man.lublin.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.nask.pl!lublin.pl!gryzmak.lodz.pdi.net!reptileReferences:
<63utni$rpq$1@galaxy.uci.agh.edu.pl> <63uut1$32h$1@galaxy.uci.agh.edu.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.nask.pl!lublin.pl!gryzmak.lodz.pdi.net!reptile From: Robert Richard George 'reptile' Wal <gad@address.in.sig> Newsgroups: pl.comp.lang.perl Subject: Re: string Date: 7 Nov 1997 11:53:24 GMT Lines: 26 Message-ID: <63uvfk$380$3@helios.man.lublin.pl> References: <63utni$rpq$1@galaxy.uci.agh.edu.pl> <63uut1$32h$1@galaxy.uci.agh.edu.pl> NNTP-Posting-Host: gryzmak.lodz.pdi.net Mime-Version: 1.0 X-URL: http://www.pdi.net/~gad (Eternally under construction) X-IRC-Nick: Gadzinka@efnet.irc X-Phone: +48 (0) 42 368266 X-PGP-Fingerprint: CB0A7A3B 71EF8475 1F1B5981 3C3A1A65 X-PGP-Key: finger reptile@gryzmak.lodz.pdi.net X-Motto: Fact that you're paranoid doesn't imply that THEY don't follow you. X-Disclaimer: This message is directed to people whose addresses appear in TO and CC fields including (and limited to) alias expansion, mailing lists and newsgroups. This means that these are THE ONLY people that I wanted to share the opinions contained herein with. X-Another-Disclaimer: I don't answer e-mail or news articles below some arbitrary mark. X-Favourites: women, Sisters of Mercy, black cats, Amiga, Linux, TeX, vim, books, poetry (in random or everchanging order) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit