Thread Syntaxcheck sub in hash (12 answers)
Opened by bianca at 2010-10-24 10:48

pq
 2010-10-24 13:42
#142142 #142142
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
perldoc -f use:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
       use Module VERSION LIST
use Module VERSION
use Module LIST
use Module
use VERSION
Imports some semantics into the current package from the named module, generally by
aliasing certain subroutine or variable names into your package. It is exactly
equivalent to

BEGIN { require Module; Module->import( LIST ); }

except that Module must be a bareword.

und BEGIN-blöcke kennst du ja schon, denke ich.
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 Syntaxcheck sub in hash