[Templates] Datafile.pm patch

Andy Wardley abw@kfs.org
Tue, 12 Mar 2002 13:33:48 +0000


On Fri, Feb 15, 2002 at 12:16:47AM +0000, Simon Wilcox wrote:
> Not sure if this is bug as such but I've found that Datafile.pm on linux
> wasn't removing the \r from the end of ascii files created on a Windows PC
> resulting in unexpected behaviour. 

Thanks Simon, it's in.

> +    $line = s/\r$//;

Although I think you meant:

> +    $line =~ s/\r$//;

Cheers
A