Thread array über package ansprechen?
(17 answers)
Opened by Froschpopo at 2006-02-16 03:19
[quote=Froschpopo,16.02.2006, 21:04]was hälste davon:
Code: (dl
)
1 use vars qw[ %vars $key $var]; $key und $var sind hier unnötigerweise global. deklarier sie mit my(). ansonsten empfehle ich weiterhin, $cgi oder %vars als hashref an die subroutinen zu übergeben und nicht global zu machen. 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: ![]() ![]() |