Re: -d test file

2002-01-22 Thread Sudarsan Raghavan
H, Sudarsan > > Franck > > -Message d'origine- > De : COLLINEAU Franck FTRD/DMI > [mailto:[EMAIL PROTECTED]] > Envoyé : mardi 22 janvier 2002 08:15 > À : [EMAIL PROTECTED] > Objet : -d test file > > Greetings, > > I have the following code: > #!/u

RE: -d test file

2002-01-21 Thread COLLINEAU Franck FTRD/DMI/TAM
Title: RE: -d test file I've found. I have to put the absolute path. Is there a way without absolute path ? Franck -Message d'origine- De : COLLINEAU Franck FTRD/DMI [mailto:[EMAIL PROTECTED]] Envoyé : mardi 22 janvier 2002 08:15 À : [EMAIL PROTECTED] Objet : -d

-d test file

2002-01-21 Thread Franck Collineau
Greetings, I have the following code: #!/usr/bin/perl -w $chemin="/home/collineau/tests"; opendir (DIR,"$chemin") || die " impossible d'ouvrir le répertoire $chemin $!"; while ($rep=readdir DIR) { print "$rep\n"; $a =-d $rep; print "$a\n"; } The output is: .. 1 ... 1 T