Article View: es.comp.os.linux.programacion
Article #16847Re: Perl: ¿como puedo borrar el ultimo caracter de una variable?
From: eloy
Date: Mon, 20 Mar 2000 00:00
Date: Mon, 20 Mar 2000 00:00
22 lines
1456 bytes
1456 bytes
On Mon, 20 Mar 2000, Borja wrote:
> Es decir si tengo la variable:
>
> $cadena= "pruebas"
>
> que se me quede en:
>
> print " $cadena" ->>> prueba
>
chop $cadena;
(mira el man perlfunc)
-- Eloy
_____________________________________________________________________
---- Eloy Rafael Sanz Tapia -- ersanz@uco.es -- ma1satae@uco.es -----
------------------ http://www.uco.es/~ma1satae ----------------------
----------- GPG ID: 190169A0 / finger eloy@rabinf50.uco.es ----------
Córdoba _ España _______________ Debian 2.1 GNU/Linux 2.2.14 rabinf50
Technical Details
Message-ID:
<Pine.LNX.4.21.0003201907120.27167-100000@rabinf50.uco.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8b5na8$5hf$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,9560d9feee6ec3b2 X-Google-Attributes: gidf86c8,public From: eloy <eloy@rabinf50.uco.es> Subject: Re: Perl: ¿como puedo borrar el ultimo caracter de una variable? Date: 2000/03/20 Message-ID: <Pine.LNX.4.21.0003201907120.27167-100000@rabinf50.uco.es> X-Deja-AN: 600044215 Content-Transfer-Encoding: QUOTED-PRINTABLE References: <8b5na8$5hf$1@diana.bcn.ttd.net> To: Borja <Debajodeltexto@xxx.com> Content-Type: TEXT/PLAIN; charset=iso-8859-1 X-Complaints-To: news@cica.es X-Trace: mercurio.cica.es 953575768 7067 150.214.117.180 (20 Mar 2000 18:09:28 GMT) Organization: C.I.C.A. Mime-Version: 1.0 Reply-To: ersanz@uco.es NNTP-Posting-Date: 20 Mar 2000 18:09:28 GMT Newsgroups: es.comp.os.linux.programacion