🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Un poco de perl

#12705
From: Ignacio Arenaza
Date: Mon, 28 May 2001 20:48
32 lines
2168 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Pere" == Pere Pujal Carabantes <pere@hola.fou.net> writes:

    Pere> Holas Alguien me puede explicar porqu� este c�digo no rula?

    Pere>   my ($info) = ($buffer =~ /(.*)\n/); my ($compext,
    Pere> $dumpext) = ($info =~ /AMANDA: FILE \d+ \w+ \S+ lev \d+ comp
    Pere> (\S+) program (\S+)/); goto END_1 if !$compext or !$dumpext;

\w _no_ incluye el ".", asi que la expresion no concuerda con el tipo
de linea que has enviado como ejemplo. Es decir \w+ no concuerda con
"hola.fou.net", sino solo con "hola" (y ".fou.net" se queda fuera).

Creo que deberias usar [\w.] en ese caso si vas a tener "." en la
expresion o sino usar directamente \S+.

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at  http://www.escomposlinux.org/iarenaza/pgpkey.html
  I use free software / Yo uso software libre  

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG

iD8DBQE7ErmDZXLnGT1HLgcRAjJJAJ4pB1R3RDRffgI5oWTQ+VhUvz8WAQCgmyC7
Z+TCtJydsD/K7zeq4JnD+AU=
=5F2h
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87snhpb3p6.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!44.133.1.30!nobody
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 10:16:05 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!44.133.1.30!nobody
From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Un poco de perl
Date: 28 May 2001 22:48:05 +0200
Organization: Servidor NNTP de eb2ebu.ampr.org
Lines: 32
Message-ID: <87snhpb3p6.fsf@eb2ebu.ampr.org>
References: <slrn9h5f9s.bgj.pere@hola.fou.net>
NNTP-Posting-Host: 62-36-65-135.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: m2wpersoisp01.wanadoo.es 991156339 3232 62.36.65.135 (29 May 2001 17:12:19 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Tue, 29 May 2001 17:12:19 +0000 (UTC)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7