🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Zamiana znakow w stringu

#201
From: Piotr Piatkowski
Date: Tue, 22 Apr 1997 10:47
10 lines
993 bytes
Grzegorz Szyszlo <znik@avalon.wbc.lublin.pl> wrote:

: chodzi mi o kawalek kodu, ktory mi spowrotem pozamienia plusy na spacje.

$zmienna = join '', map $_ eq '+' ? ' ' : $_, split //, $zmienna;

(w perlu zawsze jest więcej niż jeden sposób żeby coś zrobić :-) )

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Technical Details
Message-ID: <5ji50u$nr2$1@galaxy.uci.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
References: <5jhv4e$od7$9@helios.man.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!ict.pwr.wroc.pl!agh.edu.pl!agh.edu.pl!not-for-mail
From: kompas@galaxy.uci.agh.edu.pl (Piotr Piatkowski)
Newsgroups: pl.comp.lang.perl
Subject: Re: Zamiana znakow w stringu
Date: 22 Apr 1997 12:47:58 +0200
Organization: University of Mining & Metallurgy
Lines: 10
Message-ID: <5ji50u$nr2$1@galaxy.uci.agh.edu.pl>
References: <5jhv4e$od7$9@helios.man.lublin.pl>
NNTP-Posting-Host: galaxy.uci.agh.edu.pl
Mime-Version: 1.0
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970307; sun4m SunOS 5.5.1]
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit