Struppi: Mail::Sender // mal geht's - mal nicht

Beitrag lesen

wollte Euch die Lösung nicht vorenthalten:

#############
$/ and $\ If you change the $/ ($RS, $INPUT_RECORD_SEPARATOR) or $\ ($ORS, $OUTPUT_RECORD_SEPARATOR) or $, ($OFS, $OUTPUT_FIELD_SEPARATOR) Mail::Sender may stop working! Keep in mind that those variables are global and therefore they change the behaviour of <> and print everywhere. And since the SMTP is a plain text protocol if you change the notion of lines you can break it.

If you have to fiddle with $/, $\ or $, do it in the smallest possible block of code and local()ize the change!
#############

aha, trotz allem sollte Perl eine Fehlermeldung ausgeben:

my %F;

$F{'EMAIL'}="tmirke@ra-micro.de";

gibt bei mir (auch ohne use strict und -w):

In string, @ra now must be written as @ra at test.pl line 6, near "tmirke@ra"
Global symbol "@ra" requires explicit package name at test.pl line 6.
Execution of test.pl aborted due to compilation errors.

Struppi.