🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [Sorry, mesaje largo] perl 5.5 vs 5.8

#801
From: AnimAlf
Date: Sun, 01 Oct 2006 21:22
69 lines
3354 bytes
--=-6PjhkBVmHF9zNcO+lGlo
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

El dt, 26-09-2006 a las 17:12 +0200, AnimAlf escribi=C3=B3:
> Hola,
>=20

He diferenciado entre versiones y hago la entrada de diferentes modos.
=C2=BFSabeis a partir de que versi=C3=B3n de perl puede funcionar .. o la m=
a=C5=9B
probable? ahora he puesto la 5.8.5 pero es muy nueva tambi=C3=A9n. Quer=C3=
=ADa
poner la 5.6 pero no lo se seguro.

Otra cosa.

Je, je

Tengo una funci=C3=B3n recursiva de borrado de un directorio, me ocurre que
necesito utilizar un valor DIRHANDLE que no sea constante, en las
versiones reciente utilizo un valor variable como DIRHANDLE, pero en las
versiones antiguas no puede ser. Es decir hoy
   if (opendir (my $DIRECTORI,$dirActual))
y me funciona. Pero en versiones antiguas me da error, ha de ser
constante.

Puedo hacer esta funci=C3=B3n de otro modo =C2=BFen estas condiciones? o =
=C2=BFcual
seria el modo correcto de hacerlo en aquel entonces?

sub borraTotElDir {
  my $dirActual=3Dshift;
  if (opendir (DIRECTORI,$dirActual)){
    my $dinsDir;
    while ($dinsDir=3Dreaddir(DIRECTORI)){
      my $strViatjer =3D $dirActual . "/" . $dinsDir;
      if (-d $strViatjer){
        if ($dinsDir ne "." && $dinsDir ne ".."){
          borraTotElDir ($strViatjer);
        }
      } else {
        unlink ($strViatjer);
      }
    }
    closedir(DIRECTORI);
  }
  rmdir($dirActual);
}
 =20
> Gracias

--=-6PjhkBVmHF9zNcO+lGlo
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQCVAwUARSAxgx535IyztBIVAQLOBAP+MXGe+osC8AGaUyndhR5aZ5TxLfH3wrco
j5T2F09ndO0LQ3odHkGW5kFXCKUBjhaGnrN74ZVYc8tck93kPEnKnY8A6oUl8Pt/
/kWdwO2LrV+gkhUljAdi+tMAP/aTTbuJixY6aAfX/5rf+b7Whk/IzvjB5h40mStl
+j3BqdfROX8=
=p2d/
-----END PGP SIGNATURE-----

--=-6PjhkBVmHF9zNcO+lGlo--
Technical Details
Message-ID: <1159737731.15109.11.camel@general.engendro.sytes.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!news.motzarella.org!not-for-mail
References: <1159283568.6866.30.camel@general.engendro.sytes.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,1ed0fe849e17e905
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!news.motzarella.org!not-for-mail
From: AnimAlf <AnimAlf@engendro.sytes.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: [Sorry, mesaje largo] perl 5.5 vs 5.8
Date: Sun, 01 Oct 2006 23:22:11 +0200
Organization: Is the truth out there?
Lines: 70
Sender: U2FsdGVkX19526a4TrIZ6DkHUlmzNy2rvNyTUfPFrV3KRTdRU+i7cngtV6sPLrO8KBZzIL9SR9Jk+Tl9YiJUlg==
Message-ID: <1159737731.15109.11.camel@general.engendro.sytes.net>
References: <1159283568.6866.30.camel@general.engendro.sytes.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6PjhkBVmHF9zNcO+lGlo"
X-Trace: U2FsdGVkX18YXy+gYK9VXS0eOy3wYmMCVk2ZHJg/CdLWEHOz1vkxKCggNn7ekIfs7Ry92Av6NzJUhNNbTtIbNWUYWIQPR4x8AbCsvxLGIng26kY76A2EWqzvlPWc57rOioSChyG6vNQHCpHUHpf5NVhdeKTZATpFGBSUEMYh8SKn9U5bgp2lU8AwlpAfbjH6ejt/3z6p+vg=
X-Complaints-To: abuse@motzarella.org
NNTP-Posting-Date: Sun, 1 Oct 2006 21:22:09 +0000 (UTC)
In-Reply-To: <1159283568.6866.30.camel@general.engendro.sytes.net>
X-Mailer: Evolution 2.6.2