Thread Bedingtes Einbinden von Modulen? (6 answers)
Opened by Ronnie at 2005-06-26 17:12

pq
 2005-06-26 17:25
#55727 #55727
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
my $class = "DefController";
if (eval "use MyController") {
 $class = "MyController";
}
my $cont = $class->new;

ungetestet
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 Bedingtes Einbinden von Modulen?