🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Jak usunac zbedne spacje

#402
From: Wladyslaw A. Russocki
Date: Mon, 23 Jun 1997 15:53
14 lines
876 bytes
Robert Nosko wrote:
> Czy istnieje jakas funkcja w Perlu, ktora wywala zbedne spacje, np. ktos omylkowo wprowadzil takowe na koncu tekstu,

Na przyklad:

$xxx =~ s/\s*$//  ;

> albo podwojne miedzy wyrazami.

$xxx =~ s/\s+/ /g ;

Powodzenia,

Wladyslaw Russocki
Technical Details
Message-ID: <33AE9C04.101E@worldnet.fr>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!news.nask.pl!usenet
References: <01bc7fbc$3789fae0$044675c3@kinga.dawid.com.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!uw.edu.pl!news.nask.pl!usenet
From: "Wladyslaw A. Russocki" <russocki@worldnet.fr>
Newsgroups: pl.comp.lang.perl
Subject: Re: Jak usunac zbedne spacje
Date: Mon, 23 Jun 1997 17:53:40 +0200
Organization: Credintrans
Lines: 14
Message-ID: <33AE9C04.101E@worldnet.fr>
References: <01bc7fbc$3789fae0$044675c3@kinga.dawid.com.pl>
Reply-To: russocki@worldnet.fr
NNTP-Posting-Host: cicgate.cicomore.fr
Mime-Version: 1.0
X-Mailer: Mozilla 3.0 (WinNT; I)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit