🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Podmiana znakow w stringu

#39899
From: Dariusz Sznajder
Date: Tue, 02 Nov 2004 17:11
14 lines
1527 bytes
W artykule <cm8cu7$ch2$1@nemesis.news.tpi.pl>
	vellezz napisał(a):
> for $i (0..($count=@$data-1)) {
>     for $j (0..($count=@dos_852-1)) { #wymiana znakow w stringu z nazwa
>  $data->[$i]->[2] =~ s/$dos_852[$j]/$iso8859_2[$j]/eg;
>  $data->[$i]->[2] =~ s/\'/\"/; # zmiana ' na "
>  $data->[$i]->[2] =~ s/"/\\\"/g; # <<<<< coś z tym jest nie tak
Bynajmniej.
Za to z miejscem, w które to wstawiłeś - jak najbardziej.
Hint: ile razy wykonuje się ten for?

-- 
Dariusz Sznajder
DSZ1-RIPE
Technical Details
Message-ID: <slrn.pl.cofftr.405.darek-news@NO-SPAM.beast.tu.kielce.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!newsfeed.silweb.pl!news.tu.kielce.pl!not-for-mail
References: <cm86gs$f7q$1@atlantis.news.tpi.pl> <Xns9595A33B95EEAelhber1lidotechnet@62.89.127.66> <cm88ku$qsn$1@atlantis.news.tpi.pl> <Xns9595A97065151elhber1lidotechnet@62.89.127.66> <cm8bvg$8aj$1@nemesis.news.tpi.pl> <cm8cu7$ch2$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!newsfeed.silweb.pl!news.tu.kielce.pl!not-for-mail
From: Dariusz Sznajder <darek-news@beast.tu.kielce.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Podmiana znakow w stringu
Date: Tue, 2 Nov 2004 18:11:24 +0100
Organization: In My Humble Opinion
Lines: 14
Message-ID: <slrn.pl.cofftr.405.darek-news@NO-SPAM.beast.tu.kielce.pl>
References: <cm86gs$f7q$1@atlantis.news.tpi.pl> <Xns9595A33B95EEAelhber1lidotechnet@62.89.127.66> <cm88ku$qsn$1@atlantis.news.tpi.pl> <Xns9595A97065151elhber1lidotechnet@62.89.127.66> <cm8bvg$8aj$1@nemesis.news.tpi.pl> <cm8cu7$ch2$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: sznajder.eu.org
Mime-Version: 1.0
X-Trace: sabat.tu.kielce.pl 1099415480 97577 81.26.0.18 (2 Nov 2004 17:11:20 GMT)
X-Complaints-To: abuse@tu.kielce.pl
NNTP-Posting-Date: Tue, 2 Nov 2004 17:11:20 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (pl-1.4.3) (Linux/2.4.25-0.rc4.1mdkcustom (i686))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit