🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [PERL]:¿donde está el script?

#8811
From: Iñaki Arenaza
Date: Wed, 09 Oct 2002 20:17
27 lines
2059 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Marcos" == Marcos Dobarro Otero <mardot_esSPAM@terra.es> writes:


    Marcos> comando pwd ejecutado desde el script pero me devuelve el
    Marcos> directorio donde estoy yo y yo quiero que devuelva el
    Marcos> directorio donde esta el script.


use File::Basename;
print dirname ($0)i, "\n";

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.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE9pI7zZXLnGT1HLgcRAjadAJ966ECiYkz/o6PSrtIygERC2pjWGQCfc9HZ
Yc90yH61CShUtShQxmFC0wU=
=henq
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87bs63v022.fsf@barad-dur.escomposlinux.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!isdnet!wanadoo.fr!proxad.net!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!antonio.escomposlinux.org!news.eteo.mondragon.edu!not-for-mail
References: <8lp1oa.883.ln@www.mardot.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,fd2077de17fa8475
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-09 13:18:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!isdnet!wanadoo.fr!proxad.net!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!antonio.escomposlinux.org!news.eteo.mondragon.edu!not-for-mail
From: iarenaza@eb2ebu.ampr.org (Iñaki Arenaza)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: [PERL]:¿donde está el script?
Date: Wed, 09 Oct 2002 22:17:57 +0200
Organization: Mondragon Unibertsitatea - ETEO
Lines: 27
Distribution: es
Message-ID: <87bs63v022.fsf@barad-dur.escomposlinux.org>
References: <8lp1oa.883.ln@www.mardot.com>
NNTP-Posting-Host: 217-127-183-203.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: poseidon.eteo.muni.es 1034194678 13737 217.127.183.203 (9 Oct 2002 20:17:58 GMT)
X-Complaints-To: newsmaster@eteo.mondragon.edu
NNTP-Posting-Date: Wed, 9 Oct 2002 20:17:58 +0000 (UTC)
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7
 (i386-debian-linux-gnu)
Cancel-Lock: sha1:amMyLVsNTo4KG8QpJc68s5N8T70=