Thread lokale Variable aus Sub ins Hauptprogramm!
(30 answers)
Opened by skontox at 2003-09-24 21:07
[quote=pq,20.11.2005, 19:05]globale variablen sind nicht generell schlecht, aber man sollte sie vermeiden.
ich mache gerne sowas: Code: (dl
)
1 package MyConf; ich schrieb ja schon ein beispiel. den code mit "package MyConf" musst du in eine datei MyConf.pm packen. und vielleicht mal perldoc perlmod lesen. 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: ![]() ![]() |