> Message du 14/10/08 10:54 > De : "Richard" > A : beginners@perl.org > Copie à : > Objet : array serach for partial value > > > Hello, > > I have small Perl project and got stuck on following problem : > There is a zip file with bunch of files in it. I need to search > through it and find if every xxx.txt file has xxx.log pair and list > all of those .txt without pairs. I figured out that I will use > Archive::Zip and iterate through members of the zip then copy all > compressed file names into an array and then search array for those > pairs. But since my knowledge of perl is rather weak i can't figure > out how to search through array for only part of the value (xxx. in > this case...) > Can you help me guys with that problem ? > Thanks a lot... >
for grep the content from an array's elements and print the found element: for (@array) { print if grep /something/; } Jeff. Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.