🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Un poco de perl

#12703
From: J.A. Gutierrez
Date: Tue, 29 May 2001 10:05
26 lines
1905 bytes
Pere Pujal Carabantes <pere@hola.fou.net> wrote:

:  ($info =~ /AMANDA: FILE \d+ \w+ \S+ lev \d+ comp (\S+) program (\S+)/);
: $info es una cadena como �sta:
: AMANDA: FILE 20010528 hola.fou.net /etc lev 1 comp .gz program /bin/gtar 

: Tendr�a que actualizar perl a una versi�n mayor o es un fallo del c�digo?
: tengo perl, version 5.005_03 built for i386-linux de debian potato


	elemental: amanda por defecto no usa nombres de dominio,
	pero los puede usar si lo eliges al compilarlo, como parece
	que tu has hecho.

	Asi pues, hola.fou.net no es \w+ sino \S+ con lo que la
	expresion a usar seria mas bien:

	/AMANDA: FILE \d+ \S+ \S+ lev \d+ comp (\S+) program (\S+)/



-- 
PGP and other useless info at      \
http://www.cps.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <9evsa5$ab2$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.unizar.es!not-for-mail
References: <slrn9h5f9s.bgj.pere@hola.fou.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,d2575f4e35b2e31e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-29 02:48:41 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Un poco de perl
Date: 29 May 2001 10:05:57 GMT
Organization: Rank
Lines: 26
Message-ID: <9evsa5$ab2$1@news.unizar.es>
References: <slrn9h5f9s.bgj.pere@hola.fou.net>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 991130757 10594 155.210.152.20 (29 May 2001 10:05:57 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 29 May 2001 10:05:57 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))