Thread Problem mit HASH ref (48 answers)
Opened by bianca at 2010-05-02 13:09

pq
 2010-05-09 16:17
#136936 #136936
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
kann man pauschal nicht so beantworten. woher kommt $modnr (und wieso heisst es "modnr" anstatt "subnr"?).
am saubersten wäre wohl eine dispatch-tabelle. kommt die variable $modnr aus dem programm selbst, geht auch der aufruf von can().
und oft vermeidet man so einen kram gleich ganz, wenn man objektorientiert arbeitet.
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 HASH ref