🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #9414

Re: regex, matchs, perl, controlar decimales

#9414
From: Alvaro Sanchez-Mariscal
Date: Sun, 14 Jul 2002 13:54
15 lines
1307 bytes
> $resultado = ($num1 / $num2);

if($resultado=~/(\d+\.\d{2})/) {
   $resultado=$1;
}
-- 
..::..::..::..::..::..::..::..::..::
Alvaro Sanchez-Mariscal Arnaiz
Universidad Carlos III de Madrid
Servicio de Informatica

Despacho 15.0.07
C/ Madrid, 126 - 28903 GETAFE
mariscal@di.uc3m.es 91 624 57 55
..::..::..::..::..::..::..::..::..::
Technical Details
Message-ID: <3D3182B2.2040502@di.uc3m.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!uni-erlangen.de!fu-berlin.de!uni-berlin.de!213.37.50.169!not-for-mail
References: <agpdui$h9f$1@localhost.localhost>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,b809275dbda7b1e8
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-07-14 06:56:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!uni-erlangen.de!fu-berlin.de!uni-berlin.de!213.37.50.169!not-for-mail
From: Alvaro Sanchez-Mariscal <mariscal@di.uc3m.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: regex, matchs, perl, controlar decimales
Date: Sun, 14 Jul 2002 15:54:58 +0200
Lines: 16
Message-ID: <3D3182B2.2040502@di.uc3m.es>
References: <agpdui$h9f$1@localhost.localhost>
NNTP-Posting-Host: 213.37.50.169
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1026655015 25236052 213.37.50.169 (16 [146972])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513
X-Accept-Language: es-es, en-us, en