Thread Problem mit sendmail (HTML-Mail erzeugen und senden) (51 answers)
Opened by carsten1976 at 2010-03-27 01:36

pq
 2010-03-27 15:49
#135361 #135361
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
http://p3rl.org/perldiag
Quote
%s() called too early to check prototype
(W prototype) You’ve called a function that has a prototype before the parser saw a
definition or declaration for it, and Perl could not check that the call conforms to
the prototype. You need to either add an early prototype declaration for the
subroutine in question, or move the subroutine definition ahead of the call to get
proper prototype checking. Alternatively, if you are certain that you’re calling the
function correctly, you may put an ampersand before the name to avoid the warning.
See perlsub.

http://p3rl.org/perlsub

steht eigentlich alles drin. mittels sub foo() { ... } deklariert man eine subroutine mit prototyp, und mit &foo umgeht man diesen. warum also einen prototyp benutzen, wenn man ihn doch nur umgehen will?
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Problem mit sendmail (HTML-Mail erzeugen und senden)