🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Q: jak pobrac n'ty znak stringu?

#955
From: Pawel Gajda
Date: Wed, 04 Feb 1998 11:48
17 lines
934 bytes
Lukasz Mach wrote:
> 
> jak pobrac z lancucha znakow nty znak, soc takiego jak w c :costam[n]

można tak :

$ch=substr($str,n,1)

> aha, i moze jest jakies polecenie, zeby od danego znaku obciac string?

substr($str,n)=''

W ogóle polecam lekturę perlfaqs(strony manuala), tam są
rozwiązania wielu podobnych bolączek początkującego.

pozdrawiam
Paweł
Technical Details
Message-ID: <34D855A9.177B6D88@obop.com.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!lublin.pl!not-for-mail
References: <34d76cb5.17959638@news.lublin.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!lublin.pl!not-for-mail
From: Pawel Gajda <pawelg@obop.com.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Q: jak pobrac n'ty znak stringu?
Date: Wed, 04 Feb 1998 12:48:57 +0100
Organization: OBOP
Lines: 17
Message-ID: <34D855A9.177B6D88@obop.com.pl>
References: <34d76cb5.17959638@news.lublin.pl>
NNTP-Posting-Host: hq.obop.com.pl
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.32 i586)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit