> Message du 14/10/08 13:47
> De : "Jeff Pang"
>
> for grep the content from an array's elements and print the found element:
>
> for (@array) {
> print if grep /something/;
> }
>
>
Sorry, just inputed the above without thought,:-)
Adjust:
for (@files) {
open my $fh,$_ or die $!;
print if grep {/something/} <$fh>;
close $fh;
}
Jeff.
Créez votre adresse électronique [EMAIL PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
