good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: grep and find file weirdnessby japhy (Canon) |
on Jun 20, 2007 at 15:58 UTC ( [id://622293]=note: print w/replies, xml ) | Need Help?? |
Yes, the is_dos_format() is smashing $_ in your grep block. The easy fix is to either local()ize $_ in the function or use a different variable in your while loop:
In Section
Seekers of Perl Wisdom
|
|