In the above code can i test for the value referred to be $index to be present or not in the array @index_corr_file with in the if condition only. I mean is there a one line answer to the above snippet. Thanks in advance Sidforeach (@index_corr_file) { if ($index == $_) { $is_present_flag = 1; last; } } if ($is_present_flag) { ##do something }
2005-02-16 Janitored by Arunbear - added code tags, as per Monastery guidelines
In reply to Regex problem by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |