in reply to Best way to match items in an array
Rohit@file_list = qw(file1.log file2.txt file3.log file4.txt ignorefiletype +.bin file5.conf); @file_list_for_processing = grep /log|txt|conf/,@file_list; foreach $file (@file_list_for_processing) { print "$file\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Best way to match items in an array
by ibanix (Hermit) on Dec 07, 2002 at 21:15 UTC |