the above code gives the output as 'Matched'. what should I need to do to get the output as 'Matched In file1:aa'?@array = ( "file1:aa" , "file2:bb" , "file3:cc" ); if ( grep ( /aa/i,@array) ) { print "Matched\n" }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |