Hi
I have a file list like following 
                my @file_list=("a1.exe","a2.exe","a3.invalid_exe");

I want to store only the names that has extension as ".exe" and remove the
others.I am using
                my $filename=".exe";
                @file_list = grep /\$filename$/i, @file_list;

But it is not working.Please let me know where the problem is

regards
Saurabh

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to