Thread Hash-Referenz Klammerschreibweise (2 answers)
Opened by bianca at 2011-08-28 15:34

pq
 2011-08-28 15:35
#151889 #151889
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
http://p3rl.org/perlref
Code: (dl )
1
2
3
4
5
6
7
       3.  A reference to an anonymous hash can be created using curly
brackets:

$hashref = {
'Adam' => 'Eve',
'Clyde' => 'Bonnie',
};
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 Hash-Referenz Klammerschreibweise