Because that tests $_ before the first value is assigned to it and doesn't terminate for a file that doesn't include a matching line!
In reply to Re^3: match multi-lines from config file
by GrandFather
in thread match multi-lines from config file
by nidhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |