🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Actualizar el XF86Config desde un script

#10983
From: tas
Date: Sat, 05 Jan 2002 01:56
23 lines
1767 bytes
Ignacio Arenaza escribi�:

IA>     @paths = split /,/;
IA>     foreach $i (@paths) {
IA> # Esta l�nea es la que provoca la mayor�a de los fallos...
IA> #        $i =~ /^[^\"]*\"([^\"]*)\"/o;
IA> ##
IA> ## Hummm, no se como rayos tendras los paths en tu XF86Config, pero si
IA> ## estan entre comillas te hara falta lo que yo te he dado. Si tienes
IA> ## a veces con y a veces sin, entonces es otro cantar. Lo siento, me
IA> ## he basado en mi XF86Config...

IA>         $i =~ /^\"?([^\"]*)\"?/o;

F�jate en que ya hemos hecho un split de todo el path. Algunos '$i'
tendr�n comillas (delante y/o detr�s), y otros no.

Voy a ver si profundizo algo m�s en el perl con el libro de la llama.
Descuida, que ya os dar� la tabarra seg�n me vayan surgiendo dudas :)

Un saludo
-- 
Debian GNU/Linux
Technical Details
Message-ID: <2gm51a.94k.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!not-for-mail
References: <rvhi0a.9aj.ln@127.0.0.1> <871yhdzkvi.fsf@eb2ebu.ampr.org> <mao21a.6eg.ln@127.0.0.1> <87k7uxk8gu.fsf@eb2ebu.ampr.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,3ab78fa791df1f1e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-01-04 18:00:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!not-for-mail
From: tas <tas@subdimension.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Actualizar el XF86Config desde un script
Date: Sat, 5 Jan 2002 02:56:18 +0100
Organization: Bits & Bobs Inc.
Lines: 23
Message-ID: <2gm51a.94k.ln@127.0.0.1>
References: <rvhi0a.9aj.ln@127.0.0.1> <871yhdzkvi.fsf@eb2ebu.ampr.org> <mao21a.6eg.ln@127.0.0.1> <87k7uxk8gu.fsf@eb2ebu.ampr.org>
NNTP-Posting-Host: acceso-l6.mad.idec.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (Linux/2.2.20 (i586))