Thread Clean Script (8 answers)
Opened by Gast at 2006-05-22 20:19

pq
 2006-05-24 21:36
#7750 #7750
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
zitat aus perldiag:
Code: (dl )
1
2
3
4
5
       Global symbol "%s" requires explicit package name
          (F) You've said "use strict vars", which indicates that all vari-
          ables must either be lexically scoped (using "my"), declared
          beforehand using "our", or explicitly qualified to say which pack-
          age the global variable is in (using "::").


deshalb kann es für anfänger nie schaden, use diagnostics;
im skript zu haben.

Wiki:use strict;\n\n

<!--EDIT|pq|1148492244-->
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 Clean Script