develooper Front page | perl.beginners | Postings from April 2002

RE:Regexp correction

Thread Next
From:
Jorge Goncalvez
Date:
April 29, 2002 01:40
Subject:
RE:Regexp correction
Message ID:
200204290840.KAA25099@cabs40.col.bsf.alcatel.fr
Hi, i have this code :
 opendir(DIR,"$_Globals{CDROM}:/DHS3MGR/$_Globals{TEL_VERSION}/DHS3Linux");
 
 foreach (readdir(DIR)){
        unless (/([Comm]+)/){
            $box3->insert('end', $_);
        }
    }
    closedir(DIR);
    
I wanted to have all that there is in DIR except the directory Comm it works 
great but if i have others directories which contains c o m i don't have it and 
i wanted not to take only the directory Comm and take all others directories.

Where is my mistake.
Thanks.     


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About