Thread Variablen aus einem array erstellen (21 answers)
Opened by Gast at 2008-08-21 16:22

pq
 2008-08-21 20:49
#113856 #113856
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
LanX-+2008-08-21 17:41:32--
ich verstehe nicht, inwiefern hashkeys wartbarer sein sollen. Z.B. Packagevariablen sind doch letztlich auch nur Einträge in %main:: respektive %packagename::

sicher. aber du greifst anders drauf zu.
da mjd da was schönes zu geschrieben hat, hier einfach mal die links:
http://perl.plover.com/varvarname.html
http://perl.plover.com/varvarname2.html
http://perl.plover.com/varvarname3.html

edit: aussagekräftiger absatz daraus:
Quote
When you write my $x = 1, the effect is confined to the current block. When you write $main::x = 1, you can figure out the effect by looking through the program to see who looks at $main::x. The instant you write $$name = 1, you don't know any more what the effect will be or where it will crop up; it could be anywhere. You have just turned every 25-line debugging problem into a potential 700-line debugging problem.
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 Variablen aus einem array erstellen