in reply to Re: Re: Re: Another dos to unix question
in thread Another dos to unix question

Well, it's quite inefficient. You're starting a process for each file, and do a substitution for every empty string.
sub dos2unix { system perl => '-i', '-pe' => 'tr/\x0D//d' @_ }

Abigail