Tip #2 from the Basic debugging checklist: print the value of the $_ variable in your foreach loop. Does it contain what you expect?
print "$_\n";
In reply to Re: Removing blank/empty lines
by toolic
in thread Removing blank/empty lines
by perlnoobster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |