Thread Modul require aber wie?
(16 answers)
Opened by bianca at 2009-10-10 16:41 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 my $ftp; BEGIN { eval { require Foo; }; # oder eval "use Foo" $ftp = 1 unless $@; } if ($ftp) { } 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: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |