Danny,

> My Perlversion is 5.8.6
>
> > Are you sure you need to put *two* linefeeds at the end of file?
> > I expect your first case was just missing a LF at the end of
> > last line.
>
> No,
>
> My first try looks so(not working):
> --------------------------
> .example.com<LF>
> .noexample.com
> --------------------------

The last line is missing its LF terminator.

> My second try looks so(working):
> --------------------------
> .example.com<LF>
> .noexample.com<LF>
>
> --------------------------
>
> Is it right that i must terminate each line with a <LF>?

Yes, each line needs to be terminated by a LF, including the last line.

Here is a simple command to see if your Perl chokes on reading
from a file where the last line is not LF-terminated:

  echo -n "test" | perl -e '$!=0; while(<>){print; $!=0}; $!==0 or die "Err: 
$!"'

It is interesting that it works on FreeBSD and chokes on Linux,
despite having the same version of Perl 5.8.8 on each.

  Mark


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to