🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Jak policzyc?

#1128
From: Jaroslaw Strzalkowski
Date: Tue, 17 Mar 1998 08:21
9 lines
909 bytes
Adam Lesien <a.lesien@pbg.pl> wrote:
: Pytanko:

: Jak najlatwiej policzyc ilosc wystapien dowolnego 
: lancucha $s1 w zmiennej tekstowej $s2 ??? 

$n = ($s2 =~ s/$s1/$s1/g);
-- 
Jaroslaw Strzalkowski, Uczelniane Centrum Informatyki AGH, Krakow
Technical Details
Message-ID: <6elbpi$kuv$1@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!orion.cst.tpsa.pl!news.task.gda.pl!polsl.gliwice.pl!agh.edu.pl!agh.edu.pl!not-for-mail
References: <350D0976.20AAFBDB@pbg.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!orion.cst.tpsa.pl!news.task.gda.pl!polsl.gliwice.pl!agh.edu.pl!agh.edu.pl!not-for-mail
From: Jaroslaw Strzalkowski <js@galaxy.uci.agh.edu.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Jak policzyc?
Date: 17 Mar 1998 09:21:06 +0100
Organization: University of Mining & Metallurgy
Lines: 9
Message-ID: <6elbpi$kuv$1@galaxy.uci.agh.edu.pl>
References: <350D0976.20AAFBDB@pbg.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
X-Newsreader: TIN [UNIX 1.3 unoff BETA 971018; sun4m SunOS 5.5.1]
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit