Thread Modul-Routine mit dynamischem Namen aufrufen: @asd = Modul::$Routine();
(7 answers)
Opened by stefank86 at 2003-11-08 13:29
objektorientiert:
if (my $code = $object->can($subname)) { $code->($par1,$par2) } oder mit package-namen: if (my $code = Modul::Name->can($subname)) { $code->($par1,$par2) } 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: ![]() ![]() |