stat, readdir, opendir and friends

This is a multi-part message in MIME format.

--===============0083940034==
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C864DE.59AC8E56"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C864DE.59AC8E56
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have tried using both DirHandle as well as the tradition opendir and =
readdir to get the mode. Depending on the directory I open, directories =
are somtimes found and sometimes they are skipped. However, the .. is =
never skipped over and is identified as a dircotry. Any ideas?

Mitch

Mitchell Raful MCSE CCNP
MCB Quantico
Personal and Family Readiness (MRI)
3044 Catlin Avenue
Quantico, VA 22134
Com: 703-784-5991
DSN: 278-5991
Cell: 804-363-0731



------_=_NextPart_001_01C864DE.59AC8E56
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial size=3D2>I have =
tried using
both DirHandle as well as the tradition opendir and readdir to get the
mode.  Depending on the directory I open, directories are somtimes =
found
and sometimes they are skipped.  However, the <STRONG>..</STRONG> =
is never
skipped over and is identified as a dircotry.  Any
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial
size=3D2>Mitch</FONT></SPAN></DIV>
<P><FONT face=3DArial size=3D2>Mitchell Raful MCSE CCNP</FONT> <BR><FONT =
face=3DArial
size=3D2>MCB Quantico</FONT> <BR><FONT face=3DArial size=3D2>Personal =
and Family
Readiness (MRI)</FONT> <BR><FONT face=3DArial size=3D2>3044 Catlin =
Avenue</FONT>
<BR><FONT face=3DArial size=3D2>Quantico, VA 22134</FONT> <BR><FONT =
face=3DArial
size=3D2>Com: 703-784-5991</FONT> <BR><FONT face=3DArial size=3D2>DSN: =
278-5991</FONT>
<BR><FONT face=3DArial size=3D2>Cell: 804-363-0731</FONT> </P>
<DIV> </DIV></BODY></HTML>

------_=_NextPart_001_01C864DE.59AC8E56--

--===============0083940034==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0083940034==--
Raful Mr Mitchell H [ Fr, 01 Februar 2008 15:25 ] [ ID #1922189 ]

RE: stat, readdir, opendir and friends

This is a multi-part message in MIME format.

--===============1908587230==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C864E3.B67D0794"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C864E3.B67D0794
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello

Maybe you can use

next if $file =3D~ /^\.\.?$/;

HTH

________________________________

From: activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Raful
Mr Mitchell H
Sent: Friday, February 01, 2008 9:26 AM
To: Activeperl (E-mail)
Subject: stat, readdir, opendir and friends


I have tried using both DirHandle as well as the tradition opendir and
readdir to get the mode. Depending on the directory I open, directories
are somtimes found and sometimes they are skipped. However, the .. is
never skipped over and is identified as a dircotry. Any ideas?

Mitch

Mitchell Raful MCSE CCNP
MCB Quantico
Personal and Family Readiness (MRI)
3044 Catlin Avenue
Quantico, VA 22134
Com: 703-784-5991
DSN: 278-5991
Cell: 804-363-0731



------_=_NextPart_001_01C864E3.B67D0794
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1543" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Hello</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2>Maybe you can use</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2>next if $file =3D~ =
/^\.\.?$/;</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D462050315-01022008><FONT =
face=3DArial
color=3D#0000ff size=3D2>HTH</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B>
activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <B>On Behalf Of =
</B>Raful
Mr Mitchell H<BR><B>Sent:</B> Friday, February 01, 2008 9:26 =
AM<BR><B>To:</B>
Activeperl (E-mail)<BR><B>Subject:</B> stat, readdir, opendir and
friends<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial size=3D2>I have =
tried using
both DirHandle as well as the tradition opendir and readdir to get the
mode.  Depending on the directory I open, directories are somtimes =
found
and sometimes they are skipped.  However, the <STRONG>..</STRONG> =
is never
skipped over and is identified as a dircotry.  Any
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D096582114-01022008><FONT face=3DArial
size=3D2>Mitch</FONT></SPAN></DIV>
<P><FONT face=3DArial size=3D2>Mitchell Raful MCSE CCNP</FONT> <BR><FONT =
face=3DArial
size=3D2>MCB Quantico</FONT> <BR><FONT face=3DArial size=3D2>Personal =
and Family
Readiness (MRI)</FONT> <BR><FONT face=3DArial size=3D2>3044 Catlin =
Avenue</FONT>
<BR><FONT face=3DArial size=3D2>Quantico, VA 22134</FONT> <BR><FONT =
face=3DArial
size=3D2>Com: 703-784-5991</FONT> <BR><FONT face=3DArial size=3D2>DSN: =
278-5991</FONT>
<BR><FONT face=3DArial size=3D2>Cell: 804-363-0731</FONT> </P>
<DIV> </DIV></BODY></HTML>

------_=_NextPart_001_01C864E3.B67D0794--

--===============1908587230==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1908587230==--
Erich.Singer [ Fr, 01 Februar 2008 16:04 ] [ ID #1922190 ]

RE: stat, readdir, opendir and friends

From: activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Raful
Mr Mitchell H
Sent: 01 February 2008 14:26
To: Activeperl (E-mail)
Subject: stat, readdir, opendir and friends

> I have tried using both DirHandle as well as the tradition opendir and
readdir to get the mode. Depending on =

> the directory I open, directories are somtimes found and sometimes
they are skipped. However, the .. is never > skipped over and is
identified as a dircotry. Any ideas?

Sorry, but I find it really hard to work out what it is you are asking
for, or what your problem is. Perhaps you could explain what it is that
you are trying to accomplish. A short example script that demonstrates
your problem would also help.

The more you help us to help you, the easier it is to help you.

HTH

-- =

Brian Raven =


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Atos Euronext Market Solutions Disclaimer
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

The information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modification=
, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediat=
ely and delete it from your system. The views expressed in this message do =
not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with=
registration no. 3962327. Registered office address at 25 Bank Street Lon=
don E14 5NQ United Kingdom. =

Atos Euronext Market Solutions SAS - Registered in France with registration=
no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann 750=
09 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement des=
tinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Tou=
te copie, publication ou diffusion de cet email est interdite. Si cet e-mai=
l vous parvient par erreur, nous vous prions de bien vouloir prevenir l'exp=
editeur immediatement et d'effacer le e-mail et annexes jointes de votre sy=
steme. Le contenu de ce message electronique ne represente pas necessaireme=
nt la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enregi=
str=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social se =
situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e, e=
nregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9ro 4=
25 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard Hauss=
mann 75009 Paris France.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Brian Raven [ Fr, 01 Februar 2008 16:19 ] [ ID #1922191 ]
Perl » gmane.comp.lang.perl.active-perl » stat, readdir, opendir and friends

Vorheriges Thema: Xref problem
Nächstes Thema: Need help how to run java program