🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: index () - szukane wyrażenie pod postacią zmiennej. Jak?

#52499
From: Stachu 'Dozzie' K.
Date: Sun, 03 Feb 2013 15:15
20 lines
1779 bytes
On 2013-02-03, Tomek Luzak <whereverroadgoes@gmail.com> wrote:
> Witajcie,
>
> Męczę się z tym już dłuższy czas i nie mogę sprawić, żeby zadziałało.
>
> Chcę, żeby funkcja użyła zmiennej $ucrestr do wyszukiwania:
>
> $pos = index($sekw, $ucrestr, $pos);
>
> zamiast typowego pre-defined term:
>
> $pos = index($sekw, "Abc", $pos);
>
> Innemi słowy mój "search term" ma pochodzić z wcześniej określonej zmiennej. :( 

No i jaki problem napotykasz? Bo to legalna konstrukcja.

-- 
Secunia non olet.
Stanislaw Klekot
Technical Details
Message-ID: <slrnkgsvou.1ta.dozzie@jarowit.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!rt.uk.eu.org!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <aed590dc-f526-439e-bd7e-43c654221434@googlegroups.com>

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!goblin3!goblin.stu.neva.ru!rt.uk.eu.org!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: "Stachu 'Dozzie' K." <dozzie@go.eat.some.screws.spammer.invalid>
Newsgroups: pl.comp.lang.perl
Subject: Re: index () - szukane wyrażenie pod
 postacią zmiennej. Jak?
Date: Sun, 3 Feb 2013 15:15:42 +0000 (UTC)
Organization: solani.org
Lines: 20
Message-ID: <slrnkgsvou.1ta.dozzie@jarowit.net>
References: <aed590dc-f526-439e-bd7e-43c654221434@googlegroups.com>
Mime-Version: 1.0
X-Trace: solani.org 1359904542 30883 eJwFwYEBgDAIA7CXhhQK5zAt/59gEp6WL5GRiI0VEcRyiufa+YrSjkCtC31Py57qkWXTFz8f4xEh (3 Feb 2013 15:15:42 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Sun, 3 Feb 2013 15:15:42 +0000 (UTC)
User-Agent: slrn/pre1.0.0-18 (Linux)
X-User-ID: eJwFwYEBwCAIA7CXFGjBcxys/59gAudmZxAMCJo5ydXEF3B5wuC0mTj/rpvdQtZC2UCE7gMOzxC7
Cancel-Lock: sha1:Prq2NiXUsTUxBE1IULt0anFTVPg=
X-NNTP-Posting-Host: eJwFwYEBwEAEA8CZKgjj8Nh/hN4Z/PNHdXO1s8vLVVYVlw4ZciUkzlWz36An2AgxBWaBHx/tEO4=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit